Add libstdc++-raw-cxx.m4 and use it in libsanitizer
[gcc.git] / libsanitizer / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Report bugs to <libsanitizer>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208 fi
209 fi
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
240 $0: your system, including any error possibly output before
241 $0: this message. Then install a modern shell, or manually
242 $0: run the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378 fi
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libsanitizer'
564 PACKAGE_URL=''
565
566 ac_unique_file="include/sanitizer/common_interface_defs.h"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 USING_MAC_INTERPOSE_FALSE
608 USING_MAC_INTERPOSE_TRUE
609 TSAN_SUPPORTED_FALSE
610 TSAN_SUPPORTED_TRUE
611 enable_static
612 enable_shared
613 CXXCPP
614 CPP
615 OTOOL64
616 OTOOL
617 LIPO
618 NMEDIT
619 DSYMUTIL
620 RANLIB
621 AR
622 OBJDUMP
623 LN_S
624 NM
625 ac_ct_DUMPBIN
626 DUMPBIN
627 LD
628 FGREP
629 EGREP
630 GREP
631 SED
632 LIBTOOL
633 am__fastdepCCAS_FALSE
634 am__fastdepCCAS_TRUE
635 CCASDEPMODE
636 CCASFLAGS
637 CCAS
638 am__fastdepCXX_FALSE
639 am__fastdepCXX_TRUE
640 CXXDEPMODE
641 ac_ct_CXX
642 CXXFLAGS
643 CXX
644 am__fastdepCC_FALSE
645 am__fastdepCC_TRUE
646 CCDEPMODE
647 AMDEPBACKSLASH
648 AMDEP_FALSE
649 AMDEP_TRUE
650 am__quote
651 am__include
652 DEPDIR
653 OBJEXT
654 EXEEXT
655 ac_ct_CC
656 CPPFLAGS
657 LDFLAGS
658 CFLAGS
659 CC
660 toolexeclibdir
661 toolexecdir
662 MAINT
663 MAINTAINER_MODE_FALSE
664 MAINTAINER_MODE_TRUE
665 multi_basedir
666 am__untar
667 am__tar
668 AMTAR
669 am__leading_dot
670 SET_MAKE
671 AWK
672 mkdir_p
673 MKDIR_P
674 INSTALL_STRIP_PROGRAM
675 STRIP
676 install_sh
677 MAKEINFO
678 AUTOHEADER
679 AUTOMAKE
680 AUTOCONF
681 ACLOCAL
682 VERSION
683 PACKAGE
684 CYGPATH_W
685 am__isrc
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 LIBSTDCXX_RAW_CXX_CXXFLAGS
690 target_noncanonical
691 target_os
692 target_vendor
693 target_cpu
694 target
695 host_os
696 host_vendor
697 host_cpu
698 host
699 build_os
700 build_vendor
701 build_cpu
702 build
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files=''
742 ac_user_opts='
743 enable_option_checking
744 enable_version_specific_runtime_libs
745 enable_multilib
746 enable_maintainer_mode
747 enable_dependency_tracking
748 enable_shared
749 enable_static
750 with_pic
751 enable_fast_install
752 with_gnu_ld
753 enable_libtool_lock
754 '
755 ac_precious_vars='build_alias
756 host_alias
757 target_alias
758 CC
759 CFLAGS
760 LDFLAGS
761 LIBS
762 CPPFLAGS
763 CXX
764 CXXFLAGS
765 CCC
766 CCAS
767 CCASFLAGS
768 CPP
769 CXXCPP'
770
771
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
793
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
819
820 ac_prev=
821 ac_dashdash=
822 for ac_option
823 do
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
829 fi
830
831 case $ac_option in
832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *) ac_optarg=yes ;;
834 esac
835
836 # Accept the important Cygnus configure options, so we can diagnose typos.
837
838 case $ac_dashdash$ac_option in
839 --)
840 ac_dashdash=yes ;;
841
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
846
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
851
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
858
859 --config-cache | -C)
860 cache_file=config.cache ;;
861
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
866
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
873
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
915
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
924
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
928
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
935
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
940
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
946
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
953
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
958
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
963
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
970
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
975
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
982
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
987
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
991
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
995
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
999
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1008
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1013
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1020
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1027
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1044
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1049
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1054
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1058
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1064
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1075
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1080
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1085
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1092
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1097
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1100
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1103
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1119
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1135
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1139
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1146
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1153
1154 -*) as_fn_error "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information."
1156 ;;
1157
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1167
1168 *)
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174 ;;
1175
1176 esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error "missing argument to $ac_option"
1182 fi
1183
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1197 do
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1212
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1219
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1228 fi
1229 fi
1230
1231 ac_tool_prefix=
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234 test "$silent" = yes && exec 6>/dev/null
1235
1236
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error "pwd does not report name of working directory"
1243
1244
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\).*/{
1268 s//\1/
1269 q
1270 }
1271 s/.*/./; q'`
1272 srcdir=$ac_confdir
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 srcdir=..
1275 fi
1276 else
1277 ac_srcdir_defaulted=no
1278 fi
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1282 fi
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1286 pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1290 fi
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1303
1304 #
1305 # Report the --help message.
1306 #
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1312
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1317
1318 Defaults for the options are specified in brackets.
1319
1320 Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 [PREFIX]
1336
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1341
1342 For better control, use the options below.
1343
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1364 _ACEOF
1365
1366 cat <<\_ACEOF
1367
1368 Program names:
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1372
1373 System types:
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1377 _ACEOF
1378 fi
1379
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of package-unused version-unused:";;
1383 esac
1384 cat <<\_ACEOF
1385
1386 Optional Features:
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1391 --enable-multilib build many library versions (default)
1392 --enable-maintainer-mode enable make rules and dependencies not useful
1393 (and sometimes confusing) to the casual installer
1394 --disable-dependency-tracking speeds up one-time build
1395 --enable-dependency-tracking do not reject slow dependency extractors
1396 --enable-shared[=PKGS] build shared libraries [default=yes]
1397 --enable-static[=PKGS] build static libraries [default=yes]
1398 --enable-fast-install[=PKGS]
1399 optimize for fast installation [default=yes]
1400 --disable-libtool-lock avoid locking (might break parallel builds)
1401
1402 Optional Packages:
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1405 --with-pic try to use only PIC/non-PIC objects [default=use
1406 both]
1407 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1408
1409 Some influential environment variables:
1410 CC C compiler command
1411 CFLAGS C compiler flags
1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1413 nonstandard directory <lib dir>
1414 LIBS libraries to pass to the linker, e.g. -l<library>
1415 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1416 you have headers in a nonstandard directory <include dir>
1417 CXX C++ compiler command
1418 CXXFLAGS C++ compiler flags
1419 CCAS assembler compiler command (defaults to CC)
1420 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1421 CPP C preprocessor
1422 CXXCPP C++ preprocessor
1423
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1426
1427 Report bugs to <libsanitizer>.
1428 _ACEOF
1429 ac_status=$?
1430 fi
1431
1432 if test "$ac_init_help" = "recursive"; then
1433 # If there are subdirs, report their specific --help.
1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435 test -d "$ac_dir" ||
1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 continue
1438 ac_builddir=.
1439
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *)
1443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1455
1456 case $srcdir in
1457 .) # We are building in place.
1458 ac_srcdir=.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1465 *) # Relative name.
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for guested configure.
1474 if test -f "$ac_srcdir/configure.gnu"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477 elif test -f "$ac_srcdir/configure"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure" --help=recursive
1480 else
1481 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 fi || ac_status=$?
1483 cd "$ac_pwd" || { ac_status=$?; break; }
1484 done
1485 fi
1486
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1489 cat <<\_ACEOF
1490 package-unused configure version-unused
1491 generated by GNU Autoconf 2.64
1492
1493 Copyright (C) 2009 Free Software Foundation, Inc.
1494 This configure script is free software; the Free Software Foundation
1495 gives unlimited permission to copy, distribute and modify it.
1496 _ACEOF
1497 exit
1498 fi
1499
1500 ## ------------------------ ##
1501 ## Autoconf initialization. ##
1502 ## ------------------------ ##
1503
1504 # ac_fn_c_try_compile LINENO
1505 # --------------------------
1506 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_compile ()
1508 {
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext
1511 if { { ac_try="$ac_compile"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_compile") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1524 fi
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest.$ac_objext; then :
1530 ac_retval=0
1531 else
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1534
1535 ac_retval=1
1536 fi
1537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1538 return $ac_retval
1539
1540 } # ac_fn_c_try_compile
1541
1542 # ac_fn_cxx_try_compile LINENO
1543 # ----------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_cxx_try_compile ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_cxx_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573 ac_retval=1
1574 fi
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 return $ac_retval
1577
1578 } # ac_fn_cxx_try_compile
1579
1580 # ac_fn_c_try_link LINENO
1581 # -----------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_link ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest$ac_exeext
1587 if { { ac_try="$ac_link"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_link") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest$ac_exeext && {
1606 test "$cross_compiling" = yes ||
1607 $as_test_x conftest$ac_exeext
1608 }; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1618 # interfere with the next link command; also delete a directory that is
1619 # left behind by Apple's compiler. We do this before executing the actions.
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1622 return $ac_retval
1623
1624 } # ac_fn_c_try_link
1625
1626 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists and can be compiled using the include files in
1629 # INCLUDES, setting the cache variable VAR accordingly.
1630 ac_fn_c_check_header_compile ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1636 $as_echo_n "(cached) " >&6
1637 else
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 eval "$3=yes"
1645 else
1646 eval "$3=no"
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654
1655 } # ac_fn_c_check_header_compile
1656
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_cpp ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } >/dev/null && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 return $ac_retval
1691
1692 } # ac_fn_c_try_cpp
1693
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=$ac_status
1729 fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1733
1734 } # ac_fn_c_try_run
1735
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1751 #define $2 innocuous_$2
1752
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $2 (); below.
1755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756 <limits.h> exists even on freestanding compilers. */
1757
1758 #ifdef __STDC__
1759 # include <limits.h>
1760 #else
1761 # include <assert.h>
1762 #endif
1763
1764 #undef $2
1765
1766 /* Override any GCC internal prototype to avoid an error.
1767 Use char because int might match the return type of a GCC
1768 builtin and then its argument prototype would still apply. */
1769 #ifdef __cplusplus
1770 extern "C"
1771 #endif
1772 char $2 ();
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined __stub_$2 || defined __stub___$2
1777 choke me
1778 #endif
1779
1780 int
1781 main ()
1782 {
1783 return $2 ();
1784 ;
1785 return 0;
1786 }
1787 _ACEOF
1788 if ac_fn_c_try_link "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext \
1794 conftest$ac_exeext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800
1801 } # ac_fn_c_check_func
1802
1803 # ac_fn_cxx_try_cpp LINENO
1804 # ------------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_cxx_try_cpp ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } >/dev/null && {
1825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1826 test ! -s conftest.err
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1837
1838 } # ac_fn_cxx_try_cpp
1839
1840 # ac_fn_cxx_try_link LINENO
1841 # -------------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_link ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext conftest$ac_exeext
1847 if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1860 fi
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest$ac_exeext && {
1866 test "$cross_compiling" = yes ||
1867 $as_test_x conftest$ac_exeext
1868 }; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=1
1875 fi
1876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878 # interfere with the next link command; also delete a directory that is
1879 # left behind by Apple's compiler. We do this before executing the actions.
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1883
1884 } # ac_fn_cxx_try_link
1885
1886 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1887 # --------------------------------------------
1888 # Tries to find the compile-time value of EXPR in a program that includes
1889 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1890 # computed
1891 ac_fn_c_compute_int ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if test "$cross_compiling" = yes; then
1895 # Depending upon the size, compute the lo and hi bounds.
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 int
1900 main ()
1901 {
1902 static int test_array [1 - 2 * !(($2) >= 0)];
1903 test_array [0] = 0
1904
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_lo=0 ac_mid=0
1911 while :; do
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 int
1916 main ()
1917 {
1918 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1919 test_array [0] = 0
1920
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_hi=$ac_mid; break
1927 else
1928 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1929 if test $ac_lo -le $ac_mid; then
1930 ac_lo= ac_hi=
1931 break
1932 fi
1933 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 done
1937 else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $4
1941 int
1942 main ()
1943 {
1944 static int test_array [1 - 2 * !(($2) < 0)];
1945 test_array [0] = 0
1946
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_hi=-1 ac_mid=-1
1953 while :; do
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 $4
1957 int
1958 main ()
1959 {
1960 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1961 test_array [0] = 0
1962
1963 ;
1964 return 0;
1965 }
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 ac_lo=$ac_mid; break
1969 else
1970 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1971 if test $ac_mid -le $ac_hi; then
1972 ac_lo= ac_hi=
1973 break
1974 fi
1975 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 done
1979 else
1980 ac_lo= ac_hi=
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 # Binary search between lo and hi bounds.
1986 while test "x$ac_lo" != "x$ac_hi"; do
1987 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 $4
1991 int
1992 main ()
1993 {
1994 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1995 test_array [0] = 0
1996
1997 ;
1998 return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_hi=$ac_mid
2003 else
2004 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 done
2008 case $ac_lo in #((
2009 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2010 '') ac_retval=1 ;;
2011 esac
2012 else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 $4
2016 static long int longval () { return $2; }
2017 static unsigned long int ulongval () { return $2; }
2018 #include <stdio.h>
2019 #include <stdlib.h>
2020 int
2021 main ()
2022 {
2023
2024 FILE *f = fopen ("conftest.val", "w");
2025 if (! f)
2026 return 1;
2027 if (($2) < 0)
2028 {
2029 long int i = longval ();
2030 if (i != ($2))
2031 return 1;
2032 fprintf (f, "%ld", i);
2033 }
2034 else
2035 {
2036 unsigned long int i = ulongval ();
2037 if (i != ($2))
2038 return 1;
2039 fprintf (f, "%lu", i);
2040 }
2041 /* Do not output a trailing newline, as this causes \r\n confusion
2042 on some platforms. */
2043 return ferror (f) || fclose (f) != 0;
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_run "$LINENO"; then :
2050 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2051 else
2052 ac_retval=1
2053 fi
2054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2055 conftest.$ac_objext conftest.beam conftest.$ac_ext
2056 rm -f conftest.val
2057
2058 fi
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 return $ac_retval
2061
2062 } # ac_fn_c_compute_int
2063 cat >config.log <<_ACEOF
2064 This file contains any messages produced by compilers while
2065 running configure, to aid debugging if configure makes a mistake.
2066
2067 It was created by package-unused $as_me version-unused, which was
2068 generated by GNU Autoconf 2.64. Invocation command line was
2069
2070 $ $0 $@
2071
2072 _ACEOF
2073 exec 5>>config.log
2074 {
2075 cat <<_ASUNAME
2076 ## --------- ##
2077 ## Platform. ##
2078 ## --------- ##
2079
2080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085
2086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2088
2089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2092 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2096
2097 _ASUNAME
2098
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 $as_echo "PATH: $as_dir"
2105 done
2106 IFS=$as_save_IFS
2107
2108 } >&5
2109
2110 cat >&5 <<_ACEOF
2111
2112
2113 ## ----------- ##
2114 ## Core tests. ##
2115 ## ----------- ##
2116
2117 _ACEOF
2118
2119
2120 # Keep a trace of the command line.
2121 # Strip out --no-create and --no-recursion so they do not pile up.
2122 # Strip out --silent because we don't want to record it for future runs.
2123 # Also quote any args containing shell meta-characters.
2124 # Make two passes to allow for proper duplicate-argument suppression.
2125 ac_configure_args=
2126 ac_configure_args0=
2127 ac_configure_args1=
2128 ac_must_keep_next=false
2129 for ac_pass in 1 2
2130 do
2131 for ac_arg
2132 do
2133 case $ac_arg in
2134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136 | -silent | --silent | --silen | --sile | --sil)
2137 continue ;;
2138 *\'*)
2139 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2140 esac
2141 case $ac_pass in
2142 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2143 2)
2144 as_fn_append ac_configure_args1 " '$ac_arg'"
2145 if test $ac_must_keep_next = true; then
2146 ac_must_keep_next=false # Got value, back to normal.
2147 else
2148 case $ac_arg in
2149 *=* | --config-cache | -C | -disable-* | --disable-* \
2150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152 | -with-* | --with-* | -without-* | --without-* | --x)
2153 case "$ac_configure_args0 " in
2154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2155 esac
2156 ;;
2157 -* ) ac_must_keep_next=true ;;
2158 esac
2159 fi
2160 as_fn_append ac_configure_args " '$ac_arg'"
2161 ;;
2162 esac
2163 done
2164 done
2165 { ac_configure_args0=; unset ac_configure_args0;}
2166 { ac_configure_args1=; unset ac_configure_args1;}
2167
2168 # When interrupted or exit'd, cleanup temporary files, and complete
2169 # config.log. We remove comments because anyway the quotes in there
2170 # would cause problems or look ugly.
2171 # WARNING: Use '\'' to represent an apostrophe within the trap.
2172 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2173 trap 'exit_status=$?
2174 # Save into config.log some information that might help in debugging.
2175 {
2176 echo
2177
2178 cat <<\_ASBOX
2179 ## ---------------- ##
2180 ## Cache variables. ##
2181 ## ---------------- ##
2182 _ASBOX
2183 echo
2184 # The following way of writing the cache mishandles newlines in values,
2185 (
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in #(
2189 *${as_nl}*)
2190 case $ac_var in #(
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193 esac
2194 case $ac_var in #(
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2198 esac ;;
2199 esac
2200 done
2201 (set) 2>&1 |
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2204 sed -n \
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207 ;; #(
2208 *)
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 ;;
2211 esac |
2212 sort
2213 )
2214 echo
2215
2216 cat <<\_ASBOX
2217 ## ----------------- ##
2218 ## Output variables. ##
2219 ## ----------------- ##
2220 _ASBOX
2221 echo
2222 for ac_var in $ac_subst_vars
2223 do
2224 eval ac_val=\$$ac_var
2225 case $ac_val in
2226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227 esac
2228 $as_echo "$ac_var='\''$ac_val'\''"
2229 done | sort
2230 echo
2231
2232 if test -n "$ac_subst_files"; then
2233 cat <<\_ASBOX
2234 ## ------------------- ##
2235 ## File substitutions. ##
2236 ## ------------------- ##
2237 _ASBOX
2238 echo
2239 for ac_var in $ac_subst_files
2240 do
2241 eval ac_val=\$$ac_var
2242 case $ac_val in
2243 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244 esac
2245 $as_echo "$ac_var='\''$ac_val'\''"
2246 done | sort
2247 echo
2248 fi
2249
2250 if test -s confdefs.h; then
2251 cat <<\_ASBOX
2252 ## ----------- ##
2253 ## confdefs.h. ##
2254 ## ----------- ##
2255 _ASBOX
2256 echo
2257 cat confdefs.h
2258 echo
2259 fi
2260 test "$ac_signal" != 0 &&
2261 $as_echo "$as_me: caught signal $ac_signal"
2262 $as_echo "$as_me: exit $exit_status"
2263 } >&5
2264 rm -f core *.core core.conftest.* &&
2265 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2266 exit $exit_status
2267 ' 0
2268 for ac_signal in 1 2 13 15; do
2269 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2270 done
2271 ac_signal=0
2272
2273 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2274 rm -f -r conftest* confdefs.h
2275
2276 $as_echo "/* confdefs.h */" > confdefs.h
2277
2278 # Predefined preprocessor variables.
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_NAME "$PACKAGE_NAME"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_STRING "$PACKAGE_STRING"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2298 _ACEOF
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_URL "$PACKAGE_URL"
2302 _ACEOF
2303
2304
2305 # Let the site file select an alternate cache file if it wants to.
2306 # Prefer an explicitly selected file to automatically selected ones.
2307 ac_site_file1=NONE
2308 ac_site_file2=NONE
2309 if test -n "$CONFIG_SITE"; then
2310 ac_site_file1=$CONFIG_SITE
2311 elif test "x$prefix" != xNONE; then
2312 ac_site_file1=$prefix/share/config.site
2313 ac_site_file2=$prefix/etc/config.site
2314 else
2315 ac_site_file1=$ac_default_prefix/share/config.site
2316 ac_site_file2=$ac_default_prefix/etc/config.site
2317 fi
2318 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2319 do
2320 test "x$ac_site_file" = xNONE && continue
2321 if test -r "$ac_site_file"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2323 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2324 sed 's/^/| /' "$ac_site_file" >&5
2325 . "$ac_site_file"
2326 fi
2327 done
2328
2329 if test -r "$cache_file"; then
2330 # Some versions of bash will fail to source /dev/null (special
2331 # files actually), so we avoid doing that.
2332 if test -f "$cache_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2334 $as_echo "$as_me: loading cache $cache_file" >&6;}
2335 case $cache_file in
2336 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2337 *) . "./$cache_file";;
2338 esac
2339 fi
2340 else
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2342 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 >$cache_file
2344 fi
2345
2346 # Check that the precious variables saved in the cache have kept the same
2347 # value.
2348 ac_cache_corrupted=false
2349 for ac_var in $ac_precious_vars; do
2350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2351 eval ac_new_set=\$ac_env_${ac_var}_set
2352 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2353 eval ac_new_val=\$ac_env_${ac_var}_value
2354 case $ac_old_set,$ac_new_set in
2355 set,)
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2358 ac_cache_corrupted=: ;;
2359 ,set)
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2362 ac_cache_corrupted=: ;;
2363 ,);;
2364 *)
2365 if test "x$ac_old_val" != "x$ac_new_val"; then
2366 # differences in whitespace do not lead to failure.
2367 ac_old_val_w=`echo x $ac_old_val`
2368 ac_new_val_w=`echo x $ac_new_val`
2369 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2371 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372 ac_cache_corrupted=:
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2375 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376 eval $ac_var=\$ac_old_val
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2379 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2381 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2382 fi;;
2383 esac
2384 # Pass precious variables to config.status.
2385 if test "$ac_new_set" = set; then
2386 case $ac_new_val in
2387 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 *) ac_arg=$ac_var=$ac_new_val ;;
2389 esac
2390 case " $ac_configure_args " in
2391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2392 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2393 esac
2394 fi
2395 done
2396 if $ac_cache_corrupted; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2400 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2401 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2402 fi
2403 ## -------------------- ##
2404 ## Main body of script. ##
2405 ## -------------------- ##
2406
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412
2413
2414
2415
2416
2417
2418
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2420 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2421 # Check whether --enable-version-specific-runtime-libs was given.
2422 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2423 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2424 yes) version_specific_libs=yes ;;
2425 no) version_specific_libs=no ;;
2426 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2427 esac
2428 else
2429 version_specific_libs=no
2430 fi
2431
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2433 $as_echo "$version_specific_libs" >&6; }
2434
2435 # Do not delete or change the following two lines. For why, see
2436 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2437 ac_aux_dir=
2438 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2439 for ac_t in install-sh install.sh shtool; do
2440 if test -f "$ac_dir/$ac_t"; then
2441 ac_aux_dir=$ac_dir
2442 ac_install_sh="$ac_aux_dir/$ac_t -c"
2443 break 2
2444 fi
2445 done
2446 done
2447 if test -z "$ac_aux_dir"; then
2448 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2449 fi
2450
2451 # These three variables are undocumented and unsupported,
2452 # and are intended to be withdrawn in a future Autoconf release.
2453 # They can cause serious problems if a builder's source tree is in a directory
2454 # whose full name contains unusual characters.
2455 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2456 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2457 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2458
2459
2460 # Make sure we can run config.sub.
2461 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2462 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2463
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2465 $as_echo_n "checking build system type... " >&6; }
2466 if test "${ac_cv_build+set}" = set; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 ac_build_alias=$build_alias
2470 test "x$ac_build_alias" = x &&
2471 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2472 test "x$ac_build_alias" = x &&
2473 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2474 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2475 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2476
2477 fi
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2479 $as_echo "$ac_cv_build" >&6; }
2480 case $ac_cv_build in
2481 *-*-*) ;;
2482 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2483 esac
2484 build=$ac_cv_build
2485 ac_save_IFS=$IFS; IFS='-'
2486 set x $ac_cv_build
2487 shift
2488 build_cpu=$1
2489 build_vendor=$2
2490 shift; shift
2491 # Remember, the first character of IFS is used to create $*,
2492 # except with old shells:
2493 build_os=$*
2494 IFS=$ac_save_IFS
2495 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2496
2497
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2499 $as_echo_n "checking host system type... " >&6; }
2500 if test "${ac_cv_host+set}" = set; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test "x$host_alias" = x; then
2504 ac_cv_host=$ac_cv_build
2505 else
2506 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2507 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2508 fi
2509
2510 fi
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2512 $as_echo "$ac_cv_host" >&6; }
2513 case $ac_cv_host in
2514 *-*-*) ;;
2515 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2516 esac
2517 host=$ac_cv_host
2518 ac_save_IFS=$IFS; IFS='-'
2519 set x $ac_cv_host
2520 shift
2521 host_cpu=$1
2522 host_vendor=$2
2523 shift; shift
2524 # Remember, the first character of IFS is used to create $*,
2525 # except with old shells:
2526 host_os=$*
2527 IFS=$ac_save_IFS
2528 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2529
2530
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2532 $as_echo_n "checking target system type... " >&6; }
2533 if test "${ac_cv_target+set}" = set; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test "x$target_alias" = x; then
2537 ac_cv_target=$ac_cv_host
2538 else
2539 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2540 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2541 fi
2542
2543 fi
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2545 $as_echo "$ac_cv_target" >&6; }
2546 case $ac_cv_target in
2547 *-*-*) ;;
2548 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2549 esac
2550 target=$ac_cv_target
2551 ac_save_IFS=$IFS; IFS='-'
2552 set x $ac_cv_target
2553 shift
2554 target_cpu=$1
2555 target_vendor=$2
2556 shift; shift
2557 # Remember, the first character of IFS is used to create $*,
2558 # except with old shells:
2559 target_os=$*
2560 IFS=$ac_save_IFS
2561 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2562
2563
2564 # The aliases save the names the user supplied, while $host etc.
2565 # will get canonicalized.
2566 test -n "$target_alias" &&
2567 test "$program_prefix$program_suffix$program_transform_name" = \
2568 NONENONEs,x,x, &&
2569 program_prefix=${target_alias}-
2570
2571 target_alias=${target_alias-$host_alias}
2572
2573 case ${build_alias} in
2574 "") build_noncanonical=${build} ;;
2575 *) build_noncanonical=${build_alias} ;;
2576 esac
2577
2578 case ${host_alias} in
2579 "") host_noncanonical=${build_noncanonical} ;;
2580 *) host_noncanonical=${host_alias} ;;
2581 esac
2582
2583 case ${target_alias} in
2584 "") target_noncanonical=${host_noncanonical} ;;
2585 *) target_noncanonical=${target_alias} ;;
2586 esac
2587
2588
2589
2590
2591
2592 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2593 -I\$(top_builddir)/../libstdc++-v3/include \
2594 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2595 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2596
2597
2598
2599 am__api_version='1.11'
2600
2601 # Find a good install program. We prefer a C program (faster),
2602 # so one script is as good as another. But avoid the broken or
2603 # incompatible versions:
2604 # SysV /etc/install, /usr/sbin/install
2605 # SunOS /usr/etc/install
2606 # IRIX /sbin/install
2607 # AIX /bin/install
2608 # AmigaOS /C/install, which installs bootblocks on floppy discs
2609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2612 # OS/2's system install, which has a completely different semantic
2613 # ./install, which can be erroneously created by make from ./install.sh.
2614 # Reject install programs that cannot install multiple files.
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2616 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2617 if test -z "$INSTALL"; then
2618 if test "${ac_cv_path_install+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 # Account for people who put trailing slashes in PATH elements.
2627 case $as_dir/ in #((
2628 ./ | .// | /[cC]/* | \
2629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2630 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2631 /usr/ucb/* ) ;;
2632 *)
2633 # OSF1 and SCO ODT 3.0 have their own names for install.
2634 # Don't use installbsd from OSF since it installs stuff as root
2635 # by default.
2636 for ac_prog in ginstall scoinst install; do
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2639 if test $ac_prog = install &&
2640 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641 # AIX install. It has an incompatible calling convention.
2642 :
2643 elif test $ac_prog = install &&
2644 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2645 # program-specific install script used by HP pwplus--don't use.
2646 :
2647 else
2648 rm -rf conftest.one conftest.two conftest.dir
2649 echo one > conftest.one
2650 echo two > conftest.two
2651 mkdir conftest.dir
2652 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2653 test -s conftest.one && test -s conftest.two &&
2654 test -s conftest.dir/conftest.one &&
2655 test -s conftest.dir/conftest.two
2656 then
2657 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2658 break 3
2659 fi
2660 fi
2661 fi
2662 done
2663 done
2664 ;;
2665 esac
2666
2667 done
2668 IFS=$as_save_IFS
2669
2670 rm -rf conftest.one conftest.two conftest.dir
2671
2672 fi
2673 if test "${ac_cv_path_install+set}" = set; then
2674 INSTALL=$ac_cv_path_install
2675 else
2676 # As a last resort, use the slow shell script. Don't cache a
2677 # value for INSTALL within a source directory, because that will
2678 # break other packages using the cache if that directory is
2679 # removed, or if the value is a relative name.
2680 INSTALL=$ac_install_sh
2681 fi
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2684 $as_echo "$INSTALL" >&6; }
2685
2686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2687 # It thinks the first close brace ends the variable substitution.
2688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2689
2690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2691
2692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2693
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2695 $as_echo_n "checking whether build environment is sane... " >&6; }
2696 # Just in case
2697 sleep 1
2698 echo timestamp > conftest.file
2699 # Reject unsafe characters in $srcdir or the absolute working directory
2700 # name. Accept space and tab only in the latter.
2701 am_lf='
2702 '
2703 case `pwd` in
2704 *[\\\"\#\$\&\'\`$am_lf]*)
2705 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2706 esac
2707 case $srcdir in
2708 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2709 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2710 esac
2711
2712 # Do `set' in a subshell so we don't clobber the current shell's
2713 # arguments. Must try -L first in case configure is actually a
2714 # symlink; some systems play weird games with the mod time of symlinks
2715 # (eg FreeBSD returns the mod time of the symlink's containing
2716 # directory).
2717 if (
2718 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2719 if test "$*" = "X"; then
2720 # -L didn't work.
2721 set X `ls -t "$srcdir/configure" conftest.file`
2722 fi
2723 rm -f conftest.file
2724 if test "$*" != "X $srcdir/configure conftest.file" \
2725 && test "$*" != "X conftest.file $srcdir/configure"; then
2726
2727 # If neither matched, then we have a broken ls. This can happen
2728 # if, for instance, CONFIG_SHELL is bash and it inherits a
2729 # broken ls alias from the environment. This has actually
2730 # happened. Such a system could not be considered "sane".
2731 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2732 alias in your environment" "$LINENO" 5
2733 fi
2734
2735 test "$2" = conftest.file
2736 )
2737 then
2738 # Ok.
2739 :
2740 else
2741 as_fn_error "newly created file is older than distributed files!
2742 Check your system clock" "$LINENO" 5
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745 $as_echo "yes" >&6; }
2746 test "$program_prefix" != NONE &&
2747 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2748 # Use a double $ so make ignores it.
2749 test "$program_suffix" != NONE &&
2750 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2751 # Double any \ or $.
2752 # By default was `s,x,x', remove it if useless.
2753 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2754 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2755
2756 # expand $ac_aux_dir to an absolute path
2757 am_aux_dir=`cd $ac_aux_dir && pwd`
2758
2759 if test x"${MISSING+set}" != xset; then
2760 case $am_aux_dir in
2761 *\ * | *\ *)
2762 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2763 *)
2764 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2765 esac
2766 fi
2767 # Use eval to expand $SHELL
2768 if eval "$MISSING --run true"; then
2769 am_missing_run="$MISSING --run "
2770 else
2771 am_missing_run=
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2773 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2774 fi
2775
2776 if test x"${install_sh}" != xset; then
2777 case $am_aux_dir in
2778 *\ * | *\ *)
2779 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2780 *)
2781 install_sh="\${SHELL} $am_aux_dir/install-sh"
2782 esac
2783 fi
2784
2785 # Installed binaries are usually stripped using `strip' when the user
2786 # run `make install-strip'. However `strip' might not be the right
2787 # tool to use in cross-compilation environments, therefore Automake
2788 # will honor the `STRIP' environment variable to overrule this program.
2789 if test "$cross_compiling" != no; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}strip; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_STRIP+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$STRIP"; then
2799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 STRIP=$ac_cv_prog_STRIP
2819 if test -n "$STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2821 $as_echo "$STRIP" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827
2828 fi
2829 if test -z "$ac_cv_prog_STRIP"; then
2830 ac_ct_STRIP=$STRIP
2831 # Extract the first word of "strip", so it can be a program name with args.
2832 set dummy strip; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$ac_ct_STRIP"; then
2839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_ac_ct_STRIP="strip"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2859 if test -n "$ac_ct_STRIP"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2861 $as_echo "$ac_ct_STRIP" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867 if test "x$ac_ct_STRIP" = x; then
2868 STRIP=":"
2869 else
2870 case $cross_compiling:$ac_tool_warned in
2871 yes:)
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874 ac_tool_warned=yes ;;
2875 esac
2876 STRIP=$ac_ct_STRIP
2877 fi
2878 else
2879 STRIP="$ac_cv_prog_STRIP"
2880 fi
2881
2882 fi
2883 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2884
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2886 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2887 if test -z "$MKDIR_P"; then
2888 if test "${ac_cv_path_mkdir+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_prog in mkdir gmkdir; do
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2899 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2900 'mkdir (GNU coreutils) '* | \
2901 'mkdir (coreutils) '* | \
2902 'mkdir (fileutils) '4.1*)
2903 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2904 break 3;;
2905 esac
2906 done
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912
2913 if test "${ac_cv_path_mkdir+set}" = set; then
2914 MKDIR_P="$ac_cv_path_mkdir -p"
2915 else
2916 # As a last resort, use the slow shell script. Don't cache a
2917 # value for MKDIR_P within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the value is a relative name.
2920 test -d ./--version && rmdir ./--version
2921 MKDIR_P="$ac_install_sh -d"
2922 fi
2923 fi
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2925 $as_echo "$MKDIR_P" >&6; }
2926
2927 mkdir_p="$MKDIR_P"
2928 case $mkdir_p in
2929 [\\/$]* | ?:[\\/]*) ;;
2930 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2931 esac
2932
2933 for ac_prog in gawk mawk nawk awk
2934 do
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if test "${ac_cv_prog_AWK+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$AWK"; then
2943 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_AWK="$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 AWK=$ac_cv_prog_AWK
2963 if test -n "$AWK"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2965 $as_echo "$AWK" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971
2972 test -n "$AWK" && break
2973 done
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2977 set x ${MAKE-make}
2978 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2979 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 cat >conftest.make <<\_ACEOF
2983 SHELL = /bin/sh
2984 all:
2985 @echo '@@@%%%=$(MAKE)=@@@%%%'
2986 _ACEOF
2987 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2989 *@@@%%%=?*=@@@%%%*)
2990 eval ac_cv_prog_make_${ac_make}_set=yes;;
2991 *)
2992 eval ac_cv_prog_make_${ac_make}_set=no;;
2993 esac
2994 rm -f conftest.make
2995 fi
2996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998 $as_echo "yes" >&6; }
2999 SET_MAKE=
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 SET_MAKE="MAKE=${MAKE-make}"
3004 fi
3005
3006 rm -rf .tst 2>/dev/null
3007 mkdir .tst 2>/dev/null
3008 if test -d .tst; then
3009 am__leading_dot=.
3010 else
3011 am__leading_dot=_
3012 fi
3013 rmdir .tst 2>/dev/null
3014
3015 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3016 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3017 # is not polluted with repeated "-I."
3018 am__isrc=' -I$(srcdir)'
3019 # test to see if srcdir already configured
3020 if test -f $srcdir/config.status; then
3021 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3022 fi
3023 fi
3024
3025 # test whether we have cygpath
3026 if test -z "$CYGPATH_W"; then
3027 if (cygpath --version) >/dev/null 2>/dev/null; then
3028 CYGPATH_W='cygpath -w'
3029 else
3030 CYGPATH_W=echo
3031 fi
3032 fi
3033
3034
3035 # Define the identity of the package.
3036 PACKAGE='package-unused'
3037 VERSION='version-unused'
3038
3039
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE "$PACKAGE"
3042 _ACEOF
3043
3044
3045 cat >>confdefs.h <<_ACEOF
3046 #define VERSION "$VERSION"
3047 _ACEOF
3048
3049 # Some tools Automake needs.
3050
3051 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052
3053
3054 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055
3056
3057 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058
3059
3060 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061
3062
3063 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064
3065 # We need awk for the "check" target. The system "awk" is bad on
3066 # some platforms.
3067 # Always define AMTAR for backward compatibility.
3068
3069 AMTAR=${AMTAR-"${am_missing_run}tar"}
3070
3071 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3072
3073
3074
3075
3076
3077 # Default to --enable-multilib
3078 # Check whether --enable-multilib was given.
3079 if test "${enable_multilib+set}" = set; then :
3080 enableval=$enable_multilib; case "$enableval" in
3081 yes) multilib=yes ;;
3082 no) multilib=no ;;
3083 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3084 esac
3085 else
3086 multilib=yes
3087 fi
3088
3089
3090 # We may get other options which we leave undocumented:
3091 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3092 # See config-ml.in if you want the gory details.
3093
3094 if test "$srcdir" = "."; then
3095 if test "$with_target_subdir" != "."; then
3096 multi_basedir="$srcdir/$with_multisrctop../.."
3097 else
3098 multi_basedir="$srcdir/$with_multisrctop.."
3099 fi
3100 else
3101 multi_basedir="$srcdir/.."
3102 fi
3103
3104
3105 # Even if the default multilib is not a cross compilation,
3106 # it may be that some of the other multilibs are.
3107 if test $cross_compiling = no && test $multilib = yes \
3108 && test "x${with_multisubdir}" != x ; then
3109 cross_compiling=maybe
3110 fi
3111
3112 ac_config_commands="$ac_config_commands default-1"
3113
3114
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3116 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3117 # Check whether --enable-maintainer-mode was given.
3118 if test "${enable_maintainer_mode+set}" = set; then :
3119 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3120 else
3121 USE_MAINTAINER_MODE=no
3122 fi
3123
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3125 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3126 if test $USE_MAINTAINER_MODE = yes; then
3127 MAINTAINER_MODE_TRUE=
3128 MAINTAINER_MODE_FALSE='#'
3129 else
3130 MAINTAINER_MODE_TRUE='#'
3131 MAINTAINER_MODE_FALSE=
3132 fi
3133
3134 MAINT=$MAINTAINER_MODE_TRUE
3135
3136
3137
3138 # Calculate toolexeclibdir
3139 # Also toolexecdir, though it's only used in toolexeclibdir
3140 case ${version_specific_libs} in
3141 yes)
3142 # Need the gcc compiler version to know where to install libraries
3143 # and header files if --enable-version-specific-runtime-libs option
3144 # is selected.
3145 toolexecdir='$(libdir)/gcc/$(target_alias)'
3146 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3147 ;;
3148 no)
3149 if test -n "$with_cross_host" &&
3150 test x"$with_cross_host" != x"no"; then
3151 # Install a library built with a cross compiler in tooldir, not libdir.
3152 toolexecdir='$(exec_prefix)/$(target_alias)'
3153 toolexeclibdir='$(toolexecdir)/lib'
3154 else
3155 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3156 toolexeclibdir='$(libdir)'
3157 fi
3158 multi_os_directory=`$CC -print-multi-os-directory`
3159 case $multi_os_directory in
3160 .) ;; # Avoid trailing /.
3161 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3162 esac
3163 ;;
3164 esac
3165
3166
3167
3168 # Checks for programs.
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174 if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3176 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_CC+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196 done
3197 done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212 fi
3213 if test -z "$ac_cv_prog_CC"; then
3214 ac_ct_CC=$CC
3215 # Extract the first word of "gcc", so it can be a program name with args.
3216 set dummy gcc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$ac_ct_CC"; then
3223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232 ac_cv_prog_ac_ct_CC="gcc"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3243 if test -n "$ac_ct_CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3245 $as_echo "$ac_ct_CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251 if test "x$ac_ct_CC" = x; then
3252 CC=""
3253 else
3254 case $cross_compiling:$ac_tool_warned in
3255 yes:)
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3258 ac_tool_warned=yes ;;
3259 esac
3260 CC=$ac_ct_CC
3261 fi
3262 else
3263 CC="$ac_cv_prog_CC"
3264 fi
3265
3266 if test -z "$CC"; then
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3269 set dummy ${ac_tool_prefix}cc; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_CC+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_CC="${ac_tool_prefix}cc"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 CC=$ac_cv_prog_CC
3296 if test -n "$CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298 $as_echo "$CC" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304
3305 fi
3306 fi
3307 if test -z "$CC"; then
3308 # Extract the first word of "cc", so it can be a program name with args.
3309 set dummy cc; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if test "${ac_cv_prog_CC+set}" = set; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 ac_prog_rejected=no
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3327 ac_prog_rejected=yes
3328 continue
3329 fi
3330 ac_cv_prog_CC="cc"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 if test $ac_prog_rejected = yes; then
3339 # We found a bogon in the path, so make sure we never use it.
3340 set dummy $ac_cv_prog_CC
3341 shift
3342 if test $# != 0; then
3343 # We chose a different compiler from the bogus one.
3344 # However, it has the same basename, so the bogon will be chosen
3345 # first if we set CC to just the basename; use the full file name.
3346 shift
3347 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3348 fi
3349 fi
3350 fi
3351 fi
3352 CC=$ac_cv_prog_CC
3353 if test -n "$CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362 fi
3363 if test -z "$CC"; then
3364 if test -n "$ac_tool_prefix"; then
3365 for ac_prog in cl.exe
3366 do
3367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_CC+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3387 fi
3388 done
3389 done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 CC=$ac_cv_prog_CC
3395 if test -n "$CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397 $as_echo "$CC" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403
3404 test -n "$CC" && break
3405 done
3406 fi
3407 if test -z "$CC"; then
3408 ac_ct_CC=$CC
3409 for ac_prog in cl.exe
3410 do
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$ac_ct_CC"; then
3419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 ac_cv_prog_ac_ct_CC="$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3439 if test -n "$ac_ct_CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3441 $as_echo "$ac_ct_CC" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448 test -n "$ac_ct_CC" && break
3449 done
3450
3451 if test "x$ac_ct_CC" = x; then
3452 CC=""
3453 else
3454 case $cross_compiling:$ac_tool_warned in
3455 yes:)
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458 ac_tool_warned=yes ;;
3459 esac
3460 CC=$ac_ct_CC
3461 fi
3462 fi
3463
3464 fi
3465
3466
3467 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error "no acceptable C compiler found in \$PATH
3470 See \`config.log' for more details." "$LINENO" 5; }
3471
3472 # Provide some information about the compiler.
3473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3474 set X $ac_compile
3475 ac_compiler=$2
3476 for ac_option in --version -v -V -qversion; do
3477 { { ac_try="$ac_compiler $ac_option >&5"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3485 ac_status=$?
3486 if test -s conftest.err; then
3487 sed '10a\
3488 ... rest of stderr output deleted ...
3489 10q' conftest.err >conftest.er1
3490 cat conftest.er1 >&5
3491 rm -f conftest.er1 conftest.err
3492 fi
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }
3495 done
3496
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499
3500 int
3501 main ()
3502 {
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 ac_clean_files_save=$ac_clean_files
3509 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3510 # Try to create an executable without -o first, disregard a.out.
3511 # It will help us diagnose broken compilers, and finding out an intuition
3512 # of exeext.
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3514 $as_echo_n "checking for C compiler default output file name... " >&6; }
3515 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3516
3517 # The possible output files:
3518 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3519
3520 ac_rmfiles=
3521 for ac_file in $ac_files
3522 do
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3526 esac
3527 done
3528 rm -f $ac_rmfiles
3529
3530 if { { ac_try="$ac_link_default"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_link_default") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }; then :
3541 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3542 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3543 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3544 # so that the user can short-circuit this test for compilers unknown to
3545 # Autoconf.
3546 for ac_file in $ac_files ''
3547 do
3548 test -f "$ac_file" || continue
3549 case $ac_file in
3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3551 ;;
3552 [ab].out )
3553 # We found the default executable, but exeext='' is most
3554 # certainly right.
3555 break;;
3556 *.* )
3557 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3558 then :; else
3559 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560 fi
3561 # We set ac_cv_exeext here because the later test for it is not
3562 # safe: cross compilers may not add the suffix if given an `-o'
3563 # argument, so we may need to know it at that point already.
3564 # Even if this section looks crufty: it has the advantage of
3565 # actually working.
3566 break;;
3567 * )
3568 break;;
3569 esac
3570 done
3571 test "$ac_cv_exeext" = no && ac_cv_exeext=
3572
3573 else
3574 ac_file=''
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3577 $as_echo "$ac_file" >&6; }
3578 if test -z "$ac_file"; then :
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 { as_fn_set_status 77
3585 as_fn_error "C compiler cannot create executables
3586 See \`config.log' for more details." "$LINENO" 5; }; }
3587 fi
3588 ac_exeext=$ac_cv_exeext
3589
3590 # Check that the compiler produces executables we can run. If not, either
3591 # the compiler is broken, or we cross compile.
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3593 $as_echo_n "checking whether the C compiler works... " >&6; }
3594 # If not cross compiling, check that we can run a simple program.
3595 if test "$cross_compiling" != yes; then
3596 if { ac_try='./$ac_file'
3597 { { case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_try") 2>&5
3604 ac_status=$?
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }; }; then
3607 cross_compiling=no
3608 else
3609 if test "$cross_compiling" = maybe; then
3610 cross_compiling=yes
3611 else
3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error "cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." "$LINENO" 5; }
3617 fi
3618 fi
3619 fi
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3621 $as_echo "yes" >&6; }
3622
3623 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3624 ac_clean_files=$ac_clean_files_save
3625 # Check that the compiler produces executables we can run. If not, either
3626 # the compiler is broken, or we cross compile.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3628 $as_echo_n "checking whether we are cross compiling... " >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3630 $as_echo "$cross_compiling" >&6; }
3631
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3633 $as_echo_n "checking for suffix of executables... " >&6; }
3634 if { { ac_try="$ac_link"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 $as_echo "$ac_try_echo"; } >&5
3641 (eval "$ac_link") 2>&5
3642 ac_status=$?
3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644 test $ac_status = 0; }; then :
3645 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3646 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3647 # work properly (i.e., refer to `conftest.exe'), while it won't with
3648 # `rm'.
3649 for ac_file in conftest.exe conftest conftest.*; do
3650 test -f "$ac_file" || continue
3651 case $ac_file in
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3654 break;;
3655 * ) break;;
3656 esac
3657 done
3658 else
3659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error "cannot compute suffix of executables: cannot compile and link
3662 See \`config.log' for more details." "$LINENO" 5; }
3663 fi
3664 rm -f conftest$ac_cv_exeext
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3666 $as_echo "$ac_cv_exeext" >&6; }
3667
3668 rm -f conftest.$ac_ext
3669 EXEEXT=$ac_cv_exeext
3670 ac_exeext=$EXEEXT
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3672 $as_echo_n "checking for suffix of object files... " >&6; }
3673 if test "${ac_cv_objext+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 rm -f conftest.o conftest.obj
3688 if { { ac_try="$ac_compile"
3689 case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_compile") 2>&5
3696 ac_status=$?
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; then :
3699 for ac_file in conftest.o conftest.obj conftest.*; do
3700 test -f "$ac_file" || continue;
3701 case $ac_file in
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3703 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3704 break;;
3705 esac
3706 done
3707 else
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error "cannot compute suffix of object files: cannot compile
3714 See \`config.log' for more details." "$LINENO" 5; }
3715 fi
3716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3719 $as_echo "$ac_cv_objext" >&6; }
3720 OBJEXT=$ac_cv_objext
3721 ac_objext=$OBJEXT
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3723 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3724 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729
3730 int
3731 main ()
3732 {
3733 #ifndef __GNUC__
3734 choke me
3735 #endif
3736
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_compiler_gnu=yes
3743 else
3744 ac_compiler_gnu=no
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3748
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3751 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3752 if test $ac_compiler_gnu = yes; then
3753 GCC=yes
3754 else
3755 GCC=
3756 fi
3757 ac_test_CFLAGS=${CFLAGS+set}
3758 ac_save_CFLAGS=$CFLAGS
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3760 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3761 if test "${ac_cv_prog_cc_g+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 ac_save_c_werror_flag=$ac_c_werror_flag
3765 ac_c_werror_flag=yes
3766 ac_cv_prog_cc_g=no
3767 CFLAGS="-g"
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770
3771 int
3772 main ()
3773 {
3774
3775 ;
3776 return 0;
3777 }
3778 _ACEOF
3779 if ac_fn_c_try_compile "$LINENO"; then :
3780 ac_cv_prog_cc_g=yes
3781 else
3782 CFLAGS=""
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785
3786 int
3787 main ()
3788 {
3789
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795
3796 else
3797 ac_c_werror_flag=$ac_save_c_werror_flag
3798 CFLAGS="-g"
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_prog_cc_g=yes
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 ac_c_werror_flag=$ac_save_c_werror_flag
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3821 $as_echo "$ac_cv_prog_cc_g" >&6; }
3822 if test "$ac_test_CFLAGS" = set; then
3823 CFLAGS=$ac_save_CFLAGS
3824 elif test $ac_cv_prog_cc_g = yes; then
3825 if test "$GCC" = yes; then
3826 CFLAGS="-g -O2"
3827 else
3828 CFLAGS="-g"
3829 fi
3830 else
3831 if test "$GCC" = yes; then
3832 CFLAGS="-O2"
3833 else
3834 CFLAGS=
3835 fi
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3838 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3839 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 ac_cv_prog_cc_c89=no
3843 ac_save_CC=$CC
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846 #include <stdarg.h>
3847 #include <stdio.h>
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3854 char **p;
3855 int i;
3856 {
3857 return p[i];
3858 }
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3860 {
3861 char *s;
3862 va_list v;
3863 va_start (v,p);
3864 s = g (p, va_arg (v,int));
3865 va_end (v);
3866 return s;
3867 }
3868
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
3872 as 'x'. The following induces an error, until -std is added to get
3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
3875 that's true only with -std. */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3880 #define FOO(x) 'x'
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 int argc;
3888 char **argv;
3889 int
3890 main ()
3891 {
3892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3899 do
3900 CC="$ac_save_CC $ac_arg"
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902 ac_cv_prog_cc_c89=$ac_arg
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext
3905 test "x$ac_cv_prog_cc_c89" != "xno" && break
3906 done
3907 rm -f conftest.$ac_ext
3908 CC=$ac_save_CC
3909
3910 fi
3911 # AC_CACHE_VAL
3912 case "x$ac_cv_prog_cc_c89" in
3913 x)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3915 $as_echo "none needed" >&6; } ;;
3916 xno)
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3918 $as_echo "unsupported" >&6; } ;;
3919 *)
3920 CC="$CC $ac_cv_prog_cc_c89"
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3922 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3923 esac
3924 if test "x$ac_cv_prog_cc_c89" != xno; then :
3925
3926 fi
3927
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 DEPDIR="${am__leading_dot}deps"
3934
3935 ac_config_commands="$ac_config_commands depfiles"
3936
3937
3938 am_make=${MAKE-make}
3939 cat > confinc << 'END'
3940 am__doit:
3941 @echo this is the am__doit target
3942 .PHONY: am__doit
3943 END
3944 # If we don't find an include directive, just comment out the code.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3946 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3947 am__include="#"
3948 am__quote=
3949 _am_result=none
3950 # First try GNU make style include.
3951 echo "include confinc" > confmf
3952 # Ignore all kinds of additional output from `make'.
3953 case `$am_make -s -f confmf 2> /dev/null` in #(
3954 *the\ am__doit\ target*)
3955 am__include=include
3956 am__quote=
3957 _am_result=GNU
3958 ;;
3959 esac
3960 # Now try BSD make style include.
3961 if test "$am__include" = "#"; then
3962 echo '.include "confinc"' > confmf
3963 case `$am_make -s -f confmf 2> /dev/null` in #(
3964 *the\ am__doit\ target*)
3965 am__include=.include
3966 am__quote="\""
3967 _am_result=BSD
3968 ;;
3969 esac
3970 fi
3971
3972
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3974 $as_echo "$_am_result" >&6; }
3975 rm -f confinc confmf
3976
3977 # Check whether --enable-dependency-tracking was given.
3978 if test "${enable_dependency_tracking+set}" = set; then :
3979 enableval=$enable_dependency_tracking;
3980 fi
3981
3982 if test "x$enable_dependency_tracking" != xno; then
3983 am_depcomp="$ac_aux_dir/depcomp"
3984 AMDEPBACKSLASH='\'
3985 fi
3986 if test "x$enable_dependency_tracking" != xno; then
3987 AMDEP_TRUE=
3988 AMDEP_FALSE='#'
3989 else
3990 AMDEP_TRUE='#'
3991 AMDEP_FALSE=
3992 fi
3993
3994
3995
3996 depcc="$CC" am_compiler_list=
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999 $as_echo_n "checking dependency style of $depcc... " >&6; }
4000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004 # We make a subdir and do the tests there. Otherwise we can end up
4005 # making bogus files that we don't know about and never remove. For
4006 # instance it was reported that on HP-UX the gcc test will end up
4007 # making a dummy file named `D' -- because `-MD' means `put the output
4008 # in D'.
4009 mkdir conftest.dir
4010 # Copy depcomp to subdir because otherwise we won't find it if we're
4011 # using a relative directory.
4012 cp "$am_depcomp" conftest.dir
4013 cd conftest.dir
4014 # We will build objects and dependencies in a subdirectory because
4015 # it helps to detect inapplicable dependency modes. For instance
4016 # both Tru64's cc and ICC support -MD to output dependencies as a
4017 # side effect of compilation, but ICC will put the dependencies in
4018 # the current directory while Tru64 will put them in the object
4019 # directory.
4020 mkdir sub
4021
4022 am_cv_CC_dependencies_compiler_type=none
4023 if test "$am_compiler_list" = ""; then
4024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4025 fi
4026 am__universal=false
4027 case " $depcc " in #(
4028 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4029 esac
4030
4031 for depmode in $am_compiler_list; do
4032 # Setup a source with many dependencies, because some compilers
4033 # like to wrap large dependency lists on column 80 (with \), and
4034 # we should not choose a depcomp mode which is confused by this.
4035 #
4036 # We need to recreate these files for each test, as the compiler may
4037 # overwrite some of them when testing with obscure command lines.
4038 # This happens at least with the AIX C compiler.
4039 : > sub/conftest.c
4040 for i in 1 2 3 4 5 6; do
4041 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4042 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4043 # Solaris 8's {/usr,}/bin/sh.
4044 touch sub/conftst$i.h
4045 done
4046 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4047
4048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4049 # mode. It turns out that the SunPro C++ compiler does not properly
4050 # handle `-M -o', and we need to detect this. Also, some Intel
4051 # versions had trouble with output in subdirs
4052 am__obj=sub/conftest.${OBJEXT-o}
4053 am__minus_obj="-o $am__obj"
4054 case $depmode in
4055 gcc)
4056 # This depmode causes a compiler race in universal mode.
4057 test "$am__universal" = false || continue
4058 ;;
4059 nosideeffect)
4060 # after this tag, mechanisms are not by side-effect, so they'll
4061 # only be used when explicitly requested
4062 if test "x$enable_dependency_tracking" = xyes; then
4063 continue
4064 else
4065 break
4066 fi
4067 ;;
4068 msvisualcpp | msvcmsys)
4069 # This compiler won't grok `-c -o', but also, the minuso test has
4070 # not run yet. These depmodes are late enough in the game, and
4071 # so weak that their functioning should not be impacted.
4072 am__obj=conftest.${OBJEXT-o}
4073 am__minus_obj=
4074 ;;
4075 none) break ;;
4076 esac
4077 if depmode=$depmode \
4078 source=sub/conftest.c object=$am__obj \
4079 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4080 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4081 >/dev/null 2>conftest.err &&
4082 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4083 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4085 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4086 # icc doesn't choke on unknown options, it will just issue warnings
4087 # or remarks (even with -Werror). So we grep stderr for any message
4088 # that says an option was ignored or not supported.
4089 # When given -MP, icc 7.0 and 7.1 complain thusly:
4090 # icc: Command line warning: ignoring option '-M'; no argument required
4091 # The diagnosis changed in icc 8.0:
4092 # icc: Command line remark: option '-MP' not supported
4093 if (grep 'ignoring option' conftest.err ||
4094 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4095 am_cv_CC_dependencies_compiler_type=$depmode
4096 break
4097 fi
4098 fi
4099 done
4100
4101 cd ..
4102 rm -rf conftest.dir
4103 else
4104 am_cv_CC_dependencies_compiler_type=none
4105 fi
4106
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4109 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4110 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4111
4112 if
4113 test "x$enable_dependency_tracking" != xno \
4114 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4115 am__fastdepCC_TRUE=
4116 am__fastdepCC_FALSE='#'
4117 else
4118 am__fastdepCC_TRUE='#'
4119 am__fastdepCC_FALSE=
4120 fi
4121
4122
4123 ac_ext=cpp
4124 ac_cpp='$CXXCPP $CPPFLAGS'
4125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4128 if test -z "$CXX"; then
4129 if test -n "$CCC"; then
4130 CXX=$CCC
4131 else
4132 if test -n "$ac_tool_prefix"; then
4133 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4134 do
4135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if test "${ac_cv_prog_CXX+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 if test -n "$CXX"; then
4143 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4144 else
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 break 2
4155 fi
4156 done
4157 done
4158 IFS=$as_save_IFS
4159
4160 fi
4161 fi
4162 CXX=$ac_cv_prog_CXX
4163 if test -n "$CXX"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4165 $as_echo "$CXX" >&6; }
4166 else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4169 fi
4170
4171
4172 test -n "$CXX" && break
4173 done
4174 fi
4175 if test -z "$CXX"; then
4176 ac_ct_CXX=$CXX
4177 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4178 do
4179 # Extract the first word of "$ac_prog", so it can be a program name with args.
4180 set dummy $ac_prog; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$ac_ct_CXX"; then
4187 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_ac_ct_CXX="$ac_prog"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4207 if test -n "$ac_ct_CXX"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4209 $as_echo "$ac_ct_CXX" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213 fi
4214
4215
4216 test -n "$ac_ct_CXX" && break
4217 done
4218
4219 if test "x$ac_ct_CXX" = x; then
4220 CXX="g++"
4221 else
4222 case $cross_compiling:$ac_tool_warned in
4223 yes:)
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226 ac_tool_warned=yes ;;
4227 esac
4228 CXX=$ac_ct_CXX
4229 fi
4230 fi
4231
4232 fi
4233 fi
4234 # Provide some information about the compiler.
4235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4236 set X $ac_compile
4237 ac_compiler=$2
4238 for ac_option in --version -v -V -qversion; do
4239 { { ac_try="$ac_compiler $ac_option >&5"
4240 case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 $as_echo "$ac_try_echo"; } >&5
4246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4247 ac_status=$?
4248 if test -s conftest.err; then
4249 sed '10a\
4250 ... rest of stderr output deleted ...
4251 10q' conftest.err >conftest.er1
4252 cat conftest.er1 >&5
4253 rm -f conftest.er1 conftest.err
4254 fi
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }
4257 done
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4260 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4261 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266
4267 int
4268 main ()
4269 {
4270 #ifndef __GNUC__
4271 choke me
4272 #endif
4273
4274 ;
4275 return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_cxx_try_compile "$LINENO"; then :
4279 ac_compiler_gnu=yes
4280 else
4281 ac_compiler_gnu=no
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4285
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4288 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4289 if test $ac_compiler_gnu = yes; then
4290 GXX=yes
4291 else
4292 GXX=
4293 fi
4294 ac_test_CXXFLAGS=${CXXFLAGS+set}
4295 ac_save_CXXFLAGS=$CXXFLAGS
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4297 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4298 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4302 ac_cxx_werror_flag=yes
4303 ac_cv_prog_cxx_g=no
4304 CXXFLAGS="-g"
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307
4308 int
4309 main ()
4310 {
4311
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_cxx_try_compile "$LINENO"; then :
4317 ac_cv_prog_cxx_g=yes
4318 else
4319 CXXFLAGS=""
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322
4323 int
4324 main ()
4325 {
4326
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 if ac_fn_cxx_try_compile "$LINENO"; then :
4332
4333 else
4334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4335 CXXFLAGS="-g"
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338
4339 int
4340 main ()
4341 {
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_cxx_try_compile "$LINENO"; then :
4348 ac_cv_prog_cxx_g=yes
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 fi
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4358 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4359 if test "$ac_test_CXXFLAGS" = set; then
4360 CXXFLAGS=$ac_save_CXXFLAGS
4361 elif test $ac_cv_prog_cxx_g = yes; then
4362 if test "$GXX" = yes; then
4363 CXXFLAGS="-g -O2"
4364 else
4365 CXXFLAGS="-g"
4366 fi
4367 else
4368 if test "$GXX" = yes; then
4369 CXXFLAGS="-O2"
4370 else
4371 CXXFLAGS=
4372 fi
4373 fi
4374 ac_ext=c
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
4380 depcc="$CXX" am_compiler_list=
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4383 $as_echo_n "checking dependency style of $depcc... " >&6; }
4384 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4388 # We make a subdir and do the tests there. Otherwise we can end up
4389 # making bogus files that we don't know about and never remove. For
4390 # instance it was reported that on HP-UX the gcc test will end up
4391 # making a dummy file named `D' -- because `-MD' means `put the output
4392 # in D'.
4393 mkdir conftest.dir
4394 # Copy depcomp to subdir because otherwise we won't find it if we're
4395 # using a relative directory.
4396 cp "$am_depcomp" conftest.dir
4397 cd conftest.dir
4398 # We will build objects and dependencies in a subdirectory because
4399 # it helps to detect inapplicable dependency modes. For instance
4400 # both Tru64's cc and ICC support -MD to output dependencies as a
4401 # side effect of compilation, but ICC will put the dependencies in
4402 # the current directory while Tru64 will put them in the object
4403 # directory.
4404 mkdir sub
4405
4406 am_cv_CXX_dependencies_compiler_type=none
4407 if test "$am_compiler_list" = ""; then
4408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4409 fi
4410 am__universal=false
4411 case " $depcc " in #(
4412 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4413 esac
4414
4415 for depmode in $am_compiler_list; do
4416 # Setup a source with many dependencies, because some compilers
4417 # like to wrap large dependency lists on column 80 (with \), and
4418 # we should not choose a depcomp mode which is confused by this.
4419 #
4420 # We need to recreate these files for each test, as the compiler may
4421 # overwrite some of them when testing with obscure command lines.
4422 # This happens at least with the AIX C compiler.
4423 : > sub/conftest.c
4424 for i in 1 2 3 4 5 6; do
4425 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4426 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4427 # Solaris 8's {/usr,}/bin/sh.
4428 touch sub/conftst$i.h
4429 done
4430 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4431
4432 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4433 # mode. It turns out that the SunPro C++ compiler does not properly
4434 # handle `-M -o', and we need to detect this. Also, some Intel
4435 # versions had trouble with output in subdirs
4436 am__obj=sub/conftest.${OBJEXT-o}
4437 am__minus_obj="-o $am__obj"
4438 case $depmode in
4439 gcc)
4440 # This depmode causes a compiler race in universal mode.
4441 test "$am__universal" = false || continue
4442 ;;
4443 nosideeffect)
4444 # after this tag, mechanisms are not by side-effect, so they'll
4445 # only be used when explicitly requested
4446 if test "x$enable_dependency_tracking" = xyes; then
4447 continue
4448 else
4449 break
4450 fi
4451 ;;
4452 msvisualcpp | msvcmsys)
4453 # This compiler won't grok `-c -o', but also, the minuso test has
4454 # not run yet. These depmodes are late enough in the game, and
4455 # so weak that their functioning should not be impacted.
4456 am__obj=conftest.${OBJEXT-o}
4457 am__minus_obj=
4458 ;;
4459 none) break ;;
4460 esac
4461 if depmode=$depmode \
4462 source=sub/conftest.c object=$am__obj \
4463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4464 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4465 >/dev/null 2>conftest.err &&
4466 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4467 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4468 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4469 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4470 # icc doesn't choke on unknown options, it will just issue warnings
4471 # or remarks (even with -Werror). So we grep stderr for any message
4472 # that says an option was ignored or not supported.
4473 # When given -MP, icc 7.0 and 7.1 complain thusly:
4474 # icc: Command line warning: ignoring option '-M'; no argument required
4475 # The diagnosis changed in icc 8.0:
4476 # icc: Command line remark: option '-MP' not supported
4477 if (grep 'ignoring option' conftest.err ||
4478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4479 am_cv_CXX_dependencies_compiler_type=$depmode
4480 break
4481 fi
4482 fi
4483 done
4484
4485 cd ..
4486 rm -rf conftest.dir
4487 else
4488 am_cv_CXX_dependencies_compiler_type=none
4489 fi
4490
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4493 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4494 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4495
4496 if
4497 test "x$enable_dependency_tracking" != xno \
4498 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4499 am__fastdepCXX_TRUE=
4500 am__fastdepCXX_FALSE='#'
4501 else
4502 am__fastdepCXX_TRUE='#'
4503 am__fastdepCXX_FALSE=
4504 fi
4505
4506
4507 # By default we simply use the C compiler to build assembly code.
4508
4509 test "${CCAS+set}" = set || CCAS=$CC
4510 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4511
4512
4513
4514 depcc="$CCAS" am_compiler_list=
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4517 $as_echo_n "checking dependency style of $depcc... " >&6; }
4518 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4522 # We make a subdir and do the tests there. Otherwise we can end up
4523 # making bogus files that we don't know about and never remove. For
4524 # instance it was reported that on HP-UX the gcc test will end up
4525 # making a dummy file named `D' -- because `-MD' means `put the output
4526 # in D'.
4527 mkdir conftest.dir
4528 # Copy depcomp to subdir because otherwise we won't find it if we're
4529 # using a relative directory.
4530 cp "$am_depcomp" conftest.dir
4531 cd conftest.dir
4532 # We will build objects and dependencies in a subdirectory because
4533 # it helps to detect inapplicable dependency modes. For instance
4534 # both Tru64's cc and ICC support -MD to output dependencies as a
4535 # side effect of compilation, but ICC will put the dependencies in
4536 # the current directory while Tru64 will put them in the object
4537 # directory.
4538 mkdir sub
4539
4540 am_cv_CCAS_dependencies_compiler_type=none
4541 if test "$am_compiler_list" = ""; then
4542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4543 fi
4544 am__universal=false
4545
4546
4547 for depmode in $am_compiler_list; do
4548 # Setup a source with many dependencies, because some compilers
4549 # like to wrap large dependency lists on column 80 (with \), and
4550 # we should not choose a depcomp mode which is confused by this.
4551 #
4552 # We need to recreate these files for each test, as the compiler may
4553 # overwrite some of them when testing with obscure command lines.
4554 # This happens at least with the AIX C compiler.
4555 : > sub/conftest.c
4556 for i in 1 2 3 4 5 6; do
4557 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4558 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4559 # Solaris 8's {/usr,}/bin/sh.
4560 touch sub/conftst$i.h
4561 done
4562 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4563
4564 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4565 # mode. It turns out that the SunPro C++ compiler does not properly
4566 # handle `-M -o', and we need to detect this. Also, some Intel
4567 # versions had trouble with output in subdirs
4568 am__obj=sub/conftest.${OBJEXT-o}
4569 am__minus_obj="-o $am__obj"
4570 case $depmode in
4571 gcc)
4572 # This depmode causes a compiler race in universal mode.
4573 test "$am__universal" = false || continue
4574 ;;
4575 nosideeffect)
4576 # after this tag, mechanisms are not by side-effect, so they'll
4577 # only be used when explicitly requested
4578 if test "x$enable_dependency_tracking" = xyes; then
4579 continue
4580 else
4581 break
4582 fi
4583 ;;
4584 msvisualcpp | msvcmsys)
4585 # This compiler won't grok `-c -o', but also, the minuso test has
4586 # not run yet. These depmodes are late enough in the game, and
4587 # so weak that their functioning should not be impacted.
4588 am__obj=conftest.${OBJEXT-o}
4589 am__minus_obj=
4590 ;;
4591 none) break ;;
4592 esac
4593 if depmode=$depmode \
4594 source=sub/conftest.c object=$am__obj \
4595 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4596 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4597 >/dev/null 2>conftest.err &&
4598 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4599 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4600 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4601 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4602 # icc doesn't choke on unknown options, it will just issue warnings
4603 # or remarks (even with -Werror). So we grep stderr for any message
4604 # that says an option was ignored or not supported.
4605 # When given -MP, icc 7.0 and 7.1 complain thusly:
4606 # icc: Command line warning: ignoring option '-M'; no argument required
4607 # The diagnosis changed in icc 8.0:
4608 # icc: Command line remark: option '-MP' not supported
4609 if (grep 'ignoring option' conftest.err ||
4610 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4611 am_cv_CCAS_dependencies_compiler_type=$depmode
4612 break
4613 fi
4614 fi
4615 done
4616
4617 cd ..
4618 rm -rf conftest.dir
4619 else
4620 am_cv_CCAS_dependencies_compiler_type=none
4621 fi
4622
4623 fi
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4625 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4626 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4627
4628 if
4629 test "x$enable_dependency_tracking" != xno \
4630 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4631 am__fastdepCCAS_TRUE=
4632 am__fastdepCCAS_FALSE='#'
4633 else
4634 am__fastdepCCAS_TRUE='#'
4635 am__fastdepCCAS_FALSE=
4636 fi
4637
4638
4639
4640 enable_dlopen=yes
4641
4642
4643
4644 case `pwd` in
4645 *\ * | *\ *)
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4647 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4648 esac
4649
4650
4651
4652 macro_version='2.2.7a'
4653 macro_revision='1.3134'
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667 ltmain="$ac_aux_dir/ltmain.sh"
4668
4669 # Backslashify metacharacters that are still active within
4670 # double-quoted strings.
4671 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4672
4673 # Same as above, but do not quote variable references.
4674 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4675
4676 # Sed substitution to delay expansion of an escaped shell variable in a
4677 # double_quote_subst'ed string.
4678 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4679
4680 # Sed substitution to delay expansion of an escaped single quote.
4681 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4682
4683 # Sed substitution to avoid accidental globbing in evaled expressions
4684 no_glob_subst='s/\*/\\\*/g'
4685
4686 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4687 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4688 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4691 $as_echo_n "checking how to print strings... " >&6; }
4692 # Test print first, because it will be a builtin if present.
4693 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4694 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4695 ECHO='print -r --'
4696 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4697 ECHO='printf %s\n'
4698 else
4699 # Use this function as a fallback that always works.
4700 func_fallback_echo ()
4701 {
4702 eval 'cat <<_LTECHO_EOF
4703 $1
4704 _LTECHO_EOF'
4705 }
4706 ECHO='func_fallback_echo'
4707 fi
4708
4709 # func_echo_all arg...
4710 # Invoke $ECHO with all args, space-separated.
4711 func_echo_all ()
4712 {
4713 $ECHO ""
4714 }
4715
4716 case "$ECHO" in
4717 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4718 $as_echo "printf" >&6; } ;;
4719 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4720 $as_echo "print -r" >&6; } ;;
4721 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4722 $as_echo "cat" >&6; } ;;
4723 esac
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4739 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4740 if test "${ac_cv_path_SED+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4744 for ac_i in 1 2 3 4 5 6 7; do
4745 ac_script="$ac_script$as_nl$ac_script"
4746 done
4747 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4748 { ac_script=; unset ac_script;}
4749 if test -z "$SED"; then
4750 ac_path_SED_found=false
4751 # Loop through the user's path and test for each of PROGNAME-LIST
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_prog in sed gsed; do
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4760 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4761 # Check for GNU ac_path_SED and select it if it is found.
4762 # Check for GNU $ac_path_SED
4763 case `"$ac_path_SED" --version 2>&1` in
4764 *GNU*)
4765 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4766 *)
4767 ac_count=0
4768 $as_echo_n 0123456789 >"conftest.in"
4769 while :
4770 do
4771 cat "conftest.in" "conftest.in" >"conftest.tmp"
4772 mv "conftest.tmp" "conftest.in"
4773 cp "conftest.in" "conftest.nl"
4774 $as_echo '' >> "conftest.nl"
4775 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4777 as_fn_arith $ac_count + 1 && ac_count=$as_val
4778 if test $ac_count -gt ${ac_path_SED_max-0}; then
4779 # Best one so far, save it but keep looking for a better one
4780 ac_cv_path_SED="$ac_path_SED"
4781 ac_path_SED_max=$ac_count
4782 fi
4783 # 10*(2^10) chars as input seems more than enough
4784 test $ac_count -gt 10 && break
4785 done
4786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4787 esac
4788
4789 $ac_path_SED_found && break 3
4790 done
4791 done
4792 done
4793 IFS=$as_save_IFS
4794 if test -z "$ac_cv_path_SED"; then
4795 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4796 fi
4797 else
4798 ac_cv_path_SED=$SED
4799 fi
4800
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4803 $as_echo "$ac_cv_path_SED" >&6; }
4804 SED="$ac_cv_path_SED"
4805 rm -f conftest.sed
4806
4807 test -z "$SED" && SED=sed
4808 Xsed="$SED -e 1s/^X//"
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4821 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4822 if test "${ac_cv_path_GREP+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -z "$GREP"; then
4826 ac_path_GREP_found=false
4827 # Loop through the user's path and test for each of PROGNAME-LIST
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4830 do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_prog in grep ggrep; do
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4836 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4837 # Check for GNU ac_path_GREP and select it if it is found.
4838 # Check for GNU $ac_path_GREP
4839 case `"$ac_path_GREP" --version 2>&1` in
4840 *GNU*)
4841 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4842 *)
4843 ac_count=0
4844 $as_echo_n 0123456789 >"conftest.in"
4845 while :
4846 do
4847 cat "conftest.in" "conftest.in" >"conftest.tmp"
4848 mv "conftest.tmp" "conftest.in"
4849 cp "conftest.in" "conftest.nl"
4850 $as_echo 'GREP' >> "conftest.nl"
4851 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4853 as_fn_arith $ac_count + 1 && ac_count=$as_val
4854 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4855 # Best one so far, save it but keep looking for a better one
4856 ac_cv_path_GREP="$ac_path_GREP"
4857 ac_path_GREP_max=$ac_count
4858 fi
4859 # 10*(2^10) chars as input seems more than enough
4860 test $ac_count -gt 10 && break
4861 done
4862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4863 esac
4864
4865 $ac_path_GREP_found && break 3
4866 done
4867 done
4868 done
4869 IFS=$as_save_IFS
4870 if test -z "$ac_cv_path_GREP"; then
4871 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4872 fi
4873 else
4874 ac_cv_path_GREP=$GREP
4875 fi
4876
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4879 $as_echo "$ac_cv_path_GREP" >&6; }
4880 GREP="$ac_cv_path_GREP"
4881
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4884 $as_echo_n "checking for egrep... " >&6; }
4885 if test "${ac_cv_path_EGREP+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4889 then ac_cv_path_EGREP="$GREP -E"
4890 else
4891 if test -z "$EGREP"; then
4892 ac_path_EGREP_found=false
4893 # Loop through the user's path and test for each of PROGNAME-LIST
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_prog in egrep; do
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4902 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4903 # Check for GNU ac_path_EGREP and select it if it is found.
4904 # Check for GNU $ac_path_EGREP
4905 case `"$ac_path_EGREP" --version 2>&1` in
4906 *GNU*)
4907 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4908 *)
4909 ac_count=0
4910 $as_echo_n 0123456789 >"conftest.in"
4911 while :
4912 do
4913 cat "conftest.in" "conftest.in" >"conftest.tmp"
4914 mv "conftest.tmp" "conftest.in"
4915 cp "conftest.in" "conftest.nl"
4916 $as_echo 'EGREP' >> "conftest.nl"
4917 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4919 as_fn_arith $ac_count + 1 && ac_count=$as_val
4920 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4921 # Best one so far, save it but keep looking for a better one
4922 ac_cv_path_EGREP="$ac_path_EGREP"
4923 ac_path_EGREP_max=$ac_count
4924 fi
4925 # 10*(2^10) chars as input seems more than enough
4926 test $ac_count -gt 10 && break
4927 done
4928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4929 esac
4930
4931 $ac_path_EGREP_found && break 3
4932 done
4933 done
4934 done
4935 IFS=$as_save_IFS
4936 if test -z "$ac_cv_path_EGREP"; then
4937 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4938 fi
4939 else
4940 ac_cv_path_EGREP=$EGREP
4941 fi
4942
4943 fi
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4946 $as_echo "$ac_cv_path_EGREP" >&6; }
4947 EGREP="$ac_cv_path_EGREP"
4948
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4951 $as_echo_n "checking for fgrep... " >&6; }
4952 if test "${ac_cv_path_FGREP+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4956 then ac_cv_path_FGREP="$GREP -F"
4957 else
4958 if test -z "$FGREP"; then
4959 ac_path_FGREP_found=false
4960 # Loop through the user's path and test for each of PROGNAME-LIST
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4963 do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_prog in fgrep; do
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4969 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4970 # Check for GNU ac_path_FGREP and select it if it is found.
4971 # Check for GNU $ac_path_FGREP
4972 case `"$ac_path_FGREP" --version 2>&1` in
4973 *GNU*)
4974 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4975 *)
4976 ac_count=0
4977 $as_echo_n 0123456789 >"conftest.in"
4978 while :
4979 do
4980 cat "conftest.in" "conftest.in" >"conftest.tmp"
4981 mv "conftest.tmp" "conftest.in"
4982 cp "conftest.in" "conftest.nl"
4983 $as_echo 'FGREP' >> "conftest.nl"
4984 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4986 as_fn_arith $ac_count + 1 && ac_count=$as_val
4987 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4988 # Best one so far, save it but keep looking for a better one
4989 ac_cv_path_FGREP="$ac_path_FGREP"
4990 ac_path_FGREP_max=$ac_count
4991 fi
4992 # 10*(2^10) chars as input seems more than enough
4993 test $ac_count -gt 10 && break
4994 done
4995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4996 esac
4997
4998 $ac_path_FGREP_found && break 3
4999 done
5000 done
5001 done
5002 IFS=$as_save_IFS
5003 if test -z "$ac_cv_path_FGREP"; then
5004 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5005 fi
5006 else
5007 ac_cv_path_FGREP=$FGREP
5008 fi
5009
5010 fi
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5013 $as_echo "$ac_cv_path_FGREP" >&6; }
5014 FGREP="$ac_cv_path_FGREP"
5015
5016
5017 test -z "$GREP" && GREP=grep
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037 # Check whether --with-gnu-ld was given.
5038 if test "${with_gnu_ld+set}" = set; then :
5039 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5040 else
5041 with_gnu_ld=no
5042 fi
5043
5044 ac_prog=ld
5045 if test "$GCC" = yes; then
5046 # Check if gcc -print-prog-name=ld gives a path.
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5048 $as_echo_n "checking for ld used by $CC... " >&6; }
5049 case $host in
5050 *-*-mingw*)
5051 # gcc leaves a trailing carriage return which upsets mingw
5052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5053 *)
5054 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5055 esac
5056 case $ac_prog in
5057 # Accept absolute paths.
5058 [\\/]* | ?:[\\/]*)
5059 re_direlt='/[^/][^/]*/\.\./'
5060 # Canonicalize the pathname of ld
5061 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5062 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5063 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5064 done
5065 test -z "$LD" && LD="$ac_prog"
5066 ;;
5067 "")
5068 # If it fails, then pretend we aren't using GCC.
5069 ac_prog=ld
5070 ;;
5071 *)
5072 # If it is relative, then search for the first ld in PATH.
5073 with_gnu_ld=unknown
5074 ;;
5075 esac
5076 elif test "$with_gnu_ld" = yes; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5078 $as_echo_n "checking for GNU ld... " >&6; }
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5081 $as_echo_n "checking for non-GNU ld... " >&6; }
5082 fi
5083 if test "${lt_cv_path_LD+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -z "$LD"; then
5087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5088 for ac_dir in $PATH; do
5089 IFS="$lt_save_ifs"
5090 test -z "$ac_dir" && ac_dir=.
5091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5092 lt_cv_path_LD="$ac_dir/$ac_prog"
5093 # Check to see if the program is GNU ld. I'd rather use --version,
5094 # but apparently some variants of GNU ld only accept -v.
5095 # Break only if it was the GNU/non-GNU ld that we prefer.
5096 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5097 *GNU* | *'with BFD'*)
5098 test "$with_gnu_ld" != no && break
5099 ;;
5100 *)
5101 test "$with_gnu_ld" != yes && break
5102 ;;
5103 esac
5104 fi
5105 done
5106 IFS="$lt_save_ifs"
5107 else
5108 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5109 fi
5110 fi
5111
5112 LD="$lt_cv_path_LD"
5113 if test -n "$LD"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5115 $as_echo "$LD" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5122 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5123 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5127 case `$LD -v 2>&1 </dev/null` in
5128 *GNU* | *'with BFD'*)
5129 lt_cv_prog_gnu_ld=yes
5130 ;;
5131 *)
5132 lt_cv_prog_gnu_ld=no
5133 ;;
5134 esac
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5137 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5138 with_gnu_ld=$lt_cv_prog_gnu_ld
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5149 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5150 if test "${lt_cv_path_NM+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$NM"; then
5154 # Let the user override the test.
5155 lt_cv_path_NM="$NM"
5156 else
5157 lt_nm_to_check="${ac_tool_prefix}nm"
5158 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5159 lt_nm_to_check="$lt_nm_to_check nm"
5160 fi
5161 for lt_tmp_nm in $lt_nm_to_check; do
5162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5163 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5164 IFS="$lt_save_ifs"
5165 test -z "$ac_dir" && ac_dir=.
5166 tmp_nm="$ac_dir/$lt_tmp_nm"
5167 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5168 # Check to see if the nm accepts a BSD-compat flag.
5169 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5170 # nm: unknown option "B" ignored
5171 # Tru64's nm complains that /dev/null is an invalid object file
5172 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5173 */dev/null* | *'Invalid file or object type'*)
5174 lt_cv_path_NM="$tmp_nm -B"
5175 break
5176 ;;
5177 *)
5178 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5179 */dev/null*)
5180 lt_cv_path_NM="$tmp_nm -p"
5181 break
5182 ;;
5183 *)
5184 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5185 continue # so that we can try to find one that supports BSD flags
5186 ;;
5187 esac
5188 ;;
5189 esac
5190 fi
5191 done
5192 IFS="$lt_save_ifs"
5193 done
5194 : ${lt_cv_path_NM=no}
5195 fi
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5198 $as_echo "$lt_cv_path_NM" >&6; }
5199 if test "$lt_cv_path_NM" != "no"; then
5200 NM="$lt_cv_path_NM"
5201 else
5202 # Didn't find any BSD compatible name lister, look for dumpbin.
5203 if test -n "$DUMPBIN"; then :
5204 # Let the user override the test.
5205 else
5206 if test -n "$ac_tool_prefix"; then
5207 for ac_prog in dumpbin "link -dump"
5208 do
5209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test -n "$DUMPBIN"; then
5217 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 fi
5235 fi
5236 DUMPBIN=$ac_cv_prog_DUMPBIN
5237 if test -n "$DUMPBIN"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5239 $as_echo "$DUMPBIN" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244
5245
5246 test -n "$DUMPBIN" && break
5247 done
5248 fi
5249 if test -z "$DUMPBIN"; then
5250 ac_ct_DUMPBIN=$DUMPBIN
5251 for ac_prog in dumpbin "link -dump"
5252 do
5253 # Extract the first word of "$ac_prog", so it can be a program name with args.
5254 set dummy $ac_prog; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 if test -n "$ac_ct_DUMPBIN"; then
5261 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274 done
5275 done
5276 IFS=$as_save_IFS
5277
5278 fi
5279 fi
5280 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5281 if test -n "$ac_ct_DUMPBIN"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5283 $as_echo "$ac_ct_DUMPBIN" >&6; }
5284 else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289
5290 test -n "$ac_ct_DUMPBIN" && break
5291 done
5292
5293 if test "x$ac_ct_DUMPBIN" = x; then
5294 DUMPBIN=":"
5295 else
5296 case $cross_compiling:$ac_tool_warned in
5297 yes:)
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5300 ac_tool_warned=yes ;;
5301 esac
5302 DUMPBIN=$ac_ct_DUMPBIN
5303 fi
5304 fi
5305
5306 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5307 *COFF*)
5308 DUMPBIN="$DUMPBIN -symbols"
5309 ;;
5310 *)
5311 DUMPBIN=:
5312 ;;
5313 esac
5314 fi
5315
5316 if test "$DUMPBIN" != ":"; then
5317 NM="$DUMPBIN"
5318 fi
5319 fi
5320 test -z "$NM" && NM=nm
5321
5322
5323
5324
5325
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5328 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5329 if test "${lt_cv_nm_interface+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 lt_cv_nm_interface="BSD nm"
5333 echo "int some_variable = 0;" > conftest.$ac_ext
5334 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5335 (eval "$ac_compile" 2>conftest.err)
5336 cat conftest.err >&5
5337 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5338 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5339 cat conftest.err >&5
5340 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5341 cat conftest.out >&5
5342 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5343 lt_cv_nm_interface="MS dumpbin"
5344 fi
5345 rm -f conftest*
5346 fi
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5348 $as_echo "$lt_cv_nm_interface" >&6; }
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5351 $as_echo_n "checking whether ln -s works... " >&6; }
5352 LN_S=$as_ln_s
5353 if test "$LN_S" = "ln -s"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5355 $as_echo "yes" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5358 $as_echo "no, using $LN_S" >&6; }
5359 fi
5360
5361 # find the maximum length of command line arguments
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5363 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 i=0
5368 teststring="ABCD"
5369
5370 case $build_os in
5371 msdosdjgpp*)
5372 # On DJGPP, this test can blow up pretty badly due to problems in libc
5373 # (any single argument exceeding 2000 bytes causes a buffer overrun
5374 # during glob expansion). Even if it were fixed, the result of this
5375 # check would be larger than it should be.
5376 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5377 ;;
5378
5379 gnu*)
5380 # Under GNU Hurd, this test is not required because there is
5381 # no limit to the length of command line arguments.
5382 # Libtool will interpret -1 as no limit whatsoever
5383 lt_cv_sys_max_cmd_len=-1;
5384 ;;
5385
5386 cygwin* | mingw* | cegcc*)
5387 # On Win9x/ME, this test blows up -- it succeeds, but takes
5388 # about 5 minutes as the teststring grows exponentially.
5389 # Worse, since 9x/ME are not pre-emptively multitasking,
5390 # you end up with a "frozen" computer, even though with patience
5391 # the test eventually succeeds (with a max line length of 256k).
5392 # Instead, let's just punt: use the minimum linelength reported by
5393 # all of the supported platforms: 8192 (on NT/2K/XP).
5394 lt_cv_sys_max_cmd_len=8192;
5395 ;;
5396
5397 mint*)
5398 # On MiNT this can take a long time and run out of memory.
5399 lt_cv_sys_max_cmd_len=8192;
5400 ;;
5401
5402 amigaos*)
5403 # On AmigaOS with pdksh, this test takes hours, literally.
5404 # So we just punt and use a minimum line length of 8192.
5405 lt_cv_sys_max_cmd_len=8192;
5406 ;;
5407
5408 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5409 # This has been around since 386BSD, at least. Likely further.
5410 if test -x /sbin/sysctl; then
5411 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5412 elif test -x /usr/sbin/sysctl; then
5413 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5414 else
5415 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5416 fi
5417 # And add a safety zone
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5420 ;;
5421
5422 interix*)
5423 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5424 lt_cv_sys_max_cmd_len=196608
5425 ;;
5426
5427 osf*)
5428 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5429 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5430 # nice to cause kernel panics so lets avoid the loop below.
5431 # First set a reasonable default.
5432 lt_cv_sys_max_cmd_len=16384
5433 #
5434 if test -x /sbin/sysconfig; then
5435 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5436 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5437 esac
5438 fi
5439 ;;
5440 sco3.2v5*)
5441 lt_cv_sys_max_cmd_len=102400
5442 ;;
5443 sysv5* | sco5v6* | sysv4.2uw2*)
5444 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5445 if test -n "$kargmax"; then
5446 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5447 else
5448 lt_cv_sys_max_cmd_len=32768
5449 fi
5450 ;;
5451 *)
5452 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5453 if test -n "$lt_cv_sys_max_cmd_len"; then
5454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5456 else
5457 # Make teststring a little bigger before we do anything with it.
5458 # a 1K string should be a reasonable start.
5459 for i in 1 2 3 4 5 6 7 8 ; do
5460 teststring=$teststring$teststring
5461 done
5462 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5463 # If test is not a shell built-in, we'll probably end up computing a
5464 # maximum length that is only half of the actual maximum length, but
5465 # we can't tell.
5466 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5467 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5468 test $i != 17 # 1/2 MB should be enough
5469 do
5470 i=`expr $i + 1`
5471 teststring=$teststring$teststring
5472 done
5473 # Only check the string length outside the loop.
5474 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5475 teststring=
5476 # Add a significant safety factor because C++ compilers can tack on
5477 # massive amounts of additional arguments before passing them to the
5478 # linker. It appears as though 1/2 is a usable value.
5479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5480 fi
5481 ;;
5482 esac
5483
5484 fi
5485
5486 if test -n $lt_cv_sys_max_cmd_len ; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5488 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5491 $as_echo "none" >&6; }
5492 fi
5493 max_cmd_len=$lt_cv_sys_max_cmd_len
5494
5495
5496
5497
5498
5499
5500 : ${CP="cp -f"}
5501 : ${MV="mv -f"}
5502 : ${RM="rm -f"}
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5505 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5506 # Try some XSI features
5507 xsi_shell=no
5508 ( _lt_dummy="a/b/c"
5509 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5510 = c,a/b,, \
5511 && eval 'test $(( 1 + 1 )) -eq 2 \
5512 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5513 && xsi_shell=yes
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5515 $as_echo "$xsi_shell" >&6; }
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5519 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5520 lt_shell_append=no
5521 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5522 >/dev/null 2>&1 \
5523 && lt_shell_append=yes
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5525 $as_echo "$lt_shell_append" >&6; }
5526
5527
5528 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5529 lt_unset=unset
5530 else
5531 lt_unset=false
5532 fi
5533
5534
5535
5536
5537
5538 # test EBCDIC or ASCII
5539 case `echo X|tr X '\101'` in
5540 A) # ASCII based system
5541 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5542 lt_SP2NL='tr \040 \012'
5543 lt_NL2SP='tr \015\012 \040\040'
5544 ;;
5545 *) # EBCDIC based system
5546 lt_SP2NL='tr \100 \n'
5547 lt_NL2SP='tr \r\n \100\100'
5548 ;;
5549 esac
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5560 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5561 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 lt_cv_ld_reload_flag='-r'
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5567 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5568 reload_flag=$lt_cv_ld_reload_flag
5569 case $reload_flag in
5570 "" | " "*) ;;
5571 *) reload_flag=" $reload_flag" ;;
5572 esac
5573 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5574 case $host_os in
5575 darwin*)
5576 if test "$GCC" = yes; then
5577 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5578 else
5579 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5580 fi
5581 ;;
5582 esac
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 if test -n "$ac_tool_prefix"; then
5593 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5594 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 if test -n "$OBJDUMP"; then
5601 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5602 else
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606 IFS=$as_save_IFS
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 break 2
5613 fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi
5619 fi
5620 OBJDUMP=$ac_cv_prog_OBJDUMP
5621 if test -n "$OBJDUMP"; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5623 $as_echo "$OBJDUMP" >&6; }
5624 else
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5627 fi
5628
5629
5630 fi
5631 if test -z "$ac_cv_prog_OBJDUMP"; then
5632 ac_ct_OBJDUMP=$OBJDUMP
5633 # Extract the first word of "objdump", so it can be a program name with args.
5634 set dummy objdump; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$ac_ct_OBJDUMP"; then
5641 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5661 if test -n "$ac_ct_OBJDUMP"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5663 $as_echo "$ac_ct_OBJDUMP" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669 if test "x$ac_ct_OBJDUMP" = x; then
5670 OBJDUMP="false"
5671 else
5672 case $cross_compiling:$ac_tool_warned in
5673 yes:)
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5676 ac_tool_warned=yes ;;
5677 esac
5678 OBJDUMP=$ac_ct_OBJDUMP
5679 fi
5680 else
5681 OBJDUMP="$ac_cv_prog_OBJDUMP"
5682 fi
5683
5684 test -z "$OBJDUMP" && OBJDUMP=objdump
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5695 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5696 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 lt_cv_file_magic_cmd='$MAGIC_CMD'
5700 lt_cv_file_magic_test_file=
5701 lt_cv_deplibs_check_method='unknown'
5702 # Need to set the preceding variable on all platforms that support
5703 # interlibrary dependencies.
5704 # 'none' -- dependencies not supported.
5705 # `unknown' -- same as none, but documents that we really don't know.
5706 # 'pass_all' -- all dependencies passed with no checks.
5707 # 'test_compile' -- check by making test program.
5708 # 'file_magic [[regex]]' -- check by looking for files in library path
5709 # which responds to the $file_magic_cmd with a given extended regex.
5710 # If you have `file' or equivalent on your system and you're not sure
5711 # whether `pass_all' will *always* work, you probably want this one.
5712
5713 case $host_os in
5714 aix[4-9]*)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717
5718 beos*)
5719 lt_cv_deplibs_check_method=pass_all
5720 ;;
5721
5722 bsdi[45]*)
5723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5724 lt_cv_file_magic_cmd='/usr/bin/file -L'
5725 lt_cv_file_magic_test_file=/shlib/libc.so
5726 ;;
5727
5728 cygwin*)
5729 # func_win32_libid is a shell function defined in ltmain.sh
5730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5731 lt_cv_file_magic_cmd='func_win32_libid'
5732 ;;
5733
5734 mingw* | pw32*)
5735 # Base MSYS/MinGW do not provide the 'file' command needed by
5736 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5737 # unless we find 'file', for example because we are cross-compiling.
5738 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5739 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5741 lt_cv_file_magic_cmd='func_win32_libid'
5742 else
5743 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5744 lt_cv_file_magic_cmd='$OBJDUMP -f'
5745 fi
5746 ;;
5747
5748 cegcc*)
5749 # use the weaker test based on 'objdump'. See mingw*.
5750 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5751 lt_cv_file_magic_cmd='$OBJDUMP -f'
5752 ;;
5753
5754 darwin* | rhapsody*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758 freebsd* | dragonfly*)
5759 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5760 case $host_cpu in
5761 i*86 )
5762 # Not sure whether the presence of OpenBSD here was a mistake.
5763 # Let's accept both of them until this is cleared up.
5764 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5765 lt_cv_file_magic_cmd=/usr/bin/file
5766 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5767 ;;
5768 esac
5769 else
5770 lt_cv_deplibs_check_method=pass_all
5771 fi
5772 ;;
5773
5774 gnu*)
5775 lt_cv_deplibs_check_method=pass_all
5776 ;;
5777
5778 haiku*)
5779 lt_cv_deplibs_check_method=pass_all
5780 ;;
5781
5782 hpux10.20* | hpux11*)
5783 lt_cv_file_magic_cmd=/usr/bin/file
5784 case $host_cpu in
5785 ia64*)
5786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5787 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5788 ;;
5789 hppa*64*)
5790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5791 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5792 ;;
5793 *)
5794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5795 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5796 ;;
5797 esac
5798 ;;
5799
5800 interix[3-9]*)
5801 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5803 ;;
5804
5805 irix5* | irix6* | nonstopux*)
5806 case $LD in
5807 *-32|*"-32 ") libmagic=32-bit;;
5808 *-n32|*"-n32 ") libmagic=N32;;
5809 *-64|*"-64 ") libmagic=64-bit;;
5810 *) libmagic=never-match;;
5811 esac
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814
5815 # This must be Linux ELF.
5816 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
5819
5820 netbsd*)
5821 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5823 else
5824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5825 fi
5826 ;;
5827
5828 newos6*)
5829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5830 lt_cv_file_magic_cmd=/usr/bin/file
5831 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5832 ;;
5833
5834 *nto* | *qnx*)
5835 lt_cv_deplibs_check_method=pass_all
5836 ;;
5837
5838 openbsd*)
5839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5841 else
5842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5843 fi
5844 ;;
5845
5846 osf3* | osf4* | osf5*)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849
5850 rdos*)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853
5854 solaris*)
5855 lt_cv_deplibs_check_method=pass_all
5856 ;;
5857
5858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5859 lt_cv_deplibs_check_method=pass_all
5860 ;;
5861
5862 sysv4 | sysv4.3*)
5863 case $host_vendor in
5864 motorola)
5865 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]'
5866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5867 ;;
5868 ncr)
5869 lt_cv_deplibs_check_method=pass_all
5870 ;;
5871 sequent)
5872 lt_cv_file_magic_cmd='/bin/file'
5873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5874 ;;
5875 sni)
5876 lt_cv_file_magic_cmd='/bin/file'
5877 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5878 lt_cv_file_magic_test_file=/lib/libc.so
5879 ;;
5880 siemens)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883 pc)
5884 lt_cv_deplibs_check_method=pass_all
5885 ;;
5886 esac
5887 ;;
5888
5889 tpf*)
5890 lt_cv_deplibs_check_method=pass_all
5891 ;;
5892 esac
5893
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5896 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5897 file_magic_cmd=$lt_cv_file_magic_cmd
5898 deplibs_check_method=$lt_cv_deplibs_check_method
5899 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912 if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}ar; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if test "${ac_cv_prog_AR+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 if test -n "$AR"; then
5921 ac_cv_prog_AR="$AR" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_prog_AR="${ac_tool_prefix}ar"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934 done
5935 done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 AR=$ac_cv_prog_AR
5941 if test -n "$AR"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5943 $as_echo "$AR" >&6; }
5944 else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949
5950 fi
5951 if test -z "$ac_cv_prog_AR"; then
5952 ac_ct_AR=$AR
5953 # Extract the first word of "ar", so it can be a program name with args.
5954 set dummy ar; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test -n "$ac_ct_AR"; then
5961 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_prog_ac_ct_AR="ar"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974 done
5975 done
5976 IFS=$as_save_IFS
5977
5978 fi
5979 fi
5980 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5981 if test -n "$ac_ct_AR"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5983 $as_echo "$ac_ct_AR" >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5987 fi
5988
5989 if test "x$ac_ct_AR" = x; then
5990 AR="false"
5991 else
5992 case $cross_compiling:$ac_tool_warned in
5993 yes:)
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned=yes ;;
5997 esac
5998 AR=$ac_ct_AR
5999 fi
6000 else
6001 AR="$ac_cv_prog_AR"
6002 fi
6003
6004 test -z "$AR" && AR=ar
6005 test -z "$AR_FLAGS" && AR_FLAGS=cru
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017 if test -n "$ac_tool_prefix"; then
6018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6019 set dummy ${ac_tool_prefix}strip; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if test "${ac_cv_prog_STRIP+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if test -n "$STRIP"; then
6026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039 done
6040 done
6041 IFS=$as_save_IFS
6042
6043 fi
6044 fi
6045 STRIP=$ac_cv_prog_STRIP
6046 if test -n "$STRIP"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6048 $as_echo "$STRIP" >&6; }
6049 else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6052 fi
6053
6054
6055 fi
6056 if test -z "$ac_cv_prog_STRIP"; then
6057 ac_ct_STRIP=$STRIP
6058 # Extract the first word of "strip", so it can be a program name with args.
6059 set dummy strip; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 if test -n "$ac_ct_STRIP"; then
6066 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_ac_ct_STRIP="strip"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6086 if test -n "$ac_ct_STRIP"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6088 $as_echo "$ac_ct_STRIP" >&6; }
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093
6094 if test "x$ac_ct_STRIP" = x; then
6095 STRIP=":"
6096 else
6097 case $cross_compiling:$ac_tool_warned in
6098 yes:)
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101 ac_tool_warned=yes ;;
6102 esac
6103 STRIP=$ac_ct_STRIP
6104 fi
6105 else
6106 STRIP="$ac_cv_prog_STRIP"
6107 fi
6108
6109 test -z "$STRIP" && STRIP=:
6110
6111
6112
6113
6114
6115
6116 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test -n "$RANLIB"; then
6125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138 done
6139 done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 RANLIB=$ac_cv_prog_RANLIB
6145 if test -n "$RANLIB"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6147 $as_echo "$RANLIB" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153
6154 fi
6155 if test -z "$ac_cv_prog_RANLIB"; then
6156 ac_ct_RANLIB=$RANLIB
6157 # Extract the first word of "ranlib", so it can be a program name with args.
6158 set dummy ranlib; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 if test -n "$ac_ct_RANLIB"; then
6165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_ac_ct_RANLIB="ranlib"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178 done
6179 done
6180 IFS=$as_save_IFS
6181
6182 fi
6183 fi
6184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6185 if test -n "$ac_ct_RANLIB"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6187 $as_echo "$ac_ct_RANLIB" >&6; }
6188 else
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6191 fi
6192
6193 if test "x$ac_ct_RANLIB" = x; then
6194 RANLIB=":"
6195 else
6196 case $cross_compiling:$ac_tool_warned in
6197 yes:)
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6201 esac
6202 RANLIB=$ac_ct_RANLIB
6203 fi
6204 else
6205 RANLIB="$ac_cv_prog_RANLIB"
6206 fi
6207
6208 test -z "$RANLIB" && RANLIB=:
6209
6210
6211
6212
6213
6214
6215 # Determine commands to create old-style static archives.
6216 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6217 old_postinstall_cmds='chmod 644 $oldlib'
6218 old_postuninstall_cmds=
6219
6220 if test -n "$RANLIB"; then
6221 case $host_os in
6222 openbsd*)
6223 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6224 ;;
6225 *)
6226 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6227 ;;
6228 esac
6229 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6230 fi
6231
6232 case $host_os in
6233 darwin*)
6234 lock_old_archive_extraction=yes ;;
6235 *)
6236 lock_old_archive_extraction=no ;;
6237 esac
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277 # If no C compiler was specified, use CC.
6278 LTCC=${LTCC-"$CC"}
6279
6280 # If no C compiler flags were specified, use CFLAGS.
6281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6282
6283 # Allow CC to be a program name with arguments.
6284 compiler=$CC
6285
6286
6287 # Check for command to grab the raw symbol name followed by C symbol from nm.
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6289 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6290 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293
6294 # These are sane defaults that work on at least a few old systems.
6295 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6296
6297 # Character class describing NM global symbol codes.
6298 symcode='[BCDEGRST]'
6299
6300 # Regexp to match symbols that can be accessed directly from C.
6301 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6302
6303 # Define system-specific variables.
6304 case $host_os in
6305 aix*)
6306 symcode='[BCDT]'
6307 ;;
6308 cygwin* | mingw* | pw32* | cegcc*)
6309 symcode='[ABCDGISTW]'
6310 ;;
6311 hpux*)
6312 if test "$host_cpu" = ia64; then
6313 symcode='[ABCDEGRST]'
6314 fi
6315 ;;
6316 irix* | nonstopux*)
6317 symcode='[BCDEGRST]'
6318 ;;
6319 osf*)
6320 symcode='[BCDEGQRST]'
6321 ;;
6322 solaris*)
6323 symcode='[BDRT]'
6324 ;;
6325 sco3.2v5*)
6326 symcode='[DT]'
6327 ;;
6328 sysv4.2uw2*)
6329 symcode='[DT]'
6330 ;;
6331 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6332 symcode='[ABDT]'
6333 ;;
6334 sysv4)
6335 symcode='[DFNSTU]'
6336 ;;
6337 esac
6338
6339 # If we're using GNU nm, then use its standard symbol codes.
6340 case `$NM -V 2>&1` in
6341 *GNU* | *'with BFD'*)
6342 symcode='[ABCDGIRSTW]' ;;
6343 esac
6344
6345 # Transform an extracted symbol line into a proper C declaration.
6346 # Some systems (esp. on ia64) link data and code symbols differently,
6347 # so use this general approach.
6348 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6349
6350 # Transform an extracted symbol line into symbol name and symbol address
6351 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6352 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6353
6354 # Handle CRLF in mingw tool chain
6355 opt_cr=
6356 case $build_os in
6357 mingw*)
6358 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6359 ;;
6360 esac
6361
6362 # Try without a prefix underscore, then with it.
6363 for ac_symprfx in "" "_"; do
6364
6365 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6366 symxfrm="\\1 $ac_symprfx\\2 \\2"
6367
6368 # Write the raw and C identifiers.
6369 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6370 # Fake it for dumpbin and say T for any non-static function
6371 # and D for any global variable.
6372 # Also find C++ and __fastcall symbols from MSVC++,
6373 # which start with @ or ?.
6374 lt_cv_sys_global_symbol_pipe="$AWK '"\
6375 " {last_section=section; section=\$ 3};"\
6376 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6377 " \$ 0!~/External *\|/{next};"\
6378 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6379 " {if(hide[section]) next};"\
6380 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6381 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6382 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6383 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6384 " ' prfx=^$ac_symprfx"
6385 else
6386 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6387 fi
6388
6389 # Check to see that the pipe works correctly.
6390 pipe_works=no
6391
6392 rm -f conftest*
6393 cat > conftest.$ac_ext <<_LT_EOF
6394 #ifdef __cplusplus
6395 extern "C" {
6396 #endif
6397 char nm_test_var;
6398 void nm_test_func(void);
6399 void nm_test_func(void){}
6400 #ifdef __cplusplus
6401 }
6402 #endif
6403 int main(){nm_test_var='a';nm_test_func();return(0);}
6404 _LT_EOF
6405
6406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6407 (eval $ac_compile) 2>&5
6408 ac_status=$?
6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410 test $ac_status = 0; }; then
6411 # Now try to grab the symbols.
6412 nlist=conftest.nm
6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6414 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; } && test -s "$nlist"; then
6418 # Try sorting and uniquifying the output.
6419 if sort "$nlist" | uniq > "$nlist"T; then
6420 mv -f "$nlist"T "$nlist"
6421 else
6422 rm -f "$nlist"T
6423 fi
6424
6425 # Make sure that we snagged all the symbols we need.
6426 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6427 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6428 cat <<_LT_EOF > conftest.$ac_ext
6429 #ifdef __cplusplus
6430 extern "C" {
6431 #endif
6432
6433 _LT_EOF
6434 # Now generate the symbol file.
6435 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6436
6437 cat <<_LT_EOF >> conftest.$ac_ext
6438
6439 /* The mapping between symbol names and symbols. */
6440 const struct {
6441 const char *name;
6442 void *address;
6443 }
6444 lt__PROGRAM__LTX_preloaded_symbols[] =
6445 {
6446 { "@PROGRAM@", (void *) 0 },
6447 _LT_EOF
6448 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6449 cat <<\_LT_EOF >> conftest.$ac_ext
6450 {0, (void *) 0}
6451 };
6452
6453 /* This works around a problem in FreeBSD linker */
6454 #ifdef FREEBSD_WORKAROUND
6455 static const void *lt_preloaded_setup() {
6456 return lt__PROGRAM__LTX_preloaded_symbols;
6457 }
6458 #endif
6459
6460 #ifdef __cplusplus
6461 }
6462 #endif
6463 _LT_EOF
6464 # Now try linking the two files.
6465 mv conftest.$ac_objext conftstm.$ac_objext
6466 lt_save_LIBS="$LIBS"
6467 lt_save_CFLAGS="$CFLAGS"
6468 LIBS="conftstm.$ac_objext"
6469 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6471 (eval $ac_link) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6475 pipe_works=yes
6476 fi
6477 LIBS="$lt_save_LIBS"
6478 CFLAGS="$lt_save_CFLAGS"
6479 else
6480 echo "cannot find nm_test_func in $nlist" >&5
6481 fi
6482 else
6483 echo "cannot find nm_test_var in $nlist" >&5
6484 fi
6485 else
6486 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6487 fi
6488 else
6489 echo "$progname: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6491 fi
6492 rm -rf conftest* conftst*
6493
6494 # Do not use the global_symbol_pipe unless it works.
6495 if test "$pipe_works" = yes; then
6496 break
6497 else
6498 lt_cv_sys_global_symbol_pipe=
6499 fi
6500 done
6501
6502 fi
6503
6504 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6505 lt_cv_sys_global_symbol_to_cdecl=
6506 fi
6507 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6509 $as_echo "failed" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6512 $as_echo "ok" >&6; }
6513 fi
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537 # Check whether --enable-libtool-lock was given.
6538 if test "${enable_libtool_lock+set}" = set; then :
6539 enableval=$enable_libtool_lock;
6540 fi
6541
6542 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6543
6544 # Some flags need to be propagated to the compiler or linker for good
6545 # libtool support.
6546 case $host in
6547 ia64-*-hpux*)
6548 # Find out which ABI we are using.
6549 echo 'int i;' > conftest.$ac_ext
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 case `/usr/bin/file conftest.$ac_objext` in
6556 *ELF-32*)
6557 HPUX_IA64_MODE="32"
6558 ;;
6559 *ELF-64*)
6560 HPUX_IA64_MODE="64"
6561 ;;
6562 esac
6563 fi
6564 rm -rf conftest*
6565 ;;
6566 *-*-irix6*)
6567 # Find out which ABI we are using.
6568 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }; then
6574 if test "$lt_cv_prog_gnu_ld" = yes; then
6575 case `/usr/bin/file conftest.$ac_objext` in
6576 *32-bit*)
6577 LD="${LD-ld} -melf32bsmip"
6578 ;;
6579 *N32*)
6580 LD="${LD-ld} -melf32bmipn32"
6581 ;;
6582 *64-bit*)
6583 LD="${LD-ld} -melf64bmip"
6584 ;;
6585 esac
6586 else
6587 case `/usr/bin/file conftest.$ac_objext` in
6588 *32-bit*)
6589 LD="${LD-ld} -32"
6590 ;;
6591 *N32*)
6592 LD="${LD-ld} -n32"
6593 ;;
6594 *64-bit*)
6595 LD="${LD-ld} -64"
6596 ;;
6597 esac
6598 fi
6599 fi
6600 rm -rf conftest*
6601 ;;
6602
6603 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6604 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6605 # Find out which ABI we are using.
6606 echo 'int i;' > conftest.$ac_ext
6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6608 (eval $ac_compile) 2>&5
6609 ac_status=$?
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }; then
6612 case `/usr/bin/file conftest.o` in
6613 *32-bit*)
6614 case $host in
6615 x86_64-*kfreebsd*-gnu)
6616 LD="${LD-ld} -m elf_i386_fbsd"
6617 ;;
6618 x86_64-*linux*)
6619 case `/usr/bin/file conftest.o` in
6620 *x86-64*)
6621 LD="${LD-ld} -m elf32_x86_64"
6622 ;;
6623 *)
6624 LD="${LD-ld} -m elf_i386"
6625 ;;
6626 esac
6627 ;;
6628 ppc64-*linux*|powerpc64-*linux*)
6629 LD="${LD-ld} -m elf32ppclinux"
6630 ;;
6631 s390x-*linux*)
6632 LD="${LD-ld} -m elf_s390"
6633 ;;
6634 sparc64-*linux*)
6635 LD="${LD-ld} -m elf32_sparc"
6636 ;;
6637 esac
6638 ;;
6639 *64-bit*)
6640 case $host in
6641 x86_64-*kfreebsd*-gnu)
6642 LD="${LD-ld} -m elf_x86_64_fbsd"
6643 ;;
6644 x86_64-*linux*)
6645 LD="${LD-ld} -m elf_x86_64"
6646 ;;
6647 ppc*-*linux*|powerpc*-*linux*)
6648 LD="${LD-ld} -m elf64ppc"
6649 ;;
6650 s390*-*linux*|s390*-*tpf*)
6651 LD="${LD-ld} -m elf64_s390"
6652 ;;
6653 sparc*-*linux*)
6654 LD="${LD-ld} -m elf64_sparc"
6655 ;;
6656 esac
6657 ;;
6658 esac
6659 fi
6660 rm -rf conftest*
6661 ;;
6662
6663 *-*-sco3.2v5*)
6664 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6665 SAVE_CFLAGS="$CFLAGS"
6666 CFLAGS="$CFLAGS -belf"
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6668 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6669 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 ac_ext=c
6673 ac_cpp='$CPP $CPPFLAGS'
6674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6677
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680
6681 int
6682 main ()
6683 {
6684
6685 ;
6686 return 0;
6687 }
6688 _ACEOF
6689 if ac_fn_c_try_link "$LINENO"; then :
6690 lt_cv_cc_needs_belf=yes
6691 else
6692 lt_cv_cc_needs_belf=no
6693 fi
6694 rm -f core conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
6696 ac_ext=c
6697 ac_cpp='$CPP $CPPFLAGS'
6698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6704 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6705 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6706 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6707 CFLAGS="$SAVE_CFLAGS"
6708 fi
6709 ;;
6710 sparc*-*solaris*)
6711 # Find out which ABI we are using.
6712 echo 'int i;' > conftest.$ac_ext
6713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6714 (eval $ac_compile) 2>&5
6715 ac_status=$?
6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717 test $ac_status = 0; }; then
6718 case `/usr/bin/file conftest.o` in
6719 *64-bit*)
6720 case $lt_cv_prog_gnu_ld in
6721 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6722 *)
6723 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6724 LD="${LD-ld} -64"
6725 fi
6726 ;;
6727 esac
6728 ;;
6729 esac
6730 fi
6731 rm -rf conftest*
6732 ;;
6733 esac
6734
6735 need_locks="$enable_libtool_lock"
6736
6737
6738 case $host_os in
6739 rhapsody* | darwin*)
6740 if test -n "$ac_tool_prefix"; then
6741 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6742 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 if test -n "$DSYMUTIL"; then
6749 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6769 if test -n "$DSYMUTIL"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6771 $as_echo "$DSYMUTIL" >&6; }
6772 else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6775 fi
6776
6777
6778 fi
6779 if test -z "$ac_cv_prog_DSYMUTIL"; then
6780 ac_ct_DSYMUTIL=$DSYMUTIL
6781 # Extract the first word of "dsymutil", so it can be a program name with args.
6782 set dummy dsymutil; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$ac_ct_DSYMUTIL"; then
6789 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6809 if test -n "$ac_ct_DSYMUTIL"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6811 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817 if test "x$ac_ct_DSYMUTIL" = x; then
6818 DSYMUTIL=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821 yes:)
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824 ac_tool_warned=yes ;;
6825 esac
6826 DSYMUTIL=$ac_ct_DSYMUTIL
6827 fi
6828 else
6829 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6830 fi
6831
6832 if test -n "$ac_tool_prefix"; then
6833 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6834 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 if test -n "$NMEDIT"; then
6841 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 NMEDIT=$ac_cv_prog_NMEDIT
6861 if test -n "$NMEDIT"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6863 $as_echo "$NMEDIT" >&6; }
6864 else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869
6870 fi
6871 if test -z "$ac_cv_prog_NMEDIT"; then
6872 ac_ct_NMEDIT=$NMEDIT
6873 # Extract the first word of "nmedit", so it can be a program name with args.
6874 set dummy nmedit; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 if test -n "$ac_ct_NMEDIT"; then
6881 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6901 if test -n "$ac_ct_NMEDIT"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6903 $as_echo "$ac_ct_NMEDIT" >&6; }
6904 else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909 if test "x$ac_ct_NMEDIT" = x; then
6910 NMEDIT=":"
6911 else
6912 case $cross_compiling:$ac_tool_warned in
6913 yes:)
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 ac_tool_warned=yes ;;
6917 esac
6918 NMEDIT=$ac_ct_NMEDIT
6919 fi
6920 else
6921 NMEDIT="$ac_cv_prog_NMEDIT"
6922 fi
6923
6924 if test -n "$ac_tool_prefix"; then
6925 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6926 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if test "${ac_cv_prog_LIPO+set}" = set; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 if test -n "$LIPO"; then
6933 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950 fi
6951 fi
6952 LIPO=$ac_cv_prog_LIPO
6953 if test -n "$LIPO"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6955 $as_echo "$LIPO" >&6; }
6956 else
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960
6961
6962 fi
6963 if test -z "$ac_cv_prog_LIPO"; then
6964 ac_ct_LIPO=$LIPO
6965 # Extract the first word of "lipo", so it can be a program name with args.
6966 set dummy lipo; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 if test -n "$ac_ct_LIPO"; then
6973 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_ac_ct_LIPO="lipo"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6993 if test -n "$ac_ct_LIPO"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6995 $as_echo "$ac_ct_LIPO" >&6; }
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 fi
7000
7001 if test "x$ac_ct_LIPO" = x; then
7002 LIPO=":"
7003 else
7004 case $cross_compiling:$ac_tool_warned in
7005 yes:)
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008 ac_tool_warned=yes ;;
7009 esac
7010 LIPO=$ac_ct_LIPO
7011 fi
7012 else
7013 LIPO="$ac_cv_prog_LIPO"
7014 fi
7015
7016 if test -n "$ac_tool_prefix"; then
7017 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7018 set dummy ${ac_tool_prefix}otool; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 if test -n "$OTOOL"; then
7025 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 OTOOL=$ac_cv_prog_OTOOL
7045 if test -n "$OTOOL"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7047 $as_echo "$OTOOL" >&6; }
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053
7054 fi
7055 if test -z "$ac_cv_prog_OTOOL"; then
7056 ac_ct_OTOOL=$OTOOL
7057 # Extract the first word of "otool", so it can be a program name with args.
7058 set dummy otool; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 if test -n "$ac_ct_OTOOL"; then
7065 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_ac_ct_OTOOL="otool"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7085 if test -n "$ac_ct_OTOOL"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7087 $as_echo "$ac_ct_OTOOL" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092
7093 if test "x$ac_ct_OTOOL" = x; then
7094 OTOOL=":"
7095 else
7096 case $cross_compiling:$ac_tool_warned in
7097 yes:)
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100 ac_tool_warned=yes ;;
7101 esac
7102 OTOOL=$ac_ct_OTOOL
7103 fi
7104 else
7105 OTOOL="$ac_cv_prog_OTOOL"
7106 fi
7107
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7110 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 if test -n "$OTOOL64"; then
7117 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7133
7134 fi
7135 fi
7136 OTOOL64=$ac_cv_prog_OTOOL64
7137 if test -n "$OTOOL64"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7139 $as_echo "$OTOOL64" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143 fi
7144
7145
7146 fi
7147 if test -z "$ac_cv_prog_OTOOL64"; then
7148 ac_ct_OTOOL64=$OTOOL64
7149 # Extract the first word of "otool64", so it can be a program name with args.
7150 set dummy otool64; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 if test -n "$ac_ct_OTOOL64"; then
7157 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7161 do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_prog_ac_ct_OTOOL64="otool64"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170 done
7171 done
7172 IFS=$as_save_IFS
7173
7174 fi
7175 fi
7176 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7177 if test -n "$ac_ct_OTOOL64"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7179 $as_echo "$ac_ct_OTOOL64" >&6; }
7180 else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 fi
7184
7185 if test "x$ac_ct_OTOOL64" = x; then
7186 OTOOL64=":"
7187 else
7188 case $cross_compiling:$ac_tool_warned in
7189 yes:)
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192 ac_tool_warned=yes ;;
7193 esac
7194 OTOOL64=$ac_ct_OTOOL64
7195 fi
7196 else
7197 OTOOL64="$ac_cv_prog_OTOOL64"
7198 fi
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7227 $as_echo_n "checking for -single_module linker flag... " >&6; }
7228 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 lt_cv_apple_cc_single_mod=no
7232 if test -z "${LT_MULTI_MODULE}"; then
7233 # By default we will add the -single_module flag. You can override
7234 # by either setting the environment variable LT_MULTI_MODULE
7235 # non-empty at configure time, or by adding -multi_module to the
7236 # link flags.
7237 rm -rf libconftest.dylib*
7238 echo "int foo(void){return 1;}" > conftest.c
7239 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7240 -dynamiclib -Wl,-single_module conftest.c" >&5
7241 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7242 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7243 _lt_result=$?
7244 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7245 lt_cv_apple_cc_single_mod=yes
7246 else
7247 cat conftest.err >&5
7248 fi
7249 rm -rf libconftest.dylib*
7250 rm -f conftest.*
7251 fi
7252 fi
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7254 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7256 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7257 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 lt_cv_ld_exported_symbols_list=no
7261 save_LDFLAGS=$LDFLAGS
7262 echo "_main" > conftest.sym
7263 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266
7267 int
7268 main ()
7269 {
7270
7271 ;
7272 return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_link "$LINENO"; then :
7276 lt_cv_ld_exported_symbols_list=yes
7277 else
7278 lt_cv_ld_exported_symbols_list=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 LDFLAGS="$save_LDFLAGS"
7283
7284 fi
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7286 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7288 $as_echo_n "checking for -force_load linker flag... " >&6; }
7289 if test "${lt_cv_ld_force_load+set}" = set; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 lt_cv_ld_force_load=no
7293 cat > conftest.c << _LT_EOF
7294 int forced_loaded() { return 2;}
7295 _LT_EOF
7296 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7297 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7298 echo "$AR cru libconftest.a conftest.o" >&5
7299 $AR cru libconftest.a conftest.o 2>&5
7300 cat > conftest.c << _LT_EOF
7301 int main() { return 0;}
7302 _LT_EOF
7303 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7304 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7305 _lt_result=$?
7306 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7307 lt_cv_ld_force_load=yes
7308 else
7309 cat conftest.err >&5
7310 fi
7311 rm -f conftest.err libconftest.a conftest conftest.c
7312 rm -rf conftest.dSYM
7313
7314 fi
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7316 $as_echo "$lt_cv_ld_force_load" >&6; }
7317 case $host_os in
7318 rhapsody* | darwin1.[012])
7319 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7320 darwin1.*)
7321 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7322 darwin*) # darwin 5.x on
7323 # if running on 10.5 or later, the deployment target defaults
7324 # to the OS version, if on x86, and 10.4, the deployment
7325 # target defaults to 10.4. Don't you love it?
7326 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7327 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7328 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7329 10.[012]*)
7330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7331 10.*)
7332 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7333 esac
7334 ;;
7335 esac
7336 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7337 _lt_dar_single_mod='$single_module'
7338 fi
7339 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7340 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7341 else
7342 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7343 fi
7344 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7345 _lt_dsymutil='~$DSYMUTIL $lib || :'
7346 else
7347 _lt_dsymutil=
7348 fi
7349 ;;
7350 esac
7351
7352 ac_ext=c
7353 ac_cpp='$CPP $CPPFLAGS'
7354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7358 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7359 # On Suns, sometimes $CPP names a directory.
7360 if test -n "$CPP" && test -d "$CPP"; then
7361 CPP=
7362 fi
7363 if test -z "$CPP"; then
7364 if test "${ac_cv_prog_CPP+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 # Double quotes because CPP needs to be expanded
7368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7369 do
7370 ac_preproc_ok=false
7371 for ac_c_preproc_warn_flag in '' yes
7372 do
7373 # Use a header file that comes with gcc, so configuring glibc
7374 # with a fresh cross-compiler works.
7375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7376 # <limits.h> exists even on freestanding compilers.
7377 # On the NeXT, cc -E runs the code through the compiler's parser,
7378 # not just through cpp. "Syntax error" is here to catch this case.
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7381 #ifdef __STDC__
7382 # include <limits.h>
7383 #else
7384 # include <assert.h>
7385 #endif
7386 Syntax error
7387 _ACEOF
7388 if ac_fn_c_try_cpp "$LINENO"; then :
7389
7390 else
7391 # Broken: fails on valid input.
7392 continue
7393 fi
7394 rm -f conftest.err conftest.$ac_ext
7395
7396 # OK, works on sane cases. Now check whether nonexistent headers
7397 # can be detected and how.
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 #include <ac_nonexistent.h>
7401 _ACEOF
7402 if ac_fn_c_try_cpp "$LINENO"; then :
7403 # Broken: success on invalid input.
7404 continue
7405 else
7406 # Passes both tests.
7407 ac_preproc_ok=:
7408 break
7409 fi
7410 rm -f conftest.err conftest.$ac_ext
7411
7412 done
7413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7414 rm -f conftest.err conftest.$ac_ext
7415 if $ac_preproc_ok; then :
7416 break
7417 fi
7418
7419 done
7420 ac_cv_prog_CPP=$CPP
7421
7422 fi
7423 CPP=$ac_cv_prog_CPP
7424 else
7425 ac_cv_prog_CPP=$CPP
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7428 $as_echo "$CPP" >&6; }
7429 ac_preproc_ok=false
7430 for ac_c_preproc_warn_flag in '' yes
7431 do
7432 # Use a header file that comes with gcc, so configuring glibc
7433 # with a fresh cross-compiler works.
7434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7435 # <limits.h> exists even on freestanding compilers.
7436 # On the NeXT, cc -E runs the code through the compiler's parser,
7437 # not just through cpp. "Syntax error" is here to catch this case.
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #ifdef __STDC__
7441 # include <limits.h>
7442 #else
7443 # include <assert.h>
7444 #endif
7445 Syntax error
7446 _ACEOF
7447 if ac_fn_c_try_cpp "$LINENO"; then :
7448
7449 else
7450 # Broken: fails on valid input.
7451 continue
7452 fi
7453 rm -f conftest.err conftest.$ac_ext
7454
7455 # OK, works on sane cases. Now check whether nonexistent headers
7456 # can be detected and how.
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #include <ac_nonexistent.h>
7460 _ACEOF
7461 if ac_fn_c_try_cpp "$LINENO"; then :
7462 # Broken: success on invalid input.
7463 continue
7464 else
7465 # Passes both tests.
7466 ac_preproc_ok=:
7467 break
7468 fi
7469 rm -f conftest.err conftest.$ac_ext
7470
7471 done
7472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7473 rm -f conftest.err conftest.$ac_ext
7474 if $ac_preproc_ok; then :
7475
7476 else
7477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7479 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7480 See \`config.log' for more details." "$LINENO" 5; }
7481 fi
7482
7483 ac_ext=c
7484 ac_cpp='$CPP $CPPFLAGS'
7485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7491 $as_echo_n "checking for ANSI C header files... " >&6; }
7492 if test "${ac_cv_header_stdc+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #include <stdlib.h>
7498 #include <stdarg.h>
7499 #include <string.h>
7500 #include <float.h>
7501
7502 int
7503 main ()
7504 {
7505
7506 ;
7507 return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 ac_cv_header_stdc=yes
7512 else
7513 ac_cv_header_stdc=no
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516
7517 if test $ac_cv_header_stdc = yes; then
7518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521 #include <string.h>
7522
7523 _ACEOF
7524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525 $EGREP "memchr" >/dev/null 2>&1; then :
7526
7527 else
7528 ac_cv_header_stdc=no
7529 fi
7530 rm -f conftest*
7531
7532 fi
7533
7534 if test $ac_cv_header_stdc = yes; then
7535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <stdlib.h>
7539
7540 _ACEOF
7541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542 $EGREP "free" >/dev/null 2>&1; then :
7543
7544 else
7545 ac_cv_header_stdc=no
7546 fi
7547 rm -f conftest*
7548
7549 fi
7550
7551 if test $ac_cv_header_stdc = yes; then
7552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7553 if test "$cross_compiling" = yes; then :
7554 :
7555 else
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 #include <ctype.h>
7559 #include <stdlib.h>
7560 #if ((' ' & 0x0FF) == 0x020)
7561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7563 #else
7564 # define ISLOWER(c) \
7565 (('a' <= (c) && (c) <= 'i') \
7566 || ('j' <= (c) && (c) <= 'r') \
7567 || ('s' <= (c) && (c) <= 'z'))
7568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7569 #endif
7570
7571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7572 int
7573 main ()
7574 {
7575 int i;
7576 for (i = 0; i < 256; i++)
7577 if (XOR (islower (i), ISLOWER (i))
7578 || toupper (i) != TOUPPER (i))
7579 return 2;
7580 return 0;
7581 }
7582 _ACEOF
7583 if ac_fn_c_try_run "$LINENO"; then :
7584
7585 else
7586 ac_cv_header_stdc=no
7587 fi
7588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7589 conftest.$ac_objext conftest.beam conftest.$ac_ext
7590 fi
7591
7592 fi
7593 fi
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7595 $as_echo "$ac_cv_header_stdc" >&6; }
7596 if test $ac_cv_header_stdc = yes; then
7597
7598 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7599
7600 fi
7601
7602 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7604 inttypes.h stdint.h unistd.h
7605 do :
7606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7607 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7608 "
7609 eval as_val=\$$as_ac_Header
7610 if test "x$as_val" = x""yes; then :
7611 cat >>confdefs.h <<_ACEOF
7612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7613 _ACEOF
7614
7615 fi
7616
7617 done
7618
7619
7620 for ac_header in dlfcn.h
7621 do :
7622 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7623 "
7624 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7625 cat >>confdefs.h <<_ACEOF
7626 #define HAVE_DLFCN_H 1
7627 _ACEOF
7628
7629 fi
7630
7631 done
7632
7633
7634
7635
7636
7637
7638 # Set options
7639
7640
7641
7642
7643 enable_win32_dll=no
7644
7645
7646 # Check whether --enable-shared was given.
7647 if test "${enable_shared+set}" = set; then :
7648 enableval=$enable_shared; p=${PACKAGE-default}
7649 case $enableval in
7650 yes) enable_shared=yes ;;
7651 no) enable_shared=no ;;
7652 *)
7653 enable_shared=no
7654 # Look at the argument we got. We use all the common list separators.
7655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7656 for pkg in $enableval; do
7657 IFS="$lt_save_ifs"
7658 if test "X$pkg" = "X$p"; then
7659 enable_shared=yes
7660 fi
7661 done
7662 IFS="$lt_save_ifs"
7663 ;;
7664 esac
7665 else
7666 enable_shared=yes
7667 fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677 # Check whether --enable-static was given.
7678 if test "${enable_static+set}" = set; then :
7679 enableval=$enable_static; p=${PACKAGE-default}
7680 case $enableval in
7681 yes) enable_static=yes ;;
7682 no) enable_static=no ;;
7683 *)
7684 enable_static=no
7685 # Look at the argument we got. We use all the common list separators.
7686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7687 for pkg in $enableval; do
7688 IFS="$lt_save_ifs"
7689 if test "X$pkg" = "X$p"; then
7690 enable_static=yes
7691 fi
7692 done
7693 IFS="$lt_save_ifs"
7694 ;;
7695 esac
7696 else
7697 enable_static=yes
7698 fi
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 # Check whether --with-pic was given.
7710 if test "${with_pic+set}" = set; then :
7711 withval=$with_pic; pic_mode="$withval"
7712 else
7713 pic_mode=default
7714 fi
7715
7716
7717 test -z "$pic_mode" && pic_mode=default
7718
7719
7720
7721
7722
7723
7724
7725 # Check whether --enable-fast-install was given.
7726 if test "${enable_fast_install+set}" = set; then :
7727 enableval=$enable_fast_install; p=${PACKAGE-default}
7728 case $enableval in
7729 yes) enable_fast_install=yes ;;
7730 no) enable_fast_install=no ;;
7731 *)
7732 enable_fast_install=no
7733 # Look at the argument we got. We use all the common list separators.
7734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7735 for pkg in $enableval; do
7736 IFS="$lt_save_ifs"
7737 if test "X$pkg" = "X$p"; then
7738 enable_fast_install=yes
7739 fi
7740 done
7741 IFS="$lt_save_ifs"
7742 ;;
7743 esac
7744 else
7745 enable_fast_install=yes
7746 fi
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758 # This can be used to rebuild libtool when needed
7759 LIBTOOL_DEPS="$ltmain"
7760
7761 # Always use our own libtool.
7762 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789 test -z "$LN_S" && LN_S="ln -s"
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 if test -n "${ZSH_VERSION+set}" ; then
7805 setopt NO_GLOB_SUBST
7806 fi
7807
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7809 $as_echo_n "checking for objdir... " >&6; }
7810 if test "${lt_cv_objdir+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 rm -f .libs 2>/dev/null
7814 mkdir .libs 2>/dev/null
7815 if test -d .libs; then
7816 lt_cv_objdir=.libs
7817 else
7818 # MS-DOS does not allow filenames that begin with a dot.
7819 lt_cv_objdir=_libs
7820 fi
7821 rmdir .libs 2>/dev/null
7822 fi
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7824 $as_echo "$lt_cv_objdir" >&6; }
7825 objdir=$lt_cv_objdir
7826
7827
7828
7829
7830
7831 cat >>confdefs.h <<_ACEOF
7832 #define LT_OBJDIR "$lt_cv_objdir/"
7833 _ACEOF
7834
7835
7836
7837
7838 case $host_os in
7839 aix3*)
7840 # AIX sometimes has problems with the GCC collect2 program. For some
7841 # reason, if we set the COLLECT_NAMES environment variable, the problems
7842 # vanish in a puff of smoke.
7843 if test "X${COLLECT_NAMES+set}" != Xset; then
7844 COLLECT_NAMES=
7845 export COLLECT_NAMES
7846 fi
7847 ;;
7848 esac
7849
7850 # Global variables:
7851 ofile=libtool
7852 can_build_shared=yes
7853
7854 # All known linkers require a `.a' archive for static linking (except MSVC,
7855 # which needs '.lib').
7856 libext=a
7857
7858 with_gnu_ld="$lt_cv_prog_gnu_ld"
7859
7860 old_CC="$CC"
7861 old_CFLAGS="$CFLAGS"
7862
7863 # Set sane defaults for various variables
7864 test -z "$CC" && CC=cc
7865 test -z "$LTCC" && LTCC=$CC
7866 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7867 test -z "$LD" && LD=ld
7868 test -z "$ac_objext" && ac_objext=o
7869
7870 for cc_temp in $compiler""; do
7871 case $cc_temp in
7872 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7873 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7874 \-*) ;;
7875 *) break;;
7876 esac
7877 done
7878 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7879
7880
7881 # Only perform the check for file, if the check method requires it
7882 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7883 case $deplibs_check_method in
7884 file_magic*)
7885 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7887 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 case $MAGIC_CMD in
7892 [\\/*] | ?:[\\/]*)
7893 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7894 ;;
7895 *)
7896 lt_save_MAGIC_CMD="$MAGIC_CMD"
7897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7899 for ac_dir in $ac_dummy; do
7900 IFS="$lt_save_ifs"
7901 test -z "$ac_dir" && ac_dir=.
7902 if test -f $ac_dir/${ac_tool_prefix}file; then
7903 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7904 if test -n "$file_magic_test_file"; then
7905 case $deplibs_check_method in
7906 "file_magic "*)
7907 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7910 $EGREP "$file_magic_regex" > /dev/null; then
7911 :
7912 else
7913 cat <<_LT_EOF 1>&2
7914
7915 *** Warning: the command libtool uses to detect shared libraries,
7916 *** $file_magic_cmd, produces output that libtool cannot recognize.
7917 *** The result is that libtool may fail to recognize shared libraries
7918 *** as such. This will affect the creation of libtool libraries that
7919 *** depend on shared libraries, but programs linked with such libtool
7920 *** libraries will work regardless of this problem. Nevertheless, you
7921 *** may want to report the problem to your system manager and/or to
7922 *** bug-libtool@gnu.org
7923
7924 _LT_EOF
7925 fi ;;
7926 esac
7927 fi
7928 break
7929 fi
7930 done
7931 IFS="$lt_save_ifs"
7932 MAGIC_CMD="$lt_save_MAGIC_CMD"
7933 ;;
7934 esac
7935 fi
7936
7937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7938 if test -n "$MAGIC_CMD"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7940 $as_echo "$MAGIC_CMD" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946
7947
7948
7949
7950 if test -z "$lt_cv_path_MAGIC_CMD"; then
7951 if test -n "$ac_tool_prefix"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7953 $as_echo_n "checking for file... " >&6; }
7954 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 case $MAGIC_CMD in
7958 [\\/*] | ?:[\\/]*)
7959 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7960 ;;
7961 *)
7962 lt_save_MAGIC_CMD="$MAGIC_CMD"
7963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7964 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7965 for ac_dir in $ac_dummy; do
7966 IFS="$lt_save_ifs"
7967 test -z "$ac_dir" && ac_dir=.
7968 if test -f $ac_dir/file; then
7969 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7970 if test -n "$file_magic_test_file"; then
7971 case $deplibs_check_method in
7972 "file_magic "*)
7973 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7975 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7976 $EGREP "$file_magic_regex" > /dev/null; then
7977 :
7978 else
7979 cat <<_LT_EOF 1>&2
7980
7981 *** Warning: the command libtool uses to detect shared libraries,
7982 *** $file_magic_cmd, produces output that libtool cannot recognize.
7983 *** The result is that libtool may fail to recognize shared libraries
7984 *** as such. This will affect the creation of libtool libraries that
7985 *** depend on shared libraries, but programs linked with such libtool
7986 *** libraries will work regardless of this problem. Nevertheless, you
7987 *** may want to report the problem to your system manager and/or to
7988 *** bug-libtool@gnu.org
7989
7990 _LT_EOF
7991 fi ;;
7992 esac
7993 fi
7994 break
7995 fi
7996 done
7997 IFS="$lt_save_ifs"
7998 MAGIC_CMD="$lt_save_MAGIC_CMD"
7999 ;;
8000 esac
8001 fi
8002
8003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8004 if test -n "$MAGIC_CMD"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8006 $as_echo "$MAGIC_CMD" >&6; }
8007 else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8010 fi
8011
8012
8013 else
8014 MAGIC_CMD=:
8015 fi
8016 fi
8017
8018 fi
8019 ;;
8020 esac
8021
8022 # Use C for the default configuration in the libtool script
8023
8024 lt_save_CC="$CC"
8025 ac_ext=c
8026 ac_cpp='$CPP $CPPFLAGS'
8027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8030
8031
8032 # Source file extension for C test sources.
8033 ac_ext=c
8034
8035 # Object file extension for compiled C test sources.
8036 objext=o
8037 objext=$objext
8038
8039 # Code to be used in simple compile tests
8040 lt_simple_compile_test_code="int some_variable = 0;"
8041
8042 # Code to be used in simple link tests
8043 lt_simple_link_test_code='int main(){return(0);}'
8044
8045
8046
8047
8048
8049
8050
8051 # If no C compiler was specified, use CC.
8052 LTCC=${LTCC-"$CC"}
8053
8054 # If no C compiler flags were specified, use CFLAGS.
8055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8056
8057 # Allow CC to be a program name with arguments.
8058 compiler=$CC
8059
8060 # Save the default compiler, since it gets overwritten when the other
8061 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8062 compiler_DEFAULT=$CC
8063
8064 # save warnings/boilerplate of simple test code
8065 ac_outfile=conftest.$ac_objext
8066 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8067 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8068 _lt_compiler_boilerplate=`cat conftest.err`
8069 $RM conftest*
8070
8071 ac_outfile=conftest.$ac_objext
8072 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8073 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8074 _lt_linker_boilerplate=`cat conftest.err`
8075 $RM -r conftest*
8076
8077
8078 ## CAVEAT EMPTOR:
8079 ## There is no encapsulation within the following macros, do not change
8080 ## the running order or otherwise move them around unless you know exactly
8081 ## what you are doing...
8082 if test -n "$compiler"; then
8083
8084 lt_prog_compiler_no_builtin_flag=
8085
8086 if test "$GCC" = yes; then
8087 case $cc_basename in
8088 nvcc*)
8089 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8090 *)
8091 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8092 esac
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8095 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8096 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 lt_cv_prog_compiler_rtti_exceptions=no
8100 ac_outfile=conftest.$ac_objext
8101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8102 lt_compiler_flag="-fno-rtti -fno-exceptions"
8103 # Insert the option either (1) after the last *FLAGS variable, or
8104 # (2) before a word containing "conftest.", or (3) at the end.
8105 # Note that $ac_compile itself does not contain backslashes and begins
8106 # with a dollar sign (not a hyphen), so the echo should work correctly.
8107 # The option is referenced via a variable to avoid confusing sed.
8108 lt_compile=`echo "$ac_compile" | $SED \
8109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8111 -e 's:$: $lt_compiler_flag:'`
8112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8113 (eval "$lt_compile" 2>conftest.err)
8114 ac_status=$?
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 if (exit $ac_status) && test -s "$ac_outfile"; then
8118 # The compiler can only warn and ignore the option if not recognized
8119 # So say no if there are warnings other than the usual output.
8120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8123 lt_cv_prog_compiler_rtti_exceptions=yes
8124 fi
8125 fi
8126 $RM conftest*
8127
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8130 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8131
8132 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8133 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8134 else
8135 :
8136 fi
8137
8138 fi
8139
8140
8141
8142
8143
8144
8145 lt_prog_compiler_wl=
8146 lt_prog_compiler_pic=
8147 lt_prog_compiler_static=
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8150 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8151
8152 if test "$GCC" = yes; then
8153 lt_prog_compiler_wl='-Wl,'
8154 lt_prog_compiler_static='-static'
8155
8156 case $host_os in
8157 aix*)
8158 # All AIX code is PIC.
8159 if test "$host_cpu" = ia64; then
8160 # AIX 5 now supports IA64 processor
8161 lt_prog_compiler_static='-Bstatic'
8162 fi
8163 lt_prog_compiler_pic='-fPIC'
8164 ;;
8165
8166 amigaos*)
8167 case $host_cpu in
8168 powerpc)
8169 # see comment about AmigaOS4 .so support
8170 lt_prog_compiler_pic='-fPIC'
8171 ;;
8172 m68k)
8173 # FIXME: we need at least 68020 code to build shared libraries, but
8174 # adding the `-m68020' flag to GCC prevents building anything better,
8175 # like `-m68040'.
8176 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8177 ;;
8178 esac
8179 ;;
8180
8181 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8182 # PIC is the default for these OSes.
8183 ;;
8184
8185 mingw* | cygwin* | pw32* | os2* | cegcc*)
8186 # This hack is so that the source file can tell whether it is being
8187 # built for inclusion in a dll (and should export symbols for example).
8188 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8189 # (--disable-auto-import) libraries
8190 lt_prog_compiler_pic='-DDLL_EXPORT'
8191 ;;
8192
8193 darwin* | rhapsody*)
8194 # PIC is the default on this platform
8195 # Common symbols not allowed in MH_DYLIB files
8196 lt_prog_compiler_pic='-fno-common'
8197 ;;
8198
8199 haiku*)
8200 # PIC is the default for Haiku.
8201 # The "-static" flag exists, but is broken.
8202 lt_prog_compiler_static=
8203 ;;
8204
8205 hpux*)
8206 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8207 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8208 # sets the default TLS model and affects inlining.
8209 case $host_cpu in
8210 hppa*64*)
8211 # +Z the default
8212 ;;
8213 *)
8214 lt_prog_compiler_pic='-fPIC'
8215 ;;
8216 esac
8217 ;;
8218
8219 interix[3-9]*)
8220 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8221 # Instead, we relocate shared libraries at runtime.
8222 ;;
8223
8224 msdosdjgpp*)
8225 # Just because we use GCC doesn't mean we suddenly get shared libraries
8226 # on systems that don't support them.
8227 lt_prog_compiler_can_build_shared=no
8228 enable_shared=no
8229 ;;
8230
8231 *nto* | *qnx*)
8232 # QNX uses GNU C++, but need to define -shared option too, otherwise
8233 # it will coredump.
8234 lt_prog_compiler_pic='-fPIC -shared'
8235 ;;
8236
8237 sysv4*MP*)
8238 if test -d /usr/nec; then
8239 lt_prog_compiler_pic=-Kconform_pic
8240 fi
8241 ;;
8242
8243 *)
8244 lt_prog_compiler_pic='-fPIC'
8245 ;;
8246 esac
8247
8248 case $cc_basename in
8249 nvcc*) # Cuda Compiler Driver 2.2
8250 lt_prog_compiler_wl='-Xlinker '
8251 lt_prog_compiler_pic='-Xcompiler -fPIC'
8252 ;;
8253 esac
8254 else
8255 # PORTME Check for flag to pass linker flags through the system compiler.
8256 case $host_os in
8257 aix*)
8258 lt_prog_compiler_wl='-Wl,'
8259 if test "$host_cpu" = ia64; then
8260 # AIX 5 now supports IA64 processor
8261 lt_prog_compiler_static='-Bstatic'
8262 else
8263 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8264 fi
8265 ;;
8266
8267 mingw* | cygwin* | pw32* | os2* | cegcc*)
8268 # This hack is so that the source file can tell whether it is being
8269 # built for inclusion in a dll (and should export symbols for example).
8270 lt_prog_compiler_pic='-DDLL_EXPORT'
8271 ;;
8272
8273 hpux9* | hpux10* | hpux11*)
8274 lt_prog_compiler_wl='-Wl,'
8275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8276 # not for PA HP-UX.
8277 case $host_cpu in
8278 hppa*64*|ia64*)
8279 # +Z the default
8280 ;;
8281 *)
8282 lt_prog_compiler_pic='+Z'
8283 ;;
8284 esac
8285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8286 lt_prog_compiler_static='${wl}-a ${wl}archive'
8287 ;;
8288
8289 irix5* | irix6* | nonstopux*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # PIC (with -KPIC) is the default.
8292 lt_prog_compiler_static='-non_shared'
8293 ;;
8294
8295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8296 case $cc_basename in
8297 # old Intel for x86_64 which still supported -KPIC.
8298 ecc*)
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_pic='-KPIC'
8301 lt_prog_compiler_static='-static'
8302 ;;
8303 # icc used to be incompatible with GCC.
8304 # ICC 10 doesn't accept -KPIC any more.
8305 icc* | ifort*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='-fPIC'
8308 lt_prog_compiler_static='-static'
8309 ;;
8310 # Lahey Fortran 8.1.
8311 lf95*)
8312 lt_prog_compiler_wl='-Wl,'
8313 lt_prog_compiler_pic='--shared'
8314 lt_prog_compiler_static='--static'
8315 ;;
8316 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8317 # Portland Group compilers (*not* the Pentium gcc compiler,
8318 # which looks to be a dead project)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-fpic'
8321 lt_prog_compiler_static='-Bstatic'
8322 ;;
8323 ccc*)
8324 lt_prog_compiler_wl='-Wl,'
8325 # All Alpha code is PIC.
8326 lt_prog_compiler_static='-non_shared'
8327 ;;
8328 xl* | bgxl* | bgf* | mpixl*)
8329 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8330 lt_prog_compiler_wl='-Wl,'
8331 lt_prog_compiler_pic='-qpic'
8332 lt_prog_compiler_static='-qstaticlink'
8333 ;;
8334 *)
8335 case `$CC -V 2>&1 | sed 5q` in
8336 *Sun\ F* | *Sun*Fortran*)
8337 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-Bstatic'
8340 lt_prog_compiler_wl=''
8341 ;;
8342 *Sun\ C*)
8343 # Sun C 5.9
8344 lt_prog_compiler_pic='-KPIC'
8345 lt_prog_compiler_static='-Bstatic'
8346 lt_prog_compiler_wl='-Wl,'
8347 ;;
8348 esac
8349 ;;
8350 esac
8351 ;;
8352
8353 newsos6)
8354 lt_prog_compiler_pic='-KPIC'
8355 lt_prog_compiler_static='-Bstatic'
8356 ;;
8357
8358 *nto* | *qnx*)
8359 # QNX uses GNU C++, but need to define -shared option too, otherwise
8360 # it will coredump.
8361 lt_prog_compiler_pic='-fPIC -shared'
8362 ;;
8363
8364 osf3* | osf4* | osf5*)
8365 lt_prog_compiler_wl='-Wl,'
8366 # All OSF/1 code is PIC.
8367 lt_prog_compiler_static='-non_shared'
8368 ;;
8369
8370 rdos*)
8371 lt_prog_compiler_static='-non_shared'
8372 ;;
8373
8374 solaris*)
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8377 case $cc_basename in
8378 f77* | f90* | f95*)
8379 lt_prog_compiler_wl='-Qoption ld ';;
8380 *)
8381 lt_prog_compiler_wl='-Wl,';;
8382 esac
8383 ;;
8384
8385 sunos4*)
8386 lt_prog_compiler_wl='-Qoption ld '
8387 lt_prog_compiler_pic='-PIC'
8388 lt_prog_compiler_static='-Bstatic'
8389 ;;
8390
8391 sysv4 | sysv4.2uw2* | sysv4.3*)
8392 lt_prog_compiler_wl='-Wl,'
8393 lt_prog_compiler_pic='-KPIC'
8394 lt_prog_compiler_static='-Bstatic'
8395 ;;
8396
8397 sysv4*MP*)
8398 if test -d /usr/nec ;then
8399 lt_prog_compiler_pic='-Kconform_pic'
8400 lt_prog_compiler_static='-Bstatic'
8401 fi
8402 ;;
8403
8404 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_pic='-KPIC'
8407 lt_prog_compiler_static='-Bstatic'
8408 ;;
8409
8410 unicos*)
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_can_build_shared=no
8413 ;;
8414
8415 uts4*)
8416 lt_prog_compiler_pic='-pic'
8417 lt_prog_compiler_static='-Bstatic'
8418 ;;
8419
8420 *)
8421 lt_prog_compiler_can_build_shared=no
8422 ;;
8423 esac
8424 fi
8425
8426 case $host_os in
8427 # For platforms which do not support PIC, -DPIC is meaningless:
8428 *djgpp*)
8429 lt_prog_compiler_pic=
8430 ;;
8431 *)
8432 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8433 ;;
8434 esac
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8436 $as_echo "$lt_prog_compiler_pic" >&6; }
8437
8438
8439
8440
8441
8442
8443 #
8444 # Check to make sure the PIC flag actually works.
8445 #
8446 if test -n "$lt_prog_compiler_pic"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8448 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8449 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 lt_cv_prog_compiler_pic_works=no
8453 ac_outfile=conftest.$ac_objext
8454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8455 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8456 # Insert the option either (1) after the last *FLAGS variable, or
8457 # (2) before a word containing "conftest.", or (3) at the end.
8458 # Note that $ac_compile itself does not contain backslashes and begins
8459 # with a dollar sign (not a hyphen), so the echo should work correctly.
8460 # The option is referenced via a variable to avoid confusing sed.
8461 lt_compile=`echo "$ac_compile" | $SED \
8462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464 -e 's:$: $lt_compiler_flag:'`
8465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8466 (eval "$lt_compile" 2>conftest.err)
8467 ac_status=$?
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 if (exit $ac_status) && test -s "$ac_outfile"; then
8471 # The compiler can only warn and ignore the option if not recognized
8472 # So say no if there are warnings other than the usual output.
8473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8476 lt_cv_prog_compiler_pic_works=yes
8477 fi
8478 fi
8479 $RM conftest*
8480
8481 fi
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8483 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8484
8485 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8486 case $lt_prog_compiler_pic in
8487 "" | " "*) ;;
8488 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8489 esac
8490 else
8491 lt_prog_compiler_pic=
8492 lt_prog_compiler_can_build_shared=no
8493 fi
8494
8495 fi
8496
8497
8498
8499
8500
8501
8502 #
8503 # Check to make sure the static flag actually works.
8504 #
8505 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8507 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8508 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 lt_cv_prog_compiler_static_works=no
8512 save_LDFLAGS="$LDFLAGS"
8513 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8514 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8515 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8516 # The linker can only warn and ignore the option if not recognized
8517 # So say no if there are warnings
8518 if test -s conftest.err; then
8519 # Append any errors to the config.log.
8520 cat conftest.err 1>&5
8521 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8523 if diff conftest.exp conftest.er2 >/dev/null; then
8524 lt_cv_prog_compiler_static_works=yes
8525 fi
8526 else
8527 lt_cv_prog_compiler_static_works=yes
8528 fi
8529 fi
8530 $RM -r conftest*
8531 LDFLAGS="$save_LDFLAGS"
8532
8533 fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8535 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8536
8537 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8538 :
8539 else
8540 lt_prog_compiler_static=
8541 fi
8542
8543
8544
8545
8546
8547
8548
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8550 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8551 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 lt_cv_prog_compiler_c_o=no
8555 $RM -r conftest 2>/dev/null
8556 mkdir conftest
8557 cd conftest
8558 mkdir out
8559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8560
8561 lt_compiler_flag="-o out/conftest2.$ac_objext"
8562 # Insert the option either (1) after the last *FLAGS variable, or
8563 # (2) before a word containing "conftest.", or (3) at the end.
8564 # Note that $ac_compile itself does not contain backslashes and begins
8565 # with a dollar sign (not a hyphen), so the echo should work correctly.
8566 lt_compile=`echo "$ac_compile" | $SED \
8567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8569 -e 's:$: $lt_compiler_flag:'`
8570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8571 (eval "$lt_compile" 2>out/conftest.err)
8572 ac_status=$?
8573 cat out/conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8576 then
8577 # The compiler can only warn and ignore the option if not recognized
8578 # So say no if there are warnings
8579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8582 lt_cv_prog_compiler_c_o=yes
8583 fi
8584 fi
8585 chmod u+w . 2>&5
8586 $RM conftest*
8587 # SGI C++ compiler will create directory out/ii_files/ for
8588 # template instantiation
8589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8590 $RM out/* && rmdir out
8591 cd ..
8592 $RM -r conftest
8593 $RM conftest*
8594
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8597 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8598
8599
8600
8601
8602
8603
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8605 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8606 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 lt_cv_prog_compiler_c_o=no
8610 $RM -r conftest 2>/dev/null
8611 mkdir conftest
8612 cd conftest
8613 mkdir out
8614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8615
8616 lt_compiler_flag="-o out/conftest2.$ac_objext"
8617 # Insert the option either (1) after the last *FLAGS variable, or
8618 # (2) before a word containing "conftest.", or (3) at the end.
8619 # Note that $ac_compile itself does not contain backslashes and begins
8620 # with a dollar sign (not a hyphen), so the echo should work correctly.
8621 lt_compile=`echo "$ac_compile" | $SED \
8622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8624 -e 's:$: $lt_compiler_flag:'`
8625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8626 (eval "$lt_compile" 2>out/conftest.err)
8627 ac_status=$?
8628 cat out/conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8631 then
8632 # The compiler can only warn and ignore the option if not recognized
8633 # So say no if there are warnings
8634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8637 lt_cv_prog_compiler_c_o=yes
8638 fi
8639 fi
8640 chmod u+w . 2>&5
8641 $RM conftest*
8642 # SGI C++ compiler will create directory out/ii_files/ for
8643 # template instantiation
8644 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8645 $RM out/* && rmdir out
8646 cd ..
8647 $RM -r conftest
8648 $RM conftest*
8649
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8652 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8653
8654
8655
8656
8657 hard_links="nottested"
8658 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8659 # do not overwrite the value of need_locks provided by the user
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8661 $as_echo_n "checking if we can lock with hard links... " >&6; }
8662 hard_links=yes
8663 $RM conftest*
8664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8665 touch conftest.a
8666 ln conftest.a conftest.b 2>&5 || hard_links=no
8667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8669 $as_echo "$hard_links" >&6; }
8670 if test "$hard_links" = no; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8672 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8673 need_locks=warn
8674 fi
8675 else
8676 need_locks=no
8677 fi
8678
8679
8680
8681
8682
8683
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8685 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8686
8687 runpath_var=
8688 allow_undefined_flag=
8689 always_export_symbols=no
8690 archive_cmds=
8691 archive_expsym_cmds=
8692 compiler_needs_object=no
8693 enable_shared_with_static_runtimes=no
8694 export_dynamic_flag_spec=
8695 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8696 hardcode_automatic=no
8697 hardcode_direct=no
8698 hardcode_direct_absolute=no
8699 hardcode_libdir_flag_spec=
8700 hardcode_libdir_flag_spec_ld=
8701 hardcode_libdir_separator=
8702 hardcode_minus_L=no
8703 hardcode_shlibpath_var=unsupported
8704 inherit_rpath=no
8705 link_all_deplibs=unknown
8706 module_cmds=
8707 module_expsym_cmds=
8708 old_archive_from_new_cmds=
8709 old_archive_from_expsyms_cmds=
8710 thread_safe_flag_spec=
8711 whole_archive_flag_spec=
8712 # include_expsyms should be a list of space-separated symbols to be *always*
8713 # included in the symbol list
8714 include_expsyms=
8715 # exclude_expsyms can be an extended regexp of symbols to exclude
8716 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8717 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8718 # as well as any symbol that contains `d'.
8719 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8720 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8721 # platforms (ab)use it in PIC code, but their linkers get confused if
8722 # the symbol is explicitly referenced. Since portable code cannot
8723 # rely on this symbol name, it's probably fine to never include it in
8724 # preloaded symbol tables.
8725 # Exclude shared library initialization/finalization symbols.
8726 extract_expsyms_cmds=
8727
8728 case $host_os in
8729 cygwin* | mingw* | pw32* | cegcc*)
8730 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8731 # When not using gcc, we currently assume that we are using
8732 # Microsoft Visual C++.
8733 if test "$GCC" != yes; then
8734 with_gnu_ld=no
8735 fi
8736 ;;
8737 interix*)
8738 # we just hope/assume this is gcc and not c89 (= MSVC++)
8739 with_gnu_ld=yes
8740 ;;
8741 openbsd*)
8742 with_gnu_ld=no
8743 ;;
8744 esac
8745
8746 ld_shlibs=yes
8747
8748 # On some targets, GNU ld is compatible enough with the native linker
8749 # that we're better off using the native interface for both.
8750 lt_use_gnu_ld_interface=no
8751 if test "$with_gnu_ld" = yes; then
8752 case $host_os in
8753 aix*)
8754 # The AIX port of GNU ld has always aspired to compatibility
8755 # with the native linker. However, as the warning in the GNU ld
8756 # block says, versions before 2.19.5* couldn't really create working
8757 # shared libraries, regardless of the interface used.
8758 case `$LD -v 2>&1` in
8759 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8760 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8761 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8762 *)
8763 lt_use_gnu_ld_interface=yes
8764 ;;
8765 esac
8766 ;;
8767 *)
8768 lt_use_gnu_ld_interface=yes
8769 ;;
8770 esac
8771 fi
8772
8773 if test "$lt_use_gnu_ld_interface" = yes; then
8774 # If archive_cmds runs LD, not CC, wlarc should be empty
8775 wlarc='${wl}'
8776
8777 # Set some defaults for GNU ld with shared library support. These
8778 # are reset later if shared libraries are not supported. Putting them
8779 # here allows them to be overridden if necessary.
8780 runpath_var=LD_RUN_PATH
8781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782 export_dynamic_flag_spec='${wl}--export-dynamic'
8783 # ancient GNU ld didn't support --whole-archive et. al.
8784 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8785 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8786 else
8787 whole_archive_flag_spec=
8788 fi
8789 supports_anon_versioning=no
8790 case `$LD -v 2>&1` in
8791 *GNU\ gold*) supports_anon_versioning=yes ;;
8792 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8793 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8794 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8795 *\ 2.11.*) ;; # other 2.11 versions
8796 *) supports_anon_versioning=yes ;;
8797 esac
8798
8799 # See if GNU ld supports shared libraries.
8800 case $host_os in
8801 aix[3-9]*)
8802 # On AIX/PPC, the GNU linker is very broken
8803 if test "$host_cpu" != ia64; then
8804 ld_shlibs=no
8805 cat <<_LT_EOF 1>&2
8806
8807 *** Warning: the GNU linker, at least up to release 2.19, is reported
8808 *** to be unable to reliably create shared libraries on AIX.
8809 *** Therefore, libtool is disabling shared libraries support. If you
8810 *** really care for shared libraries, you may want to install binutils
8811 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8812 *** You will then need to restart the configuration process.
8813
8814 _LT_EOF
8815 fi
8816 ;;
8817
8818 amigaos*)
8819 case $host_cpu in
8820 powerpc)
8821 # see comment about AmigaOS4 .so support
8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8823 archive_expsym_cmds=''
8824 ;;
8825 m68k)
8826 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)'
8827 hardcode_libdir_flag_spec='-L$libdir'
8828 hardcode_minus_L=yes
8829 ;;
8830 esac
8831 ;;
8832
8833 beos*)
8834 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8835 allow_undefined_flag=unsupported
8836 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8837 # support --undefined. This deserves some investigation. FIXME
8838 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839 else
8840 ld_shlibs=no
8841 fi
8842 ;;
8843
8844 cygwin* | mingw* | pw32* | cegcc*)
8845 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8846 # as there is no search path for DLLs.
8847 hardcode_libdir_flag_spec='-L$libdir'
8848 export_dynamic_flag_spec='${wl}--export-all-symbols'
8849 allow_undefined_flag=unsupported
8850 always_export_symbols=no
8851 enable_shared_with_static_runtimes=yes
8852 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8853
8854 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8856 # If the export-symbols file already is a .def file (1st line
8857 # is EXPORTS), use it as is; otherwise, prepend...
8858 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8859 cp $export_symbols $output_objdir/$soname.def;
8860 else
8861 echo EXPORTS > $output_objdir/$soname.def;
8862 cat $export_symbols >> $output_objdir/$soname.def;
8863 fi~
8864 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8865 else
8866 ld_shlibs=no
8867 fi
8868 ;;
8869
8870 haiku*)
8871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8872 link_all_deplibs=yes
8873 ;;
8874
8875 interix[3-9]*)
8876 hardcode_direct=no
8877 hardcode_shlibpath_var=no
8878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8879 export_dynamic_flag_spec='${wl}-E'
8880 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8881 # Instead, shared libraries are loaded at an image base (0x10000000 by
8882 # default) and relocated if they conflict, which is a slow very memory
8883 # consuming and fragmenting process. To avoid this, we pick a random,
8884 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8885 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8887 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8888 ;;
8889
8890 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8891 tmp_diet=no
8892 if test "$host_os" = linux-dietlibc; then
8893 case $cc_basename in
8894 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8895 esac
8896 fi
8897 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8898 && test "$tmp_diet" = no
8899 then
8900 tmp_addflag=
8901 tmp_sharedflag='-shared'
8902 case $cc_basename,$host_cpu in
8903 pgcc*) # Portland Group C compiler
8904 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8905 tmp_addflag=' $pic_flag'
8906 ;;
8907 pgf77* | pgf90* | pgf95* | pgfortran*)
8908 # Portland Group f77 and f90 compilers
8909 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8910 tmp_addflag=' $pic_flag -Mnomain' ;;
8911 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8912 tmp_addflag=' -i_dynamic' ;;
8913 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8914 tmp_addflag=' -i_dynamic -nofor_main' ;;
8915 ifc* | ifort*) # Intel Fortran compiler
8916 tmp_addflag=' -nofor_main' ;;
8917 lf95*) # Lahey Fortran 8.1
8918 whole_archive_flag_spec=
8919 tmp_sharedflag='--shared' ;;
8920 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8921 tmp_sharedflag='-qmkshrobj'
8922 tmp_addflag= ;;
8923 nvcc*) # Cuda Compiler Driver 2.2
8924 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8925 compiler_needs_object=yes
8926 ;;
8927 esac
8928 case `$CC -V 2>&1 | sed 5q` in
8929 *Sun\ C*) # Sun C 5.9
8930 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8931 compiler_needs_object=yes
8932 tmp_sharedflag='-G' ;;
8933 *Sun\ F*) # Sun Fortran 8.3
8934 tmp_sharedflag='-G' ;;
8935 esac
8936 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8937
8938 if test "x$supports_anon_versioning" = xyes; then
8939 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8941 echo "local: *; };" >> $output_objdir/$libname.ver~
8942 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8943 fi
8944
8945 case $cc_basename in
8946 xlf* | bgf* | bgxlf* | mpixlf*)
8947 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8948 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8949 hardcode_libdir_flag_spec=
8950 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8951 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8952 if test "x$supports_anon_versioning" = xyes; then
8953 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8955 echo "local: *; };" >> $output_objdir/$libname.ver~
8956 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8957 fi
8958 ;;
8959 esac
8960 else
8961 ld_shlibs=no
8962 fi
8963 ;;
8964
8965 netbsd*)
8966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8967 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8968 wlarc=
8969 else
8970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8972 fi
8973 ;;
8974
8975 solaris*)
8976 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8977 ld_shlibs=no
8978 cat <<_LT_EOF 1>&2
8979
8980 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8981 *** create shared libraries on Solaris systems. Therefore, libtool
8982 *** is disabling shared libraries support. We urge you to upgrade GNU
8983 *** binutils to release 2.9.1 or newer. Another option is to modify
8984 *** your PATH or compiler configuration so that the native linker is
8985 *** used, and then restart.
8986
8987 _LT_EOF
8988 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8991 else
8992 ld_shlibs=no
8993 fi
8994 ;;
8995
8996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8997 case `$LD -v 2>&1` in
8998 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8999 ld_shlibs=no
9000 cat <<_LT_EOF 1>&2
9001
9002 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9003 *** reliably create shared libraries on SCO systems. Therefore, libtool
9004 *** is disabling shared libraries support. We urge you to upgrade GNU
9005 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9006 *** your PATH or compiler configuration so that the native linker is
9007 *** used, and then restart.
9008
9009 _LT_EOF
9010 ;;
9011 *)
9012 # For security reasons, it is highly recommended that you always
9013 # use absolute paths for naming shared libraries, and exclude the
9014 # DT_RUNPATH tag from executables and libraries. But doing so
9015 # requires that you compile everything twice, which is a pain.
9016 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9022 fi
9023 ;;
9024 esac
9025 ;;
9026
9027 sunos4*)
9028 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9029 wlarc=
9030 hardcode_direct=yes
9031 hardcode_shlibpath_var=no
9032 ;;
9033
9034 *)
9035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9037 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9038 else
9039 ld_shlibs=no
9040 fi
9041 ;;
9042 esac
9043
9044 if test "$ld_shlibs" = no; then
9045 runpath_var=
9046 hardcode_libdir_flag_spec=
9047 export_dynamic_flag_spec=
9048 whole_archive_flag_spec=
9049 fi
9050 else
9051 # PORTME fill in a description of your system's linker (not GNU ld)
9052 case $host_os in
9053 aix3*)
9054 allow_undefined_flag=unsupported
9055 always_export_symbols=yes
9056 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'
9057 # Note: this linker hardcodes the directories in LIBPATH if there
9058 # are no directories specified by -L.
9059 hardcode_minus_L=yes
9060 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9061 # Neither direct hardcoding nor static linking is supported with a
9062 # broken collect2.
9063 hardcode_direct=unsupported
9064 fi
9065 ;;
9066
9067 aix[4-9]*)
9068 if test "$host_cpu" = ia64; then
9069 # On IA64, the linker does run time linking by default, so we don't
9070 # have to do anything special.
9071 aix_use_runtimelinking=no
9072 exp_sym_flag='-Bexport'
9073 no_entry_flag=""
9074 else
9075 # If we're using GNU nm, then we don't want the "-C" option.
9076 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9077 # Also, AIX nm treats weak defined symbols like other global
9078 # defined symbols, whereas GNU nm marks them as "W".
9079 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9080 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9081 else
9082 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'
9083 fi
9084 aix_use_runtimelinking=no
9085
9086 # Test if we are trying to use run time linking or normal
9087 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9088 # need to do runtime linking.
9089 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9090 for ld_flag in $LDFLAGS; do
9091 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9092 aix_use_runtimelinking=yes
9093 break
9094 fi
9095 done
9096 ;;
9097 esac
9098
9099 exp_sym_flag='-bexport'
9100 no_entry_flag='-bnoentry'
9101 fi
9102
9103 # When large executables or shared objects are built, AIX ld can
9104 # have problems creating the table of contents. If linking a library
9105 # or program results in "error TOC overflow" add -mminimal-toc to
9106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9108
9109 archive_cmds=''
9110 hardcode_direct=yes
9111 hardcode_direct_absolute=yes
9112 hardcode_libdir_separator=':'
9113 link_all_deplibs=yes
9114 file_list_spec='${wl}-f,'
9115
9116 if test "$GCC" = yes; then
9117 case $host_os in aix4.[012]|aix4.[012].*)
9118 # We only want to do this on AIX 4.2 and lower, the check
9119 # below for broken collect2 doesn't work under 4.3+
9120 collect2name=`${CC} -print-prog-name=collect2`
9121 if test -f "$collect2name" &&
9122 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9123 then
9124 # We have reworked collect2
9125 :
9126 else
9127 # We have old collect2
9128 hardcode_direct=unsupported
9129 # It fails to find uninstalled libraries when the uninstalled
9130 # path is not listed in the libpath. Setting hardcode_minus_L
9131 # to unsupported forces relinking
9132 hardcode_minus_L=yes
9133 hardcode_libdir_flag_spec='-L$libdir'
9134 hardcode_libdir_separator=
9135 fi
9136 ;;
9137 esac
9138 shared_flag='-shared'
9139 if test "$aix_use_runtimelinking" = yes; then
9140 shared_flag="$shared_flag "'${wl}-G'
9141 fi
9142 else
9143 # not using gcc
9144 if test "$host_cpu" = ia64; then
9145 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9146 # chokes on -Wl,-G. The following line is correct:
9147 shared_flag='-G'
9148 else
9149 if test "$aix_use_runtimelinking" = yes; then
9150 shared_flag='${wl}-G'
9151 else
9152 shared_flag='${wl}-bM:SRE'
9153 fi
9154 fi
9155 fi
9156
9157 export_dynamic_flag_spec='${wl}-bexpall'
9158 # It seems that -bexpall does not export symbols beginning with
9159 # underscore (_), so it is better to generate a list of symbols to export.
9160 always_export_symbols=yes
9161 if test "$aix_use_runtimelinking" = yes; then
9162 # Warning - without using the other runtime loading flags (-brtl),
9163 # -berok will link without error, but may produce a broken library.
9164 allow_undefined_flag='-berok'
9165 # Determine the default libpath from the value encoded in an
9166 # empty executable.
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169
9170 int
9171 main ()
9172 {
9173
9174 ;
9175 return 0;
9176 }
9177 _ACEOF
9178 if ac_fn_c_try_link "$LINENO"; then :
9179
9180 lt_aix_libpath_sed='
9181 /Import File Strings/,/^$/ {
9182 /^0/ {
9183 s/^0 *\(.*\)$/\1/
9184 p
9185 }
9186 }'
9187 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9188 # Check for a 64-bit object if we didn't find anything.
9189 if test -z "$aix_libpath"; then
9190 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9191 fi
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext \
9194 conftest$ac_exeext conftest.$ac_ext
9195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9196
9197 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9198 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9199 else
9200 if test "$host_cpu" = ia64; then
9201 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9202 allow_undefined_flag="-z nodefs"
9203 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9204 else
9205 # Determine the default libpath from the value encoded in an
9206 # empty executable.
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209
9210 int
9211 main ()
9212 {
9213
9214 ;
9215 return 0;
9216 }
9217 _ACEOF
9218 if ac_fn_c_try_link "$LINENO"; then :
9219
9220 lt_aix_libpath_sed='
9221 /Import File Strings/,/^$/ {
9222 /^0/ {
9223 s/^0 *\(.*\)$/\1/
9224 p
9225 }
9226 }'
9227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9228 # Check for a 64-bit object if we didn't find anything.
9229 if test -z "$aix_libpath"; then
9230 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9231 fi
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext \
9234 conftest$ac_exeext conftest.$ac_ext
9235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9236
9237 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9238 # Warning - without using the other run time loading flags,
9239 # -berok will link without error, but may produce a broken library.
9240 no_undefined_flag=' ${wl}-bernotok'
9241 allow_undefined_flag=' ${wl}-berok'
9242 if test "$with_gnu_ld" = yes; then
9243 # We only use this code for GNU lds that support --whole-archive.
9244 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9245 else
9246 # Exported symbols can be pulled into shared objects from archives
9247 whole_archive_flag_spec='$convenience'
9248 fi
9249 archive_cmds_need_lc=yes
9250 # This is similar to how AIX traditionally builds its shared libraries.
9251 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9252 fi
9253 fi
9254 ;;
9255
9256 amigaos*)
9257 case $host_cpu in
9258 powerpc)
9259 # see comment about AmigaOS4 .so support
9260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261 archive_expsym_cmds=''
9262 ;;
9263 m68k)
9264 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)'
9265 hardcode_libdir_flag_spec='-L$libdir'
9266 hardcode_minus_L=yes
9267 ;;
9268 esac
9269 ;;
9270
9271 bsdi[45]*)
9272 export_dynamic_flag_spec=-rdynamic
9273 ;;
9274
9275 cygwin* | mingw* | pw32* | cegcc*)
9276 # When not using gcc, we currently assume that we are using
9277 # Microsoft Visual C++.
9278 # hardcode_libdir_flag_spec is actually meaningless, as there is
9279 # no search path for DLLs.
9280 hardcode_libdir_flag_spec=' '
9281 allow_undefined_flag=unsupported
9282 # Tell ltmain to make .lib files, not .a files.
9283 libext=lib
9284 # Tell ltmain to make .dll files, not .so files.
9285 shrext_cmds=".dll"
9286 # FIXME: Setting linknames here is a bad hack.
9287 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9288 # The linker will automatically build a .lib file if we build a DLL.
9289 old_archive_from_new_cmds='true'
9290 # FIXME: Should let the user specify the lib program.
9291 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9292 fix_srcfile_path='`cygpath -w "$srcfile"`'
9293 enable_shared_with_static_runtimes=yes
9294 ;;
9295
9296 darwin* | rhapsody*)
9297
9298
9299 archive_cmds_need_lc=no
9300 hardcode_direct=no
9301 hardcode_automatic=yes
9302 hardcode_shlibpath_var=unsupported
9303 if test "$lt_cv_ld_force_load" = "yes"; then
9304 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9305 else
9306 whole_archive_flag_spec=''
9307 fi
9308 link_all_deplibs=yes
9309 allow_undefined_flag="$_lt_dar_allow_undefined"
9310 case $cc_basename in
9311 ifort*) _lt_dar_can_shared=yes ;;
9312 *) _lt_dar_can_shared=$GCC ;;
9313 esac
9314 if test "$_lt_dar_can_shared" = "yes"; then
9315 output_verbose_link_cmd=func_echo_all
9316 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9317 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9318 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9319 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9320
9321 else
9322 ld_shlibs=no
9323 fi
9324
9325 ;;
9326
9327 dgux*)
9328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329 hardcode_libdir_flag_spec='-L$libdir'
9330 hardcode_shlibpath_var=no
9331 ;;
9332
9333 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9334 # support. Future versions do this automatically, but an explicit c++rt0.o
9335 # does not break anything, and helps significantly (at the cost of a little
9336 # extra space).
9337 freebsd2.2*)
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9339 hardcode_libdir_flag_spec='-R$libdir'
9340 hardcode_direct=yes
9341 hardcode_shlibpath_var=no
9342 ;;
9343
9344 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9345 freebsd2.*)
9346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9347 hardcode_direct=yes
9348 hardcode_minus_L=yes
9349 hardcode_shlibpath_var=no
9350 ;;
9351
9352 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9353 freebsd* | dragonfly*)
9354 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9355 hardcode_libdir_flag_spec='-R$libdir'
9356 hardcode_direct=yes
9357 hardcode_shlibpath_var=no
9358 ;;
9359
9360 hpux9*)
9361 if test "$GCC" = yes; then
9362 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'
9363 else
9364 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'
9365 fi
9366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9367 hardcode_libdir_separator=:
9368 hardcode_direct=yes
9369
9370 # hardcode_minus_L: Not really in the search PATH,
9371 # but as the default location of the library.
9372 hardcode_minus_L=yes
9373 export_dynamic_flag_spec='${wl}-E'
9374 ;;
9375
9376 hpux10*)
9377 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9378 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9379 else
9380 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9381 fi
9382 if test "$with_gnu_ld" = no; then
9383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9384 hardcode_libdir_flag_spec_ld='+b $libdir'
9385 hardcode_libdir_separator=:
9386 hardcode_direct=yes
9387 hardcode_direct_absolute=yes
9388 export_dynamic_flag_spec='${wl}-E'
9389 # hardcode_minus_L: Not really in the search PATH,
9390 # but as the default location of the library.
9391 hardcode_minus_L=yes
9392 fi
9393 ;;
9394
9395 hpux11*)
9396 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9397 case $host_cpu in
9398 hppa*64*)
9399 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 ;;
9401 ia64*)
9402 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9403 ;;
9404 *)
9405 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9406 ;;
9407 esac
9408 else
9409 case $host_cpu in
9410 hppa*64*)
9411 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 ;;
9413 ia64*)
9414 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9415 ;;
9416 *)
9417
9418 # Older versions of the 11.00 compiler do not understand -b yet
9419 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9421 $as_echo_n "checking if $CC understands -b... " >&6; }
9422 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 lt_cv_prog_compiler__b=no
9426 save_LDFLAGS="$LDFLAGS"
9427 LDFLAGS="$LDFLAGS -b"
9428 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9430 # The linker can only warn and ignore the option if not recognized
9431 # So say no if there are warnings
9432 if test -s conftest.err; then
9433 # Append any errors to the config.log.
9434 cat conftest.err 1>&5
9435 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9437 if diff conftest.exp conftest.er2 >/dev/null; then
9438 lt_cv_prog_compiler__b=yes
9439 fi
9440 else
9441 lt_cv_prog_compiler__b=yes
9442 fi
9443 fi
9444 $RM -r conftest*
9445 LDFLAGS="$save_LDFLAGS"
9446
9447 fi
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9449 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9450
9451 if test x"$lt_cv_prog_compiler__b" = xyes; then
9452 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9453 else
9454 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9455 fi
9456
9457 ;;
9458 esac
9459 fi
9460 if test "$with_gnu_ld" = no; then
9461 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9462 hardcode_libdir_separator=:
9463
9464 case $host_cpu in
9465 hppa*64*|ia64*)
9466 hardcode_direct=no
9467 hardcode_shlibpath_var=no
9468 ;;
9469 *)
9470 hardcode_direct=yes
9471 hardcode_direct_absolute=yes
9472 export_dynamic_flag_spec='${wl}-E'
9473
9474 # hardcode_minus_L: Not really in the search PATH,
9475 # but as the default location of the library.
9476 hardcode_minus_L=yes
9477 ;;
9478 esac
9479 fi
9480 ;;
9481
9482 irix5* | irix6* | nonstopux*)
9483 if test "$GCC" = yes; then
9484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9485 # Try to use the -exported_symbol ld option, if it does not
9486 # work, assume that -exports_file does not work either and
9487 # implicitly export all symbols.
9488 save_LDFLAGS="$LDFLAGS"
9489 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 int foo(void) {}
9493 _ACEOF
9494 if ac_fn_c_try_link "$LINENO"; then :
9495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9496
9497 fi
9498 rm -f core conftest.err conftest.$ac_objext \
9499 conftest$ac_exeext conftest.$ac_ext
9500 LDFLAGS="$save_LDFLAGS"
9501 else
9502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9504 fi
9505 archive_cmds_need_lc='no'
9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507 hardcode_libdir_separator=:
9508 inherit_rpath=yes
9509 link_all_deplibs=yes
9510 ;;
9511
9512 netbsd*)
9513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9515 else
9516 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9517 fi
9518 hardcode_libdir_flag_spec='-R$libdir'
9519 hardcode_direct=yes
9520 hardcode_shlibpath_var=no
9521 ;;
9522
9523 newsos6)
9524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9525 hardcode_direct=yes
9526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527 hardcode_libdir_separator=:
9528 hardcode_shlibpath_var=no
9529 ;;
9530
9531 *nto* | *qnx*)
9532 ;;
9533
9534 openbsd*)
9535 if test -f /usr/libexec/ld.so; then
9536 hardcode_direct=yes
9537 hardcode_shlibpath_var=no
9538 hardcode_direct_absolute=yes
9539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9541 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9543 export_dynamic_flag_spec='${wl}-E'
9544 else
9545 case $host_os in
9546 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9548 hardcode_libdir_flag_spec='-R$libdir'
9549 ;;
9550 *)
9551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9553 ;;
9554 esac
9555 fi
9556 else
9557 ld_shlibs=no
9558 fi
9559 ;;
9560
9561 os2*)
9562 hardcode_libdir_flag_spec='-L$libdir'
9563 hardcode_minus_L=yes
9564 allow_undefined_flag=unsupported
9565 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'
9566 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9567 ;;
9568
9569 osf3*)
9570 if test "$GCC" = yes; then
9571 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9572 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9573 else
9574 allow_undefined_flag=' -expect_unresolved \*'
9575 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9576 fi
9577 archive_cmds_need_lc='no'
9578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579 hardcode_libdir_separator=:
9580 ;;
9581
9582 osf4* | osf5*) # as osf3* with the addition of -msym flag
9583 if test "$GCC" = yes; then
9584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9585 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587 else
9588 allow_undefined_flag=' -expect_unresolved \*'
9589 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9590 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9591 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9592
9593 # Both c and cxx compiler support -rpath directly
9594 hardcode_libdir_flag_spec='-rpath $libdir'
9595 fi
9596 archive_cmds_need_lc='no'
9597 hardcode_libdir_separator=:
9598 ;;
9599
9600 solaris*)
9601 no_undefined_flag=' -z defs'
9602 if test "$GCC" = yes; then
9603 wlarc='${wl}'
9604 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9606 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9607 else
9608 case `$CC -V 2>&1` in
9609 *"Compilers 5.0"*)
9610 wlarc=''
9611 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9613 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9614 ;;
9615 *)
9616 wlarc='${wl}'
9617 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9619 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9620 ;;
9621 esac
9622 fi
9623 hardcode_libdir_flag_spec='-R$libdir'
9624 hardcode_shlibpath_var=no
9625 case $host_os in
9626 solaris2.[0-5] | solaris2.[0-5].*) ;;
9627 *)
9628 # The compiler driver will combine and reorder linker options,
9629 # but understands `-z linker_flag'. GCC discards it without `$wl',
9630 # but is careful enough not to reorder.
9631 # Supported since Solaris 2.6 (maybe 2.5.1?)
9632 if test "$GCC" = yes; then
9633 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9634 else
9635 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9636 fi
9637 ;;
9638 esac
9639 link_all_deplibs=yes
9640 ;;
9641
9642 sunos4*)
9643 if test "x$host_vendor" = xsequent; then
9644 # Use $CC to link under sequent, because it throws in some extra .o
9645 # files that make .init and .fini sections work.
9646 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9647 else
9648 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9649 fi
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_direct=yes
9652 hardcode_minus_L=yes
9653 hardcode_shlibpath_var=no
9654 ;;
9655
9656 sysv4)
9657 case $host_vendor in
9658 sni)
9659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660 hardcode_direct=yes # is this really true???
9661 ;;
9662 siemens)
9663 ## LD is ld it makes a PLAMLIB
9664 ## CC just makes a GrossModule.
9665 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9666 reload_cmds='$CC -r -o $output$reload_objs'
9667 hardcode_direct=no
9668 ;;
9669 motorola)
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9672 ;;
9673 esac
9674 runpath_var='LD_RUN_PATH'
9675 hardcode_shlibpath_var=no
9676 ;;
9677
9678 sysv4.3*)
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_shlibpath_var=no
9681 export_dynamic_flag_spec='-Bexport'
9682 ;;
9683
9684 sysv4*MP*)
9685 if test -d /usr/nec; then
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_shlibpath_var=no
9688 runpath_var=LD_RUN_PATH
9689 hardcode_runpath_var=yes
9690 ld_shlibs=yes
9691 fi
9692 ;;
9693
9694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9695 no_undefined_flag='${wl}-z,text'
9696 archive_cmds_need_lc=no
9697 hardcode_shlibpath_var=no
9698 runpath_var='LD_RUN_PATH'
9699
9700 if test "$GCC" = yes; then
9701 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 else
9704 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 fi
9707 ;;
9708
9709 sysv5* | sco3.2v5* | sco5v6*)
9710 # Note: We can NOT use -z defs as we might desire, because we do not
9711 # link with -lc, and that would cause any symbols used from libc to
9712 # always be unresolved, which means just about no library would
9713 # ever link correctly. If we're not using GNU ld we use -z text
9714 # though, which does catch some bad symbols but isn't as heavy-handed
9715 # as -z defs.
9716 no_undefined_flag='${wl}-z,text'
9717 allow_undefined_flag='${wl}-z,nodefs'
9718 archive_cmds_need_lc=no
9719 hardcode_shlibpath_var=no
9720 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9721 hardcode_libdir_separator=':'
9722 link_all_deplibs=yes
9723 export_dynamic_flag_spec='${wl}-Bexport'
9724 runpath_var='LD_RUN_PATH'
9725
9726 if test "$GCC" = yes; then
9727 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 else
9730 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 fi
9733 ;;
9734
9735 uts4*)
9736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_libdir_flag_spec='-L$libdir'
9738 hardcode_shlibpath_var=no
9739 ;;
9740
9741 *)
9742 ld_shlibs=no
9743 ;;
9744 esac
9745
9746 if test x$host_vendor = xsni; then
9747 case $host in
9748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9749 export_dynamic_flag_spec='${wl}-Blargedynsym'
9750 ;;
9751 esac
9752 fi
9753 fi
9754
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9756 $as_echo "$ld_shlibs" >&6; }
9757 test "$ld_shlibs" = no && can_build_shared=no
9758
9759 with_gnu_ld=$with_gnu_ld
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775 #
9776 # Do we need to explicitly link libc?
9777 #
9778 case "x$archive_cmds_need_lc" in
9779 x|xyes)
9780 # Assume -lc should be added
9781 archive_cmds_need_lc=yes
9782
9783 if test "$enable_shared" = yes && test "$GCC" = yes; then
9784 case $archive_cmds in
9785 *'~'*)
9786 # FIXME: we may have to deal with multi-command sequences.
9787 ;;
9788 '$CC '*)
9789 # Test whether the compiler implicitly links with -lc since on some
9790 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9791 # to ld, don't add -lc before -lgcc.
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9793 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9794 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 $RM conftest*
9798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9799
9800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9801 (eval $ac_compile) 2>&5
9802 ac_status=$?
9803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9804 test $ac_status = 0; } 2>conftest.err; then
9805 soname=conftest
9806 lib=conftest
9807 libobjs=conftest.$ac_objext
9808 deplibs=
9809 wl=$lt_prog_compiler_wl
9810 pic_flag=$lt_prog_compiler_pic
9811 compiler_flags=-v
9812 linker_flags=-v
9813 verstring=
9814 output_objdir=.
9815 libname=conftest
9816 lt_save_allow_undefined_flag=$allow_undefined_flag
9817 allow_undefined_flag=
9818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9819 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9820 ac_status=$?
9821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9822 test $ac_status = 0; }
9823 then
9824 lt_cv_archive_cmds_need_lc=no
9825 else
9826 lt_cv_archive_cmds_need_lc=yes
9827 fi
9828 allow_undefined_flag=$lt_save_allow_undefined_flag
9829 else
9830 cat conftest.err 1>&5
9831 fi
9832 $RM conftest*
9833
9834 fi
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9836 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9837 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9838 ;;
9839 esac
9840 fi
9841 ;;
9842 esac
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10001 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10002
10003 if test "$GCC" = yes; then
10004 case $host_os in
10005 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10006 *) lt_awk_arg="/^libraries:/" ;;
10007 esac
10008 case $host_os in
10009 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10010 *) lt_sed_strip_eq="s,=/,/,g" ;;
10011 esac
10012 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10013 case $lt_search_path_spec in
10014 *\;*)
10015 # if the path contains ";" then we assume it to be the separator
10016 # otherwise default to the standard path separator (i.e. ":") - it is
10017 # assumed that no part of a normal pathname contains ";" but that should
10018 # okay in the real world where ";" in dirpaths is itself problematic.
10019 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10020 ;;
10021 *)
10022 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10023 ;;
10024 esac
10025 # Ok, now we have the path, separated by spaces, we can step through it
10026 # and add multilib dir if necessary.
10027 lt_tmp_lt_search_path_spec=
10028 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10029 for lt_sys_path in $lt_search_path_spec; do
10030 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10031 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10032 else
10033 test -d "$lt_sys_path" && \
10034 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10035 fi
10036 done
10037 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10038 BEGIN {RS=" "; FS="/|\n";} {
10039 lt_foo="";
10040 lt_count=0;
10041 for (lt_i = NF; lt_i > 0; lt_i--) {
10042 if ($lt_i != "" && $lt_i != ".") {
10043 if ($lt_i == "..") {
10044 lt_count++;
10045 } else {
10046 if (lt_count == 0) {
10047 lt_foo="/" $lt_i lt_foo;
10048 } else {
10049 lt_count--;
10050 }
10051 }
10052 }
10053 }
10054 if (lt_foo != "") { lt_freq[lt_foo]++; }
10055 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10056 }'`
10057 # AWK program above erroneously prepends '/' to C:/dos/paths
10058 # for these hosts.
10059 case $host_os in
10060 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10061 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10062 esac
10063 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10064 else
10065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10066 fi
10067 library_names_spec=
10068 libname_spec='lib$name'
10069 soname_spec=
10070 shrext_cmds=".so"
10071 postinstall_cmds=
10072 postuninstall_cmds=
10073 finish_cmds=
10074 finish_eval=
10075 shlibpath_var=
10076 shlibpath_overrides_runpath=unknown
10077 version_type=none
10078 dynamic_linker="$host_os ld.so"
10079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10080 need_lib_prefix=unknown
10081 hardcode_into_libs=no
10082
10083 # when you set need_version to no, make sure it does not cause -set_version
10084 # flags to be left without arguments
10085 need_version=unknown
10086
10087 case $host_os in
10088 aix3*)
10089 version_type=linux
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10091 shlibpath_var=LIBPATH
10092
10093 # AIX 3 has no versioning support, so we append a major version to the name.
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 ;;
10096
10097 aix[4-9]*)
10098 version_type=linux
10099 need_lib_prefix=no
10100 need_version=no
10101 hardcode_into_libs=yes
10102 if test "$host_cpu" = ia64; then
10103 # AIX 5 supports IA64
10104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 else
10107 # With GCC up to 2.95.x, collect2 would create an import file
10108 # for dependence libraries. The import file would start with
10109 # the line `#! .'. This would cause the generated library to
10110 # depend on `.', always an invalid library. This was fixed in
10111 # development snapshots of GCC prior to 3.0.
10112 case $host_os in
10113 aix4 | aix4.[01] | aix4.[01].*)
10114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10115 echo ' yes '
10116 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10117 :
10118 else
10119 can_build_shared=no
10120 fi
10121 ;;
10122 esac
10123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10124 # soname into executable. Probably we can add versioning support to
10125 # collect2, so additional links can be useful in future.
10126 if test "$aix_use_runtimelinking" = yes; then
10127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10128 # instead of lib<name>.a to let people know that these are not
10129 # typical AIX shared libraries.
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 else
10132 # We preserve .a as extension for shared libraries through AIX4.2
10133 # and later when we are not doing run time linking.
10134 library_names_spec='${libname}${release}.a $libname.a'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 fi
10137 shlibpath_var=LIBPATH
10138 fi
10139 ;;
10140
10141 amigaos*)
10142 case $host_cpu in
10143 powerpc)
10144 # Since July 2007 AmigaOS4 officially supports .so libraries.
10145 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 ;;
10148 m68k)
10149 library_names_spec='$libname.ixlibrary $libname.a'
10150 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10151 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10152 ;;
10153 esac
10154 ;;
10155
10156 beos*)
10157 library_names_spec='${libname}${shared_ext}'
10158 dynamic_linker="$host_os ld.so"
10159 shlibpath_var=LIBRARY_PATH
10160 ;;
10161
10162 bsdi[45]*)
10163 version_type=linux
10164 need_version=no
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10168 shlibpath_var=LD_LIBRARY_PATH
10169 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10170 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10171 # the default ld.so.conf also contains /usr/contrib/lib and
10172 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10173 # libtool to hard-code these into programs
10174 ;;
10175
10176 cygwin* | mingw* | pw32* | cegcc*)
10177 version_type=windows
10178 shrext_cmds=".dll"
10179 need_version=no
10180 need_lib_prefix=no
10181
10182 case $GCC,$host_os in
10183 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10184 library_names_spec='$libname.dll.a'
10185 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10186 postinstall_cmds='base_file=`basename \${file}`~
10187 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10188 dldir=$destdir/`dirname \$dlpath`~
10189 test -d \$dldir || mkdir -p \$dldir~
10190 $install_prog $dir/$dlname \$dldir/$dlname~
10191 chmod a+x \$dldir/$dlname~
10192 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10193 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10194 fi'
10195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10196 dlpath=$dir/\$dldll~
10197 $RM \$dlpath'
10198 shlibpath_overrides_runpath=yes
10199
10200 case $host_os in
10201 cygwin*)
10202 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10203 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204
10205 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10206 ;;
10207 mingw* | cegcc*)
10208 # MinGW DLLs use traditional 'lib' prefix
10209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10210 ;;
10211 pw32*)
10212 # pw32 DLLs use 'pw' prefix rather than 'lib'
10213 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10214 ;;
10215 esac
10216 ;;
10217
10218 *)
10219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10220 ;;
10221 esac
10222 dynamic_linker='Win32 ld.exe'
10223 # FIXME: first we should search . and the directory the executable is in
10224 shlibpath_var=PATH
10225 ;;
10226
10227 darwin* | rhapsody*)
10228 dynamic_linker="$host_os dyld"
10229 version_type=darwin
10230 need_lib_prefix=no
10231 need_version=no
10232 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10233 soname_spec='${libname}${release}${major}$shared_ext'
10234 shlibpath_overrides_runpath=yes
10235 shlibpath_var=DYLD_LIBRARY_PATH
10236 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10237
10238 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10239 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10240 ;;
10241
10242 dgux*)
10243 version_type=linux
10244 need_lib_prefix=no
10245 need_version=no
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 ;;
10250
10251 freebsd* | dragonfly*)
10252 # DragonFly does not have aout. When/if they implement a new
10253 # versioning mechanism, adjust this.
10254 if test -x /usr/bin/objformat; then
10255 objformat=`/usr/bin/objformat`
10256 else
10257 case $host_os in
10258 freebsd[23].*) objformat=aout ;;
10259 *) objformat=elf ;;
10260 esac
10261 fi
10262 version_type=freebsd-$objformat
10263 case $version_type in
10264 freebsd-elf*)
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10266 need_version=no
10267 need_lib_prefix=no
10268 ;;
10269 freebsd-*)
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10271 need_version=yes
10272 ;;
10273 esac
10274 shlibpath_var=LD_LIBRARY_PATH
10275 case $host_os in
10276 freebsd2.*)
10277 shlibpath_overrides_runpath=yes
10278 ;;
10279 freebsd3.[01]* | freebsdelf3.[01]*)
10280 shlibpath_overrides_runpath=yes
10281 hardcode_into_libs=yes
10282 ;;
10283 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10284 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10285 shlibpath_overrides_runpath=no
10286 hardcode_into_libs=yes
10287 ;;
10288 *) # from 4.6 on, and DragonFly
10289 shlibpath_overrides_runpath=yes
10290 hardcode_into_libs=yes
10291 ;;
10292 esac
10293 ;;
10294
10295 gnu*)
10296 version_type=linux
10297 need_lib_prefix=no
10298 need_version=no
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 hardcode_into_libs=yes
10303 ;;
10304
10305 haiku*)
10306 version_type=linux
10307 need_lib_prefix=no
10308 need_version=no
10309 dynamic_linker="$host_os runtime_loader"
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LIBRARY_PATH
10313 shlibpath_overrides_runpath=yes
10314 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10315 hardcode_into_libs=yes
10316 ;;
10317
10318 hpux9* | hpux10* | hpux11*)
10319 # Give a soname corresponding to the major version so that dld.sl refuses to
10320 # link against other versions.
10321 version_type=sunos
10322 need_lib_prefix=no
10323 need_version=no
10324 case $host_cpu in
10325 ia64*)
10326 shrext_cmds='.so'
10327 hardcode_into_libs=yes
10328 dynamic_linker="$host_os dld.so"
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 if test "X$HPUX_IA64_MODE" = X32; then
10334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10335 else
10336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10337 fi
10338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10339 ;;
10340 hppa*64*)
10341 shrext_cmds='.sl'
10342 hardcode_into_libs=yes
10343 dynamic_linker="$host_os dld.sl"
10344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10350 ;;
10351 *)
10352 shrext_cmds='.sl'
10353 dynamic_linker="$host_os dld.sl"
10354 shlibpath_var=SHLIB_PATH
10355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 ;;
10359 esac
10360 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10361 postinstall_cmds='chmod 555 $lib'
10362 # or fails outright, so override atomically:
10363 install_override_mode=555
10364 ;;
10365
10366 interix[3-9]*)
10367 version_type=linux
10368 need_lib_prefix=no
10369 need_version=no
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=no
10375 hardcode_into_libs=yes
10376 ;;
10377
10378 irix5* | irix6* | nonstopux*)
10379 case $host_os in
10380 nonstopux*) version_type=nonstopux ;;
10381 *)
10382 if test "$lt_cv_prog_gnu_ld" = yes; then
10383 version_type=linux
10384 else
10385 version_type=irix
10386 fi ;;
10387 esac
10388 need_lib_prefix=no
10389 need_version=no
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10392 case $host_os in
10393 irix5* | nonstopux*)
10394 libsuff= shlibsuff=
10395 ;;
10396 *)
10397 case $LD in # libtool.m4 will add one of these switches to LD
10398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10399 libsuff= shlibsuff= libmagic=32-bit;;
10400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10401 libsuff=32 shlibsuff=N32 libmagic=N32;;
10402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10403 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10404 *) libsuff= shlibsuff= libmagic=never-match;;
10405 esac
10406 ;;
10407 esac
10408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10409 shlibpath_overrides_runpath=no
10410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10412 hardcode_into_libs=yes
10413 ;;
10414
10415 # No shared lib support for Linux oldld, aout, or coff.
10416 linux*oldld* | linux*aout* | linux*coff*)
10417 dynamic_linker=no
10418 ;;
10419
10420 # This must be Linux ELF.
10421 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10422 version_type=linux
10423 need_lib_prefix=no
10424 need_version=no
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=no
10430
10431 # Some binutils ld are patched to set DT_RUNPATH
10432 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 lt_cv_shlibpath_overrides_runpath=no
10436 save_LDFLAGS=$LDFLAGS
10437 save_libdir=$libdir
10438 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10439 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442
10443 int
10444 main ()
10445 {
10446
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10453 lt_cv_shlibpath_overrides_runpath=yes
10454 fi
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LDFLAGS=$save_LDFLAGS
10459 libdir=$save_libdir
10460
10461 fi
10462
10463 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10464
10465 # This implies no fast_install, which is unacceptable.
10466 # Some rework will be needed to allow for fast_install
10467 # before this can be enabled.
10468 hardcode_into_libs=yes
10469
10470 # Append ld.so.conf contents to the search path
10471 if test -f /etc/ld.so.conf; then
10472 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10474 fi
10475
10476 # We used to test for /lib/ld.so.1 and disable shared libraries on
10477 # powerpc, because MkLinux only supported shared libraries with the
10478 # GNU dynamic linker. Since this was broken with cross compilers,
10479 # most powerpc-linux boxes support dynamic linking these days and
10480 # people can always --disable-shared, the test was removed, and we
10481 # assume the GNU/Linux dynamic linker is in use.
10482 dynamic_linker='GNU/Linux ld.so'
10483 ;;
10484
10485 netbsd*)
10486 version_type=sunos
10487 need_lib_prefix=no
10488 need_version=no
10489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10492 dynamic_linker='NetBSD (a.out) ld.so'
10493 else
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 dynamic_linker='NetBSD ld.elf_so'
10497 fi
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=yes
10500 hardcode_into_libs=yes
10501 ;;
10502
10503 newsos6)
10504 version_type=linux
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10508 ;;
10509
10510 *nto* | *qnx*)
10511 version_type=qnx
10512 need_lib_prefix=no
10513 need_version=no
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=no
10518 hardcode_into_libs=yes
10519 dynamic_linker='ldqnx.so'
10520 ;;
10521
10522 openbsd*)
10523 version_type=sunos
10524 sys_lib_dlsearch_path_spec="/usr/lib"
10525 need_lib_prefix=no
10526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10527 case $host_os in
10528 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10529 *) need_version=no ;;
10530 esac
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10535 case $host_os in
10536 openbsd2.[89] | openbsd2.[89].*)
10537 shlibpath_overrides_runpath=no
10538 ;;
10539 *)
10540 shlibpath_overrides_runpath=yes
10541 ;;
10542 esac
10543 else
10544 shlibpath_overrides_runpath=yes
10545 fi
10546 ;;
10547
10548 os2*)
10549 libname_spec='$name'
10550 shrext_cmds=".dll"
10551 need_lib_prefix=no
10552 library_names_spec='$libname${shared_ext} $libname.a'
10553 dynamic_linker='OS/2 ld.exe'
10554 shlibpath_var=LIBPATH
10555 ;;
10556
10557 osf3* | osf4* | osf5*)
10558 version_type=osf
10559 need_lib_prefix=no
10560 need_version=no
10561 soname_spec='${libname}${release}${shared_ext}$major'
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563 shlibpath_var=LD_LIBRARY_PATH
10564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10566 ;;
10567
10568 rdos*)
10569 dynamic_linker=no
10570 ;;
10571
10572 solaris*)
10573 version_type=linux
10574 need_lib_prefix=no
10575 need_version=no
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 shlibpath_var=LD_LIBRARY_PATH
10579 shlibpath_overrides_runpath=yes
10580 hardcode_into_libs=yes
10581 # ldd complains unless libraries are executable
10582 postinstall_cmds='chmod +x $lib'
10583 ;;
10584
10585 sunos4*)
10586 version_type=sunos
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=yes
10591 if test "$with_gnu_ld" = yes; then
10592 need_lib_prefix=no
10593 fi
10594 need_version=yes
10595 ;;
10596
10597 sysv4 | sysv4.3*)
10598 version_type=linux
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 case $host_vendor in
10603 sni)
10604 shlibpath_overrides_runpath=no
10605 need_lib_prefix=no
10606 runpath_var=LD_RUN_PATH
10607 ;;
10608 siemens)
10609 need_lib_prefix=no
10610 ;;
10611 motorola)
10612 need_lib_prefix=no
10613 need_version=no
10614 shlibpath_overrides_runpath=no
10615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10616 ;;
10617 esac
10618 ;;
10619
10620 sysv4*MP*)
10621 if test -d /usr/nec ;then
10622 version_type=linux
10623 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10624 soname_spec='$libname${shared_ext}.$major'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 fi
10627 ;;
10628
10629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10630 version_type=freebsd-elf
10631 need_lib_prefix=no
10632 need_version=no
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 hardcode_into_libs=yes
10638 if test "$with_gnu_ld" = yes; then
10639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10640 else
10641 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10642 case $host_os in
10643 sco3.2v5*)
10644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10645 ;;
10646 esac
10647 fi
10648 sys_lib_dlsearch_path_spec='/usr/lib'
10649 ;;
10650
10651 tpf*)
10652 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10653 version_type=linux
10654 need_lib_prefix=no
10655 need_version=no
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=no
10659 hardcode_into_libs=yes
10660 ;;
10661
10662 uts4*)
10663 version_type=linux
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 ;;
10668
10669 *)
10670 dynamic_linker=no
10671 ;;
10672 esac
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10674 $as_echo "$dynamic_linker" >&6; }
10675 test "$dynamic_linker" = no && can_build_shared=no
10676
10677 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10678 if test "$GCC" = yes; then
10679 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10680 fi
10681
10682 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10683 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10684 fi
10685 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10686 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10687 fi
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10781 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10782 hardcode_action=
10783 if test -n "$hardcode_libdir_flag_spec" ||
10784 test -n "$runpath_var" ||
10785 test "X$hardcode_automatic" = "Xyes" ; then
10786
10787 # We can hardcode non-existent directories.
10788 if test "$hardcode_direct" != no &&
10789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10790 # have to relink, otherwise we might link with an installed library
10791 # when we should be linking with a yet-to-be-installed one
10792 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10793 test "$hardcode_minus_L" != no; then
10794 # Linking always hardcodes the temporary library directory.
10795 hardcode_action=relink
10796 else
10797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10798 hardcode_action=immediate
10799 fi
10800 else
10801 # We cannot hardcode anything, or else we can only hardcode existing
10802 # directories.
10803 hardcode_action=unsupported
10804 fi
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10806 $as_echo "$hardcode_action" >&6; }
10807
10808 if test "$hardcode_action" = relink ||
10809 test "$inherit_rpath" = yes; then
10810 # Fast installation is not supported
10811 enable_fast_install=no
10812 elif test "$shlibpath_overrides_runpath" = yes ||
10813 test "$enable_shared" = no; then
10814 # Fast installation is not necessary
10815 enable_fast_install=needless
10816 fi
10817
10818
10819
10820
10821
10822
10823 if test "x$enable_dlopen" != xyes; then
10824 enable_dlopen=unknown
10825 enable_dlopen_self=unknown
10826 enable_dlopen_self_static=unknown
10827 else
10828 lt_cv_dlopen=no
10829 lt_cv_dlopen_libs=
10830
10831 case $host_os in
10832 beos*)
10833 lt_cv_dlopen="load_add_on"
10834 lt_cv_dlopen_libs=
10835 lt_cv_dlopen_self=yes
10836 ;;
10837
10838 mingw* | pw32* | cegcc*)
10839 lt_cv_dlopen="LoadLibrary"
10840 lt_cv_dlopen_libs=
10841 ;;
10842
10843 cygwin*)
10844 lt_cv_dlopen="dlopen"
10845 lt_cv_dlopen_libs=
10846 ;;
10847
10848 darwin*)
10849 # if libdl is installed we need to link against it
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10851 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10852 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 ac_check_lib_save_LIBS=$LIBS
10856 LIBS="-ldl $LIBS"
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859
10860 /* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10863 #ifdef __cplusplus
10864 extern "C"
10865 #endif
10866 char dlopen ();
10867 int
10868 main ()
10869 {
10870 return dlopen ();
10871 ;
10872 return 0;
10873 }
10874 _ACEOF
10875 if ac_fn_c_try_link "$LINENO"; then :
10876 ac_cv_lib_dl_dlopen=yes
10877 else
10878 ac_cv_lib_dl_dlopen=no
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS=$ac_check_lib_save_LIBS
10883 fi
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10885 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10886 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10888 else
10889
10890 lt_cv_dlopen="dyld"
10891 lt_cv_dlopen_libs=
10892 lt_cv_dlopen_self=yes
10893
10894 fi
10895
10896 ;;
10897
10898 *)
10899 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10900 if test "x$ac_cv_func_shl_load" = x""yes; then :
10901 lt_cv_dlopen="shl_load"
10902 else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10904 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10905 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10906 $as_echo_n "(cached) " >&6
10907 else
10908 ac_check_lib_save_LIBS=$LIBS
10909 LIBS="-ldld $LIBS"
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 char shl_load ();
10920 int
10921 main ()
10922 {
10923 return shl_load ();
10924 ;
10925 return 0;
10926 }
10927 _ACEOF
10928 if ac_fn_c_try_link "$LINENO"; then :
10929 ac_cv_lib_dld_shl_load=yes
10930 else
10931 ac_cv_lib_dld_shl_load=no
10932 fi
10933 rm -f core conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
10935 LIBS=$ac_check_lib_save_LIBS
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10938 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10939 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10940 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10941 else
10942 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10943 if test "x$ac_cv_func_dlopen" = x""yes; then :
10944 lt_cv_dlopen="dlopen"
10945 else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10947 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 ac_check_lib_save_LIBS=$LIBS
10952 LIBS="-ldl $LIBS"
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955
10956 /* Override any GCC internal prototype to avoid an error.
10957 Use char because int might match the return type of a GCC
10958 builtin and then its argument prototype would still apply. */
10959 #ifdef __cplusplus
10960 extern "C"
10961 #endif
10962 char dlopen ();
10963 int
10964 main ()
10965 {
10966 return dlopen ();
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_c_try_link "$LINENO"; then :
10972 ac_cv_lib_dl_dlopen=yes
10973 else
10974 ac_cv_lib_dl_dlopen=no
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext \
10977 conftest$ac_exeext conftest.$ac_ext
10978 LIBS=$ac_check_lib_save_LIBS
10979 fi
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10981 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10982 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10986 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10987 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-lsvld $LIBS"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10994
10995 /* Override any GCC internal prototype to avoid an error.
10996 Use char because int might match the return type of a GCC
10997 builtin and then its argument prototype would still apply. */
10998 #ifdef __cplusplus
10999 extern "C"
11000 #endif
11001 char dlopen ();
11002 int
11003 main ()
11004 {
11005 return dlopen ();
11006 ;
11007 return 0;
11008 }
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 ac_cv_lib_svld_dlopen=yes
11012 else
11013 ac_cv_lib_svld_dlopen=no
11014 fi
11015 rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11018 fi
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11020 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11021 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11025 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11026 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-ldld $LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char dld_link ();
11041 int
11042 main ()
11043 {
11044 return dld_link ();
11045 ;
11046 return 0;
11047 }
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_dld_dld_link=yes
11051 else
11052 ac_cv_lib_dld_dld_link=no
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11057 fi
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11059 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11060 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11061 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11062 fi
11063
11064
11065 fi
11066
11067
11068 fi
11069
11070
11071 fi
11072
11073
11074 fi
11075
11076
11077 fi
11078
11079 ;;
11080 esac
11081
11082 if test "x$lt_cv_dlopen" != xno; then
11083 enable_dlopen=yes
11084 else
11085 enable_dlopen=no
11086 fi
11087
11088 case $lt_cv_dlopen in
11089 dlopen)
11090 save_CPPFLAGS="$CPPFLAGS"
11091 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11092
11093 save_LDFLAGS="$LDFLAGS"
11094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11095
11096 save_LIBS="$LIBS"
11097 LIBS="$lt_cv_dlopen_libs $LIBS"
11098
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11100 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11101 if test "${lt_cv_dlopen_self+set}" = set; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 if test "$cross_compiling" = yes; then :
11105 lt_cv_dlopen_self=cross
11106 else
11107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11108 lt_status=$lt_dlunknown
11109 cat > conftest.$ac_ext <<_LT_EOF
11110 #line 11110 "configure"
11111 #include "confdefs.h"
11112
11113 #if HAVE_DLFCN_H
11114 #include <dlfcn.h>
11115 #endif
11116
11117 #include <stdio.h>
11118
11119 #ifdef RTLD_GLOBAL
11120 # define LT_DLGLOBAL RTLD_GLOBAL
11121 #else
11122 # ifdef DL_GLOBAL
11123 # define LT_DLGLOBAL DL_GLOBAL
11124 # else
11125 # define LT_DLGLOBAL 0
11126 # endif
11127 #endif
11128
11129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11130 find out it does not work in some platform. */
11131 #ifndef LT_DLLAZY_OR_NOW
11132 # ifdef RTLD_LAZY
11133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11134 # else
11135 # ifdef DL_LAZY
11136 # define LT_DLLAZY_OR_NOW DL_LAZY
11137 # else
11138 # ifdef RTLD_NOW
11139 # define LT_DLLAZY_OR_NOW RTLD_NOW
11140 # else
11141 # ifdef DL_NOW
11142 # define LT_DLLAZY_OR_NOW DL_NOW
11143 # else
11144 # define LT_DLLAZY_OR_NOW 0
11145 # endif
11146 # endif
11147 # endif
11148 # endif
11149 #endif
11150
11151 /* When -fvisbility=hidden is used, assume the code has been annotated
11152 correspondingly for the symbols needed. */
11153 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11154 void fnord () __attribute__((visibility("default")));
11155 #endif
11156
11157 void fnord () { int i=42; }
11158 int main ()
11159 {
11160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11161 int status = $lt_dlunknown;
11162
11163 if (self)
11164 {
11165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11166 else
11167 {
11168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11169 else puts (dlerror ());
11170 }
11171 /* dlclose (self); */
11172 }
11173 else
11174 puts (dlerror ());
11175
11176 return status;
11177 }
11178 _LT_EOF
11179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11180 (eval $ac_link) 2>&5
11181 ac_status=$?
11182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11183 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11184 (./conftest; exit; ) >&5 2>/dev/null
11185 lt_status=$?
11186 case x$lt_status in
11187 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11188 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11189 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11190 esac
11191 else :
11192 # compilation failed
11193 lt_cv_dlopen_self=no
11194 fi
11195 fi
11196 rm -fr conftest*
11197
11198
11199 fi
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11201 $as_echo "$lt_cv_dlopen_self" >&6; }
11202
11203 if test "x$lt_cv_dlopen_self" = xyes; then
11204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11206 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11207 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 if test "$cross_compiling" = yes; then :
11211 lt_cv_dlopen_self_static=cross
11212 else
11213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11214 lt_status=$lt_dlunknown
11215 cat > conftest.$ac_ext <<_LT_EOF
11216 #line 11216 "configure"
11217 #include "confdefs.h"
11218
11219 #if HAVE_DLFCN_H
11220 #include <dlfcn.h>
11221 #endif
11222
11223 #include <stdio.h>
11224
11225 #ifdef RTLD_GLOBAL
11226 # define LT_DLGLOBAL RTLD_GLOBAL
11227 #else
11228 # ifdef DL_GLOBAL
11229 # define LT_DLGLOBAL DL_GLOBAL
11230 # else
11231 # define LT_DLGLOBAL 0
11232 # endif
11233 #endif
11234
11235 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11236 find out it does not work in some platform. */
11237 #ifndef LT_DLLAZY_OR_NOW
11238 # ifdef RTLD_LAZY
11239 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11240 # else
11241 # ifdef DL_LAZY
11242 # define LT_DLLAZY_OR_NOW DL_LAZY
11243 # else
11244 # ifdef RTLD_NOW
11245 # define LT_DLLAZY_OR_NOW RTLD_NOW
11246 # else
11247 # ifdef DL_NOW
11248 # define LT_DLLAZY_OR_NOW DL_NOW
11249 # else
11250 # define LT_DLLAZY_OR_NOW 0
11251 # endif
11252 # endif
11253 # endif
11254 # endif
11255 #endif
11256
11257 /* When -fvisbility=hidden is used, assume the code has been annotated
11258 correspondingly for the symbols needed. */
11259 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11260 void fnord () __attribute__((visibility("default")));
11261 #endif
11262
11263 void fnord () { int i=42; }
11264 int main ()
11265 {
11266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11267 int status = $lt_dlunknown;
11268
11269 if (self)
11270 {
11271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11272 else
11273 {
11274 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11275 else puts (dlerror ());
11276 }
11277 /* dlclose (self); */
11278 }
11279 else
11280 puts (dlerror ());
11281
11282 return status;
11283 }
11284 _LT_EOF
11285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11286 (eval $ac_link) 2>&5
11287 ac_status=$?
11288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11289 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11290 (./conftest; exit; ) >&5 2>/dev/null
11291 lt_status=$?
11292 case x$lt_status in
11293 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11294 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11295 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11296 esac
11297 else :
11298 # compilation failed
11299 lt_cv_dlopen_self_static=no
11300 fi
11301 fi
11302 rm -fr conftest*
11303
11304
11305 fi
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11307 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11308 fi
11309
11310 CPPFLAGS="$save_CPPFLAGS"
11311 LDFLAGS="$save_LDFLAGS"
11312 LIBS="$save_LIBS"
11313 ;;
11314 esac
11315
11316 case $lt_cv_dlopen_self in
11317 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11318 *) enable_dlopen_self=unknown ;;
11319 esac
11320
11321 case $lt_cv_dlopen_self_static in
11322 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11323 *) enable_dlopen_self_static=unknown ;;
11324 esac
11325 fi
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343 striplib=
11344 old_striplib=
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11346 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11347 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351 $as_echo "yes" >&6; }
11352 else
11353 # FIXME - insert some real tests, host_os isn't really good enough
11354 case $host_os in
11355 darwin*)
11356 if test -n "$STRIP" ; then
11357 striplib="$STRIP -x"
11358 old_striplib="$STRIP -S"
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11360 $as_echo "yes" >&6; }
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11364 fi
11365 ;;
11366 *)
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369 ;;
11370 esac
11371 fi
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384 # Report which library types will actually be built
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11386 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11388 $as_echo "$can_build_shared" >&6; }
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11391 $as_echo_n "checking whether to build shared libraries... " >&6; }
11392 test "$can_build_shared" = "no" && enable_shared=no
11393
11394 # On AIX, shared libraries and static libraries use the same namespace, and
11395 # are all built from PIC.
11396 case $host_os in
11397 aix3*)
11398 test "$enable_shared" = yes && enable_static=no
11399 if test -n "$RANLIB"; then
11400 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11401 postinstall_cmds='$RANLIB $lib'
11402 fi
11403 ;;
11404
11405 aix[4-9]*)
11406 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11407 test "$enable_shared" = yes && enable_static=no
11408 fi
11409 ;;
11410 esac
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11412 $as_echo "$enable_shared" >&6; }
11413
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11415 $as_echo_n "checking whether to build static libraries... " >&6; }
11416 # Make sure either enable_shared or enable_static is yes.
11417 test "$enable_shared" = yes || enable_static=yes
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11419 $as_echo "$enable_static" >&6; }
11420
11421
11422
11423
11424 fi
11425 ac_ext=c
11426 ac_cpp='$CPP $CPPFLAGS'
11427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11430
11431 CC="$lt_save_CC"
11432
11433 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11434 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11435 (test "X$CXX" != "Xg++"))) ; then
11436 ac_ext=cpp
11437 ac_cpp='$CXXCPP $CPPFLAGS'
11438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11442 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11443 if test -z "$CXXCPP"; then
11444 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 # Double quotes because CXXCPP needs to be expanded
11448 for CXXCPP in "$CXX -E" "/lib/cpp"
11449 do
11450 ac_preproc_ok=false
11451 for ac_cxx_preproc_warn_flag in '' yes
11452 do
11453 # Use a header file that comes with gcc, so configuring glibc
11454 # with a fresh cross-compiler works.
11455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11456 # <limits.h> exists even on freestanding compilers.
11457 # On the NeXT, cc -E runs the code through the compiler's parser,
11458 # not just through cpp. "Syntax error" is here to catch this case.
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11461 #ifdef __STDC__
11462 # include <limits.h>
11463 #else
11464 # include <assert.h>
11465 #endif
11466 Syntax error
11467 _ACEOF
11468 if ac_fn_cxx_try_cpp "$LINENO"; then :
11469
11470 else
11471 # Broken: fails on valid input.
11472 continue
11473 fi
11474 rm -f conftest.err conftest.$ac_ext
11475
11476 # OK, works on sane cases. Now check whether nonexistent headers
11477 # can be detected and how.
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480 #include <ac_nonexistent.h>
11481 _ACEOF
11482 if ac_fn_cxx_try_cpp "$LINENO"; then :
11483 # Broken: success on invalid input.
11484 continue
11485 else
11486 # Passes both tests.
11487 ac_preproc_ok=:
11488 break
11489 fi
11490 rm -f conftest.err conftest.$ac_ext
11491
11492 done
11493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11494 rm -f conftest.err conftest.$ac_ext
11495 if $ac_preproc_ok; then :
11496 break
11497 fi
11498
11499 done
11500 ac_cv_prog_CXXCPP=$CXXCPP
11501
11502 fi
11503 CXXCPP=$ac_cv_prog_CXXCPP
11504 else
11505 ac_cv_prog_CXXCPP=$CXXCPP
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11508 $as_echo "$CXXCPP" >&6; }
11509 ac_preproc_ok=false
11510 for ac_cxx_preproc_warn_flag in '' yes
11511 do
11512 # Use a header file that comes with gcc, so configuring glibc
11513 # with a fresh cross-compiler works.
11514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11515 # <limits.h> exists even on freestanding compilers.
11516 # On the NeXT, cc -E runs the code through the compiler's parser,
11517 # not just through cpp. "Syntax error" is here to catch this case.
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 #ifdef __STDC__
11521 # include <limits.h>
11522 #else
11523 # include <assert.h>
11524 #endif
11525 Syntax error
11526 _ACEOF
11527 if ac_fn_cxx_try_cpp "$LINENO"; then :
11528
11529 else
11530 # Broken: fails on valid input.
11531 continue
11532 fi
11533 rm -f conftest.err conftest.$ac_ext
11534
11535 # OK, works on sane cases. Now check whether nonexistent headers
11536 # can be detected and how.
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539 #include <ac_nonexistent.h>
11540 _ACEOF
11541 if ac_fn_cxx_try_cpp "$LINENO"; then :
11542 # Broken: success on invalid input.
11543 continue
11544 else
11545 # Passes both tests.
11546 ac_preproc_ok=:
11547 break
11548 fi
11549 rm -f conftest.err conftest.$ac_ext
11550
11551 done
11552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11553 rm -f conftest.err conftest.$ac_ext
11554 if $ac_preproc_ok; then :
11555
11556 else
11557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11559 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11560 See \`config.log' for more details." "$LINENO" 5; }
11561 fi
11562
11563 ac_ext=c
11564 ac_cpp='$CPP $CPPFLAGS'
11565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568
11569 else
11570 _lt_caught_CXX_error=yes
11571 fi
11572
11573 ac_ext=cpp
11574 ac_cpp='$CXXCPP $CPPFLAGS'
11575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11578
11579 archive_cmds_need_lc_CXX=no
11580 allow_undefined_flag_CXX=
11581 always_export_symbols_CXX=no
11582 archive_expsym_cmds_CXX=
11583 compiler_needs_object_CXX=no
11584 export_dynamic_flag_spec_CXX=
11585 hardcode_direct_CXX=no
11586 hardcode_direct_absolute_CXX=no
11587 hardcode_libdir_flag_spec_CXX=
11588 hardcode_libdir_flag_spec_ld_CXX=
11589 hardcode_libdir_separator_CXX=
11590 hardcode_minus_L_CXX=no
11591 hardcode_shlibpath_var_CXX=unsupported
11592 hardcode_automatic_CXX=no
11593 inherit_rpath_CXX=no
11594 module_cmds_CXX=
11595 module_expsym_cmds_CXX=
11596 link_all_deplibs_CXX=unknown
11597 old_archive_cmds_CXX=$old_archive_cmds
11598 reload_flag_CXX=$reload_flag
11599 reload_cmds_CXX=$reload_cmds
11600 no_undefined_flag_CXX=
11601 whole_archive_flag_spec_CXX=
11602 enable_shared_with_static_runtimes_CXX=no
11603
11604 # Source file extension for C++ test sources.
11605 ac_ext=cpp
11606
11607 # Object file extension for compiled C++ test sources.
11608 objext=o
11609 objext_CXX=$objext
11610
11611 # No sense in running all these tests if we already determined that
11612 # the CXX compiler isn't working. Some variables (like enable_shared)
11613 # are currently assumed to apply to all compilers on this platform,
11614 # and will be corrupted by setting them based on a non-working compiler.
11615 if test "$_lt_caught_CXX_error" != yes; then
11616 # Code to be used in simple compile tests
11617 lt_simple_compile_test_code="int some_variable = 0;"
11618
11619 # Code to be used in simple link tests
11620 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11621
11622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11623
11624
11625
11626
11627
11628
11629 # If no C compiler was specified, use CC.
11630 LTCC=${LTCC-"$CC"}
11631
11632 # If no C compiler flags were specified, use CFLAGS.
11633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11634
11635 # Allow CC to be a program name with arguments.
11636 compiler=$CC
11637
11638
11639 # save warnings/boilerplate of simple test code
11640 ac_outfile=conftest.$ac_objext
11641 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11642 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11643 _lt_compiler_boilerplate=`cat conftest.err`
11644 $RM conftest*
11645
11646 ac_outfile=conftest.$ac_objext
11647 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11648 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11649 _lt_linker_boilerplate=`cat conftest.err`
11650 $RM -r conftest*
11651
11652
11653 # Allow CC to be a program name with arguments.
11654 lt_save_CC=$CC
11655 lt_save_LD=$LD
11656 lt_save_GCC=$GCC
11657 GCC=$GXX
11658 lt_save_with_gnu_ld=$with_gnu_ld
11659 lt_save_path_LD=$lt_cv_path_LD
11660 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11661 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11662 else
11663 $as_unset lt_cv_prog_gnu_ld
11664 fi
11665 if test -n "${lt_cv_path_LDCXX+set}"; then
11666 lt_cv_path_LD=$lt_cv_path_LDCXX
11667 else
11668 $as_unset lt_cv_path_LD
11669 fi
11670 test -z "${LDCXX+set}" || LD=$LDCXX
11671 CC=${CXX-"c++"}
11672 compiler=$CC
11673 compiler_CXX=$CC
11674 for cc_temp in $compiler""; do
11675 case $cc_temp in
11676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11678 \-*) ;;
11679 *) break;;
11680 esac
11681 done
11682 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11683
11684
11685 if test -n "$compiler"; then
11686 # We don't want -fno-exception when compiling C++ code, so set the
11687 # no_builtin_flag separately
11688 if test "$GXX" = yes; then
11689 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11690 else
11691 lt_prog_compiler_no_builtin_flag_CXX=
11692 fi
11693
11694 if test "$GXX" = yes; then
11695 # Set up default GNU C++ configuration
11696
11697
11698
11699 # Check whether --with-gnu-ld was given.
11700 if test "${with_gnu_ld+set}" = set; then :
11701 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11702 else
11703 with_gnu_ld=no
11704 fi
11705
11706 ac_prog=ld
11707 if test "$GCC" = yes; then
11708 # Check if gcc -print-prog-name=ld gives a path.
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11710 $as_echo_n "checking for ld used by $CC... " >&6; }
11711 case $host in
11712 *-*-mingw*)
11713 # gcc leaves a trailing carriage return which upsets mingw
11714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11715 *)
11716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11717 esac
11718 case $ac_prog in
11719 # Accept absolute paths.
11720 [\\/]* | ?:[\\/]*)
11721 re_direlt='/[^/][^/]*/\.\./'
11722 # Canonicalize the pathname of ld
11723 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11724 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11725 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11726 done
11727 test -z "$LD" && LD="$ac_prog"
11728 ;;
11729 "")
11730 # If it fails, then pretend we aren't using GCC.
11731 ac_prog=ld
11732 ;;
11733 *)
11734 # If it is relative, then search for the first ld in PATH.
11735 with_gnu_ld=unknown
11736 ;;
11737 esac
11738 elif test "$with_gnu_ld" = yes; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11740 $as_echo_n "checking for GNU ld... " >&6; }
11741 else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11743 $as_echo_n "checking for non-GNU ld... " >&6; }
11744 fi
11745 if test "${lt_cv_path_LD+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 if test -z "$LD"; then
11749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11750 for ac_dir in $PATH; do
11751 IFS="$lt_save_ifs"
11752 test -z "$ac_dir" && ac_dir=.
11753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11754 lt_cv_path_LD="$ac_dir/$ac_prog"
11755 # Check to see if the program is GNU ld. I'd rather use --version,
11756 # but apparently some variants of GNU ld only accept -v.
11757 # Break only if it was the GNU/non-GNU ld that we prefer.
11758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11759 *GNU* | *'with BFD'*)
11760 test "$with_gnu_ld" != no && break
11761 ;;
11762 *)
11763 test "$with_gnu_ld" != yes && break
11764 ;;
11765 esac
11766 fi
11767 done
11768 IFS="$lt_save_ifs"
11769 else
11770 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11771 fi
11772 fi
11773
11774 LD="$lt_cv_path_LD"
11775 if test -n "$LD"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11777 $as_echo "$LD" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781 fi
11782 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11784 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11785 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11786 $as_echo_n "(cached) " >&6
11787 else
11788 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11789 case `$LD -v 2>&1 </dev/null` in
11790 *GNU* | *'with BFD'*)
11791 lt_cv_prog_gnu_ld=yes
11792 ;;
11793 *)
11794 lt_cv_prog_gnu_ld=no
11795 ;;
11796 esac
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11799 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11800 with_gnu_ld=$lt_cv_prog_gnu_ld
11801
11802
11803
11804
11805
11806
11807
11808 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11809 # archiving commands below assume that GNU ld is being used.
11810 if test "$with_gnu_ld" = yes; then
11811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11812 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'
11813
11814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816
11817 # If archive_cmds runs LD, not CC, wlarc should be empty
11818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11819 # investigate it a little bit more. (MM)
11820 wlarc='${wl}'
11821
11822 # ancient GNU ld didn't support --whole-archive et. al.
11823 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11824 $GREP 'no-whole-archive' > /dev/null; then
11825 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11826 else
11827 whole_archive_flag_spec_CXX=
11828 fi
11829 else
11830 with_gnu_ld=no
11831 wlarc=
11832
11833 # A generic and very simple default shared library creation
11834 # command for GNU C++ for the case where it uses the native
11835 # linker, instead of GNU ld. If possible, this setting should
11836 # overridden to take advantage of the native linker features on
11837 # the platform it is being used on.
11838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11839 fi
11840
11841 # Commands to make compiler produce verbose output that lists
11842 # what "hidden" libraries, object files and flags are used when
11843 # linking a shared library.
11844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11845
11846 else
11847 GXX=no
11848 with_gnu_ld=no
11849 wlarc=
11850 fi
11851
11852 # PORTME: fill in a description of your system's C++ link characteristics
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11855 ld_shlibs_CXX=yes
11856 case $host_os in
11857 aix3*)
11858 # FIXME: insert proper C++ library support
11859 ld_shlibs_CXX=no
11860 ;;
11861 aix[4-9]*)
11862 if test "$host_cpu" = ia64; then
11863 # On IA64, the linker does run time linking by default, so we don't
11864 # have to do anything special.
11865 aix_use_runtimelinking=no
11866 exp_sym_flag='-Bexport'
11867 no_entry_flag=""
11868 else
11869 aix_use_runtimelinking=no
11870
11871 # Test if we are trying to use run time linking or normal
11872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11873 # need to do runtime linking.
11874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11875 for ld_flag in $LDFLAGS; do
11876 case $ld_flag in
11877 *-brtl*)
11878 aix_use_runtimelinking=yes
11879 break
11880 ;;
11881 esac
11882 done
11883 ;;
11884 esac
11885
11886 exp_sym_flag='-bexport'
11887 no_entry_flag='-bnoentry'
11888 fi
11889
11890 # When large executables or shared objects are built, AIX ld can
11891 # have problems creating the table of contents. If linking a library
11892 # or program results in "error TOC overflow" add -mminimal-toc to
11893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11895
11896 archive_cmds_CXX=''
11897 hardcode_direct_CXX=yes
11898 hardcode_direct_absolute_CXX=yes
11899 hardcode_libdir_separator_CXX=':'
11900 link_all_deplibs_CXX=yes
11901 file_list_spec_CXX='${wl}-f,'
11902
11903 if test "$GXX" = yes; then
11904 case $host_os in aix4.[012]|aix4.[012].*)
11905 # We only want to do this on AIX 4.2 and lower, the check
11906 # below for broken collect2 doesn't work under 4.3+
11907 collect2name=`${CC} -print-prog-name=collect2`
11908 if test -f "$collect2name" &&
11909 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11910 then
11911 # We have reworked collect2
11912 :
11913 else
11914 # We have old collect2
11915 hardcode_direct_CXX=unsupported
11916 # It fails to find uninstalled libraries when the uninstalled
11917 # path is not listed in the libpath. Setting hardcode_minus_L
11918 # to unsupported forces relinking
11919 hardcode_minus_L_CXX=yes
11920 hardcode_libdir_flag_spec_CXX='-L$libdir'
11921 hardcode_libdir_separator_CXX=
11922 fi
11923 esac
11924 shared_flag='-shared'
11925 if test "$aix_use_runtimelinking" = yes; then
11926 shared_flag="$shared_flag "'${wl}-G'
11927 fi
11928 else
11929 # not using gcc
11930 if test "$host_cpu" = ia64; then
11931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11932 # chokes on -Wl,-G. The following line is correct:
11933 shared_flag='-G'
11934 else
11935 if test "$aix_use_runtimelinking" = yes; then
11936 shared_flag='${wl}-G'
11937 else
11938 shared_flag='${wl}-bM:SRE'
11939 fi
11940 fi
11941 fi
11942
11943 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11944 # It seems that -bexpall does not export symbols beginning with
11945 # underscore (_), so it is better to generate a list of symbols to
11946 # export.
11947 always_export_symbols_CXX=yes
11948 if test "$aix_use_runtimelinking" = yes; then
11949 # Warning - without using the other runtime loading flags (-brtl),
11950 # -berok will link without error, but may produce a broken library.
11951 allow_undefined_flag_CXX='-berok'
11952 # Determine the default libpath from the value encoded in an empty
11953 # executable.
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956
11957 int
11958 main ()
11959 {
11960
11961 ;
11962 return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_cxx_try_link "$LINENO"; then :
11966
11967 lt_aix_libpath_sed='
11968 /Import File Strings/,/^$/ {
11969 /^0/ {
11970 s/^0 *\(.*\)$/\1/
11971 p
11972 }
11973 }'
11974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11975 # Check for a 64-bit object if we didn't find anything.
11976 if test -z "$aix_libpath"; then
11977 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11978 fi
11979 fi
11980 rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11983
11984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11985
11986 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11987 else
11988 if test "$host_cpu" = ia64; then
11989 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11990 allow_undefined_flag_CXX="-z nodefs"
11991 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11992 else
11993 # Determine the default libpath from the value encoded in an
11994 # empty executable.
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11997
11998 int
11999 main ()
12000 {
12001
12002 ;
12003 return 0;
12004 }
12005 _ACEOF
12006 if ac_fn_cxx_try_link "$LINENO"; then :
12007
12008 lt_aix_libpath_sed='
12009 /Import File Strings/,/^$/ {
12010 /^0/ {
12011 s/^0 *\(.*\)$/\1/
12012 p
12013 }
12014 }'
12015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12016 # Check for a 64-bit object if we didn't find anything.
12017 if test -z "$aix_libpath"; then
12018 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12019 fi
12020 fi
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12024
12025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12026 # Warning - without using the other run time loading flags,
12027 # -berok will link without error, but may produce a broken library.
12028 no_undefined_flag_CXX=' ${wl}-bernotok'
12029 allow_undefined_flag_CXX=' ${wl}-berok'
12030 if test "$with_gnu_ld" = yes; then
12031 # We only use this code for GNU lds that support --whole-archive.
12032 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12033 else
12034 # Exported symbols can be pulled into shared objects from archives
12035 whole_archive_flag_spec_CXX='$convenience'
12036 fi
12037 archive_cmds_need_lc_CXX=yes
12038 # This is similar to how AIX traditionally builds its shared
12039 # libraries.
12040 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12041 fi
12042 fi
12043 ;;
12044
12045 beos*)
12046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12047 allow_undefined_flag_CXX=unsupported
12048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12049 # support --undefined. This deserves some investigation. FIXME
12050 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051 else
12052 ld_shlibs_CXX=no
12053 fi
12054 ;;
12055
12056 chorus*)
12057 case $cc_basename in
12058 *)
12059 # FIXME: insert proper C++ library support
12060 ld_shlibs_CXX=no
12061 ;;
12062 esac
12063 ;;
12064
12065 cygwin* | mingw* | pw32* | cegcc*)
12066 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12067 # as there is no search path for DLLs.
12068 hardcode_libdir_flag_spec_CXX='-L$libdir'
12069 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12070 allow_undefined_flag_CXX=unsupported
12071 always_export_symbols_CXX=no
12072 enable_shared_with_static_runtimes_CXX=yes
12073
12074 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12076 # If the export-symbols file already is a .def file (1st line
12077 # is EXPORTS), use it as is; otherwise, prepend...
12078 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12079 cp $export_symbols $output_objdir/$soname.def;
12080 else
12081 echo EXPORTS > $output_objdir/$soname.def;
12082 cat $export_symbols >> $output_objdir/$soname.def;
12083 fi~
12084 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12085 else
12086 ld_shlibs_CXX=no
12087 fi
12088 ;;
12089 darwin* | rhapsody*)
12090
12091
12092 archive_cmds_need_lc_CXX=no
12093 hardcode_direct_CXX=no
12094 hardcode_automatic_CXX=yes
12095 hardcode_shlibpath_var_CXX=unsupported
12096 if test "$lt_cv_ld_force_load" = "yes"; then
12097 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12098 else
12099 whole_archive_flag_spec_CXX=''
12100 fi
12101 link_all_deplibs_CXX=yes
12102 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12103 case $cc_basename in
12104 ifort*) _lt_dar_can_shared=yes ;;
12105 *) _lt_dar_can_shared=$GCC ;;
12106 esac
12107 if test "$_lt_dar_can_shared" = "yes"; then
12108 output_verbose_link_cmd=func_echo_all
12109 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12110 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12111 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12112 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12113 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12114 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${_lt_dsymutil}"
12115 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12116 fi
12117
12118 else
12119 ld_shlibs_CXX=no
12120 fi
12121
12122 ;;
12123
12124 dgux*)
12125 case $cc_basename in
12126 ec++*)
12127 # FIXME: insert proper C++ library support
12128 ld_shlibs_CXX=no
12129 ;;
12130 ghcx*)
12131 # Green Hills C++ Compiler
12132 # FIXME: insert proper C++ library support
12133 ld_shlibs_CXX=no
12134 ;;
12135 *)
12136 # FIXME: insert proper C++ library support
12137 ld_shlibs_CXX=no
12138 ;;
12139 esac
12140 ;;
12141
12142 freebsd2.*)
12143 # C++ shared libraries reported to be fairly broken before
12144 # switch to ELF
12145 ld_shlibs_CXX=no
12146 ;;
12147
12148 freebsd-elf*)
12149 archive_cmds_need_lc_CXX=no
12150 ;;
12151
12152 freebsd* | dragonfly*)
12153 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12154 # conventions
12155 ld_shlibs_CXX=yes
12156 ;;
12157
12158 gnu*)
12159 ;;
12160
12161 haiku*)
12162 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12163 link_all_deplibs_CXX=yes
12164 ;;
12165
12166 hpux9*)
12167 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12168 hardcode_libdir_separator_CXX=:
12169 export_dynamic_flag_spec_CXX='${wl}-E'
12170 hardcode_direct_CXX=yes
12171 hardcode_minus_L_CXX=yes # Not in the search PATH,
12172 # but as the default
12173 # location of the library.
12174
12175 case $cc_basename in
12176 CC*)
12177 # FIXME: insert proper C++ library support
12178 ld_shlibs_CXX=no
12179 ;;
12180 aCC*)
12181 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'
12182 # Commands to make compiler produce verbose output that lists
12183 # what "hidden" libraries, object files and flags are used when
12184 # linking a shared library.
12185 #
12186 # There doesn't appear to be a way to prevent this compiler from
12187 # explicitly linking system object files so we need to strip them
12188 # from the output so that they don't get included in the library
12189 # dependencies.
12190 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12191 ;;
12192 *)
12193 if test "$GXX" = yes; then
12194 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'
12195 else
12196 # FIXME: insert proper C++ library support
12197 ld_shlibs_CXX=no
12198 fi
12199 ;;
12200 esac
12201 ;;
12202
12203 hpux10*|hpux11*)
12204 if test $with_gnu_ld = no; then
12205 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12206 hardcode_libdir_separator_CXX=:
12207
12208 case $host_cpu in
12209 hppa*64*|ia64*)
12210 ;;
12211 *)
12212 export_dynamic_flag_spec_CXX='${wl}-E'
12213 ;;
12214 esac
12215 fi
12216 case $host_cpu in
12217 hppa*64*|ia64*)
12218 hardcode_direct_CXX=no
12219 hardcode_shlibpath_var_CXX=no
12220 ;;
12221 *)
12222 hardcode_direct_CXX=yes
12223 hardcode_direct_absolute_CXX=yes
12224 hardcode_minus_L_CXX=yes # Not in the search PATH,
12225 # but as the default
12226 # location of the library.
12227 ;;
12228 esac
12229
12230 case $cc_basename in
12231 CC*)
12232 # FIXME: insert proper C++ library support
12233 ld_shlibs_CXX=no
12234 ;;
12235 aCC*)
12236 case $host_cpu in
12237 hppa*64*)
12238 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12239 ;;
12240 ia64*)
12241 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12242 ;;
12243 *)
12244 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12245 ;;
12246 esac
12247 # Commands to make compiler produce verbose output that lists
12248 # what "hidden" libraries, object files and flags are used when
12249 # linking a shared library.
12250 #
12251 # There doesn't appear to be a way to prevent this compiler from
12252 # explicitly linking system object files so we need to strip them
12253 # from the output so that they don't get included in the library
12254 # dependencies.
12255 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; func_echo_all "$list"'
12256 ;;
12257 *)
12258 if test "$GXX" = yes; then
12259 if test $with_gnu_ld = no; then
12260 case $host_cpu in
12261 hppa*64*)
12262 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12263 ;;
12264 ia64*)
12265 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12266 ;;
12267 *)
12268 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'
12269 ;;
12270 esac
12271 fi
12272 else
12273 # FIXME: insert proper C++ library support
12274 ld_shlibs_CXX=no
12275 fi
12276 ;;
12277 esac
12278 ;;
12279
12280 interix[3-9]*)
12281 hardcode_direct_CXX=no
12282 hardcode_shlibpath_var_CXX=no
12283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12284 export_dynamic_flag_spec_CXX='${wl}-E'
12285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12286 # Instead, shared libraries are loaded at an image base (0x10000000 by
12287 # default) and relocated if they conflict, which is a slow very memory
12288 # consuming and fragmenting process. To avoid this, we pick a random,
12289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12291 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12292 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12293 ;;
12294 irix5* | irix6*)
12295 case $cc_basename in
12296 CC*)
12297 # SGI C++
12298 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12299
12300 # Archives containing C++ object files must be created using
12301 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12302 # necessary to make sure instantiated templates are included
12303 # in the archive.
12304 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12305 ;;
12306 *)
12307 if test "$GXX" = yes; then
12308 if test "$with_gnu_ld" = no; then
12309 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12310 else
12311 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12312 fi
12313 fi
12314 link_all_deplibs_CXX=yes
12315 ;;
12316 esac
12317 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12318 hardcode_libdir_separator_CXX=:
12319 inherit_rpath_CXX=yes
12320 ;;
12321
12322 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12323 case $cc_basename in
12324 KCC*)
12325 # Kuck and Associates, Inc. (KAI) C++ Compiler
12326
12327 # KCC will only create a shared library if the output file
12328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12329 # to its proper name (with version) after linking.
12330 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'
12331 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'
12332 # Commands to make compiler produce verbose output that lists
12333 # what "hidden" libraries, object files and flags are used when
12334 # linking a shared library.
12335 #
12336 # There doesn't appear to be a way to prevent this compiler from
12337 # explicitly linking system object files so we need to strip them
12338 # from the output so that they don't get included in the library
12339 # dependencies.
12340 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; func_echo_all "$list"'
12341
12342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12344
12345 # Archives containing C++ object files must be created using
12346 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12347 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12348 ;;
12349 icpc* | ecpc* )
12350 # Intel C++
12351 with_gnu_ld=yes
12352 # version 8.0 and above of icpc choke on multiply defined symbols
12353 # if we add $predep_objects and $postdep_objects, however 7.1 and
12354 # earlier do not add the objects themselves.
12355 case `$CC -V 2>&1` in
12356 *"Version 7."*)
12357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12358 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'
12359 ;;
12360 *) # Version 8.0 or newer
12361 tmp_idyn=
12362 case $host_cpu in
12363 ia64*) tmp_idyn=' -i_dynamic';;
12364 esac
12365 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12366 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'
12367 ;;
12368 esac
12369 archive_cmds_need_lc_CXX=no
12370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12372 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12373 ;;
12374 pgCC* | pgcpp*)
12375 # Portland Group C++ compiler
12376 case `$CC -V` in
12377 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12378 prelink_cmds_CXX='tpldir=Template.dir~
12379 rm -rf $tpldir~
12380 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12381 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12382 old_archive_cmds_CXX='tpldir=Template.dir~
12383 rm -rf $tpldir~
12384 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12385 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12386 $RANLIB $oldlib'
12387 archive_cmds_CXX='tpldir=Template.dir~
12388 rm -rf $tpldir~
12389 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12390 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12391 archive_expsym_cmds_CXX='tpldir=Template.dir~
12392 rm -rf $tpldir~
12393 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12394 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12395 ;;
12396 *) # Version 6 and above use weak symbols
12397 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12398 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'
12399 ;;
12400 esac
12401
12402 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12404 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12405 ;;
12406 cxx*)
12407 # Compaq C++
12408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12409 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'
12410
12411 runpath_var=LD_RUN_PATH
12412 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12413 hardcode_libdir_separator_CXX=:
12414
12415 # Commands to make compiler produce verbose output that lists
12416 # what "hidden" libraries, object files and flags are used when
12417 # linking a shared library.
12418 #
12419 # There doesn't appear to be a way to prevent this compiler from
12420 # explicitly linking system object files so we need to strip them
12421 # from the output so that they don't get included in the library
12422 # dependencies.
12423 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
12424 ;;
12425 xl* | mpixl* | bgxl*)
12426 # IBM XL 8.0 on PPC, with GNU ld
12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12429 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430 if test "x$supports_anon_versioning" = xyes; then
12431 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12433 echo "local: *; };" >> $output_objdir/$libname.ver~
12434 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12435 fi
12436 ;;
12437 *)
12438 case `$CC -V 2>&1 | sed 5q` in
12439 *Sun\ C*)
12440 # Sun C++ 5.9
12441 no_undefined_flag_CXX=' -zdefs'
12442 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12443 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12444 hardcode_libdir_flag_spec_CXX='-R$libdir'
12445 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12446 compiler_needs_object_CXX=yes
12447
12448 # Not sure whether something based on
12449 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12450 # would be better.
12451 output_verbose_link_cmd='func_echo_all'
12452
12453 # Archives containing C++ object files must be created using
12454 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12455 # necessary to make sure instantiated templates are included
12456 # in the archive.
12457 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12458 ;;
12459 esac
12460 ;;
12461 esac
12462 ;;
12463
12464 lynxos*)
12465 # FIXME: insert proper C++ library support
12466 ld_shlibs_CXX=no
12467 ;;
12468
12469 m88k*)
12470 # FIXME: insert proper C++ library support
12471 ld_shlibs_CXX=no
12472 ;;
12473
12474 mvs*)
12475 case $cc_basename in
12476 cxx*)
12477 # FIXME: insert proper C++ library support
12478 ld_shlibs_CXX=no
12479 ;;
12480 *)
12481 # FIXME: insert proper C++ library support
12482 ld_shlibs_CXX=no
12483 ;;
12484 esac
12485 ;;
12486
12487 netbsd*)
12488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12489 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12490 wlarc=
12491 hardcode_libdir_flag_spec_CXX='-R$libdir'
12492 hardcode_direct_CXX=yes
12493 hardcode_shlibpath_var_CXX=no
12494 fi
12495 # Workaround some broken pre-1.5 toolchains
12496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12497 ;;
12498
12499 *nto* | *qnx*)
12500 ld_shlibs_CXX=yes
12501 ;;
12502
12503 openbsd2*)
12504 # C++ shared libraries are fairly broken
12505 ld_shlibs_CXX=no
12506 ;;
12507
12508 openbsd*)
12509 if test -f /usr/libexec/ld.so; then
12510 hardcode_direct_CXX=yes
12511 hardcode_shlibpath_var_CXX=no
12512 hardcode_direct_absolute_CXX=yes
12513 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12514 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12516 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12517 export_dynamic_flag_spec_CXX='${wl}-E'
12518 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12519 fi
12520 output_verbose_link_cmd=func_echo_all
12521 else
12522 ld_shlibs_CXX=no
12523 fi
12524 ;;
12525
12526 osf3* | osf4* | osf5*)
12527 case $cc_basename in
12528 KCC*)
12529 # Kuck and Associates, Inc. (KAI) C++ Compiler
12530
12531 # KCC will only create a shared library if the output file
12532 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12533 # to its proper name (with version) after linking.
12534 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'
12535
12536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12537 hardcode_libdir_separator_CXX=:
12538
12539 # Archives containing C++ object files must be created using
12540 # the KAI C++ compiler.
12541 case $host in
12542 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12543 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12544 esac
12545 ;;
12546 RCC*)
12547 # Rational C++ 2.4.1
12548 # FIXME: insert proper C++ library support
12549 ld_shlibs_CXX=no
12550 ;;
12551 cxx*)
12552 case $host in
12553 osf3*)
12554 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12555 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12556 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12557 ;;
12558 *)
12559 allow_undefined_flag_CXX=' -expect_unresolved \*'
12560 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12561 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12562 echo "-hidden">> $lib.exp~
12563 $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~
12564 $RM $lib.exp'
12565 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12566 ;;
12567 esac
12568
12569 hardcode_libdir_separator_CXX=:
12570
12571 # Commands to make compiler produce verbose output that lists
12572 # what "hidden" libraries, object files and flags are used when
12573 # linking a shared library.
12574 #
12575 # There doesn't appear to be a way to prevent this compiler from
12576 # explicitly linking system object files so we need to strip them
12577 # from the output so that they don't get included in the library
12578 # dependencies.
12579 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
12580 ;;
12581 *)
12582 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12583 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12584 case $host in
12585 osf3*)
12586 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12587 ;;
12588 *)
12589 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12590 ;;
12591 esac
12592
12593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12594 hardcode_libdir_separator_CXX=:
12595
12596 # Commands to make compiler produce verbose output that lists
12597 # what "hidden" libraries, object files and flags are used when
12598 # linking a shared library.
12599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12600
12601 else
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12604 fi
12605 ;;
12606 esac
12607 ;;
12608
12609 psos*)
12610 # FIXME: insert proper C++ library support
12611 ld_shlibs_CXX=no
12612 ;;
12613
12614 sunos4*)
12615 case $cc_basename in
12616 CC*)
12617 # Sun C++ 4.x
12618 # FIXME: insert proper C++ library support
12619 ld_shlibs_CXX=no
12620 ;;
12621 lcc*)
12622 # Lucid
12623 # FIXME: insert proper C++ library support
12624 ld_shlibs_CXX=no
12625 ;;
12626 *)
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12629 ;;
12630 esac
12631 ;;
12632
12633 solaris*)
12634 case $cc_basename in
12635 CC*)
12636 # Sun C++ 4.2, 5.x and Centerline C++
12637 archive_cmds_need_lc_CXX=yes
12638 no_undefined_flag_CXX=' -zdefs'
12639 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12640 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12641 $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'
12642
12643 hardcode_libdir_flag_spec_CXX='-R$libdir'
12644 hardcode_shlibpath_var_CXX=no
12645 case $host_os in
12646 solaris2.[0-5] | solaris2.[0-5].*) ;;
12647 *)
12648 # The compiler driver will combine and reorder linker options,
12649 # but understands `-z linker_flag'.
12650 # Supported since Solaris 2.6 (maybe 2.5.1?)
12651 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12652 ;;
12653 esac
12654 link_all_deplibs_CXX=yes
12655
12656 output_verbose_link_cmd='func_echo_all'
12657
12658 # Archives containing C++ object files must be created using
12659 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12660 # necessary to make sure instantiated templates are included
12661 # in the archive.
12662 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12663 ;;
12664 gcx*)
12665 # Green Hills C++ Compiler
12666 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12667
12668 # The C++ compiler must be used to create the archive.
12669 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12670 ;;
12671 *)
12672 # GNU C++ compiler with Solaris linker
12673 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12674 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12675 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12676 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12677 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12678 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12679
12680 # Commands to make compiler produce verbose output that lists
12681 # what "hidden" libraries, object files and flags are used when
12682 # linking a shared library.
12683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12684 else
12685 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12686 # platform.
12687 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12688 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12689 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12690
12691 # Commands to make compiler produce verbose output that lists
12692 # what "hidden" libraries, object files and flags are used when
12693 # linking a shared library.
12694 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12695 fi
12696
12697 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12698 case $host_os in
12699 solaris2.[0-5] | solaris2.[0-5].*) ;;
12700 *)
12701 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12702 ;;
12703 esac
12704 fi
12705 ;;
12706 esac
12707 ;;
12708
12709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12710 no_undefined_flag_CXX='${wl}-z,text'
12711 archive_cmds_need_lc_CXX=no
12712 hardcode_shlibpath_var_CXX=no
12713 runpath_var='LD_RUN_PATH'
12714
12715 case $cc_basename in
12716 CC*)
12717 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12718 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12719 ;;
12720 *)
12721 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12722 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12723 ;;
12724 esac
12725 ;;
12726
12727 sysv5* | sco3.2v5* | sco5v6*)
12728 # Note: We can NOT use -z defs as we might desire, because we do not
12729 # link with -lc, and that would cause any symbols used from libc to
12730 # always be unresolved, which means just about no library would
12731 # ever link correctly. If we're not using GNU ld we use -z text
12732 # though, which does catch some bad symbols but isn't as heavy-handed
12733 # as -z defs.
12734 no_undefined_flag_CXX='${wl}-z,text'
12735 allow_undefined_flag_CXX='${wl}-z,nodefs'
12736 archive_cmds_need_lc_CXX=no
12737 hardcode_shlibpath_var_CXX=no
12738 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12739 hardcode_libdir_separator_CXX=':'
12740 link_all_deplibs_CXX=yes
12741 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12742 runpath_var='LD_RUN_PATH'
12743
12744 case $cc_basename in
12745 CC*)
12746 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12747 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12748 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12749 '"$old_archive_cmds_CXX"
12750 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12751 '"$reload_cmds_CXX"
12752 ;;
12753 *)
12754 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12755 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12756 ;;
12757 esac
12758 ;;
12759
12760 tandem*)
12761 case $cc_basename in
12762 NCC*)
12763 # NonStop-UX NCC 3.20
12764 # FIXME: insert proper C++ library support
12765 ld_shlibs_CXX=no
12766 ;;
12767 *)
12768 # FIXME: insert proper C++ library support
12769 ld_shlibs_CXX=no
12770 ;;
12771 esac
12772 ;;
12773
12774 vxworks*)
12775 # FIXME: insert proper C++ library support
12776 ld_shlibs_CXX=no
12777 ;;
12778
12779 *)
12780 # FIXME: insert proper C++ library support
12781 ld_shlibs_CXX=no
12782 ;;
12783 esac
12784
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12786 $as_echo "$ld_shlibs_CXX" >&6; }
12787 test "$ld_shlibs_CXX" = no && can_build_shared=no
12788
12789 GCC_CXX="$GXX"
12790 LD_CXX="$LD"
12791
12792 ## CAVEAT EMPTOR:
12793 ## There is no encapsulation within the following macros, do not change
12794 ## the running order or otherwise move them around unless you know exactly
12795 ## what you are doing...
12796 # Dependencies to place before and after the object being linked:
12797 predep_objects_CXX=
12798 postdep_objects_CXX=
12799 predeps_CXX=
12800 postdeps_CXX=
12801 compiler_lib_search_path_CXX=
12802
12803 cat > conftest.$ac_ext <<_LT_EOF
12804 class Foo
12805 {
12806 public:
12807 Foo (void) { a = 0; }
12808 private:
12809 int a;
12810 };
12811 _LT_EOF
12812
12813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12814 (eval $ac_compile) 2>&5
12815 ac_status=$?
12816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12817 test $ac_status = 0; }; then
12818 # Parse the compiler output and extract the necessary
12819 # objects, libraries and library flags.
12820
12821 # Sentinel used to keep track of whether or not we are before
12822 # the conftest object file.
12823 pre_test_object_deps_done=no
12824
12825 for p in `eval "$output_verbose_link_cmd"`; do
12826 case $p in
12827
12828 -L* | -R* | -l*)
12829 # Some compilers place space between "-{L,R}" and the path.
12830 # Remove the space.
12831 if test $p = "-L" ||
12832 test $p = "-R"; then
12833 prev=$p
12834 continue
12835 else
12836 prev=
12837 fi
12838
12839 if test "$pre_test_object_deps_done" = no; then
12840 case $p in
12841 -L* | -R*)
12842 # Internal compiler library paths should come after those
12843 # provided the user. The postdeps already come after the
12844 # user supplied libs so there is no need to process them.
12845 if test -z "$compiler_lib_search_path_CXX"; then
12846 compiler_lib_search_path_CXX="${prev}${p}"
12847 else
12848 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12849 fi
12850 ;;
12851 # The "-l" case would never come before the object being
12852 # linked, so don't bother handling this case.
12853 esac
12854 else
12855 if test -z "$postdeps_CXX"; then
12856 postdeps_CXX="${prev}${p}"
12857 else
12858 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12859 fi
12860 fi
12861 ;;
12862
12863 *.$objext)
12864 # This assumes that the test object file only shows up
12865 # once in the compiler output.
12866 if test "$p" = "conftest.$objext"; then
12867 pre_test_object_deps_done=yes
12868 continue
12869 fi
12870
12871 if test "$pre_test_object_deps_done" = no; then
12872 if test -z "$predep_objects_CXX"; then
12873 predep_objects_CXX="$p"
12874 else
12875 predep_objects_CXX="$predep_objects_CXX $p"
12876 fi
12877 else
12878 if test -z "$postdep_objects_CXX"; then
12879 postdep_objects_CXX="$p"
12880 else
12881 postdep_objects_CXX="$postdep_objects_CXX $p"
12882 fi
12883 fi
12884 ;;
12885
12886 *) ;; # Ignore the rest.
12887
12888 esac
12889 done
12890
12891 # Clean up.
12892 rm -f a.out a.exe
12893 else
12894 echo "libtool.m4: error: problem compiling CXX test program"
12895 fi
12896
12897 $RM -f confest.$objext
12898
12899 # PORTME: override above test on systems where it is broken
12900 case $host_os in
12901 interix[3-9]*)
12902 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12903 # hack all around it, let's just trust "g++" to DTRT.
12904 predep_objects_CXX=
12905 postdep_objects_CXX=
12906 postdeps_CXX=
12907 ;;
12908
12909 linux*)
12910 case `$CC -V 2>&1 | sed 5q` in
12911 *Sun\ C*)
12912 # Sun C++ 5.9
12913
12914 # The more standards-conforming stlport4 library is
12915 # incompatible with the Cstd library. Avoid specifying
12916 # it if it's in CXXFLAGS. Ignore libCrun as
12917 # -library=stlport4 depends on it.
12918 case " $CXX $CXXFLAGS " in
12919 *" -library=stlport4 "*)
12920 solaris_use_stlport4=yes
12921 ;;
12922 esac
12923
12924 if test "$solaris_use_stlport4" != yes; then
12925 postdeps_CXX='-library=Cstd -library=Crun'
12926 fi
12927 ;;
12928 esac
12929 ;;
12930
12931 solaris*)
12932 case $cc_basename in
12933 CC*)
12934 # The more standards-conforming stlport4 library is
12935 # incompatible with the Cstd library. Avoid specifying
12936 # it if it's in CXXFLAGS. Ignore libCrun as
12937 # -library=stlport4 depends on it.
12938 case " $CXX $CXXFLAGS " in
12939 *" -library=stlport4 "*)
12940 solaris_use_stlport4=yes
12941 ;;
12942 esac
12943
12944 # Adding this requires a known-good setup of shared libraries for
12945 # Sun compiler versions before 5.6, else PIC objects from an old
12946 # archive will be linked into the output, leading to subtle bugs.
12947 if test "$solaris_use_stlport4" != yes; then
12948 postdeps_CXX='-library=Cstd -library=Crun'
12949 fi
12950 ;;
12951 esac
12952 ;;
12953 esac
12954
12955
12956 case " $postdeps_CXX " in
12957 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12958 esac
12959 compiler_lib_search_dirs_CXX=
12960 if test -n "${compiler_lib_search_path_CXX}"; then
12961 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12962 fi
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994 lt_prog_compiler_wl_CXX=
12995 lt_prog_compiler_pic_CXX=
12996 lt_prog_compiler_static_CXX=
12997
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12999 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13000
13001 # C++ specific cases for pic, static, wl, etc.
13002 if test "$GXX" = yes; then
13003 lt_prog_compiler_wl_CXX='-Wl,'
13004 lt_prog_compiler_static_CXX='-static'
13005
13006 case $host_os in
13007 aix*)
13008 # All AIX code is PIC.
13009 if test "$host_cpu" = ia64; then
13010 # AIX 5 now supports IA64 processor
13011 lt_prog_compiler_static_CXX='-Bstatic'
13012 fi
13013 lt_prog_compiler_pic_CXX='-fPIC'
13014 ;;
13015
13016 amigaos*)
13017 case $host_cpu in
13018 powerpc)
13019 # see comment about AmigaOS4 .so support
13020 lt_prog_compiler_pic_CXX='-fPIC'
13021 ;;
13022 m68k)
13023 # FIXME: we need at least 68020 code to build shared libraries, but
13024 # adding the `-m68020' flag to GCC prevents building anything better,
13025 # like `-m68040'.
13026 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13027 ;;
13028 esac
13029 ;;
13030
13031 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13032 # PIC is the default for these OSes.
13033 ;;
13034 mingw* | cygwin* | os2* | pw32* | cegcc*)
13035 # This hack is so that the source file can tell whether it is being
13036 # built for inclusion in a dll (and should export symbols for example).
13037 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13038 # (--disable-auto-import) libraries
13039 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13040 ;;
13041 darwin* | rhapsody*)
13042 # PIC is the default on this platform
13043 # Common symbols not allowed in MH_DYLIB files
13044 lt_prog_compiler_pic_CXX='-fno-common'
13045 ;;
13046 *djgpp*)
13047 # DJGPP does not support shared libraries at all
13048 lt_prog_compiler_pic_CXX=
13049 ;;
13050 haiku*)
13051 # PIC is the default for Haiku.
13052 # The "-static" flag exists, but is broken.
13053 lt_prog_compiler_static_CXX=
13054 ;;
13055 interix[3-9]*)
13056 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13057 # Instead, we relocate shared libraries at runtime.
13058 ;;
13059 sysv4*MP*)
13060 if test -d /usr/nec; then
13061 lt_prog_compiler_pic_CXX=-Kconform_pic
13062 fi
13063 ;;
13064 hpux*)
13065 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13066 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13067 # sets the default TLS model and affects inlining.
13068 case $host_cpu in
13069 hppa*64*)
13070 ;;
13071 *)
13072 lt_prog_compiler_pic_CXX='-fPIC'
13073 ;;
13074 esac
13075 ;;
13076 *qnx* | *nto*)
13077 # QNX uses GNU C++, but need to define -shared option too, otherwise
13078 # it will coredump.
13079 lt_prog_compiler_pic_CXX='-fPIC -shared'
13080 ;;
13081 *)
13082 lt_prog_compiler_pic_CXX='-fPIC'
13083 ;;
13084 esac
13085 else
13086 case $host_os in
13087 aix[4-9]*)
13088 # All AIX code is PIC.
13089 if test "$host_cpu" = ia64; then
13090 # AIX 5 now supports IA64 processor
13091 lt_prog_compiler_static_CXX='-Bstatic'
13092 else
13093 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13094 fi
13095 ;;
13096 chorus*)
13097 case $cc_basename in
13098 cxch68*)
13099 # Green Hills C++ Compiler
13100 # _LT_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"
13101 ;;
13102 esac
13103 ;;
13104 dgux*)
13105 case $cc_basename in
13106 ec++*)
13107 lt_prog_compiler_pic_CXX='-KPIC'
13108 ;;
13109 ghcx*)
13110 # Green Hills C++ Compiler
13111 lt_prog_compiler_pic_CXX='-pic'
13112 ;;
13113 *)
13114 ;;
13115 esac
13116 ;;
13117 freebsd* | dragonfly*)
13118 # FreeBSD uses GNU C++
13119 ;;
13120 hpux9* | hpux10* | hpux11*)
13121 case $cc_basename in
13122 CC*)
13123 lt_prog_compiler_wl_CXX='-Wl,'
13124 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13125 if test "$host_cpu" != ia64; then
13126 lt_prog_compiler_pic_CXX='+Z'
13127 fi
13128 ;;
13129 aCC*)
13130 lt_prog_compiler_wl_CXX='-Wl,'
13131 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13132 case $host_cpu in
13133 hppa*64*|ia64*)
13134 # +Z the default
13135 ;;
13136 *)
13137 lt_prog_compiler_pic_CXX='+Z'
13138 ;;
13139 esac
13140 ;;
13141 *)
13142 ;;
13143 esac
13144 ;;
13145 interix*)
13146 # This is c89, which is MS Visual C++ (no shared libs)
13147 # Anyone wants to do a port?
13148 ;;
13149 irix5* | irix6* | nonstopux*)
13150 case $cc_basename in
13151 CC*)
13152 lt_prog_compiler_wl_CXX='-Wl,'
13153 lt_prog_compiler_static_CXX='-non_shared'
13154 # CC pic flag -KPIC is the default.
13155 ;;
13156 *)
13157 ;;
13158 esac
13159 ;;
13160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13161 case $cc_basename in
13162 KCC*)
13163 # KAI C++ Compiler
13164 lt_prog_compiler_wl_CXX='--backend -Wl,'
13165 lt_prog_compiler_pic_CXX='-fPIC'
13166 ;;
13167 ecpc* )
13168 # old Intel C++ for x86_64 which still supported -KPIC.
13169 lt_prog_compiler_wl_CXX='-Wl,'
13170 lt_prog_compiler_pic_CXX='-KPIC'
13171 lt_prog_compiler_static_CXX='-static'
13172 ;;
13173 icpc* )
13174 # Intel C++, used to be incompatible with GCC.
13175 # ICC 10 doesn't accept -KPIC any more.
13176 lt_prog_compiler_wl_CXX='-Wl,'
13177 lt_prog_compiler_pic_CXX='-fPIC'
13178 lt_prog_compiler_static_CXX='-static'
13179 ;;
13180 pgCC* | pgcpp*)
13181 # Portland Group C++ compiler
13182 lt_prog_compiler_wl_CXX='-Wl,'
13183 lt_prog_compiler_pic_CXX='-fpic'
13184 lt_prog_compiler_static_CXX='-Bstatic'
13185 ;;
13186 cxx*)
13187 # Compaq C++
13188 # Make sure the PIC flag is empty. It appears that all Alpha
13189 # Linux and Compaq Tru64 Unix objects are PIC.
13190 lt_prog_compiler_pic_CXX=
13191 lt_prog_compiler_static_CXX='-non_shared'
13192 ;;
13193 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13194 # IBM XL 8.0, 9.0 on PPC and BlueGene
13195 lt_prog_compiler_wl_CXX='-Wl,'
13196 lt_prog_compiler_pic_CXX='-qpic'
13197 lt_prog_compiler_static_CXX='-qstaticlink'
13198 ;;
13199 *)
13200 case `$CC -V 2>&1 | sed 5q` in
13201 *Sun\ C*)
13202 # Sun C++ 5.9
13203 lt_prog_compiler_pic_CXX='-KPIC'
13204 lt_prog_compiler_static_CXX='-Bstatic'
13205 lt_prog_compiler_wl_CXX='-Qoption ld '
13206 ;;
13207 esac
13208 ;;
13209 esac
13210 ;;
13211 lynxos*)
13212 ;;
13213 m88k*)
13214 ;;
13215 mvs*)
13216 case $cc_basename in
13217 cxx*)
13218 lt_prog_compiler_pic_CXX='-W c,exportall'
13219 ;;
13220 *)
13221 ;;
13222 esac
13223 ;;
13224 netbsd*)
13225 ;;
13226 *qnx* | *nto*)
13227 # QNX uses GNU C++, but need to define -shared option too, otherwise
13228 # it will coredump.
13229 lt_prog_compiler_pic_CXX='-fPIC -shared'
13230 ;;
13231 osf3* | osf4* | osf5*)
13232 case $cc_basename in
13233 KCC*)
13234 lt_prog_compiler_wl_CXX='--backend -Wl,'
13235 ;;
13236 RCC*)
13237 # Rational C++ 2.4.1
13238 lt_prog_compiler_pic_CXX='-pic'
13239 ;;
13240 cxx*)
13241 # Digital/Compaq C++
13242 lt_prog_compiler_wl_CXX='-Wl,'
13243 # Make sure the PIC flag is empty. It appears that all Alpha
13244 # Linux and Compaq Tru64 Unix objects are PIC.
13245 lt_prog_compiler_pic_CXX=
13246 lt_prog_compiler_static_CXX='-non_shared'
13247 ;;
13248 *)
13249 ;;
13250 esac
13251 ;;
13252 psos*)
13253 ;;
13254 solaris*)
13255 case $cc_basename in
13256 CC*)
13257 # Sun C++ 4.2, 5.x and Centerline C++
13258 lt_prog_compiler_pic_CXX='-KPIC'
13259 lt_prog_compiler_static_CXX='-Bstatic'
13260 lt_prog_compiler_wl_CXX='-Qoption ld '
13261 ;;
13262 gcx*)
13263 # Green Hills C++ Compiler
13264 lt_prog_compiler_pic_CXX='-PIC'
13265 ;;
13266 *)
13267 ;;
13268 esac
13269 ;;
13270 sunos4*)
13271 case $cc_basename in
13272 CC*)
13273 # Sun C++ 4.x
13274 lt_prog_compiler_pic_CXX='-pic'
13275 lt_prog_compiler_static_CXX='-Bstatic'
13276 ;;
13277 lcc*)
13278 # Lucid
13279 lt_prog_compiler_pic_CXX='-pic'
13280 ;;
13281 *)
13282 ;;
13283 esac
13284 ;;
13285 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13286 case $cc_basename in
13287 CC*)
13288 lt_prog_compiler_wl_CXX='-Wl,'
13289 lt_prog_compiler_pic_CXX='-KPIC'
13290 lt_prog_compiler_static_CXX='-Bstatic'
13291 ;;
13292 esac
13293 ;;
13294 tandem*)
13295 case $cc_basename in
13296 NCC*)
13297 # NonStop-UX NCC 3.20
13298 lt_prog_compiler_pic_CXX='-KPIC'
13299 ;;
13300 *)
13301 ;;
13302 esac
13303 ;;
13304 vxworks*)
13305 ;;
13306 *)
13307 lt_prog_compiler_can_build_shared_CXX=no
13308 ;;
13309 esac
13310 fi
13311
13312 case $host_os in
13313 # For platforms which do not support PIC, -DPIC is meaningless:
13314 *djgpp*)
13315 lt_prog_compiler_pic_CXX=
13316 ;;
13317 *)
13318 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13319 ;;
13320 esac
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13322 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13323
13324
13325
13326 #
13327 # Check to make sure the PIC flag actually works.
13328 #
13329 if test -n "$lt_prog_compiler_pic_CXX"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13331 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13332 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 lt_cv_prog_compiler_pic_works_CXX=no
13336 ac_outfile=conftest.$ac_objext
13337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13338 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13339 # Insert the option either (1) after the last *FLAGS variable, or
13340 # (2) before a word containing "conftest.", or (3) at the end.
13341 # Note that $ac_compile itself does not contain backslashes and begins
13342 # with a dollar sign (not a hyphen), so the echo should work correctly.
13343 # The option is referenced via a variable to avoid confusing sed.
13344 lt_compile=`echo "$ac_compile" | $SED \
13345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13347 -e 's:$: $lt_compiler_flag:'`
13348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13349 (eval "$lt_compile" 2>conftest.err)
13350 ac_status=$?
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 if (exit $ac_status) && test -s "$ac_outfile"; then
13354 # The compiler can only warn and ignore the option if not recognized
13355 # So say no if there are warnings other than the usual output.
13356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13359 lt_cv_prog_compiler_pic_works_CXX=yes
13360 fi
13361 fi
13362 $RM conftest*
13363
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13366 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13367
13368 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13369 case $lt_prog_compiler_pic_CXX in
13370 "" | " "*) ;;
13371 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13372 esac
13373 else
13374 lt_prog_compiler_pic_CXX=
13375 lt_prog_compiler_can_build_shared_CXX=no
13376 fi
13377
13378 fi
13379
13380
13381
13382 #
13383 # Check to make sure the static flag actually works.
13384 #
13385 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13387 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13388 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 lt_cv_prog_compiler_static_works_CXX=no
13392 save_LDFLAGS="$LDFLAGS"
13393 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13394 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13396 # The linker can only warn and ignore the option if not recognized
13397 # So say no if there are warnings
13398 if test -s conftest.err; then
13399 # Append any errors to the config.log.
13400 cat conftest.err 1>&5
13401 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13403 if diff conftest.exp conftest.er2 >/dev/null; then
13404 lt_cv_prog_compiler_static_works_CXX=yes
13405 fi
13406 else
13407 lt_cv_prog_compiler_static_works_CXX=yes
13408 fi
13409 fi
13410 $RM -r conftest*
13411 LDFLAGS="$save_LDFLAGS"
13412
13413 fi
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13415 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13416
13417 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13418 :
13419 else
13420 lt_prog_compiler_static_CXX=
13421 fi
13422
13423
13424
13425
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13427 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13428 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 lt_cv_prog_compiler_c_o_CXX=no
13432 $RM -r conftest 2>/dev/null
13433 mkdir conftest
13434 cd conftest
13435 mkdir out
13436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13437
13438 lt_compiler_flag="-o out/conftest2.$ac_objext"
13439 # Insert the option either (1) after the last *FLAGS variable, or
13440 # (2) before a word containing "conftest.", or (3) at the end.
13441 # Note that $ac_compile itself does not contain backslashes and begins
13442 # with a dollar sign (not a hyphen), so the echo should work correctly.
13443 lt_compile=`echo "$ac_compile" | $SED \
13444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13446 -e 's:$: $lt_compiler_flag:'`
13447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13448 (eval "$lt_compile" 2>out/conftest.err)
13449 ac_status=$?
13450 cat out/conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13453 then
13454 # The compiler can only warn and ignore the option if not recognized
13455 # So say no if there are warnings
13456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13457 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13458 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13459 lt_cv_prog_compiler_c_o_CXX=yes
13460 fi
13461 fi
13462 chmod u+w . 2>&5
13463 $RM conftest*
13464 # SGI C++ compiler will create directory out/ii_files/ for
13465 # template instantiation
13466 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13467 $RM out/* && rmdir out
13468 cd ..
13469 $RM -r conftest
13470 $RM conftest*
13471
13472 fi
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13474 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13475
13476
13477
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13479 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13480 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 lt_cv_prog_compiler_c_o_CXX=no
13484 $RM -r conftest 2>/dev/null
13485 mkdir conftest
13486 cd conftest
13487 mkdir out
13488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13489
13490 lt_compiler_flag="-o out/conftest2.$ac_objext"
13491 # Insert the option either (1) after the last *FLAGS variable, or
13492 # (2) before a word containing "conftest.", or (3) at the end.
13493 # Note that $ac_compile itself does not contain backslashes and begins
13494 # with a dollar sign (not a hyphen), so the echo should work correctly.
13495 lt_compile=`echo "$ac_compile" | $SED \
13496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13498 -e 's:$: $lt_compiler_flag:'`
13499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13500 (eval "$lt_compile" 2>out/conftest.err)
13501 ac_status=$?
13502 cat out/conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13505 then
13506 # The compiler can only warn and ignore the option if not recognized
13507 # So say no if there are warnings
13508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13511 lt_cv_prog_compiler_c_o_CXX=yes
13512 fi
13513 fi
13514 chmod u+w . 2>&5
13515 $RM conftest*
13516 # SGI C++ compiler will create directory out/ii_files/ for
13517 # template instantiation
13518 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13519 $RM out/* && rmdir out
13520 cd ..
13521 $RM -r conftest
13522 $RM conftest*
13523
13524 fi
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13526 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13527
13528
13529
13530
13531 hard_links="nottested"
13532 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13533 # do not overwrite the value of need_locks provided by the user
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13535 $as_echo_n "checking if we can lock with hard links... " >&6; }
13536 hard_links=yes
13537 $RM conftest*
13538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13539 touch conftest.a
13540 ln conftest.a conftest.b 2>&5 || hard_links=no
13541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13543 $as_echo "$hard_links" >&6; }
13544 if test "$hard_links" = no; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13546 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13547 need_locks=warn
13548 fi
13549 else
13550 need_locks=no
13551 fi
13552
13553
13554
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13556 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13557
13558 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13559 case $host_os in
13560 aix[4-9]*)
13561 # If we're using GNU nm, then we don't want the "-C" option.
13562 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13563 # Also, AIX nm treats weak defined symbols like other global defined
13564 # symbols, whereas GNU nm marks them as "W".
13565 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13566 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13567 else
13568 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'
13569 fi
13570 ;;
13571 pw32*)
13572 export_symbols_cmds_CXX="$ltdll_cmds"
13573 ;;
13574 cygwin* | mingw* | cegcc*)
13575 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'
13576 ;;
13577 *)
13578 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13579 ;;
13580 esac
13581 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13584 $as_echo "$ld_shlibs_CXX" >&6; }
13585 test "$ld_shlibs_CXX" = no && can_build_shared=no
13586
13587 with_gnu_ld_CXX=$with_gnu_ld
13588
13589
13590
13591
13592
13593
13594 #
13595 # Do we need to explicitly link libc?
13596 #
13597 case "x$archive_cmds_need_lc_CXX" in
13598 x|xyes)
13599 # Assume -lc should be added
13600 archive_cmds_need_lc_CXX=yes
13601
13602 if test "$enable_shared" = yes && test "$GCC" = yes; then
13603 case $archive_cmds_CXX in
13604 *'~'*)
13605 # FIXME: we may have to deal with multi-command sequences.
13606 ;;
13607 '$CC '*)
13608 # Test whether the compiler implicitly links with -lc since on some
13609 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13610 # to ld, don't add -lc before -lgcc.
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13612 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13613 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 $RM conftest*
13617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13618
13619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13620 (eval $ac_compile) 2>&5
13621 ac_status=$?
13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623 test $ac_status = 0; } 2>conftest.err; then
13624 soname=conftest
13625 lib=conftest
13626 libobjs=conftest.$ac_objext
13627 deplibs=
13628 wl=$lt_prog_compiler_wl_CXX
13629 pic_flag=$lt_prog_compiler_pic_CXX
13630 compiler_flags=-v
13631 linker_flags=-v
13632 verstring=
13633 output_objdir=.
13634 libname=conftest
13635 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13636 allow_undefined_flag_CXX=
13637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13638 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13639 ac_status=$?
13640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13641 test $ac_status = 0; }
13642 then
13643 lt_cv_archive_cmds_need_lc_CXX=no
13644 else
13645 lt_cv_archive_cmds_need_lc_CXX=yes
13646 fi
13647 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13648 else
13649 cat conftest.err 1>&5
13650 fi
13651 $RM conftest*
13652
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13655 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13656 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13657 ;;
13658 esac
13659 fi
13660 ;;
13661 esac
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13727 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13728
13729 library_names_spec=
13730 libname_spec='lib$name'
13731 soname_spec=
13732 shrext_cmds=".so"
13733 postinstall_cmds=
13734 postuninstall_cmds=
13735 finish_cmds=
13736 finish_eval=
13737 shlibpath_var=
13738 shlibpath_overrides_runpath=unknown
13739 version_type=none
13740 dynamic_linker="$host_os ld.so"
13741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13742 need_lib_prefix=unknown
13743 hardcode_into_libs=no
13744
13745 # when you set need_version to no, make sure it does not cause -set_version
13746 # flags to be left without arguments
13747 need_version=unknown
13748
13749 case $host_os in
13750 aix3*)
13751 version_type=linux
13752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13753 shlibpath_var=LIBPATH
13754
13755 # AIX 3 has no versioning support, so we append a major version to the name.
13756 soname_spec='${libname}${release}${shared_ext}$major'
13757 ;;
13758
13759 aix[4-9]*)
13760 version_type=linux
13761 need_lib_prefix=no
13762 need_version=no
13763 hardcode_into_libs=yes
13764 if test "$host_cpu" = ia64; then
13765 # AIX 5 supports IA64
13766 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13767 shlibpath_var=LD_LIBRARY_PATH
13768 else
13769 # With GCC up to 2.95.x, collect2 would create an import file
13770 # for dependence libraries. The import file would start with
13771 # the line `#! .'. This would cause the generated library to
13772 # depend on `.', always an invalid library. This was fixed in
13773 # development snapshots of GCC prior to 3.0.
13774 case $host_os in
13775 aix4 | aix4.[01] | aix4.[01].*)
13776 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13777 echo ' yes '
13778 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13779 :
13780 else
13781 can_build_shared=no
13782 fi
13783 ;;
13784 esac
13785 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13786 # soname into executable. Probably we can add versioning support to
13787 # collect2, so additional links can be useful in future.
13788 if test "$aix_use_runtimelinking" = yes; then
13789 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13790 # instead of lib<name>.a to let people know that these are not
13791 # typical AIX shared libraries.
13792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13793 else
13794 # We preserve .a as extension for shared libraries through AIX4.2
13795 # and later when we are not doing run time linking.
13796 library_names_spec='${libname}${release}.a $libname.a'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13798 fi
13799 shlibpath_var=LIBPATH
13800 fi
13801 ;;
13802
13803 amigaos*)
13804 case $host_cpu in
13805 powerpc)
13806 # Since July 2007 AmigaOS4 officially supports .so libraries.
13807 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13809 ;;
13810 m68k)
13811 library_names_spec='$libname.ixlibrary $libname.a'
13812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13813 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
13814 ;;
13815 esac
13816 ;;
13817
13818 beos*)
13819 library_names_spec='${libname}${shared_ext}'
13820 dynamic_linker="$host_os ld.so"
13821 shlibpath_var=LIBRARY_PATH
13822 ;;
13823
13824 bsdi[45]*)
13825 version_type=linux
13826 need_version=no
13827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13828 soname_spec='${libname}${release}${shared_ext}$major'
13829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13830 shlibpath_var=LD_LIBRARY_PATH
13831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13833 # the default ld.so.conf also contains /usr/contrib/lib and
13834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13835 # libtool to hard-code these into programs
13836 ;;
13837
13838 cygwin* | mingw* | pw32* | cegcc*)
13839 version_type=windows
13840 shrext_cmds=".dll"
13841 need_version=no
13842 need_lib_prefix=no
13843
13844 case $GCC,$host_os in
13845 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13846 library_names_spec='$libname.dll.a'
13847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13848 postinstall_cmds='base_file=`basename \${file}`~
13849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13850 dldir=$destdir/`dirname \$dlpath`~
13851 test -d \$dldir || mkdir -p \$dldir~
13852 $install_prog $dir/$dlname \$dldir/$dlname~
13853 chmod a+x \$dldir/$dlname~
13854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13856 fi'
13857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13858 dlpath=$dir/\$dldll~
13859 $RM \$dlpath'
13860 shlibpath_overrides_runpath=yes
13861
13862 case $host_os in
13863 cygwin*)
13864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13865 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13866
13867 ;;
13868 mingw* | cegcc*)
13869 # MinGW DLLs use traditional 'lib' prefix
13870 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13871 ;;
13872 pw32*)
13873 # pw32 DLLs use 'pw' prefix rather than 'lib'
13874 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13875 ;;
13876 esac
13877 ;;
13878
13879 *)
13880 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13881 ;;
13882 esac
13883 dynamic_linker='Win32 ld.exe'
13884 # FIXME: first we should search . and the directory the executable is in
13885 shlibpath_var=PATH
13886 ;;
13887
13888 darwin* | rhapsody*)
13889 dynamic_linker="$host_os dyld"
13890 version_type=darwin
13891 need_lib_prefix=no
13892 need_version=no
13893 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13894 soname_spec='${libname}${release}${major}$shared_ext'
13895 shlibpath_overrides_runpath=yes
13896 shlibpath_var=DYLD_LIBRARY_PATH
13897 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13898
13899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13900 ;;
13901
13902 dgux*)
13903 version_type=linux
13904 need_lib_prefix=no
13905 need_version=no
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 shlibpath_var=LD_LIBRARY_PATH
13909 ;;
13910
13911 freebsd* | dragonfly*)
13912 # DragonFly does not have aout. When/if they implement a new
13913 # versioning mechanism, adjust this.
13914 if test -x /usr/bin/objformat; then
13915 objformat=`/usr/bin/objformat`
13916 else
13917 case $host_os in
13918 freebsd[23].*) objformat=aout ;;
13919 *) objformat=elf ;;
13920 esac
13921 fi
13922 version_type=freebsd-$objformat
13923 case $version_type in
13924 freebsd-elf*)
13925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13926 need_version=no
13927 need_lib_prefix=no
13928 ;;
13929 freebsd-*)
13930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13931 need_version=yes
13932 ;;
13933 esac
13934 shlibpath_var=LD_LIBRARY_PATH
13935 case $host_os in
13936 freebsd2.*)
13937 shlibpath_overrides_runpath=yes
13938 ;;
13939 freebsd3.[01]* | freebsdelf3.[01]*)
13940 shlibpath_overrides_runpath=yes
13941 hardcode_into_libs=yes
13942 ;;
13943 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13944 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13945 shlibpath_overrides_runpath=no
13946 hardcode_into_libs=yes
13947 ;;
13948 *) # from 4.6 on, and DragonFly
13949 shlibpath_overrides_runpath=yes
13950 hardcode_into_libs=yes
13951 ;;
13952 esac
13953 ;;
13954
13955 gnu*)
13956 version_type=linux
13957 need_lib_prefix=no
13958 need_version=no
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 shlibpath_var=LD_LIBRARY_PATH
13962 hardcode_into_libs=yes
13963 ;;
13964
13965 haiku*)
13966 version_type=linux
13967 need_lib_prefix=no
13968 need_version=no
13969 dynamic_linker="$host_os runtime_loader"
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13971 soname_spec='${libname}${release}${shared_ext}$major'
13972 shlibpath_var=LIBRARY_PATH
13973 shlibpath_overrides_runpath=yes
13974 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13975 hardcode_into_libs=yes
13976 ;;
13977
13978 hpux9* | hpux10* | hpux11*)
13979 # Give a soname corresponding to the major version so that dld.sl refuses to
13980 # link against other versions.
13981 version_type=sunos
13982 need_lib_prefix=no
13983 need_version=no
13984 case $host_cpu in
13985 ia64*)
13986 shrext_cmds='.so'
13987 hardcode_into_libs=yes
13988 dynamic_linker="$host_os dld.so"
13989 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13992 soname_spec='${libname}${release}${shared_ext}$major'
13993 if test "X$HPUX_IA64_MODE" = X32; then
13994 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13995 else
13996 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13997 fi
13998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13999 ;;
14000 hppa*64*)
14001 shrext_cmds='.sl'
14002 hardcode_into_libs=yes
14003 dynamic_linker="$host_os dld.sl"
14004 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14007 soname_spec='${libname}${release}${shared_ext}$major'
14008 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14010 ;;
14011 *)
14012 shrext_cmds='.sl'
14013 dynamic_linker="$host_os dld.sl"
14014 shlibpath_var=SHLIB_PATH
14015 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 ;;
14019 esac
14020 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14021 postinstall_cmds='chmod 555 $lib'
14022 # or fails outright, so override atomically:
14023 install_override_mode=555
14024 ;;
14025
14026 interix[3-9]*)
14027 version_type=linux
14028 need_lib_prefix=no
14029 need_version=no
14030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14031 soname_spec='${libname}${release}${shared_ext}$major'
14032 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14033 shlibpath_var=LD_LIBRARY_PATH
14034 shlibpath_overrides_runpath=no
14035 hardcode_into_libs=yes
14036 ;;
14037
14038 irix5* | irix6* | nonstopux*)
14039 case $host_os in
14040 nonstopux*) version_type=nonstopux ;;
14041 *)
14042 if test "$lt_cv_prog_gnu_ld" = yes; then
14043 version_type=linux
14044 else
14045 version_type=irix
14046 fi ;;
14047 esac
14048 need_lib_prefix=no
14049 need_version=no
14050 soname_spec='${libname}${release}${shared_ext}$major'
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14052 case $host_os in
14053 irix5* | nonstopux*)
14054 libsuff= shlibsuff=
14055 ;;
14056 *)
14057 case $LD in # libtool.m4 will add one of these switches to LD
14058 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14059 libsuff= shlibsuff= libmagic=32-bit;;
14060 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14061 libsuff=32 shlibsuff=N32 libmagic=N32;;
14062 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14063 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14064 *) libsuff= shlibsuff= libmagic=never-match;;
14065 esac
14066 ;;
14067 esac
14068 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14069 shlibpath_overrides_runpath=no
14070 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14071 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14072 hardcode_into_libs=yes
14073 ;;
14074
14075 # No shared lib support for Linux oldld, aout, or coff.
14076 linux*oldld* | linux*aout* | linux*coff*)
14077 dynamic_linker=no
14078 ;;
14079
14080 # This must be Linux ELF.
14081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14082 version_type=linux
14083 need_lib_prefix=no
14084 need_version=no
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14086 soname_spec='${libname}${release}${shared_ext}$major'
14087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14088 shlibpath_var=LD_LIBRARY_PATH
14089 shlibpath_overrides_runpath=no
14090
14091 # Some binutils ld are patched to set DT_RUNPATH
14092 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 lt_cv_shlibpath_overrides_runpath=no
14096 save_LDFLAGS=$LDFLAGS
14097 save_libdir=$libdir
14098 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14099 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102
14103 int
14104 main ()
14105 {
14106
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_cxx_try_link "$LINENO"; then :
14112 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14113 lt_cv_shlibpath_overrides_runpath=yes
14114 fi
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LDFLAGS=$save_LDFLAGS
14119 libdir=$save_libdir
14120
14121 fi
14122
14123 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14124
14125 # This implies no fast_install, which is unacceptable.
14126 # Some rework will be needed to allow for fast_install
14127 # before this can be enabled.
14128 hardcode_into_libs=yes
14129
14130 # Append ld.so.conf contents to the search path
14131 if test -f /etc/ld.so.conf; then
14132 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14134 fi
14135
14136 # We used to test for /lib/ld.so.1 and disable shared libraries on
14137 # powerpc, because MkLinux only supported shared libraries with the
14138 # GNU dynamic linker. Since this was broken with cross compilers,
14139 # most powerpc-linux boxes support dynamic linking these days and
14140 # people can always --disable-shared, the test was removed, and we
14141 # assume the GNU/Linux dynamic linker is in use.
14142 dynamic_linker='GNU/Linux ld.so'
14143 ;;
14144
14145 netbsd*)
14146 version_type=sunos
14147 need_lib_prefix=no
14148 need_version=no
14149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14152 dynamic_linker='NetBSD (a.out) ld.so'
14153 else
14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14155 soname_spec='${libname}${release}${shared_ext}$major'
14156 dynamic_linker='NetBSD ld.elf_so'
14157 fi
14158 shlibpath_var=LD_LIBRARY_PATH
14159 shlibpath_overrides_runpath=yes
14160 hardcode_into_libs=yes
14161 ;;
14162
14163 newsos6)
14164 version_type=linux
14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 shlibpath_overrides_runpath=yes
14168 ;;
14169
14170 *nto* | *qnx*)
14171 version_type=qnx
14172 need_lib_prefix=no
14173 need_version=no
14174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175 soname_spec='${libname}${release}${shared_ext}$major'
14176 shlibpath_var=LD_LIBRARY_PATH
14177 shlibpath_overrides_runpath=no
14178 hardcode_into_libs=yes
14179 dynamic_linker='ldqnx.so'
14180 ;;
14181
14182 openbsd*)
14183 version_type=sunos
14184 sys_lib_dlsearch_path_spec="/usr/lib"
14185 need_lib_prefix=no
14186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14187 case $host_os in
14188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14189 *) need_version=no ;;
14190 esac
14191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14193 shlibpath_var=LD_LIBRARY_PATH
14194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14195 case $host_os in
14196 openbsd2.[89] | openbsd2.[89].*)
14197 shlibpath_overrides_runpath=no
14198 ;;
14199 *)
14200 shlibpath_overrides_runpath=yes
14201 ;;
14202 esac
14203 else
14204 shlibpath_overrides_runpath=yes
14205 fi
14206 ;;
14207
14208 os2*)
14209 libname_spec='$name'
14210 shrext_cmds=".dll"
14211 need_lib_prefix=no
14212 library_names_spec='$libname${shared_ext} $libname.a'
14213 dynamic_linker='OS/2 ld.exe'
14214 shlibpath_var=LIBPATH
14215 ;;
14216
14217 osf3* | osf4* | osf5*)
14218 version_type=osf
14219 need_lib_prefix=no
14220 need_version=no
14221 soname_spec='${libname}${release}${shared_ext}$major'
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14223 shlibpath_var=LD_LIBRARY_PATH
14224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14226 ;;
14227
14228 rdos*)
14229 dynamic_linker=no
14230 ;;
14231
14232 solaris*)
14233 version_type=linux
14234 need_lib_prefix=no
14235 need_version=no
14236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14237 soname_spec='${libname}${release}${shared_ext}$major'
14238 shlibpath_var=LD_LIBRARY_PATH
14239 shlibpath_overrides_runpath=yes
14240 hardcode_into_libs=yes
14241 # ldd complains unless libraries are executable
14242 postinstall_cmds='chmod +x $lib'
14243 ;;
14244
14245 sunos4*)
14246 version_type=sunos
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14248 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14249 shlibpath_var=LD_LIBRARY_PATH
14250 shlibpath_overrides_runpath=yes
14251 if test "$with_gnu_ld" = yes; then
14252 need_lib_prefix=no
14253 fi
14254 need_version=yes
14255 ;;
14256
14257 sysv4 | sysv4.3*)
14258 version_type=linux
14259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14260 soname_spec='${libname}${release}${shared_ext}$major'
14261 shlibpath_var=LD_LIBRARY_PATH
14262 case $host_vendor in
14263 sni)
14264 shlibpath_overrides_runpath=no
14265 need_lib_prefix=no
14266 runpath_var=LD_RUN_PATH
14267 ;;
14268 siemens)
14269 need_lib_prefix=no
14270 ;;
14271 motorola)
14272 need_lib_prefix=no
14273 need_version=no
14274 shlibpath_overrides_runpath=no
14275 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14276 ;;
14277 esac
14278 ;;
14279
14280 sysv4*MP*)
14281 if test -d /usr/nec ;then
14282 version_type=linux
14283 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14284 soname_spec='$libname${shared_ext}.$major'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 fi
14287 ;;
14288
14289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14290 version_type=freebsd-elf
14291 need_lib_prefix=no
14292 need_version=no
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14294 soname_spec='${libname}${release}${shared_ext}$major'
14295 shlibpath_var=LD_LIBRARY_PATH
14296 shlibpath_overrides_runpath=yes
14297 hardcode_into_libs=yes
14298 if test "$with_gnu_ld" = yes; then
14299 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14300 else
14301 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14302 case $host_os in
14303 sco3.2v5*)
14304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14305 ;;
14306 esac
14307 fi
14308 sys_lib_dlsearch_path_spec='/usr/lib'
14309 ;;
14310
14311 tpf*)
14312 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14313 version_type=linux
14314 need_lib_prefix=no
14315 need_version=no
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317 shlibpath_var=LD_LIBRARY_PATH
14318 shlibpath_overrides_runpath=no
14319 hardcode_into_libs=yes
14320 ;;
14321
14322 uts4*)
14323 version_type=linux
14324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325 soname_spec='${libname}${release}${shared_ext}$major'
14326 shlibpath_var=LD_LIBRARY_PATH
14327 ;;
14328
14329 *)
14330 dynamic_linker=no
14331 ;;
14332 esac
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14334 $as_echo "$dynamic_linker" >&6; }
14335 test "$dynamic_linker" = no && can_build_shared=no
14336
14337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14338 if test "$GCC" = yes; then
14339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14340 fi
14341
14342 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14343 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14344 fi
14345 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14346 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14347 fi
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14387 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14388 hardcode_action_CXX=
14389 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14390 test -n "$runpath_var_CXX" ||
14391 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14392
14393 # We can hardcode non-existent directories.
14394 if test "$hardcode_direct_CXX" != no &&
14395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14396 # have to relink, otherwise we might link with an installed library
14397 # when we should be linking with a yet-to-be-installed one
14398 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14399 test "$hardcode_minus_L_CXX" != no; then
14400 # Linking always hardcodes the temporary library directory.
14401 hardcode_action_CXX=relink
14402 else
14403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14404 hardcode_action_CXX=immediate
14405 fi
14406 else
14407 # We cannot hardcode anything, or else we can only hardcode existing
14408 # directories.
14409 hardcode_action_CXX=unsupported
14410 fi
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14412 $as_echo "$hardcode_action_CXX" >&6; }
14413
14414 if test "$hardcode_action_CXX" = relink ||
14415 test "$inherit_rpath_CXX" = yes; then
14416 # Fast installation is not supported
14417 enable_fast_install=no
14418 elif test "$shlibpath_overrides_runpath" = yes ||
14419 test "$enable_shared" = no; then
14420 # Fast installation is not necessary
14421 enable_fast_install=needless
14422 fi
14423
14424
14425
14426
14427
14428
14429
14430 fi # test -n "$compiler"
14431
14432 CC=$lt_save_CC
14433 LDCXX=$LD
14434 LD=$lt_save_LD
14435 GCC=$lt_save_GCC
14436 with_gnu_ld=$lt_save_with_gnu_ld
14437 lt_cv_path_LDCXX=$lt_cv_path_LD
14438 lt_cv_path_LD=$lt_save_path_LD
14439 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14440 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14441 fi # test "$_lt_caught_CXX_error" != yes
14442
14443 ac_ext=c
14444 ac_cpp='$CPP $CPPFLAGS'
14445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461 ac_config_commands="$ac_config_commands libtool"
14462
14463
14464
14465
14466 # Only expand once:
14467
14468
14469
14470
14471
14472
14473 # The cast to long int works around a bug in the HP C Compiler
14474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14476 # This bug is HP SR number 8606223364.
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14478 $as_echo_n "checking size of void *... " >&6; }
14479 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14483
14484 else
14485 if test "$ac_cv_type_void_p" = yes; then
14486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14488 { as_fn_set_status 77
14489 as_fn_error "cannot compute sizeof (void *)
14490 See \`config.log' for more details." "$LINENO" 5; }; }
14491 else
14492 ac_cv_sizeof_void_p=0
14493 fi
14494 fi
14495
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14498 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14499
14500
14501
14502 cat >>confdefs.h <<_ACEOF
14503 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14504 _ACEOF
14505
14506
14507
14508 if test "${multilib}" = "yes"; then
14509 multilib_arg="--enable-multilib"
14510 else
14511 multilib_arg=
14512 fi
14513
14514 # Get target configury.
14515 unset TSAN_SUPPORTED
14516 . ${srcdir}/configure.tgt
14517 if test "x$TSAN_SUPPORTED" = "xyes"; then
14518 TSAN_SUPPORTED_TRUE=
14519 TSAN_SUPPORTED_FALSE='#'
14520 else
14521 TSAN_SUPPORTED_TRUE='#'
14522 TSAN_SUPPORTED_FALSE=
14523 fi
14524
14525
14526 case "$host" in
14527 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
14528 *) MAC_INTERPOSE=false ;;
14529 esac
14530 if $MAC_INTERPOSE; then
14531 USING_MAC_INTERPOSE_TRUE=
14532 USING_MAC_INTERPOSE_FALSE='#'
14533 else
14534 USING_MAC_INTERPOSE_TRUE='#'
14535 USING_MAC_INTERPOSE_FALSE=
14536 fi
14537
14538
14539 ac_config_files="$ac_config_files Makefile"
14540
14541
14542 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile asan/Makefile"
14543
14544
14545 if test "x$TSAN_SUPPORTED" = "xyes"; then
14546 ac_config_files="$ac_config_files tsan/Makefile"
14547
14548 fi
14549
14550 cat >confcache <<\_ACEOF
14551 # This file is a shell script that caches the results of configure
14552 # tests run on this system so they can be shared between configure
14553 # scripts and configure runs, see configure's option --config-cache.
14554 # It is not useful on other systems. If it contains results you don't
14555 # want to keep, you may remove or edit it.
14556 #
14557 # config.status only pays attention to the cache file if you give it
14558 # the --recheck option to rerun configure.
14559 #
14560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14562 # following values.
14563
14564 _ACEOF
14565
14566 # The following way of writing the cache mishandles newlines in values,
14567 # but we know of no workaround that is simple, portable, and efficient.
14568 # So, we kill variables containing newlines.
14569 # Ultrix sh set writes to stderr and can't be redirected directly,
14570 # and sets the high bit in the cache file unless we assign to the vars.
14571 (
14572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14573 eval ac_val=\$$ac_var
14574 case $ac_val in #(
14575 *${as_nl}*)
14576 case $ac_var in #(
14577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14579 esac
14580 case $ac_var in #(
14581 _ | IFS | as_nl) ;; #(
14582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14583 *) { eval $ac_var=; unset $ac_var;} ;;
14584 esac ;;
14585 esac
14586 done
14587
14588 (set) 2>&1 |
14589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14590 *${as_nl}ac_space=\ *)
14591 # `set' does not quote correctly, so add quotes: double-quote
14592 # substitution turns \\\\ into \\, and sed turns \\ into \.
14593 sed -n \
14594 "s/'/'\\\\''/g;
14595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14596 ;; #(
14597 *)
14598 # `set' quotes correctly as required by POSIX, so do not add quotes.
14599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14600 ;;
14601 esac |
14602 sort
14603 ) |
14604 sed '
14605 /^ac_cv_env_/b end
14606 t clear
14607 :clear
14608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14609 t end
14610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14611 :end' >>confcache
14612 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14613 if test -w "$cache_file"; then
14614 test "x$cache_file" != "x/dev/null" &&
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14616 $as_echo "$as_me: updating cache $cache_file" >&6;}
14617 cat confcache >$cache_file
14618 else
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14620 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14621 fi
14622 fi
14623 rm -f confcache
14624
14625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14626 # Let make expand exec_prefix.
14627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14628
14629 # Transform confdefs.h into DEFS.
14630 # Protect against shell expansion while executing Makefile rules.
14631 # Protect against Makefile macro expansion.
14632 #
14633 # If the first sed substitution is executed (which looks for macros that
14634 # take arguments), then branch to the quote section. Otherwise,
14635 # look for a macro that doesn't take arguments.
14636 ac_script='
14637 :mline
14638 /\\$/{
14639 N
14640 s,\\\n,,
14641 b mline
14642 }
14643 t clear
14644 :clear
14645 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14646 t quote
14647 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14648 t quote
14649 b any
14650 :quote
14651 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14652 s/\[/\\&/g
14653 s/\]/\\&/g
14654 s/\$/$$/g
14655 H
14656 :any
14657 ${
14658 g
14659 s/^\n//
14660 s/\n/ /g
14661 p
14662 }
14663 '
14664 DEFS=`sed -n "$ac_script" confdefs.h`
14665
14666
14667 ac_libobjs=
14668 ac_ltlibobjs=
14669 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14670 # 1. Remove the extension, and $U if already installed.
14671 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14672 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14673 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14674 # will be set to the directory where LIBOBJS objects are built.
14675 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14676 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14677 done
14678 LIBOBJS=$ac_libobjs
14679
14680 LTLIBOBJS=$ac_ltlibobjs
14681
14682
14683 if test -n "$EXEEXT"; then
14684 am__EXEEXT_TRUE=
14685 am__EXEEXT_FALSE='#'
14686 else
14687 am__EXEEXT_TRUE='#'
14688 am__EXEEXT_FALSE=
14689 fi
14690
14691 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14692 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14694 fi
14695 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14696 as_fn_error "conditional \"AMDEP\" was never defined.
14697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14698 fi
14699 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14700 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14702 fi
14703 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14704 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14706 fi
14707 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14708 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
14709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14710 fi
14711 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
14712 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
14713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14714 fi
14715 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
14716 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
14717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14718 fi
14719
14720 : ${CONFIG_STATUS=./config.status}
14721 ac_write_fail=0
14722 ac_clean_files_save=$ac_clean_files
14723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14725 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14726 as_write_fail=0
14727 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14728 #! $SHELL
14729 # Generated by $as_me.
14730 # Run this file to recreate the current configuration.
14731 # Compiler output produced by configure, useful for debugging
14732 # configure, is in config.log if it exists.
14733
14734 debug=false
14735 ac_cs_recheck=false
14736 ac_cs_silent=false
14737
14738 SHELL=\${CONFIG_SHELL-$SHELL}
14739 export SHELL
14740 _ASEOF
14741 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14742 ## -------------------- ##
14743 ## M4sh Initialization. ##
14744 ## -------------------- ##
14745
14746 # Be more Bourne compatible
14747 DUALCASE=1; export DUALCASE # for MKS sh
14748 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14749 emulate sh
14750 NULLCMD=:
14751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14752 # is contrary to our usage. Disable this feature.
14753 alias -g '${1+"$@"}'='"$@"'
14754 setopt NO_GLOB_SUBST
14755 else
14756 case `(set -o) 2>/dev/null` in #(
14757 *posix*) :
14758 set -o posix ;; #(
14759 *) :
14760 ;;
14761 esac
14762 fi
14763
14764
14765 as_nl='
14766 '
14767 export as_nl
14768 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14769 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14770 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14772 # Prefer a ksh shell builtin over an external printf program on Solaris,
14773 # but without wasting forks for bash or zsh.
14774 if test -z "$BASH_VERSION$ZSH_VERSION" \
14775 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14776 as_echo='print -r --'
14777 as_echo_n='print -rn --'
14778 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14779 as_echo='printf %s\n'
14780 as_echo_n='printf %s'
14781 else
14782 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14783 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14784 as_echo_n='/usr/ucb/echo -n'
14785 else
14786 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14787 as_echo_n_body='eval
14788 arg=$1;
14789 case $arg in #(
14790 *"$as_nl"*)
14791 expr "X$arg" : "X\\(.*\\)$as_nl";
14792 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14793 esac;
14794 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14795 '
14796 export as_echo_n_body
14797 as_echo_n='sh -c $as_echo_n_body as_echo'
14798 fi
14799 export as_echo_body
14800 as_echo='sh -c $as_echo_body as_echo'
14801 fi
14802
14803 # The user is always right.
14804 if test "${PATH_SEPARATOR+set}" != set; then
14805 PATH_SEPARATOR=:
14806 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14807 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14808 PATH_SEPARATOR=';'
14809 }
14810 fi
14811
14812
14813 # IFS
14814 # We need space, tab and new line, in precisely that order. Quoting is
14815 # there to prevent editors from complaining about space-tab.
14816 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14817 # splitting by setting IFS to empty value.)
14818 IFS=" "" $as_nl"
14819
14820 # Find who we are. Look in the path if we contain no directory separator.
14821 case $0 in #((
14822 *[\\/]* ) as_myself=$0 ;;
14823 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14824 for as_dir in $PATH
14825 do
14826 IFS=$as_save_IFS
14827 test -z "$as_dir" && as_dir=.
14828 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14829 done
14830 IFS=$as_save_IFS
14831
14832 ;;
14833 esac
14834 # We did not find ourselves, most probably we were run as `sh COMMAND'
14835 # in which case we are not to be found in the path.
14836 if test "x$as_myself" = x; then
14837 as_myself=$0
14838 fi
14839 if test ! -f "$as_myself"; then
14840 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14841 exit 1
14842 fi
14843
14844 # Unset variables that we do not need and which cause bugs (e.g. in
14845 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14846 # suppresses any "Segmentation fault" message there. '((' could
14847 # trigger a bug in pdksh 5.2.14.
14848 for as_var in BASH_ENV ENV MAIL MAILPATH
14849 do eval test x\${$as_var+set} = xset \
14850 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14851 done
14852 PS1='$ '
14853 PS2='> '
14854 PS4='+ '
14855
14856 # NLS nuisances.
14857 LC_ALL=C
14858 export LC_ALL
14859 LANGUAGE=C
14860 export LANGUAGE
14861
14862 # CDPATH.
14863 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14864
14865
14866 # as_fn_error ERROR [LINENO LOG_FD]
14867 # ---------------------------------
14868 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14869 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14870 # script with status $?, using 1 if that was 0.
14871 as_fn_error ()
14872 {
14873 as_status=$?; test $as_status -eq 0 && as_status=1
14874 if test "$3"; then
14875 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14876 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14877 fi
14878 $as_echo "$as_me: error: $1" >&2
14879 as_fn_exit $as_status
14880 } # as_fn_error
14881
14882
14883 # as_fn_set_status STATUS
14884 # -----------------------
14885 # Set $? to STATUS, without forking.
14886 as_fn_set_status ()
14887 {
14888 return $1
14889 } # as_fn_set_status
14890
14891 # as_fn_exit STATUS
14892 # -----------------
14893 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14894 as_fn_exit ()
14895 {
14896 set +e
14897 as_fn_set_status $1
14898 exit $1
14899 } # as_fn_exit
14900
14901 # as_fn_unset VAR
14902 # ---------------
14903 # Portably unset VAR.
14904 as_fn_unset ()
14905 {
14906 { eval $1=; unset $1;}
14907 }
14908 as_unset=as_fn_unset
14909 # as_fn_append VAR VALUE
14910 # ----------------------
14911 # Append the text in VALUE to the end of the definition contained in VAR. Take
14912 # advantage of any shell optimizations that allow amortized linear growth over
14913 # repeated appends, instead of the typical quadratic growth present in naive
14914 # implementations.
14915 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14916 eval 'as_fn_append ()
14917 {
14918 eval $1+=\$2
14919 }'
14920 else
14921 as_fn_append ()
14922 {
14923 eval $1=\$$1\$2
14924 }
14925 fi # as_fn_append
14926
14927 # as_fn_arith ARG...
14928 # ------------------
14929 # Perform arithmetic evaluation on the ARGs, and store the result in the
14930 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14931 # must be portable across $(()) and expr.
14932 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14933 eval 'as_fn_arith ()
14934 {
14935 as_val=$(( $* ))
14936 }'
14937 else
14938 as_fn_arith ()
14939 {
14940 as_val=`expr "$@" || test $? -eq 1`
14941 }
14942 fi # as_fn_arith
14943
14944
14945 if expr a : '\(a\)' >/dev/null 2>&1 &&
14946 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14947 as_expr=expr
14948 else
14949 as_expr=false
14950 fi
14951
14952 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14953 as_basename=basename
14954 else
14955 as_basename=false
14956 fi
14957
14958 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14959 as_dirname=dirname
14960 else
14961 as_dirname=false
14962 fi
14963
14964 as_me=`$as_basename -- "$0" ||
14965 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14966 X"$0" : 'X\(//\)$' \| \
14967 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14968 $as_echo X/"$0" |
14969 sed '/^.*\/\([^/][^/]*\)\/*$/{
14970 s//\1/
14971 q
14972 }
14973 /^X\/\(\/\/\)$/{
14974 s//\1/
14975 q
14976 }
14977 /^X\/\(\/\).*/{
14978 s//\1/
14979 q
14980 }
14981 s/.*/./; q'`
14982
14983 # Avoid depending upon Character Ranges.
14984 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14985 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14986 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14987 as_cr_digits='0123456789'
14988 as_cr_alnum=$as_cr_Letters$as_cr_digits
14989
14990 ECHO_C= ECHO_N= ECHO_T=
14991 case `echo -n x` in #(((((
14992 -n*)
14993 case `echo 'xy\c'` in
14994 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14995 xy) ECHO_C='\c';;
14996 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14997 ECHO_T=' ';;
14998 esac;;
14999 *)
15000 ECHO_N='-n';;
15001 esac
15002
15003 rm -f conf$$ conf$$.exe conf$$.file
15004 if test -d conf$$.dir; then
15005 rm -f conf$$.dir/conf$$.file
15006 else
15007 rm -f conf$$.dir
15008 mkdir conf$$.dir 2>/dev/null
15009 fi
15010 if (echo >conf$$.file) 2>/dev/null; then
15011 if ln -s conf$$.file conf$$ 2>/dev/null; then
15012 as_ln_s='ln -s'
15013 # ... but there are two gotchas:
15014 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15015 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15016 # In both cases, we have to default to `cp -p'.
15017 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15018 as_ln_s='cp -p'
15019 elif ln conf$$.file conf$$ 2>/dev/null; then
15020 as_ln_s=ln
15021 else
15022 as_ln_s='cp -p'
15023 fi
15024 else
15025 as_ln_s='cp -p'
15026 fi
15027 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15028 rmdir conf$$.dir 2>/dev/null
15029
15030
15031 # as_fn_mkdir_p
15032 # -------------
15033 # Create "$as_dir" as a directory, including parents if necessary.
15034 as_fn_mkdir_p ()
15035 {
15036
15037 case $as_dir in #(
15038 -*) as_dir=./$as_dir;;
15039 esac
15040 test -d "$as_dir" || eval $as_mkdir_p || {
15041 as_dirs=
15042 while :; do
15043 case $as_dir in #(
15044 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15045 *) as_qdir=$as_dir;;
15046 esac
15047 as_dirs="'$as_qdir' $as_dirs"
15048 as_dir=`$as_dirname -- "$as_dir" ||
15049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15050 X"$as_dir" : 'X\(//\)[^/]' \| \
15051 X"$as_dir" : 'X\(//\)$' \| \
15052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15053 $as_echo X"$as_dir" |
15054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15055 s//\1/
15056 q
15057 }
15058 /^X\(\/\/\)[^/].*/{
15059 s//\1/
15060 q
15061 }
15062 /^X\(\/\/\)$/{
15063 s//\1/
15064 q
15065 }
15066 /^X\(\/\).*/{
15067 s//\1/
15068 q
15069 }
15070 s/.*/./; q'`
15071 test -d "$as_dir" && break
15072 done
15073 test -z "$as_dirs" || eval "mkdir $as_dirs"
15074 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15075
15076
15077 } # as_fn_mkdir_p
15078 if mkdir -p . 2>/dev/null; then
15079 as_mkdir_p='mkdir -p "$as_dir"'
15080 else
15081 test -d ./-p && rmdir ./-p
15082 as_mkdir_p=false
15083 fi
15084
15085 if test -x / >/dev/null 2>&1; then
15086 as_test_x='test -x'
15087 else
15088 if ls -dL / >/dev/null 2>&1; then
15089 as_ls_L_option=L
15090 else
15091 as_ls_L_option=
15092 fi
15093 as_test_x='
15094 eval sh -c '\''
15095 if test -d "$1"; then
15096 test -d "$1/.";
15097 else
15098 case $1 in #(
15099 -*)set "./$1";;
15100 esac;
15101 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15102 ???[sx]*):;;*)false;;esac;fi
15103 '\'' sh
15104 '
15105 fi
15106 as_executable_p=$as_test_x
15107
15108 # Sed expression to map a string onto a valid CPP name.
15109 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15110
15111 # Sed expression to map a string onto a valid variable name.
15112 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15113
15114
15115 exec 6>&1
15116 ## ----------------------------------- ##
15117 ## Main body of $CONFIG_STATUS script. ##
15118 ## ----------------------------------- ##
15119 _ASEOF
15120 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15121
15122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15123 # Save the log message, to keep $0 and so on meaningful, and to
15124 # report actual input values of CONFIG_FILES etc. instead of their
15125 # values after options handling.
15126 ac_log="
15127 This file was extended by package-unused $as_me version-unused, which was
15128 generated by GNU Autoconf 2.64. Invocation command line was
15129
15130 CONFIG_FILES = $CONFIG_FILES
15131 CONFIG_HEADERS = $CONFIG_HEADERS
15132 CONFIG_LINKS = $CONFIG_LINKS
15133 CONFIG_COMMANDS = $CONFIG_COMMANDS
15134 $ $0 $@
15135
15136 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15137 "
15138
15139 _ACEOF
15140
15141 case $ac_config_files in *"
15142 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15143 esac
15144
15145
15146
15147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15148 # Files that config.status was made for.
15149 config_files="$ac_config_files"
15150 config_commands="$ac_config_commands"
15151
15152 _ACEOF
15153
15154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15155 ac_cs_usage="\
15156 \`$as_me' instantiates files and other configuration actions
15157 from templates according to the current configuration. Unless the files
15158 and actions are specified as TAGs, all are instantiated by default.
15159
15160 Usage: $0 [OPTION]... [TAG]...
15161
15162 -h, --help print this help, then exit
15163 -V, --version print version number and configuration settings, then exit
15164 -q, --quiet, --silent
15165 do not print progress messages
15166 -d, --debug don't remove temporary files
15167 --recheck update $as_me by reconfiguring in the same conditions
15168 --file=FILE[:TEMPLATE]
15169 instantiate the configuration file FILE
15170
15171 Configuration files:
15172 $config_files
15173
15174 Configuration commands:
15175 $config_commands
15176
15177 Report bugs to <libsanitizer>."
15178
15179 _ACEOF
15180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15181 ac_cs_version="\\
15182 package-unused config.status version-unused
15183 configured by $0, generated by GNU Autoconf 2.64,
15184 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15185
15186 Copyright (C) 2009 Free Software Foundation, Inc.
15187 This config.status script is free software; the Free Software Foundation
15188 gives unlimited permission to copy, distribute and modify it."
15189
15190 ac_pwd='$ac_pwd'
15191 srcdir='$srcdir'
15192 INSTALL='$INSTALL'
15193 MKDIR_P='$MKDIR_P'
15194 AWK='$AWK'
15195 test -n "\$AWK" || AWK=awk
15196 _ACEOF
15197
15198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15199 # The default lists apply if the user does not specify any file.
15200 ac_need_defaults=:
15201 while test $# != 0
15202 do
15203 case $1 in
15204 --*=*)
15205 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15206 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15207 ac_shift=:
15208 ;;
15209 *)
15210 ac_option=$1
15211 ac_optarg=$2
15212 ac_shift=shift
15213 ;;
15214 esac
15215
15216 case $ac_option in
15217 # Handling of the options.
15218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15219 ac_cs_recheck=: ;;
15220 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15221 $as_echo "$ac_cs_version"; exit ;;
15222 --debug | --debu | --deb | --de | --d | -d )
15223 debug=: ;;
15224 --file | --fil | --fi | --f )
15225 $ac_shift
15226 case $ac_optarg in
15227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15228 esac
15229 as_fn_append CONFIG_FILES " '$ac_optarg'"
15230 ac_need_defaults=false;;
15231 --he | --h | --help | --hel | -h )
15232 $as_echo "$ac_cs_usage"; exit ;;
15233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15235 ac_cs_silent=: ;;
15236
15237 # This is an error.
15238 -*) as_fn_error "unrecognized option: \`$1'
15239 Try \`$0 --help' for more information." ;;
15240
15241 *) as_fn_append ac_config_targets " $1"
15242 ac_need_defaults=false ;;
15243
15244 esac
15245 shift
15246 done
15247
15248 ac_configure_extra_args=
15249
15250 if $ac_cs_silent; then
15251 exec 6>/dev/null
15252 ac_configure_extra_args="$ac_configure_extra_args --silent"
15253 fi
15254
15255 _ACEOF
15256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15257 if \$ac_cs_recheck; then
15258 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15259 shift
15260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15261 CONFIG_SHELL='$SHELL'
15262 export CONFIG_SHELL
15263 exec "\$@"
15264 fi
15265
15266 _ACEOF
15267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268 exec 5>>config.log
15269 {
15270 echo
15271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15272 ## Running $as_me. ##
15273 _ASBOX
15274 $as_echo "$ac_log"
15275 } >&5
15276
15277 _ACEOF
15278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15279 #
15280 # INIT-COMMANDS
15281 #
15282
15283 srcdir="$srcdir"
15284 host="$host"
15285 target="$target"
15286 with_multisubdir="$with_multisubdir"
15287 with_multisrctop="$with_multisrctop"
15288 with_target_subdir="$with_target_subdir"
15289 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15290 multi_basedir="$multi_basedir"
15291 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15292 CC="$CC"
15293 CXX="$CXX"
15294 GFORTRAN="$GFORTRAN"
15295 GCJ="$GCJ"
15296 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15297
15298
15299 # The HP-UX ksh and POSIX shell print the target directory to stdout
15300 # if CDPATH is set.
15301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15302
15303 sed_quote_subst='$sed_quote_subst'
15304 double_quote_subst='$double_quote_subst'
15305 delay_variable_subst='$delay_variable_subst'
15306 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15307 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15308 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15309 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15310 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15311 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15312 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15313 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15314 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15315 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15316 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15317 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15318 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15319 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15320 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15321 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15322 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15323 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15324 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15325 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15326 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15327 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15328 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15329 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15330 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15331 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15332 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15333 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15334 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15335 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15336 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15337 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15338 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15339 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15340 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15341 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15342 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15343 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15344 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15345 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15346 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15347 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15348 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15349 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15350 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15351 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15352 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15353 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15354 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15355 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15356 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15357 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15358 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15359 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15360 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15361 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15362 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15363 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15364 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15365 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15366 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15367 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15368 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15369 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15370 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15371 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15372 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15373 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15374 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15375 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15376 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15377 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15378 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15379 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15380 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15381 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15382 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15383 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15384 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15385 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15386 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15387 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15388 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15389 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15390 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15391 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15392 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15393 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15394 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15395 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15396 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15397 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15398 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15399 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15400 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15401 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15402 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15403 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15404 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15405 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15406 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15407 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15408 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15409 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15410 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15411 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15412 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15413 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15414 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15415 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15416 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15417 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15418 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15419 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15420 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15421 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15422 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15423 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15424 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15425 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15426 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15427 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15428 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15429 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15430 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15431 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15432 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15433 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15434 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15435 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15436 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15437 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15438 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15439 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15440 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15441 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15442 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15443 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15444 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15445 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15446 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15447 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15448 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15449 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15450 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15451 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15452 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15453 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15454 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15455 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15456 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15457 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15458 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15459 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15460 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15461 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15462 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15463 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15464 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15465 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15466 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15467 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15468 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15469 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15470 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15471 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15472 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15473 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15474 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15475 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15476 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15477 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15478 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15479 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15480 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15481
15482 LTCC='$LTCC'
15483 LTCFLAGS='$LTCFLAGS'
15484 compiler='$compiler_DEFAULT'
15485
15486 # A function that is used when there is no print builtin or printf.
15487 func_fallback_echo ()
15488 {
15489 eval 'cat <<_LTECHO_EOF
15490 \$1
15491 _LTECHO_EOF'
15492 }
15493
15494 # Quote evaled strings.
15495 for var in SHELL \
15496 ECHO \
15497 SED \
15498 GREP \
15499 EGREP \
15500 FGREP \
15501 LD \
15502 NM \
15503 LN_S \
15504 lt_SP2NL \
15505 lt_NL2SP \
15506 reload_flag \
15507 OBJDUMP \
15508 deplibs_check_method \
15509 file_magic_cmd \
15510 AR \
15511 AR_FLAGS \
15512 STRIP \
15513 RANLIB \
15514 CC \
15515 CFLAGS \
15516 compiler \
15517 lt_cv_sys_global_symbol_pipe \
15518 lt_cv_sys_global_symbol_to_cdecl \
15519 lt_cv_sys_global_symbol_to_c_name_address \
15520 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15521 lt_prog_compiler_no_builtin_flag \
15522 lt_prog_compiler_wl \
15523 lt_prog_compiler_pic \
15524 lt_prog_compiler_static \
15525 lt_cv_prog_compiler_c_o \
15526 need_locks \
15527 DSYMUTIL \
15528 NMEDIT \
15529 LIPO \
15530 OTOOL \
15531 OTOOL64 \
15532 shrext_cmds \
15533 export_dynamic_flag_spec \
15534 whole_archive_flag_spec \
15535 compiler_needs_object \
15536 with_gnu_ld \
15537 allow_undefined_flag \
15538 no_undefined_flag \
15539 hardcode_libdir_flag_spec \
15540 hardcode_libdir_flag_spec_ld \
15541 hardcode_libdir_separator \
15542 fix_srcfile_path \
15543 exclude_expsyms \
15544 include_expsyms \
15545 file_list_spec \
15546 variables_saved_for_relink \
15547 libname_spec \
15548 library_names_spec \
15549 soname_spec \
15550 install_override_mode \
15551 finish_eval \
15552 old_striplib \
15553 striplib \
15554 compiler_lib_search_dirs \
15555 predep_objects \
15556 postdep_objects \
15557 predeps \
15558 postdeps \
15559 compiler_lib_search_path \
15560 LD_CXX \
15561 reload_flag_CXX \
15562 compiler_CXX \
15563 lt_prog_compiler_no_builtin_flag_CXX \
15564 lt_prog_compiler_wl_CXX \
15565 lt_prog_compiler_pic_CXX \
15566 lt_prog_compiler_static_CXX \
15567 lt_cv_prog_compiler_c_o_CXX \
15568 export_dynamic_flag_spec_CXX \
15569 whole_archive_flag_spec_CXX \
15570 compiler_needs_object_CXX \
15571 with_gnu_ld_CXX \
15572 allow_undefined_flag_CXX \
15573 no_undefined_flag_CXX \
15574 hardcode_libdir_flag_spec_CXX \
15575 hardcode_libdir_flag_spec_ld_CXX \
15576 hardcode_libdir_separator_CXX \
15577 fix_srcfile_path_CXX \
15578 exclude_expsyms_CXX \
15579 include_expsyms_CXX \
15580 file_list_spec_CXX \
15581 compiler_lib_search_dirs_CXX \
15582 predep_objects_CXX \
15583 postdep_objects_CXX \
15584 predeps_CXX \
15585 postdeps_CXX \
15586 compiler_lib_search_path_CXX; do
15587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15588 *[\\\\\\\`\\"\\\$]*)
15589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15590 ;;
15591 *)
15592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15593 ;;
15594 esac
15595 done
15596
15597 # Double-quote double-evaled strings.
15598 for var in reload_cmds \
15599 old_postinstall_cmds \
15600 old_postuninstall_cmds \
15601 old_archive_cmds \
15602 extract_expsyms_cmds \
15603 old_archive_from_new_cmds \
15604 old_archive_from_expsyms_cmds \
15605 archive_cmds \
15606 archive_expsym_cmds \
15607 module_cmds \
15608 module_expsym_cmds \
15609 export_symbols_cmds \
15610 prelink_cmds \
15611 postinstall_cmds \
15612 postuninstall_cmds \
15613 finish_cmds \
15614 sys_lib_search_path_spec \
15615 sys_lib_dlsearch_path_spec \
15616 reload_cmds_CXX \
15617 old_archive_cmds_CXX \
15618 old_archive_from_new_cmds_CXX \
15619 old_archive_from_expsyms_cmds_CXX \
15620 archive_cmds_CXX \
15621 archive_expsym_cmds_CXX \
15622 module_cmds_CXX \
15623 module_expsym_cmds_CXX \
15624 export_symbols_cmds_CXX \
15625 prelink_cmds_CXX; do
15626 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15627 *[\\\\\\\`\\"\\\$]*)
15628 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15629 ;;
15630 *)
15631 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15632 ;;
15633 esac
15634 done
15635
15636 ac_aux_dir='$ac_aux_dir'
15637 xsi_shell='$xsi_shell'
15638 lt_shell_append='$lt_shell_append'
15639
15640 # See if we are running on zsh, and set the options which allow our
15641 # commands through without removal of \ escapes INIT.
15642 if test -n "\${ZSH_VERSION+set}" ; then
15643 setopt NO_GLOB_SUBST
15644 fi
15645
15646
15647 PACKAGE='$PACKAGE'
15648 VERSION='$VERSION'
15649 TIMESTAMP='$TIMESTAMP'
15650 RM='$RM'
15651 ofile='$ofile'
15652
15653
15654
15655
15656
15657
15658 _ACEOF
15659
15660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15661
15662 # Handling of arguments.
15663 for ac_config_target in $ac_config_targets
15664 do
15665 case $ac_config_target in
15666 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15667 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15668 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15669 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15670 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
15671 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
15672 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
15673 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
15674
15675 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15676 esac
15677 done
15678
15679
15680 # If the user did not use the arguments to specify the items to instantiate,
15681 # then the envvar interface is used. Set only those that are not.
15682 # We use the long form for the default assignment because of an extremely
15683 # bizarre bug on SunOS 4.1.3.
15684 if $ac_need_defaults; then
15685 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15686 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15687 fi
15688
15689 # Have a temporary directory for convenience. Make it in the build tree
15690 # simply because there is no reason against having it here, and in addition,
15691 # creating and moving files from /tmp can sometimes cause problems.
15692 # Hook for its removal unless debugging.
15693 # Note that there is a small window in which the directory will not be cleaned:
15694 # after its creation but before its name has been assigned to `$tmp'.
15695 $debug ||
15696 {
15697 tmp=
15698 trap 'exit_status=$?
15699 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15700 ' 0
15701 trap 'as_fn_exit 1' 1 2 13 15
15702 }
15703 # Create a (secure) tmp directory for tmp files.
15704
15705 {
15706 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15707 test -n "$tmp" && test -d "$tmp"
15708 } ||
15709 {
15710 tmp=./conf$$-$RANDOM
15711 (umask 077 && mkdir "$tmp")
15712 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15713
15714 # Set up the scripts for CONFIG_FILES section.
15715 # No need to generate them if there are no CONFIG_FILES.
15716 # This happens for instance with `./config.status config.h'.
15717 if test -n "$CONFIG_FILES"; then
15718
15719
15720 ac_cr=`echo X | tr X '\015'`
15721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15722 # But we know of no other shell where ac_cr would be empty at this
15723 # point, so we can use a bashism as a fallback.
15724 if test "x$ac_cr" = x; then
15725 eval ac_cr=\$\'\\r\'
15726 fi
15727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15729 ac_cs_awk_cr='\r'
15730 else
15731 ac_cs_awk_cr=$ac_cr
15732 fi
15733
15734 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15735 _ACEOF
15736
15737
15738 {
15739 echo "cat >conf$$subs.awk <<_ACEOF" &&
15740 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15741 echo "_ACEOF"
15742 } >conf$$subs.sh ||
15743 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15745 ac_delim='%!_!# '
15746 for ac_last_try in false false false false false :; do
15747 . ./conf$$subs.sh ||
15748 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15749
15750 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15751 if test $ac_delim_n = $ac_delim_num; then
15752 break
15753 elif $ac_last_try; then
15754 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15755 else
15756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15757 fi
15758 done
15759 rm -f conf$$subs.sh
15760
15761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15762 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15763 _ACEOF
15764 sed -n '
15765 h
15766 s/^/S["/; s/!.*/"]=/
15767 p
15768 g
15769 s/^[^!]*!//
15770 :repl
15771 t repl
15772 s/'"$ac_delim"'$//
15773 t delim
15774 :nl
15775 h
15776 s/\(.\{148\}\).*/\1/
15777 t more1
15778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15779 p
15780 n
15781 b repl
15782 :more1
15783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15784 p
15785 g
15786 s/.\{148\}//
15787 t nl
15788 :delim
15789 h
15790 s/\(.\{148\}\).*/\1/
15791 t more2
15792 s/["\\]/\\&/g; s/^/"/; s/$/"/
15793 p
15794 b
15795 :more2
15796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15797 p
15798 g
15799 s/.\{148\}//
15800 t delim
15801 ' <conf$$subs.awk | sed '
15802 /^[^""]/{
15803 N
15804 s/\n//
15805 }
15806 ' >>$CONFIG_STATUS || ac_write_fail=1
15807 rm -f conf$$subs.awk
15808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15809 _ACAWK
15810 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15811 for (key in S) S_is_set[key] = 1
15812 FS = "\a"
15813
15814 }
15815 {
15816 line = $ 0
15817 nfields = split(line, field, "@")
15818 substed = 0
15819 len = length(field[1])
15820 for (i = 2; i < nfields; i++) {
15821 key = field[i]
15822 keylen = length(key)
15823 if (S_is_set[key]) {
15824 value = S[key]
15825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15826 len += length(value) + length(field[++i])
15827 substed = 1
15828 } else
15829 len += 1 + keylen
15830 }
15831
15832 print line
15833 }
15834
15835 _ACAWK
15836 _ACEOF
15837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15839 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15840 else
15841 cat
15842 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15843 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15844 _ACEOF
15845
15846 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15847 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15848 # trailing colons and then remove the whole line if VPATH becomes empty
15849 # (actually we leave an empty line to preserve line numbers).
15850 if test "x$srcdir" = x.; then
15851 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15852 s/:*\$(srcdir):*/:/
15853 s/:*\${srcdir}:*/:/
15854 s/:*@srcdir@:*/:/
15855 s/^\([^=]*=[ ]*\):*/\1/
15856 s/:*$//
15857 s/^[^=]*=[ ]*$//
15858 }'
15859 fi
15860
15861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15862 fi # test -n "$CONFIG_FILES"
15863
15864
15865 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15866 shift
15867 for ac_tag
15868 do
15869 case $ac_tag in
15870 :[FHLC]) ac_mode=$ac_tag; continue;;
15871 esac
15872 case $ac_mode$ac_tag in
15873 :[FHL]*:*);;
15874 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15875 :[FH]-) ac_tag=-:-;;
15876 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15877 esac
15878 ac_save_IFS=$IFS
15879 IFS=:
15880 set x $ac_tag
15881 IFS=$ac_save_IFS
15882 shift
15883 ac_file=$1
15884 shift
15885
15886 case $ac_mode in
15887 :L) ac_source=$1;;
15888 :[FH])
15889 ac_file_inputs=
15890 for ac_f
15891 do
15892 case $ac_f in
15893 -) ac_f="$tmp/stdin";;
15894 *) # Look for the file first in the build tree, then in the source tree
15895 # (if the path is not absolute). The absolute path cannot be DOS-style,
15896 # because $ac_f cannot contain `:'.
15897 test -f "$ac_f" ||
15898 case $ac_f in
15899 [\\/$]*) false;;
15900 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15901 esac ||
15902 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15903 esac
15904 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15905 as_fn_append ac_file_inputs " '$ac_f'"
15906 done
15907
15908 # Let's still pretend it is `configure' which instantiates (i.e., don't
15909 # use $as_me), people would be surprised to read:
15910 # /* config.h. Generated by config.status. */
15911 configure_input='Generated from '`
15912 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15913 `' by configure.'
15914 if test x"$ac_file" != x-; then
15915 configure_input="$ac_file. $configure_input"
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15917 $as_echo "$as_me: creating $ac_file" >&6;}
15918 fi
15919 # Neutralize special characters interpreted by sed in replacement strings.
15920 case $configure_input in #(
15921 *\&* | *\|* | *\\* )
15922 ac_sed_conf_input=`$as_echo "$configure_input" |
15923 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15924 *) ac_sed_conf_input=$configure_input;;
15925 esac
15926
15927 case $ac_tag in
15928 *:-:* | *:-) cat >"$tmp/stdin" \
15929 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15930 esac
15931 ;;
15932 esac
15933
15934 ac_dir=`$as_dirname -- "$ac_file" ||
15935 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15936 X"$ac_file" : 'X\(//\)[^/]' \| \
15937 X"$ac_file" : 'X\(//\)$' \| \
15938 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15939 $as_echo X"$ac_file" |
15940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15941 s//\1/
15942 q
15943 }
15944 /^X\(\/\/\)[^/].*/{
15945 s//\1/
15946 q
15947 }
15948 /^X\(\/\/\)$/{
15949 s//\1/
15950 q
15951 }
15952 /^X\(\/\).*/{
15953 s//\1/
15954 q
15955 }
15956 s/.*/./; q'`
15957 as_dir="$ac_dir"; as_fn_mkdir_p
15958 ac_builddir=.
15959
15960 case "$ac_dir" in
15961 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15962 *)
15963 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15964 # A ".." for each directory in $ac_dir_suffix.
15965 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15966 case $ac_top_builddir_sub in
15967 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15968 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15969 esac ;;
15970 esac
15971 ac_abs_top_builddir=$ac_pwd
15972 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15973 # for backward compatibility:
15974 ac_top_builddir=$ac_top_build_prefix
15975
15976 case $srcdir in
15977 .) # We are building in place.
15978 ac_srcdir=.
15979 ac_top_srcdir=$ac_top_builddir_sub
15980 ac_abs_top_srcdir=$ac_pwd ;;
15981 [\\/]* | ?:[\\/]* ) # Absolute name.
15982 ac_srcdir=$srcdir$ac_dir_suffix;
15983 ac_top_srcdir=$srcdir
15984 ac_abs_top_srcdir=$srcdir ;;
15985 *) # Relative name.
15986 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15987 ac_top_srcdir=$ac_top_build_prefix$srcdir
15988 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15989 esac
15990 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15991
15992
15993 case $ac_mode in
15994 :F)
15995 #
15996 # CONFIG_FILE
15997 #
15998
15999 case $INSTALL in
16000 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16001 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16002 esac
16003 ac_MKDIR_P=$MKDIR_P
16004 case $MKDIR_P in
16005 [\\/$]* | ?:[\\/]* ) ;;
16006 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16007 esac
16008 _ACEOF
16009
16010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16011 # If the template does not know about datarootdir, expand it.
16012 # FIXME: This hack should be removed a few years after 2.60.
16013 ac_datarootdir_hack=; ac_datarootdir_seen=
16014 ac_sed_dataroot='
16015 /datarootdir/ {
16016 p
16017 q
16018 }
16019 /@datadir@/p
16020 /@docdir@/p
16021 /@infodir@/p
16022 /@localedir@/p
16023 /@mandir@/p'
16024 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16025 *datarootdir*) ac_datarootdir_seen=yes;;
16026 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16028 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16029 _ACEOF
16030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16031 ac_datarootdir_hack='
16032 s&@datadir@&$datadir&g
16033 s&@docdir@&$docdir&g
16034 s&@infodir@&$infodir&g
16035 s&@localedir@&$localedir&g
16036 s&@mandir@&$mandir&g
16037 s&\\\${datarootdir}&$datarootdir&g' ;;
16038 esac
16039 _ACEOF
16040
16041 # Neutralize VPATH when `$srcdir' = `.'.
16042 # Shell code in configure.ac might set extrasub.
16043 # FIXME: do we really want to maintain this feature?
16044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045 ac_sed_extra="$ac_vpsub
16046 $extrasub
16047 _ACEOF
16048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16049 :t
16050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16051 s|@configure_input@|$ac_sed_conf_input|;t t
16052 s&@top_builddir@&$ac_top_builddir_sub&;t t
16053 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16054 s&@srcdir@&$ac_srcdir&;t t
16055 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16056 s&@top_srcdir@&$ac_top_srcdir&;t t
16057 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16058 s&@builddir@&$ac_builddir&;t t
16059 s&@abs_builddir@&$ac_abs_builddir&;t t
16060 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16061 s&@INSTALL@&$ac_INSTALL&;t t
16062 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16063 $ac_datarootdir_hack
16064 "
16065 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16066 || as_fn_error "could not create $ac_file" "$LINENO" 5
16067
16068 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16069 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16072 which seems to be undefined. Please make sure it is defined." >&5
16073 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16074 which seems to be undefined. Please make sure it is defined." >&2;}
16075
16076 rm -f "$tmp/stdin"
16077 case $ac_file in
16078 -) cat "$tmp/out" && rm -f "$tmp/out";;
16079 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16080 esac \
16081 || as_fn_error "could not create $ac_file" "$LINENO" 5
16082 ;;
16083
16084
16085 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16086 $as_echo "$as_me: executing $ac_file commands" >&6;}
16087 ;;
16088 esac
16089
16090
16091 case $ac_file$ac_mode in
16092 "default-1":C)
16093 # Only add multilib support code if we just rebuilt the top-level
16094 # Makefile.
16095 case " $CONFIG_FILES " in
16096 *" Makefile "*)
16097 ac_file=Makefile . ${multi_basedir}/config-ml.in
16098 ;;
16099 esac ;;
16100 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16101 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16102 # are listed without --file. Let's play safe and only enable the eval
16103 # if we detect the quoting.
16104 case $CONFIG_FILES in
16105 *\'*) eval set x "$CONFIG_FILES" ;;
16106 *) set x $CONFIG_FILES ;;
16107 esac
16108 shift
16109 for mf
16110 do
16111 # Strip MF so we end up with the name of the file.
16112 mf=`echo "$mf" | sed -e 's/:.*$//'`
16113 # Check whether this is an Automake generated Makefile or not.
16114 # We used to match only the files named `Makefile.in', but
16115 # some people rename them; so instead we look at the file content.
16116 # Grep'ing the first line is not enough: some people post-process
16117 # each Makefile.in and add a new line on top of each file to say so.
16118 # Grep'ing the whole file is not good either: AIX grep has a line
16119 # limit of 2048, but all sed's we know have understand at least 4000.
16120 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16121 dirpart=`$as_dirname -- "$mf" ||
16122 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16123 X"$mf" : 'X\(//\)[^/]' \| \
16124 X"$mf" : 'X\(//\)$' \| \
16125 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16126 $as_echo X"$mf" |
16127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16128 s//\1/
16129 q
16130 }
16131 /^X\(\/\/\)[^/].*/{
16132 s//\1/
16133 q
16134 }
16135 /^X\(\/\/\)$/{
16136 s//\1/
16137 q
16138 }
16139 /^X\(\/\).*/{
16140 s//\1/
16141 q
16142 }
16143 s/.*/./; q'`
16144 else
16145 continue
16146 fi
16147 # Extract the definition of DEPDIR, am__include, and am__quote
16148 # from the Makefile without running `make'.
16149 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16150 test -z "$DEPDIR" && continue
16151 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16152 test -z "am__include" && continue
16153 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16154 # When using ansi2knr, U may be empty or an underscore; expand it
16155 U=`sed -n 's/^U = //p' < "$mf"`
16156 # Find all dependency output files, they are included files with
16157 # $(DEPDIR) in their names. We invoke sed twice because it is the
16158 # simplest approach to changing $(DEPDIR) to its actual value in the
16159 # expansion.
16160 for file in `sed -n "
16161 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16162 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16163 # Make sure the directory exists.
16164 test -f "$dirpart/$file" && continue
16165 fdir=`$as_dirname -- "$file" ||
16166 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16167 X"$file" : 'X\(//\)[^/]' \| \
16168 X"$file" : 'X\(//\)$' \| \
16169 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16170 $as_echo X"$file" |
16171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16172 s//\1/
16173 q
16174 }
16175 /^X\(\/\/\)[^/].*/{
16176 s//\1/
16177 q
16178 }
16179 /^X\(\/\/\)$/{
16180 s//\1/
16181 q
16182 }
16183 /^X\(\/\).*/{
16184 s//\1/
16185 q
16186 }
16187 s/.*/./; q'`
16188 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16189 # echo "creating $dirpart/$file"
16190 echo '# dummy' > "$dirpart/$file"
16191 done
16192 done
16193 }
16194 ;;
16195 "libtool":C)
16196
16197 # See if we are running on zsh, and set the options which allow our
16198 # commands through without removal of \ escapes.
16199 if test -n "${ZSH_VERSION+set}" ; then
16200 setopt NO_GLOB_SUBST
16201 fi
16202
16203 cfgfile="${ofile}T"
16204 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16205 $RM "$cfgfile"
16206
16207 cat <<_LT_EOF >> "$cfgfile"
16208 #! $SHELL
16209
16210 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16211 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16212 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16213 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16214 #
16215 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16216 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16217 # Written by Gordon Matzigkeit, 1996
16218 #
16219 # This file is part of GNU Libtool.
16220 #
16221 # GNU Libtool is free software; you can redistribute it and/or
16222 # modify it under the terms of the GNU General Public License as
16223 # published by the Free Software Foundation; either version 2 of
16224 # the License, or (at your option) any later version.
16225 #
16226 # As a special exception to the GNU General Public License,
16227 # if you distribute this file as part of a program or library that
16228 # is built using GNU Libtool, you may include this file under the
16229 # same distribution terms that you use for the rest of that program.
16230 #
16231 # GNU Libtool is distributed in the hope that it will be useful,
16232 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16233 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16234 # GNU General Public License for more details.
16235 #
16236 # You should have received a copy of the GNU General Public License
16237 # along with GNU Libtool; see the file COPYING. If not, a copy
16238 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16239 # obtained by writing to the Free Software Foundation, Inc.,
16240 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16241
16242
16243 # The names of the tagged configurations supported by this script.
16244 available_tags="CXX "
16245
16246 # ### BEGIN LIBTOOL CONFIG
16247
16248 # Which release of libtool.m4 was used?
16249 macro_version=$macro_version
16250 macro_revision=$macro_revision
16251
16252 # Whether or not to build shared libraries.
16253 build_libtool_libs=$enable_shared
16254
16255 # Whether or not to build static libraries.
16256 build_old_libs=$enable_static
16257
16258 # What type of objects to build.
16259 pic_mode=$pic_mode
16260
16261 # Whether or not to optimize for fast installation.
16262 fast_install=$enable_fast_install
16263
16264 # Shell to use when invoking shell scripts.
16265 SHELL=$lt_SHELL
16266
16267 # An echo program that protects backslashes.
16268 ECHO=$lt_ECHO
16269
16270 # The host system.
16271 host_alias=$host_alias
16272 host=$host
16273 host_os=$host_os
16274
16275 # The build system.
16276 build_alias=$build_alias
16277 build=$build
16278 build_os=$build_os
16279
16280 # A sed program that does not truncate output.
16281 SED=$lt_SED
16282
16283 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16284 Xsed="\$SED -e 1s/^X//"
16285
16286 # A grep program that handles long lines.
16287 GREP=$lt_GREP
16288
16289 # An ERE matcher.
16290 EGREP=$lt_EGREP
16291
16292 # A literal string matcher.
16293 FGREP=$lt_FGREP
16294
16295 # A BSD- or MS-compatible name lister.
16296 NM=$lt_NM
16297
16298 # Whether we need soft or hard links.
16299 LN_S=$lt_LN_S
16300
16301 # What is the maximum length of a command?
16302 max_cmd_len=$max_cmd_len
16303
16304 # Object file suffix (normally "o").
16305 objext=$ac_objext
16306
16307 # Executable file suffix (normally "").
16308 exeext=$exeext
16309
16310 # whether the shell understands "unset".
16311 lt_unset=$lt_unset
16312
16313 # turn spaces into newlines.
16314 SP2NL=$lt_lt_SP2NL
16315
16316 # turn newlines into spaces.
16317 NL2SP=$lt_lt_NL2SP
16318
16319 # An object symbol dumper.
16320 OBJDUMP=$lt_OBJDUMP
16321
16322 # Method to check whether dependent libraries are shared objects.
16323 deplibs_check_method=$lt_deplibs_check_method
16324
16325 # Command to use when deplibs_check_method == "file_magic".
16326 file_magic_cmd=$lt_file_magic_cmd
16327
16328 # The archiver.
16329 AR=$lt_AR
16330 AR_FLAGS=$lt_AR_FLAGS
16331
16332 # A symbol stripping program.
16333 STRIP=$lt_STRIP
16334
16335 # Commands used to install an old-style archive.
16336 RANLIB=$lt_RANLIB
16337 old_postinstall_cmds=$lt_old_postinstall_cmds
16338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16339
16340 # Whether to use a lock for old archive extraction.
16341 lock_old_archive_extraction=$lock_old_archive_extraction
16342
16343 # A C compiler.
16344 LTCC=$lt_CC
16345
16346 # LTCC compiler flags.
16347 LTCFLAGS=$lt_CFLAGS
16348
16349 # Take the output of nm and produce a listing of raw symbols and C names.
16350 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16351
16352 # Transform the output of nm in a proper C declaration.
16353 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16354
16355 # Transform the output of nm in a C name address pair.
16356 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16357
16358 # Transform the output of nm in a C name address pair when lib prefix is needed.
16359 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16360
16361 # The name of the directory that contains temporary libtool files.
16362 objdir=$objdir
16363
16364 # Used to examine libraries when file_magic_cmd begins with "file".
16365 MAGIC_CMD=$MAGIC_CMD
16366
16367 # Must we lock files when doing compilation?
16368 need_locks=$lt_need_locks
16369
16370 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16371 DSYMUTIL=$lt_DSYMUTIL
16372
16373 # Tool to change global to local symbols on Mac OS X.
16374 NMEDIT=$lt_NMEDIT
16375
16376 # Tool to manipulate fat objects and archives on Mac OS X.
16377 LIPO=$lt_LIPO
16378
16379 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16380 OTOOL=$lt_OTOOL
16381
16382 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16383 OTOOL64=$lt_OTOOL64
16384
16385 # Old archive suffix (normally "a").
16386 libext=$libext
16387
16388 # Shared library suffix (normally ".so").
16389 shrext_cmds=$lt_shrext_cmds
16390
16391 # The commands to extract the exported symbol list from a shared archive.
16392 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16393
16394 # Variables whose values should be saved in libtool wrapper scripts and
16395 # restored at link time.
16396 variables_saved_for_relink=$lt_variables_saved_for_relink
16397
16398 # Do we need the "lib" prefix for modules?
16399 need_lib_prefix=$need_lib_prefix
16400
16401 # Do we need a version for libraries?
16402 need_version=$need_version
16403
16404 # Library versioning type.
16405 version_type=$version_type
16406
16407 # Shared library runtime path variable.
16408 runpath_var=$runpath_var
16409
16410 # Shared library path variable.
16411 shlibpath_var=$shlibpath_var
16412
16413 # Is shlibpath searched before the hard-coded library search path?
16414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16415
16416 # Format of library name prefix.
16417 libname_spec=$lt_libname_spec
16418
16419 # List of archive names. First name is the real one, the rest are links.
16420 # The last name is the one that the linker finds with -lNAME
16421 library_names_spec=$lt_library_names_spec
16422
16423 # The coded name of the library, if different from the real name.
16424 soname_spec=$lt_soname_spec
16425
16426 # Permission mode override for installation of shared libraries.
16427 install_override_mode=$lt_install_override_mode
16428
16429 # Command to use after installation of a shared archive.
16430 postinstall_cmds=$lt_postinstall_cmds
16431
16432 # Command to use after uninstallation of a shared archive.
16433 postuninstall_cmds=$lt_postuninstall_cmds
16434
16435 # Commands used to finish a libtool library installation in a directory.
16436 finish_cmds=$lt_finish_cmds
16437
16438 # As "finish_cmds", except a single script fragment to be evaled but
16439 # not shown.
16440 finish_eval=$lt_finish_eval
16441
16442 # Whether we should hardcode library paths into libraries.
16443 hardcode_into_libs=$hardcode_into_libs
16444
16445 # Compile-time system search path for libraries.
16446 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16447
16448 # Run-time system search path for libraries.
16449 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16450
16451 # Whether dlopen is supported.
16452 dlopen_support=$enable_dlopen
16453
16454 # Whether dlopen of programs is supported.
16455 dlopen_self=$enable_dlopen_self
16456
16457 # Whether dlopen of statically linked programs is supported.
16458 dlopen_self_static=$enable_dlopen_self_static
16459
16460 # Commands to strip libraries.
16461 old_striplib=$lt_old_striplib
16462 striplib=$lt_striplib
16463
16464
16465 # The linker used to build libraries.
16466 LD=$lt_LD
16467
16468 # How to create reloadable object files.
16469 reload_flag=$lt_reload_flag
16470 reload_cmds=$lt_reload_cmds
16471
16472 # Commands used to build an old-style archive.
16473 old_archive_cmds=$lt_old_archive_cmds
16474
16475 # A language specific compiler.
16476 CC=$lt_compiler
16477
16478 # Is the compiler the GNU compiler?
16479 with_gcc=$GCC
16480
16481 # Compiler flag to turn off builtin functions.
16482 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16483
16484 # How to pass a linker flag through the compiler.
16485 wl=$lt_lt_prog_compiler_wl
16486
16487 # Additional compiler flags for building library objects.
16488 pic_flag=$lt_lt_prog_compiler_pic
16489
16490 # Compiler flag to prevent dynamic linking.
16491 link_static_flag=$lt_lt_prog_compiler_static
16492
16493 # Does compiler simultaneously support -c and -o options?
16494 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16495
16496 # Whether or not to add -lc for building shared libraries.
16497 build_libtool_need_lc=$archive_cmds_need_lc
16498
16499 # Whether or not to disallow shared libs when runtime libs are static.
16500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16501
16502 # Compiler flag to allow reflexive dlopens.
16503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16504
16505 # Compiler flag to generate shared objects directly from archives.
16506 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16507
16508 # Whether the compiler copes with passing no objects directly.
16509 compiler_needs_object=$lt_compiler_needs_object
16510
16511 # Create an old-style archive from a shared archive.
16512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16513
16514 # Create a temporary old-style archive to link instead of a shared archive.
16515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16516
16517 # Commands used to build a shared archive.
16518 archive_cmds=$lt_archive_cmds
16519 archive_expsym_cmds=$lt_archive_expsym_cmds
16520
16521 # Commands used to build a loadable module if different from building
16522 # a shared archive.
16523 module_cmds=$lt_module_cmds
16524 module_expsym_cmds=$lt_module_expsym_cmds
16525
16526 # Whether we are building with GNU ld or not.
16527 with_gnu_ld=$lt_with_gnu_ld
16528
16529 # Flag that allows shared libraries with undefined symbols to be built.
16530 allow_undefined_flag=$lt_allow_undefined_flag
16531
16532 # Flag that enforces no undefined symbols.
16533 no_undefined_flag=$lt_no_undefined_flag
16534
16535 # Flag to hardcode \$libdir into a binary during linking.
16536 # This must work even if \$libdir does not exist
16537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16538
16539 # If ld is used when linking, flag to hardcode \$libdir into a binary
16540 # during linking. This must work even if \$libdir does not exist.
16541 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16542
16543 # Whether we need a single "-rpath" flag with a separated argument.
16544 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16545
16546 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16547 # DIR into the resulting binary.
16548 hardcode_direct=$hardcode_direct
16549
16550 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16551 # DIR into the resulting binary and the resulting library dependency is
16552 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16553 # library is relocated.
16554 hardcode_direct_absolute=$hardcode_direct_absolute
16555
16556 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16557 # into the resulting binary.
16558 hardcode_minus_L=$hardcode_minus_L
16559
16560 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16561 # into the resulting binary.
16562 hardcode_shlibpath_var=$hardcode_shlibpath_var
16563
16564 # Set to "yes" if building a shared library automatically hardcodes DIR
16565 # into the library and all subsequent libraries and executables linked
16566 # against it.
16567 hardcode_automatic=$hardcode_automatic
16568
16569 # Set to yes if linker adds runtime paths of dependent libraries
16570 # to runtime path list.
16571 inherit_rpath=$inherit_rpath
16572
16573 # Whether libtool must link a program against all its dependency libraries.
16574 link_all_deplibs=$link_all_deplibs
16575
16576 # Fix the shell variable \$srcfile for the compiler.
16577 fix_srcfile_path=$lt_fix_srcfile_path
16578
16579 # Set to "yes" if exported symbols are required.
16580 always_export_symbols=$always_export_symbols
16581
16582 # The commands to list exported symbols.
16583 export_symbols_cmds=$lt_export_symbols_cmds
16584
16585 # Symbols that should not be listed in the preloaded symbols.
16586 exclude_expsyms=$lt_exclude_expsyms
16587
16588 # Symbols that must always be exported.
16589 include_expsyms=$lt_include_expsyms
16590
16591 # Commands necessary for linking programs (against libraries) with templates.
16592 prelink_cmds=$lt_prelink_cmds
16593
16594 # Specify filename containing input files.
16595 file_list_spec=$lt_file_list_spec
16596
16597 # How to hardcode a shared library path into an executable.
16598 hardcode_action=$hardcode_action
16599
16600 # The directories searched by this compiler when creating a shared library.
16601 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16602
16603 # Dependencies to place before and after the objects being linked to
16604 # create a shared library.
16605 predep_objects=$lt_predep_objects
16606 postdep_objects=$lt_postdep_objects
16607 predeps=$lt_predeps
16608 postdeps=$lt_postdeps
16609
16610 # The library search path used internally by the compiler when linking
16611 # a shared library.
16612 compiler_lib_search_path=$lt_compiler_lib_search_path
16613
16614 # ### END LIBTOOL CONFIG
16615
16616 _LT_EOF
16617
16618 case $host_os in
16619 aix3*)
16620 cat <<\_LT_EOF >> "$cfgfile"
16621 # AIX sometimes has problems with the GCC collect2 program. For some
16622 # reason, if we set the COLLECT_NAMES environment variable, the problems
16623 # vanish in a puff of smoke.
16624 if test "X${COLLECT_NAMES+set}" != Xset; then
16625 COLLECT_NAMES=
16626 export COLLECT_NAMES
16627 fi
16628 _LT_EOF
16629 ;;
16630 esac
16631
16632
16633 ltmain="$ac_aux_dir/ltmain.sh"
16634
16635
16636 # We use sed instead of cat because bash on DJGPP gets confused if
16637 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16638 # text mode, it properly converts lines to CR/LF. This bash problem
16639 # is reportedly fixed, but why not run on old versions too?
16640 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16641 || (rm -f "$cfgfile"; exit 1)
16642
16643 case $xsi_shell in
16644 yes)
16645 cat << \_LT_EOF >> "$cfgfile"
16646
16647 # func_dirname file append nondir_replacement
16648 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16649 # otherwise set result to NONDIR_REPLACEMENT.
16650 func_dirname ()
16651 {
16652 case ${1} in
16653 */*) func_dirname_result="${1%/*}${2}" ;;
16654 * ) func_dirname_result="${3}" ;;
16655 esac
16656 }
16657
16658 # func_basename file
16659 func_basename ()
16660 {
16661 func_basename_result="${1##*/}"
16662 }
16663
16664 # func_dirname_and_basename file append nondir_replacement
16665 # perform func_basename and func_dirname in a single function
16666 # call:
16667 # dirname: Compute the dirname of FILE. If nonempty,
16668 # add APPEND to the result, otherwise set result
16669 # to NONDIR_REPLACEMENT.
16670 # value returned in "$func_dirname_result"
16671 # basename: Compute filename of FILE.
16672 # value retuned in "$func_basename_result"
16673 # Implementation must be kept synchronized with func_dirname
16674 # and func_basename. For efficiency, we do not delegate to
16675 # those functions but instead duplicate the functionality here.
16676 func_dirname_and_basename ()
16677 {
16678 case ${1} in
16679 */*) func_dirname_result="${1%/*}${2}" ;;
16680 * ) func_dirname_result="${3}" ;;
16681 esac
16682 func_basename_result="${1##*/}"
16683 }
16684
16685 # func_stripname prefix suffix name
16686 # strip PREFIX and SUFFIX off of NAME.
16687 # PREFIX and SUFFIX must not contain globbing or regex special
16688 # characters, hashes, percent signs, but SUFFIX may contain a leading
16689 # dot (in which case that matches only a dot).
16690 func_stripname ()
16691 {
16692 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16693 # positional parameters, so assign one to ordinary parameter first.
16694 func_stripname_result=${3}
16695 func_stripname_result=${func_stripname_result#"${1}"}
16696 func_stripname_result=${func_stripname_result%"${2}"}
16697 }
16698
16699 # func_opt_split
16700 func_opt_split ()
16701 {
16702 func_opt_split_opt=${1%%=*}
16703 func_opt_split_arg=${1#*=}
16704 }
16705
16706 # func_lo2o object
16707 func_lo2o ()
16708 {
16709 case ${1} in
16710 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16711 *) func_lo2o_result=${1} ;;
16712 esac
16713 }
16714
16715 # func_xform libobj-or-source
16716 func_xform ()
16717 {
16718 func_xform_result=${1%.*}.lo
16719 }
16720
16721 # func_arith arithmetic-term...
16722 func_arith ()
16723 {
16724 func_arith_result=$(( $* ))
16725 }
16726
16727 # func_len string
16728 # STRING may not start with a hyphen.
16729 func_len ()
16730 {
16731 func_len_result=${#1}
16732 }
16733
16734 _LT_EOF
16735 ;;
16736 *) # Bourne compatible functions.
16737 cat << \_LT_EOF >> "$cfgfile"
16738
16739 # func_dirname file append nondir_replacement
16740 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16741 # otherwise set result to NONDIR_REPLACEMENT.
16742 func_dirname ()
16743 {
16744 # Extract subdirectory from the argument.
16745 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16746 if test "X$func_dirname_result" = "X${1}"; then
16747 func_dirname_result="${3}"
16748 else
16749 func_dirname_result="$func_dirname_result${2}"
16750 fi
16751 }
16752
16753 # func_basename file
16754 func_basename ()
16755 {
16756 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16757 }
16758
16759
16760 # func_stripname prefix suffix name
16761 # strip PREFIX and SUFFIX off of NAME.
16762 # PREFIX and SUFFIX must not contain globbing or regex special
16763 # characters, hashes, percent signs, but SUFFIX may contain a leading
16764 # dot (in which case that matches only a dot).
16765 # func_strip_suffix prefix name
16766 func_stripname ()
16767 {
16768 case ${2} in
16769 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16770 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16771 esac
16772 }
16773
16774 # sed scripts:
16775 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16776 my_sed_long_arg='1s/^-[^=]*=//'
16777
16778 # func_opt_split
16779 func_opt_split ()
16780 {
16781 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16782 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16783 }
16784
16785 # func_lo2o object
16786 func_lo2o ()
16787 {
16788 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16789 }
16790
16791 # func_xform libobj-or-source
16792 func_xform ()
16793 {
16794 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16795 }
16796
16797 # func_arith arithmetic-term...
16798 func_arith ()
16799 {
16800 func_arith_result=`expr "$@"`
16801 }
16802
16803 # func_len string
16804 # STRING may not start with a hyphen.
16805 func_len ()
16806 {
16807 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16808 }
16809
16810 _LT_EOF
16811 esac
16812
16813 case $lt_shell_append in
16814 yes)
16815 cat << \_LT_EOF >> "$cfgfile"
16816
16817 # func_append var value
16818 # Append VALUE to the end of shell variable VAR.
16819 func_append ()
16820 {
16821 eval "$1+=\$2"
16822 }
16823 _LT_EOF
16824 ;;
16825 *)
16826 cat << \_LT_EOF >> "$cfgfile"
16827
16828 # func_append var value
16829 # Append VALUE to the end of shell variable VAR.
16830 func_append ()
16831 {
16832 eval "$1=\$$1\$2"
16833 }
16834
16835 _LT_EOF
16836 ;;
16837 esac
16838
16839
16840 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16841 || (rm -f "$cfgfile"; exit 1)
16842
16843 mv -f "$cfgfile" "$ofile" ||
16844 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16845 chmod +x "$ofile"
16846
16847
16848 cat <<_LT_EOF >> "$ofile"
16849
16850 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16851
16852 # The linker used to build libraries.
16853 LD=$lt_LD_CXX
16854
16855 # How to create reloadable object files.
16856 reload_flag=$lt_reload_flag_CXX
16857 reload_cmds=$lt_reload_cmds_CXX
16858
16859 # Commands used to build an old-style archive.
16860 old_archive_cmds=$lt_old_archive_cmds_CXX
16861
16862 # A language specific compiler.
16863 CC=$lt_compiler_CXX
16864
16865 # Is the compiler the GNU compiler?
16866 with_gcc=$GCC_CXX
16867
16868 # Compiler flag to turn off builtin functions.
16869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16870
16871 # How to pass a linker flag through the compiler.
16872 wl=$lt_lt_prog_compiler_wl_CXX
16873
16874 # Additional compiler flags for building library objects.
16875 pic_flag=$lt_lt_prog_compiler_pic_CXX
16876
16877 # Compiler flag to prevent dynamic linking.
16878 link_static_flag=$lt_lt_prog_compiler_static_CXX
16879
16880 # Does compiler simultaneously support -c and -o options?
16881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16882
16883 # Whether or not to add -lc for building shared libraries.
16884 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16885
16886 # Whether or not to disallow shared libs when runtime libs are static.
16887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16888
16889 # Compiler flag to allow reflexive dlopens.
16890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16891
16892 # Compiler flag to generate shared objects directly from archives.
16893 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16894
16895 # Whether the compiler copes with passing no objects directly.
16896 compiler_needs_object=$lt_compiler_needs_object_CXX
16897
16898 # Create an old-style archive from a shared archive.
16899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16900
16901 # Create a temporary old-style archive to link instead of a shared archive.
16902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16903
16904 # Commands used to build a shared archive.
16905 archive_cmds=$lt_archive_cmds_CXX
16906 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16907
16908 # Commands used to build a loadable module if different from building
16909 # a shared archive.
16910 module_cmds=$lt_module_cmds_CXX
16911 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16912
16913 # Whether we are building with GNU ld or not.
16914 with_gnu_ld=$lt_with_gnu_ld_CXX
16915
16916 # Flag that allows shared libraries with undefined symbols to be built.
16917 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16918
16919 # Flag that enforces no undefined symbols.
16920 no_undefined_flag=$lt_no_undefined_flag_CXX
16921
16922 # Flag to hardcode \$libdir into a binary during linking.
16923 # This must work even if \$libdir does not exist
16924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16925
16926 # If ld is used when linking, flag to hardcode \$libdir into a binary
16927 # during linking. This must work even if \$libdir does not exist.
16928 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16929
16930 # Whether we need a single "-rpath" flag with a separated argument.
16931 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16932
16933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16934 # DIR into the resulting binary.
16935 hardcode_direct=$hardcode_direct_CXX
16936
16937 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16938 # DIR into the resulting binary and the resulting library dependency is
16939 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16940 # library is relocated.
16941 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16942
16943 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16944 # into the resulting binary.
16945 hardcode_minus_L=$hardcode_minus_L_CXX
16946
16947 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16948 # into the resulting binary.
16949 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16950
16951 # Set to "yes" if building a shared library automatically hardcodes DIR
16952 # into the library and all subsequent libraries and executables linked
16953 # against it.
16954 hardcode_automatic=$hardcode_automatic_CXX
16955
16956 # Set to yes if linker adds runtime paths of dependent libraries
16957 # to runtime path list.
16958 inherit_rpath=$inherit_rpath_CXX
16959
16960 # Whether libtool must link a program against all its dependency libraries.
16961 link_all_deplibs=$link_all_deplibs_CXX
16962
16963 # Fix the shell variable \$srcfile for the compiler.
16964 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16965
16966 # Set to "yes" if exported symbols are required.
16967 always_export_symbols=$always_export_symbols_CXX
16968
16969 # The commands to list exported symbols.
16970 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16971
16972 # Symbols that should not be listed in the preloaded symbols.
16973 exclude_expsyms=$lt_exclude_expsyms_CXX
16974
16975 # Symbols that must always be exported.
16976 include_expsyms=$lt_include_expsyms_CXX
16977
16978 # Commands necessary for linking programs (against libraries) with templates.
16979 prelink_cmds=$lt_prelink_cmds_CXX
16980
16981 # Specify filename containing input files.
16982 file_list_spec=$lt_file_list_spec_CXX
16983
16984 # How to hardcode a shared library path into an executable.
16985 hardcode_action=$hardcode_action_CXX
16986
16987 # The directories searched by this compiler when creating a shared library.
16988 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16989
16990 # Dependencies to place before and after the objects being linked to
16991 # create a shared library.
16992 predep_objects=$lt_predep_objects_CXX
16993 postdep_objects=$lt_postdep_objects_CXX
16994 predeps=$lt_predeps_CXX
16995 postdeps=$lt_postdeps_CXX
16996
16997 # The library search path used internally by the compiler when linking
16998 # a shared library.
16999 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17000
17001 # ### END LIBTOOL TAG CONFIG: CXX
17002 _LT_EOF
17003
17004 ;;
17005 "interception/Makefile":F) cat > vpsed$$ << \_EOF
17006 s!`test -f '$<' || echo '$(srcdir)/'`!!
17007 _EOF
17008 sed -f vpsed$$ $ac_file > tmp$$
17009 mv tmp$$ $ac_file
17010 rm vpsed$$
17011 echo 'MULTISUBDIR =' >> $ac_file
17012 ml_norecursion=yes
17013 . ${multi_basedir}/config-ml.in
17014 { ml_norecursion=; unset ml_norecursion;}
17015 ;;
17016 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
17017 s!`test -f '$<' || echo '$(srcdir)/'`!!
17018 _EOF
17019 sed -f vpsed$$ $ac_file > tmp$$
17020 mv tmp$$ $ac_file
17021 rm vpsed$$
17022 echo 'MULTISUBDIR =' >> $ac_file
17023 ml_norecursion=yes
17024 . ${multi_basedir}/config-ml.in
17025 { ml_norecursion=; unset ml_norecursion;}
17026 ;;
17027 "asan/Makefile":F) cat > vpsed$$ << \_EOF
17028 s!`test -f '$<' || echo '$(srcdir)/'`!!
17029 _EOF
17030 sed -f vpsed$$ $ac_file > tmp$$
17031 mv tmp$$ $ac_file
17032 rm vpsed$$
17033 echo 'MULTISUBDIR =' >> $ac_file
17034 ml_norecursion=yes
17035 . ${multi_basedir}/config-ml.in
17036 { ml_norecursion=; unset ml_norecursion;}
17037 ;;
17038 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
17039 s!`test -f '$<' || echo '$(srcdir)/'`!!
17040 _EOF
17041 sed -f vpsed$$ $ac_file > tmp$$
17042 mv tmp$$ $ac_file
17043 rm vpsed$$
17044 echo 'MULTISUBDIR =' >> $ac_file
17045 ml_norecursion=yes
17046 . ${multi_basedir}/config-ml.in
17047 { ml_norecursion=; unset ml_norecursion;}
17048 ;;
17049
17050 esac
17051 done # for ac_tag
17052
17053
17054 as_fn_exit 0
17055 _ACEOF
17056 ac_clean_files=$ac_clean_files_save
17057
17058 test $ac_write_fail = 0 ||
17059 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17060
17061
17062 # configure is writing to config.log, and then calls config.status.
17063 # config.status does its own redirection, appending to config.log.
17064 # Unfortunately, on DOS this fails, as config.log is still kept open
17065 # by configure, so config.status won't be able to write to it; its
17066 # output is simply discarded. So we exec the FD to /dev/null,
17067 # effectively closing config.log, so it can be properly (re)opened and
17068 # appended to by config.status. When coming back to configure, we
17069 # need to make the FD available again.
17070 if test "$no_create" != yes; then
17071 ac_cs_success=:
17072 ac_config_status_args=
17073 test "$silent" = yes &&
17074 ac_config_status_args="$ac_config_status_args --quiet"
17075 exec 5>/dev/null
17076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17077 exec 5>>config.log
17078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17079 # would make configure fail if this is the last instruction.
17080 $ac_cs_success || as_fn_exit $?
17081 fi
17082 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17084 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17085 fi
17086