configure revision 1.1.1.3 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 (at] 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 am__untar
666 am__tar
667 AMTAR
668 am__leading_dot
669 SET_MAKE
670 AWK
671 mkdir_p
672 MKDIR_P
673 INSTALL_STRIP_PROGRAM
674 STRIP
675 install_sh
676 MAKEINFO
677 AUTOHEADER
678 AUTOMAKE
679 AUTOCONF
680 ACLOCAL
681 VERSION
682 PACKAGE
683 CYGPATH_W
684 am__isrc
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 LIBSTDCXX_RAW_CXX_LDFLAGS
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 multi_basedir
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_multilib
746 enable_version_specific_runtime_libs
747 enable_maintainer_mode
748 enable_dependency_tracking
749 enable_shared
750 enable_static
751 with_pic
752 enable_fast_install
753 with_gnu_ld
754 enable_libtool_lock
755 '
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
759 CC
760 CFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
764 CXX
765 CXXFLAGS
766 CCC
767 CCAS
768 CCASFLAGS
769 CPP
770 CXXCPP'
771
772
773 # Initialize some variables set by options.
774 ac_init_help=
775 ac_init_version=false
776 ac_unrecognized_opts=
777 ac_unrecognized_sep=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
780 cache_file=/dev/null
781 exec_prefix=NONE
782 no_create=
783 no_recursion=
784 prefix=NONE
785 program_prefix=NONE
786 program_suffix=NONE
787 program_transform_name=s,x,x,
788 silent=
789 site=
790 srcdir=
791 verbose=
792 x_includes=NONE
793 x_libraries=NONE
794
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812 infodir='${datarootdir}/info'
813 htmldir='${docdir}'
814 dvidir='${docdir}'
815 pdfdir='${docdir}'
816 psdir='${docdir}'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
820
821 ac_prev=
822 ac_dashdash=
823 for ac_option
824 do
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
830 fi
831
832 case $ac_option in
833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *) ac_optarg=yes ;;
835 esac
836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
842
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
847
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
862
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
867
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
900
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1120
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) as_fn_error "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information."
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 ;;
1176
1177 esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error "missing argument to $ac_option"
1183 fi
1184
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1191 fi
1192
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1198 do
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1229 fi
1230 fi
1231
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235 test "$silent" = yes && exec 6>/dev/null
1236
1237
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error "pwd does not report name of working directory"
1244
1245
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)[^/].*/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\).*/{
1269 s//\1/
1270 q
1271 }
1272 s/.*/./; q'`
1273 srcdir=$ac_confdir
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 srcdir=..
1276 fi
1277 else
1278 ac_srcdir_defaulted=no
1279 fi
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1283 fi
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1287 pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 srcdir=.
1291 fi
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1304
1305 #
1306 # Report the --help message.
1307 #
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1311 cat <<_ACEOF
1312 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1313
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1318
1319 Defaults for the options are specified in brackets.
1320
1321 Configuration:
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 [PREFIX]
1337
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1342
1343 For better control, use the options below.
1344
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1365 _ACEOF
1366
1367 cat <<\_ACEOF
1368
1369 Program names:
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1373
1374 System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of package-unused version-unused:";;
1384 esac
1385 cat <<\_ACEOF
1386
1387 Optional Features:
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-multilib build many library versions (default)
1392 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1393 --enable-maintainer-mode enable make rules and dependencies not useful
1394 (and sometimes confusing) to the casual installer
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1397 --enable-shared[=PKGS] build shared libraries [default=yes]
1398 --enable-static[=PKGS] build static libraries [default=yes]
1399 --enable-fast-install[=PKGS]
1400 optimize for fast installation [default=yes]
1401 --disable-libtool-lock avoid locking (might break parallel builds)
1402
1403 Optional Packages:
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-pic try to use only PIC/non-PIC objects [default=use
1407 both]
1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1409
1410 Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CXX C++ compiler command
1419 CXXFLAGS C++ compiler flags
1420 CCAS assembler compiler command (defaults to CC)
1421 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1422 CPP C preprocessor
1423 CXXCPP C++ preprocessor
1424
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1427
1428 Report bugs to <libsanitizer>.
1429 _ACEOF
1430 ac_status=$?
1431 fi
1432
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
1439 ac_builddir=.
1440
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *)
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1456
1457 case $srcdir in
1458 .) # We are building in place.
1459 ac_srcdir=.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1481 else
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1485 done
1486 fi
1487
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490 cat <<\_ACEOF
1491 package-unused configure version-unused
1492 generated by GNU Autoconf 2.64
1493
1494 Copyright (C) 2009 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498 exit
1499 fi
1500
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1504
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1509 {
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1531 ac_retval=0
1532 else
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1535
1536 ac_retval=1
1537 fi
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 return $ac_retval
1540
1541 } # ac_fn_c_try_compile
1542
1543 # ac_fn_cxx_try_compile LINENO
1544 # ----------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_cxx_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_cxx_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575 fi
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 return $ac_retval
1578
1579 } # ac_fn_cxx_try_compile
1580
1581 # ac_fn_c_try_link LINENO
1582 # -----------------------
1583 # Try to link conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_link ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest$ac_exeext
1588 if { { ac_try="$ac_link"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_link") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest$ac_exeext && {
1607 test "$cross_compiling" = yes ||
1608 $as_test_x conftest$ac_exeext
1609 }; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1618 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1619 # interfere with the next link command; also delete a directory that is
1620 # left behind by Apple's compiler. We do this before executing the actions.
1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623 return $ac_retval
1624
1625 } # ac_fn_c_try_link
1626
1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists and can be compiled using the include files in
1630 # INCLUDES, setting the cache variable VAR accordingly.
1631 ac_fn_c_check_header_compile ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1637 $as_echo_n "(cached) " >&6
1638 else
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 eval "$3=yes"
1646 else
1647 eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 fi
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655
1656 } # ac_fn_c_check_header_compile
1657
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_cpp ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } >/dev/null && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 return $ac_retval
1692
1693 } # ac_fn_c_try_cpp
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 return $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below.
1756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757 <limits.h> exists even on freestanding compilers. */
1758
1759 #ifdef __STDC__
1760 # include <limits.h>
1761 #else
1762 # include <assert.h>
1763 #endif
1764
1765 #undef $2
1766
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1770 #ifdef __cplusplus
1771 extern "C"
1772 #endif
1773 char $2 ();
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1778 choke me
1779 #endif
1780
1781 int
1782 main ()
1783 {
1784 return $2 ();
1785 ;
1786 return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_link "$LINENO"; then :
1790 eval "$3=yes"
1791 else
1792 eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext \
1795 conftest$ac_exeext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802 } # ac_fn_c_check_func
1803
1804 # ac_fn_cxx_try_cpp LINENO
1805 # ------------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_cpp ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } >/dev/null && {
1826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 return $ac_retval
1838
1839 } # ac_fn_cxx_try_cpp
1840
1841 # ac_fn_cxx_try_link LINENO
1842 # -------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_link ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 $as_test_x conftest$ac_exeext
1869 }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876 fi
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 return $ac_retval
1884
1885 } # ac_fn_cxx_try_link
1886
1887 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1888 # --------------------------------------------
1889 # Tries to find the compile-time value of EXPR in a program that includes
1890 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1891 # computed
1892 ac_fn_c_compute_int ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if test "$cross_compiling" = yes; then
1896 # Depending upon the size, compute the lo and hi bounds.
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 int
1901 main ()
1902 {
1903 static int test_array [1 - 2 * !(($2) >= 0)];
1904 test_array [0] = 0
1905
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 ac_lo=0 ac_mid=0
1912 while :; do
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 $4
1916 int
1917 main ()
1918 {
1919 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1920 test_array [0] = 0
1921
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_hi=$ac_mid; break
1928 else
1929 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1930 if test $ac_lo -le $ac_mid; then
1931 ac_lo= ac_hi=
1932 break
1933 fi
1934 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 done
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 $4
1942 int
1943 main ()
1944 {
1945 static int test_array [1 - 2 * !(($2) < 0)];
1946 test_array [0] = 0
1947
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_hi=-1 ac_mid=-1
1954 while :; do
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 int
1959 main ()
1960 {
1961 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1962 test_array [0] = 0
1963
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_lo=$ac_mid; break
1970 else
1971 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1972 if test $ac_mid -le $ac_hi; then
1973 ac_lo= ac_hi=
1974 break
1975 fi
1976 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 done
1980 else
1981 ac_lo= ac_hi=
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 # Binary search between lo and hi bounds.
1987 while test "x$ac_lo" != "x$ac_hi"; do
1988 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $4
1992 int
1993 main ()
1994 {
1995 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1996 test_array [0] = 0
1997
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_hi=$ac_mid
2004 else
2005 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 done
2009 case $ac_lo in #((
2010 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2011 '') ac_retval=1 ;;
2012 esac
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 $4
2017 static long int longval () { return $2; }
2018 static unsigned long int ulongval () { return $2; }
2019 #include <stdio.h>
2020 #include <stdlib.h>
2021 int
2022 main ()
2023 {
2024
2025 FILE *f = fopen ("conftest.val", "w");
2026 if (! f)
2027 return 1;
2028 if (($2) < 0)
2029 {
2030 long int i = longval ();
2031 if (i != ($2))
2032 return 1;
2033 fprintf (f, "%ld", i);
2034 }
2035 else
2036 {
2037 unsigned long int i = ulongval ();
2038 if (i != ($2))
2039 return 1;
2040 fprintf (f, "%lu", i);
2041 }
2042 /* Do not output a trailing newline, as this causes \r\n confusion
2043 on some platforms. */
2044 return ferror (f) || fclose (f) != 0;
2045
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_run "$LINENO"; then :
2051 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2052 else
2053 ac_retval=1
2054 fi
2055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2056 conftest.$ac_objext conftest.beam conftest.$ac_ext
2057 rm -f conftest.val
2058
2059 fi
2060 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 return $ac_retval
2062
2063 } # ac_fn_c_compute_int
2064 cat >config.log <<_ACEOF
2065 This file contains any messages produced by compilers while
2066 running configure, to aid debugging if configure makes a mistake.
2067
2068 It was created by package-unused $as_me version-unused, which was
2069 generated by GNU Autoconf 2.64. Invocation command line was
2070
2071 $ $0 $@
2072
2073 _ACEOF
2074 exec 5>>config.log
2075 {
2076 cat <<_ASUNAME
2077 ## --------- ##
2078 ## Platform. ##
2079 ## --------- ##
2080
2081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2089
2090 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2091 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2094 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2095 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2096 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2097
2098 _ASUNAME
2099
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 $as_echo "PATH: $as_dir"
2106 done
2107 IFS=$as_save_IFS
2108
2109 } >&5
2110
2111 cat >&5 <<_ACEOF
2112
2113
2114 ## ----------- ##
2115 ## Core tests. ##
2116 ## ----------- ##
2117
2118 _ACEOF
2119
2120
2121 # Keep a trace of the command line.
2122 # Strip out --no-create and --no-recursion so they do not pile up.
2123 # Strip out --silent because we don't want to record it for future runs.
2124 # Also quote any args containing shell meta-characters.
2125 # Make two passes to allow for proper duplicate-argument suppression.
2126 ac_configure_args=
2127 ac_configure_args0=
2128 ac_configure_args1=
2129 ac_must_keep_next=false
2130 for ac_pass in 1 2
2131 do
2132 for ac_arg
2133 do
2134 case $ac_arg in
2135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137 | -silent | --silent | --silen | --sile | --sil)
2138 continue ;;
2139 *\'*)
2140 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141 esac
2142 case $ac_pass in
2143 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144 2)
2145 as_fn_append ac_configure_args1 " '$ac_arg'"
2146 if test $ac_must_keep_next = true; then
2147 ac_must_keep_next=false # Got value, back to normal.
2148 else
2149 case $ac_arg in
2150 *=* | --config-cache | -C | -disable-* | --disable-* \
2151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153 | -with-* | --with-* | -without-* | --without-* | --x)
2154 case "$ac_configure_args0 " in
2155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156 esac
2157 ;;
2158 -* ) ac_must_keep_next=true ;;
2159 esac
2160 fi
2161 as_fn_append ac_configure_args " '$ac_arg'"
2162 ;;
2163 esac
2164 done
2165 done
2166 { ac_configure_args0=; unset ac_configure_args0;}
2167 { ac_configure_args1=; unset ac_configure_args1;}
2168
2169 # When interrupted or exit'd, cleanup temporary files, and complete
2170 # config.log. We remove comments because anyway the quotes in there
2171 # would cause problems or look ugly.
2172 # WARNING: Use '\'' to represent an apostrophe within the trap.
2173 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174 trap 'exit_status=$?
2175 # Save into config.log some information that might help in debugging.
2176 {
2177 echo
2178
2179 cat <<\_ASBOX
2180 ## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##
2183 _ASBOX
2184 echo
2185 # The following way of writing the cache mishandles newlines in values,
2186 (
2187 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in #(
2190 *${as_nl}*)
2191 case $ac_var in #(
2192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2193 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2194 esac
2195 case $ac_var in #(
2196 _ | IFS | as_nl) ;; #(
2197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2198 *) { eval $ac_var=; unset $ac_var;} ;;
2199 esac ;;
2200 esac
2201 done
2202 (set) 2>&1 |
2203 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204 *${as_nl}ac_space=\ *)
2205 sed -n \
2206 "s/'\''/'\''\\\\'\'''\''/g;
2207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208 ;; #(
2209 *)
2210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211 ;;
2212 esac |
2213 sort
2214 )
2215 echo
2216
2217 cat <<\_ASBOX
2218 ## ----------------- ##
2219 ## Output variables. ##
2220 ## ----------------- ##
2221 _ASBOX
2222 echo
2223 for ac_var in $ac_subst_vars
2224 do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in
2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 esac
2229 $as_echo "$ac_var='\''$ac_val'\''"
2230 done | sort
2231 echo
2232
2233 if test -n "$ac_subst_files"; then
2234 cat <<\_ASBOX
2235 ## ------------------- ##
2236 ## File substitutions. ##
2237 ## ------------------- ##
2238 _ASBOX
2239 echo
2240 for ac_var in $ac_subst_files
2241 do
2242 eval ac_val=\$$ac_var
2243 case $ac_val in
2244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245 esac
2246 $as_echo "$ac_var='\''$ac_val'\''"
2247 done | sort
2248 echo
2249 fi
2250
2251 if test -s confdefs.h; then
2252 cat <<\_ASBOX
2253 ## ----------- ##
2254 ## confdefs.h. ##
2255 ## ----------- ##
2256 _ASBOX
2257 echo
2258 cat confdefs.h
2259 echo
2260 fi
2261 test "$ac_signal" != 0 &&
2262 $as_echo "$as_me: caught signal $ac_signal"
2263 $as_echo "$as_me: exit $exit_status"
2264 } >&5
2265 rm -f core *.core core.conftest.* &&
2266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2267 exit $exit_status
2268 ' 0
2269 for ac_signal in 1 2 13 15; do
2270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2271 done
2272 ac_signal=0
2273
2274 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2275 rm -f -r conftest* confdefs.h
2276
2277 $as_echo "/* confdefs.h */" > confdefs.h
2278
2279 # Predefined preprocessor variables.
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_NAME "$PACKAGE_NAME"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2291 _ACEOF
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_STRING "$PACKAGE_STRING"
2295 _ACEOF
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299 _ACEOF
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_URL "$PACKAGE_URL"
2303 _ACEOF
2304
2305
2306 # Let the site file select an alternate cache file if it wants to.
2307 # Prefer an explicitly selected file to automatically selected ones.
2308 ac_site_file1=NONE
2309 ac_site_file2=NONE
2310 if test -n "$CONFIG_SITE"; then
2311 ac_site_file1=$CONFIG_SITE
2312 elif test "x$prefix" != xNONE; then
2313 ac_site_file1=$prefix/share/config.site
2314 ac_site_file2=$prefix/etc/config.site
2315 else
2316 ac_site_file1=$ac_default_prefix/share/config.site
2317 ac_site_file2=$ac_default_prefix/etc/config.site
2318 fi
2319 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320 do
2321 test "x$ac_site_file" = xNONE && continue
2322 if test -r "$ac_site_file"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2325 sed 's/^/| /' "$ac_site_file" >&5
2326 . "$ac_site_file"
2327 fi
2328 done
2329
2330 if test -r "$cache_file"; then
2331 # Some versions of bash will fail to source /dev/null (special
2332 # files actually), so we avoid doing that.
2333 if test -f "$cache_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2335 $as_echo "$as_me: loading cache $cache_file" >&6;}
2336 case $cache_file in
2337 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2338 *) . "./$cache_file";;
2339 esac
2340 fi
2341 else
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2343 $as_echo "$as_me: creating cache $cache_file" >&6;}
2344 >$cache_file
2345 fi
2346
2347 # Check that the precious variables saved in the cache have kept the same
2348 # value.
2349 ac_cache_corrupted=false
2350 for ac_var in $ac_precious_vars; do
2351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2352 eval ac_new_set=\$ac_env_${ac_var}_set
2353 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2354 eval ac_new_val=\$ac_env_${ac_var}_value
2355 case $ac_old_set,$ac_new_set in
2356 set,)
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2360 ,set)
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2362 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2363 ac_cache_corrupted=: ;;
2364 ,);;
2365 *)
2366 if test "x$ac_old_val" != "x$ac_new_val"; then
2367 # differences in whitespace do not lead to failure.
2368 ac_old_val_w=`echo x $ac_old_val`
2369 ac_new_val_w=`echo x $ac_new_val`
2370 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2372 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2373 ac_cache_corrupted=:
2374 else
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2376 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2377 eval $ac_var=\$ac_old_val
2378 fi
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2380 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2382 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2383 fi;;
2384 esac
2385 # Pass precious variables to config.status.
2386 if test "$ac_new_set" = set; then
2387 case $ac_new_val in
2388 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 *) ac_arg=$ac_var=$ac_new_val ;;
2390 esac
2391 case " $ac_configure_args " in
2392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2393 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2394 esac
2395 fi
2396 done
2397 if $ac_cache_corrupted; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2401 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2402 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2403 fi
2404 ## -------------------- ##
2405 ## Main body of script. ##
2406 ## -------------------- ##
2407
2408 ac_ext=c
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413
2414
2415
2416
2417
2418
2419
2420 # Default to --enable-multilib
2421 # Check whether --enable-multilib was given.
2422 if test "${enable_multilib+set}" = set; then :
2423 enableval=$enable_multilib; case "$enableval" in
2424 yes) multilib=yes ;;
2425 no) multilib=no ;;
2426 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2427 esac
2428 else
2429 multilib=yes
2430 fi
2431
2432
2433 # We may get other options which we leave undocumented:
2434 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2435 # See config-ml.in if you want the gory details.
2436
2437 if test "$srcdir" = "."; then
2438 if test "$with_target_subdir" != "."; then
2439 multi_basedir="$srcdir/$with_multisrctop../.."
2440 else
2441 multi_basedir="$srcdir/$with_multisrctop.."
2442 fi
2443 else
2444 multi_basedir="$srcdir/.."
2445 fi
2446
2447
2448 # Even if the default multilib is not a cross compilation,
2449 # it may be that some of the other multilibs are.
2450 if test $cross_compiling = no && test $multilib = yes \
2451 && test "x${with_multisubdir}" != x ; then
2452 cross_compiling=maybe
2453 fi
2454
2455 ac_config_commands="$ac_config_commands default-1"
2456
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2459 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2460 # Check whether --enable-version-specific-runtime-libs was given.
2461 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2462 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2463 yes) version_specific_libs=yes ;;
2464 no) version_specific_libs=no ;;
2465 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2466 esac
2467 else
2468 version_specific_libs=no
2469 fi
2470
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2472 $as_echo "$version_specific_libs" >&6; }
2473
2474 # Do not delete or change the following two lines. For why, see
2475 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2476 ac_aux_dir=
2477 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2478 for ac_t in install-sh install.sh shtool; do
2479 if test -f "$ac_dir/$ac_t"; then
2480 ac_aux_dir=$ac_dir
2481 ac_install_sh="$ac_aux_dir/$ac_t -c"
2482 break 2
2483 fi
2484 done
2485 done
2486 if test -z "$ac_aux_dir"; then
2487 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2488 fi
2489
2490 # These three variables are undocumented and unsupported,
2491 # and are intended to be withdrawn in a future Autoconf release.
2492 # They can cause serious problems if a builder's source tree is in a directory
2493 # whose full name contains unusual characters.
2494 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2495 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2496 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2497
2498
2499 # Make sure we can run config.sub.
2500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2501 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2504 $as_echo_n "checking build system type... " >&6; }
2505 if test "${ac_cv_build+set}" = set; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 ac_build_alias=$build_alias
2509 test "x$ac_build_alias" = x &&
2510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2511 test "x$ac_build_alias" = x &&
2512 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2514 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2515
2516 fi
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2518 $as_echo "$ac_cv_build" >&6; }
2519 case $ac_cv_build in
2520 *-*-*) ;;
2521 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2522 esac
2523 build=$ac_cv_build
2524 ac_save_IFS=$IFS; IFS='-'
2525 set x $ac_cv_build
2526 shift
2527 build_cpu=$1
2528 build_vendor=$2
2529 shift; shift
2530 # Remember, the first character of IFS is used to create $*,
2531 # except with old shells:
2532 build_os=$*
2533 IFS=$ac_save_IFS
2534 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2535
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2538 $as_echo_n "checking host system type... " >&6; }
2539 if test "${ac_cv_host+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 if test "x$host_alias" = x; then
2543 ac_cv_host=$ac_cv_build
2544 else
2545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2546 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2547 fi
2548
2549 fi
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2551 $as_echo "$ac_cv_host" >&6; }
2552 case $ac_cv_host in
2553 *-*-*) ;;
2554 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2555 esac
2556 host=$ac_cv_host
2557 ac_save_IFS=$IFS; IFS='-'
2558 set x $ac_cv_host
2559 shift
2560 host_cpu=$1
2561 host_vendor=$2
2562 shift; shift
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2565 host_os=$*
2566 IFS=$ac_save_IFS
2567 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2568
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2571 $as_echo_n "checking target system type... " >&6; }
2572 if test "${ac_cv_target+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 if test "x$target_alias" = x; then
2576 ac_cv_target=$ac_cv_host
2577 else
2578 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2579 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2580 fi
2581
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2584 $as_echo "$ac_cv_target" >&6; }
2585 case $ac_cv_target in
2586 *-*-*) ;;
2587 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2588 esac
2589 target=$ac_cv_target
2590 ac_save_IFS=$IFS; IFS='-'
2591 set x $ac_cv_target
2592 shift
2593 target_cpu=$1
2594 target_vendor=$2
2595 shift; shift
2596 # Remember, the first character of IFS is used to create $*,
2597 # except with old shells:
2598 target_os=$*
2599 IFS=$ac_save_IFS
2600 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2601
2602
2603 # The aliases save the names the user supplied, while $host etc.
2604 # will get canonicalized.
2605 test -n "$target_alias" &&
2606 test "$program_prefix$program_suffix$program_transform_name" = \
2607 NONENONEs,x,x, &&
2608 program_prefix=${target_alias}-
2609
2610 target_alias=${target_alias-$host_alias}
2611
2612 case ${build_alias} in
2613 "") build_noncanonical=${build} ;;
2614 *) build_noncanonical=${build_alias} ;;
2615 esac
2616
2617 case ${host_alias} in
2618 "") host_noncanonical=${build_noncanonical} ;;
2619 *) host_noncanonical=${host_alias} ;;
2620 esac
2621
2622 case ${target_alias} in
2623 "") target_noncanonical=${host_noncanonical} ;;
2624 *) target_noncanonical=${target_alias} ;;
2625 esac
2626
2627
2628
2629
2630
2631 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2632 -I\$(top_builddir)/../libstdc++-v3/include \
2633 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2634 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2635 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2636 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2637
2638
2639
2640
2641 am__api_version='1.11'
2642
2643 # Find a good install program. We prefer a C program (faster),
2644 # so one script is as good as another. But avoid the broken or
2645 # incompatible versions:
2646 # SysV /etc/install, /usr/sbin/install
2647 # SunOS /usr/etc/install
2648 # IRIX /sbin/install
2649 # AIX /bin/install
2650 # AmigaOS /C/install, which installs bootblocks on floppy discs
2651 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2652 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2653 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2654 # OS/2's system install, which has a completely different semantic
2655 # ./install, which can be erroneously created by make from ./install.sh.
2656 # Reject install programs that cannot install multiple files.
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2658 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2659 if test -z "$INSTALL"; then
2660 if test "${ac_cv_path_install+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 # Account for people who put trailing slashes in PATH elements.
2669 case $as_dir/ in #((
2670 ./ | .// | /[cC]/* | \
2671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2672 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2673 /usr/ucb/* ) ;;
2674 *)
2675 # OSF1 and SCO ODT 3.0 have their own names for install.
2676 # Don't use installbsd from OSF since it installs stuff as root
2677 # by default.
2678 for ac_prog in ginstall scoinst install; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2681 if test $ac_prog = install &&
2682 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2683 # AIX install. It has an incompatible calling convention.
2684 :
2685 elif test $ac_prog = install &&
2686 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2687 # program-specific install script used by HP pwplus--don't use.
2688 :
2689 else
2690 rm -rf conftest.one conftest.two conftest.dir
2691 echo one > conftest.one
2692 echo two > conftest.two
2693 mkdir conftest.dir
2694 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2695 test -s conftest.one && test -s conftest.two &&
2696 test -s conftest.dir/conftest.one &&
2697 test -s conftest.dir/conftest.two
2698 then
2699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2700 break 3
2701 fi
2702 fi
2703 fi
2704 done
2705 done
2706 ;;
2707 esac
2708
2709 done
2710 IFS=$as_save_IFS
2711
2712 rm -rf conftest.one conftest.two conftest.dir
2713
2714 fi
2715 if test "${ac_cv_path_install+set}" = set; then
2716 INSTALL=$ac_cv_path_install
2717 else
2718 # As a last resort, use the slow shell script. Don't cache a
2719 # value for INSTALL within a source directory, because that will
2720 # break other packages using the cache if that directory is
2721 # removed, or if the value is a relative name.
2722 INSTALL=$ac_install_sh
2723 fi
2724 fi
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2726 $as_echo "$INSTALL" >&6; }
2727
2728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2729 # It thinks the first close brace ends the variable substitution.
2730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2731
2732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2733
2734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2737 $as_echo_n "checking whether build environment is sane... " >&6; }
2738 # Just in case
2739 sleep 1
2740 echo timestamp > conftest.file
2741 # Reject unsafe characters in $srcdir or the absolute working directory
2742 # name. Accept space and tab only in the latter.
2743 am_lf='
2744 '
2745 case `pwd` in
2746 *[\\\"\#\$\&\'\`$am_lf]*)
2747 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2748 esac
2749 case $srcdir in
2750 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2751 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2752 esac
2753
2754 # Do `set' in a subshell so we don't clobber the current shell's
2755 # arguments. Must try -L first in case configure is actually a
2756 # symlink; some systems play weird games with the mod time of symlinks
2757 # (eg FreeBSD returns the mod time of the symlink's containing
2758 # directory).
2759 if (
2760 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2761 if test "$*" = "X"; then
2762 # -L didn't work.
2763 set X `ls -t "$srcdir/configure" conftest.file`
2764 fi
2765 rm -f conftest.file
2766 if test "$*" != "X $srcdir/configure conftest.file" \
2767 && test "$*" != "X conftest.file $srcdir/configure"; then
2768
2769 # If neither matched, then we have a broken ls. This can happen
2770 # if, for instance, CONFIG_SHELL is bash and it inherits a
2771 # broken ls alias from the environment. This has actually
2772 # happened. Such a system could not be considered "sane".
2773 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2774 alias in your environment" "$LINENO" 5
2775 fi
2776
2777 test "$2" = conftest.file
2778 )
2779 then
2780 # Ok.
2781 :
2782 else
2783 as_fn_error "newly created file is older than distributed files!
2784 Check your system clock" "$LINENO" 5
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2787 $as_echo "yes" >&6; }
2788 test "$program_prefix" != NONE &&
2789 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2790 # Use a double $ so make ignores it.
2791 test "$program_suffix" != NONE &&
2792 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2793 # Double any \ or $.
2794 # By default was `s,x,x', remove it if useless.
2795 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2796 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2797
2798 # expand $ac_aux_dir to an absolute path
2799 am_aux_dir=`cd $ac_aux_dir && pwd`
2800
2801 if test x"${MISSING+set}" != xset; then
2802 case $am_aux_dir in
2803 *\ * | *\ *)
2804 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2805 *)
2806 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2807 esac
2808 fi
2809 # Use eval to expand $SHELL
2810 if eval "$MISSING --run true"; then
2811 am_missing_run="$MISSING --run "
2812 else
2813 am_missing_run=
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2815 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2816 fi
2817
2818 if test x"${install_sh}" != xset; then
2819 case $am_aux_dir in
2820 *\ * | *\ *)
2821 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2822 *)
2823 install_sh="\${SHELL} $am_aux_dir/install-sh"
2824 esac
2825 fi
2826
2827 # Installed binaries are usually stripped using `strip' when the user
2828 # run `make install-strip'. However `strip' might not be the right
2829 # tool to use in cross-compilation environments, therefore Automake
2830 # will honor the `STRIP' environment variable to overrule this program.
2831 if test "$cross_compiling" != no; then
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}strip; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if test "${ac_cv_prog_STRIP+set}" = set; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$STRIP"; then
2841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 STRIP=$ac_cv_prog_STRIP
2861 if test -n "$STRIP"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2863 $as_echo "$STRIP" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869
2870 fi
2871 if test -z "$ac_cv_prog_STRIP"; then
2872 ac_ct_STRIP=$STRIP
2873 # Extract the first word of "strip", so it can be a program name with args.
2874 set dummy strip; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$ac_ct_STRIP"; then
2881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_ac_ct_STRIP="strip"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2901 if test -n "$ac_ct_STRIP"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2903 $as_echo "$ac_ct_STRIP" >&6; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907 fi
2908
2909 if test "x$ac_ct_STRIP" = x; then
2910 STRIP=":"
2911 else
2912 case $cross_compiling:$ac_tool_warned in
2913 yes:)
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918 STRIP=$ac_ct_STRIP
2919 fi
2920 else
2921 STRIP="$ac_cv_prog_STRIP"
2922 fi
2923
2924 fi
2925 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2926
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2928 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2929 if test -z "$MKDIR_P"; then
2930 if test "${ac_cv_path_mkdir+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_prog in mkdir gmkdir; do
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2941 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2942 'mkdir (GNU coreutils) '* | \
2943 'mkdir (coreutils) '* | \
2944 'mkdir (fileutils) '4.1*)
2945 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2946 break 3;;
2947 esac
2948 done
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954
2955 if test "${ac_cv_path_mkdir+set}" = set; then
2956 MKDIR_P="$ac_cv_path_mkdir -p"
2957 else
2958 # As a last resort, use the slow shell script. Don't cache a
2959 # value for MKDIR_P within a source directory, because that will
2960 # break other packages using the cache if that directory is
2961 # removed, or if the value is a relative name.
2962 test -d ./--version && rmdir ./--version
2963 MKDIR_P="$ac_install_sh -d"
2964 fi
2965 fi
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2967 $as_echo "$MKDIR_P" >&6; }
2968
2969 mkdir_p="$MKDIR_P"
2970 case $mkdir_p in
2971 [\\/$]* | ?:[\\/]*) ;;
2972 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2973 esac
2974
2975 for ac_prog in gawk mawk nawk awk
2976 do
2977 # Extract the first word of "$ac_prog", so it can be a program name with args.
2978 set dummy $ac_prog; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if test "${ac_cv_prog_AWK+set}" = set; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$AWK"; then
2985 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994 ac_cv_prog_AWK="$ac_prog"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 AWK=$ac_cv_prog_AWK
3005 if test -n "$AWK"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3007 $as_echo "$AWK" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 fi
3012
3013
3014 test -n "$AWK" && break
3015 done
3016
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3018 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3019 set x ${MAKE-make}
3020 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3021 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 cat >conftest.make <<\_ACEOF
3025 SHELL = /bin/sh
3026 all:
3027 @echo '@@@%%%=$(MAKE)=@@@%%%'
3028 _ACEOF
3029 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3030 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3031 *@@@%%%=?*=@@@%%%*)
3032 eval ac_cv_prog_make_${ac_make}_set=yes;;
3033 *)
3034 eval ac_cv_prog_make_${ac_make}_set=no;;
3035 esac
3036 rm -f conftest.make
3037 fi
3038 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3040 $as_echo "yes" >&6; }
3041 SET_MAKE=
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 SET_MAKE="MAKE=${MAKE-make}"
3046 fi
3047
3048 rm -rf .tst 2>/dev/null
3049 mkdir .tst 2>/dev/null
3050 if test -d .tst; then
3051 am__leading_dot=.
3052 else
3053 am__leading_dot=_
3054 fi
3055 rmdir .tst 2>/dev/null
3056
3057 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3058 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3059 # is not polluted with repeated "-I."
3060 am__isrc=' -I$(srcdir)'
3061 # test to see if srcdir already configured
3062 if test -f $srcdir/config.status; then
3063 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3064 fi
3065 fi
3066
3067 # test whether we have cygpath
3068 if test -z "$CYGPATH_W"; then
3069 if (cygpath --version) >/dev/null 2>/dev/null; then
3070 CYGPATH_W='cygpath -w'
3071 else
3072 CYGPATH_W=echo
3073 fi
3074 fi
3075
3076
3077 # Define the identity of the package.
3078 PACKAGE='package-unused'
3079 VERSION='version-unused'
3080
3081
3082 cat >>confdefs.h <<_ACEOF
3083 #define PACKAGE "$PACKAGE"
3084 _ACEOF
3085
3086
3087 cat >>confdefs.h <<_ACEOF
3088 #define VERSION "$VERSION"
3089 _ACEOF
3090
3091 # Some tools Automake needs.
3092
3093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3094
3095
3096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3097
3098
3099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3100
3101
3102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3103
3104
3105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3106
3107 # We need awk for the "check" target. The system "awk" is bad on
3108 # some platforms.
3109 # Always define AMTAR for backward compatibility.
3110
3111 AMTAR=${AMTAR-"${am_missing_run}tar"}
3112
3113 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3114
3115
3116
3117
3118
3119
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3121 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3122 # Check whether --enable-maintainer-mode was given.
3123 if test "${enable_maintainer_mode+set}" = set; then :
3124 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3125 else
3126 USE_MAINTAINER_MODE=no
3127 fi
3128
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3130 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3131 if test $USE_MAINTAINER_MODE = yes; then
3132 MAINTAINER_MODE_TRUE=
3133 MAINTAINER_MODE_FALSE='#'
3134 else
3135 MAINTAINER_MODE_TRUE='#'
3136 MAINTAINER_MODE_FALSE=
3137 fi
3138
3139 MAINT=$MAINTAINER_MODE_TRUE
3140
3141
3142
3143 # Calculate toolexeclibdir
3144 # Also toolexecdir, though it's only used in toolexeclibdir
3145 case ${version_specific_libs} in
3146 yes)
3147 # Need the gcc compiler version to know where to install libraries
3148 # and header files if --enable-version-specific-runtime-libs option
3149 # is selected.
3150 toolexecdir='$(libdir)/gcc/$(target_alias)'
3151 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3152 ;;
3153 no)
3154 if test -n "$with_cross_host" &&
3155 test x"$with_cross_host" != x"no"; then
3156 # Install a library built with a cross compiler in tooldir, not libdir.
3157 toolexecdir='$(exec_prefix)/$(target_alias)'
3158 toolexeclibdir='$(toolexecdir)/lib'
3159 else
3160 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3161 toolexeclibdir='$(libdir)'
3162 fi
3163 multi_os_directory=`$CC -print-multi-os-directory`
3164 case $multi_os_directory in
3165 .) ;; # Avoid trailing /.
3166 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3167 esac
3168 ;;
3169 esac
3170
3171
3172
3173 # Checks for programs.
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_CC+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 fi
3218 if test -z "$ac_cv_prog_CC"; then
3219 ac_ct_CC=$CC
3220 # Extract the first word of "gcc", so it can be a program name with args.
3221 set dummy gcc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$ac_ct_CC"; then
3228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_ac_ct_CC="gcc"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248 if test -n "$ac_ct_CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 $as_echo "$ac_ct_CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256 if test "x$ac_ct_CC" = x; then
3257 CC=""
3258 else
3259 case $cross_compiling:$ac_tool_warned in
3260 yes:)
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3264 esac
3265 CC=$ac_ct_CC
3266 fi
3267 else
3268 CC="$ac_cv_prog_CC"
3269 fi
3270
3271 if test -z "$CC"; then
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC="${ac_tool_prefix}cc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 fi
3312 if test -z "$CC"; then
3313 # Extract the first word of "cc", so it can be a program name with args.
3314 set dummy cc; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_prog_CC+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 ac_prog_rejected=no
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3332 ac_prog_rejected=yes
3333 continue
3334 fi
3335 ac_cv_prog_CC="cc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 if test $ac_prog_rejected = yes; then
3344 # We found a bogon in the path, so make sure we never use it.
3345 set dummy $ac_cv_prog_CC
3346 shift
3347 if test $# != 0; then
3348 # We chose a different compiler from the bogus one.
3349 # However, it has the same basename, so the bogon will be chosen
3350 # first if we set CC to just the basename; use the full file name.
3351 shift
3352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3353 fi
3354 fi
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366
3367 fi
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 for ac_prog in cl.exe
3371 do
3372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if test "${ac_cv_prog_CC+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393 done
3394 done
3395 IFS=$as_save_IFS
3396
3397 fi
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 $as_echo "$CC" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409 test -n "$CC" && break
3410 done
3411 fi
3412 if test -z "$CC"; then
3413 ac_ct_CC=$CC
3414 for ac_prog in cl.exe
3415 do
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_ac_ct_CC="$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi
3442 fi
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 $as_echo "$ac_ct_CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451
3452
3453 test -n "$ac_ct_CC" && break
3454 done
3455
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3466 fi
3467 fi
3468
3469 fi
3470
3471
3472 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error "no acceptable C compiler found in \$PATH
3475 See \`config.log' for more details." "$LINENO" 5; }
3476
3477 # Provide some information about the compiler.
3478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3479 set X $ac_compile
3480 ac_compiler=$2
3481 for ac_option in --version -v -V -qversion; do
3482 { { ac_try="$ac_compiler $ac_option >&5"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490 ac_status=$?
3491 if test -s conftest.err; then
3492 sed '10a\
3493 ... rest of stderr output deleted ...
3494 10q' conftest.err >conftest.er1
3495 cat conftest.er1 >&5
3496 rm -f conftest.er1 conftest.err
3497 fi
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 done
3501
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 ac_clean_files_save=$ac_clean_files
3514 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3515 # Try to create an executable without -o first, disregard a.out.
3516 # It will help us diagnose broken compilers, and finding out an intuition
3517 # of exeext.
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3519 $as_echo_n "checking for C compiler default output file name... " >&6; }
3520 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3521
3522 # The possible output files:
3523 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3524
3525 ac_rmfiles=
3526 for ac_file in $ac_files
3527 do
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531 esac
3532 done
3533 rm -f $ac_rmfiles
3534
3535 if { { ac_try="$ac_link_default"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link_default") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; then :
3546 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3547 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3548 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3549 # so that the user can short-circuit this test for compilers unknown to
3550 # Autoconf.
3551 for ac_file in $ac_files ''
3552 do
3553 test -f "$ac_file" || continue
3554 case $ac_file in
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3556 ;;
3557 [ab].out )
3558 # We found the default executable, but exeext='' is most
3559 # certainly right.
3560 break;;
3561 *.* )
3562 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 then :; else
3564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565 fi
3566 # We set ac_cv_exeext here because the later test for it is not
3567 # safe: cross compilers may not add the suffix if given an `-o'
3568 # argument, so we may need to know it at that point already.
3569 # Even if this section looks crufty: it has the advantage of
3570 # actually working.
3571 break;;
3572 * )
3573 break;;
3574 esac
3575 done
3576 test "$ac_cv_exeext" = no && ac_cv_exeext=
3577
3578 else
3579 ac_file=''
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3582 $as_echo "$ac_file" >&6; }
3583 if test -z "$ac_file"; then :
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 { as_fn_set_status 77
3590 as_fn_error "C compiler cannot create executables
3591 See \`config.log' for more details." "$LINENO" 5; }; }
3592 fi
3593 ac_exeext=$ac_cv_exeext
3594
3595 # Check that the compiler produces executables we can run. If not, either
3596 # the compiler is broken, or we cross compile.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598 $as_echo_n "checking whether the C compiler works... " >&6; }
3599 # If not cross compiling, check that we can run a simple program.
3600 if test "$cross_compiling" != yes; then
3601 if { ac_try='./$ac_file'
3602 { { case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_try") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; }; then
3612 cross_compiling=no
3613 else
3614 if test "$cross_compiling" = maybe; then
3615 cross_compiling=yes
3616 else
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot run C compiled programs.
3620 If you meant to cross compile, use \`--host'.
3621 See \`config.log' for more details." "$LINENO" 5; }
3622 fi
3623 fi
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3627
3628 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3629 ac_clean_files=$ac_clean_files_save
3630 # Check that the compiler produces executables we can run. If not, either
3631 # the compiler is broken, or we cross compile.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3633 $as_echo_n "checking whether we are cross compiling... " >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3635 $as_echo "$cross_compiling" >&6; }
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3638 $as_echo_n "checking for suffix of executables... " >&6; }
3639 if { { ac_try="$ac_link"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3651 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3652 # work properly (i.e., refer to `conftest.exe'), while it won't with
3653 # `rm'.
3654 for ac_file in conftest.exe conftest conftest.*; do
3655 test -f "$ac_file" || continue
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3659 break;;
3660 * ) break;;
3661 esac
3662 done
3663 else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error "cannot compute suffix of executables: cannot compile and link
3667 See \`config.log' for more details." "$LINENO" 5; }
3668 fi
3669 rm -f conftest$ac_cv_exeext
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3671 $as_echo "$ac_cv_exeext" >&6; }
3672
3673 rm -f conftest.$ac_ext
3674 EXEEXT=$ac_cv_exeext
3675 ac_exeext=$EXEEXT
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3677 $as_echo_n "checking for suffix of object files... " >&6; }
3678 if test "${ac_cv_objext+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.o conftest.obj
3693 if { { ac_try="$ac_compile"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_compile") 2>&5
3701 ac_status=$?
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }; then :
3704 for ac_file in conftest.o conftest.obj conftest.*; do
3705 test -f "$ac_file" || continue;
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 break;;
3710 esac
3711 done
3712 else
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error "cannot compute suffix of object files: cannot compile
3719 See \`config.log' for more details." "$LINENO" 5; }
3720 fi
3721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3724 $as_echo "$ac_cv_objext" >&6; }
3725 OBJEXT=$ac_cv_objext
3726 ac_objext=$OBJEXT
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3728 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3729 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734
3735 int
3736 main ()
3737 {
3738 #ifndef __GNUC__
3739 choke me
3740 #endif
3741
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_compiler_gnu=yes
3748 else
3749 ac_compiler_gnu=no
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3756 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3757 if test $ac_compiler_gnu = yes; then
3758 GCC=yes
3759 else
3760 GCC=
3761 fi
3762 ac_test_CFLAGS=${CFLAGS+set}
3763 ac_save_CFLAGS=$CFLAGS
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3765 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3766 if test "${ac_cv_prog_cc_g+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 ac_save_c_werror_flag=$ac_c_werror_flag
3770 ac_c_werror_flag=yes
3771 ac_cv_prog_cc_g=no
3772 CFLAGS="-g"
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775
3776 int
3777 main ()
3778 {
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_g=yes
3786 else
3787 CFLAGS=""
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790
3791 int
3792 main ()
3793 {
3794
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800
3801 else
3802 ac_c_werror_flag=$ac_save_c_werror_flag
3803 CFLAGS="-g"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806
3807 int
3808 main ()
3809 {
3810
3811 ;
3812 return 0;
3813 }
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_g=yes
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 fi
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3826 $as_echo "$ac_cv_prog_cc_g" >&6; }
3827 if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3831 CFLAGS="-g -O2"
3832 else
3833 CFLAGS="-g"
3834 fi
3835 else
3836 if test "$GCC" = yes; then
3837 CFLAGS="-O2"
3838 else
3839 CFLAGS=
3840 fi
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3843 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3844 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_cv_prog_cc_c89=no
3848 ac_save_CC=$CC
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851 #include <stdarg.h>
3852 #include <stdio.h>
3853 #include <sys/types.h>
3854 #include <sys/stat.h>
3855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3856 struct buf { int x; };
3857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3858 static char *e (p, i)
3859 char **p;
3860 int i;
3861 {
3862 return p[i];
3863 }
3864 static char *f (char * (*g) (char **, int), char **p, ...)
3865 {
3866 char *s;
3867 va_list v;
3868 va_start (v,p);
3869 s = g (p, va_arg (v,int));
3870 va_end (v);
3871 return s;
3872 }
3873
3874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3875 function prototypes and stuff, but not '\xHH' hex character constants.
3876 These don't provoke an error unfortunately, instead are silently treated
3877 as 'x'. The following induces an error, until -std is added to get
3878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3879 array size at least. It's necessary to write '\x00'==0 to get something
3880 that's true only with -std. */
3881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3882
3883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3884 inside strings and character constants. */
3885 #define FOO(x) 'x'
3886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3887
3888 int test (int i, double x);
3889 struct s1 {int (*f) (int a);};
3890 struct s2 {int (*f) (double a);};
3891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 int argc;
3893 char **argv;
3894 int
3895 main ()
3896 {
3897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3904 do
3905 CC="$ac_save_CC $ac_arg"
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907 ac_cv_prog_cc_c89=$ac_arg
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext
3910 test "x$ac_cv_prog_cc_c89" != "xno" && break
3911 done
3912 rm -f conftest.$ac_ext
3913 CC=$ac_save_CC
3914
3915 fi
3916 # AC_CACHE_VAL
3917 case "x$ac_cv_prog_cc_c89" in
3918 x)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3920 $as_echo "none needed" >&6; } ;;
3921 xno)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3923 $as_echo "unsupported" >&6; } ;;
3924 *)
3925 CC="$CC $ac_cv_prog_cc_c89"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3928 esac
3929 if test "x$ac_cv_prog_cc_c89" != xno; then :
3930
3931 fi
3932
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938 DEPDIR="${am__leading_dot}deps"
3939
3940 ac_config_commands="$ac_config_commands depfiles"
3941
3942
3943 am_make=${MAKE-make}
3944 cat > confinc << 'END'
3945 am__doit:
3946 @echo this is the am__doit target
3947 .PHONY: am__doit
3948 END
3949 # If we don't find an include directive, just comment out the code.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3951 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3952 am__include="#"
3953 am__quote=
3954 _am_result=none
3955 # First try GNU make style include.
3956 echo "include confinc" > confmf
3957 # Ignore all kinds of additional output from `make'.
3958 case `$am_make -s -f confmf 2> /dev/null` in #(
3959 *the\ am__doit\ target*)
3960 am__include=include
3961 am__quote=
3962 _am_result=GNU
3963 ;;
3964 esac
3965 # Now try BSD make style include.
3966 if test "$am__include" = "#"; then
3967 echo '.include "confinc"' > confmf
3968 case `$am_make -s -f confmf 2> /dev/null` in #(
3969 *the\ am__doit\ target*)
3970 am__include=.include
3971 am__quote="\""
3972 _am_result=BSD
3973 ;;
3974 esac
3975 fi
3976
3977
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3979 $as_echo "$_am_result" >&6; }
3980 rm -f confinc confmf
3981
3982 # Check whether --enable-dependency-tracking was given.
3983 if test "${enable_dependency_tracking+set}" = set; then :
3984 enableval=$enable_dependency_tracking;
3985 fi
3986
3987 if test "x$enable_dependency_tracking" != xno; then
3988 am_depcomp="$ac_aux_dir/depcomp"
3989 AMDEPBACKSLASH='\'
3990 fi
3991 if test "x$enable_dependency_tracking" != xno; then
3992 AMDEP_TRUE=
3993 AMDEP_FALSE='#'
3994 else
3995 AMDEP_TRUE='#'
3996 AMDEP_FALSE=
3997 fi
3998
3999
4000
4001 depcc="$CC" am_compiler_list=
4002
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4004 $as_echo_n "checking dependency style of $depcc... " >&6; }
4005 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4009 # We make a subdir and do the tests there. Otherwise we can end up
4010 # making bogus files that we don't know about and never remove. For
4011 # instance it was reported that on HP-UX the gcc test will end up
4012 # making a dummy file named `D' -- because `-MD' means `put the output
4013 # in D'.
4014 mkdir conftest.dir
4015 # Copy depcomp to subdir because otherwise we won't find it if we're
4016 # using a relative directory.
4017 cp "$am_depcomp" conftest.dir
4018 cd conftest.dir
4019 # We will build objects and dependencies in a subdirectory because
4020 # it helps to detect inapplicable dependency modes. For instance
4021 # both Tru64's cc and ICC support -MD to output dependencies as a
4022 # side effect of compilation, but ICC will put the dependencies in
4023 # the current directory while Tru64 will put them in the object
4024 # directory.
4025 mkdir sub
4026
4027 am_cv_CC_dependencies_compiler_type=none
4028 if test "$am_compiler_list" = ""; then
4029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4030 fi
4031 am__universal=false
4032 case " $depcc " in #(
4033 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4034 esac
4035
4036 for depmode in $am_compiler_list; do
4037 # Setup a source with many dependencies, because some compilers
4038 # like to wrap large dependency lists on column 80 (with \), and
4039 # we should not choose a depcomp mode which is confused by this.
4040 #
4041 # We need to recreate these files for each test, as the compiler may
4042 # overwrite some of them when testing with obscure command lines.
4043 # This happens at least with the AIX C compiler.
4044 : > sub/conftest.c
4045 for i in 1 2 3 4 5 6; do
4046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4047 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4048 # Solaris 8's {/usr,}/bin/sh.
4049 touch sub/conftst$i.h
4050 done
4051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4052
4053 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4054 # mode. It turns out that the SunPro C++ compiler does not properly
4055 # handle `-M -o', and we need to detect this. Also, some Intel
4056 # versions had trouble with output in subdirs
4057 am__obj=sub/conftest.${OBJEXT-o}
4058 am__minus_obj="-o $am__obj"
4059 case $depmode in
4060 gcc)
4061 # This depmode causes a compiler race in universal mode.
4062 test "$am__universal" = false || continue
4063 ;;
4064 nosideeffect)
4065 # after this tag, mechanisms are not by side-effect, so they'll
4066 # only be used when explicitly requested
4067 if test "x$enable_dependency_tracking" = xyes; then
4068 continue
4069 else
4070 break
4071 fi
4072 ;;
4073 msvisualcpp | msvcmsys)
4074 # This compiler won't grok `-c -o', but also, the minuso test has
4075 # not run yet. These depmodes are late enough in the game, and
4076 # so weak that their functioning should not be impacted.
4077 am__obj=conftest.${OBJEXT-o}
4078 am__minus_obj=
4079 ;;
4080 none) break ;;
4081 esac
4082 if depmode=$depmode \
4083 source=sub/conftest.c object=$am__obj \
4084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4086 >/dev/null 2>conftest.err &&
4087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4091 # icc doesn't choke on unknown options, it will just issue warnings
4092 # or remarks (even with -Werror). So we grep stderr for any message
4093 # that says an option was ignored or not supported.
4094 # When given -MP, icc 7.0 and 7.1 complain thusly:
4095 # icc: Command line warning: ignoring option '-M'; no argument required
4096 # The diagnosis changed in icc 8.0:
4097 # icc: Command line remark: option '-MP' not supported
4098 if (grep 'ignoring option' conftest.err ||
4099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4100 am_cv_CC_dependencies_compiler_type=$depmode
4101 break
4102 fi
4103 fi
4104 done
4105
4106 cd ..
4107 rm -rf conftest.dir
4108 else
4109 am_cv_CC_dependencies_compiler_type=none
4110 fi
4111
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4114 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4115 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4116
4117 if
4118 test "x$enable_dependency_tracking" != xno \
4119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4120 am__fastdepCC_TRUE=
4121 am__fastdepCC_FALSE='#'
4122 else
4123 am__fastdepCC_TRUE='#'
4124 am__fastdepCC_FALSE=
4125 fi
4126
4127
4128 ac_ext=cpp
4129 ac_cpp='$CXXCPP $CPPFLAGS'
4130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4133 if test -z "$CXX"; then
4134 if test -n "$CCC"; then
4135 CXX=$CCC
4136 else
4137 if test -n "$ac_tool_prefix"; then
4138 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4139 do
4140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if test "${ac_cv_prog_CXX+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -n "$CXX"; then
4148 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 CXX=$ac_cv_prog_CXX
4168 if test -n "$CXX"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4170 $as_echo "$CXX" >&6; }
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177 test -n "$CXX" && break
4178 done
4179 fi
4180 if test -z "$CXX"; then
4181 ac_ct_CXX=$CXX
4182 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4183 do
4184 # Extract the first word of "$ac_prog", so it can be a program name with args.
4185 set dummy $ac_prog; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 if test -n "$ac_ct_CXX"; then
4192 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_ac_ct_CXX="$ac_prog"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4204 fi
4205 done
4206 done
4207 IFS=$as_save_IFS
4208
4209 fi
4210 fi
4211 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4212 if test -n "$ac_ct_CXX"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4214 $as_echo "$ac_ct_CXX" >&6; }
4215 else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4218 fi
4219
4220
4221 test -n "$ac_ct_CXX" && break
4222 done
4223
4224 if test "x$ac_ct_CXX" = x; then
4225 CXX="g++"
4226 else
4227 case $cross_compiling:$ac_tool_warned in
4228 yes:)
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231 ac_tool_warned=yes ;;
4232 esac
4233 CXX=$ac_ct_CXX
4234 fi
4235 fi
4236
4237 fi
4238 fi
4239 # Provide some information about the compiler.
4240 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4241 set X $ac_compile
4242 ac_compiler=$2
4243 for ac_option in --version -v -V -qversion; do
4244 { { ac_try="$ac_compiler $ac_option >&5"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4252 ac_status=$?
4253 if test -s conftest.err; then
4254 sed '10a\
4255 ... rest of stderr output deleted ...
4256 10q' conftest.err >conftest.er1
4257 cat conftest.er1 >&5
4258 rm -f conftest.er1 conftest.err
4259 fi
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }
4262 done
4263
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4265 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4266 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271
4272 int
4273 main ()
4274 {
4275 #ifndef __GNUC__
4276 choke me
4277 #endif
4278
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 if ac_fn_cxx_try_compile "$LINENO"; then :
4284 ac_compiler_gnu=yes
4285 else
4286 ac_compiler_gnu=no
4287 fi
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4290
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4293 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4294 if test $ac_compiler_gnu = yes; then
4295 GXX=yes
4296 else
4297 GXX=
4298 fi
4299 ac_test_CXXFLAGS=${CXXFLAGS+set}
4300 ac_save_CXXFLAGS=$CXXFLAGS
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4302 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4303 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4307 ac_cxx_werror_flag=yes
4308 ac_cv_prog_cxx_g=no
4309 CXXFLAGS="-g"
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312
4313 int
4314 main ()
4315 {
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_cxx_try_compile "$LINENO"; then :
4322 ac_cv_prog_cxx_g=yes
4323 else
4324 CXXFLAGS=""
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327
4328 int
4329 main ()
4330 {
4331
4332 ;
4333 return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_cxx_try_compile "$LINENO"; then :
4337
4338 else
4339 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4340 CXXFLAGS="-g"
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343
4344 int
4345 main ()
4346 {
4347
4348 ;
4349 return 0;
4350 }
4351 _ACEOF
4352 if ac_fn_cxx_try_compile "$LINENO"; then :
4353 ac_cv_prog_cxx_g=yes
4354 fi
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 fi
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4363 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4364 if test "$ac_test_CXXFLAGS" = set; then
4365 CXXFLAGS=$ac_save_CXXFLAGS
4366 elif test $ac_cv_prog_cxx_g = yes; then
4367 if test "$GXX" = yes; then
4368 CXXFLAGS="-g -O2"
4369 else
4370 CXXFLAGS="-g"
4371 fi
4372 else
4373 if test "$GXX" = yes; then
4374 CXXFLAGS="-O2"
4375 else
4376 CXXFLAGS=
4377 fi
4378 fi
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384
4385 depcc="$CXX" am_compiler_list=
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4388 $as_echo_n "checking dependency style of $depcc... " >&6; }
4389 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4393 # We make a subdir and do the tests there. Otherwise we can end up
4394 # making bogus files that we don't know about and never remove. For
4395 # instance it was reported that on HP-UX the gcc test will end up
4396 # making a dummy file named `D' -- because `-MD' means `put the output
4397 # in D'.
4398 mkdir conftest.dir
4399 # Copy depcomp to subdir because otherwise we won't find it if we're
4400 # using a relative directory.
4401 cp "$am_depcomp" conftest.dir
4402 cd conftest.dir
4403 # We will build objects and dependencies in a subdirectory because
4404 # it helps to detect inapplicable dependency modes. For instance
4405 # both Tru64's cc and ICC support -MD to output dependencies as a
4406 # side effect of compilation, but ICC will put the dependencies in
4407 # the current directory while Tru64 will put them in the object
4408 # directory.
4409 mkdir sub
4410
4411 am_cv_CXX_dependencies_compiler_type=none
4412 if test "$am_compiler_list" = ""; then
4413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4414 fi
4415 am__universal=false
4416 case " $depcc " in #(
4417 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4418 esac
4419
4420 for depmode in $am_compiler_list; do
4421 # Setup a source with many dependencies, because some compilers
4422 # like to wrap large dependency lists on column 80 (with \), and
4423 # we should not choose a depcomp mode which is confused by this.
4424 #
4425 # We need to recreate these files for each test, as the compiler may
4426 # overwrite some of them when testing with obscure command lines.
4427 # This happens at least with the AIX C compiler.
4428 : > sub/conftest.c
4429 for i in 1 2 3 4 5 6; do
4430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4432 # Solaris 8's {/usr,}/bin/sh.
4433 touch sub/conftst$i.h
4434 done
4435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4436
4437 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4438 # mode. It turns out that the SunPro C++ compiler does not properly
4439 # handle `-M -o', and we need to detect this. Also, some Intel
4440 # versions had trouble with output in subdirs
4441 am__obj=sub/conftest.${OBJEXT-o}
4442 am__minus_obj="-o $am__obj"
4443 case $depmode in
4444 gcc)
4445 # This depmode causes a compiler race in universal mode.
4446 test "$am__universal" = false || continue
4447 ;;
4448 nosideeffect)
4449 # after this tag, mechanisms are not by side-effect, so they'll
4450 # only be used when explicitly requested
4451 if test "x$enable_dependency_tracking" = xyes; then
4452 continue
4453 else
4454 break
4455 fi
4456 ;;
4457 msvisualcpp | msvcmsys)
4458 # This compiler won't grok `-c -o', but also, the minuso test has
4459 # not run yet. These depmodes are late enough in the game, and
4460 # so weak that their functioning should not be impacted.
4461 am__obj=conftest.${OBJEXT-o}
4462 am__minus_obj=
4463 ;;
4464 none) break ;;
4465 esac
4466 if depmode=$depmode \
4467 source=sub/conftest.c object=$am__obj \
4468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4470 >/dev/null 2>conftest.err &&
4471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4475 # icc doesn't choke on unknown options, it will just issue warnings
4476 # or remarks (even with -Werror). So we grep stderr for any message
4477 # that says an option was ignored or not supported.
4478 # When given -MP, icc 7.0 and 7.1 complain thusly:
4479 # icc: Command line warning: ignoring option '-M'; no argument required
4480 # The diagnosis changed in icc 8.0:
4481 # icc: Command line remark: option '-MP' not supported
4482 if (grep 'ignoring option' conftest.err ||
4483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4484 am_cv_CXX_dependencies_compiler_type=$depmode
4485 break
4486 fi
4487 fi
4488 done
4489
4490 cd ..
4491 rm -rf conftest.dir
4492 else
4493 am_cv_CXX_dependencies_compiler_type=none
4494 fi
4495
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4498 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4499 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4500
4501 if
4502 test "x$enable_dependency_tracking" != xno \
4503 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4504 am__fastdepCXX_TRUE=
4505 am__fastdepCXX_FALSE='#'
4506 else
4507 am__fastdepCXX_TRUE='#'
4508 am__fastdepCXX_FALSE=
4509 fi
4510
4511
4512 # By default we simply use the C compiler to build assembly code.
4513
4514 test "${CCAS+set}" = set || CCAS=$CC
4515 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4516
4517
4518
4519 depcc="$CCAS" am_compiler_list=
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4522 $as_echo_n "checking dependency style of $depcc... " >&6; }
4523 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4527 # We make a subdir and do the tests there. Otherwise we can end up
4528 # making bogus files that we don't know about and never remove. For
4529 # instance it was reported that on HP-UX the gcc test will end up
4530 # making a dummy file named `D' -- because `-MD' means `put the output
4531 # in D'.
4532 mkdir conftest.dir
4533 # Copy depcomp to subdir because otherwise we won't find it if we're
4534 # using a relative directory.
4535 cp "$am_depcomp" conftest.dir
4536 cd conftest.dir
4537 # We will build objects and dependencies in a subdirectory because
4538 # it helps to detect inapplicable dependency modes. For instance
4539 # both Tru64's cc and ICC support -MD to output dependencies as a
4540 # side effect of compilation, but ICC will put the dependencies in
4541 # the current directory while Tru64 will put them in the object
4542 # directory.
4543 mkdir sub
4544
4545 am_cv_CCAS_dependencies_compiler_type=none
4546 if test "$am_compiler_list" = ""; then
4547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4548 fi
4549 am__universal=false
4550
4551
4552 for depmode in $am_compiler_list; do
4553 # Setup a source with many dependencies, because some compilers
4554 # like to wrap large dependency lists on column 80 (with \), and
4555 # we should not choose a depcomp mode which is confused by this.
4556 #
4557 # We need to recreate these files for each test, as the compiler may
4558 # overwrite some of them when testing with obscure command lines.
4559 # This happens at least with the AIX C compiler.
4560 : > sub/conftest.c
4561 for i in 1 2 3 4 5 6; do
4562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4564 # Solaris 8's {/usr,}/bin/sh.
4565 touch sub/conftst$i.h
4566 done
4567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4568
4569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4570 # mode. It turns out that the SunPro C++ compiler does not properly
4571 # handle `-M -o', and we need to detect this. Also, some Intel
4572 # versions had trouble with output in subdirs
4573 am__obj=sub/conftest.${OBJEXT-o}
4574 am__minus_obj="-o $am__obj"
4575 case $depmode in
4576 gcc)
4577 # This depmode causes a compiler race in universal mode.
4578 test "$am__universal" = false || continue
4579 ;;
4580 nosideeffect)
4581 # after this tag, mechanisms are not by side-effect, so they'll
4582 # only be used when explicitly requested
4583 if test "x$enable_dependency_tracking" = xyes; then
4584 continue
4585 else
4586 break
4587 fi
4588 ;;
4589 msvisualcpp | msvcmsys)
4590 # This compiler won't grok `-c -o', but also, the minuso test has
4591 # not run yet. These depmodes are late enough in the game, and
4592 # so weak that their functioning should not be impacted.
4593 am__obj=conftest.${OBJEXT-o}
4594 am__minus_obj=
4595 ;;
4596 none) break ;;
4597 esac
4598 if depmode=$depmode \
4599 source=sub/conftest.c object=$am__obj \
4600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4601 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4602 >/dev/null 2>conftest.err &&
4603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4605 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4607 # icc doesn't choke on unknown options, it will just issue warnings
4608 # or remarks (even with -Werror). So we grep stderr for any message
4609 # that says an option was ignored or not supported.
4610 # When given -MP, icc 7.0 and 7.1 complain thusly:
4611 # icc: Command line warning: ignoring option '-M'; no argument required
4612 # The diagnosis changed in icc 8.0:
4613 # icc: Command line remark: option '-MP' not supported
4614 if (grep 'ignoring option' conftest.err ||
4615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4616 am_cv_CCAS_dependencies_compiler_type=$depmode
4617 break
4618 fi
4619 fi
4620 done
4621
4622 cd ..
4623 rm -rf conftest.dir
4624 else
4625 am_cv_CCAS_dependencies_compiler_type=none
4626 fi
4627
4628 fi
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4630 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4631 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4632
4633 if
4634 test "x$enable_dependency_tracking" != xno \
4635 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4636 am__fastdepCCAS_TRUE=
4637 am__fastdepCCAS_FALSE='#'
4638 else
4639 am__fastdepCCAS_TRUE='#'
4640 am__fastdepCCAS_FALSE=
4641 fi
4642
4643
4644
4645 enable_dlopen=yes
4646
4647
4648
4649 case `pwd` in
4650 *\ * | *\ *)
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4652 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4653 esac
4654
4655
4656
4657 macro_version='2.2.7a'
4658 macro_revision='1.3134'
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672 ltmain="$ac_aux_dir/ltmain.sh"
4673
4674 # Backslashify metacharacters that are still active within
4675 # double-quoted strings.
4676 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4677
4678 # Same as above, but do not quote variable references.
4679 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4680
4681 # Sed substitution to delay expansion of an escaped shell variable in a
4682 # double_quote_subst'ed string.
4683 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4684
4685 # Sed substitution to delay expansion of an escaped single quote.
4686 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4687
4688 # Sed substitution to avoid accidental globbing in evaled expressions
4689 no_glob_subst='s/\*/\\\*/g'
4690
4691 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4692 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4693 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4696 $as_echo_n "checking how to print strings... " >&6; }
4697 # Test print first, because it will be a builtin if present.
4698 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4699 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4700 ECHO='print -r --'
4701 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4702 ECHO='printf %s\n'
4703 else
4704 # Use this function as a fallback that always works.
4705 func_fallback_echo ()
4706 {
4707 eval 'cat <<_LTECHO_EOF
4708 $1
4709 _LTECHO_EOF'
4710 }
4711 ECHO='func_fallback_echo'
4712 fi
4713
4714 # func_echo_all arg...
4715 # Invoke $ECHO with all args, space-separated.
4716 func_echo_all ()
4717 {
4718 $ECHO ""
4719 }
4720
4721 case "$ECHO" in
4722 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4723 $as_echo "printf" >&6; } ;;
4724 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4725 $as_echo "print -r" >&6; } ;;
4726 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4727 $as_echo "cat" >&6; } ;;
4728 esac
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4744 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4745 if test "${ac_cv_path_SED+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4749 for ac_i in 1 2 3 4 5 6 7; do
4750 ac_script="$ac_script$as_nl$ac_script"
4751 done
4752 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4753 { ac_script=; unset ac_script;}
4754 if test -z "$SED"; then
4755 ac_path_SED_found=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_prog in sed gsed; do
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4765 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4766 # Check for GNU ac_path_SED and select it if it is found.
4767 # Check for GNU $ac_path_SED
4768 case `"$ac_path_SED" --version 2>&1` in
4769 *GNU*)
4770 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4771 *)
4772 ac_count=0
4773 $as_echo_n 0123456789 >"conftest.in"
4774 while :
4775 do
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo '' >> "conftest.nl"
4780 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 as_fn_arith $ac_count + 1 && ac_count=$as_val
4783 if test $ac_count -gt ${ac_path_SED_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_SED="$ac_path_SED"
4786 ac_path_SED_max=$ac_count
4787 fi
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4790 done
4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 esac
4793
4794 $ac_path_SED_found && break 3
4795 done
4796 done
4797 done
4798 IFS=$as_save_IFS
4799 if test -z "$ac_cv_path_SED"; then
4800 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4801 fi
4802 else
4803 ac_cv_path_SED=$SED
4804 fi
4805
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4808 $as_echo "$ac_cv_path_SED" >&6; }
4809 SED="$ac_cv_path_SED"
4810 rm -f conftest.sed
4811
4812 test -z "$SED" && SED=sed
4813 Xsed="$SED -e 1s/^X//"
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4826 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4827 if test "${ac_cv_path_GREP+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 if test -z "$GREP"; then
4831 ac_path_GREP_found=false
4832 # Loop through the user's path and test for each of PROGNAME-LIST
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4835 do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_prog in grep ggrep; do
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4841 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4842 # Check for GNU ac_path_GREP and select it if it is found.
4843 # Check for GNU $ac_path_GREP
4844 case `"$ac_path_GREP" --version 2>&1` in
4845 *GNU*)
4846 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4847 *)
4848 ac_count=0
4849 $as_echo_n 0123456789 >"conftest.in"
4850 while :
4851 do
4852 cat "conftest.in" "conftest.in" >"conftest.tmp"
4853 mv "conftest.tmp" "conftest.in"
4854 cp "conftest.in" "conftest.nl"
4855 $as_echo 'GREP' >> "conftest.nl"
4856 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4858 as_fn_arith $ac_count + 1 && ac_count=$as_val
4859 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4860 # Best one so far, save it but keep looking for a better one
4861 ac_cv_path_GREP="$ac_path_GREP"
4862 ac_path_GREP_max=$ac_count
4863 fi
4864 # 10*(2^10) chars as input seems more than enough
4865 test $ac_count -gt 10 && break
4866 done
4867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4868 esac
4869
4870 $ac_path_GREP_found && break 3
4871 done
4872 done
4873 done
4874 IFS=$as_save_IFS
4875 if test -z "$ac_cv_path_GREP"; then
4876 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4877 fi
4878 else
4879 ac_cv_path_GREP=$GREP
4880 fi
4881
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4884 $as_echo "$ac_cv_path_GREP" >&6; }
4885 GREP="$ac_cv_path_GREP"
4886
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4889 $as_echo_n "checking for egrep... " >&6; }
4890 if test "${ac_cv_path_EGREP+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4894 then ac_cv_path_EGREP="$GREP -E"
4895 else
4896 if test -z "$EGREP"; then
4897 ac_path_EGREP_found=false
4898 # Loop through the user's path and test for each of PROGNAME-LIST
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4901 do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_prog in egrep; do
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4907 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4908 # Check for GNU ac_path_EGREP and select it if it is found.
4909 # Check for GNU $ac_path_EGREP
4910 case `"$ac_path_EGREP" --version 2>&1` in
4911 *GNU*)
4912 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4913 *)
4914 ac_count=0
4915 $as_echo_n 0123456789 >"conftest.in"
4916 while :
4917 do
4918 cat "conftest.in" "conftest.in" >"conftest.tmp"
4919 mv "conftest.tmp" "conftest.in"
4920 cp "conftest.in" "conftest.nl"
4921 $as_echo 'EGREP' >> "conftest.nl"
4922 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4924 as_fn_arith $ac_count + 1 && ac_count=$as_val
4925 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4926 # Best one so far, save it but keep looking for a better one
4927 ac_cv_path_EGREP="$ac_path_EGREP"
4928 ac_path_EGREP_max=$ac_count
4929 fi
4930 # 10*(2^10) chars as input seems more than enough
4931 test $ac_count -gt 10 && break
4932 done
4933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4934 esac
4935
4936 $ac_path_EGREP_found && break 3
4937 done
4938 done
4939 done
4940 IFS=$as_save_IFS
4941 if test -z "$ac_cv_path_EGREP"; then
4942 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4943 fi
4944 else
4945 ac_cv_path_EGREP=$EGREP
4946 fi
4947
4948 fi
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4951 $as_echo "$ac_cv_path_EGREP" >&6; }
4952 EGREP="$ac_cv_path_EGREP"
4953
4954
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4956 $as_echo_n "checking for fgrep... " >&6; }
4957 if test "${ac_cv_path_FGREP+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4961 then ac_cv_path_FGREP="$GREP -F"
4962 else
4963 if test -z "$FGREP"; then
4964 ac_path_FGREP_found=false
4965 # Loop through the user's path and test for each of PROGNAME-LIST
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4968 do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_prog in fgrep; do
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4974 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4975 # Check for GNU ac_path_FGREP and select it if it is found.
4976 # Check for GNU $ac_path_FGREP
4977 case `"$ac_path_FGREP" --version 2>&1` in
4978 *GNU*)
4979 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4980 *)
4981 ac_count=0
4982 $as_echo_n 0123456789 >"conftest.in"
4983 while :
4984 do
4985 cat "conftest.in" "conftest.in" >"conftest.tmp"
4986 mv "conftest.tmp" "conftest.in"
4987 cp "conftest.in" "conftest.nl"
4988 $as_echo 'FGREP' >> "conftest.nl"
4989 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4991 as_fn_arith $ac_count + 1 && ac_count=$as_val
4992 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4993 # Best one so far, save it but keep looking for a better one
4994 ac_cv_path_FGREP="$ac_path_FGREP"
4995 ac_path_FGREP_max=$ac_count
4996 fi
4997 # 10*(2^10) chars as input seems more than enough
4998 test $ac_count -gt 10 && break
4999 done
5000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5001 esac
5002
5003 $ac_path_FGREP_found && break 3
5004 done
5005 done
5006 done
5007 IFS=$as_save_IFS
5008 if test -z "$ac_cv_path_FGREP"; then
5009 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5010 fi
5011 else
5012 ac_cv_path_FGREP=$FGREP
5013 fi
5014
5015 fi
5016 fi
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5018 $as_echo "$ac_cv_path_FGREP" >&6; }
5019 FGREP="$ac_cv_path_FGREP"
5020
5021
5022 test -z "$GREP" && GREP=grep
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 # Check whether --with-gnu-ld was given.
5043 if test "${with_gnu_ld+set}" = set; then :
5044 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5045 else
5046 with_gnu_ld=no
5047 fi
5048
5049 ac_prog=ld
5050 if test "$GCC" = yes; then
5051 # Check if gcc -print-prog-name=ld gives a path.
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5053 $as_echo_n "checking for ld used by $CC... " >&6; }
5054 case $host in
5055 *-*-mingw*)
5056 # gcc leaves a trailing carriage return which upsets mingw
5057 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5058 *)
5059 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5060 esac
5061 case $ac_prog in
5062 # Accept absolute paths.
5063 [\\/]* | ?:[\\/]*)
5064 re_direlt='/[^/][^/]*/\.\./'
5065 # Canonicalize the pathname of ld
5066 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5067 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5068 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5069 done
5070 test -z "$LD" && LD="$ac_prog"
5071 ;;
5072 "")
5073 # If it fails, then pretend we aren't using GCC.
5074 ac_prog=ld
5075 ;;
5076 *)
5077 # If it is relative, then search for the first ld in PATH.
5078 with_gnu_ld=unknown
5079 ;;
5080 esac
5081 elif test "$with_gnu_ld" = yes; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5083 $as_echo_n "checking for GNU ld... " >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5086 $as_echo_n "checking for non-GNU ld... " >&6; }
5087 fi
5088 if test "${lt_cv_path_LD+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -z "$LD"; then
5092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5093 for ac_dir in $PATH; do
5094 IFS="$lt_save_ifs"
5095 test -z "$ac_dir" && ac_dir=.
5096 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5097 lt_cv_path_LD="$ac_dir/$ac_prog"
5098 # Check to see if the program is GNU ld. I'd rather use --version,
5099 # but apparently some variants of GNU ld only accept -v.
5100 # Break only if it was the GNU/non-GNU ld that we prefer.
5101 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5102 *GNU* | *'with BFD'*)
5103 test "$with_gnu_ld" != no && break
5104 ;;
5105 *)
5106 test "$with_gnu_ld" != yes && break
5107 ;;
5108 esac
5109 fi
5110 done
5111 IFS="$lt_save_ifs"
5112 else
5113 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5114 fi
5115 fi
5116
5117 LD="$lt_cv_path_LD"
5118 if test -n "$LD"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5120 $as_echo "$LD" >&6; }
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5124 fi
5125 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5127 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5128 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5132 case `$LD -v 2>&1 </dev/null` in
5133 *GNU* | *'with BFD'*)
5134 lt_cv_prog_gnu_ld=yes
5135 ;;
5136 *)
5137 lt_cv_prog_gnu_ld=no
5138 ;;
5139 esac
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5142 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5143 with_gnu_ld=$lt_cv_prog_gnu_ld
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5154 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5155 if test "${lt_cv_path_NM+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$NM"; then
5159 # Let the user override the test.
5160 lt_cv_path_NM="$NM"
5161 else
5162 lt_nm_to_check="${ac_tool_prefix}nm"
5163 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5164 lt_nm_to_check="$lt_nm_to_check nm"
5165 fi
5166 for lt_tmp_nm in $lt_nm_to_check; do
5167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5168 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5169 IFS="$lt_save_ifs"
5170 test -z "$ac_dir" && ac_dir=.
5171 tmp_nm="$ac_dir/$lt_tmp_nm"
5172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5173 # Check to see if the nm accepts a BSD-compat flag.
5174 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5175 # nm: unknown option "B" ignored
5176 # Tru64's nm complains that /dev/null is an invalid object file
5177 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5178 */dev/null* | *'Invalid file or object type'*)
5179 lt_cv_path_NM="$tmp_nm -B"
5180 break
5181 ;;
5182 *)
5183 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5184 */dev/null*)
5185 lt_cv_path_NM="$tmp_nm -p"
5186 break
5187 ;;
5188 *)
5189 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5190 continue # so that we can try to find one that supports BSD flags
5191 ;;
5192 esac
5193 ;;
5194 esac
5195 fi
5196 done
5197 IFS="$lt_save_ifs"
5198 done
5199 : ${lt_cv_path_NM=no}
5200 fi
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5203 $as_echo "$lt_cv_path_NM" >&6; }
5204 if test "$lt_cv_path_NM" != "no"; then
5205 NM="$lt_cv_path_NM"
5206 else
5207 # Didn't find any BSD compatible name lister, look for dumpbin.
5208 if test -n "$DUMPBIN"; then :
5209 # Let the user override the test.
5210 else
5211 if test -n "$ac_tool_prefix"; then
5212 for ac_prog in dumpbin "link -dump"
5213 do
5214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$DUMPBIN"; then
5222 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5234 fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 DUMPBIN=$ac_cv_prog_DUMPBIN
5242 if test -n "$DUMPBIN"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5244 $as_echo "$DUMPBIN" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249
5250
5251 test -n "$DUMPBIN" && break
5252 done
5253 fi
5254 if test -z "$DUMPBIN"; then
5255 ac_ct_DUMPBIN=$DUMPBIN
5256 for ac_prog in dumpbin "link -dump"
5257 do
5258 # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 if test -n "$ac_ct_DUMPBIN"; then
5266 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279 done
5280 done
5281 IFS=$as_save_IFS
5282
5283 fi
5284 fi
5285 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5286 if test -n "$ac_ct_DUMPBIN"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5288 $as_echo "$ac_ct_DUMPBIN" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294
5295 test -n "$ac_ct_DUMPBIN" && break
5296 done
5297
5298 if test "x$ac_ct_DUMPBIN" = x; then
5299 DUMPBIN=":"
5300 else
5301 case $cross_compiling:$ac_tool_warned in
5302 yes:)
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305 ac_tool_warned=yes ;;
5306 esac
5307 DUMPBIN=$ac_ct_DUMPBIN
5308 fi
5309 fi
5310
5311 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5312 *COFF*)
5313 DUMPBIN="$DUMPBIN -symbols"
5314 ;;
5315 *)
5316 DUMPBIN=:
5317 ;;
5318 esac
5319 fi
5320
5321 if test "$DUMPBIN" != ":"; then
5322 NM="$DUMPBIN"
5323 fi
5324 fi
5325 test -z "$NM" && NM=nm
5326
5327
5328
5329
5330
5331
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5333 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5334 if test "${lt_cv_nm_interface+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 lt_cv_nm_interface="BSD nm"
5338 echo "int some_variable = 0;" > conftest.$ac_ext
5339 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5340 (eval "$ac_compile" 2>conftest.err)
5341 cat conftest.err >&5
5342 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5343 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5344 cat conftest.err >&5
5345 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5346 cat conftest.out >&5
5347 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5348 lt_cv_nm_interface="MS dumpbin"
5349 fi
5350 rm -f conftest*
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5353 $as_echo "$lt_cv_nm_interface" >&6; }
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5356 $as_echo_n "checking whether ln -s works... " >&6; }
5357 LN_S=$as_ln_s
5358 if test "$LN_S" = "ln -s"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5360 $as_echo "yes" >&6; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5363 $as_echo "no, using $LN_S" >&6; }
5364 fi
5365
5366 # find the maximum length of command line arguments
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5368 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5369 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 i=0
5373 teststring="ABCD"
5374
5375 case $build_os in
5376 msdosdjgpp*)
5377 # On DJGPP, this test can blow up pretty badly due to problems in libc
5378 # (any single argument exceeding 2000 bytes causes a buffer overrun
5379 # during glob expansion). Even if it were fixed, the result of this
5380 # check would be larger than it should be.
5381 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5382 ;;
5383
5384 gnu*)
5385 # Under GNU Hurd, this test is not required because there is
5386 # no limit to the length of command line arguments.
5387 # Libtool will interpret -1 as no limit whatsoever
5388 lt_cv_sys_max_cmd_len=-1;
5389 ;;
5390
5391 cygwin* | mingw* | cegcc*)
5392 # On Win9x/ME, this test blows up -- it succeeds, but takes
5393 # about 5 minutes as the teststring grows exponentially.
5394 # Worse, since 9x/ME are not pre-emptively multitasking,
5395 # you end up with a "frozen" computer, even though with patience
5396 # the test eventually succeeds (with a max line length of 256k).
5397 # Instead, let's just punt: use the minimum linelength reported by
5398 # all of the supported platforms: 8192 (on NT/2K/XP).
5399 lt_cv_sys_max_cmd_len=8192;
5400 ;;
5401
5402 mint*)
5403 # On MiNT this can take a long time and run out of memory.
5404 lt_cv_sys_max_cmd_len=8192;
5405 ;;
5406
5407 amigaos*)
5408 # On AmigaOS with pdksh, this test takes hours, literally.
5409 # So we just punt and use a minimum line length of 8192.
5410 lt_cv_sys_max_cmd_len=8192;
5411 ;;
5412
5413 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5414 # This has been around since 386BSD, at least. Likely further.
5415 if test -x /sbin/sysctl; then
5416 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5417 elif test -x /usr/sbin/sysctl; then
5418 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5419 else
5420 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5421 fi
5422 # And add a safety zone
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5425 ;;
5426
5427 interix*)
5428 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5429 lt_cv_sys_max_cmd_len=196608
5430 ;;
5431
5432 osf*)
5433 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5434 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5435 # nice to cause kernel panics so lets avoid the loop below.
5436 # First set a reasonable default.
5437 lt_cv_sys_max_cmd_len=16384
5438 #
5439 if test -x /sbin/sysconfig; then
5440 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5441 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5442 esac
5443 fi
5444 ;;
5445 sco3.2v5*)
5446 lt_cv_sys_max_cmd_len=102400
5447 ;;
5448 sysv5* | sco5v6* | sysv4.2uw2*)
5449 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5450 if test -n "$kargmax"; then
5451 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5452 else
5453 lt_cv_sys_max_cmd_len=32768
5454 fi
5455 ;;
5456 *)
5457 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5458 if test -n "$lt_cv_sys_max_cmd_len"; then
5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5461 else
5462 # Make teststring a little bigger before we do anything with it.
5463 # a 1K string should be a reasonable start.
5464 for i in 1 2 3 4 5 6 7 8 ; do
5465 teststring=$teststring$teststring
5466 done
5467 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5468 # If test is not a shell built-in, we'll probably end up computing a
5469 # maximum length that is only half of the actual maximum length, but
5470 # we can't tell.
5471 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5472 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5473 test $i != 17 # 1/2 MB should be enough
5474 do
5475 i=`expr $i + 1`
5476 teststring=$teststring$teststring
5477 done
5478 # Only check the string length outside the loop.
5479 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5480 teststring=
5481 # Add a significant safety factor because C++ compilers can tack on
5482 # massive amounts of additional arguments before passing them to the
5483 # linker. It appears as though 1/2 is a usable value.
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5485 fi
5486 ;;
5487 esac
5488
5489 fi
5490
5491 if test -n $lt_cv_sys_max_cmd_len ; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5493 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5494 else
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5496 $as_echo "none" >&6; }
5497 fi
5498 max_cmd_len=$lt_cv_sys_max_cmd_len
5499
5500
5501
5502
5503
5504
5505 : ${CP="cp -f"}
5506 : ${MV="mv -f"}
5507 : ${RM="rm -f"}
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5510 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5511 # Try some XSI features
5512 xsi_shell=no
5513 ( _lt_dummy="a/b/c"
5514 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5515 = c,a/b,, \
5516 && eval 'test $(( 1 + 1 )) -eq 2 \
5517 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5518 && xsi_shell=yes
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5520 $as_echo "$xsi_shell" >&6; }
5521
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5524 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5525 lt_shell_append=no
5526 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5527 >/dev/null 2>&1 \
5528 && lt_shell_append=yes
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5530 $as_echo "$lt_shell_append" >&6; }
5531
5532
5533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5534 lt_unset=unset
5535 else
5536 lt_unset=false
5537 fi
5538
5539
5540
5541
5542
5543 # test EBCDIC or ASCII
5544 case `echo X|tr X '\101'` in
5545 A) # ASCII based system
5546 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5547 lt_SP2NL='tr \040 \012'
5548 lt_NL2SP='tr \015\012 \040\040'
5549 ;;
5550 *) # EBCDIC based system
5551 lt_SP2NL='tr \100 \n'
5552 lt_NL2SP='tr \r\n \100\100'
5553 ;;
5554 esac
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5565 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5566 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 lt_cv_ld_reload_flag='-r'
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5572 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5573 reload_flag=$lt_cv_ld_reload_flag
5574 case $reload_flag in
5575 "" | " "*) ;;
5576 *) reload_flag=" $reload_flag" ;;
5577 esac
5578 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5579 case $host_os in
5580 darwin*)
5581 if test "$GCC" = yes; then
5582 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5583 else
5584 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5585 fi
5586 ;;
5587 esac
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$OBJDUMP"; then
5606 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 OBJDUMP=$ac_cv_prog_OBJDUMP
5626 if test -n "$OBJDUMP"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5628 $as_echo "$OBJDUMP" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635 fi
5636 if test -z "$ac_cv_prog_OBJDUMP"; then
5637 ac_ct_OBJDUMP=$OBJDUMP
5638 # Extract the first word of "objdump", so it can be a program name with args.
5639 set dummy objdump; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$ac_ct_OBJDUMP"; then
5646 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5666 if test -n "$ac_ct_OBJDUMP"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5668 $as_echo "$ac_ct_OBJDUMP" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674 if test "x$ac_ct_OBJDUMP" = x; then
5675 OBJDUMP="false"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683 OBJDUMP=$ac_ct_OBJDUMP
5684 fi
5685 else
5686 OBJDUMP="$ac_cv_prog_OBJDUMP"
5687 fi
5688
5689 test -z "$OBJDUMP" && OBJDUMP=objdump
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5700 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5701 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 lt_cv_file_magic_cmd='$MAGIC_CMD'
5705 lt_cv_file_magic_test_file=
5706 lt_cv_deplibs_check_method='unknown'
5707 # Need to set the preceding variable on all platforms that support
5708 # interlibrary dependencies.
5709 # 'none' -- dependencies not supported.
5710 # `unknown' -- same as none, but documents that we really don't know.
5711 # 'pass_all' -- all dependencies passed with no checks.
5712 # 'test_compile' -- check by making test program.
5713 # 'file_magic [[regex]]' -- check by looking for files in library path
5714 # which responds to the $file_magic_cmd with a given extended regex.
5715 # If you have `file' or equivalent on your system and you're not sure
5716 # whether `pass_all' will *always* work, you probably want this one.
5717
5718 case $host_os in
5719 aix[4-9]*)
5720 lt_cv_deplibs_check_method=pass_all
5721 ;;
5722
5723 beos*)
5724 lt_cv_deplibs_check_method=pass_all
5725 ;;
5726
5727 bsdi[45]*)
5728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5729 lt_cv_file_magic_cmd='/usr/bin/file -L'
5730 lt_cv_file_magic_test_file=/shlib/libc.so
5731 ;;
5732
5733 cygwin*)
5734 # func_win32_libid is a shell function defined in ltmain.sh
5735 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5736 lt_cv_file_magic_cmd='func_win32_libid'
5737 ;;
5738
5739 mingw* | pw32*)
5740 # Base MSYS/MinGW do not provide the 'file' command needed by
5741 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5742 # unless we find 'file', for example because we are cross-compiling.
5743 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5744 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5745 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5746 lt_cv_file_magic_cmd='func_win32_libid'
5747 else
5748 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5749 lt_cv_file_magic_cmd='$OBJDUMP -f'
5750 fi
5751 ;;
5752
5753 cegcc*)
5754 # use the weaker test based on 'objdump'. See mingw*.
5755 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5756 lt_cv_file_magic_cmd='$OBJDUMP -f'
5757 ;;
5758
5759 darwin* | rhapsody*)
5760 lt_cv_deplibs_check_method=pass_all
5761 ;;
5762
5763 freebsd* | dragonfly*)
5764 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5765 case $host_cpu in
5766 i*86 )
5767 # Not sure whether the presence of OpenBSD here was a mistake.
5768 # Let's accept both of them until this is cleared up.
5769 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5770 lt_cv_file_magic_cmd=/usr/bin/file
5771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5772 ;;
5773 esac
5774 else
5775 lt_cv_deplibs_check_method=pass_all
5776 fi
5777 ;;
5778
5779 gnu*)
5780 lt_cv_deplibs_check_method=pass_all
5781 ;;
5782
5783 haiku*)
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786
5787 hpux10.20* | hpux11*)
5788 lt_cv_file_magic_cmd=/usr/bin/file
5789 case $host_cpu in
5790 ia64*)
5791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5792 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5793 ;;
5794 hppa*64*)
5795 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]'
5796 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5797 ;;
5798 *)
5799 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5800 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5801 ;;
5802 esac
5803 ;;
5804
5805 interix[3-9]*)
5806 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5808 ;;
5809
5810 irix5* | irix6* | nonstopux*)
5811 case $LD in
5812 *-32|*"-32 ") libmagic=32-bit;;
5813 *-n32|*"-n32 ") libmagic=N32;;
5814 *-64|*"-64 ") libmagic=64-bit;;
5815 *) libmagic=never-match;;
5816 esac
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
5819
5820 # This must be Linux ELF.
5821 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5822 lt_cv_deplibs_check_method=pass_all
5823 ;;
5824
5825 netbsd*)
5826 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5828 else
5829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5830 fi
5831 ;;
5832
5833 newos6*)
5834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5835 lt_cv_file_magic_cmd=/usr/bin/file
5836 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5837 ;;
5838
5839 *nto* | *qnx*)
5840 lt_cv_deplibs_check_method=pass_all
5841 ;;
5842
5843 openbsd*)
5844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5846 else
5847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5848 fi
5849 ;;
5850
5851 osf3* | osf4* | osf5*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
5854
5855 rdos*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859 solaris*)
5860 lt_cv_deplibs_check_method=pass_all
5861 ;;
5862
5863 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5864 lt_cv_deplibs_check_method=pass_all
5865 ;;
5866
5867 sysv4 | sysv4.3*)
5868 case $host_vendor in
5869 motorola)
5870 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]'
5871 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5872 ;;
5873 ncr)
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876 sequent)
5877 lt_cv_file_magic_cmd='/bin/file'
5878 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5879 ;;
5880 sni)
5881 lt_cv_file_magic_cmd='/bin/file'
5882 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5883 lt_cv_file_magic_test_file=/lib/libc.so
5884 ;;
5885 siemens)
5886 lt_cv_deplibs_check_method=pass_all
5887 ;;
5888 pc)
5889 lt_cv_deplibs_check_method=pass_all
5890 ;;
5891 esac
5892 ;;
5893
5894 tpf*)
5895 lt_cv_deplibs_check_method=pass_all
5896 ;;
5897 esac
5898
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5901 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5902 file_magic_cmd=$lt_cv_file_magic_cmd
5903 deplibs_check_method=$lt_cv_deplibs_check_method
5904 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}ar; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if test "${ac_cv_prog_AR+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$AR"; then
5926 ac_cv_prog_AR="$AR" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_AR="${ac_tool_prefix}ar"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 AR=$ac_cv_prog_AR
5946 if test -n "$AR"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5948 $as_echo "$AR" >&6; }
5949 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955 fi
5956 if test -z "$ac_cv_prog_AR"; then
5957 ac_ct_AR=$AR
5958 # Extract the first word of "ar", so it can be a program name with args.
5959 set dummy ar; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$ac_ct_AR"; then
5966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_AR="ar"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5986 if test -n "$ac_ct_AR"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5988 $as_echo "$ac_ct_AR" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994 if test "x$ac_ct_AR" = x; then
5995 AR="false"
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003 AR=$ac_ct_AR
6004 fi
6005 else
6006 AR="$ac_cv_prog_AR"
6007 fi
6008
6009 test -z "$AR" && AR=ar
6010 test -z "$AR_FLAGS" && AR_FLAGS=cru
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 if test -n "$ac_tool_prefix"; then
6023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}strip; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if test "${ac_cv_prog_STRIP+set}" = set; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if test -n "$STRIP"; then
6031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044 done
6045 done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 STRIP=$ac_cv_prog_STRIP
6051 if test -n "$STRIP"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6053 $as_echo "$STRIP" >&6; }
6054 else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059
6060 fi
6061 if test -z "$ac_cv_prog_STRIP"; then
6062 ac_ct_STRIP=$STRIP
6063 # Extract the first word of "strip", so it can be a program name with args.
6064 set dummy strip; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$ac_ct_STRIP"; then
6071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_prog_ac_ct_STRIP="strip"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6091 if test -n "$ac_ct_STRIP"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6093 $as_echo "$ac_ct_STRIP" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099 if test "x$ac_ct_STRIP" = x; then
6100 STRIP=":"
6101 else
6102 case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108 STRIP=$ac_ct_STRIP
6109 fi
6110 else
6111 STRIP="$ac_cv_prog_STRIP"
6112 fi
6113
6114 test -z "$STRIP" && STRIP=:
6115
6116
6117
6118
6119
6120
6121 if test -n "$ac_tool_prefix"; then
6122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 if test -n "$RANLIB"; then
6130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 break 2
6142 fi
6143 done
6144 done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 RANLIB=$ac_cv_prog_RANLIB
6150 if test -n "$RANLIB"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6152 $as_echo "$RANLIB" >&6; }
6153 else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158
6159 fi
6160 if test -z "$ac_cv_prog_RANLIB"; then
6161 ac_ct_RANLIB=$RANLIB
6162 # Extract the first word of "ranlib", so it can be a program name with args.
6163 set dummy ranlib; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$ac_ct_RANLIB"; then
6170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_ac_ct_RANLIB="ranlib"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6182 fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6190 if test -n "$ac_ct_RANLIB"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6192 $as_echo "$ac_ct_RANLIB" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197
6198 if test "x$ac_ct_RANLIB" = x; then
6199 RANLIB=":"
6200 else
6201 case $cross_compiling:$ac_tool_warned in
6202 yes:)
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205 ac_tool_warned=yes ;;
6206 esac
6207 RANLIB=$ac_ct_RANLIB
6208 fi
6209 else
6210 RANLIB="$ac_cv_prog_RANLIB"
6211 fi
6212
6213 test -z "$RANLIB" && RANLIB=:
6214
6215
6216
6217
6218
6219
6220 # Determine commands to create old-style static archives.
6221 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6222 old_postinstall_cmds='chmod 644 $oldlib'
6223 old_postuninstall_cmds=
6224
6225 if test -n "$RANLIB"; then
6226 case $host_os in
6227 openbsd*)
6228 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6229 ;;
6230 *)
6231 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6232 ;;
6233 esac
6234 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6235 fi
6236
6237 case $host_os in
6238 darwin*)
6239 lock_old_archive_extraction=yes ;;
6240 *)
6241 lock_old_archive_extraction=no ;;
6242 esac
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
6278
6279
6280
6281
6282 # If no C compiler was specified, use CC.
6283 LTCC=${LTCC-"$CC"}
6284
6285 # If no C compiler flags were specified, use CFLAGS.
6286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6287
6288 # Allow CC to be a program name with arguments.
6289 compiler=$CC
6290
6291
6292 # Check for command to grab the raw symbol name followed by C symbol from nm.
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6294 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6295 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298
6299 # These are sane defaults that work on at least a few old systems.
6300 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6301
6302 # Character class describing NM global symbol codes.
6303 symcode='[BCDEGRST]'
6304
6305 # Regexp to match symbols that can be accessed directly from C.
6306 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6307
6308 # Define system-specific variables.
6309 case $host_os in
6310 aix*)
6311 symcode='[BCDT]'
6312 ;;
6313 cygwin* | mingw* | pw32* | cegcc*)
6314 symcode='[ABCDGISTW]'
6315 ;;
6316 hpux*)
6317 if test "$host_cpu" = ia64; then
6318 symcode='[ABCDEGRST]'
6319 fi
6320 ;;
6321 irix* | nonstopux*)
6322 symcode='[BCDEGRST]'
6323 ;;
6324 osf*)
6325 symcode='[BCDEGQRST]'
6326 ;;
6327 solaris*)
6328 symcode='[BDRT]'
6329 ;;
6330 sco3.2v5*)
6331 symcode='[DT]'
6332 ;;
6333 sysv4.2uw2*)
6334 symcode='[DT]'
6335 ;;
6336 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6337 symcode='[ABDT]'
6338 ;;
6339 sysv4)
6340 symcode='[DFNSTU]'
6341 ;;
6342 esac
6343
6344 # If we're using GNU nm, then use its standard symbol codes.
6345 case `$NM -V 2>&1` in
6346 *GNU* | *'with BFD'*)
6347 symcode='[ABCDGIRSTW]' ;;
6348 esac
6349
6350 # Transform an extracted symbol line into a proper C declaration.
6351 # Some systems (esp. on ia64) link data and code symbols differently,
6352 # so use this general approach.
6353 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6354
6355 # Transform an extracted symbol line into symbol name and symbol address
6356 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6357 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'"
6358
6359 # Handle CRLF in mingw tool chain
6360 opt_cr=
6361 case $build_os in
6362 mingw*)
6363 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6364 ;;
6365 esac
6366
6367 # Try without a prefix underscore, then with it.
6368 for ac_symprfx in "" "_"; do
6369
6370 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6371 symxfrm="\\1 $ac_symprfx\\2 \\2"
6372
6373 # Write the raw and C identifiers.
6374 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6375 # Fake it for dumpbin and say T for any non-static function
6376 # and D for any global variable.
6377 # Also find C++ and __fastcall symbols from MSVC++,
6378 # which start with @ or ?.
6379 lt_cv_sys_global_symbol_pipe="$AWK '"\
6380 " {last_section=section; section=\$ 3};"\
6381 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6382 " \$ 0!~/External *\|/{next};"\
6383 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6384 " {if(hide[section]) next};"\
6385 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6386 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6387 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6388 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6389 " ' prfx=^$ac_symprfx"
6390 else
6391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6392 fi
6393
6394 # Check to see that the pipe works correctly.
6395 pipe_works=no
6396
6397 rm -f conftest*
6398 cat > conftest.$ac_ext <<_LT_EOF
6399 #ifdef __cplusplus
6400 extern "C" {
6401 #endif
6402 char nm_test_var;
6403 void nm_test_func(void);
6404 void nm_test_func(void){}
6405 #ifdef __cplusplus
6406 }
6407 #endif
6408 int main(){nm_test_var='a';nm_test_func();return(0);}
6409 _LT_EOF
6410
6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }; then
6416 # Now try to grab the symbols.
6417 nlist=conftest.nm
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6419 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; } && test -s "$nlist"; then
6423 # Try sorting and uniquifying the output.
6424 if sort "$nlist" | uniq > "$nlist"T; then
6425 mv -f "$nlist"T "$nlist"
6426 else
6427 rm -f "$nlist"T
6428 fi
6429
6430 # Make sure that we snagged all the symbols we need.
6431 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6432 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6433 cat <<_LT_EOF > conftest.$ac_ext
6434 #ifdef __cplusplus
6435 extern "C" {
6436 #endif
6437
6438 _LT_EOF
6439 # Now generate the symbol file.
6440 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6441
6442 cat <<_LT_EOF >> conftest.$ac_ext
6443
6444 /* The mapping between symbol names and symbols. */
6445 const struct {
6446 const char *name;
6447 void *address;
6448 }
6449 lt__PROGRAM__LTX_preloaded_symbols[] =
6450 {
6451 { "@PROGRAM@", (void *) 0 },
6452 _LT_EOF
6453 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6454 cat <<\_LT_EOF >> conftest.$ac_ext
6455 {0, (void *) 0}
6456 };
6457
6458 /* This works around a problem in FreeBSD linker */
6459 #ifdef FREEBSD_WORKAROUND
6460 static const void *lt_preloaded_setup() {
6461 return lt__PROGRAM__LTX_preloaded_symbols;
6462 }
6463 #endif
6464
6465 #ifdef __cplusplus
6466 }
6467 #endif
6468 _LT_EOF
6469 # Now try linking the two files.
6470 mv conftest.$ac_objext conftstm.$ac_objext
6471 lt_save_LIBS="$LIBS"
6472 lt_save_CFLAGS="$CFLAGS"
6473 LIBS="conftstm.$ac_objext"
6474 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6476 (eval $ac_link) 2>&5
6477 ac_status=$?
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6480 pipe_works=yes
6481 fi
6482 LIBS="$lt_save_LIBS"
6483 CFLAGS="$lt_save_CFLAGS"
6484 else
6485 echo "cannot find nm_test_func in $nlist" >&5
6486 fi
6487 else
6488 echo "cannot find nm_test_var in $nlist" >&5
6489 fi
6490 else
6491 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6492 fi
6493 else
6494 echo "$progname: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6496 fi
6497 rm -rf conftest* conftst*
6498
6499 # Do not use the global_symbol_pipe unless it works.
6500 if test "$pipe_works" = yes; then
6501 break
6502 else
6503 lt_cv_sys_global_symbol_pipe=
6504 fi
6505 done
6506
6507 fi
6508
6509 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6510 lt_cv_sys_global_symbol_to_cdecl=
6511 fi
6512 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6514 $as_echo "failed" >&6; }
6515 else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6517 $as_echo "ok" >&6; }
6518 fi
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 # Check whether --enable-libtool-lock was given.
6543 if test "${enable_libtool_lock+set}" = set; then :
6544 enableval=$enable_libtool_lock;
6545 fi
6546
6547 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6548
6549 # Some flags need to be propagated to the compiler or linker for good
6550 # libtool support.
6551 case $host in
6552 ia64-*-hpux*)
6553 # Find out which ABI we are using.
6554 echo 'int i;' > conftest.$ac_ext
6555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6556 (eval $ac_compile) 2>&5
6557 ac_status=$?
6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; }; then
6560 case `/usr/bin/file conftest.$ac_objext` in
6561 *ELF-32*)
6562 HPUX_IA64_MODE="32"
6563 ;;
6564 *ELF-64*)
6565 HPUX_IA64_MODE="64"
6566 ;;
6567 esac
6568 fi
6569 rm -rf conftest*
6570 ;;
6571 *-*-irix6*)
6572 # Find out which ABI we are using.
6573 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6575 (eval $ac_compile) 2>&5
6576 ac_status=$?
6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578 test $ac_status = 0; }; then
6579 if test "$lt_cv_prog_gnu_ld" = yes; then
6580 case `/usr/bin/file conftest.$ac_objext` in
6581 *32-bit*)
6582 LD="${LD-ld} -melf32bsmip"
6583 ;;
6584 *N32*)
6585 LD="${LD-ld} -melf32bmipn32"
6586 ;;
6587 *64-bit*)
6588 LD="${LD-ld} -melf64bmip"
6589 ;;
6590 esac
6591 else
6592 case `/usr/bin/file conftest.$ac_objext` in
6593 *32-bit*)
6594 LD="${LD-ld} -32"
6595 ;;
6596 *N32*)
6597 LD="${LD-ld} -n32"
6598 ;;
6599 *64-bit*)
6600 LD="${LD-ld} -64"
6601 ;;
6602 esac
6603 fi
6604 fi
6605 rm -rf conftest*
6606 ;;
6607
6608 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6609 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6610 # Find out which ABI we are using.
6611 echo 'int i;' > conftest.$ac_ext
6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6613 (eval $ac_compile) 2>&5
6614 ac_status=$?
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }; then
6617 case `/usr/bin/file conftest.o` in
6618 *32-bit*)
6619 case $host in
6620 x86_64-*kfreebsd*-gnu)
6621 LD="${LD-ld} -m elf_i386_fbsd"
6622 ;;
6623 x86_64-*linux*)
6624 case `/usr/bin/file conftest.o` in
6625 *x86-64*)
6626 LD="${LD-ld} -m elf32_x86_64"
6627 ;;
6628 *)
6629 LD="${LD-ld} -m elf_i386"
6630 ;;
6631 esac
6632 ;;
6633 powerpc64le-*linux*)
6634 LD="${LD-ld} -m elf32lppclinux"
6635 ;;
6636 powerpc64-*linux*)
6637 LD="${LD-ld} -m elf32ppclinux"
6638 ;;
6639 s390x-*linux*)
6640 LD="${LD-ld} -m elf_s390"
6641 ;;
6642 sparc64-*linux*)
6643 LD="${LD-ld} -m elf32_sparc"
6644 ;;
6645 esac
6646 ;;
6647 *64-bit*)
6648 case $host in
6649 x86_64-*kfreebsd*-gnu)
6650 LD="${LD-ld} -m elf_x86_64_fbsd"
6651 ;;
6652 x86_64-*linux*)
6653 LD="${LD-ld} -m elf_x86_64"
6654 ;;
6655 powerpcle-*linux*)
6656 LD="${LD-ld} -m elf64lppc"
6657 ;;
6658 powerpc-*linux*)
6659 LD="${LD-ld} -m elf64ppc"
6660 ;;
6661 s390*-*linux*|s390*-*tpf*)
6662 LD="${LD-ld} -m elf64_s390"
6663 ;;
6664 sparc*-*linux*)
6665 LD="${LD-ld} -m elf64_sparc"
6666 ;;
6667 esac
6668 ;;
6669 esac
6670 fi
6671 rm -rf conftest*
6672 ;;
6673
6674 *-*-sco3.2v5*)
6675 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6676 SAVE_CFLAGS="$CFLAGS"
6677 CFLAGS="$CFLAGS -belf"
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6679 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6680 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 ac_ext=c
6684 ac_cpp='$CPP $CPPFLAGS'
6685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6688
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6691
6692 int
6693 main ()
6694 {
6695
6696 ;
6697 return 0;
6698 }
6699 _ACEOF
6700 if ac_fn_c_try_link "$LINENO"; then :
6701 lt_cv_cc_needs_belf=yes
6702 else
6703 lt_cv_cc_needs_belf=no
6704 fi
6705 rm -f core conftest.err conftest.$ac_objext \
6706 conftest$ac_exeext conftest.$ac_ext
6707 ac_ext=c
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6715 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6716 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6717 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6718 CFLAGS="$SAVE_CFLAGS"
6719 fi
6720 ;;
6721 sparc*-*solaris*)
6722 # Find out which ABI we are using.
6723 echo 'int i;' > conftest.$ac_ext
6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6725 (eval $ac_compile) 2>&5
6726 ac_status=$?
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728 test $ac_status = 0; }; then
6729 case `/usr/bin/file conftest.o` in
6730 *64-bit*)
6731 case $lt_cv_prog_gnu_ld in
6732 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6733 *)
6734 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6735 LD="${LD-ld} -64"
6736 fi
6737 ;;
6738 esac
6739 ;;
6740 esac
6741 fi
6742 rm -rf conftest*
6743 ;;
6744 esac
6745
6746 need_locks="$enable_libtool_lock"
6747
6748
6749 case $host_os in
6750 rhapsody* | darwin*)
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$DSYMUTIL"; then
6760 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6780 if test -n "$DSYMUTIL"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6782 $as_echo "$DSYMUTIL" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788
6789 fi
6790 if test -z "$ac_cv_prog_DSYMUTIL"; then
6791 ac_ct_DSYMUTIL=$DSYMUTIL
6792 # Extract the first word of "dsymutil", so it can be a program name with args.
6793 set dummy dsymutil; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$ac_ct_DSYMUTIL"; then
6800 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6820 if test -n "$ac_ct_DSYMUTIL"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6822 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828 if test "x$ac_ct_DSYMUTIL" = x; then
6829 DSYMUTIL=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832 yes:)
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835 ac_tool_warned=yes ;;
6836 esac
6837 DSYMUTIL=$ac_ct_DSYMUTIL
6838 fi
6839 else
6840 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6841 fi
6842
6843 if test -n "$ac_tool_prefix"; then
6844 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 if test -n "$NMEDIT"; then
6852 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 NMEDIT=$ac_cv_prog_NMEDIT
6872 if test -n "$NMEDIT"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6874 $as_echo "$NMEDIT" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880
6881 fi
6882 if test -z "$ac_cv_prog_NMEDIT"; then
6883 ac_ct_NMEDIT=$NMEDIT
6884 # Extract the first word of "nmedit", so it can be a program name with args.
6885 set dummy nmedit; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$ac_ct_NMEDIT"; then
6892 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6912 if test -n "$ac_ct_NMEDIT"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6914 $as_echo "$ac_ct_NMEDIT" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920 if test "x$ac_ct_NMEDIT" = x; then
6921 NMEDIT=":"
6922 else
6923 case $cross_compiling:$ac_tool_warned in
6924 yes:)
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929 NMEDIT=$ac_ct_NMEDIT
6930 fi
6931 else
6932 NMEDIT="$ac_cv_prog_NMEDIT"
6933 fi
6934
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if test "${ac_cv_prog_LIPO+set}" = set; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$LIPO"; then
6944 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 LIPO=$ac_cv_prog_LIPO
6964 if test -n "$LIPO"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6966 $as_echo "$LIPO" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972
6973 fi
6974 if test -z "$ac_cv_prog_LIPO"; then
6975 ac_ct_LIPO=$LIPO
6976 # Extract the first word of "lipo", so it can be a program name with args.
6977 set dummy lipo; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$ac_ct_LIPO"; then
6984 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_prog_ac_ct_LIPO="lipo"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7004 if test -n "$ac_ct_LIPO"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7006 $as_echo "$ac_ct_LIPO" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012 if test "x$ac_ct_LIPO" = x; then
7013 LIPO=":"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021 LIPO=$ac_ct_LIPO
7022 fi
7023 else
7024 LIPO="$ac_cv_prog_LIPO"
7025 fi
7026
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}otool; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$OTOOL"; then
7036 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 OTOOL=$ac_cv_prog_OTOOL
7056 if test -n "$OTOOL"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7058 $as_echo "$OTOOL" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064
7065 fi
7066 if test -z "$ac_cv_prog_OTOOL"; then
7067 ac_ct_OTOOL=$OTOOL
7068 # Extract the first word of "otool", so it can be a program name with args.
7069 set dummy otool; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_OTOOL"; then
7076 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_prog_ac_ct_OTOOL="otool"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7096 if test -n "$ac_ct_OTOOL"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7098 $as_echo "$ac_ct_OTOOL" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104 if test "x$ac_ct_OTOOL" = x; then
7105 OTOOL=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 OTOOL=$ac_ct_OTOOL
7114 fi
7115 else
7116 OTOOL="$ac_cv_prog_OTOOL"
7117 fi
7118
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$OTOOL64"; then
7128 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 OTOOL64=$ac_cv_prog_OTOOL64
7148 if test -n "$OTOOL64"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7150 $as_echo "$OTOOL64" >&6; }
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156
7157 fi
7158 if test -z "$ac_cv_prog_OTOOL64"; then
7159 ac_ct_OTOOL64=$OTOOL64
7160 # Extract the first word of "otool64", so it can be a program name with args.
7161 set dummy otool64; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$ac_ct_OTOOL64"; then
7168 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_prog_ac_ct_OTOOL64="otool64"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7188 if test -n "$ac_ct_OTOOL64"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7190 $as_echo "$ac_ct_OTOOL64" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196 if test "x$ac_ct_OTOOL64" = x; then
7197 OTOOL64=":"
7198 else
7199 case $cross_compiling:$ac_tool_warned in
7200 yes:)
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205 OTOOL64=$ac_ct_OTOOL64
7206 fi
7207 else
7208 OTOOL64="$ac_cv_prog_OTOOL64"
7209 fi
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7238 $as_echo_n "checking for -single_module linker flag... " >&6; }
7239 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 lt_cv_apple_cc_single_mod=no
7243 if test -z "${LT_MULTI_MODULE}"; then
7244 # By default we will add the -single_module flag. You can override
7245 # by either setting the environment variable LT_MULTI_MODULE
7246 # non-empty at configure time, or by adding -multi_module to the
7247 # link flags.
7248 rm -rf libconftest.dylib*
7249 echo "int foo(void){return 1;}" > conftest.c
7250 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7251 -dynamiclib -Wl,-single_module conftest.c" >&5
7252 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7253 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7254 _lt_result=$?
7255 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7256 lt_cv_apple_cc_single_mod=yes
7257 else
7258 cat conftest.err >&5
7259 fi
7260 rm -rf libconftest.dylib*
7261 rm -f conftest.*
7262 fi
7263 fi
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7265 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7267 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7268 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 lt_cv_ld_exported_symbols_list=no
7272 save_LDFLAGS=$LDFLAGS
7273 echo "_main" > conftest.sym
7274 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277
7278 int
7279 main ()
7280 {
7281
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 if ac_fn_c_try_link "$LINENO"; then :
7287 lt_cv_ld_exported_symbols_list=yes
7288 else
7289 lt_cv_ld_exported_symbols_list=no
7290 fi
7291 rm -f core conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293 LDFLAGS="$save_LDFLAGS"
7294
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7297 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7299 $as_echo_n "checking for -force_load linker flag... " >&6; }
7300 if test "${lt_cv_ld_force_load+set}" = set; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 lt_cv_ld_force_load=no
7304 cat > conftest.c << _LT_EOF
7305 int forced_loaded() { return 2;}
7306 _LT_EOF
7307 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7308 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7309 echo "$AR cru libconftest.a conftest.o" >&5
7310 $AR cru libconftest.a conftest.o 2>&5
7311 cat > conftest.c << _LT_EOF
7312 int main() { return 0;}
7313 _LT_EOF
7314 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7315 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7316 _lt_result=$?
7317 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7318 lt_cv_ld_force_load=yes
7319 else
7320 cat conftest.err >&5
7321 fi
7322 rm -f conftest.err libconftest.a conftest conftest.c
7323 rm -rf conftest.dSYM
7324
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7327 $as_echo "$lt_cv_ld_force_load" >&6; }
7328 case $host_os in
7329 rhapsody* | darwin1.[012])
7330 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7331 darwin1.*)
7332 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7333 darwin*) # darwin 5.x on
7334 # if running on 10.5 or later, the deployment target defaults
7335 # to the OS version, if on x86, and 10.4, the deployment
7336 # target defaults to 10.4. Don't you love it?
7337 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7338 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7339 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7340 10.[012]*)
7341 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7342 10.*)
7343 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7344 esac
7345 ;;
7346 esac
7347 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7348 _lt_dar_single_mod='$single_module'
7349 fi
7350 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7351 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7352 else
7353 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7354 fi
7355 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7356 _lt_dsymutil='~$DSYMUTIL $lib || :'
7357 else
7358 _lt_dsymutil=
7359 fi
7360 ;;
7361 esac
7362
7363 ac_ext=c
7364 ac_cpp='$CPP $CPPFLAGS'
7365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7369 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7370 # On Suns, sometimes $CPP names a directory.
7371 if test -n "$CPP" && test -d "$CPP"; then
7372 CPP=
7373 fi
7374 if test -z "$CPP"; then
7375 if test "${ac_cv_prog_CPP+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 # Double quotes because CPP needs to be expanded
7379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7380 do
7381 ac_preproc_ok=false
7382 for ac_c_preproc_warn_flag in '' yes
7383 do
7384 # Use a header file that comes with gcc, so configuring glibc
7385 # with a fresh cross-compiler works.
7386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7387 # <limits.h> exists even on freestanding compilers.
7388 # On the NeXT, cc -E runs the code through the compiler's parser,
7389 # not just through cpp. "Syntax error" is here to catch this case.
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #ifdef __STDC__
7393 # include <limits.h>
7394 #else
7395 # include <assert.h>
7396 #endif
7397 Syntax error
7398 _ACEOF
7399 if ac_fn_c_try_cpp "$LINENO"; then :
7400
7401 else
7402 # Broken: fails on valid input.
7403 continue
7404 fi
7405 rm -f conftest.err conftest.$ac_ext
7406
7407 # OK, works on sane cases. Now check whether nonexistent headers
7408 # can be detected and how.
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 #include <ac_nonexistent.h>
7412 _ACEOF
7413 if ac_fn_c_try_cpp "$LINENO"; then :
7414 # Broken: success on invalid input.
7415 continue
7416 else
7417 # Passes both tests.
7418 ac_preproc_ok=:
7419 break
7420 fi
7421 rm -f conftest.err conftest.$ac_ext
7422
7423 done
7424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7425 rm -f conftest.err conftest.$ac_ext
7426 if $ac_preproc_ok; then :
7427 break
7428 fi
7429
7430 done
7431 ac_cv_prog_CPP=$CPP
7432
7433 fi
7434 CPP=$ac_cv_prog_CPP
7435 else
7436 ac_cv_prog_CPP=$CPP
7437 fi
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7439 $as_echo "$CPP" >&6; }
7440 ac_preproc_ok=false
7441 for ac_c_preproc_warn_flag in '' yes
7442 do
7443 # Use a header file that comes with gcc, so configuring glibc
7444 # with a fresh cross-compiler works.
7445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7446 # <limits.h> exists even on freestanding compilers.
7447 # On the NeXT, cc -E runs the code through the compiler's parser,
7448 # not just through cpp. "Syntax error" is here to catch this case.
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 #ifdef __STDC__
7452 # include <limits.h>
7453 #else
7454 # include <assert.h>
7455 #endif
7456 Syntax error
7457 _ACEOF
7458 if ac_fn_c_try_cpp "$LINENO"; then :
7459
7460 else
7461 # Broken: fails on valid input.
7462 continue
7463 fi
7464 rm -f conftest.err conftest.$ac_ext
7465
7466 # OK, works on sane cases. Now check whether nonexistent headers
7467 # can be detected and how.
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 #include <ac_nonexistent.h>
7471 _ACEOF
7472 if ac_fn_c_try_cpp "$LINENO"; then :
7473 # Broken: success on invalid input.
7474 continue
7475 else
7476 # Passes both tests.
7477 ac_preproc_ok=:
7478 break
7479 fi
7480 rm -f conftest.err conftest.$ac_ext
7481
7482 done
7483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7484 rm -f conftest.err conftest.$ac_ext
7485 if $ac_preproc_ok; then :
7486
7487 else
7488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7490 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7491 See \`config.log' for more details." "$LINENO" 5; }
7492 fi
7493
7494 ac_ext=c
7495 ac_cpp='$CPP $CPPFLAGS'
7496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7502 $as_echo_n "checking for ANSI C header files... " >&6; }
7503 if test "${ac_cv_header_stdc+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #include <stdlib.h>
7509 #include <stdarg.h>
7510 #include <string.h>
7511 #include <float.h>
7512
7513 int
7514 main ()
7515 {
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_compile "$LINENO"; then :
7522 ac_cv_header_stdc=yes
7523 else
7524 ac_cv_header_stdc=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527
7528 if test $ac_cv_header_stdc = yes; then
7529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7532 #include <string.h>
7533
7534 _ACEOF
7535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7536 $EGREP "memchr" >/dev/null 2>&1; then :
7537
7538 else
7539 ac_cv_header_stdc=no
7540 fi
7541 rm -f conftest*
7542
7543 fi
7544
7545 if test $ac_cv_header_stdc = yes; then
7546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 #include <stdlib.h>
7550
7551 _ACEOF
7552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7553 $EGREP "free" >/dev/null 2>&1; then :
7554
7555 else
7556 ac_cv_header_stdc=no
7557 fi
7558 rm -f conftest*
7559
7560 fi
7561
7562 if test $ac_cv_header_stdc = yes; then
7563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7564 if test "$cross_compiling" = yes; then :
7565 :
7566 else
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #include <ctype.h>
7570 #include <stdlib.h>
7571 #if ((' ' & 0x0FF) == 0x020)
7572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7574 #else
7575 # define ISLOWER(c) \
7576 (('a' <= (c) && (c) <= 'i') \
7577 || ('j' <= (c) && (c) <= 'r') \
7578 || ('s' <= (c) && (c) <= 'z'))
7579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7580 #endif
7581
7582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7583 int
7584 main ()
7585 {
7586 int i;
7587 for (i = 0; i < 256; i++)
7588 if (XOR (islower (i), ISLOWER (i))
7589 || toupper (i) != TOUPPER (i))
7590 return 2;
7591 return 0;
7592 }
7593 _ACEOF
7594 if ac_fn_c_try_run "$LINENO"; then :
7595
7596 else
7597 ac_cv_header_stdc=no
7598 fi
7599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7600 conftest.$ac_objext conftest.beam conftest.$ac_ext
7601 fi
7602
7603 fi
7604 fi
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7606 $as_echo "$ac_cv_header_stdc" >&6; }
7607 if test $ac_cv_header_stdc = yes; then
7608
7609 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7610
7611 fi
7612
7613 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7615 inttypes.h stdint.h unistd.h
7616 do :
7617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7618 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7619 "
7620 eval as_val=\$$as_ac_Header
7621 if test "x$as_val" = x""yes; then :
7622 cat >>confdefs.h <<_ACEOF
7623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7624 _ACEOF
7625
7626 fi
7627
7628 done
7629
7630
7631 for ac_header in dlfcn.h
7632 do :
7633 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7634 "
7635 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7636 cat >>confdefs.h <<_ACEOF
7637 #define HAVE_DLFCN_H 1
7638 _ACEOF
7639
7640 fi
7641
7642 done
7643
7644
7645
7646
7647
7648
7649 # Set options
7650
7651
7652
7653
7654 enable_win32_dll=no
7655
7656
7657 # Check whether --enable-shared was given.
7658 if test "${enable_shared+set}" = set; then :
7659 enableval=$enable_shared; p=${PACKAGE-default}
7660 case $enableval in
7661 yes) enable_shared=yes ;;
7662 no) enable_shared=no ;;
7663 *)
7664 enable_shared=no
7665 # Look at the argument we got. We use all the common list separators.
7666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7667 for pkg in $enableval; do
7668 IFS="$lt_save_ifs"
7669 if test "X$pkg" = "X$p"; then
7670 enable_shared=yes
7671 fi
7672 done
7673 IFS="$lt_save_ifs"
7674 ;;
7675 esac
7676 else
7677 enable_shared=yes
7678 fi
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688 # Check whether --enable-static was given.
7689 if test "${enable_static+set}" = set; then :
7690 enableval=$enable_static; p=${PACKAGE-default}
7691 case $enableval in
7692 yes) enable_static=yes ;;
7693 no) enable_static=no ;;
7694 *)
7695 enable_static=no
7696 # Look at the argument we got. We use all the common list separators.
7697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7698 for pkg in $enableval; do
7699 IFS="$lt_save_ifs"
7700 if test "X$pkg" = "X$p"; then
7701 enable_static=yes
7702 fi
7703 done
7704 IFS="$lt_save_ifs"
7705 ;;
7706 esac
7707 else
7708 enable_static=yes
7709 fi
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720 # Check whether --with-pic was given.
7721 if test "${with_pic+set}" = set; then :
7722 withval=$with_pic; pic_mode="$withval"
7723 else
7724 pic_mode=default
7725 fi
7726
7727
7728 test -z "$pic_mode" && pic_mode=default
7729
7730
7731
7732
7733
7734
7735
7736 # Check whether --enable-fast-install was given.
7737 if test "${enable_fast_install+set}" = set; then :
7738 enableval=$enable_fast_install; p=${PACKAGE-default}
7739 case $enableval in
7740 yes) enable_fast_install=yes ;;
7741 no) enable_fast_install=no ;;
7742 *)
7743 enable_fast_install=no
7744 # Look at the argument we got. We use all the common list separators.
7745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7746 for pkg in $enableval; do
7747 IFS="$lt_save_ifs"
7748 if test "X$pkg" = "X$p"; then
7749 enable_fast_install=yes
7750 fi
7751 done
7752 IFS="$lt_save_ifs"
7753 ;;
7754 esac
7755 else
7756 enable_fast_install=yes
7757 fi
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 # This can be used to rebuild libtool when needed
7770 LIBTOOL_DEPS="$ltmain"
7771
7772 # Always use our own libtool.
7773 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800 test -z "$LN_S" && LN_S="ln -s"
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815 if test -n "${ZSH_VERSION+set}" ; then
7816 setopt NO_GLOB_SUBST
7817 fi
7818
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7820 $as_echo_n "checking for objdir... " >&6; }
7821 if test "${lt_cv_objdir+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 rm -f .libs 2>/dev/null
7825 mkdir .libs 2>/dev/null
7826 if test -d .libs; then
7827 lt_cv_objdir=.libs
7828 else
7829 # MS-DOS does not allow filenames that begin with a dot.
7830 lt_cv_objdir=_libs
7831 fi
7832 rmdir .libs 2>/dev/null
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7835 $as_echo "$lt_cv_objdir" >&6; }
7836 objdir=$lt_cv_objdir
7837
7838
7839
7840
7841
7842 cat >>confdefs.h <<_ACEOF
7843 #define LT_OBJDIR "$lt_cv_objdir/"
7844 _ACEOF
7845
7846
7847
7848
7849 case $host_os in
7850 aix3*)
7851 # AIX sometimes has problems with the GCC collect2 program. For some
7852 # reason, if we set the COLLECT_NAMES environment variable, the problems
7853 # vanish in a puff of smoke.
7854 if test "X${COLLECT_NAMES+set}" != Xset; then
7855 COLLECT_NAMES=
7856 export COLLECT_NAMES
7857 fi
7858 ;;
7859 esac
7860
7861 # Global variables:
7862 ofile=libtool
7863 can_build_shared=yes
7864
7865 # All known linkers require a `.a' archive for static linking (except MSVC,
7866 # which needs '.lib').
7867 libext=a
7868
7869 with_gnu_ld="$lt_cv_prog_gnu_ld"
7870
7871 old_CC="$CC"
7872 old_CFLAGS="$CFLAGS"
7873
7874 # Set sane defaults for various variables
7875 test -z "$CC" && CC=cc
7876 test -z "$LTCC" && LTCC=$CC
7877 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7878 test -z "$LD" && LD=ld
7879 test -z "$ac_objext" && ac_objext=o
7880
7881 for cc_temp in $compiler""; do
7882 case $cc_temp in
7883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7885 \-*) ;;
7886 *) break;;
7887 esac
7888 done
7889 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7890
7891
7892 # Only perform the check for file, if the check method requires it
7893 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7894 case $deplibs_check_method in
7895 file_magic*)
7896 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7898 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7899 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 case $MAGIC_CMD in
7903 [\\/*] | ?:[\\/]*)
7904 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7905 ;;
7906 *)
7907 lt_save_MAGIC_CMD="$MAGIC_CMD"
7908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7909 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7910 for ac_dir in $ac_dummy; do
7911 IFS="$lt_save_ifs"
7912 test -z "$ac_dir" && ac_dir=.
7913 if test -f $ac_dir/${ac_tool_prefix}file; then
7914 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7915 if test -n "$file_magic_test_file"; then
7916 case $deplibs_check_method in
7917 "file_magic "*)
7918 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7920 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7921 $EGREP "$file_magic_regex" > /dev/null; then
7922 :
7923 else
7924 cat <<_LT_EOF 1>&2
7925
7926 *** Warning: the command libtool uses to detect shared libraries,
7927 *** $file_magic_cmd, produces output that libtool cannot recognize.
7928 *** The result is that libtool may fail to recognize shared libraries
7929 *** as such. This will affect the creation of libtool libraries that
7930 *** depend on shared libraries, but programs linked with such libtool
7931 *** libraries will work regardless of this problem. Nevertheless, you
7932 *** may want to report the problem to your system manager and/or to
7933 *** bug-libtool@gnu.org
7934
7935 _LT_EOF
7936 fi ;;
7937 esac
7938 fi
7939 break
7940 fi
7941 done
7942 IFS="$lt_save_ifs"
7943 MAGIC_CMD="$lt_save_MAGIC_CMD"
7944 ;;
7945 esac
7946 fi
7947
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if test -n "$MAGIC_CMD"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7951 $as_echo "$MAGIC_CMD" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957
7958
7959
7960
7961 if test -z "$lt_cv_path_MAGIC_CMD"; then
7962 if test -n "$ac_tool_prefix"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7964 $as_echo_n "checking for file... " >&6; }
7965 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 case $MAGIC_CMD in
7969 [\\/*] | ?:[\\/]*)
7970 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7971 ;;
7972 *)
7973 lt_save_MAGIC_CMD="$MAGIC_CMD"
7974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7975 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7976 for ac_dir in $ac_dummy; do
7977 IFS="$lt_save_ifs"
7978 test -z "$ac_dir" && ac_dir=.
7979 if test -f $ac_dir/file; then
7980 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7981 if test -n "$file_magic_test_file"; then
7982 case $deplibs_check_method in
7983 "file_magic "*)
7984 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7986 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7987 $EGREP "$file_magic_regex" > /dev/null; then
7988 :
7989 else
7990 cat <<_LT_EOF 1>&2
7991
7992 *** Warning: the command libtool uses to detect shared libraries,
7993 *** $file_magic_cmd, produces output that libtool cannot recognize.
7994 *** The result is that libtool may fail to recognize shared libraries
7995 *** as such. This will affect the creation of libtool libraries that
7996 *** depend on shared libraries, but programs linked with such libtool
7997 *** libraries will work regardless of this problem. Nevertheless, you
7998 *** may want to report the problem to your system manager and/or to
7999 *** bug-libtool@gnu.org
8000
8001 _LT_EOF
8002 fi ;;
8003 esac
8004 fi
8005 break
8006 fi
8007 done
8008 IFS="$lt_save_ifs"
8009 MAGIC_CMD="$lt_save_MAGIC_CMD"
8010 ;;
8011 esac
8012 fi
8013
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if test -n "$MAGIC_CMD"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8017 $as_echo "$MAGIC_CMD" >&6; }
8018 else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022
8023
8024 else
8025 MAGIC_CMD=:
8026 fi
8027 fi
8028
8029 fi
8030 ;;
8031 esac
8032
8033 # Use C for the default configuration in the libtool script
8034
8035 lt_save_CC="$CC"
8036 ac_ext=c
8037 ac_cpp='$CPP $CPPFLAGS'
8038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8041
8042
8043 # Source file extension for C test sources.
8044 ac_ext=c
8045
8046 # Object file extension for compiled C test sources.
8047 objext=o
8048 objext=$objext
8049
8050 # Code to be used in simple compile tests
8051 lt_simple_compile_test_code="int some_variable = 0;"
8052
8053 # Code to be used in simple link tests
8054 lt_simple_link_test_code='int main(){return(0);}'
8055
8056
8057
8058
8059
8060
8061
8062 # If no C compiler was specified, use CC.
8063 LTCC=${LTCC-"$CC"}
8064
8065 # If no C compiler flags were specified, use CFLAGS.
8066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8067
8068 # Allow CC to be a program name with arguments.
8069 compiler=$CC
8070
8071 # Save the default compiler, since it gets overwritten when the other
8072 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8073 compiler_DEFAULT=$CC
8074
8075 # save warnings/boilerplate of simple test code
8076 ac_outfile=conftest.$ac_objext
8077 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8079 _lt_compiler_boilerplate=`cat conftest.err`
8080 $RM conftest*
8081
8082 ac_outfile=conftest.$ac_objext
8083 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8085 _lt_linker_boilerplate=`cat conftest.err`
8086 $RM -r conftest*
8087
8088
8089 ## CAVEAT EMPTOR:
8090 ## There is no encapsulation within the following macros, do not change
8091 ## the running order or otherwise move them around unless you know exactly
8092 ## what you are doing...
8093 if test -n "$compiler"; then
8094
8095 lt_prog_compiler_no_builtin_flag=
8096
8097 if test "$GCC" = yes; then
8098 case $cc_basename in
8099 nvcc*)
8100 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8101 *)
8102 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8103 esac
8104
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8106 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8107 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 lt_cv_prog_compiler_rtti_exceptions=no
8111 ac_outfile=conftest.$ac_objext
8112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8113 lt_compiler_flag="-fno-rtti -fno-exceptions"
8114 # Insert the option either (1) after the last *FLAGS variable, or
8115 # (2) before a word containing "conftest.", or (3) at the end.
8116 # Note that $ac_compile itself does not contain backslashes and begins
8117 # with a dollar sign (not a hyphen), so the echo should work correctly.
8118 # The option is referenced via a variable to avoid confusing sed.
8119 lt_compile=`echo "$ac_compile" | $SED \
8120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8122 -e 's:$: $lt_compiler_flag:'`
8123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8124 (eval "$lt_compile" 2>conftest.err)
8125 ac_status=$?
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 if (exit $ac_status) && test -s "$ac_outfile"; then
8129 # The compiler can only warn and ignore the option if not recognized
8130 # So say no if there are warnings other than the usual output.
8131 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8134 lt_cv_prog_compiler_rtti_exceptions=yes
8135 fi
8136 fi
8137 $RM conftest*
8138
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8141 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8142
8143 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8144 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8145 else
8146 :
8147 fi
8148
8149 fi
8150
8151
8152
8153
8154
8155
8156 lt_prog_compiler_wl=
8157 lt_prog_compiler_pic=
8158 lt_prog_compiler_static=
8159
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8161 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8162
8163 if test "$GCC" = yes; then
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_static='-static'
8166
8167 case $host_os in
8168 aix*)
8169 # All AIX code is PIC.
8170 if test "$host_cpu" = ia64; then
8171 # AIX 5 now supports IA64 processor
8172 lt_prog_compiler_static='-Bstatic'
8173 fi
8174 lt_prog_compiler_pic='-fPIC'
8175 ;;
8176
8177 amigaos*)
8178 case $host_cpu in
8179 powerpc)
8180 # see comment about AmigaOS4 .so support
8181 lt_prog_compiler_pic='-fPIC'
8182 ;;
8183 m68k)
8184 # FIXME: we need at least 68020 code to build shared libraries, but
8185 # adding the `-m68020' flag to GCC prevents building anything better,
8186 # like `-m68040'.
8187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8188 ;;
8189 esac
8190 ;;
8191
8192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8193 # PIC is the default for these OSes.
8194 ;;
8195
8196 mingw* | cygwin* | pw32* | os2* | cegcc*)
8197 # This hack is so that the source file can tell whether it is being
8198 # built for inclusion in a dll (and should export symbols for example).
8199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8200 # (--disable-auto-import) libraries
8201 lt_prog_compiler_pic='-DDLL_EXPORT'
8202 ;;
8203
8204 darwin* | rhapsody*)
8205 # PIC is the default on this platform
8206 # Common symbols not allowed in MH_DYLIB files
8207 lt_prog_compiler_pic='-fno-common'
8208 ;;
8209
8210 haiku*)
8211 # PIC is the default for Haiku.
8212 # The "-static" flag exists, but is broken.
8213 lt_prog_compiler_static=
8214 ;;
8215
8216 hpux*)
8217 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8218 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8219 # sets the default TLS model and affects inlining.
8220 case $host_cpu in
8221 hppa*64*)
8222 # +Z the default
8223 ;;
8224 *)
8225 lt_prog_compiler_pic='-fPIC'
8226 ;;
8227 esac
8228 ;;
8229
8230 interix[3-9]*)
8231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8232 # Instead, we relocate shared libraries at runtime.
8233 ;;
8234
8235 msdosdjgpp*)
8236 # Just because we use GCC doesn't mean we suddenly get shared libraries
8237 # on systems that don't support them.
8238 lt_prog_compiler_can_build_shared=no
8239 enable_shared=no
8240 ;;
8241
8242 *nto* | *qnx*)
8243 # QNX uses GNU C++, but need to define -shared option too, otherwise
8244 # it will coredump.
8245 lt_prog_compiler_pic='-fPIC -shared'
8246 ;;
8247
8248 sysv4*MP*)
8249 if test -d /usr/nec; then
8250 lt_prog_compiler_pic=-Kconform_pic
8251 fi
8252 ;;
8253
8254 *)
8255 lt_prog_compiler_pic='-fPIC'
8256 ;;
8257 esac
8258
8259 case $cc_basename in
8260 nvcc*) # Cuda Compiler Driver 2.2
8261 lt_prog_compiler_wl='-Xlinker '
8262 lt_prog_compiler_pic='-Xcompiler -fPIC'
8263 ;;
8264 esac
8265 else
8266 # PORTME Check for flag to pass linker flags through the system compiler.
8267 case $host_os in
8268 aix*)
8269 lt_prog_compiler_wl='-Wl,'
8270 if test "$host_cpu" = ia64; then
8271 # AIX 5 now supports IA64 processor
8272 lt_prog_compiler_static='-Bstatic'
8273 else
8274 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8275 fi
8276 ;;
8277
8278 mingw* | cygwin* | pw32* | os2* | cegcc*)
8279 # This hack is so that the source file can tell whether it is being
8280 # built for inclusion in a dll (and should export symbols for example).
8281 lt_prog_compiler_pic='-DDLL_EXPORT'
8282 ;;
8283
8284 hpux9* | hpux10* | hpux11*)
8285 lt_prog_compiler_wl='-Wl,'
8286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8287 # not for PA HP-UX.
8288 case $host_cpu in
8289 hppa*64*|ia64*)
8290 # +Z the default
8291 ;;
8292 *)
8293 lt_prog_compiler_pic='+Z'
8294 ;;
8295 esac
8296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8297 lt_prog_compiler_static='${wl}-a ${wl}archive'
8298 ;;
8299
8300 irix5* | irix6* | nonstopux*)
8301 lt_prog_compiler_wl='-Wl,'
8302 # PIC (with -KPIC) is the default.
8303 lt_prog_compiler_static='-non_shared'
8304 ;;
8305
8306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8307 case $cc_basename in
8308 # old Intel for x86_64 which still supported -KPIC.
8309 ecc*)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='-KPIC'
8312 lt_prog_compiler_static='-static'
8313 ;;
8314 # icc used to be incompatible with GCC.
8315 # ICC 10 doesn't accept -KPIC any more.
8316 icc* | ifort*)
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_pic='-fPIC'
8319 lt_prog_compiler_static='-static'
8320 ;;
8321 # Lahey Fortran 8.1.
8322 lf95*)
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='--shared'
8325 lt_prog_compiler_static='--static'
8326 ;;
8327 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8328 # Portland Group compilers (*not* the Pentium gcc compiler,
8329 # which looks to be a dead project)
8330 lt_prog_compiler_wl='-Wl,'
8331 lt_prog_compiler_pic='-fpic'
8332 lt_prog_compiler_static='-Bstatic'
8333 ;;
8334 ccc*)
8335 lt_prog_compiler_wl='-Wl,'
8336 # All Alpha code is PIC.
8337 lt_prog_compiler_static='-non_shared'
8338 ;;
8339 xl* | bgxl* | bgf* | mpixl*)
8340 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-qpic'
8343 lt_prog_compiler_static='-qstaticlink'
8344 ;;
8345 *)
8346 case `$CC -V 2>&1 | sed 5q` in
8347 *Sun\ F* | *Sun*Fortran*)
8348 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 lt_prog_compiler_wl=''
8352 ;;
8353 *Sun\ C*)
8354 # Sun C 5.9
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 lt_prog_compiler_wl='-Wl,'
8358 ;;
8359 esac
8360 ;;
8361 esac
8362 ;;
8363
8364 newsos6)
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 ;;
8368
8369 *nto* | *qnx*)
8370 # QNX uses GNU C++, but need to define -shared option too, otherwise
8371 # it will coredump.
8372 lt_prog_compiler_pic='-fPIC -shared'
8373 ;;
8374
8375 osf3* | osf4* | osf5*)
8376 lt_prog_compiler_wl='-Wl,'
8377 # All OSF/1 code is PIC.
8378 lt_prog_compiler_static='-non_shared'
8379 ;;
8380
8381 rdos*)
8382 lt_prog_compiler_static='-non_shared'
8383 ;;
8384
8385 solaris*)
8386 lt_prog_compiler_pic='-KPIC'
8387 lt_prog_compiler_static='-Bstatic'
8388 case $cc_basename in
8389 f77* | f90* | f95*)
8390 lt_prog_compiler_wl='-Qoption ld ';;
8391 *)
8392 lt_prog_compiler_wl='-Wl,';;
8393 esac
8394 ;;
8395
8396 sunos4*)
8397 lt_prog_compiler_wl='-Qoption ld '
8398 lt_prog_compiler_pic='-PIC'
8399 lt_prog_compiler_static='-Bstatic'
8400 ;;
8401
8402 sysv4 | sysv4.2uw2* | sysv4.3*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 ;;
8407
8408 sysv4*MP*)
8409 if test -d /usr/nec ;then
8410 lt_prog_compiler_pic='-Kconform_pic'
8411 lt_prog_compiler_static='-Bstatic'
8412 fi
8413 ;;
8414
8415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-KPIC'
8418 lt_prog_compiler_static='-Bstatic'
8419 ;;
8420
8421 unicos*)
8422 lt_prog_compiler_wl='-Wl,'
8423 lt_prog_compiler_can_build_shared=no
8424 ;;
8425
8426 uts4*)
8427 lt_prog_compiler_pic='-pic'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430
8431 *)
8432 lt_prog_compiler_can_build_shared=no
8433 ;;
8434 esac
8435 fi
8436
8437 case $host_os in
8438 # For platforms which do not support PIC, -DPIC is meaningless:
8439 *djgpp*)
8440 lt_prog_compiler_pic=
8441 ;;
8442 *)
8443 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8444 ;;
8445 esac
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8447 $as_echo "$lt_prog_compiler_pic" >&6; }
8448
8449
8450
8451
8452
8453
8454 #
8455 # Check to make sure the PIC flag actually works.
8456 #
8457 if test -n "$lt_prog_compiler_pic"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8460 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463 lt_cv_prog_compiler_pic_works=no
8464 ac_outfile=conftest.$ac_objext
8465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8466 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8467 # Insert the option either (1) after the last *FLAGS variable, or
8468 # (2) before a word containing "conftest.", or (3) at the end.
8469 # Note that $ac_compile itself does not contain backslashes and begins
8470 # with a dollar sign (not a hyphen), so the echo should work correctly.
8471 # The option is referenced via a variable to avoid confusing sed.
8472 lt_compile=`echo "$ac_compile" | $SED \
8473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8475 -e 's:$: $lt_compiler_flag:'`
8476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8477 (eval "$lt_compile" 2>conftest.err)
8478 ac_status=$?
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 if (exit $ac_status) && test -s "$ac_outfile"; then
8482 # The compiler can only warn and ignore the option if not recognized
8483 # So say no if there are warnings other than the usual output.
8484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8487 lt_cv_prog_compiler_pic_works=yes
8488 fi
8489 fi
8490 $RM conftest*
8491
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8494 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8495
8496 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8497 case $lt_prog_compiler_pic in
8498 "" | " "*) ;;
8499 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8500 esac
8501 else
8502 lt_prog_compiler_pic=
8503 lt_prog_compiler_can_build_shared=no
8504 fi
8505
8506 fi
8507
8508
8509
8510
8511
8512
8513 #
8514 # Check to make sure the static flag actually works.
8515 #
8516 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8518 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8519 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_prog_compiler_static_works=no
8523 save_LDFLAGS="$LDFLAGS"
8524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8525 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8527 # The linker can only warn and ignore the option if not recognized
8528 # So say no if there are warnings
8529 if test -s conftest.err; then
8530 # Append any errors to the config.log.
8531 cat conftest.err 1>&5
8532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8534 if diff conftest.exp conftest.er2 >/dev/null; then
8535 lt_cv_prog_compiler_static_works=yes
8536 fi
8537 else
8538 lt_cv_prog_compiler_static_works=yes
8539 fi
8540 fi
8541 $RM -r conftest*
8542 LDFLAGS="$save_LDFLAGS"
8543
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8546 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8547
8548 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8549 :
8550 else
8551 lt_prog_compiler_static=
8552 fi
8553
8554
8555
8556
8557
8558
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8562 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 lt_cv_prog_compiler_c_o=no
8566 $RM -r conftest 2>/dev/null
8567 mkdir conftest
8568 cd conftest
8569 mkdir out
8570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8571
8572 lt_compiler_flag="-o out/conftest2.$ac_objext"
8573 # Insert the option either (1) after the last *FLAGS variable, or
8574 # (2) before a word containing "conftest.", or (3) at the end.
8575 # Note that $ac_compile itself does not contain backslashes and begins
8576 # with a dollar sign (not a hyphen), so the echo should work correctly.
8577 lt_compile=`echo "$ac_compile" | $SED \
8578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8580 -e 's:$: $lt_compiler_flag:'`
8581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8582 (eval "$lt_compile" 2>out/conftest.err)
8583 ac_status=$?
8584 cat out/conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8587 then
8588 # The compiler can only warn and ignore the option if not recognized
8589 # So say no if there are warnings
8590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8593 lt_cv_prog_compiler_c_o=yes
8594 fi
8595 fi
8596 chmod u+w . 2>&5
8597 $RM conftest*
8598 # SGI C++ compiler will create directory out/ii_files/ for
8599 # template instantiation
8600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8601 $RM out/* && rmdir out
8602 cd ..
8603 $RM -r conftest
8604 $RM conftest*
8605
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8608 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8609
8610
8611
8612
8613
8614
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8616 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8617 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 lt_cv_prog_compiler_c_o=no
8621 $RM -r conftest 2>/dev/null
8622 mkdir conftest
8623 cd conftest
8624 mkdir out
8625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8626
8627 lt_compiler_flag="-o out/conftest2.$ac_objext"
8628 # Insert the option either (1) after the last *FLAGS variable, or
8629 # (2) before a word containing "conftest.", or (3) at the end.
8630 # Note that $ac_compile itself does not contain backslashes and begins
8631 # with a dollar sign (not a hyphen), so the echo should work correctly.
8632 lt_compile=`echo "$ac_compile" | $SED \
8633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8635 -e 's:$: $lt_compiler_flag:'`
8636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8637 (eval "$lt_compile" 2>out/conftest.err)
8638 ac_status=$?
8639 cat out/conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8642 then
8643 # The compiler can only warn and ignore the option if not recognized
8644 # So say no if there are warnings
8645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8648 lt_cv_prog_compiler_c_o=yes
8649 fi
8650 fi
8651 chmod u+w . 2>&5
8652 $RM conftest*
8653 # SGI C++ compiler will create directory out/ii_files/ for
8654 # template instantiation
8655 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8656 $RM out/* && rmdir out
8657 cd ..
8658 $RM -r conftest
8659 $RM conftest*
8660
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8663 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8664
8665
8666
8667
8668 hard_links="nottested"
8669 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8670 # do not overwrite the value of need_locks provided by the user
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8672 $as_echo_n "checking if we can lock with hard links... " >&6; }
8673 hard_links=yes
8674 $RM conftest*
8675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8676 touch conftest.a
8677 ln conftest.a conftest.b 2>&5 || hard_links=no
8678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8680 $as_echo "$hard_links" >&6; }
8681 if test "$hard_links" = no; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8683 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8684 need_locks=warn
8685 fi
8686 else
8687 need_locks=no
8688 fi
8689
8690
8691
8692
8693
8694
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8696 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8697
8698 runpath_var=
8699 allow_undefined_flag=
8700 always_export_symbols=no
8701 archive_cmds=
8702 archive_expsym_cmds=
8703 compiler_needs_object=no
8704 enable_shared_with_static_runtimes=no
8705 export_dynamic_flag_spec=
8706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8707 hardcode_automatic=no
8708 hardcode_direct=no
8709 hardcode_direct_absolute=no
8710 hardcode_libdir_flag_spec=
8711 hardcode_libdir_flag_spec_ld=
8712 hardcode_libdir_separator=
8713 hardcode_minus_L=no
8714 hardcode_shlibpath_var=unsupported
8715 inherit_rpath=no
8716 link_all_deplibs=unknown
8717 module_cmds=
8718 module_expsym_cmds=
8719 old_archive_from_new_cmds=
8720 old_archive_from_expsyms_cmds=
8721 thread_safe_flag_spec=
8722 whole_archive_flag_spec=
8723 # include_expsyms should be a list of space-separated symbols to be *always*
8724 # included in the symbol list
8725 include_expsyms=
8726 # exclude_expsyms can be an extended regexp of symbols to exclude
8727 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8729 # as well as any symbol that contains `d'.
8730 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8732 # platforms (ab)use it in PIC code, but their linkers get confused if
8733 # the symbol is explicitly referenced. Since portable code cannot
8734 # rely on this symbol name, it's probably fine to never include it in
8735 # preloaded symbol tables.
8736 # Exclude shared library initialization/finalization symbols.
8737 extract_expsyms_cmds=
8738
8739 case $host_os in
8740 cygwin* | mingw* | pw32* | cegcc*)
8741 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8742 # When not using gcc, we currently assume that we are using
8743 # Microsoft Visual C++.
8744 if test "$GCC" != yes; then
8745 with_gnu_ld=no
8746 fi
8747 ;;
8748 interix*)
8749 # we just hope/assume this is gcc and not c89 (= MSVC++)
8750 with_gnu_ld=yes
8751 ;;
8752 openbsd*)
8753 with_gnu_ld=no
8754 ;;
8755 esac
8756
8757 ld_shlibs=yes
8758
8759 # On some targets, GNU ld is compatible enough with the native linker
8760 # that we're better off using the native interface for both.
8761 lt_use_gnu_ld_interface=no
8762 if test "$with_gnu_ld" = yes; then
8763 case $host_os in
8764 aix*)
8765 # The AIX port of GNU ld has always aspired to compatibility
8766 # with the native linker. However, as the warning in the GNU ld
8767 # block says, versions before 2.19.5* couldn't really create working
8768 # shared libraries, regardless of the interface used.
8769 case `$LD -v 2>&1` in
8770 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8771 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8772 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8773 *)
8774 lt_use_gnu_ld_interface=yes
8775 ;;
8776 esac
8777 ;;
8778 *)
8779 lt_use_gnu_ld_interface=yes
8780 ;;
8781 esac
8782 fi
8783
8784 if test "$lt_use_gnu_ld_interface" = yes; then
8785 # If archive_cmds runs LD, not CC, wlarc should be empty
8786 wlarc='${wl}'
8787
8788 # Set some defaults for GNU ld with shared library support. These
8789 # are reset later if shared libraries are not supported. Putting them
8790 # here allows them to be overridden if necessary.
8791 runpath_var=LD_RUN_PATH
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 export_dynamic_flag_spec='${wl}--export-dynamic'
8794 # ancient GNU ld didn't support --whole-archive et. al.
8795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8797 else
8798 whole_archive_flag_spec=
8799 fi
8800 supports_anon_versioning=no
8801 case `$LD -v 2>&1` in
8802 *GNU\ gold*) supports_anon_versioning=yes ;;
8803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806 *\ 2.11.*) ;; # other 2.11 versions
8807 *) supports_anon_versioning=yes ;;
8808 esac
8809
8810 # See if GNU ld supports shared libraries.
8811 case $host_os in
8812 aix[3-9]*)
8813 # On AIX/PPC, the GNU linker is very broken
8814 if test "$host_cpu" != ia64; then
8815 ld_shlibs=no
8816 cat <<_LT_EOF 1>&2
8817
8818 *** Warning: the GNU linker, at least up to release 2.19, is reported
8819 *** to be unable to reliably create shared libraries on AIX.
8820 *** Therefore, libtool is disabling shared libraries support. If you
8821 *** really care for shared libraries, you may want to install binutils
8822 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8823 *** You will then need to restart the configuration process.
8824
8825 _LT_EOF
8826 fi
8827 ;;
8828
8829 amigaos*)
8830 case $host_cpu in
8831 powerpc)
8832 # see comment about AmigaOS4 .so support
8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 archive_expsym_cmds=''
8835 ;;
8836 m68k)
8837 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)'
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_minus_L=yes
8840 ;;
8841 esac
8842 ;;
8843
8844 beos*)
8845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846 allow_undefined_flag=unsupported
8847 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8848 # support --undefined. This deserves some investigation. FIXME
8849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850 else
8851 ld_shlibs=no
8852 fi
8853 ;;
8854
8855 cygwin* | mingw* | pw32* | cegcc*)
8856 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8857 # as there is no search path for DLLs.
8858 hardcode_libdir_flag_spec='-L$libdir'
8859 export_dynamic_flag_spec='${wl}--export-all-symbols'
8860 allow_undefined_flag=unsupported
8861 always_export_symbols=no
8862 enable_shared_with_static_runtimes=yes
8863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8864
8865 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8867 # If the export-symbols file already is a .def file (1st line
8868 # is EXPORTS), use it as is; otherwise, prepend...
8869 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8870 cp $export_symbols $output_objdir/$soname.def;
8871 else
8872 echo EXPORTS > $output_objdir/$soname.def;
8873 cat $export_symbols >> $output_objdir/$soname.def;
8874 fi~
8875 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8876 else
8877 ld_shlibs=no
8878 fi
8879 ;;
8880
8881 haiku*)
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 link_all_deplibs=yes
8884 ;;
8885
8886 interix[3-9]*)
8887 hardcode_direct=no
8888 hardcode_shlibpath_var=no
8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8890 export_dynamic_flag_spec='${wl}-E'
8891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8892 # Instead, shared libraries are loaded at an image base (0x10000000 by
8893 # default) and relocated if they conflict, which is a slow very memory
8894 # consuming and fragmenting process. To avoid this, we pick a random,
8895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8898 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'
8899 ;;
8900
8901 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8902 tmp_diet=no
8903 if test "$host_os" = linux-dietlibc; then
8904 case $cc_basename in
8905 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8906 esac
8907 fi
8908 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8909 && test "$tmp_diet" = no
8910 then
8911 tmp_addflag=
8912 tmp_sharedflag='-shared'
8913 case $cc_basename,$host_cpu in
8914 pgcc*) # Portland Group C compiler
8915 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'
8916 tmp_addflag=' $pic_flag'
8917 ;;
8918 pgf77* | pgf90* | pgf95* | pgfortran*)
8919 # Portland Group f77 and f90 compilers
8920 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'
8921 tmp_addflag=' $pic_flag -Mnomain' ;;
8922 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8923 tmp_addflag=' -i_dynamic' ;;
8924 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8925 tmp_addflag=' -i_dynamic -nofor_main' ;;
8926 ifc* | ifort*) # Intel Fortran compiler
8927 tmp_addflag=' -nofor_main' ;;
8928 lf95*) # Lahey Fortran 8.1
8929 whole_archive_flag_spec=
8930 tmp_sharedflag='--shared' ;;
8931 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8932 tmp_sharedflag='-qmkshrobj'
8933 tmp_addflag= ;;
8934 nvcc*) # Cuda Compiler Driver 2.2
8935 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'
8936 compiler_needs_object=yes
8937 ;;
8938 esac
8939 case `$CC -V 2>&1 | sed 5q` in
8940 *Sun\ C*) # Sun C 5.9
8941 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'
8942 compiler_needs_object=yes
8943 tmp_sharedflag='-G' ;;
8944 *Sun\ F*) # Sun Fortran 8.3
8945 tmp_sharedflag='-G' ;;
8946 esac
8947 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8948
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8954 fi
8955
8956 case $cc_basename in
8957 xlf* | bgf* | bgxlf* | mpixlf*)
8958 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8959 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8960 hardcode_libdir_flag_spec=
8961 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8962 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8963 if test "x$supports_anon_versioning" = xyes; then
8964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966 echo "local: *; };" >> $output_objdir/$libname.ver~
8967 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8968 fi
8969 ;;
8970 esac
8971 else
8972 ld_shlibs=no
8973 fi
8974 ;;
8975
8976 netbsd*)
8977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8979 wlarc=
8980 else
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983 fi
8984 ;;
8985
8986 solaris*)
8987 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8988 ld_shlibs=no
8989 cat <<_LT_EOF 1>&2
8990
8991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8992 *** create shared libraries on Solaris systems. Therefore, libtool
8993 *** is disabling shared libraries support. We urge you to upgrade GNU
8994 *** binutils to release 2.9.1 or newer. Another option is to modify
8995 *** your PATH or compiler configuration so that the native linker is
8996 *** used, and then restart.
8997
8998 _LT_EOF
8999 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002 else
9003 ld_shlibs=no
9004 fi
9005 ;;
9006
9007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9008 case `$LD -v 2>&1` in
9009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9010 ld_shlibs=no
9011 cat <<_LT_EOF 1>&2
9012
9013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9014 *** reliably create shared libraries on SCO systems. Therefore, libtool
9015 *** is disabling shared libraries support. We urge you to upgrade GNU
9016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9017 *** your PATH or compiler configuration so that the native linker is
9018 *** used, and then restart.
9019
9020 _LT_EOF
9021 ;;
9022 *)
9023 # For security reasons, it is highly recommended that you always
9024 # use absolute paths for naming shared libraries, and exclude the
9025 # DT_RUNPATH tag from executables and libraries. But doing so
9026 # requires that you compile everything twice, which is a pain.
9027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031 else
9032 ld_shlibs=no
9033 fi
9034 ;;
9035 esac
9036 ;;
9037
9038 sunos4*)
9039 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040 wlarc=
9041 hardcode_direct=yes
9042 hardcode_shlibpath_var=no
9043 ;;
9044
9045 *)
9046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049 else
9050 ld_shlibs=no
9051 fi
9052 ;;
9053 esac
9054
9055 if test "$ld_shlibs" = no; then
9056 runpath_var=
9057 hardcode_libdir_flag_spec=
9058 export_dynamic_flag_spec=
9059 whole_archive_flag_spec=
9060 fi
9061 else
9062 # PORTME fill in a description of your system's linker (not GNU ld)
9063 case $host_os in
9064 aix3*)
9065 allow_undefined_flag=unsupported
9066 always_export_symbols=yes
9067 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'
9068 # Note: this linker hardcodes the directories in LIBPATH if there
9069 # are no directories specified by -L.
9070 hardcode_minus_L=yes
9071 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9072 # Neither direct hardcoding nor static linking is supported with a
9073 # broken collect2.
9074 hardcode_direct=unsupported
9075 fi
9076 ;;
9077
9078 aix[4-9]*)
9079 if test "$host_cpu" = ia64; then
9080 # On IA64, the linker does run time linking by default, so we don't
9081 # have to do anything special.
9082 aix_use_runtimelinking=no
9083 exp_sym_flag='-Bexport'
9084 no_entry_flag=""
9085 else
9086 # If we're using GNU nm, then we don't want the "-C" option.
9087 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9088 # Also, AIX nm treats weak defined symbols like other global
9089 # defined symbols, whereas GNU nm marks them as "W".
9090 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9091 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'
9092 else
9093 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'
9094 fi
9095 aix_use_runtimelinking=no
9096
9097 # Test if we are trying to use run time linking or normal
9098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9099 # need to do runtime linking.
9100 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9101 for ld_flag in $LDFLAGS; do
9102 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9103 aix_use_runtimelinking=yes
9104 break
9105 fi
9106 done
9107 ;;
9108 esac
9109
9110 exp_sym_flag='-bexport'
9111 no_entry_flag='-bnoentry'
9112 fi
9113
9114 # When large executables or shared objects are built, AIX ld can
9115 # have problems creating the table of contents. If linking a library
9116 # or program results in "error TOC overflow" add -mminimal-toc to
9117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9119
9120 archive_cmds=''
9121 hardcode_direct=yes
9122 hardcode_direct_absolute=yes
9123 hardcode_libdir_separator=':'
9124 link_all_deplibs=yes
9125 file_list_spec='${wl}-f,'
9126
9127 if test "$GCC" = yes; then
9128 case $host_os in aix4.[012]|aix4.[012].*)
9129 # We only want to do this on AIX 4.2 and lower, the check
9130 # below for broken collect2 doesn't work under 4.3+
9131 collect2name=`${CC} -print-prog-name=collect2`
9132 if test -f "$collect2name" &&
9133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9134 then
9135 # We have reworked collect2
9136 :
9137 else
9138 # We have old collect2
9139 hardcode_direct=unsupported
9140 # It fails to find uninstalled libraries when the uninstalled
9141 # path is not listed in the libpath. Setting hardcode_minus_L
9142 # to unsupported forces relinking
9143 hardcode_minus_L=yes
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_libdir_separator=
9146 fi
9147 ;;
9148 esac
9149 shared_flag='-shared'
9150 if test "$aix_use_runtimelinking" = yes; then
9151 shared_flag="$shared_flag "'${wl}-G'
9152 fi
9153 else
9154 # not using gcc
9155 if test "$host_cpu" = ia64; then
9156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9157 # chokes on -Wl,-G. The following line is correct:
9158 shared_flag='-G'
9159 else
9160 if test "$aix_use_runtimelinking" = yes; then
9161 shared_flag='${wl}-G'
9162 else
9163 shared_flag='${wl}-bM:SRE'
9164 fi
9165 fi
9166 fi
9167
9168 export_dynamic_flag_spec='${wl}-bexpall'
9169 # It seems that -bexpall does not export symbols beginning with
9170 # underscore (_), so it is better to generate a list of symbols to export.
9171 always_export_symbols=yes
9172 if test "$aix_use_runtimelinking" = yes; then
9173 # Warning - without using the other runtime loading flags (-brtl),
9174 # -berok will link without error, but may produce a broken library.
9175 allow_undefined_flag='-berok'
9176 # Determine the default libpath from the value encoded in an
9177 # empty executable.
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180
9181 int
9182 main ()
9183 {
9184
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9190
9191 lt_aix_libpath_sed='
9192 /Import File Strings/,/^$/ {
9193 /^0/ {
9194 s/^0 *\(.*\)$/\1/
9195 p
9196 }
9197 }'
9198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199 # Check for a 64-bit object if we didn't find anything.
9200 if test -z "$aix_libpath"; then
9201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202 fi
9203 fi
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9207
9208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9209 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"
9210 else
9211 if test "$host_cpu" = ia64; then
9212 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9213 allow_undefined_flag="-z nodefs"
9214 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"
9215 else
9216 # Determine the default libpath from the value encoded in an
9217 # empty executable.
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9220
9221 int
9222 main ()
9223 {
9224
9225 ;
9226 return 0;
9227 }
9228 _ACEOF
9229 if ac_fn_c_try_link "$LINENO"; then :
9230
9231 lt_aix_libpath_sed='
9232 /Import File Strings/,/^$/ {
9233 /^0/ {
9234 s/^0 *\(.*\)$/\1/
9235 p
9236 }
9237 }'
9238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239 # Check for a 64-bit object if we didn't find anything.
9240 if test -z "$aix_libpath"; then
9241 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9242 fi
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext \
9245 conftest$ac_exeext conftest.$ac_ext
9246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9247
9248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9249 # Warning - without using the other run time loading flags,
9250 # -berok will link without error, but may produce a broken library.
9251 no_undefined_flag=' ${wl}-bernotok'
9252 allow_undefined_flag=' ${wl}-berok'
9253 if test "$with_gnu_ld" = yes; then
9254 # We only use this code for GNU lds that support --whole-archive.
9255 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9256 else
9257 # Exported symbols can be pulled into shared objects from archives
9258 whole_archive_flag_spec='$convenience'
9259 fi
9260 archive_cmds_need_lc=yes
9261 # This is similar to how AIX traditionally builds its shared libraries.
9262 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'
9263 fi
9264 fi
9265 ;;
9266
9267 amigaos*)
9268 case $host_cpu in
9269 powerpc)
9270 # see comment about AmigaOS4 .so support
9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 archive_expsym_cmds=''
9273 ;;
9274 m68k)
9275 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)'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9278 ;;
9279 esac
9280 ;;
9281
9282 bsdi[45]*)
9283 export_dynamic_flag_spec=-rdynamic
9284 ;;
9285
9286 cygwin* | mingw* | pw32* | cegcc*)
9287 # When not using gcc, we currently assume that we are using
9288 # Microsoft Visual C++.
9289 # hardcode_libdir_flag_spec is actually meaningless, as there is
9290 # no search path for DLLs.
9291 hardcode_libdir_flag_spec=' '
9292 allow_undefined_flag=unsupported
9293 # Tell ltmain to make .lib files, not .a files.
9294 libext=lib
9295 # Tell ltmain to make .dll files, not .so files.
9296 shrext_cmds=".dll"
9297 # FIXME: Setting linknames here is a bad hack.
9298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9299 # The linker will automatically build a .lib file if we build a DLL.
9300 old_archive_from_new_cmds='true'
9301 # FIXME: Should let the user specify the lib program.
9302 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9303 fix_srcfile_path='`cygpath -w "$srcfile"`'
9304 enable_shared_with_static_runtimes=yes
9305 ;;
9306
9307 darwin* | rhapsody*)
9308
9309
9310 archive_cmds_need_lc=no
9311 hardcode_direct=no
9312 hardcode_automatic=yes
9313 hardcode_shlibpath_var=unsupported
9314 if test "$lt_cv_ld_force_load" = "yes"; then
9315 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\"`'
9316 else
9317 whole_archive_flag_spec=''
9318 fi
9319 link_all_deplibs=yes
9320 allow_undefined_flag="$_lt_dar_allow_undefined"
9321 case $cc_basename in
9322 ifort*) _lt_dar_can_shared=yes ;;
9323 *) _lt_dar_can_shared=$GCC ;;
9324 esac
9325 if test "$_lt_dar_can_shared" = "yes"; then
9326 output_verbose_link_cmd=func_echo_all
9327 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9328 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9329 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}"
9330 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}"
9331
9332 else
9333 ld_shlibs=no
9334 fi
9335
9336 ;;
9337
9338 dgux*)
9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_shlibpath_var=no
9342 ;;
9343
9344 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9345 # support. Future versions do this automatically, but an explicit c++rt0.o
9346 # does not break anything, and helps significantly (at the cost of a little
9347 # extra space).
9348 freebsd2.2*)
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_direct=yes
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9356 freebsd2.*)
9357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_direct=yes
9359 hardcode_minus_L=yes
9360 hardcode_shlibpath_var=no
9361 ;;
9362
9363 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9364 freebsd* | dragonfly*)
9365 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9366 hardcode_libdir_flag_spec='-R$libdir'
9367 hardcode_direct=yes
9368 hardcode_shlibpath_var=no
9369 ;;
9370
9371 hpux9*)
9372 if test "$GCC" = yes; then
9373 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'
9374 else
9375 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'
9376 fi
9377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9378 hardcode_libdir_separator=:
9379 hardcode_direct=yes
9380
9381 # hardcode_minus_L: Not really in the search PATH,
9382 # but as the default location of the library.
9383 hardcode_minus_L=yes
9384 export_dynamic_flag_spec='${wl}-E'
9385 ;;
9386
9387 hpux10*)
9388 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9389 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9390 else
9391 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9392 fi
9393 if test "$with_gnu_ld" = no; then
9394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9395 hardcode_libdir_flag_spec_ld='+b $libdir'
9396 hardcode_libdir_separator=:
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 export_dynamic_flag_spec='${wl}-E'
9400 # hardcode_minus_L: Not really in the search PATH,
9401 # but as the default location of the library.
9402 hardcode_minus_L=yes
9403 fi
9404 ;;
9405
9406 hpux11*)
9407 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9408 case $host_cpu in
9409 hppa*64*)
9410 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 ;;
9412 ia64*)
9413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9414 ;;
9415 *)
9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9417 ;;
9418 esac
9419 else
9420 case $host_cpu in
9421 hppa*64*)
9422 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 ;;
9424 ia64*)
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9426 ;;
9427 *)
9428
9429 # Older versions of the 11.00 compiler do not understand -b yet
9430 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9432 $as_echo_n "checking if $CC understands -b... " >&6; }
9433 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 lt_cv_prog_compiler__b=no
9437 save_LDFLAGS="$LDFLAGS"
9438 LDFLAGS="$LDFLAGS -b"
9439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9441 # The linker can only warn and ignore the option if not recognized
9442 # So say no if there are warnings
9443 if test -s conftest.err; then
9444 # Append any errors to the config.log.
9445 cat conftest.err 1>&5
9446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if diff conftest.exp conftest.er2 >/dev/null; then
9449 lt_cv_prog_compiler__b=yes
9450 fi
9451 else
9452 lt_cv_prog_compiler__b=yes
9453 fi
9454 fi
9455 $RM -r conftest*
9456 LDFLAGS="$save_LDFLAGS"
9457
9458 fi
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9460 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9461
9462 if test x"$lt_cv_prog_compiler__b" = xyes; then
9463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9464 else
9465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9466 fi
9467
9468 ;;
9469 esac
9470 fi
9471 if test "$with_gnu_ld" = no; then
9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_separator=:
9474
9475 case $host_cpu in
9476 hppa*64*|ia64*)
9477 hardcode_direct=no
9478 hardcode_shlibpath_var=no
9479 ;;
9480 *)
9481 hardcode_direct=yes
9482 hardcode_direct_absolute=yes
9483 export_dynamic_flag_spec='${wl}-E'
9484
9485 # hardcode_minus_L: Not really in the search PATH,
9486 # but as the default location of the library.
9487 hardcode_minus_L=yes
9488 ;;
9489 esac
9490 fi
9491 ;;
9492
9493 irix5* | irix6* | nonstopux*)
9494 if test "$GCC" = yes; then
9495 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'
9496 # Try to use the -exported_symbol ld option, if it does not
9497 # work, assume that -exports_file does not work either and
9498 # implicitly export all symbols.
9499 save_LDFLAGS="$LDFLAGS"
9500 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 int foo(void) {}
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 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'
9507
9508 fi
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LDFLAGS="$save_LDFLAGS"
9512 else
9513 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'
9514 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'
9515 fi
9516 archive_cmds_need_lc='no'
9517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518 hardcode_libdir_separator=:
9519 inherit_rpath=yes
9520 link_all_deplibs=yes
9521 ;;
9522
9523 netbsd*)
9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9526 else
9527 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9528 fi
9529 hardcode_libdir_flag_spec='-R$libdir'
9530 hardcode_direct=yes
9531 hardcode_shlibpath_var=no
9532 ;;
9533
9534 newsos6)
9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_direct=yes
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 hardcode_libdir_separator=:
9539 hardcode_shlibpath_var=no
9540 ;;
9541
9542 *nto* | *qnx*)
9543 ;;
9544
9545 openbsd*)
9546 if test -f /usr/libexec/ld.so; then
9547 hardcode_direct=yes
9548 hardcode_shlibpath_var=no
9549 hardcode_direct_absolute=yes
9550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9554 export_dynamic_flag_spec='${wl}-E'
9555 else
9556 case $host_os in
9557 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_libdir_flag_spec='-R$libdir'
9560 ;;
9561 *)
9562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9564 ;;
9565 esac
9566 fi
9567 else
9568 ld_shlibs=no
9569 fi
9570 ;;
9571
9572 os2*)
9573 hardcode_libdir_flag_spec='-L$libdir'
9574 hardcode_minus_L=yes
9575 allow_undefined_flag=unsupported
9576 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'
9577 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9578 ;;
9579
9580 osf3*)
9581 if test "$GCC" = yes; then
9582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583 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'
9584 else
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9587 fi
9588 archive_cmds_need_lc='no'
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 hardcode_libdir_separator=:
9591 ;;
9592
9593 osf4* | osf5*) # as osf3* with the addition of -msym flag
9594 if test "$GCC" = yes; then
9595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596 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'
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598 else
9599 allow_undefined_flag=' -expect_unresolved \*'
9600 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'
9601 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~
9602 $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'
9603
9604 # Both c and cxx compiler support -rpath directly
9605 hardcode_libdir_flag_spec='-rpath $libdir'
9606 fi
9607 archive_cmds_need_lc='no'
9608 hardcode_libdir_separator=:
9609 ;;
9610
9611 solaris*)
9612 no_undefined_flag=' -z defs'
9613 if test "$GCC" = yes; then
9614 wlarc='${wl}'
9615 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 else
9619 case `$CC -V 2>&1` in
9620 *"Compilers 5.0"*)
9621 wlarc=''
9622 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9625 ;;
9626 *)
9627 wlarc='${wl}'
9628 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9630 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9631 ;;
9632 esac
9633 fi
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_shlibpath_var=no
9636 case $host_os in
9637 solaris2.[0-5] | solaris2.[0-5].*) ;;
9638 *)
9639 # The compiler driver will combine and reorder linker options,
9640 # but understands `-z linker_flag'. GCC discards it without `$wl',
9641 # but is careful enough not to reorder.
9642 # Supported since Solaris 2.6 (maybe 2.5.1?)
9643 if test "$GCC" = yes; then
9644 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9645 else
9646 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9647 fi
9648 ;;
9649 esac
9650 link_all_deplibs=yes
9651 ;;
9652
9653 sunos4*)
9654 if test "x$host_vendor" = xsequent; then
9655 # Use $CC to link under sequent, because it throws in some extra .o
9656 # files that make .init and .fini sections work.
9657 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9658 else
9659 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9660 fi
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_direct=yes
9663 hardcode_minus_L=yes
9664 hardcode_shlibpath_var=no
9665 ;;
9666
9667 sysv4)
9668 case $host_vendor in
9669 sni)
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_direct=yes # is this really true???
9672 ;;
9673 siemens)
9674 ## LD is ld it makes a PLAMLIB
9675 ## CC just makes a GrossModule.
9676 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9677 reload_cmds='$CC -r -o $output$reload_objs'
9678 hardcode_direct=no
9679 ;;
9680 motorola)
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9683 ;;
9684 esac
9685 runpath_var='LD_RUN_PATH'
9686 hardcode_shlibpath_var=no
9687 ;;
9688
9689 sysv4.3*)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_shlibpath_var=no
9692 export_dynamic_flag_spec='-Bexport'
9693 ;;
9694
9695 sysv4*MP*)
9696 if test -d /usr/nec; then
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_shlibpath_var=no
9699 runpath_var=LD_RUN_PATH
9700 hardcode_runpath_var=yes
9701 ld_shlibs=yes
9702 fi
9703 ;;
9704
9705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9706 no_undefined_flag='${wl}-z,text'
9707 archive_cmds_need_lc=no
9708 hardcode_shlibpath_var=no
9709 runpath_var='LD_RUN_PATH'
9710
9711 if test "$GCC" = yes; then
9712 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 else
9715 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 fi
9718 ;;
9719
9720 sysv5* | sco3.2v5* | sco5v6*)
9721 # Note: We can NOT use -z defs as we might desire, because we do not
9722 # link with -lc, and that would cause any symbols used from libc to
9723 # always be unresolved, which means just about no library would
9724 # ever link correctly. If we're not using GNU ld we use -z text
9725 # though, which does catch some bad symbols but isn't as heavy-handed
9726 # as -z defs.
9727 no_undefined_flag='${wl}-z,text'
9728 allow_undefined_flag='${wl}-z,nodefs'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9732 hardcode_libdir_separator=':'
9733 link_all_deplibs=yes
9734 export_dynamic_flag_spec='${wl}-Bexport'
9735 runpath_var='LD_RUN_PATH'
9736
9737 if test "$GCC" = yes; then
9738 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 else
9741 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 fi
9744 ;;
9745
9746 uts4*)
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_libdir_flag_spec='-L$libdir'
9749 hardcode_shlibpath_var=no
9750 ;;
9751
9752 *)
9753 ld_shlibs=no
9754 ;;
9755 esac
9756
9757 if test x$host_vendor = xsni; then
9758 case $host in
9759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9760 export_dynamic_flag_spec='${wl}-Blargedynsym'
9761 ;;
9762 esac
9763 fi
9764 fi
9765
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9767 $as_echo "$ld_shlibs" >&6; }
9768 test "$ld_shlibs" = no && can_build_shared=no
9769
9770 with_gnu_ld=$with_gnu_ld
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786 #
9787 # Do we need to explicitly link libc?
9788 #
9789 case "x$archive_cmds_need_lc" in
9790 x|xyes)
9791 # Assume -lc should be added
9792 archive_cmds_need_lc=yes
9793
9794 if test "$enable_shared" = yes && test "$GCC" = yes; then
9795 case $archive_cmds in
9796 *'~'*)
9797 # FIXME: we may have to deal with multi-command sequences.
9798 ;;
9799 '$CC '*)
9800 # Test whether the compiler implicitly links with -lc since on some
9801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9802 # to ld, don't add -lc before -lgcc.
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9804 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9805 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 $RM conftest*
9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9810
9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9812 (eval $ac_compile) 2>&5
9813 ac_status=$?
9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; } 2>conftest.err; then
9816 soname=conftest
9817 lib=conftest
9818 libobjs=conftest.$ac_objext
9819 deplibs=
9820 wl=$lt_prog_compiler_wl
9821 pic_flag=$lt_prog_compiler_pic
9822 compiler_flags=-v
9823 linker_flags=-v
9824 verstring=
9825 output_objdir=.
9826 libname=conftest
9827 lt_save_allow_undefined_flag=$allow_undefined_flag
9828 allow_undefined_flag=
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9830 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9831 ac_status=$?
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; }
9834 then
9835 lt_cv_archive_cmds_need_lc=no
9836 else
9837 lt_cv_archive_cmds_need_lc=yes
9838 fi
9839 allow_undefined_flag=$lt_save_allow_undefined_flag
9840 else
9841 cat conftest.err 1>&5
9842 fi
9843 $RM conftest*
9844
9845 fi
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9847 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9848 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9849 ;;
9850 esac
9851 fi
9852 ;;
9853 esac
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
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10012 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10013
10014 if test "$GCC" = yes; then
10015 case $host_os in
10016 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10017 *) lt_awk_arg="/^libraries:/" ;;
10018 esac
10019 case $host_os in
10020 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10021 *) lt_sed_strip_eq="s,=/,/,g" ;;
10022 esac
10023 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10024 case $lt_search_path_spec in
10025 *\;*)
10026 # if the path contains ";" then we assume it to be the separator
10027 # otherwise default to the standard path separator (i.e. ":") - it is
10028 # assumed that no part of a normal pathname contains ";" but that should
10029 # okay in the real world where ";" in dirpaths is itself problematic.
10030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10031 ;;
10032 *)
10033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10034 ;;
10035 esac
10036 # Ok, now we have the path, separated by spaces, we can step through it
10037 # and add multilib dir if necessary.
10038 lt_tmp_lt_search_path_spec=
10039 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10040 for lt_sys_path in $lt_search_path_spec; do
10041 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10043 else
10044 test -d "$lt_sys_path" && \
10045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10046 fi
10047 done
10048 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10049 BEGIN {RS=" "; FS="/|\n";} {
10050 lt_foo="";
10051 lt_count=0;
10052 for (lt_i = NF; lt_i > 0; lt_i--) {
10053 if ($lt_i != "" && $lt_i != ".") {
10054 if ($lt_i == "..") {
10055 lt_count++;
10056 } else {
10057 if (lt_count == 0) {
10058 lt_foo="/" $lt_i lt_foo;
10059 } else {
10060 lt_count--;
10061 }
10062 }
10063 }
10064 }
10065 if (lt_foo != "") { lt_freq[lt_foo]++; }
10066 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10067 }'`
10068 # AWK program above erroneously prepends '/' to C:/dos/paths
10069 # for these hosts.
10070 case $host_os in
10071 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10072 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10073 esac
10074 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10075 else
10076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10077 fi
10078 library_names_spec=
10079 libname_spec='lib$name'
10080 soname_spec=
10081 shrext_cmds=".so"
10082 postinstall_cmds=
10083 postuninstall_cmds=
10084 finish_cmds=
10085 finish_eval=
10086 shlibpath_var=
10087 shlibpath_overrides_runpath=unknown
10088 version_type=none
10089 dynamic_linker="$host_os ld.so"
10090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10091 need_lib_prefix=unknown
10092 hardcode_into_libs=no
10093
10094 # when you set need_version to no, make sure it does not cause -set_version
10095 # flags to be left without arguments
10096 need_version=unknown
10097
10098 case $host_os in
10099 aix3*)
10100 version_type=linux
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10102 shlibpath_var=LIBPATH
10103
10104 # AIX 3 has no versioning support, so we append a major version to the name.
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 ;;
10107
10108 aix[4-9]*)
10109 version_type=linux
10110 need_lib_prefix=no
10111 need_version=no
10112 hardcode_into_libs=yes
10113 if test "$host_cpu" = ia64; then
10114 # AIX 5 supports IA64
10115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 else
10118 # With GCC up to 2.95.x, collect2 would create an import file
10119 # for dependence libraries. The import file would start with
10120 # the line `#! .'. This would cause the generated library to
10121 # depend on `.', always an invalid library. This was fixed in
10122 # development snapshots of GCC prior to 3.0.
10123 case $host_os in
10124 aix4 | aix4.[01] | aix4.[01].*)
10125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10126 echo ' yes '
10127 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10128 :
10129 else
10130 can_build_shared=no
10131 fi
10132 ;;
10133 esac
10134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10135 # soname into executable. Probably we can add versioning support to
10136 # collect2, so additional links can be useful in future.
10137 if test "$aix_use_runtimelinking" = yes; then
10138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10139 # instead of lib<name>.a to let people know that these are not
10140 # typical AIX shared libraries.
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 else
10143 # We preserve .a as extension for shared libraries through AIX4.2
10144 # and later when we are not doing run time linking.
10145 library_names_spec='${libname}${release}.a $libname.a'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 fi
10148 shlibpath_var=LIBPATH
10149 fi
10150 ;;
10151
10152 amigaos*)
10153 case $host_cpu in
10154 powerpc)
10155 # Since July 2007 AmigaOS4 officially supports .so libraries.
10156 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 ;;
10159 m68k)
10160 library_names_spec='$libname.ixlibrary $libname.a'
10161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10162 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'
10163 ;;
10164 esac
10165 ;;
10166
10167 beos*)
10168 library_names_spec='${libname}${shared_ext}'
10169 dynamic_linker="$host_os ld.so"
10170 shlibpath_var=LIBRARY_PATH
10171 ;;
10172
10173 bsdi[45]*)
10174 version_type=linux
10175 need_version=no
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10182 # the default ld.so.conf also contains /usr/contrib/lib and
10183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10184 # libtool to hard-code these into programs
10185 ;;
10186
10187 cygwin* | mingw* | pw32* | cegcc*)
10188 version_type=windows
10189 shrext_cmds=".dll"
10190 need_version=no
10191 need_lib_prefix=no
10192
10193 case $GCC,$host_os in
10194 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10195 library_names_spec='$libname.dll.a'
10196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10197 postinstall_cmds='base_file=`basename \${file}`~
10198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10199 dldir=$destdir/`dirname \$dlpath`~
10200 test -d \$dldir || mkdir -p \$dldir~
10201 $install_prog $dir/$dlname \$dldir/$dlname~
10202 chmod a+x \$dldir/$dlname~
10203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10205 fi'
10206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10207 dlpath=$dir/\$dldll~
10208 $RM \$dlpath'
10209 shlibpath_overrides_runpath=yes
10210
10211 case $host_os in
10212 cygwin*)
10213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10215
10216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10217 ;;
10218 mingw* | cegcc*)
10219 # MinGW DLLs use traditional 'lib' prefix
10220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10221 ;;
10222 pw32*)
10223 # pw32 DLLs use 'pw' prefix rather than 'lib'
10224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10225 ;;
10226 esac
10227 ;;
10228
10229 *)
10230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10231 ;;
10232 esac
10233 dynamic_linker='Win32 ld.exe'
10234 # FIXME: first we should search . and the directory the executable is in
10235 shlibpath_var=PATH
10236 ;;
10237
10238 darwin* | rhapsody*)
10239 dynamic_linker="$host_os dyld"
10240 version_type=darwin
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10244 soname_spec='${libname}${release}${major}$shared_ext'
10245 shlibpath_overrides_runpath=yes
10246 shlibpath_var=DYLD_LIBRARY_PATH
10247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10248
10249 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10251 ;;
10252
10253 dgux*)
10254 version_type=linux
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 ;;
10261
10262 freebsd* | dragonfly*)
10263 # DragonFly does not have aout. When/if they implement a new
10264 # versioning mechanism, adjust this.
10265 if test -x /usr/bin/objformat; then
10266 objformat=`/usr/bin/objformat`
10267 else
10268 case $host_os in
10269 freebsd[23].*) objformat=aout ;;
10270 *) objformat=elf ;;
10271 esac
10272 fi
10273 version_type=freebsd-$objformat
10274 case $version_type in
10275 freebsd-elf*)
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10277 need_version=no
10278 need_lib_prefix=no
10279 ;;
10280 freebsd-*)
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10282 need_version=yes
10283 ;;
10284 esac
10285 shlibpath_var=LD_LIBRARY_PATH
10286 case $host_os in
10287 freebsd2.*)
10288 shlibpath_overrides_runpath=yes
10289 ;;
10290 freebsd3.[01]* | freebsdelf3.[01]*)
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10293 ;;
10294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10296 shlibpath_overrides_runpath=no
10297 hardcode_into_libs=yes
10298 ;;
10299 *) # from 4.6 on, and DragonFly
10300 shlibpath_overrides_runpath=yes
10301 hardcode_into_libs=yes
10302 ;;
10303 esac
10304 ;;
10305
10306 gnu*)
10307 version_type=linux
10308 need_lib_prefix=no
10309 need_version=no
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=LD_LIBRARY_PATH
10313 hardcode_into_libs=yes
10314 ;;
10315
10316 haiku*)
10317 version_type=linux
10318 need_lib_prefix=no
10319 need_version=no
10320 dynamic_linker="$host_os runtime_loader"
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10325 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10326 hardcode_into_libs=yes
10327 ;;
10328
10329 hpux9* | hpux10* | hpux11*)
10330 # Give a soname corresponding to the major version so that dld.sl refuses to
10331 # link against other versions.
10332 version_type=sunos
10333 need_lib_prefix=no
10334 need_version=no
10335 case $host_cpu in
10336 ia64*)
10337 shrext_cmds='.so'
10338 hardcode_into_libs=yes
10339 dynamic_linker="$host_os dld.so"
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 if test "X$HPUX_IA64_MODE" = X32; then
10345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10346 else
10347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10348 fi
10349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10350 ;;
10351 hppa*64*)
10352 shrext_cmds='.sl'
10353 hardcode_into_libs=yes
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10361 ;;
10362 *)
10363 shrext_cmds='.sl'
10364 dynamic_linker="$host_os dld.sl"
10365 shlibpath_var=SHLIB_PATH
10366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 ;;
10370 esac
10371 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10372 postinstall_cmds='chmod 555 $lib'
10373 # or fails outright, so override atomically:
10374 install_override_mode=555
10375 ;;
10376
10377 interix[3-9]*)
10378 version_type=linux
10379 need_lib_prefix=no
10380 need_version=no
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=no
10386 hardcode_into_libs=yes
10387 ;;
10388
10389 irix5* | irix6* | nonstopux*)
10390 case $host_os in
10391 nonstopux*) version_type=nonstopux ;;
10392 *)
10393 if test "$lt_cv_prog_gnu_ld" = yes; then
10394 version_type=linux
10395 else
10396 version_type=irix
10397 fi ;;
10398 esac
10399 need_lib_prefix=no
10400 need_version=no
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10403 case $host_os in
10404 irix5* | nonstopux*)
10405 libsuff= shlibsuff=
10406 ;;
10407 *)
10408 case $LD in # libtool.m4 will add one of these switches to LD
10409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10410 libsuff= shlibsuff= libmagic=32-bit;;
10411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10412 libsuff=32 shlibsuff=N32 libmagic=N32;;
10413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10415 *) libsuff= shlibsuff= libmagic=never-match;;
10416 esac
10417 ;;
10418 esac
10419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10420 shlibpath_overrides_runpath=no
10421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10423 hardcode_into_libs=yes
10424 ;;
10425
10426 # No shared lib support for Linux oldld, aout, or coff.
10427 linux*oldld* | linux*aout* | linux*coff*)
10428 dynamic_linker=no
10429 ;;
10430
10431 # This must be Linux ELF.
10432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10433 version_type=linux
10434 need_lib_prefix=no
10435 need_version=no
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=no
10441
10442 # Some binutils ld are patched to set DT_RUNPATH
10443 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 lt_cv_shlibpath_overrides_runpath=no
10447 save_LDFLAGS=$LDFLAGS
10448 save_libdir=$libdir
10449 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10450 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453
10454 int
10455 main ()
10456 {
10457
10458 ;
10459 return 0;
10460 }
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10464 lt_cv_shlibpath_overrides_runpath=yes
10465 fi
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 LDFLAGS=$save_LDFLAGS
10470 libdir=$save_libdir
10471
10472 fi
10473
10474 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10475
10476 # This implies no fast_install, which is unacceptable.
10477 # Some rework will be needed to allow for fast_install
10478 # before this can be enabled.
10479 hardcode_into_libs=yes
10480
10481 # Append ld.so.conf contents to the search path
10482 if test -f /etc/ld.so.conf; then
10483 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' ' '`
10484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10485 fi
10486
10487 # We used to test for /lib/ld.so.1 and disable shared libraries on
10488 # powerpc, because MkLinux only supported shared libraries with the
10489 # GNU dynamic linker. Since this was broken with cross compilers,
10490 # most powerpc-linux boxes support dynamic linking these days and
10491 # people can always --disable-shared, the test was removed, and we
10492 # assume the GNU/Linux dynamic linker is in use.
10493 dynamic_linker='GNU/Linux ld.so'
10494 ;;
10495
10496 netbsd*)
10497 version_type=sunos
10498 need_lib_prefix=no
10499 need_version=no
10500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10503 dynamic_linker='NetBSD (a.out) ld.so'
10504 else
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 dynamic_linker='NetBSD ld.elf_so'
10508 fi
10509 shlibpath_var=LD_LIBRARY_PATH
10510 shlibpath_overrides_runpath=yes
10511 hardcode_into_libs=yes
10512 ;;
10513
10514 newsos6)
10515 version_type=linux
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes
10519 ;;
10520
10521 *nto* | *qnx*)
10522 version_type=qnx
10523 need_lib_prefix=no
10524 need_version=no
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=no
10529 hardcode_into_libs=yes
10530 dynamic_linker='ldqnx.so'
10531 ;;
10532
10533 openbsd*)
10534 version_type=sunos
10535 sys_lib_dlsearch_path_spec="/usr/lib"
10536 need_lib_prefix=no
10537 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10538 case $host_os in
10539 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10540 *) need_version=no ;;
10541 esac
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10546 case $host_os in
10547 openbsd2.[89] | openbsd2.[89].*)
10548 shlibpath_overrides_runpath=no
10549 ;;
10550 *)
10551 shlibpath_overrides_runpath=yes
10552 ;;
10553 esac
10554 else
10555 shlibpath_overrides_runpath=yes
10556 fi
10557 ;;
10558
10559 os2*)
10560 libname_spec='$name'
10561 shrext_cmds=".dll"
10562 need_lib_prefix=no
10563 library_names_spec='$libname${shared_ext} $libname.a'
10564 dynamic_linker='OS/2 ld.exe'
10565 shlibpath_var=LIBPATH
10566 ;;
10567
10568 osf3* | osf4* | osf5*)
10569 version_type=osf
10570 need_lib_prefix=no
10571 need_version=no
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10576 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10577 ;;
10578
10579 rdos*)
10580 dynamic_linker=no
10581 ;;
10582
10583 solaris*)
10584 version_type=linux
10585 need_lib_prefix=no
10586 need_version=no
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=yes
10591 hardcode_into_libs=yes
10592 # ldd complains unless libraries are executable
10593 postinstall_cmds='chmod +x $lib'
10594 ;;
10595
10596 sunos4*)
10597 version_type=sunos
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=yes
10602 if test "$with_gnu_ld" = yes; then
10603 need_lib_prefix=no
10604 fi
10605 need_version=yes
10606 ;;
10607
10608 sysv4 | sysv4.3*)
10609 version_type=linux
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 case $host_vendor in
10614 sni)
10615 shlibpath_overrides_runpath=no
10616 need_lib_prefix=no
10617 runpath_var=LD_RUN_PATH
10618 ;;
10619 siemens)
10620 need_lib_prefix=no
10621 ;;
10622 motorola)
10623 need_lib_prefix=no
10624 need_version=no
10625 shlibpath_overrides_runpath=no
10626 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10627 ;;
10628 esac
10629 ;;
10630
10631 sysv4*MP*)
10632 if test -d /usr/nec ;then
10633 version_type=linux
10634 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10635 soname_spec='$libname${shared_ext}.$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 fi
10638 ;;
10639
10640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10641 version_type=freebsd-elf
10642 need_lib_prefix=no
10643 need_version=no
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=yes
10648 hardcode_into_libs=yes
10649 if test "$with_gnu_ld" = yes; then
10650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10651 else
10652 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10653 case $host_os in
10654 sco3.2v5*)
10655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10656 ;;
10657 esac
10658 fi
10659 sys_lib_dlsearch_path_spec='/usr/lib'
10660 ;;
10661
10662 tpf*)
10663 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10664 version_type=linux
10665 need_lib_prefix=no
10666 need_version=no
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 shlibpath_overrides_runpath=no
10670 hardcode_into_libs=yes
10671 ;;
10672
10673 uts4*)
10674 version_type=linux
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 ;;
10679
10680 *)
10681 dynamic_linker=no
10682 ;;
10683 esac
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10685 $as_echo "$dynamic_linker" >&6; }
10686 test "$dynamic_linker" = no && can_build_shared=no
10687
10688 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10689 if test "$GCC" = yes; then
10690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10691 fi
10692
10693 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10694 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10695 fi
10696 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10697 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10698 fi
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
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10792 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10793 hardcode_action=
10794 if test -n "$hardcode_libdir_flag_spec" ||
10795 test -n "$runpath_var" ||
10796 test "X$hardcode_automatic" = "Xyes" ; then
10797
10798 # We can hardcode non-existent directories.
10799 if test "$hardcode_direct" != no &&
10800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10801 # have to relink, otherwise we might link with an installed library
10802 # when we should be linking with a yet-to-be-installed one
10803 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10804 test "$hardcode_minus_L" != no; then
10805 # Linking always hardcodes the temporary library directory.
10806 hardcode_action=relink
10807 else
10808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10809 hardcode_action=immediate
10810 fi
10811 else
10812 # We cannot hardcode anything, or else we can only hardcode existing
10813 # directories.
10814 hardcode_action=unsupported
10815 fi
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10817 $as_echo "$hardcode_action" >&6; }
10818
10819 if test "$hardcode_action" = relink ||
10820 test "$inherit_rpath" = yes; then
10821 # Fast installation is not supported
10822 enable_fast_install=no
10823 elif test "$shlibpath_overrides_runpath" = yes ||
10824 test "$enable_shared" = no; then
10825 # Fast installation is not necessary
10826 enable_fast_install=needless
10827 fi
10828
10829
10830
10831
10832
10833
10834 if test "x$enable_dlopen" != xyes; then
10835 enable_dlopen=unknown
10836 enable_dlopen_self=unknown
10837 enable_dlopen_self_static=unknown
10838 else
10839 lt_cv_dlopen=no
10840 lt_cv_dlopen_libs=
10841
10842 case $host_os in
10843 beos*)
10844 lt_cv_dlopen="load_add_on"
10845 lt_cv_dlopen_libs=
10846 lt_cv_dlopen_self=yes
10847 ;;
10848
10849 mingw* | pw32* | cegcc*)
10850 lt_cv_dlopen="LoadLibrary"
10851 lt_cv_dlopen_libs=
10852 ;;
10853
10854 cygwin*)
10855 lt_cv_dlopen="dlopen"
10856 lt_cv_dlopen_libs=
10857 ;;
10858
10859 darwin*)
10860 # if libdl is installed we need to link against it
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 ac_check_lib_save_LIBS=$LIBS
10867 LIBS="-ldl $LIBS"
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 char dlopen ();
10878 int
10879 main ()
10880 {
10881 return dlopen ();
10882 ;
10883 return 0;
10884 }
10885 _ACEOF
10886 if ac_fn_c_try_link "$LINENO"; then :
10887 ac_cv_lib_dl_dlopen=yes
10888 else
10889 ac_cv_lib_dl_dlopen=no
10890 fi
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10894 fi
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10897 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10899 else
10900
10901 lt_cv_dlopen="dyld"
10902 lt_cv_dlopen_libs=
10903 lt_cv_dlopen_self=yes
10904
10905 fi
10906
10907 ;;
10908
10909 *)
10910 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10911 if test "x$ac_cv_func_shl_load" = x""yes; then :
10912 lt_cv_dlopen="shl_load"
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10915 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10916 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-ldld $LIBS"
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923
10924 /* Override any GCC internal prototype to avoid an error.
10925 Use char because int might match the return type of a GCC
10926 builtin and then its argument prototype would still apply. */
10927 #ifdef __cplusplus
10928 extern "C"
10929 #endif
10930 char shl_load ();
10931 int
10932 main ()
10933 {
10934 return shl_load ();
10935 ;
10936 return 0;
10937 }
10938 _ACEOF
10939 if ac_fn_c_try_link "$LINENO"; then :
10940 ac_cv_lib_dld_shl_load=yes
10941 else
10942 ac_cv_lib_dld_shl_load=no
10943 fi
10944 rm -f core conftest.err conftest.$ac_objext \
10945 conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10947 fi
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10949 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10950 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10951 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10952 else
10953 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10954 if test "x$ac_cv_func_dlopen" = x""yes; then :
10955 lt_cv_dlopen="dlopen"
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10958 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 ac_check_lib_save_LIBS=$LIBS
10963 LIBS="-ldl $LIBS"
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10966
10967 /* Override any GCC internal prototype to avoid an error.
10968 Use char because int might match the return type of a GCC
10969 builtin and then its argument prototype would still apply. */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 char dlopen ();
10974 int
10975 main ()
10976 {
10977 return dlopen ();
10978 ;
10979 return 0;
10980 }
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983 ac_cv_lib_dl_dlopen=yes
10984 else
10985 ac_cv_lib_dl_dlopen=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext \
10988 conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10992 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10993 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10997 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-lsvld $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char dlopen ();
11013 int
11014 main ()
11015 {
11016 return dlopen ();
11017 ;
11018 return 0;
11019 }
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_svld_dlopen=yes
11023 else
11024 ac_cv_lib_svld_dlopen=no
11025 fi
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11029 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11031 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11032 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11036 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11037 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-ldld $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char dld_link ();
11052 int
11053 main ()
11054 {
11055 return dld_link ();
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_dld_dld_link=yes
11062 else
11063 ac_cv_lib_dld_dld_link=no
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11068 fi
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11070 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11071 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11072 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11073 fi
11074
11075
11076 fi
11077
11078
11079 fi
11080
11081
11082 fi
11083
11084
11085 fi
11086
11087
11088 fi
11089
11090 ;;
11091 esac
11092
11093 if test "x$lt_cv_dlopen" != xno; then
11094 enable_dlopen=yes
11095 else
11096 enable_dlopen=no
11097 fi
11098
11099 case $lt_cv_dlopen in
11100 dlopen)
11101 save_CPPFLAGS="$CPPFLAGS"
11102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11103
11104 save_LDFLAGS="$LDFLAGS"
11105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11106
11107 save_LIBS="$LIBS"
11108 LIBS="$lt_cv_dlopen_libs $LIBS"
11109
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11111 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11112 if test "${lt_cv_dlopen_self+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 if test "$cross_compiling" = yes; then :
11116 lt_cv_dlopen_self=cross
11117 else
11118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11119 lt_status=$lt_dlunknown
11120 cat > conftest.$ac_ext <<_LT_EOF
11121 #line 11121 "configure"
11122 #include "confdefs.h"
11123
11124 #if HAVE_DLFCN_H
11125 #include <dlfcn.h>
11126 #endif
11127
11128 #include <stdio.h>
11129
11130 #ifdef RTLD_GLOBAL
11131 # define LT_DLGLOBAL RTLD_GLOBAL
11132 #else
11133 # ifdef DL_GLOBAL
11134 # define LT_DLGLOBAL DL_GLOBAL
11135 # else
11136 # define LT_DLGLOBAL 0
11137 # endif
11138 #endif
11139
11140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11141 find out it does not work in some platform. */
11142 #ifndef LT_DLLAZY_OR_NOW
11143 # ifdef RTLD_LAZY
11144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11145 # else
11146 # ifdef DL_LAZY
11147 # define LT_DLLAZY_OR_NOW DL_LAZY
11148 # else
11149 # ifdef RTLD_NOW
11150 # define LT_DLLAZY_OR_NOW RTLD_NOW
11151 # else
11152 # ifdef DL_NOW
11153 # define LT_DLLAZY_OR_NOW DL_NOW
11154 # else
11155 # define LT_DLLAZY_OR_NOW 0
11156 # endif
11157 # endif
11158 # endif
11159 # endif
11160 #endif
11161
11162 /* When -fvisbility=hidden is used, assume the code has been annotated
11163 correspondingly for the symbols needed. */
11164 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11165 void fnord () __attribute__((visibility("default")));
11166 #endif
11167
11168 void fnord () { int i=42; }
11169 int main ()
11170 {
11171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11172 int status = $lt_dlunknown;
11173
11174 if (self)
11175 {
11176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11177 else
11178 {
11179 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11180 else puts (dlerror ());
11181 }
11182 /* dlclose (self); */
11183 }
11184 else
11185 puts (dlerror ());
11186
11187 return status;
11188 }
11189 _LT_EOF
11190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11191 (eval $ac_link) 2>&5
11192 ac_status=$?
11193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11194 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11195 (./conftest; exit; ) >&5 2>/dev/null
11196 lt_status=$?
11197 case x$lt_status in
11198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11201 esac
11202 else :
11203 # compilation failed
11204 lt_cv_dlopen_self=no
11205 fi
11206 fi
11207 rm -fr conftest*
11208
11209
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11212 $as_echo "$lt_cv_dlopen_self" >&6; }
11213
11214 if test "x$lt_cv_dlopen_self" = xyes; then
11215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11217 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self_static=cross
11223 else
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11229
11230 #if HAVE_DLFCN_H
11231 #include <dlfcn.h>
11232 #endif
11233
11234 #include <stdio.h>
11235
11236 #ifdef RTLD_GLOBAL
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11238 #else
11239 # ifdef DL_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11241 # else
11242 # define LT_DLGLOBAL 0
11243 # endif
11244 #endif
11245
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11249 # ifdef RTLD_LAZY
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11251 # else
11252 # ifdef DL_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11254 # else
11255 # ifdef RTLD_NOW
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11257 # else
11258 # ifdef DL_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11260 # else
11261 # define LT_DLLAZY_OR_NOW 0
11262 # endif
11263 # endif
11264 # endif
11265 # endif
11266 #endif
11267
11268 /* When -fvisbility=hidden is used, assume the code has been annotated
11269 correspondingly for the symbols needed. */
11270 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11271 void fnord () __attribute__((visibility("default")));
11272 #endif
11273
11274 void fnord () { int i=42; }
11275 int main ()
11276 {
11277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11278 int status = $lt_dlunknown;
11279
11280 if (self)
11281 {
11282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11283 else
11284 {
11285 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11286 else puts (dlerror ());
11287 }
11288 /* dlclose (self); */
11289 }
11290 else
11291 puts (dlerror ());
11292
11293 return status;
11294 }
11295 _LT_EOF
11296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11297 (eval $ac_link) 2>&5
11298 ac_status=$?
11299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11300 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11301 (./conftest; exit; ) >&5 2>/dev/null
11302 lt_status=$?
11303 case x$lt_status in
11304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11306 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11307 esac
11308 else :
11309 # compilation failed
11310 lt_cv_dlopen_self_static=no
11311 fi
11312 fi
11313 rm -fr conftest*
11314
11315
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11318 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11319 fi
11320
11321 CPPFLAGS="$save_CPPFLAGS"
11322 LDFLAGS="$save_LDFLAGS"
11323 LIBS="$save_LIBS"
11324 ;;
11325 esac
11326
11327 case $lt_cv_dlopen_self in
11328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11329 *) enable_dlopen_self=unknown ;;
11330 esac
11331
11332 case $lt_cv_dlopen_self_static in
11333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11334 *) enable_dlopen_self_static=unknown ;;
11335 esac
11336 fi
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354 striplib=
11355 old_striplib=
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11357 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11358 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11359 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11360 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11362 $as_echo "yes" >&6; }
11363 else
11364 # FIXME - insert some real tests, host_os isn't really good enough
11365 case $host_os in
11366 darwin*)
11367 if test -n "$STRIP" ; then
11368 striplib="$STRIP -x"
11369 old_striplib="$STRIP -S"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371 $as_echo "yes" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 fi
11376 ;;
11377 *)
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 ;;
11381 esac
11382 fi
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395 # Report which library types will actually be built
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11397 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11399 $as_echo "$can_build_shared" >&6; }
11400
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11402 $as_echo_n "checking whether to build shared libraries... " >&6; }
11403 test "$can_build_shared" = "no" && enable_shared=no
11404
11405 # On AIX, shared libraries and static libraries use the same namespace, and
11406 # are all built from PIC.
11407 case $host_os in
11408 aix3*)
11409 test "$enable_shared" = yes && enable_static=no
11410 if test -n "$RANLIB"; then
11411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11412 postinstall_cmds='$RANLIB $lib'
11413 fi
11414 ;;
11415
11416 aix[4-9]*)
11417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11418 test "$enable_shared" = yes && enable_static=no
11419 fi
11420 ;;
11421 esac
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11423 $as_echo "$enable_shared" >&6; }
11424
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11426 $as_echo_n "checking whether to build static libraries... " >&6; }
11427 # Make sure either enable_shared or enable_static is yes.
11428 test "$enable_shared" = yes || enable_static=yes
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11430 $as_echo "$enable_static" >&6; }
11431
11432
11433
11434
11435 fi
11436 ac_ext=c
11437 ac_cpp='$CPP $CPPFLAGS'
11438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11441
11442 CC="$lt_save_CC"
11443
11444 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11445 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11446 (test "X$CXX" != "Xg++"))) ; then
11447 ac_ext=cpp
11448 ac_cpp='$CXXCPP $CPPFLAGS'
11449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11453 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11454 if test -z "$CXXCPP"; then
11455 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 # Double quotes because CXXCPP needs to be expanded
11459 for CXXCPP in "$CXX -E" "/lib/cpp"
11460 do
11461 ac_preproc_ok=false
11462 for ac_cxx_preproc_warn_flag in '' yes
11463 do
11464 # Use a header file that comes with gcc, so configuring glibc
11465 # with a fresh cross-compiler works.
11466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11467 # <limits.h> exists even on freestanding compilers.
11468 # On the NeXT, cc -E runs the code through the compiler's parser,
11469 # not just through cpp. "Syntax error" is here to catch this case.
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11472 #ifdef __STDC__
11473 # include <limits.h>
11474 #else
11475 # include <assert.h>
11476 #endif
11477 Syntax error
11478 _ACEOF
11479 if ac_fn_cxx_try_cpp "$LINENO"; then :
11480
11481 else
11482 # Broken: fails on valid input.
11483 continue
11484 fi
11485 rm -f conftest.err conftest.$ac_ext
11486
11487 # OK, works on sane cases. Now check whether nonexistent headers
11488 # can be detected and how.
11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11491 #include <ac_nonexistent.h>
11492 _ACEOF
11493 if ac_fn_cxx_try_cpp "$LINENO"; then :
11494 # Broken: success on invalid input.
11495 continue
11496 else
11497 # Passes both tests.
11498 ac_preproc_ok=:
11499 break
11500 fi
11501 rm -f conftest.err conftest.$ac_ext
11502
11503 done
11504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11505 rm -f conftest.err conftest.$ac_ext
11506 if $ac_preproc_ok; then :
11507 break
11508 fi
11509
11510 done
11511 ac_cv_prog_CXXCPP=$CXXCPP
11512
11513 fi
11514 CXXCPP=$ac_cv_prog_CXXCPP
11515 else
11516 ac_cv_prog_CXXCPP=$CXXCPP
11517 fi
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11519 $as_echo "$CXXCPP" >&6; }
11520 ac_preproc_ok=false
11521 for ac_cxx_preproc_warn_flag in '' yes
11522 do
11523 # Use a header file that comes with gcc, so configuring glibc
11524 # with a fresh cross-compiler works.
11525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11526 # <limits.h> exists even on freestanding compilers.
11527 # On the NeXT, cc -E runs the code through the compiler's parser,
11528 # not just through cpp. "Syntax error" is here to catch this case.
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531 #ifdef __STDC__
11532 # include <limits.h>
11533 #else
11534 # include <assert.h>
11535 #endif
11536 Syntax error
11537 _ACEOF
11538 if ac_fn_cxx_try_cpp "$LINENO"; then :
11539
11540 else
11541 # Broken: fails on valid input.
11542 continue
11543 fi
11544 rm -f conftest.err conftest.$ac_ext
11545
11546 # OK, works on sane cases. Now check whether nonexistent headers
11547 # can be detected and how.
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11550 #include <ac_nonexistent.h>
11551 _ACEOF
11552 if ac_fn_cxx_try_cpp "$LINENO"; then :
11553 # Broken: success on invalid input.
11554 continue
11555 else
11556 # Passes both tests.
11557 ac_preproc_ok=:
11558 break
11559 fi
11560 rm -f conftest.err conftest.$ac_ext
11561
11562 done
11563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11564 rm -f conftest.err conftest.$ac_ext
11565 if $ac_preproc_ok; then :
11566
11567 else
11568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11570 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11571 See \`config.log' for more details." "$LINENO" 5; }
11572 fi
11573
11574 ac_ext=c
11575 ac_cpp='$CPP $CPPFLAGS'
11576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11579
11580 else
11581 _lt_caught_CXX_error=yes
11582 fi
11583
11584 ac_ext=cpp
11585 ac_cpp='$CXXCPP $CPPFLAGS'
11586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11589
11590 archive_cmds_need_lc_CXX=no
11591 allow_undefined_flag_CXX=
11592 always_export_symbols_CXX=no
11593 archive_expsym_cmds_CXX=
11594 compiler_needs_object_CXX=no
11595 export_dynamic_flag_spec_CXX=
11596 hardcode_direct_CXX=no
11597 hardcode_direct_absolute_CXX=no
11598 hardcode_libdir_flag_spec_CXX=
11599 hardcode_libdir_flag_spec_ld_CXX=
11600 hardcode_libdir_separator_CXX=
11601 hardcode_minus_L_CXX=no
11602 hardcode_shlibpath_var_CXX=unsupported
11603 hardcode_automatic_CXX=no
11604 inherit_rpath_CXX=no
11605 module_cmds_CXX=
11606 module_expsym_cmds_CXX=
11607 link_all_deplibs_CXX=unknown
11608 old_archive_cmds_CXX=$old_archive_cmds
11609 reload_flag_CXX=$reload_flag
11610 reload_cmds_CXX=$reload_cmds
11611 no_undefined_flag_CXX=
11612 whole_archive_flag_spec_CXX=
11613 enable_shared_with_static_runtimes_CXX=no
11614
11615 # Source file extension for C++ test sources.
11616 ac_ext=cpp
11617
11618 # Object file extension for compiled C++ test sources.
11619 objext=o
11620 objext_CXX=$objext
11621
11622 # No sense in running all these tests if we already determined that
11623 # the CXX compiler isn't working. Some variables (like enable_shared)
11624 # are currently assumed to apply to all compilers on this platform,
11625 # and will be corrupted by setting them based on a non-working compiler.
11626 if test "$_lt_caught_CXX_error" != yes; then
11627 # Code to be used in simple compile tests
11628 lt_simple_compile_test_code="int some_variable = 0;"
11629
11630 # Code to be used in simple link tests
11631 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11632
11633 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11634
11635
11636
11637
11638
11639
11640 # If no C compiler was specified, use CC.
11641 LTCC=${LTCC-"$CC"}
11642
11643 # If no C compiler flags were specified, use CFLAGS.
11644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11645
11646 # Allow CC to be a program name with arguments.
11647 compiler=$CC
11648
11649
11650 # save warnings/boilerplate of simple test code
11651 ac_outfile=conftest.$ac_objext
11652 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11654 _lt_compiler_boilerplate=`cat conftest.err`
11655 $RM conftest*
11656
11657 ac_outfile=conftest.$ac_objext
11658 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11660 _lt_linker_boilerplate=`cat conftest.err`
11661 $RM -r conftest*
11662
11663
11664 # Allow CC to be a program name with arguments.
11665 lt_save_CC=$CC
11666 lt_save_LD=$LD
11667 lt_save_GCC=$GCC
11668 GCC=$GXX
11669 lt_save_with_gnu_ld=$with_gnu_ld
11670 lt_save_path_LD=$lt_cv_path_LD
11671 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11672 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11673 else
11674 $as_unset lt_cv_prog_gnu_ld
11675 fi
11676 if test -n "${lt_cv_path_LDCXX+set}"; then
11677 lt_cv_path_LD=$lt_cv_path_LDCXX
11678 else
11679 $as_unset lt_cv_path_LD
11680 fi
11681 test -z "${LDCXX+set}" || LD=$LDCXX
11682 CC=${CXX-"c++"}
11683 compiler=$CC
11684 compiler_CXX=$CC
11685 for cc_temp in $compiler""; do
11686 case $cc_temp in
11687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11689 \-*) ;;
11690 *) break;;
11691 esac
11692 done
11693 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11694
11695
11696 if test -n "$compiler"; then
11697 # We don't want -fno-exception when compiling C++ code, so set the
11698 # no_builtin_flag separately
11699 if test "$GXX" = yes; then
11700 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11701 else
11702 lt_prog_compiler_no_builtin_flag_CXX=
11703 fi
11704
11705 if test "$GXX" = yes; then
11706 # Set up default GNU C++ configuration
11707
11708
11709
11710 # Check whether --with-gnu-ld was given.
11711 if test "${with_gnu_ld+set}" = set; then :
11712 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11713 else
11714 with_gnu_ld=no
11715 fi
11716
11717 ac_prog=ld
11718 if test "$GCC" = yes; then
11719 # Check if gcc -print-prog-name=ld gives a path.
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11721 $as_echo_n "checking for ld used by $CC... " >&6; }
11722 case $host in
11723 *-*-mingw*)
11724 # gcc leaves a trailing carriage return which upsets mingw
11725 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11726 *)
11727 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11728 esac
11729 case $ac_prog in
11730 # Accept absolute paths.
11731 [\\/]* | ?:[\\/]*)
11732 re_direlt='/[^/][^/]*/\.\./'
11733 # Canonicalize the pathname of ld
11734 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11735 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11736 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11737 done
11738 test -z "$LD" && LD="$ac_prog"
11739 ;;
11740 "")
11741 # If it fails, then pretend we aren't using GCC.
11742 ac_prog=ld
11743 ;;
11744 *)
11745 # If it is relative, then search for the first ld in PATH.
11746 with_gnu_ld=unknown
11747 ;;
11748 esac
11749 elif test "$with_gnu_ld" = yes; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11751 $as_echo_n "checking for GNU ld... " >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11754 $as_echo_n "checking for non-GNU ld... " >&6; }
11755 fi
11756 if test "${lt_cv_path_LD+set}" = set; then :
11757 $as_echo_n "(cached) " >&6
11758 else
11759 if test -z "$LD"; then
11760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11761 for ac_dir in $PATH; do
11762 IFS="$lt_save_ifs"
11763 test -z "$ac_dir" && ac_dir=.
11764 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11765 lt_cv_path_LD="$ac_dir/$ac_prog"
11766 # Check to see if the program is GNU ld. I'd rather use --version,
11767 # but apparently some variants of GNU ld only accept -v.
11768 # Break only if it was the GNU/non-GNU ld that we prefer.
11769 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11770 *GNU* | *'with BFD'*)
11771 test "$with_gnu_ld" != no && break
11772 ;;
11773 *)
11774 test "$with_gnu_ld" != yes && break
11775 ;;
11776 esac
11777 fi
11778 done
11779 IFS="$lt_save_ifs"
11780 else
11781 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11782 fi
11783 fi
11784
11785 LD="$lt_cv_path_LD"
11786 if test -n "$LD"; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11788 $as_echo "$LD" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11792 fi
11793 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11795 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11796 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11800 case `$LD -v 2>&1 </dev/null` in
11801 *GNU* | *'with BFD'*)
11802 lt_cv_prog_gnu_ld=yes
11803 ;;
11804 *)
11805 lt_cv_prog_gnu_ld=no
11806 ;;
11807 esac
11808 fi
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11810 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11811 with_gnu_ld=$lt_cv_prog_gnu_ld
11812
11813
11814
11815
11816
11817
11818
11819 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11820 # archiving commands below assume that GNU ld is being used.
11821 if test "$with_gnu_ld" = yes; then
11822 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11823 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'
11824
11825 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11826 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11827
11828 # If archive_cmds runs LD, not CC, wlarc should be empty
11829 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11830 # investigate it a little bit more. (MM)
11831 wlarc='${wl}'
11832
11833 # ancient GNU ld didn't support --whole-archive et. al.
11834 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11835 $GREP 'no-whole-archive' > /dev/null; then
11836 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11837 else
11838 whole_archive_flag_spec_CXX=
11839 fi
11840 else
11841 with_gnu_ld=no
11842 wlarc=
11843
11844 # A generic and very simple default shared library creation
11845 # command for GNU C++ for the case where it uses the native
11846 # linker, instead of GNU ld. If possible, this setting should
11847 # overridden to take advantage of the native linker features on
11848 # the platform it is being used on.
11849 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11850 fi
11851
11852 # Commands to make compiler produce verbose output that lists
11853 # what "hidden" libraries, object files and flags are used when
11854 # linking a shared library.
11855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11856
11857 else
11858 GXX=no
11859 with_gnu_ld=no
11860 wlarc=
11861 fi
11862
11863 # PORTME: fill in a description of your system's C++ link characteristics
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11865 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11866 ld_shlibs_CXX=yes
11867 case $host_os in
11868 aix3*)
11869 # FIXME: insert proper C++ library support
11870 ld_shlibs_CXX=no
11871 ;;
11872 aix[4-9]*)
11873 if test "$host_cpu" = ia64; then
11874 # On IA64, the linker does run time linking by default, so we don't
11875 # have to do anything special.
11876 aix_use_runtimelinking=no
11877 exp_sym_flag='-Bexport'
11878 no_entry_flag=""
11879 else
11880 aix_use_runtimelinking=no
11881
11882 # Test if we are trying to use run time linking or normal
11883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11884 # need to do runtime linking.
11885 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11886 for ld_flag in $LDFLAGS; do
11887 case $ld_flag in
11888 *-brtl*)
11889 aix_use_runtimelinking=yes
11890 break
11891 ;;
11892 esac
11893 done
11894 ;;
11895 esac
11896
11897 exp_sym_flag='-bexport'
11898 no_entry_flag='-bnoentry'
11899 fi
11900
11901 # When large executables or shared objects are built, AIX ld can
11902 # have problems creating the table of contents. If linking a library
11903 # or program results in "error TOC overflow" add -mminimal-toc to
11904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11906
11907 archive_cmds_CXX=''
11908 hardcode_direct_CXX=yes
11909 hardcode_direct_absolute_CXX=yes
11910 hardcode_libdir_separator_CXX=':'
11911 link_all_deplibs_CXX=yes
11912 file_list_spec_CXX='${wl}-f,'
11913
11914 if test "$GXX" = yes; then
11915 case $host_os in aix4.[012]|aix4.[012].*)
11916 # We only want to do this on AIX 4.2 and lower, the check
11917 # below for broken collect2 doesn't work under 4.3+
11918 collect2name=`${CC} -print-prog-name=collect2`
11919 if test -f "$collect2name" &&
11920 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11921 then
11922 # We have reworked collect2
11923 :
11924 else
11925 # We have old collect2
11926 hardcode_direct_CXX=unsupported
11927 # It fails to find uninstalled libraries when the uninstalled
11928 # path is not listed in the libpath. Setting hardcode_minus_L
11929 # to unsupported forces relinking
11930 hardcode_minus_L_CXX=yes
11931 hardcode_libdir_flag_spec_CXX='-L$libdir'
11932 hardcode_libdir_separator_CXX=
11933 fi
11934 esac
11935 shared_flag='-shared'
11936 if test "$aix_use_runtimelinking" = yes; then
11937 shared_flag="$shared_flag "'${wl}-G'
11938 fi
11939 else
11940 # not using gcc
11941 if test "$host_cpu" = ia64; then
11942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11943 # chokes on -Wl,-G. The following line is correct:
11944 shared_flag='-G'
11945 else
11946 if test "$aix_use_runtimelinking" = yes; then
11947 shared_flag='${wl}-G'
11948 else
11949 shared_flag='${wl}-bM:SRE'
11950 fi
11951 fi
11952 fi
11953
11954 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11955 # It seems that -bexpall does not export symbols beginning with
11956 # underscore (_), so it is better to generate a list of symbols to
11957 # export.
11958 always_export_symbols_CXX=yes
11959 if test "$aix_use_runtimelinking" = yes; then
11960 # Warning - without using the other runtime loading flags (-brtl),
11961 # -berok will link without error, but may produce a broken library.
11962 allow_undefined_flag_CXX='-berok'
11963 # Determine the default libpath from the value encoded in an empty
11964 # executable.
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967
11968 int
11969 main ()
11970 {
11971
11972 ;
11973 return 0;
11974 }
11975 _ACEOF
11976 if ac_fn_cxx_try_link "$LINENO"; then :
11977
11978 lt_aix_libpath_sed='
11979 /Import File Strings/,/^$/ {
11980 /^0/ {
11981 s/^0 *\(.*\)$/\1/
11982 p
11983 }
11984 }'
11985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11986 # Check for a 64-bit object if we didn't find anything.
11987 if test -z "$aix_libpath"; then
11988 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11989 fi
11990 fi
11991 rm -f core conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11994
11995 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11996
11997 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"
11998 else
11999 if test "$host_cpu" = ia64; then
12000 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12001 allow_undefined_flag_CXX="-z nodefs"
12002 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"
12003 else
12004 # Determine the default libpath from the value encoded in an
12005 # empty executable.
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12008
12009 int
12010 main ()
12011 {
12012
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 if ac_fn_cxx_try_link "$LINENO"; then :
12018
12019 lt_aix_libpath_sed='
12020 /Import File Strings/,/^$/ {
12021 /^0/ {
12022 s/^0 *\(.*\)$/\1/
12023 p
12024 }
12025 }'
12026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12027 # Check for a 64-bit object if we didn't find anything.
12028 if test -z "$aix_libpath"; then
12029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12030 fi
12031 fi
12032 rm -f core conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12035
12036 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12037 # Warning - without using the other run time loading flags,
12038 # -berok will link without error, but may produce a broken library.
12039 no_undefined_flag_CXX=' ${wl}-bernotok'
12040 allow_undefined_flag_CXX=' ${wl}-berok'
12041 if test "$with_gnu_ld" = yes; then
12042 # We only use this code for GNU lds that support --whole-archive.
12043 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12044 else
12045 # Exported symbols can be pulled into shared objects from archives
12046 whole_archive_flag_spec_CXX='$convenience'
12047 fi
12048 archive_cmds_need_lc_CXX=yes
12049 # This is similar to how AIX traditionally builds its shared
12050 # libraries.
12051 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'
12052 fi
12053 fi
12054 ;;
12055
12056 beos*)
12057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12058 allow_undefined_flag_CXX=unsupported
12059 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
12060 # support --undefined. This deserves some investigation. FIXME
12061 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12062 else
12063 ld_shlibs_CXX=no
12064 fi
12065 ;;
12066
12067 chorus*)
12068 case $cc_basename in
12069 *)
12070 # FIXME: insert proper C++ library support
12071 ld_shlibs_CXX=no
12072 ;;
12073 esac
12074 ;;
12075
12076 cygwin* | mingw* | pw32* | cegcc*)
12077 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12078 # as there is no search path for DLLs.
12079 hardcode_libdir_flag_spec_CXX='-L$libdir'
12080 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12081 allow_undefined_flag_CXX=unsupported
12082 always_export_symbols_CXX=no
12083 enable_shared_with_static_runtimes_CXX=yes
12084
12085 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12086 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'
12087 # If the export-symbols file already is a .def file (1st line
12088 # is EXPORTS), use it as is; otherwise, prepend...
12089 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12090 cp $export_symbols $output_objdir/$soname.def;
12091 else
12092 echo EXPORTS > $output_objdir/$soname.def;
12093 cat $export_symbols >> $output_objdir/$soname.def;
12094 fi~
12095 $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'
12096 else
12097 ld_shlibs_CXX=no
12098 fi
12099 ;;
12100 darwin* | rhapsody*)
12101
12102
12103 archive_cmds_need_lc_CXX=no
12104 hardcode_direct_CXX=no
12105 hardcode_automatic_CXX=yes
12106 hardcode_shlibpath_var_CXX=unsupported
12107 if test "$lt_cv_ld_force_load" = "yes"; then
12108 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\"`'
12109 else
12110 whole_archive_flag_spec_CXX=''
12111 fi
12112 link_all_deplibs_CXX=yes
12113 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12114 case $cc_basename in
12115 ifort*) _lt_dar_can_shared=yes ;;
12116 *) _lt_dar_can_shared=$GCC ;;
12117 esac
12118 if test "$_lt_dar_can_shared" = "yes"; then
12119 output_verbose_link_cmd=func_echo_all
12120 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}"
12121 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12122 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}"
12123 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}"
12124 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12125 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}"
12126 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}"
12127 fi
12128
12129 else
12130 ld_shlibs_CXX=no
12131 fi
12132
12133 ;;
12134
12135 dgux*)
12136 case $cc_basename in
12137 ec++*)
12138 # FIXME: insert proper C++ library support
12139 ld_shlibs_CXX=no
12140 ;;
12141 ghcx*)
12142 # Green Hills C++ Compiler
12143 # FIXME: insert proper C++ library support
12144 ld_shlibs_CXX=no
12145 ;;
12146 *)
12147 # FIXME: insert proper C++ library support
12148 ld_shlibs_CXX=no
12149 ;;
12150 esac
12151 ;;
12152
12153 freebsd2.*)
12154 # C++ shared libraries reported to be fairly broken before
12155 # switch to ELF
12156 ld_shlibs_CXX=no
12157 ;;
12158
12159 freebsd-elf*)
12160 archive_cmds_need_lc_CXX=no
12161 ;;
12162
12163 freebsd* | dragonfly*)
12164 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12165 # conventions
12166 ld_shlibs_CXX=yes
12167 ;;
12168
12169 gnu*)
12170 ;;
12171
12172 haiku*)
12173 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12174 link_all_deplibs_CXX=yes
12175 ;;
12176
12177 hpux9*)
12178 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12179 hardcode_libdir_separator_CXX=:
12180 export_dynamic_flag_spec_CXX='${wl}-E'
12181 hardcode_direct_CXX=yes
12182 hardcode_minus_L_CXX=yes # Not in the search PATH,
12183 # but as the default
12184 # location of the library.
12185
12186 case $cc_basename in
12187 CC*)
12188 # FIXME: insert proper C++ library support
12189 ld_shlibs_CXX=no
12190 ;;
12191 aCC*)
12192 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'
12193 # Commands to make compiler produce verbose output that lists
12194 # what "hidden" libraries, object files and flags are used when
12195 # linking a shared library.
12196 #
12197 # There doesn't appear to be a way to prevent this compiler from
12198 # explicitly linking system object files so we need to strip them
12199 # from the output so that they don't get included in the library
12200 # dependencies.
12201 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"'
12202 ;;
12203 *)
12204 if test "$GXX" = yes; then
12205 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'
12206 else
12207 # FIXME: insert proper C++ library support
12208 ld_shlibs_CXX=no
12209 fi
12210 ;;
12211 esac
12212 ;;
12213
12214 hpux10*|hpux11*)
12215 if test $with_gnu_ld = no; then
12216 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12217 hardcode_libdir_separator_CXX=:
12218
12219 case $host_cpu in
12220 hppa*64*|ia64*)
12221 ;;
12222 *)
12223 export_dynamic_flag_spec_CXX='${wl}-E'
12224 ;;
12225 esac
12226 fi
12227 case $host_cpu in
12228 hppa*64*|ia64*)
12229 hardcode_direct_CXX=no
12230 hardcode_shlibpath_var_CXX=no
12231 ;;
12232 *)
12233 hardcode_direct_CXX=yes
12234 hardcode_direct_absolute_CXX=yes
12235 hardcode_minus_L_CXX=yes # Not in the search PATH,
12236 # but as the default
12237 # location of the library.
12238 ;;
12239 esac
12240
12241 case $cc_basename in
12242 CC*)
12243 # FIXME: insert proper C++ library support
12244 ld_shlibs_CXX=no
12245 ;;
12246 aCC*)
12247 case $host_cpu in
12248 hppa*64*)
12249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12250 ;;
12251 ia64*)
12252 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12253 ;;
12254 *)
12255 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12256 ;;
12257 esac
12258 # Commands to make compiler produce verbose output that lists
12259 # what "hidden" libraries, object files and flags are used when
12260 # linking a shared library.
12261 #
12262 # There doesn't appear to be a way to prevent this compiler from
12263 # explicitly linking system object files so we need to strip them
12264 # from the output so that they don't get included in the library
12265 # dependencies.
12266 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"'
12267 ;;
12268 *)
12269 if test "$GXX" = yes; then
12270 if test $with_gnu_ld = no; then
12271 case $host_cpu in
12272 hppa*64*)
12273 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12274 ;;
12275 ia64*)
12276 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12277 ;;
12278 *)
12279 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'
12280 ;;
12281 esac
12282 fi
12283 else
12284 # FIXME: insert proper C++ library support
12285 ld_shlibs_CXX=no
12286 fi
12287 ;;
12288 esac
12289 ;;
12290
12291 interix[3-9]*)
12292 hardcode_direct_CXX=no
12293 hardcode_shlibpath_var_CXX=no
12294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12295 export_dynamic_flag_spec_CXX='${wl}-E'
12296 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12297 # Instead, shared libraries are loaded at an image base (0x10000000 by
12298 # default) and relocated if they conflict, which is a slow very memory
12299 # consuming and fragmenting process. To avoid this, we pick a random,
12300 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12301 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12302 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'
12303 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'
12304 ;;
12305 irix5* | irix6*)
12306 case $cc_basename in
12307 CC*)
12308 # SGI C++
12309 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'
12310
12311 # Archives containing C++ object files must be created using
12312 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12313 # necessary to make sure instantiated templates are included
12314 # in the archive.
12315 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12316 ;;
12317 *)
12318 if test "$GXX" = yes; then
12319 if test "$with_gnu_ld" = no; then
12320 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'
12321 else
12322 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'
12323 fi
12324 fi
12325 link_all_deplibs_CXX=yes
12326 ;;
12327 esac
12328 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12329 hardcode_libdir_separator_CXX=:
12330 inherit_rpath_CXX=yes
12331 ;;
12332
12333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12334 case $cc_basename in
12335 KCC*)
12336 # Kuck and Associates, Inc. (KAI) C++ Compiler
12337
12338 # KCC will only create a shared library if the output file
12339 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12340 # to its proper name (with version) after linking.
12341 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'
12342 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'
12343 # Commands to make compiler produce verbose output that lists
12344 # what "hidden" libraries, object files and flags are used when
12345 # linking a shared library.
12346 #
12347 # There doesn't appear to be a way to prevent this compiler from
12348 # explicitly linking system object files so we need to strip them
12349 # from the output so that they don't get included in the library
12350 # dependencies.
12351 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"'
12352
12353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12355
12356 # Archives containing C++ object files must be created using
12357 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12358 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12359 ;;
12360 icpc* | ecpc* )
12361 # Intel C++
12362 with_gnu_ld=yes
12363 # version 8.0 and above of icpc choke on multiply defined symbols
12364 # if we add $predep_objects and $postdep_objects, however 7.1 and
12365 # earlier do not add the objects themselves.
12366 case `$CC -V 2>&1` in
12367 *"Version 7."*)
12368 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12369 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'
12370 ;;
12371 *) # Version 8.0 or newer
12372 tmp_idyn=
12373 case $host_cpu in
12374 ia64*) tmp_idyn=' -i_dynamic';;
12375 esac
12376 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12377 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'
12378 ;;
12379 esac
12380 archive_cmds_need_lc_CXX=no
12381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12383 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12384 ;;
12385 pgCC* | pgcpp*)
12386 # Portland Group C++ compiler
12387 case `$CC -V` in
12388 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12389 prelink_cmds_CXX='tpldir=Template.dir~
12390 rm -rf $tpldir~
12391 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12392 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12393 old_archive_cmds_CXX='tpldir=Template.dir~
12394 rm -rf $tpldir~
12395 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12396 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12397 $RANLIB $oldlib'
12398 archive_cmds_CXX='tpldir=Template.dir~
12399 rm -rf $tpldir~
12400 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12401 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12402 archive_expsym_cmds_CXX='tpldir=Template.dir~
12403 rm -rf $tpldir~
12404 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12405 $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'
12406 ;;
12407 *) # Version 6 and above use weak symbols
12408 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12409 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'
12410 ;;
12411 esac
12412
12413 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12415 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'
12416 ;;
12417 cxx*)
12418 # Compaq C++
12419 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12420 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'
12421
12422 runpath_var=LD_RUN_PATH
12423 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12424 hardcode_libdir_separator_CXX=:
12425
12426 # Commands to make compiler produce verbose output that lists
12427 # what "hidden" libraries, object files and flags are used when
12428 # linking a shared library.
12429 #
12430 # There doesn't appear to be a way to prevent this compiler from
12431 # explicitly linking system object files so we need to strip them
12432 # from the output so that they don't get included in the library
12433 # dependencies.
12434 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'
12435 ;;
12436 xl* | mpixl* | bgxl*)
12437 # IBM XL 8.0 on PPC, with GNU ld
12438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12440 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12441 if test "x$supports_anon_versioning" = xyes; then
12442 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12443 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12444 echo "local: *; };" >> $output_objdir/$libname.ver~
12445 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12446 fi
12447 ;;
12448 *)
12449 case `$CC -V 2>&1 | sed 5q` in
12450 *Sun\ C*)
12451 # Sun C++ 5.9
12452 no_undefined_flag_CXX=' -zdefs'
12453 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12454 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'
12455 hardcode_libdir_flag_spec_CXX='-R$libdir'
12456 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'
12457 compiler_needs_object_CXX=yes
12458
12459 # Not sure whether something based on
12460 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12461 # would be better.
12462 output_verbose_link_cmd='func_echo_all'
12463
12464 # Archives containing C++ object files must be created using
12465 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12466 # necessary to make sure instantiated templates are included
12467 # in the archive.
12468 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12469 ;;
12470 esac
12471 ;;
12472 esac
12473 ;;
12474
12475 lynxos*)
12476 # FIXME: insert proper C++ library support
12477 ld_shlibs_CXX=no
12478 ;;
12479
12480 m88k*)
12481 # FIXME: insert proper C++ library support
12482 ld_shlibs_CXX=no
12483 ;;
12484
12485 mvs*)
12486 case $cc_basename in
12487 cxx*)
12488 # FIXME: insert proper C++ library support
12489 ld_shlibs_CXX=no
12490 ;;
12491 *)
12492 # FIXME: insert proper C++ library support
12493 ld_shlibs_CXX=no
12494 ;;
12495 esac
12496 ;;
12497
12498 netbsd*)
12499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12500 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12501 wlarc=
12502 hardcode_libdir_flag_spec_CXX='-R$libdir'
12503 hardcode_direct_CXX=yes
12504 hardcode_shlibpath_var_CXX=no
12505 fi
12506 # Workaround some broken pre-1.5 toolchains
12507 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12508 ;;
12509
12510 *nto* | *qnx*)
12511 ld_shlibs_CXX=yes
12512 ;;
12513
12514 openbsd2*)
12515 # C++ shared libraries are fairly broken
12516 ld_shlibs_CXX=no
12517 ;;
12518
12519 openbsd*)
12520 if test -f /usr/libexec/ld.so; then
12521 hardcode_direct_CXX=yes
12522 hardcode_shlibpath_var_CXX=no
12523 hardcode_direct_absolute_CXX=yes
12524 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12527 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12528 export_dynamic_flag_spec_CXX='${wl}-E'
12529 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12530 fi
12531 output_verbose_link_cmd=func_echo_all
12532 else
12533 ld_shlibs_CXX=no
12534 fi
12535 ;;
12536
12537 osf3* | osf4* | osf5*)
12538 case $cc_basename in
12539 KCC*)
12540 # Kuck and Associates, Inc. (KAI) C++ Compiler
12541
12542 # KCC will only create a shared library if the output file
12543 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12544 # to its proper name (with version) after linking.
12545 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'
12546
12547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12548 hardcode_libdir_separator_CXX=:
12549
12550 # Archives containing C++ object files must be created using
12551 # the KAI C++ compiler.
12552 case $host in
12553 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12554 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12555 esac
12556 ;;
12557 RCC*)
12558 # Rational C++ 2.4.1
12559 # FIXME: insert proper C++ library support
12560 ld_shlibs_CXX=no
12561 ;;
12562 cxx*)
12563 case $host in
12564 osf3*)
12565 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12566 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'
12567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12568 ;;
12569 *)
12570 allow_undefined_flag_CXX=' -expect_unresolved \*'
12571 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'
12572 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12573 echo "-hidden">> $lib.exp~
12574 $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~
12575 $RM $lib.exp'
12576 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12577 ;;
12578 esac
12579
12580 hardcode_libdir_separator_CXX=:
12581
12582 # Commands to make compiler produce verbose output that lists
12583 # what "hidden" libraries, object files and flags are used when
12584 # linking a shared library.
12585 #
12586 # There doesn't appear to be a way to prevent this compiler from
12587 # explicitly linking system object files so we need to strip them
12588 # from the output so that they don't get included in the library
12589 # dependencies.
12590 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"'
12591 ;;
12592 *)
12593 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12594 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12595 case $host in
12596 osf3*)
12597 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'
12598 ;;
12599 *)
12600 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'
12601 ;;
12602 esac
12603
12604 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12605 hardcode_libdir_separator_CXX=:
12606
12607 # Commands to make compiler produce verbose output that lists
12608 # what "hidden" libraries, object files and flags are used when
12609 # linking a shared library.
12610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12611
12612 else
12613 # FIXME: insert proper C++ library support
12614 ld_shlibs_CXX=no
12615 fi
12616 ;;
12617 esac
12618 ;;
12619
12620 psos*)
12621 # FIXME: insert proper C++ library support
12622 ld_shlibs_CXX=no
12623 ;;
12624
12625 sunos4*)
12626 case $cc_basename in
12627 CC*)
12628 # Sun C++ 4.x
12629 # FIXME: insert proper C++ library support
12630 ld_shlibs_CXX=no
12631 ;;
12632 lcc*)
12633 # Lucid
12634 # FIXME: insert proper C++ library support
12635 ld_shlibs_CXX=no
12636 ;;
12637 *)
12638 # FIXME: insert proper C++ library support
12639 ld_shlibs_CXX=no
12640 ;;
12641 esac
12642 ;;
12643
12644 solaris*)
12645 case $cc_basename in
12646 CC*)
12647 # Sun C++ 4.2, 5.x and Centerline C++
12648 archive_cmds_need_lc_CXX=yes
12649 no_undefined_flag_CXX=' -zdefs'
12650 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12651 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12652 $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'
12653
12654 hardcode_libdir_flag_spec_CXX='-R$libdir'
12655 hardcode_shlibpath_var_CXX=no
12656 case $host_os in
12657 solaris2.[0-5] | solaris2.[0-5].*) ;;
12658 *)
12659 # The compiler driver will combine and reorder linker options,
12660 # but understands `-z linker_flag'.
12661 # Supported since Solaris 2.6 (maybe 2.5.1?)
12662 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12663 ;;
12664 esac
12665 link_all_deplibs_CXX=yes
12666
12667 output_verbose_link_cmd='func_echo_all'
12668
12669 # Archives containing C++ object files must be created using
12670 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12671 # necessary to make sure instantiated templates are included
12672 # in the archive.
12673 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12674 ;;
12675 gcx*)
12676 # Green Hills C++ Compiler
12677 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12678
12679 # The C++ compiler must be used to create the archive.
12680 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12681 ;;
12682 *)
12683 # GNU C++ compiler with Solaris linker
12684 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12685 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12686 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12687 archive_cmds_CXX='$CC -shared -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 -shared -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 -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12695 else
12696 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12697 # platform.
12698 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12699 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12700 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12701
12702 # Commands to make compiler produce verbose output that lists
12703 # what "hidden" libraries, object files and flags are used when
12704 # linking a shared library.
12705 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12706 fi
12707
12708 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12709 case $host_os in
12710 solaris2.[0-5] | solaris2.[0-5].*) ;;
12711 *)
12712 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12713 ;;
12714 esac
12715 fi
12716 ;;
12717 esac
12718 ;;
12719
12720 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12721 no_undefined_flag_CXX='${wl}-z,text'
12722 archive_cmds_need_lc_CXX=no
12723 hardcode_shlibpath_var_CXX=no
12724 runpath_var='LD_RUN_PATH'
12725
12726 case $cc_basename in
12727 CC*)
12728 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12730 ;;
12731 *)
12732 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12733 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12734 ;;
12735 esac
12736 ;;
12737
12738 sysv5* | sco3.2v5* | sco5v6*)
12739 # Note: We can NOT use -z defs as we might desire, because we do not
12740 # link with -lc, and that would cause any symbols used from libc to
12741 # always be unresolved, which means just about no library would
12742 # ever link correctly. If we're not using GNU ld we use -z text
12743 # though, which does catch some bad symbols but isn't as heavy-handed
12744 # as -z defs.
12745 no_undefined_flag_CXX='${wl}-z,text'
12746 allow_undefined_flag_CXX='${wl}-z,nodefs'
12747 archive_cmds_need_lc_CXX=no
12748 hardcode_shlibpath_var_CXX=no
12749 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12750 hardcode_libdir_separator_CXX=':'
12751 link_all_deplibs_CXX=yes
12752 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12753 runpath_var='LD_RUN_PATH'
12754
12755 case $cc_basename in
12756 CC*)
12757 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12758 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12759 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12760 '"$old_archive_cmds_CXX"
12761 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12762 '"$reload_cmds_CXX"
12763 ;;
12764 *)
12765 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12766 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12767 ;;
12768 esac
12769 ;;
12770
12771 tandem*)
12772 case $cc_basename in
12773 NCC*)
12774 # NonStop-UX NCC 3.20
12775 # FIXME: insert proper C++ library support
12776 ld_shlibs_CXX=no
12777 ;;
12778 *)
12779 # FIXME: insert proper C++ library support
12780 ld_shlibs_CXX=no
12781 ;;
12782 esac
12783 ;;
12784
12785 vxworks*)
12786 # FIXME: insert proper C++ library support
12787 ld_shlibs_CXX=no
12788 ;;
12789
12790 *)
12791 # FIXME: insert proper C++ library support
12792 ld_shlibs_CXX=no
12793 ;;
12794 esac
12795
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12797 $as_echo "$ld_shlibs_CXX" >&6; }
12798 test "$ld_shlibs_CXX" = no && can_build_shared=no
12799
12800 GCC_CXX="$GXX"
12801 LD_CXX="$LD"
12802
12803 ## CAVEAT EMPTOR:
12804 ## There is no encapsulation within the following macros, do not change
12805 ## the running order or otherwise move them around unless you know exactly
12806 ## what you are doing...
12807 # Dependencies to place before and after the object being linked:
12808 predep_objects_CXX=
12809 postdep_objects_CXX=
12810 predeps_CXX=
12811 postdeps_CXX=
12812 compiler_lib_search_path_CXX=
12813
12814 cat > conftest.$ac_ext <<_LT_EOF
12815 class Foo
12816 {
12817 public:
12818 Foo (void) { a = 0; }
12819 private:
12820 int a;
12821 };
12822 _LT_EOF
12823
12824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12825 (eval $ac_compile) 2>&5
12826 ac_status=$?
12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828 test $ac_status = 0; }; then
12829 # Parse the compiler output and extract the necessary
12830 # objects, libraries and library flags.
12831
12832 # Sentinel used to keep track of whether or not we are before
12833 # the conftest object file.
12834 pre_test_object_deps_done=no
12835
12836 for p in `eval "$output_verbose_link_cmd"`; do
12837 case $p in
12838
12839 -L* | -R* | -l*)
12840 # Some compilers place space between "-{L,R}" and the path.
12841 # Remove the space.
12842 if test $p = "-L" ||
12843 test $p = "-R"; then
12844 prev=$p
12845 continue
12846 else
12847 prev=
12848 fi
12849
12850 if test "$pre_test_object_deps_done" = no; then
12851 case $p in
12852 -L* | -R*)
12853 # Internal compiler library paths should come after those
12854 # provided the user. The postdeps already come after the
12855 # user supplied libs so there is no need to process them.
12856 if test -z "$compiler_lib_search_path_CXX"; then
12857 compiler_lib_search_path_CXX="${prev}${p}"
12858 else
12859 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12860 fi
12861 ;;
12862 # The "-l" case would never come before the object being
12863 # linked, so don't bother handling this case.
12864 esac
12865 else
12866 if test -z "$postdeps_CXX"; then
12867 postdeps_CXX="${prev}${p}"
12868 else
12869 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12870 fi
12871 fi
12872 ;;
12873
12874 *.$objext)
12875 # This assumes that the test object file only shows up
12876 # once in the compiler output.
12877 if test "$p" = "conftest.$objext"; then
12878 pre_test_object_deps_done=yes
12879 continue
12880 fi
12881
12882 if test "$pre_test_object_deps_done" = no; then
12883 if test -z "$predep_objects_CXX"; then
12884 predep_objects_CXX="$p"
12885 else
12886 predep_objects_CXX="$predep_objects_CXX $p"
12887 fi
12888 else
12889 if test -z "$postdep_objects_CXX"; then
12890 postdep_objects_CXX="$p"
12891 else
12892 postdep_objects_CXX="$postdep_objects_CXX $p"
12893 fi
12894 fi
12895 ;;
12896
12897 *) ;; # Ignore the rest.
12898
12899 esac
12900 done
12901
12902 # Clean up.
12903 rm -f a.out a.exe
12904 else
12905 echo "libtool.m4: error: problem compiling CXX test program"
12906 fi
12907
12908 $RM -f confest.$objext
12909
12910 # PORTME: override above test on systems where it is broken
12911 case $host_os in
12912 interix[3-9]*)
12913 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12914 # hack all around it, let's just trust "g++" to DTRT.
12915 predep_objects_CXX=
12916 postdep_objects_CXX=
12917 postdeps_CXX=
12918 ;;
12919
12920 linux*)
12921 case `$CC -V 2>&1 | sed 5q` in
12922 *Sun\ C*)
12923 # Sun C++ 5.9
12924
12925 # The more standards-conforming stlport4 library is
12926 # incompatible with the Cstd library. Avoid specifying
12927 # it if it's in CXXFLAGS. Ignore libCrun as
12928 # -library=stlport4 depends on it.
12929 case " $CXX $CXXFLAGS " in
12930 *" -library=stlport4 "*)
12931 solaris_use_stlport4=yes
12932 ;;
12933 esac
12934
12935 if test "$solaris_use_stlport4" != yes; then
12936 postdeps_CXX='-library=Cstd -library=Crun'
12937 fi
12938 ;;
12939 esac
12940 ;;
12941
12942 solaris*)
12943 case $cc_basename in
12944 CC*)
12945 # The more standards-conforming stlport4 library is
12946 # incompatible with the Cstd library. Avoid specifying
12947 # it if it's in CXXFLAGS. Ignore libCrun as
12948 # -library=stlport4 depends on it.
12949 case " $CXX $CXXFLAGS " in
12950 *" -library=stlport4 "*)
12951 solaris_use_stlport4=yes
12952 ;;
12953 esac
12954
12955 # Adding this requires a known-good setup of shared libraries for
12956 # Sun compiler versions before 5.6, else PIC objects from an old
12957 # archive will be linked into the output, leading to subtle bugs.
12958 if test "$solaris_use_stlport4" != yes; then
12959 postdeps_CXX='-library=Cstd -library=Crun'
12960 fi
12961 ;;
12962 esac
12963 ;;
12964 esac
12965
12966
12967 case " $postdeps_CXX " in
12968 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12969 esac
12970 compiler_lib_search_dirs_CXX=
12971 if test -n "${compiler_lib_search_path_CXX}"; then
12972 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12973 fi
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005 lt_prog_compiler_wl_CXX=
13006 lt_prog_compiler_pic_CXX=
13007 lt_prog_compiler_static_CXX=
13008
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13010 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13011
13012 # C++ specific cases for pic, static, wl, etc.
13013 if test "$GXX" = yes; then
13014 lt_prog_compiler_wl_CXX='-Wl,'
13015 lt_prog_compiler_static_CXX='-static'
13016
13017 case $host_os in
13018 aix*)
13019 # All AIX code is PIC.
13020 if test "$host_cpu" = ia64; then
13021 # AIX 5 now supports IA64 processor
13022 lt_prog_compiler_static_CXX='-Bstatic'
13023 fi
13024 lt_prog_compiler_pic_CXX='-fPIC'
13025 ;;
13026
13027 amigaos*)
13028 case $host_cpu in
13029 powerpc)
13030 # see comment about AmigaOS4 .so support
13031 lt_prog_compiler_pic_CXX='-fPIC'
13032 ;;
13033 m68k)
13034 # FIXME: we need at least 68020 code to build shared libraries, but
13035 # adding the `-m68020' flag to GCC prevents building anything better,
13036 # like `-m68040'.
13037 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13038 ;;
13039 esac
13040 ;;
13041
13042 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13043 # PIC is the default for these OSes.
13044 ;;
13045 mingw* | cygwin* | os2* | pw32* | cegcc*)
13046 # This hack is so that the source file can tell whether it is being
13047 # built for inclusion in a dll (and should export symbols for example).
13048 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13049 # (--disable-auto-import) libraries
13050 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13051 ;;
13052 darwin* | rhapsody*)
13053 # PIC is the default on this platform
13054 # Common symbols not allowed in MH_DYLIB files
13055 lt_prog_compiler_pic_CXX='-fno-common'
13056 ;;
13057 *djgpp*)
13058 # DJGPP does not support shared libraries at all
13059 lt_prog_compiler_pic_CXX=
13060 ;;
13061 haiku*)
13062 # PIC is the default for Haiku.
13063 # The "-static" flag exists, but is broken.
13064 lt_prog_compiler_static_CXX=
13065 ;;
13066 interix[3-9]*)
13067 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13068 # Instead, we relocate shared libraries at runtime.
13069 ;;
13070 sysv4*MP*)
13071 if test -d /usr/nec; then
13072 lt_prog_compiler_pic_CXX=-Kconform_pic
13073 fi
13074 ;;
13075 hpux*)
13076 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13077 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13078 # sets the default TLS model and affects inlining.
13079 case $host_cpu in
13080 hppa*64*)
13081 ;;
13082 *)
13083 lt_prog_compiler_pic_CXX='-fPIC'
13084 ;;
13085 esac
13086 ;;
13087 *qnx* | *nto*)
13088 # QNX uses GNU C++, but need to define -shared option too, otherwise
13089 # it will coredump.
13090 lt_prog_compiler_pic_CXX='-fPIC -shared'
13091 ;;
13092 *)
13093 lt_prog_compiler_pic_CXX='-fPIC'
13094 ;;
13095 esac
13096 else
13097 case $host_os in
13098 aix[4-9]*)
13099 # All AIX code is PIC.
13100 if test "$host_cpu" = ia64; then
13101 # AIX 5 now supports IA64 processor
13102 lt_prog_compiler_static_CXX='-Bstatic'
13103 else
13104 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13105 fi
13106 ;;
13107 chorus*)
13108 case $cc_basename in
13109 cxch68*)
13110 # Green Hills C++ Compiler
13111 # _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"
13112 ;;
13113 esac
13114 ;;
13115 dgux*)
13116 case $cc_basename in
13117 ec++*)
13118 lt_prog_compiler_pic_CXX='-KPIC'
13119 ;;
13120 ghcx*)
13121 # Green Hills C++ Compiler
13122 lt_prog_compiler_pic_CXX='-pic'
13123 ;;
13124 *)
13125 ;;
13126 esac
13127 ;;
13128 freebsd* | dragonfly*)
13129 # FreeBSD uses GNU C++
13130 ;;
13131 hpux9* | hpux10* | hpux11*)
13132 case $cc_basename in
13133 CC*)
13134 lt_prog_compiler_wl_CXX='-Wl,'
13135 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13136 if test "$host_cpu" != ia64; then
13137 lt_prog_compiler_pic_CXX='+Z'
13138 fi
13139 ;;
13140 aCC*)
13141 lt_prog_compiler_wl_CXX='-Wl,'
13142 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13143 case $host_cpu in
13144 hppa*64*|ia64*)
13145 # +Z the default
13146 ;;
13147 *)
13148 lt_prog_compiler_pic_CXX='+Z'
13149 ;;
13150 esac
13151 ;;
13152 *)
13153 ;;
13154 esac
13155 ;;
13156 interix*)
13157 # This is c89, which is MS Visual C++ (no shared libs)
13158 # Anyone wants to do a port?
13159 ;;
13160 irix5* | irix6* | nonstopux*)
13161 case $cc_basename in
13162 CC*)
13163 lt_prog_compiler_wl_CXX='-Wl,'
13164 lt_prog_compiler_static_CXX='-non_shared'
13165 # CC pic flag -KPIC is the default.
13166 ;;
13167 *)
13168 ;;
13169 esac
13170 ;;
13171 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13172 case $cc_basename in
13173 KCC*)
13174 # KAI C++ Compiler
13175 lt_prog_compiler_wl_CXX='--backend -Wl,'
13176 lt_prog_compiler_pic_CXX='-fPIC'
13177 ;;
13178 ecpc* )
13179 # old Intel C++ for x86_64 which still supported -KPIC.
13180 lt_prog_compiler_wl_CXX='-Wl,'
13181 lt_prog_compiler_pic_CXX='-KPIC'
13182 lt_prog_compiler_static_CXX='-static'
13183 ;;
13184 icpc* )
13185 # Intel C++, used to be incompatible with GCC.
13186 # ICC 10 doesn't accept -KPIC any more.
13187 lt_prog_compiler_wl_CXX='-Wl,'
13188 lt_prog_compiler_pic_CXX='-fPIC'
13189 lt_prog_compiler_static_CXX='-static'
13190 ;;
13191 pgCC* | pgcpp*)
13192 # Portland Group C++ compiler
13193 lt_prog_compiler_wl_CXX='-Wl,'
13194 lt_prog_compiler_pic_CXX='-fpic'
13195 lt_prog_compiler_static_CXX='-Bstatic'
13196 ;;
13197 cxx*)
13198 # Compaq C++
13199 # Make sure the PIC flag is empty. It appears that all Alpha
13200 # Linux and Compaq Tru64 Unix objects are PIC.
13201 lt_prog_compiler_pic_CXX=
13202 lt_prog_compiler_static_CXX='-non_shared'
13203 ;;
13204 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13205 # IBM XL 8.0, 9.0 on PPC and BlueGene
13206 lt_prog_compiler_wl_CXX='-Wl,'
13207 lt_prog_compiler_pic_CXX='-qpic'
13208 lt_prog_compiler_static_CXX='-qstaticlink'
13209 ;;
13210 *)
13211 case `$CC -V 2>&1 | sed 5q` in
13212 *Sun\ C*)
13213 # Sun C++ 5.9
13214 lt_prog_compiler_pic_CXX='-KPIC'
13215 lt_prog_compiler_static_CXX='-Bstatic'
13216 lt_prog_compiler_wl_CXX='-Qoption ld '
13217 ;;
13218 esac
13219 ;;
13220 esac
13221 ;;
13222 lynxos*)
13223 ;;
13224 m88k*)
13225 ;;
13226 mvs*)
13227 case $cc_basename in
13228 cxx*)
13229 lt_prog_compiler_pic_CXX='-W c,exportall'
13230 ;;
13231 *)
13232 ;;
13233 esac
13234 ;;
13235 netbsd*)
13236 ;;
13237 *qnx* | *nto*)
13238 # QNX uses GNU C++, but need to define -shared option too, otherwise
13239 # it will coredump.
13240 lt_prog_compiler_pic_CXX='-fPIC -shared'
13241 ;;
13242 osf3* | osf4* | osf5*)
13243 case $cc_basename in
13244 KCC*)
13245 lt_prog_compiler_wl_CXX='--backend -Wl,'
13246 ;;
13247 RCC*)
13248 # Rational C++ 2.4.1
13249 lt_prog_compiler_pic_CXX='-pic'
13250 ;;
13251 cxx*)
13252 # Digital/Compaq C++
13253 lt_prog_compiler_wl_CXX='-Wl,'
13254 # Make sure the PIC flag is empty. It appears that all Alpha
13255 # Linux and Compaq Tru64 Unix objects are PIC.
13256 lt_prog_compiler_pic_CXX=
13257 lt_prog_compiler_static_CXX='-non_shared'
13258 ;;
13259 *)
13260 ;;
13261 esac
13262 ;;
13263 psos*)
13264 ;;
13265 solaris*)
13266 case $cc_basename in
13267 CC*)
13268 # Sun C++ 4.2, 5.x and Centerline C++
13269 lt_prog_compiler_pic_CXX='-KPIC'
13270 lt_prog_compiler_static_CXX='-Bstatic'
13271 lt_prog_compiler_wl_CXX='-Qoption ld '
13272 ;;
13273 gcx*)
13274 # Green Hills C++ Compiler
13275 lt_prog_compiler_pic_CXX='-PIC'
13276 ;;
13277 *)
13278 ;;
13279 esac
13280 ;;
13281 sunos4*)
13282 case $cc_basename in
13283 CC*)
13284 # Sun C++ 4.x
13285 lt_prog_compiler_pic_CXX='-pic'
13286 lt_prog_compiler_static_CXX='-Bstatic'
13287 ;;
13288 lcc*)
13289 # Lucid
13290 lt_prog_compiler_pic_CXX='-pic'
13291 ;;
13292 *)
13293 ;;
13294 esac
13295 ;;
13296 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13297 case $cc_basename in
13298 CC*)
13299 lt_prog_compiler_wl_CXX='-Wl,'
13300 lt_prog_compiler_pic_CXX='-KPIC'
13301 lt_prog_compiler_static_CXX='-Bstatic'
13302 ;;
13303 esac
13304 ;;
13305 tandem*)
13306 case $cc_basename in
13307 NCC*)
13308 # NonStop-UX NCC 3.20
13309 lt_prog_compiler_pic_CXX='-KPIC'
13310 ;;
13311 *)
13312 ;;
13313 esac
13314 ;;
13315 vxworks*)
13316 ;;
13317 *)
13318 lt_prog_compiler_can_build_shared_CXX=no
13319 ;;
13320 esac
13321 fi
13322
13323 case $host_os in
13324 # For platforms which do not support PIC, -DPIC is meaningless:
13325 *djgpp*)
13326 lt_prog_compiler_pic_CXX=
13327 ;;
13328 *)
13329 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13330 ;;
13331 esac
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13333 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13334
13335
13336
13337 #
13338 # Check to make sure the PIC flag actually works.
13339 #
13340 if test -n "$lt_prog_compiler_pic_CXX"; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13342 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13343 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 lt_cv_prog_compiler_pic_works_CXX=no
13347 ac_outfile=conftest.$ac_objext
13348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13349 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13350 # Insert the option either (1) after the last *FLAGS variable, or
13351 # (2) before a word containing "conftest.", or (3) at the end.
13352 # Note that $ac_compile itself does not contain backslashes and begins
13353 # with a dollar sign (not a hyphen), so the echo should work correctly.
13354 # The option is referenced via a variable to avoid confusing sed.
13355 lt_compile=`echo "$ac_compile" | $SED \
13356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13358 -e 's:$: $lt_compiler_flag:'`
13359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13360 (eval "$lt_compile" 2>conftest.err)
13361 ac_status=$?
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 if (exit $ac_status) && test -s "$ac_outfile"; then
13365 # The compiler can only warn and ignore the option if not recognized
13366 # So say no if there are warnings other than the usual output.
13367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13370 lt_cv_prog_compiler_pic_works_CXX=yes
13371 fi
13372 fi
13373 $RM conftest*
13374
13375 fi
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13377 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13378
13379 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13380 case $lt_prog_compiler_pic_CXX in
13381 "" | " "*) ;;
13382 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13383 esac
13384 else
13385 lt_prog_compiler_pic_CXX=
13386 lt_prog_compiler_can_build_shared_CXX=no
13387 fi
13388
13389 fi
13390
13391
13392
13393 #
13394 # Check to make sure the static flag actually works.
13395 #
13396 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13398 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13399 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 lt_cv_prog_compiler_static_works_CXX=no
13403 save_LDFLAGS="$LDFLAGS"
13404 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13405 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13406 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13407 # The linker can only warn and ignore the option if not recognized
13408 # So say no if there are warnings
13409 if test -s conftest.err; then
13410 # Append any errors to the config.log.
13411 cat conftest.err 1>&5
13412 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13414 if diff conftest.exp conftest.er2 >/dev/null; then
13415 lt_cv_prog_compiler_static_works_CXX=yes
13416 fi
13417 else
13418 lt_cv_prog_compiler_static_works_CXX=yes
13419 fi
13420 fi
13421 $RM -r conftest*
13422 LDFLAGS="$save_LDFLAGS"
13423
13424 fi
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13426 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13427
13428 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13429 :
13430 else
13431 lt_prog_compiler_static_CXX=
13432 fi
13433
13434
13435
13436
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13438 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13439 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 lt_cv_prog_compiler_c_o_CXX=no
13443 $RM -r conftest 2>/dev/null
13444 mkdir conftest
13445 cd conftest
13446 mkdir out
13447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13448
13449 lt_compiler_flag="-o out/conftest2.$ac_objext"
13450 # Insert the option either (1) after the last *FLAGS variable, or
13451 # (2) before a word containing "conftest.", or (3) at the end.
13452 # Note that $ac_compile itself does not contain backslashes and begins
13453 # with a dollar sign (not a hyphen), so the echo should work correctly.
13454 lt_compile=`echo "$ac_compile" | $SED \
13455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13457 -e 's:$: $lt_compiler_flag:'`
13458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13459 (eval "$lt_compile" 2>out/conftest.err)
13460 ac_status=$?
13461 cat out/conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13464 then
13465 # The compiler can only warn and ignore the option if not recognized
13466 # So say no if there are warnings
13467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13470 lt_cv_prog_compiler_c_o_CXX=yes
13471 fi
13472 fi
13473 chmod u+w . 2>&5
13474 $RM conftest*
13475 # SGI C++ compiler will create directory out/ii_files/ for
13476 # template instantiation
13477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13478 $RM out/* && rmdir out
13479 cd ..
13480 $RM -r conftest
13481 $RM conftest*
13482
13483 fi
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13485 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13486
13487
13488
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13490 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13491 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 lt_cv_prog_compiler_c_o_CXX=no
13495 $RM -r conftest 2>/dev/null
13496 mkdir conftest
13497 cd conftest
13498 mkdir out
13499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13500
13501 lt_compiler_flag="-o out/conftest2.$ac_objext"
13502 # Insert the option either (1) after the last *FLAGS variable, or
13503 # (2) before a word containing "conftest.", or (3) at the end.
13504 # Note that $ac_compile itself does not contain backslashes and begins
13505 # with a dollar sign (not a hyphen), so the echo should work correctly.
13506 lt_compile=`echo "$ac_compile" | $SED \
13507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13509 -e 's:$: $lt_compiler_flag:'`
13510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13511 (eval "$lt_compile" 2>out/conftest.err)
13512 ac_status=$?
13513 cat out/conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13516 then
13517 # The compiler can only warn and ignore the option if not recognized
13518 # So say no if there are warnings
13519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13522 lt_cv_prog_compiler_c_o_CXX=yes
13523 fi
13524 fi
13525 chmod u+w . 2>&5
13526 $RM conftest*
13527 # SGI C++ compiler will create directory out/ii_files/ for
13528 # template instantiation
13529 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13530 $RM out/* && rmdir out
13531 cd ..
13532 $RM -r conftest
13533 $RM conftest*
13534
13535 fi
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13537 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13538
13539
13540
13541
13542 hard_links="nottested"
13543 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13544 # do not overwrite the value of need_locks provided by the user
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13546 $as_echo_n "checking if we can lock with hard links... " >&6; }
13547 hard_links=yes
13548 $RM conftest*
13549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13550 touch conftest.a
13551 ln conftest.a conftest.b 2>&5 || hard_links=no
13552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13554 $as_echo "$hard_links" >&6; }
13555 if test "$hard_links" = no; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13557 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13558 need_locks=warn
13559 fi
13560 else
13561 need_locks=no
13562 fi
13563
13564
13565
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13567 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13568
13569 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13570 case $host_os in
13571 aix[4-9]*)
13572 # If we're using GNU nm, then we don't want the "-C" option.
13573 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13574 # Also, AIX nm treats weak defined symbols like other global defined
13575 # symbols, whereas GNU nm marks them as "W".
13576 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13577 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'
13578 else
13579 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'
13580 fi
13581 ;;
13582 pw32*)
13583 export_symbols_cmds_CXX="$ltdll_cmds"
13584 ;;
13585 cygwin* | mingw* | cegcc*)
13586 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'
13587 ;;
13588 *)
13589 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13590 ;;
13591 esac
13592 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13593
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13595 $as_echo "$ld_shlibs_CXX" >&6; }
13596 test "$ld_shlibs_CXX" = no && can_build_shared=no
13597
13598 with_gnu_ld_CXX=$with_gnu_ld
13599
13600
13601
13602
13603
13604
13605 #
13606 # Do we need to explicitly link libc?
13607 #
13608 case "x$archive_cmds_need_lc_CXX" in
13609 x|xyes)
13610 # Assume -lc should be added
13611 archive_cmds_need_lc_CXX=yes
13612
13613 if test "$enable_shared" = yes && test "$GCC" = yes; then
13614 case $archive_cmds_CXX in
13615 *'~'*)
13616 # FIXME: we may have to deal with multi-command sequences.
13617 ;;
13618 '$CC '*)
13619 # Test whether the compiler implicitly links with -lc since on some
13620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13621 # to ld, don't add -lc before -lgcc.
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13623 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13624 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 $RM conftest*
13628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13629
13630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13631 (eval $ac_compile) 2>&5
13632 ac_status=$?
13633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634 test $ac_status = 0; } 2>conftest.err; then
13635 soname=conftest
13636 lib=conftest
13637 libobjs=conftest.$ac_objext
13638 deplibs=
13639 wl=$lt_prog_compiler_wl_CXX
13640 pic_flag=$lt_prog_compiler_pic_CXX
13641 compiler_flags=-v
13642 linker_flags=-v
13643 verstring=
13644 output_objdir=.
13645 libname=conftest
13646 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13647 allow_undefined_flag_CXX=
13648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13649 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13650 ac_status=$?
13651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13652 test $ac_status = 0; }
13653 then
13654 lt_cv_archive_cmds_need_lc_CXX=no
13655 else
13656 lt_cv_archive_cmds_need_lc_CXX=yes
13657 fi
13658 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13659 else
13660 cat conftest.err 1>&5
13661 fi
13662 $RM conftest*
13663
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13666 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13667 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13668 ;;
13669 esac
13670 fi
13671 ;;
13672 esac
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
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13738 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13739
13740 library_names_spec=
13741 libname_spec='lib$name'
13742 soname_spec=
13743 shrext_cmds=".so"
13744 postinstall_cmds=
13745 postuninstall_cmds=
13746 finish_cmds=
13747 finish_eval=
13748 shlibpath_var=
13749 shlibpath_overrides_runpath=unknown
13750 version_type=none
13751 dynamic_linker="$host_os ld.so"
13752 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13753 need_lib_prefix=unknown
13754 hardcode_into_libs=no
13755
13756 # when you set need_version to no, make sure it does not cause -set_version
13757 # flags to be left without arguments
13758 need_version=unknown
13759
13760 case $host_os in
13761 aix3*)
13762 version_type=linux
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13764 shlibpath_var=LIBPATH
13765
13766 # AIX 3 has no versioning support, so we append a major version to the name.
13767 soname_spec='${libname}${release}${shared_ext}$major'
13768 ;;
13769
13770 aix[4-9]*)
13771 version_type=linux
13772 need_lib_prefix=no
13773 need_version=no
13774 hardcode_into_libs=yes
13775 if test "$host_cpu" = ia64; then
13776 # AIX 5 supports IA64
13777 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13778 shlibpath_var=LD_LIBRARY_PATH
13779 else
13780 # With GCC up to 2.95.x, collect2 would create an import file
13781 # for dependence libraries. The import file would start with
13782 # the line `#! .'. This would cause the generated library to
13783 # depend on `.', always an invalid library. This was fixed in
13784 # development snapshots of GCC prior to 3.0.
13785 case $host_os in
13786 aix4 | aix4.[01] | aix4.[01].*)
13787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13788 echo ' yes '
13789 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13790 :
13791 else
13792 can_build_shared=no
13793 fi
13794 ;;
13795 esac
13796 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13797 # soname into executable. Probably we can add versioning support to
13798 # collect2, so additional links can be useful in future.
13799 if test "$aix_use_runtimelinking" = yes; then
13800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13801 # instead of lib<name>.a to let people know that these are not
13802 # typical AIX shared libraries.
13803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13804 else
13805 # We preserve .a as extension for shared libraries through AIX4.2
13806 # and later when we are not doing run time linking.
13807 library_names_spec='${libname}${release}.a $libname.a'
13808 soname_spec='${libname}${release}${shared_ext}$major'
13809 fi
13810 shlibpath_var=LIBPATH
13811 fi
13812 ;;
13813
13814 amigaos*)
13815 case $host_cpu in
13816 powerpc)
13817 # Since July 2007 AmigaOS4 officially supports .so libraries.
13818 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13820 ;;
13821 m68k)
13822 library_names_spec='$libname.ixlibrary $libname.a'
13823 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13824 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'
13825 ;;
13826 esac
13827 ;;
13828
13829 beos*)
13830 library_names_spec='${libname}${shared_ext}'
13831 dynamic_linker="$host_os ld.so"
13832 shlibpath_var=LIBRARY_PATH
13833 ;;
13834
13835 bsdi[45]*)
13836 version_type=linux
13837 need_version=no
13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13839 soname_spec='${libname}${release}${shared_ext}$major'
13840 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13841 shlibpath_var=LD_LIBRARY_PATH
13842 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13843 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13844 # the default ld.so.conf also contains /usr/contrib/lib and
13845 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13846 # libtool to hard-code these into programs
13847 ;;
13848
13849 cygwin* | mingw* | pw32* | cegcc*)
13850 version_type=windows
13851 shrext_cmds=".dll"
13852 need_version=no
13853 need_lib_prefix=no
13854
13855 case $GCC,$host_os in
13856 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13857 library_names_spec='$libname.dll.a'
13858 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13859 postinstall_cmds='base_file=`basename \${file}`~
13860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13861 dldir=$destdir/`dirname \$dlpath`~
13862 test -d \$dldir || mkdir -p \$dldir~
13863 $install_prog $dir/$dlname \$dldir/$dlname~
13864 chmod a+x \$dldir/$dlname~
13865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13867 fi'
13868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13869 dlpath=$dir/\$dldll~
13870 $RM \$dlpath'
13871 shlibpath_overrides_runpath=yes
13872
13873 case $host_os in
13874 cygwin*)
13875 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13876 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13877
13878 ;;
13879 mingw* | cegcc*)
13880 # MinGW DLLs use traditional 'lib' prefix
13881 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13882 ;;
13883 pw32*)
13884 # pw32 DLLs use 'pw' prefix rather than 'lib'
13885 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13886 ;;
13887 esac
13888 ;;
13889
13890 *)
13891 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13892 ;;
13893 esac
13894 dynamic_linker='Win32 ld.exe'
13895 # FIXME: first we should search . and the directory the executable is in
13896 shlibpath_var=PATH
13897 ;;
13898
13899 darwin* | rhapsody*)
13900 dynamic_linker="$host_os dyld"
13901 version_type=darwin
13902 need_lib_prefix=no
13903 need_version=no
13904 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13905 soname_spec='${libname}${release}${major}$shared_ext'
13906 shlibpath_overrides_runpath=yes
13907 shlibpath_var=DYLD_LIBRARY_PATH
13908 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13909
13910 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13911 ;;
13912
13913 dgux*)
13914 version_type=linux
13915 need_lib_prefix=no
13916 need_version=no
13917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13918 soname_spec='${libname}${release}${shared_ext}$major'
13919 shlibpath_var=LD_LIBRARY_PATH
13920 ;;
13921
13922 freebsd* | dragonfly*)
13923 # DragonFly does not have aout. When/if they implement a new
13924 # versioning mechanism, adjust this.
13925 if test -x /usr/bin/objformat; then
13926 objformat=`/usr/bin/objformat`
13927 else
13928 case $host_os in
13929 freebsd[23].*) objformat=aout ;;
13930 *) objformat=elf ;;
13931 esac
13932 fi
13933 version_type=freebsd-$objformat
13934 case $version_type in
13935 freebsd-elf*)
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13937 need_version=no
13938 need_lib_prefix=no
13939 ;;
13940 freebsd-*)
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13942 need_version=yes
13943 ;;
13944 esac
13945 shlibpath_var=LD_LIBRARY_PATH
13946 case $host_os in
13947 freebsd2.*)
13948 shlibpath_overrides_runpath=yes
13949 ;;
13950 freebsd3.[01]* | freebsdelf3.[01]*)
13951 shlibpath_overrides_runpath=yes
13952 hardcode_into_libs=yes
13953 ;;
13954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13956 shlibpath_overrides_runpath=no
13957 hardcode_into_libs=yes
13958 ;;
13959 *) # from 4.6 on, and DragonFly
13960 shlibpath_overrides_runpath=yes
13961 hardcode_into_libs=yes
13962 ;;
13963 esac
13964 ;;
13965
13966 gnu*)
13967 version_type=linux
13968 need_lib_prefix=no
13969 need_version=no
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=LD_LIBRARY_PATH
13973 hardcode_into_libs=yes
13974 ;;
13975
13976 haiku*)
13977 version_type=linux
13978 need_lib_prefix=no
13979 need_version=no
13980 dynamic_linker="$host_os runtime_loader"
13981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13982 soname_spec='${libname}${release}${shared_ext}$major'
13983 shlibpath_var=LIBRARY_PATH
13984 shlibpath_overrides_runpath=yes
13985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13986 hardcode_into_libs=yes
13987 ;;
13988
13989 hpux9* | hpux10* | hpux11*)
13990 # Give a soname corresponding to the major version so that dld.sl refuses to
13991 # link against other versions.
13992 version_type=sunos
13993 need_lib_prefix=no
13994 need_version=no
13995 case $host_cpu in
13996 ia64*)
13997 shrext_cmds='.so'
13998 hardcode_into_libs=yes
13999 dynamic_linker="$host_os dld.so"
14000 shlibpath_var=LD_LIBRARY_PATH
14001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14003 soname_spec='${libname}${release}${shared_ext}$major'
14004 if test "X$HPUX_IA64_MODE" = X32; then
14005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14006 else
14007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14008 fi
14009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14010 ;;
14011 hppa*64*)
14012 shrext_cmds='.sl'
14013 hardcode_into_libs=yes
14014 dynamic_linker="$host_os dld.sl"
14015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14021 ;;
14022 *)
14023 shrext_cmds='.sl'
14024 dynamic_linker="$host_os dld.sl"
14025 shlibpath_var=SHLIB_PATH
14026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 ;;
14030 esac
14031 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14032 postinstall_cmds='chmod 555 $lib'
14033 # or fails outright, so override atomically:
14034 install_override_mode=555
14035 ;;
14036
14037 interix[3-9]*)
14038 version_type=linux
14039 need_lib_prefix=no
14040 need_version=no
14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14042 soname_spec='${libname}${release}${shared_ext}$major'
14043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14044 shlibpath_var=LD_LIBRARY_PATH
14045 shlibpath_overrides_runpath=no
14046 hardcode_into_libs=yes
14047 ;;
14048
14049 irix5* | irix6* | nonstopux*)
14050 case $host_os in
14051 nonstopux*) version_type=nonstopux ;;
14052 *)
14053 if test "$lt_cv_prog_gnu_ld" = yes; then
14054 version_type=linux
14055 else
14056 version_type=irix
14057 fi ;;
14058 esac
14059 need_lib_prefix=no
14060 need_version=no
14061 soname_spec='${libname}${release}${shared_ext}$major'
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14063 case $host_os in
14064 irix5* | nonstopux*)
14065 libsuff= shlibsuff=
14066 ;;
14067 *)
14068 case $LD in # libtool.m4 will add one of these switches to LD
14069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14070 libsuff= shlibsuff= libmagic=32-bit;;
14071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14072 libsuff=32 shlibsuff=N32 libmagic=N32;;
14073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14075 *) libsuff= shlibsuff= libmagic=never-match;;
14076 esac
14077 ;;
14078 esac
14079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14080 shlibpath_overrides_runpath=no
14081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14083 hardcode_into_libs=yes
14084 ;;
14085
14086 # No shared lib support for Linux oldld, aout, or coff.
14087 linux*oldld* | linux*aout* | linux*coff*)
14088 dynamic_linker=no
14089 ;;
14090
14091 # This must be Linux ELF.
14092 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14093 version_type=linux
14094 need_lib_prefix=no
14095 need_version=no
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14097 soname_spec='${libname}${release}${shared_ext}$major'
14098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 shlibpath_overrides_runpath=no
14101
14102 # Some binutils ld are patched to set DT_RUNPATH
14103 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 lt_cv_shlibpath_overrides_runpath=no
14107 save_LDFLAGS=$LDFLAGS
14108 save_libdir=$libdir
14109 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14110 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14113
14114 int
14115 main ()
14116 {
14117
14118 ;
14119 return 0;
14120 }
14121 _ACEOF
14122 if ac_fn_cxx_try_link "$LINENO"; then :
14123 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14124 lt_cv_shlibpath_overrides_runpath=yes
14125 fi
14126 fi
14127 rm -f core conftest.err conftest.$ac_objext \
14128 conftest$ac_exeext conftest.$ac_ext
14129 LDFLAGS=$save_LDFLAGS
14130 libdir=$save_libdir
14131
14132 fi
14133
14134 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14135
14136 # This implies no fast_install, which is unacceptable.
14137 # Some rework will be needed to allow for fast_install
14138 # before this can be enabled.
14139 hardcode_into_libs=yes
14140
14141 # Append ld.so.conf contents to the search path
14142 if test -f /etc/ld.so.conf; then
14143 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' ' '`
14144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14145 fi
14146
14147 # We used to test for /lib/ld.so.1 and disable shared libraries on
14148 # powerpc, because MkLinux only supported shared libraries with the
14149 # GNU dynamic linker. Since this was broken with cross compilers,
14150 # most powerpc-linux boxes support dynamic linking these days and
14151 # people can always --disable-shared, the test was removed, and we
14152 # assume the GNU/Linux dynamic linker is in use.
14153 dynamic_linker='GNU/Linux ld.so'
14154 ;;
14155
14156 netbsd*)
14157 version_type=sunos
14158 need_lib_prefix=no
14159 need_version=no
14160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14163 dynamic_linker='NetBSD (a.out) ld.so'
14164 else
14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14166 soname_spec='${libname}${release}${shared_ext}$major'
14167 dynamic_linker='NetBSD ld.elf_so'
14168 fi
14169 shlibpath_var=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath=yes
14171 hardcode_into_libs=yes
14172 ;;
14173
14174 newsos6)
14175 version_type=linux
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 shlibpath_var=LD_LIBRARY_PATH
14178 shlibpath_overrides_runpath=yes
14179 ;;
14180
14181 *nto* | *qnx*)
14182 version_type=qnx
14183 need_lib_prefix=no
14184 need_version=no
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14188 shlibpath_overrides_runpath=no
14189 hardcode_into_libs=yes
14190 dynamic_linker='ldqnx.so'
14191 ;;
14192
14193 openbsd*)
14194 version_type=sunos
14195 sys_lib_dlsearch_path_spec="/usr/lib"
14196 need_lib_prefix=no
14197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14198 case $host_os in
14199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14200 *) need_version=no ;;
14201 esac
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14206 case $host_os in
14207 openbsd2.[89] | openbsd2.[89].*)
14208 shlibpath_overrides_runpath=no
14209 ;;
14210 *)
14211 shlibpath_overrides_runpath=yes
14212 ;;
14213 esac
14214 else
14215 shlibpath_overrides_runpath=yes
14216 fi
14217 ;;
14218
14219 os2*)
14220 libname_spec='$name'
14221 shrext_cmds=".dll"
14222 need_lib_prefix=no
14223 library_names_spec='$libname${shared_ext} $libname.a'
14224 dynamic_linker='OS/2 ld.exe'
14225 shlibpath_var=LIBPATH
14226 ;;
14227
14228 osf3* | osf4* | osf5*)
14229 version_type=osf
14230 need_lib_prefix=no
14231 need_version=no
14232 soname_spec='${libname}${release}${shared_ext}$major'
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14237 ;;
14238
14239 rdos*)
14240 dynamic_linker=no
14241 ;;
14242
14243 solaris*)
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LD_LIBRARY_PATH
14250 shlibpath_overrides_runpath=yes
14251 hardcode_into_libs=yes
14252 # ldd complains unless libraries are executable
14253 postinstall_cmds='chmod +x $lib'
14254 ;;
14255
14256 sunos4*)
14257 version_type=sunos
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14260 shlibpath_var=LD_LIBRARY_PATH
14261 shlibpath_overrides_runpath=yes
14262 if test "$with_gnu_ld" = yes; then
14263 need_lib_prefix=no
14264 fi
14265 need_version=yes
14266 ;;
14267
14268 sysv4 | sysv4.3*)
14269 version_type=linux
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 shlibpath_var=LD_LIBRARY_PATH
14273 case $host_vendor in
14274 sni)
14275 shlibpath_overrides_runpath=no
14276 need_lib_prefix=no
14277 runpath_var=LD_RUN_PATH
14278 ;;
14279 siemens)
14280 need_lib_prefix=no
14281 ;;
14282 motorola)
14283 need_lib_prefix=no
14284 need_version=no
14285 shlibpath_overrides_runpath=no
14286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14287 ;;
14288 esac
14289 ;;
14290
14291 sysv4*MP*)
14292 if test -d /usr/nec ;then
14293 version_type=linux
14294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14295 soname_spec='$libname${shared_ext}.$major'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 fi
14298 ;;
14299
14300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14301 version_type=freebsd-elf
14302 need_lib_prefix=no
14303 need_version=no
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 shlibpath_var=LD_LIBRARY_PATH
14307 shlibpath_overrides_runpath=yes
14308 hardcode_into_libs=yes
14309 if test "$with_gnu_ld" = yes; then
14310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14311 else
14312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14313 case $host_os in
14314 sco3.2v5*)
14315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14316 ;;
14317 esac
14318 fi
14319 sys_lib_dlsearch_path_spec='/usr/lib'
14320 ;;
14321
14322 tpf*)
14323 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14324 version_type=linux
14325 need_lib_prefix=no
14326 need_version=no
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 shlibpath_overrides_runpath=no
14330 hardcode_into_libs=yes
14331 ;;
14332
14333 uts4*)
14334 version_type=linux
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336 soname_spec='${libname}${release}${shared_ext}$major'
14337 shlibpath_var=LD_LIBRARY_PATH
14338 ;;
14339
14340 *)
14341 dynamic_linker=no
14342 ;;
14343 esac
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14345 $as_echo "$dynamic_linker" >&6; }
14346 test "$dynamic_linker" = no && can_build_shared=no
14347
14348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14349 if test "$GCC" = yes; then
14350 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14351 fi
14352
14353 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14354 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14355 fi
14356 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14357 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14358 fi
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
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14398 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14399 hardcode_action_CXX=
14400 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14401 test -n "$runpath_var_CXX" ||
14402 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14403
14404 # We can hardcode non-existent directories.
14405 if test "$hardcode_direct_CXX" != no &&
14406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14407 # have to relink, otherwise we might link with an installed library
14408 # when we should be linking with a yet-to-be-installed one
14409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14410 test "$hardcode_minus_L_CXX" != no; then
14411 # Linking always hardcodes the temporary library directory.
14412 hardcode_action_CXX=relink
14413 else
14414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14415 hardcode_action_CXX=immediate
14416 fi
14417 else
14418 # We cannot hardcode anything, or else we can only hardcode existing
14419 # directories.
14420 hardcode_action_CXX=unsupported
14421 fi
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14423 $as_echo "$hardcode_action_CXX" >&6; }
14424
14425 if test "$hardcode_action_CXX" = relink ||
14426 test "$inherit_rpath_CXX" = yes; then
14427 # Fast installation is not supported
14428 enable_fast_install=no
14429 elif test "$shlibpath_overrides_runpath" = yes ||
14430 test "$enable_shared" = no; then
14431 # Fast installation is not necessary
14432 enable_fast_install=needless
14433 fi
14434
14435
14436
14437
14438
14439
14440
14441 fi # test -n "$compiler"
14442
14443 CC=$lt_save_CC
14444 LDCXX=$LD
14445 LD=$lt_save_LD
14446 GCC=$lt_save_GCC
14447 with_gnu_ld=$lt_save_with_gnu_ld
14448 lt_cv_path_LDCXX=$lt_cv_path_LD
14449 lt_cv_path_LD=$lt_save_path_LD
14450 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14451 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14452 fi # test "$_lt_caught_CXX_error" != yes
14453
14454 ac_ext=c
14455 ac_cpp='$CPP $CPPFLAGS'
14456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472 ac_config_commands="$ac_config_commands libtool"
14473
14474
14475
14476
14477 # Only expand once:
14478
14479
14480
14481
14482
14483
14484 # The cast to long int works around a bug in the HP C Compiler
14485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14487 # This bug is HP SR number 8606223364.
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14489 $as_echo_n "checking size of void *... " >&6; }
14490 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14491 $as_echo_n "(cached) " >&6
14492 else
14493 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14494
14495 else
14496 if test "$ac_cv_type_void_p" = yes; then
14497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14499 { as_fn_set_status 77
14500 as_fn_error "cannot compute sizeof (void *)
14501 See \`config.log' for more details." "$LINENO" 5; }; }
14502 else
14503 ac_cv_sizeof_void_p=0
14504 fi
14505 fi
14506
14507 fi
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14509 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14510
14511
14512
14513 cat >>confdefs.h <<_ACEOF
14514 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14515 _ACEOF
14516
14517
14518
14519 if test "${multilib}" = "yes"; then
14520 multilib_arg="--enable-multilib"
14521 else
14522 multilib_arg=
14523 fi
14524
14525 # Get target configury.
14526 unset TSAN_SUPPORTED
14527 . ${srcdir}/configure.tgt
14528 if test "x$TSAN_SUPPORTED" = "xyes"; then
14529 TSAN_SUPPORTED_TRUE=
14530 TSAN_SUPPORTED_FALSE='#'
14531 else
14532 TSAN_SUPPORTED_TRUE='#'
14533 TSAN_SUPPORTED_FALSE=
14534 fi
14535
14536
14537 case "$host" in
14538 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
14539 *) MAC_INTERPOSE=false ;;
14540 esac
14541 if $MAC_INTERPOSE; then
14542 USING_MAC_INTERPOSE_TRUE=
14543 USING_MAC_INTERPOSE_FALSE='#'
14544 else
14545 USING_MAC_INTERPOSE_TRUE='#'
14546 USING_MAC_INTERPOSE_FALSE=
14547 fi
14548
14549
14550 ac_config_files="$ac_config_files Makefile"
14551
14552
14553 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile asan/Makefile"
14554
14555
14556 if test "x$TSAN_SUPPORTED" = "xyes"; then
14557 ac_config_files="$ac_config_files tsan/Makefile"
14558
14559 fi
14560
14561 cat >confcache <<\_ACEOF
14562 # This file is a shell script that caches the results of configure
14563 # tests run on this system so they can be shared between configure
14564 # scripts and configure runs, see configure's option --config-cache.
14565 # It is not useful on other systems. If it contains results you don't
14566 # want to keep, you may remove or edit it.
14567 #
14568 # config.status only pays attention to the cache file if you give it
14569 # the --recheck option to rerun configure.
14570 #
14571 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14572 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14573 # following values.
14574
14575 _ACEOF
14576
14577 # The following way of writing the cache mishandles newlines in values,
14578 # but we know of no workaround that is simple, portable, and efficient.
14579 # So, we kill variables containing newlines.
14580 # Ultrix sh set writes to stderr and can't be redirected directly,
14581 # and sets the high bit in the cache file unless we assign to the vars.
14582 (
14583 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14584 eval ac_val=\$$ac_var
14585 case $ac_val in #(
14586 *${as_nl}*)
14587 case $ac_var in #(
14588 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14589 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14590 esac
14591 case $ac_var in #(
14592 _ | IFS | as_nl) ;; #(
14593 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14594 *) { eval $ac_var=; unset $ac_var;} ;;
14595 esac ;;
14596 esac
14597 done
14598
14599 (set) 2>&1 |
14600 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14601 *${as_nl}ac_space=\ *)
14602 # `set' does not quote correctly, so add quotes: double-quote
14603 # substitution turns \\\\ into \\, and sed turns \\ into \.
14604 sed -n \
14605 "s/'/'\\\\''/g;
14606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14607 ;; #(
14608 *)
14609 # `set' quotes correctly as required by POSIX, so do not add quotes.
14610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14611 ;;
14612 esac |
14613 sort
14614 ) |
14615 sed '
14616 /^ac_cv_env_/b end
14617 t clear
14618 :clear
14619 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14620 t end
14621 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14622 :end' >>confcache
14623 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14624 if test -w "$cache_file"; then
14625 test "x$cache_file" != "x/dev/null" &&
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14627 $as_echo "$as_me: updating cache $cache_file" >&6;}
14628 cat confcache >$cache_file
14629 else
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14631 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14632 fi
14633 fi
14634 rm -f confcache
14635
14636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14637 # Let make expand exec_prefix.
14638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14639
14640 # Transform confdefs.h into DEFS.
14641 # Protect against shell expansion while executing Makefile rules.
14642 # Protect against Makefile macro expansion.
14643 #
14644 # If the first sed substitution is executed (which looks for macros that
14645 # take arguments), then branch to the quote section. Otherwise,
14646 # look for a macro that doesn't take arguments.
14647 ac_script='
14648 :mline
14649 /\\$/{
14650 N
14651 s,\\\n,,
14652 b mline
14653 }
14654 t clear
14655 :clear
14656 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14657 t quote
14658 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14659 t quote
14660 b any
14661 :quote
14662 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14663 s/\[/\\&/g
14664 s/\]/\\&/g
14665 s/\$/$$/g
14666 H
14667 :any
14668 ${
14669 g
14670 s/^\n//
14671 s/\n/ /g
14672 p
14673 }
14674 '
14675 DEFS=`sed -n "$ac_script" confdefs.h`
14676
14677
14678 ac_libobjs=
14679 ac_ltlibobjs=
14680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14681 # 1. Remove the extension, and $U if already installed.
14682 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14683 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14684 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14685 # will be set to the directory where LIBOBJS objects are built.
14686 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14687 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14688 done
14689 LIBOBJS=$ac_libobjs
14690
14691 LTLIBOBJS=$ac_ltlibobjs
14692
14693
14694 if test -n "$EXEEXT"; then
14695 am__EXEEXT_TRUE=
14696 am__EXEEXT_FALSE='#'
14697 else
14698 am__EXEEXT_TRUE='#'
14699 am__EXEEXT_FALSE=
14700 fi
14701
14702 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14703 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14705 fi
14706 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14707 as_fn_error "conditional \"AMDEP\" was never defined.
14708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14709 fi
14710 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14711 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14713 fi
14714 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14715 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14717 fi
14718 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14719 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
14720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14721 fi
14722 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
14723 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
14724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14725 fi
14726 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
14727 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
14728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14729 fi
14730
14731 : ${CONFIG_STATUS=./config.status}
14732 ac_write_fail=0
14733 ac_clean_files_save=$ac_clean_files
14734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14736 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14737 as_write_fail=0
14738 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14739 #! $SHELL
14740 # Generated by $as_me.
14741 # Run this file to recreate the current configuration.
14742 # Compiler output produced by configure, useful for debugging
14743 # configure, is in config.log if it exists.
14744
14745 debug=false
14746 ac_cs_recheck=false
14747 ac_cs_silent=false
14748
14749 SHELL=\${CONFIG_SHELL-$SHELL}
14750 export SHELL
14751 _ASEOF
14752 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14753 ## -------------------- ##
14754 ## M4sh Initialization. ##
14755 ## -------------------- ##
14756
14757 # Be more Bourne compatible
14758 DUALCASE=1; export DUALCASE # for MKS sh
14759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14760 emulate sh
14761 NULLCMD=:
14762 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14763 # is contrary to our usage. Disable this feature.
14764 alias -g '${1+"$@"}'='"$@"'
14765 setopt NO_GLOB_SUBST
14766 else
14767 case `(set -o) 2>/dev/null` in #(
14768 *posix*) :
14769 set -o posix ;; #(
14770 *) :
14771 ;;
14772 esac
14773 fi
14774
14775
14776 as_nl='
14777 '
14778 export as_nl
14779 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14780 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14782 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14783 # Prefer a ksh shell builtin over an external printf program on Solaris,
14784 # but without wasting forks for bash or zsh.
14785 if test -z "$BASH_VERSION$ZSH_VERSION" \
14786 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14787 as_echo='print -r --'
14788 as_echo_n='print -rn --'
14789 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14790 as_echo='printf %s\n'
14791 as_echo_n='printf %s'
14792 else
14793 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14794 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14795 as_echo_n='/usr/ucb/echo -n'
14796 else
14797 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14798 as_echo_n_body='eval
14799 arg=$1;
14800 case $arg in #(
14801 *"$as_nl"*)
14802 expr "X$arg" : "X\\(.*\\)$as_nl";
14803 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14804 esac;
14805 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14806 '
14807 export as_echo_n_body
14808 as_echo_n='sh -c $as_echo_n_body as_echo'
14809 fi
14810 export as_echo_body
14811 as_echo='sh -c $as_echo_body as_echo'
14812 fi
14813
14814 # The user is always right.
14815 if test "${PATH_SEPARATOR+set}" != set; then
14816 PATH_SEPARATOR=:
14817 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14818 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14819 PATH_SEPARATOR=';'
14820 }
14821 fi
14822
14823
14824 # IFS
14825 # We need space, tab and new line, in precisely that order. Quoting is
14826 # there to prevent editors from complaining about space-tab.
14827 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14828 # splitting by setting IFS to empty value.)
14829 IFS=" "" $as_nl"
14830
14831 # Find who we are. Look in the path if we contain no directory separator.
14832 case $0 in #((
14833 *[\\/]* ) as_myself=$0 ;;
14834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14835 for as_dir in $PATH
14836 do
14837 IFS=$as_save_IFS
14838 test -z "$as_dir" && as_dir=.
14839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14840 done
14841 IFS=$as_save_IFS
14842
14843 ;;
14844 esac
14845 # We did not find ourselves, most probably we were run as `sh COMMAND'
14846 # in which case we are not to be found in the path.
14847 if test "x$as_myself" = x; then
14848 as_myself=$0
14849 fi
14850 if test ! -f "$as_myself"; then
14851 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14852 exit 1
14853 fi
14854
14855 # Unset variables that we do not need and which cause bugs (e.g. in
14856 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14857 # suppresses any "Segmentation fault" message there. '((' could
14858 # trigger a bug in pdksh 5.2.14.
14859 for as_var in BASH_ENV ENV MAIL MAILPATH
14860 do eval test x\${$as_var+set} = xset \
14861 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14862 done
14863 PS1='$ '
14864 PS2='> '
14865 PS4='+ '
14866
14867 # NLS nuisances.
14868 LC_ALL=C
14869 export LC_ALL
14870 LANGUAGE=C
14871 export LANGUAGE
14872
14873 # CDPATH.
14874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14875
14876
14877 # as_fn_error ERROR [LINENO LOG_FD]
14878 # ---------------------------------
14879 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14880 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14881 # script with status $?, using 1 if that was 0.
14882 as_fn_error ()
14883 {
14884 as_status=$?; test $as_status -eq 0 && as_status=1
14885 if test "$3"; then
14886 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14887 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14888 fi
14889 $as_echo "$as_me: error: $1" >&2
14890 as_fn_exit $as_status
14891 } # as_fn_error
14892
14893
14894 # as_fn_set_status STATUS
14895 # -----------------------
14896 # Set $? to STATUS, without forking.
14897 as_fn_set_status ()
14898 {
14899 return $1
14900 } # as_fn_set_status
14901
14902 # as_fn_exit STATUS
14903 # -----------------
14904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14905 as_fn_exit ()
14906 {
14907 set +e
14908 as_fn_set_status $1
14909 exit $1
14910 } # as_fn_exit
14911
14912 # as_fn_unset VAR
14913 # ---------------
14914 # Portably unset VAR.
14915 as_fn_unset ()
14916 {
14917 { eval $1=; unset $1;}
14918 }
14919 as_unset=as_fn_unset
14920 # as_fn_append VAR VALUE
14921 # ----------------------
14922 # Append the text in VALUE to the end of the definition contained in VAR. Take
14923 # advantage of any shell optimizations that allow amortized linear growth over
14924 # repeated appends, instead of the typical quadratic growth present in naive
14925 # implementations.
14926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14927 eval 'as_fn_append ()
14928 {
14929 eval $1+=\$2
14930 }'
14931 else
14932 as_fn_append ()
14933 {
14934 eval $1=\$$1\$2
14935 }
14936 fi # as_fn_append
14937
14938 # as_fn_arith ARG...
14939 # ------------------
14940 # Perform arithmetic evaluation on the ARGs, and store the result in the
14941 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14942 # must be portable across $(()) and expr.
14943 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14944 eval 'as_fn_arith ()
14945 {
14946 as_val=$(( $* ))
14947 }'
14948 else
14949 as_fn_arith ()
14950 {
14951 as_val=`expr "$@" || test $? -eq 1`
14952 }
14953 fi # as_fn_arith
14954
14955
14956 if expr a : '\(a\)' >/dev/null 2>&1 &&
14957 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14958 as_expr=expr
14959 else
14960 as_expr=false
14961 fi
14962
14963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14964 as_basename=basename
14965 else
14966 as_basename=false
14967 fi
14968
14969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14970 as_dirname=dirname
14971 else
14972 as_dirname=false
14973 fi
14974
14975 as_me=`$as_basename -- "$0" ||
14976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14977 X"$0" : 'X\(//\)$' \| \
14978 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14979 $as_echo X/"$0" |
14980 sed '/^.*\/\([^/][^/]*\)\/*$/{
14981 s//\1/
14982 q
14983 }
14984 /^X\/\(\/\/\)$/{
14985 s//\1/
14986 q
14987 }
14988 /^X\/\(\/\).*/{
14989 s//\1/
14990 q
14991 }
14992 s/.*/./; q'`
14993
14994 # Avoid depending upon Character Ranges.
14995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14998 as_cr_digits='0123456789'
14999 as_cr_alnum=$as_cr_Letters$as_cr_digits
15000
15001 ECHO_C= ECHO_N= ECHO_T=
15002 case `echo -n x` in #(((((
15003 -n*)
15004 case `echo 'xy\c'` in
15005 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15006 xy) ECHO_C='\c';;
15007 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15008 ECHO_T=' ';;
15009 esac;;
15010 *)
15011 ECHO_N='-n';;
15012 esac
15013
15014 rm -f conf$$ conf$$.exe conf$$.file
15015 if test -d conf$$.dir; then
15016 rm -f conf$$.dir/conf$$.file
15017 else
15018 rm -f conf$$.dir
15019 mkdir conf$$.dir 2>/dev/null
15020 fi
15021 if (echo >conf$$.file) 2>/dev/null; then
15022 if ln -s conf$$.file conf$$ 2>/dev/null; then
15023 as_ln_s='ln -s'
15024 # ... but there are two gotchas:
15025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15027 # In both cases, we have to default to `cp -p'.
15028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15029 as_ln_s='cp -p'
15030 elif ln conf$$.file conf$$ 2>/dev/null; then
15031 as_ln_s=ln
15032 else
15033 as_ln_s='cp -p'
15034 fi
15035 else
15036 as_ln_s='cp -p'
15037 fi
15038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15039 rmdir conf$$.dir 2>/dev/null
15040
15041
15042 # as_fn_mkdir_p
15043 # -------------
15044 # Create "$as_dir" as a directory, including parents if necessary.
15045 as_fn_mkdir_p ()
15046 {
15047
15048 case $as_dir in #(
15049 -*) as_dir=./$as_dir;;
15050 esac
15051 test -d "$as_dir" || eval $as_mkdir_p || {
15052 as_dirs=
15053 while :; do
15054 case $as_dir in #(
15055 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15056 *) as_qdir=$as_dir;;
15057 esac
15058 as_dirs="'$as_qdir' $as_dirs"
15059 as_dir=`$as_dirname -- "$as_dir" ||
15060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15061 X"$as_dir" : 'X\(//\)[^/]' \| \
15062 X"$as_dir" : 'X\(//\)$' \| \
15063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15064 $as_echo X"$as_dir" |
15065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15066 s//\1/
15067 q
15068 }
15069 /^X\(\/\/\)[^/].*/{
15070 s//\1/
15071 q
15072 }
15073 /^X\(\/\/\)$/{
15074 s//\1/
15075 q
15076 }
15077 /^X\(\/\).*/{
15078 s//\1/
15079 q
15080 }
15081 s/.*/./; q'`
15082 test -d "$as_dir" && break
15083 done
15084 test -z "$as_dirs" || eval "mkdir $as_dirs"
15085 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15086
15087
15088 } # as_fn_mkdir_p
15089 if mkdir -p . 2>/dev/null; then
15090 as_mkdir_p='mkdir -p "$as_dir"'
15091 else
15092 test -d ./-p && rmdir ./-p
15093 as_mkdir_p=false
15094 fi
15095
15096 if test -x / >/dev/null 2>&1; then
15097 as_test_x='test -x'
15098 else
15099 if ls -dL / >/dev/null 2>&1; then
15100 as_ls_L_option=L
15101 else
15102 as_ls_L_option=
15103 fi
15104 as_test_x='
15105 eval sh -c '\''
15106 if test -d "$1"; then
15107 test -d "$1/.";
15108 else
15109 case $1 in #(
15110 -*)set "./$1";;
15111 esac;
15112 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15113 ???[sx]*):;;*)false;;esac;fi
15114 '\'' sh
15115 '
15116 fi
15117 as_executable_p=$as_test_x
15118
15119 # Sed expression to map a string onto a valid CPP name.
15120 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15121
15122 # Sed expression to map a string onto a valid variable name.
15123 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15124
15125
15126 exec 6>&1
15127 ## ----------------------------------- ##
15128 ## Main body of $CONFIG_STATUS script. ##
15129 ## ----------------------------------- ##
15130 _ASEOF
15131 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15132
15133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15134 # Save the log message, to keep $0 and so on meaningful, and to
15135 # report actual input values of CONFIG_FILES etc. instead of their
15136 # values after options handling.
15137 ac_log="
15138 This file was extended by package-unused $as_me version-unused, which was
15139 generated by GNU Autoconf 2.64. Invocation command line was
15140
15141 CONFIG_FILES = $CONFIG_FILES
15142 CONFIG_HEADERS = $CONFIG_HEADERS
15143 CONFIG_LINKS = $CONFIG_LINKS
15144 CONFIG_COMMANDS = $CONFIG_COMMANDS
15145 $ $0 $@
15146
15147 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15148 "
15149
15150 _ACEOF
15151
15152 case $ac_config_files in *"
15153 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15154 esac
15155
15156
15157
15158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15159 # Files that config.status was made for.
15160 config_files="$ac_config_files"
15161 config_commands="$ac_config_commands"
15162
15163 _ACEOF
15164
15165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15166 ac_cs_usage="\
15167 \`$as_me' instantiates files and other configuration actions
15168 from templates according to the current configuration. Unless the files
15169 and actions are specified as TAGs, all are instantiated by default.
15170
15171 Usage: $0 [OPTION]... [TAG]...
15172
15173 -h, --help print this help, then exit
15174 -V, --version print version number and configuration settings, then exit
15175 -q, --quiet, --silent
15176 do not print progress messages
15177 -d, --debug don't remove temporary files
15178 --recheck update $as_me by reconfiguring in the same conditions
15179 --file=FILE[:TEMPLATE]
15180 instantiate the configuration file FILE
15181
15182 Configuration files:
15183 $config_files
15184
15185 Configuration commands:
15186 $config_commands
15187
15188 Report bugs to <libsanitizer>."
15189
15190 _ACEOF
15191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15192 ac_cs_version="\\
15193 package-unused config.status version-unused
15194 configured by $0, generated by GNU Autoconf 2.64,
15195 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15196
15197 Copyright (C) 2009 Free Software Foundation, Inc.
15198 This config.status script is free software; the Free Software Foundation
15199 gives unlimited permission to copy, distribute and modify it."
15200
15201 ac_pwd='$ac_pwd'
15202 srcdir='$srcdir'
15203 INSTALL='$INSTALL'
15204 MKDIR_P='$MKDIR_P'
15205 AWK='$AWK'
15206 test -n "\$AWK" || AWK=awk
15207 _ACEOF
15208
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15210 # The default lists apply if the user does not specify any file.
15211 ac_need_defaults=:
15212 while test $# != 0
15213 do
15214 case $1 in
15215 --*=*)
15216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15217 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15218 ac_shift=:
15219 ;;
15220 *)
15221 ac_option=$1
15222 ac_optarg=$2
15223 ac_shift=shift
15224 ;;
15225 esac
15226
15227 case $ac_option in
15228 # Handling of the options.
15229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15230 ac_cs_recheck=: ;;
15231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15232 $as_echo "$ac_cs_version"; exit ;;
15233 --debug | --debu | --deb | --de | --d | -d )
15234 debug=: ;;
15235 --file | --fil | --fi | --f )
15236 $ac_shift
15237 case $ac_optarg in
15238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15239 esac
15240 as_fn_append CONFIG_FILES " '$ac_optarg'"
15241 ac_need_defaults=false;;
15242 --he | --h | --help | --hel | -h )
15243 $as_echo "$ac_cs_usage"; exit ;;
15244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15245 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15246 ac_cs_silent=: ;;
15247
15248 # This is an error.
15249 -*) as_fn_error "unrecognized option: \`$1'
15250 Try \`$0 --help' for more information." ;;
15251
15252 *) as_fn_append ac_config_targets " $1"
15253 ac_need_defaults=false ;;
15254
15255 esac
15256 shift
15257 done
15258
15259 ac_configure_extra_args=
15260
15261 if $ac_cs_silent; then
15262 exec 6>/dev/null
15263 ac_configure_extra_args="$ac_configure_extra_args --silent"
15264 fi
15265
15266 _ACEOF
15267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15268 if \$ac_cs_recheck; then
15269 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15270 shift
15271 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15272 CONFIG_SHELL='$SHELL'
15273 export CONFIG_SHELL
15274 exec "\$@"
15275 fi
15276
15277 _ACEOF
15278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15279 exec 5>>config.log
15280 {
15281 echo
15282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15283 ## Running $as_me. ##
15284 _ASBOX
15285 $as_echo "$ac_log"
15286 } >&5
15287
15288 _ACEOF
15289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15290 #
15291 # INIT-COMMANDS
15292 #
15293
15294 srcdir="$srcdir"
15295 host="$host"
15296 target="$target"
15297 with_multisubdir="$with_multisubdir"
15298 with_multisrctop="$with_multisrctop"
15299 with_target_subdir="$with_target_subdir"
15300 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15301 multi_basedir="$multi_basedir"
15302 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15303 CC="$CC"
15304 CXX="$CXX"
15305 GFORTRAN="$GFORTRAN"
15306 GCJ="$GCJ"
15307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15308
15309
15310 # The HP-UX ksh and POSIX shell print the target directory to stdout
15311 # if CDPATH is set.
15312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15313
15314 sed_quote_subst='$sed_quote_subst'
15315 double_quote_subst='$double_quote_subst'
15316 delay_variable_subst='$delay_variable_subst'
15317 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15318 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15319 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15320 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15321 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15322 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15323 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15324 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15325 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15326 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15327 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15328 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15329 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15330 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15331 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15332 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15333 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15334 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15335 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15336 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15337 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15338 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15339 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15340 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15341 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15342 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15343 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15344 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15345 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15346 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15347 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15348 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15349 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15350 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15351 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15352 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15353 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15354 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15355 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15356 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15357 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15358 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15359 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15360 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15361 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15362 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15363 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15364 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15365 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"`'
15366 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15367 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15368 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15369 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15370 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15371 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15372 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15373 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15374 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15375 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15376 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15377 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15378 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15379 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15380 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15381 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15382 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15383 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15384 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15385 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15386 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15387 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15388 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15389 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15390 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15391 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15392 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15393 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15394 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15395 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15396 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15397 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15398 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15399 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15400 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15401 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15402 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15403 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15404 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15405 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15406 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15407 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15408 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15409 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15410 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15411 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15412 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15413 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15414 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15415 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15416 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15417 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15418 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15419 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15420 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15421 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15422 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15423 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15424 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15425 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15426 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15427 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15428 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15429 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15430 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15431 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15432 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15433 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15434 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15435 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15436 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15437 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15438 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15439 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15440 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15441 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15442 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15443 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15444 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15445 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15446 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15447 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15448 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15449 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15450 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15451 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15452 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15453 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15454 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15455 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15456 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15457 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15458 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15459 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15460 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15461 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15462 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15463 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15464 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15465 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15466 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15467 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15468 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15469 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15470 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15471 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15472 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15473 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15474 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15475 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15476 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15477 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15478 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15479 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15480 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15481 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15482 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15483 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15484 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15485 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15486 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15487 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15488 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15489 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15490 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15491 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15492
15493 LTCC='$LTCC'
15494 LTCFLAGS='$LTCFLAGS'
15495 compiler='$compiler_DEFAULT'
15496
15497 # A function that is used when there is no print builtin or printf.
15498 func_fallback_echo ()
15499 {
15500 eval 'cat <<_LTECHO_EOF
15501 \$1
15502 _LTECHO_EOF'
15503 }
15504
15505 # Quote evaled strings.
15506 for var in SHELL \
15507 ECHO \
15508 SED \
15509 GREP \
15510 EGREP \
15511 FGREP \
15512 LD \
15513 NM \
15514 LN_S \
15515 lt_SP2NL \
15516 lt_NL2SP \
15517 reload_flag \
15518 OBJDUMP \
15519 deplibs_check_method \
15520 file_magic_cmd \
15521 AR \
15522 AR_FLAGS \
15523 STRIP \
15524 RANLIB \
15525 CC \
15526 CFLAGS \
15527 compiler \
15528 lt_cv_sys_global_symbol_pipe \
15529 lt_cv_sys_global_symbol_to_cdecl \
15530 lt_cv_sys_global_symbol_to_c_name_address \
15531 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15532 lt_prog_compiler_no_builtin_flag \
15533 lt_prog_compiler_wl \
15534 lt_prog_compiler_pic \
15535 lt_prog_compiler_static \
15536 lt_cv_prog_compiler_c_o \
15537 need_locks \
15538 DSYMUTIL \
15539 NMEDIT \
15540 LIPO \
15541 OTOOL \
15542 OTOOL64 \
15543 shrext_cmds \
15544 export_dynamic_flag_spec \
15545 whole_archive_flag_spec \
15546 compiler_needs_object \
15547 with_gnu_ld \
15548 allow_undefined_flag \
15549 no_undefined_flag \
15550 hardcode_libdir_flag_spec \
15551 hardcode_libdir_flag_spec_ld \
15552 hardcode_libdir_separator \
15553 fix_srcfile_path \
15554 exclude_expsyms \
15555 include_expsyms \
15556 file_list_spec \
15557 variables_saved_for_relink \
15558 libname_spec \
15559 library_names_spec \
15560 soname_spec \
15561 install_override_mode \
15562 finish_eval \
15563 old_striplib \
15564 striplib \
15565 compiler_lib_search_dirs \
15566 predep_objects \
15567 postdep_objects \
15568 predeps \
15569 postdeps \
15570 compiler_lib_search_path \
15571 LD_CXX \
15572 reload_flag_CXX \
15573 compiler_CXX \
15574 lt_prog_compiler_no_builtin_flag_CXX \
15575 lt_prog_compiler_wl_CXX \
15576 lt_prog_compiler_pic_CXX \
15577 lt_prog_compiler_static_CXX \
15578 lt_cv_prog_compiler_c_o_CXX \
15579 export_dynamic_flag_spec_CXX \
15580 whole_archive_flag_spec_CXX \
15581 compiler_needs_object_CXX \
15582 with_gnu_ld_CXX \
15583 allow_undefined_flag_CXX \
15584 no_undefined_flag_CXX \
15585 hardcode_libdir_flag_spec_CXX \
15586 hardcode_libdir_flag_spec_ld_CXX \
15587 hardcode_libdir_separator_CXX \
15588 fix_srcfile_path_CXX \
15589 exclude_expsyms_CXX \
15590 include_expsyms_CXX \
15591 file_list_spec_CXX \
15592 compiler_lib_search_dirs_CXX \
15593 predep_objects_CXX \
15594 postdep_objects_CXX \
15595 predeps_CXX \
15596 postdeps_CXX \
15597 compiler_lib_search_path_CXX; do
15598 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15599 *[\\\\\\\`\\"\\\$]*)
15600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15601 ;;
15602 *)
15603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15604 ;;
15605 esac
15606 done
15607
15608 # Double-quote double-evaled strings.
15609 for var in reload_cmds \
15610 old_postinstall_cmds \
15611 old_postuninstall_cmds \
15612 old_archive_cmds \
15613 extract_expsyms_cmds \
15614 old_archive_from_new_cmds \
15615 old_archive_from_expsyms_cmds \
15616 archive_cmds \
15617 archive_expsym_cmds \
15618 module_cmds \
15619 module_expsym_cmds \
15620 export_symbols_cmds \
15621 prelink_cmds \
15622 postinstall_cmds \
15623 postuninstall_cmds \
15624 finish_cmds \
15625 sys_lib_search_path_spec \
15626 sys_lib_dlsearch_path_spec \
15627 reload_cmds_CXX \
15628 old_archive_cmds_CXX \
15629 old_archive_from_new_cmds_CXX \
15630 old_archive_from_expsyms_cmds_CXX \
15631 archive_cmds_CXX \
15632 archive_expsym_cmds_CXX \
15633 module_cmds_CXX \
15634 module_expsym_cmds_CXX \
15635 export_symbols_cmds_CXX \
15636 prelink_cmds_CXX; do
15637 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15638 *[\\\\\\\`\\"\\\$]*)
15639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15640 ;;
15641 *)
15642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15643 ;;
15644 esac
15645 done
15646
15647 ac_aux_dir='$ac_aux_dir'
15648 xsi_shell='$xsi_shell'
15649 lt_shell_append='$lt_shell_append'
15650
15651 # See if we are running on zsh, and set the options which allow our
15652 # commands through without removal of \ escapes INIT.
15653 if test -n "\${ZSH_VERSION+set}" ; then
15654 setopt NO_GLOB_SUBST
15655 fi
15656
15657
15658 PACKAGE='$PACKAGE'
15659 VERSION='$VERSION'
15660 TIMESTAMP='$TIMESTAMP'
15661 RM='$RM'
15662 ofile='$ofile'
15663
15664
15665
15666
15667
15668
15669 _ACEOF
15670
15671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672
15673 # Handling of arguments.
15674 for ac_config_target in $ac_config_targets
15675 do
15676 case $ac_config_target in
15677 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15678 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15679 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15681 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
15682 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
15683 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
15684 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
15685
15686 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15687 esac
15688 done
15689
15690
15691 # If the user did not use the arguments to specify the items to instantiate,
15692 # then the envvar interface is used. Set only those that are not.
15693 # We use the long form for the default assignment because of an extremely
15694 # bizarre bug on SunOS 4.1.3.
15695 if $ac_need_defaults; then
15696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15697 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15698 fi
15699
15700 # Have a temporary directory for convenience. Make it in the build tree
15701 # simply because there is no reason against having it here, and in addition,
15702 # creating and moving files from /tmp can sometimes cause problems.
15703 # Hook for its removal unless debugging.
15704 # Note that there is a small window in which the directory will not be cleaned:
15705 # after its creation but before its name has been assigned to `$tmp'.
15706 $debug ||
15707 {
15708 tmp=
15709 trap 'exit_status=$?
15710 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15711 ' 0
15712 trap 'as_fn_exit 1' 1 2 13 15
15713 }
15714 # Create a (secure) tmp directory for tmp files.
15715
15716 {
15717 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15718 test -n "$tmp" && test -d "$tmp"
15719 } ||
15720 {
15721 tmp=./conf$$-$RANDOM
15722 (umask 077 && mkdir "$tmp")
15723 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15724
15725 # Set up the scripts for CONFIG_FILES section.
15726 # No need to generate them if there are no CONFIG_FILES.
15727 # This happens for instance with `./config.status config.h'.
15728 if test -n "$CONFIG_FILES"; then
15729
15730
15731 ac_cr=`echo X | tr X '\015'`
15732 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15733 # But we know of no other shell where ac_cr would be empty at this
15734 # point, so we can use a bashism as a fallback.
15735 if test "x$ac_cr" = x; then
15736 eval ac_cr=\$\'\\r\'
15737 fi
15738 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15739 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15740 ac_cs_awk_cr='\r'
15741 else
15742 ac_cs_awk_cr=$ac_cr
15743 fi
15744
15745 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15746 _ACEOF
15747
15748
15749 {
15750 echo "cat >conf$$subs.awk <<_ACEOF" &&
15751 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15752 echo "_ACEOF"
15753 } >conf$$subs.sh ||
15754 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15755 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15756 ac_delim='%!_!# '
15757 for ac_last_try in false false false false false :; do
15758 . ./conf$$subs.sh ||
15759 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15760
15761 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15762 if test $ac_delim_n = $ac_delim_num; then
15763 break
15764 elif $ac_last_try; then
15765 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15766 else
15767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15768 fi
15769 done
15770 rm -f conf$$subs.sh
15771
15772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15773 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15774 _ACEOF
15775 sed -n '
15776 h
15777 s/^/S["/; s/!.*/"]=/
15778 p
15779 g
15780 s/^[^!]*!//
15781 :repl
15782 t repl
15783 s/'"$ac_delim"'$//
15784 t delim
15785 :nl
15786 h
15787 s/\(.\{148\}\).*/\1/
15788 t more1
15789 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15790 p
15791 n
15792 b repl
15793 :more1
15794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15795 p
15796 g
15797 s/.\{148\}//
15798 t nl
15799 :delim
15800 h
15801 s/\(.\{148\}\).*/\1/
15802 t more2
15803 s/["\\]/\\&/g; s/^/"/; s/$/"/
15804 p
15805 b
15806 :more2
15807 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15808 p
15809 g
15810 s/.\{148\}//
15811 t delim
15812 ' <conf$$subs.awk | sed '
15813 /^[^""]/{
15814 N
15815 s/\n//
15816 }
15817 ' >>$CONFIG_STATUS || ac_write_fail=1
15818 rm -f conf$$subs.awk
15819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15820 _ACAWK
15821 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15822 for (key in S) S_is_set[key] = 1
15823 FS = ""
15824
15825 }
15826 {
15827 line = $ 0
15828 nfields = split(line, field, "@")
15829 substed = 0
15830 len = length(field[1])
15831 for (i = 2; i < nfields; i++) {
15832 key = field[i]
15833 keylen = length(key)
15834 if (S_is_set[key]) {
15835 value = S[key]
15836 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15837 len += length(value) + length(field[++i])
15838 substed = 1
15839 } else
15840 len += 1 + keylen
15841 }
15842
15843 print line
15844 }
15845
15846 _ACAWK
15847 _ACEOF
15848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15849 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15850 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15851 else
15852 cat
15853 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15854 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15855 _ACEOF
15856
15857 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15858 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15859 # trailing colons and then remove the whole line if VPATH becomes empty
15860 # (actually we leave an empty line to preserve line numbers).
15861 if test "x$srcdir" = x.; then
15862 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15863 s/:*\$(srcdir):*/:/
15864 s/:*\${srcdir}:*/:/
15865 s/:*@srcdir@:*/:/
15866 s/^\([^=]*=[ ]*\):*/\1/
15867 s/:*$//
15868 s/^[^=]*=[ ]*$//
15869 }'
15870 fi
15871
15872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15873 fi # test -n "$CONFIG_FILES"
15874
15875
15876 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15877 shift
15878 for ac_tag
15879 do
15880 case $ac_tag in
15881 :[FHLC]) ac_mode=$ac_tag; continue;;
15882 esac
15883 case $ac_mode$ac_tag in
15884 :[FHL]*:*);;
15885 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15886 :[FH]-) ac_tag=-:-;;
15887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15888 esac
15889 ac_save_IFS=$IFS
15890 IFS=:
15891 set x $ac_tag
15892 IFS=$ac_save_IFS
15893 shift
15894 ac_file=$1
15895 shift
15896
15897 case $ac_mode in
15898 :L) ac_source=$1;;
15899 :[FH])
15900 ac_file_inputs=
15901 for ac_f
15902 do
15903 case $ac_f in
15904 -) ac_f="$tmp/stdin";;
15905 *) # Look for the file first in the build tree, then in the source tree
15906 # (if the path is not absolute). The absolute path cannot be DOS-style,
15907 # because $ac_f cannot contain `:'.
15908 test -f "$ac_f" ||
15909 case $ac_f in
15910 [\\/$]*) false;;
15911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15912 esac ||
15913 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15914 esac
15915 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15916 as_fn_append ac_file_inputs " '$ac_f'"
15917 done
15918
15919 # Let's still pretend it is `configure' which instantiates (i.e., don't
15920 # use $as_me), people would be surprised to read:
15921 # /* config.h. Generated by config.status. */
15922 configure_input='Generated from '`
15923 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15924 `' by configure.'
15925 if test x"$ac_file" != x-; then
15926 configure_input="$ac_file. $configure_input"
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15928 $as_echo "$as_me: creating $ac_file" >&6;}
15929 fi
15930 # Neutralize special characters interpreted by sed in replacement strings.
15931 case $configure_input in #(
15932 *\&* | *\|* | *\\* )
15933 ac_sed_conf_input=`$as_echo "$configure_input" |
15934 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15935 *) ac_sed_conf_input=$configure_input;;
15936 esac
15937
15938 case $ac_tag in
15939 *:-:* | *:-) cat >"$tmp/stdin" \
15940 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15941 esac
15942 ;;
15943 esac
15944
15945 ac_dir=`$as_dirname -- "$ac_file" ||
15946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15947 X"$ac_file" : 'X\(//\)[^/]' \| \
15948 X"$ac_file" : 'X\(//\)$' \| \
15949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15950 $as_echo X"$ac_file" |
15951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15952 s//\1/
15953 q
15954 }
15955 /^X\(\/\/\)[^/].*/{
15956 s//\1/
15957 q
15958 }
15959 /^X\(\/\/\)$/{
15960 s//\1/
15961 q
15962 }
15963 /^X\(\/\).*/{
15964 s//\1/
15965 q
15966 }
15967 s/.*/./; q'`
15968 as_dir="$ac_dir"; as_fn_mkdir_p
15969 ac_builddir=.
15970
15971 case "$ac_dir" in
15972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15973 *)
15974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15975 # A ".." for each directory in $ac_dir_suffix.
15976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15977 case $ac_top_builddir_sub in
15978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15980 esac ;;
15981 esac
15982 ac_abs_top_builddir=$ac_pwd
15983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15984 # for backward compatibility:
15985 ac_top_builddir=$ac_top_build_prefix
15986
15987 case $srcdir in
15988 .) # We are building in place.
15989 ac_srcdir=.
15990 ac_top_srcdir=$ac_top_builddir_sub
15991 ac_abs_top_srcdir=$ac_pwd ;;
15992 [\\/]* | ?:[\\/]* ) # Absolute name.
15993 ac_srcdir=$srcdir$ac_dir_suffix;
15994 ac_top_srcdir=$srcdir
15995 ac_abs_top_srcdir=$srcdir ;;
15996 *) # Relative name.
15997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15998 ac_top_srcdir=$ac_top_build_prefix$srcdir
15999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16000 esac
16001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16002
16003
16004 case $ac_mode in
16005 :F)
16006 #
16007 # CONFIG_FILE
16008 #
16009
16010 case $INSTALL in
16011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16013 esac
16014 ac_MKDIR_P=$MKDIR_P
16015 case $MKDIR_P in
16016 [\\/$]* | ?:[\\/]* ) ;;
16017 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16018 esac
16019 _ACEOF
16020
16021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16022 # If the template does not know about datarootdir, expand it.
16023 # FIXME: This hack should be removed a few years after 2.60.
16024 ac_datarootdir_hack=; ac_datarootdir_seen=
16025 ac_sed_dataroot='
16026 /datarootdir/ {
16027 p
16028 q
16029 }
16030 /@datadir@/p
16031 /@docdir@/p
16032 /@infodir@/p
16033 /@localedir@/p
16034 /@mandir@/p'
16035 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16036 *datarootdir*) ac_datarootdir_seen=yes;;
16037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16039 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16040 _ACEOF
16041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16042 ac_datarootdir_hack='
16043 s&@datadir@&$datadir&g
16044 s&@docdir@&$docdir&g
16045 s&@infodir@&$infodir&g
16046 s&@localedir@&$localedir&g
16047 s&@mandir@&$mandir&g
16048 s&\\\${datarootdir}&$datarootdir&g' ;;
16049 esac
16050 _ACEOF
16051
16052 # Neutralize VPATH when `$srcdir' = `.'.
16053 # Shell code in configure.ac might set extrasub.
16054 # FIXME: do we really want to maintain this feature?
16055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056 ac_sed_extra="$ac_vpsub
16057 $extrasub
16058 _ACEOF
16059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060 :t
16061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16062 s|@configure_input@|$ac_sed_conf_input|;t t
16063 s&@top_builddir@&$ac_top_builddir_sub&;t t
16064 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16065 s&@srcdir@&$ac_srcdir&;t t
16066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16067 s&@top_srcdir@&$ac_top_srcdir&;t t
16068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16069 s&@builddir@&$ac_builddir&;t t
16070 s&@abs_builddir@&$ac_abs_builddir&;t t
16071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16072 s&@INSTALL@&$ac_INSTALL&;t t
16073 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16074 $ac_datarootdir_hack
16075 "
16076 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16077 || as_fn_error "could not create $ac_file" "$LINENO" 5
16078
16079 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16080 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16083 which seems to be undefined. Please make sure it is defined." >&5
16084 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16085 which seems to be undefined. Please make sure it is defined." >&2;}
16086
16087 rm -f "$tmp/stdin"
16088 case $ac_file in
16089 -) cat "$tmp/out" && rm -f "$tmp/out";;
16090 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16091 esac \
16092 || as_fn_error "could not create $ac_file" "$LINENO" 5
16093 ;;
16094
16095
16096 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16097 $as_echo "$as_me: executing $ac_file commands" >&6;}
16098 ;;
16099 esac
16100
16101
16102 case $ac_file$ac_mode in
16103 "default-1":C)
16104 # Only add multilib support code if we just rebuilt the top-level
16105 # Makefile.
16106 case " $CONFIG_FILES " in
16107 *" Makefile "*)
16108 ac_file=Makefile . ${multi_basedir}/config-ml.in
16109 ;;
16110 esac ;;
16111 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16112 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16113 # are listed without --file. Let's play safe and only enable the eval
16114 # if we detect the quoting.
16115 case $CONFIG_FILES in
16116 *\'*) eval set x "$CONFIG_FILES" ;;
16117 *) set x $CONFIG_FILES ;;
16118 esac
16119 shift
16120 for mf
16121 do
16122 # Strip MF so we end up with the name of the file.
16123 mf=`echo "$mf" | sed -e 's/:.*$//'`
16124 # Check whether this is an Automake generated Makefile or not.
16125 # We used to match only the files named `Makefile.in', but
16126 # some people rename them; so instead we look at the file content.
16127 # Grep'ing the first line is not enough: some people post-process
16128 # each Makefile.in and add a new line on top of each file to say so.
16129 # Grep'ing the whole file is not good either: AIX grep has a line
16130 # limit of 2048, but all sed's we know have understand at least 4000.
16131 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16132 dirpart=`$as_dirname -- "$mf" ||
16133 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16134 X"$mf" : 'X\(//\)[^/]' \| \
16135 X"$mf" : 'X\(//\)$' \| \
16136 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16137 $as_echo X"$mf" |
16138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16139 s//\1/
16140 q
16141 }
16142 /^X\(\/\/\)[^/].*/{
16143 s//\1/
16144 q
16145 }
16146 /^X\(\/\/\)$/{
16147 s//\1/
16148 q
16149 }
16150 /^X\(\/\).*/{
16151 s//\1/
16152 q
16153 }
16154 s/.*/./; q'`
16155 else
16156 continue
16157 fi
16158 # Extract the definition of DEPDIR, am__include, and am__quote
16159 # from the Makefile without running `make'.
16160 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16161 test -z "$DEPDIR" && continue
16162 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16163 test -z "am__include" && continue
16164 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16165 # When using ansi2knr, U may be empty or an underscore; expand it
16166 U=`sed -n 's/^U = //p' < "$mf"`
16167 # Find all dependency output files, they are included files with
16168 # $(DEPDIR) in their names. We invoke sed twice because it is the
16169 # simplest approach to changing $(DEPDIR) to its actual value in the
16170 # expansion.
16171 for file in `sed -n "
16172 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16173 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16174 # Make sure the directory exists.
16175 test -f "$dirpart/$file" && continue
16176 fdir=`$as_dirname -- "$file" ||
16177 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16178 X"$file" : 'X\(//\)[^/]' \| \
16179 X"$file" : 'X\(//\)$' \| \
16180 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16181 $as_echo X"$file" |
16182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16183 s//\1/
16184 q
16185 }
16186 /^X\(\/\/\)[^/].*/{
16187 s//\1/
16188 q
16189 }
16190 /^X\(\/\/\)$/{
16191 s//\1/
16192 q
16193 }
16194 /^X\(\/\).*/{
16195 s//\1/
16196 q
16197 }
16198 s/.*/./; q'`
16199 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16200 # echo "creating $dirpart/$file"
16201 echo '# dummy' > "$dirpart/$file"
16202 done
16203 done
16204 }
16205 ;;
16206 "libtool":C)
16207
16208 # See if we are running on zsh, and set the options which allow our
16209 # commands through without removal of \ escapes.
16210 if test -n "${ZSH_VERSION+set}" ; then
16211 setopt NO_GLOB_SUBST
16212 fi
16213
16214 cfgfile="${ofile}T"
16215 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16216 $RM "$cfgfile"
16217
16218 cat <<_LT_EOF >> "$cfgfile"
16219 #! $SHELL
16220
16221 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16222 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16223 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16224 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16225 #
16226 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16227 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16228 # Written by Gordon Matzigkeit, 1996
16229 #
16230 # This file is part of GNU Libtool.
16231 #
16232 # GNU Libtool is free software; you can redistribute it and/or
16233 # modify it under the terms of the GNU General Public License as
16234 # published by the Free Software Foundation; either version 2 of
16235 # the License, or (at your option) any later version.
16236 #
16237 # As a special exception to the GNU General Public License,
16238 # if you distribute this file as part of a program or library that
16239 # is built using GNU Libtool, you may include this file under the
16240 # same distribution terms that you use for the rest of that program.
16241 #
16242 # GNU Libtool is distributed in the hope that it will be useful,
16243 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16244 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16245 # GNU General Public License for more details.
16246 #
16247 # You should have received a copy of the GNU General Public License
16248 # along with GNU Libtool; see the file COPYING. If not, a copy
16249 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16250 # obtained by writing to the Free Software Foundation, Inc.,
16251 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16252
16253
16254 # The names of the tagged configurations supported by this script.
16255 available_tags="CXX "
16256
16257 # ### BEGIN LIBTOOL CONFIG
16258
16259 # Which release of libtool.m4 was used?
16260 macro_version=$macro_version
16261 macro_revision=$macro_revision
16262
16263 # Whether or not to build shared libraries.
16264 build_libtool_libs=$enable_shared
16265
16266 # Whether or not to build static libraries.
16267 build_old_libs=$enable_static
16268
16269 # What type of objects to build.
16270 pic_mode=$pic_mode
16271
16272 # Whether or not to optimize for fast installation.
16273 fast_install=$enable_fast_install
16274
16275 # Shell to use when invoking shell scripts.
16276 SHELL=$lt_SHELL
16277
16278 # An echo program that protects backslashes.
16279 ECHO=$lt_ECHO
16280
16281 # The host system.
16282 host_alias=$host_alias
16283 host=$host
16284 host_os=$host_os
16285
16286 # The build system.
16287 build_alias=$build_alias
16288 build=$build
16289 build_os=$build_os
16290
16291 # A sed program that does not truncate output.
16292 SED=$lt_SED
16293
16294 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16295 Xsed="\$SED -e 1s/^X//"
16296
16297 # A grep program that handles long lines.
16298 GREP=$lt_GREP
16299
16300 # An ERE matcher.
16301 EGREP=$lt_EGREP
16302
16303 # A literal string matcher.
16304 FGREP=$lt_FGREP
16305
16306 # A BSD- or MS-compatible name lister.
16307 NM=$lt_NM
16308
16309 # Whether we need soft or hard links.
16310 LN_S=$lt_LN_S
16311
16312 # What is the maximum length of a command?
16313 max_cmd_len=$max_cmd_len
16314
16315 # Object file suffix (normally "o").
16316 objext=$ac_objext
16317
16318 # Executable file suffix (normally "").
16319 exeext=$exeext
16320
16321 # whether the shell understands "unset".
16322 lt_unset=$lt_unset
16323
16324 # turn spaces into newlines.
16325 SP2NL=$lt_lt_SP2NL
16326
16327 # turn newlines into spaces.
16328 NL2SP=$lt_lt_NL2SP
16329
16330 # An object symbol dumper.
16331 OBJDUMP=$lt_OBJDUMP
16332
16333 # Method to check whether dependent libraries are shared objects.
16334 deplibs_check_method=$lt_deplibs_check_method
16335
16336 # Command to use when deplibs_check_method == "file_magic".
16337 file_magic_cmd=$lt_file_magic_cmd
16338
16339 # The archiver.
16340 AR=$lt_AR
16341 AR_FLAGS=$lt_AR_FLAGS
16342
16343 # A symbol stripping program.
16344 STRIP=$lt_STRIP
16345
16346 # Commands used to install an old-style archive.
16347 RANLIB=$lt_RANLIB
16348 old_postinstall_cmds=$lt_old_postinstall_cmds
16349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16350
16351 # Whether to use a lock for old archive extraction.
16352 lock_old_archive_extraction=$lock_old_archive_extraction
16353
16354 # A C compiler.
16355 LTCC=$lt_CC
16356
16357 # LTCC compiler flags.
16358 LTCFLAGS=$lt_CFLAGS
16359
16360 # Take the output of nm and produce a listing of raw symbols and C names.
16361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16362
16363 # Transform the output of nm in a proper C declaration.
16364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16365
16366 # Transform the output of nm in a C name address pair.
16367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16368
16369 # Transform the output of nm in a C name address pair when lib prefix is needed.
16370 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16371
16372 # The name of the directory that contains temporary libtool files.
16373 objdir=$objdir
16374
16375 # Used to examine libraries when file_magic_cmd begins with "file".
16376 MAGIC_CMD=$MAGIC_CMD
16377
16378 # Must we lock files when doing compilation?
16379 need_locks=$lt_need_locks
16380
16381 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16382 DSYMUTIL=$lt_DSYMUTIL
16383
16384 # Tool to change global to local symbols on Mac OS X.
16385 NMEDIT=$lt_NMEDIT
16386
16387 # Tool to manipulate fat objects and archives on Mac OS X.
16388 LIPO=$lt_LIPO
16389
16390 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16391 OTOOL=$lt_OTOOL
16392
16393 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16394 OTOOL64=$lt_OTOOL64
16395
16396 # Old archive suffix (normally "a").
16397 libext=$libext
16398
16399 # Shared library suffix (normally ".so").
16400 shrext_cmds=$lt_shrext_cmds
16401
16402 # The commands to extract the exported symbol list from a shared archive.
16403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16404
16405 # Variables whose values should be saved in libtool wrapper scripts and
16406 # restored at link time.
16407 variables_saved_for_relink=$lt_variables_saved_for_relink
16408
16409 # Do we need the "lib" prefix for modules?
16410 need_lib_prefix=$need_lib_prefix
16411
16412 # Do we need a version for libraries?
16413 need_version=$need_version
16414
16415 # Library versioning type.
16416 version_type=$version_type
16417
16418 # Shared library runtime path variable.
16419 runpath_var=$runpath_var
16420
16421 # Shared library path variable.
16422 shlibpath_var=$shlibpath_var
16423
16424 # Is shlibpath searched before the hard-coded library search path?
16425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16426
16427 # Format of library name prefix.
16428 libname_spec=$lt_libname_spec
16429
16430 # List of archive names. First name is the real one, the rest are links.
16431 # The last name is the one that the linker finds with -lNAME
16432 library_names_spec=$lt_library_names_spec
16433
16434 # The coded name of the library, if different from the real name.
16435 soname_spec=$lt_soname_spec
16436
16437 # Permission mode override for installation of shared libraries.
16438 install_override_mode=$lt_install_override_mode
16439
16440 # Command to use after installation of a shared archive.
16441 postinstall_cmds=$lt_postinstall_cmds
16442
16443 # Command to use after uninstallation of a shared archive.
16444 postuninstall_cmds=$lt_postuninstall_cmds
16445
16446 # Commands used to finish a libtool library installation in a directory.
16447 finish_cmds=$lt_finish_cmds
16448
16449 # As "finish_cmds", except a single script fragment to be evaled but
16450 # not shown.
16451 finish_eval=$lt_finish_eval
16452
16453 # Whether we should hardcode library paths into libraries.
16454 hardcode_into_libs=$hardcode_into_libs
16455
16456 # Compile-time system search path for libraries.
16457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16458
16459 # Run-time system search path for libraries.
16460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16461
16462 # Whether dlopen is supported.
16463 dlopen_support=$enable_dlopen
16464
16465 # Whether dlopen of programs is supported.
16466 dlopen_self=$enable_dlopen_self
16467
16468 # Whether dlopen of statically linked programs is supported.
16469 dlopen_self_static=$enable_dlopen_self_static
16470
16471 # Commands to strip libraries.
16472 old_striplib=$lt_old_striplib
16473 striplib=$lt_striplib
16474
16475
16476 # The linker used to build libraries.
16477 LD=$lt_LD
16478
16479 # How to create reloadable object files.
16480 reload_flag=$lt_reload_flag
16481 reload_cmds=$lt_reload_cmds
16482
16483 # Commands used to build an old-style archive.
16484 old_archive_cmds=$lt_old_archive_cmds
16485
16486 # A language specific compiler.
16487 CC=$lt_compiler
16488
16489 # Is the compiler the GNU compiler?
16490 with_gcc=$GCC
16491
16492 # Compiler flag to turn off builtin functions.
16493 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16494
16495 # How to pass a linker flag through the compiler.
16496 wl=$lt_lt_prog_compiler_wl
16497
16498 # Additional compiler flags for building library objects.
16499 pic_flag=$lt_lt_prog_compiler_pic
16500
16501 # Compiler flag to prevent dynamic linking.
16502 link_static_flag=$lt_lt_prog_compiler_static
16503
16504 # Does compiler simultaneously support -c and -o options?
16505 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16506
16507 # Whether or not to add -lc for building shared libraries.
16508 build_libtool_need_lc=$archive_cmds_need_lc
16509
16510 # Whether or not to disallow shared libs when runtime libs are static.
16511 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16512
16513 # Compiler flag to allow reflexive dlopens.
16514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16515
16516 # Compiler flag to generate shared objects directly from archives.
16517 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16518
16519 # Whether the compiler copes with passing no objects directly.
16520 compiler_needs_object=$lt_compiler_needs_object
16521
16522 # Create an old-style archive from a shared archive.
16523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16524
16525 # Create a temporary old-style archive to link instead of a shared archive.
16526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16527
16528 # Commands used to build a shared archive.
16529 archive_cmds=$lt_archive_cmds
16530 archive_expsym_cmds=$lt_archive_expsym_cmds
16531
16532 # Commands used to build a loadable module if different from building
16533 # a shared archive.
16534 module_cmds=$lt_module_cmds
16535 module_expsym_cmds=$lt_module_expsym_cmds
16536
16537 # Whether we are building with GNU ld or not.
16538 with_gnu_ld=$lt_with_gnu_ld
16539
16540 # Flag that allows shared libraries with undefined symbols to be built.
16541 allow_undefined_flag=$lt_allow_undefined_flag
16542
16543 # Flag that enforces no undefined symbols.
16544 no_undefined_flag=$lt_no_undefined_flag
16545
16546 # Flag to hardcode \$libdir into a binary during linking.
16547 # This must work even if \$libdir does not exist
16548 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16549
16550 # If ld is used when linking, flag to hardcode \$libdir into a binary
16551 # during linking. This must work even if \$libdir does not exist.
16552 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16553
16554 # Whether we need a single "-rpath" flag with a separated argument.
16555 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16556
16557 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16558 # DIR into the resulting binary.
16559 hardcode_direct=$hardcode_direct
16560
16561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16562 # DIR into the resulting binary and the resulting library dependency is
16563 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16564 # library is relocated.
16565 hardcode_direct_absolute=$hardcode_direct_absolute
16566
16567 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16568 # into the resulting binary.
16569 hardcode_minus_L=$hardcode_minus_L
16570
16571 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16572 # into the resulting binary.
16573 hardcode_shlibpath_var=$hardcode_shlibpath_var
16574
16575 # Set to "yes" if building a shared library automatically hardcodes DIR
16576 # into the library and all subsequent libraries and executables linked
16577 # against it.
16578 hardcode_automatic=$hardcode_automatic
16579
16580 # Set to yes if linker adds runtime paths of dependent libraries
16581 # to runtime path list.
16582 inherit_rpath=$inherit_rpath
16583
16584 # Whether libtool must link a program against all its dependency libraries.
16585 link_all_deplibs=$link_all_deplibs
16586
16587 # Fix the shell variable \$srcfile for the compiler.
16588 fix_srcfile_path=$lt_fix_srcfile_path
16589
16590 # Set to "yes" if exported symbols are required.
16591 always_export_symbols=$always_export_symbols
16592
16593 # The commands to list exported symbols.
16594 export_symbols_cmds=$lt_export_symbols_cmds
16595
16596 # Symbols that should not be listed in the preloaded symbols.
16597 exclude_expsyms=$lt_exclude_expsyms
16598
16599 # Symbols that must always be exported.
16600 include_expsyms=$lt_include_expsyms
16601
16602 # Commands necessary for linking programs (against libraries) with templates.
16603 prelink_cmds=$lt_prelink_cmds
16604
16605 # Specify filename containing input files.
16606 file_list_spec=$lt_file_list_spec
16607
16608 # How to hardcode a shared library path into an executable.
16609 hardcode_action=$hardcode_action
16610
16611 # The directories searched by this compiler when creating a shared library.
16612 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16613
16614 # Dependencies to place before and after the objects being linked to
16615 # create a shared library.
16616 predep_objects=$lt_predep_objects
16617 postdep_objects=$lt_postdep_objects
16618 predeps=$lt_predeps
16619 postdeps=$lt_postdeps
16620
16621 # The library search path used internally by the compiler when linking
16622 # a shared library.
16623 compiler_lib_search_path=$lt_compiler_lib_search_path
16624
16625 # ### END LIBTOOL CONFIG
16626
16627 _LT_EOF
16628
16629 case $host_os in
16630 aix3*)
16631 cat <<\_LT_EOF >> "$cfgfile"
16632 # AIX sometimes has problems with the GCC collect2 program. For some
16633 # reason, if we set the COLLECT_NAMES environment variable, the problems
16634 # vanish in a puff of smoke.
16635 if test "X${COLLECT_NAMES+set}" != Xset; then
16636 COLLECT_NAMES=
16637 export COLLECT_NAMES
16638 fi
16639 _LT_EOF
16640 ;;
16641 esac
16642
16643
16644 ltmain="$ac_aux_dir/ltmain.sh"
16645
16646
16647 # We use sed instead of cat because bash on DJGPP gets confused if
16648 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16649 # text mode, it properly converts lines to CR/LF. This bash problem
16650 # is reportedly fixed, but why not run on old versions too?
16651 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16652 || (rm -f "$cfgfile"; exit 1)
16653
16654 case $xsi_shell in
16655 yes)
16656 cat << \_LT_EOF >> "$cfgfile"
16657
16658 # func_dirname file append nondir_replacement
16659 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16660 # otherwise set result to NONDIR_REPLACEMENT.
16661 func_dirname ()
16662 {
16663 case ${1} in
16664 */*) func_dirname_result="${1%/*}${2}" ;;
16665 * ) func_dirname_result="${3}" ;;
16666 esac
16667 }
16668
16669 # func_basename file
16670 func_basename ()
16671 {
16672 func_basename_result="${1##*/}"
16673 }
16674
16675 # func_dirname_and_basename file append nondir_replacement
16676 # perform func_basename and func_dirname in a single function
16677 # call:
16678 # dirname: Compute the dirname of FILE. If nonempty,
16679 # add APPEND to the result, otherwise set result
16680 # to NONDIR_REPLACEMENT.
16681 # value returned in "$func_dirname_result"
16682 # basename: Compute filename of FILE.
16683 # value retuned in "$func_basename_result"
16684 # Implementation must be kept synchronized with func_dirname
16685 # and func_basename. For efficiency, we do not delegate to
16686 # those functions but instead duplicate the functionality here.
16687 func_dirname_and_basename ()
16688 {
16689 case ${1} in
16690 */*) func_dirname_result="${1%/*}${2}" ;;
16691 * ) func_dirname_result="${3}" ;;
16692 esac
16693 func_basename_result="${1##*/}"
16694 }
16695
16696 # func_stripname prefix suffix name
16697 # strip PREFIX and SUFFIX off of NAME.
16698 # PREFIX and SUFFIX must not contain globbing or regex special
16699 # characters, hashes, percent signs, but SUFFIX may contain a leading
16700 # dot (in which case that matches only a dot).
16701 func_stripname ()
16702 {
16703 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16704 # positional parameters, so assign one to ordinary parameter first.
16705 func_stripname_result=${3}
16706 func_stripname_result=${func_stripname_result#"${1}"}
16707 func_stripname_result=${func_stripname_result%"${2}"}
16708 }
16709
16710 # func_opt_split
16711 func_opt_split ()
16712 {
16713 func_opt_split_opt=${1%%=*}
16714 func_opt_split_arg=${1#*=}
16715 }
16716
16717 # func_lo2o object
16718 func_lo2o ()
16719 {
16720 case ${1} in
16721 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16722 *) func_lo2o_result=${1} ;;
16723 esac
16724 }
16725
16726 # func_xform libobj-or-source
16727 func_xform ()
16728 {
16729 func_xform_result=${1%.*}.lo
16730 }
16731
16732 # func_arith arithmetic-term...
16733 func_arith ()
16734 {
16735 func_arith_result=$(( $* ))
16736 }
16737
16738 # func_len string
16739 # STRING may not start with a hyphen.
16740 func_len ()
16741 {
16742 func_len_result=${#1}
16743 }
16744
16745 _LT_EOF
16746 ;;
16747 *) # Bourne compatible functions.
16748 cat << \_LT_EOF >> "$cfgfile"
16749
16750 # func_dirname file append nondir_replacement
16751 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16752 # otherwise set result to NONDIR_REPLACEMENT.
16753 func_dirname ()
16754 {
16755 # Extract subdirectory from the argument.
16756 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16757 if test "X$func_dirname_result" = "X${1}"; then
16758 func_dirname_result="${3}"
16759 else
16760 func_dirname_result="$func_dirname_result${2}"
16761 fi
16762 }
16763
16764 # func_basename file
16765 func_basename ()
16766 {
16767 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16768 }
16769
16770
16771 # func_stripname prefix suffix name
16772 # strip PREFIX and SUFFIX off of NAME.
16773 # PREFIX and SUFFIX must not contain globbing or regex special
16774 # characters, hashes, percent signs, but SUFFIX may contain a leading
16775 # dot (in which case that matches only a dot).
16776 # func_strip_suffix prefix name
16777 func_stripname ()
16778 {
16779 case ${2} in
16780 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16781 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16782 esac
16783 }
16784
16785 # sed scripts:
16786 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16787 my_sed_long_arg='1s/^-[^=]*=//'
16788
16789 # func_opt_split
16790 func_opt_split ()
16791 {
16792 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16793 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16794 }
16795
16796 # func_lo2o object
16797 func_lo2o ()
16798 {
16799 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16800 }
16801
16802 # func_xform libobj-or-source
16803 func_xform ()
16804 {
16805 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16806 }
16807
16808 # func_arith arithmetic-term...
16809 func_arith ()
16810 {
16811 func_arith_result=`expr "$@"`
16812 }
16813
16814 # func_len string
16815 # STRING may not start with a hyphen.
16816 func_len ()
16817 {
16818 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16819 }
16820
16821 _LT_EOF
16822 esac
16823
16824 case $lt_shell_append in
16825 yes)
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+=\$2"
16833 }
16834 _LT_EOF
16835 ;;
16836 *)
16837 cat << \_LT_EOF >> "$cfgfile"
16838
16839 # func_append var value
16840 # Append VALUE to the end of shell variable VAR.
16841 func_append ()
16842 {
16843 eval "$1=\$$1\$2"
16844 }
16845
16846 _LT_EOF
16847 ;;
16848 esac
16849
16850
16851 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16852 || (rm -f "$cfgfile"; exit 1)
16853
16854 mv -f "$cfgfile" "$ofile" ||
16855 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16856 chmod +x "$ofile"
16857
16858
16859 cat <<_LT_EOF >> "$ofile"
16860
16861 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16862
16863 # The linker used to build libraries.
16864 LD=$lt_LD_CXX
16865
16866 # How to create reloadable object files.
16867 reload_flag=$lt_reload_flag_CXX
16868 reload_cmds=$lt_reload_cmds_CXX
16869
16870 # Commands used to build an old-style archive.
16871 old_archive_cmds=$lt_old_archive_cmds_CXX
16872
16873 # A language specific compiler.
16874 CC=$lt_compiler_CXX
16875
16876 # Is the compiler the GNU compiler?
16877 with_gcc=$GCC_CXX
16878
16879 # Compiler flag to turn off builtin functions.
16880 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16881
16882 # How to pass a linker flag through the compiler.
16883 wl=$lt_lt_prog_compiler_wl_CXX
16884
16885 # Additional compiler flags for building library objects.
16886 pic_flag=$lt_lt_prog_compiler_pic_CXX
16887
16888 # Compiler flag to prevent dynamic linking.
16889 link_static_flag=$lt_lt_prog_compiler_static_CXX
16890
16891 # Does compiler simultaneously support -c and -o options?
16892 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16893
16894 # Whether or not to add -lc for building shared libraries.
16895 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16896
16897 # Whether or not to disallow shared libs when runtime libs are static.
16898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16899
16900 # Compiler flag to allow reflexive dlopens.
16901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16902
16903 # Compiler flag to generate shared objects directly from archives.
16904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16905
16906 # Whether the compiler copes with passing no objects directly.
16907 compiler_needs_object=$lt_compiler_needs_object_CXX
16908
16909 # Create an old-style archive from a shared archive.
16910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16911
16912 # Create a temporary old-style archive to link instead of a shared archive.
16913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16914
16915 # Commands used to build a shared archive.
16916 archive_cmds=$lt_archive_cmds_CXX
16917 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16918
16919 # Commands used to build a loadable module if different from building
16920 # a shared archive.
16921 module_cmds=$lt_module_cmds_CXX
16922 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16923
16924 # Whether we are building with GNU ld or not.
16925 with_gnu_ld=$lt_with_gnu_ld_CXX
16926
16927 # Flag that allows shared libraries with undefined symbols to be built.
16928 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16929
16930 # Flag that enforces no undefined symbols.
16931 no_undefined_flag=$lt_no_undefined_flag_CXX
16932
16933 # Flag to hardcode \$libdir into a binary during linking.
16934 # This must work even if \$libdir does not exist
16935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16936
16937 # If ld is used when linking, flag to hardcode \$libdir into a binary
16938 # during linking. This must work even if \$libdir does not exist.
16939 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16940
16941 # Whether we need a single "-rpath" flag with a separated argument.
16942 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16943
16944 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16945 # DIR into the resulting binary.
16946 hardcode_direct=$hardcode_direct_CXX
16947
16948 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16949 # DIR into the resulting binary and the resulting library dependency is
16950 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16951 # library is relocated.
16952 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16953
16954 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16955 # into the resulting binary.
16956 hardcode_minus_L=$hardcode_minus_L_CXX
16957
16958 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16959 # into the resulting binary.
16960 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16961
16962 # Set to "yes" if building a shared library automatically hardcodes DIR
16963 # into the library and all subsequent libraries and executables linked
16964 # against it.
16965 hardcode_automatic=$hardcode_automatic_CXX
16966
16967 # Set to yes if linker adds runtime paths of dependent libraries
16968 # to runtime path list.
16969 inherit_rpath=$inherit_rpath_CXX
16970
16971 # Whether libtool must link a program against all its dependency libraries.
16972 link_all_deplibs=$link_all_deplibs_CXX
16973
16974 # Fix the shell variable \$srcfile for the compiler.
16975 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16976
16977 # Set to "yes" if exported symbols are required.
16978 always_export_symbols=$always_export_symbols_CXX
16979
16980 # The commands to list exported symbols.
16981 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16982
16983 # Symbols that should not be listed in the preloaded symbols.
16984 exclude_expsyms=$lt_exclude_expsyms_CXX
16985
16986 # Symbols that must always be exported.
16987 include_expsyms=$lt_include_expsyms_CXX
16988
16989 # Commands necessary for linking programs (against libraries) with templates.
16990 prelink_cmds=$lt_prelink_cmds_CXX
16991
16992 # Specify filename containing input files.
16993 file_list_spec=$lt_file_list_spec_CXX
16994
16995 # How to hardcode a shared library path into an executable.
16996 hardcode_action=$hardcode_action_CXX
16997
16998 # The directories searched by this compiler when creating a shared library.
16999 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17000
17001 # Dependencies to place before and after the objects being linked to
17002 # create a shared library.
17003 predep_objects=$lt_predep_objects_CXX
17004 postdep_objects=$lt_postdep_objects_CXX
17005 predeps=$lt_predeps_CXX
17006 postdeps=$lt_postdeps_CXX
17007
17008 # The library search path used internally by the compiler when linking
17009 # a shared library.
17010 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17011
17012 # ### END LIBTOOL TAG CONFIG: CXX
17013 _LT_EOF
17014
17015 ;;
17016 "interception/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 "sanitizer_common/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 "asan/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 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
17050 s!`test -f '$<' || echo '$(srcdir)/'`!!
17051 _EOF
17052 sed -f vpsed$$ $ac_file > tmp$$
17053 mv tmp$$ $ac_file
17054 rm vpsed$$
17055 echo 'MULTISUBDIR =' >> $ac_file
17056 ml_norecursion=yes
17057 . ${multi_basedir}/config-ml.in
17058 { ml_norecursion=; unset ml_norecursion;}
17059 ;;
17060
17061 esac
17062 done # for ac_tag
17063
17064
17065 as_fn_exit 0
17066 _ACEOF
17067 ac_clean_files=$ac_clean_files_save
17068
17069 test $ac_write_fail = 0 ||
17070 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17071
17072
17073 # configure is writing to config.log, and then calls config.status.
17074 # config.status does its own redirection, appending to config.log.
17075 # Unfortunately, on DOS this fails, as config.log is still kept open
17076 # by configure, so config.status won't be able to write to it; its
17077 # output is simply discarded. So we exec the FD to /dev/null,
17078 # effectively closing config.log, so it can be properly (re)opened and
17079 # appended to by config.status. When coming back to configure, we
17080 # need to make the FD available again.
17081 if test "$no_create" != yes; then
17082 ac_cs_success=:
17083 ac_config_status_args=
17084 test "$silent" = yes &&
17085 ac_config_status_args="$ac_config_status_args --quiet"
17086 exec 5>/dev/null
17087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17088 exec 5>>config.log
17089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17090 # would make configure fail if this is the last instruction.
17091 $ac_cs_success || as_fn_exit $?
17092 fi
17093 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17095 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17096 fi
17097
17098