Daily bump.
[official-gcc.git] / libsanitizer / configure
blob1d9ae59be6798555b7020a66e0f622ff8bf752cc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
5 # Report bugs to <libsanitizer>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
278 $0: your system, including any error possibly output before
279 $0: this message. Then install a modern shell, or manually
280 $0: run the script under such a shell if you do have one."
282 exit 1
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
300 { eval $1=; unset $1;}
302 as_unset=as_fn_unset
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
309 return $1
310 } # as_fn_set_status
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
353 /^X\(\/\/\)$/{
354 s//\1/
357 /^X\(\/\).*/{
358 s//\1/
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 } # as_fn_mkdir_p
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
386 eval $1+=\$2
388 else
389 as_fn_append ()
391 eval $1=\$$1\$2
393 fi # as_fn_append
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
403 as_val=$(( $* ))
405 else
406 as_fn_arith ()
408 as_val=`expr "$@" || test $? -eq 1`
410 fi # as_fn_arith
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
457 /^X\/\(\/\/\)$/{
458 s//\1/
461 /^X\/\(\/\).*/{
462 s//\1/
465 s/.*/./; q'`
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
488 :lineno
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
520 ECHO_N='-n';;
521 esac
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526 else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
544 else
545 as_ln_s='cp -pR'
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552 else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566 SHELL=${CONFIG_SHELL-/bin/sh}
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 # Initializations.
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
589 # Identity of this package.
590 PACKAGE_NAME='package-unused'
591 PACKAGE_TARNAME='package-unused'
592 PACKAGE_VERSION='version-unused'
593 PACKAGE_STRING='package-unused version-unused'
594 PACKAGE_BUGREPORT='libsanitizer'
595 PACKAGE_URL=''
597 ac_unique_file="include/sanitizer/common_interface_defs.h"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 EXTRA_CXXFLAGS
639 EXTRA_CFLAGS
640 EXTRA_ASFLAGS
641 get_gcc_base_ver
642 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS
643 TSAN_TARGET_DEPENDENT_OBJECTS
644 LIBBACKTRACE_SUPPORTED_FALSE
645 LIBBACKTRACE_SUPPORTED_TRUE
646 RPC_DEFS
647 BACKTRACE_SUPPORTS_THREADS
648 BACKTRACE_USES_MALLOC
649 ALLOC_FILE
650 VIEW_FILE
651 BACKTRACE_SUPPORTED
652 FORMAT_FILE
653 SANITIZER_SUPPORTED_FALSE
654 SANITIZER_SUPPORTED_TRUE
655 USING_MAC_INTERPOSE_FALSE
656 USING_MAC_INTERPOSE_TRUE
657 link_liblsan
658 link_libubsan
659 link_libtsan
660 link_libhwasan
661 link_libasan
662 HWASAN_SUPPORTED_FALSE
663 HWASAN_SUPPORTED_TRUE
664 LSAN_SUPPORTED_FALSE
665 LSAN_SUPPORTED_TRUE
666 TSAN_SUPPORTED_FALSE
667 TSAN_SUPPORTED_TRUE
668 enable_static
669 enable_shared
670 CXXCPP
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
677 OBJDUMP
678 LN_S
680 ac_ct_DUMPBIN
681 DUMPBIN
683 FGREP
685 LIBTOOL
686 RANLIB
687 am__fastdepCCAS_FALSE
688 am__fastdepCCAS_TRUE
689 CCASDEPMODE
690 CCASFLAGS
691 CCAS
692 am__fastdepCXX_FALSE
693 am__fastdepCXX_TRUE
694 CXXDEPMODE
695 ac_ct_CXX
696 CXXFLAGS
698 toolexeclibdir
699 toolexecdir
700 MAINT
701 MAINTAINER_MODE_FALSE
702 MAINTAINER_MODE_TRUE
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 am__nodep
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 LIBSTDCXX_RAW_CXX_LDFLAGS
741 LIBSTDCXX_RAW_CXX_CXXFLAGS
742 target_noncanonical
743 target_os
744 target_vendor
745 target_cpu
746 target
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 EGREP
756 GREP
758 OBJEXT
759 EXEEXT
760 ac_ct_CC
761 CPPFLAGS
762 LDFLAGS
763 CFLAGS
765 multi_basedir
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 enable_multilib
808 enable_version_specific_runtime_libs
809 enable_dependency_tracking
810 enable_silent_rules
811 enable_maintainer_mode
812 with_toolexeclibdir
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_gnu_ld
818 enable_libtool_lock
819 with_gcc_major_version_only
820 enable_cet
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
832 CXXFLAGS
834 CCAS
835 CCASFLAGS
836 CXXCPP'
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
887 ac_prev=
888 ac_dashdash=
889 for ac_option
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
898 case $ac_option in
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *=) ac_optarg= ;;
901 *) ac_optarg=yes ;;
902 esac
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
908 ac_dashdash=yes ;;
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
927 --config-cache | -C)
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 esac
1245 done
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1329 /^X\(\/\/\)$/{
1330 s//\1/
1333 /^X\(\/\).*/{
1334 s//\1/
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1342 else
1343 ac_srcdir_defaulted=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1371 # Report the --help message.
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1384 Defaults for the options are specified in brackets.
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1408 For better control, use the options below.
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430 _ACEOF
1432 cat <<\_ACEOF
1434 Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439 System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 --target=TARGET configure for building compilers for TARGET [HOST]
1443 _ACEOF
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of package-unused version-unused:";;
1449 esac
1450 cat <<\_ACEOF
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-multilib build many library versions (default)
1457 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-silent-rules less verbose build output (undo: "make V=1")
1463 --disable-silent-rules verbose build output (undo: "make V=0")
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --enable-cet enable Intel CET in target libraries [default=auto]
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-toolexeclibdir=DIR
1478 install libraries built with a cross compiler within
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CPP C preprocessor
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1497 CCAS assembler compiler command (defaults to CC)
1498 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1499 CXXCPP C++ preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to <libsanitizer>.
1505 _ACEOF
1506 ac_status=$?
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 package-unused configure version-unused
1568 generated by GNU Autoconf 2.69
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
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_compile") 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
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_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1612 ac_retval=1
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_c_try_cpp LINENO
1620 # ----------------------
1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_cpp ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } > conftest.i && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=1
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1654 } # ac_fn_c_try_cpp
1656 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1659 # the include files in INCLUDES and setting the cache variable VAR
1660 # accordingly.
1661 ac_fn_c_check_header_mongrel ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if eval \${$3+:} false; then :
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1670 eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 else
1674 # Is the header compilable?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1676 $as_echo_n "checking $2 usability... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683 ac_header_compiler=yes
1684 else
1685 ac_header_compiler=no
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1689 $as_echo "$ac_header_compiler" >&6; }
1691 # Is the header present?
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1693 $as_echo_n "checking $2 presence... " >&6; }
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_cpp "$LINENO"; then :
1699 ac_header_preproc=yes
1700 else
1701 ac_header_preproc=no
1703 rm -f conftest.err conftest.i conftest.$ac_ext
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1705 $as_echo "$ac_header_preproc" >&6; }
1707 # So? What about this header?
1708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1709 yes:no: )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1711 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 no:yes:* )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1717 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1719 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1721 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1723 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 ( $as_echo "## --------------------------- ##
1727 ## Report this to libsanitizer ##
1728 ## --------------------------- ##"
1729 ) | sed "s/^/$as_me: WARNING: /" >&2
1731 esac
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 eval "$3=\$ac_header_compiler"
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 } # ac_fn_c_check_header_mongrel
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1751 ac_fn_c_try_run ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765 { { case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_try") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; }; }; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: program exited with status $ac_status" >&5
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=$ac_status
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1787 } # ac_fn_c_try_run
1789 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists and can be compiled using the include files in
1792 # INCLUDES, setting the cache variable VAR accordingly.
1793 ac_fn_c_check_header_compile ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1800 else
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 eval "$3=yes"
1808 else
1809 eval "$3=no"
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 } # ac_fn_c_check_header_compile
1820 # ac_fn_cxx_try_compile LINENO
1821 # ----------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_cxx_try_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext
1827 if { { ac_try="$ac_compile"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1856 } # ac_fn_cxx_try_compile
1858 # ac_fn_c_try_link LINENO
1859 # -----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_link ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 test -x conftest$ac_exeext
1886 }; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 ac_retval=1
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1902 } # ac_fn_c_try_link
1904 # ac_fn_c_check_func LINENO FUNC VAR
1905 # ----------------------------------
1906 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1907 ac_fn_c_check_func ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1919 #define $2 innocuous_$2
1921 /* System header to define __stub macros and hopefully few prototypes,
1922 which can conflict with char $2 (); below.
1923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1924 <limits.h> exists even on freestanding compilers. */
1926 #ifdef __STDC__
1927 # include <limits.h>
1928 #else
1929 # include <assert.h>
1930 #endif
1932 #undef $2
1934 /* Override any GCC internal prototype to avoid an error.
1935 Use char because int might match the return type of a GCC
1936 builtin and then its argument prototype would still apply. */
1937 #ifdef __cplusplus
1938 extern "C"
1939 #endif
1940 char $2 ();
1941 /* The GNU C library defines this for functions which it implements
1942 to always fail with ENOSYS. Some functions are actually named
1943 something starting with __ and the normal name is an alias. */
1944 #if defined __stub_$2 || defined __stub___$2
1945 choke me
1946 #endif
1949 main ()
1951 return $2 ();
1953 return 0;
1955 _ACEOF
1956 if ac_fn_c_try_link "$LINENO"; then :
1957 eval "$3=yes"
1958 else
1959 eval "$3=no"
1961 rm -f core conftest.err conftest.$ac_objext \
1962 conftest$ac_exeext conftest.$ac_ext
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 } # ac_fn_c_check_func
1971 # ac_fn_cxx_try_cpp LINENO
1972 # ------------------------
1973 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1974 ac_fn_cxx_try_cpp ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if { { ac_try="$ac_cpp conftest.$ac_ext"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } > conftest.i && {
1993 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1994 test ! -s conftest.err
1995 }; then :
1996 ac_retval=0
1997 else
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 ac_retval=1
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_cxx_try_cpp
2008 # ac_fn_cxx_try_link LINENO
2009 # -------------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_cxx_try_link ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 rm -f conftest.$ac_objext conftest$ac_exeext
2015 if { { ac_try="$ac_link"
2016 case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>conftest.err
2023 ac_status=$?
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && {
2031 test -z "$ac_cxx_werror_flag" ||
2032 test ! -s conftest.err
2033 } && test -s conftest$ac_exeext && {
2034 test "$cross_compiling" = yes ||
2035 test -x conftest$ac_exeext
2036 }; then :
2037 ac_retval=0
2038 else
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 ac_retval=1
2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2046 # interfere with the next link command; also delete a directory that is
2047 # left behind by Apple's compiler. We do this before executing the actions.
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_cxx_try_link
2054 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055 # --------------------------------------------
2056 # Tries to find the compile-time value of EXPR in a program that includes
2057 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2058 # computed
2059 ac_fn_c_compute_int ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if test "$cross_compiling" = yes; then
2063 # Depending upon the size, compute the lo and hi bounds.
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 static int test_array [1 - 2 * !(($2) >= 0)];
2071 test_array [0] = 0;
2072 return test_array [0];
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_lo=0 ac_mid=0
2080 while :; do
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 test_array [0] = 0;
2089 return test_array [0];
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=$ac_mid; break
2097 else
2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099 if test $ac_lo -le $ac_mid; then
2100 ac_lo= ac_hi=
2101 break
2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 done
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2112 main ()
2114 static int test_array [1 - 2 * !(($2) < 0)];
2115 test_array [0] = 0;
2116 return test_array [0];
2119 return 0;
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 ac_hi=-1 ac_mid=-1
2124 while :; do
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 main ()
2131 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2132 test_array [0] = 0;
2133 return test_array [0];
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_lo=$ac_mid; break
2141 else
2142 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2143 if test $ac_mid -le $ac_hi; then
2144 ac_lo= ac_hi=
2145 break
2147 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 done
2151 else
2152 ac_lo= ac_hi=
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 # Binary search between lo and hi bounds.
2158 while test "x$ac_lo" != "x$ac_hi"; do
2159 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2167 test_array [0] = 0;
2168 return test_array [0];
2171 return 0;
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=$ac_mid
2176 else
2177 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 done
2181 case $ac_lo in #((
2182 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2183 '') ac_retval=1 ;;
2184 esac
2185 else
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2189 static long int longval () { return $2; }
2190 static unsigned long int ulongval () { return $2; }
2191 #include <stdio.h>
2192 #include <stdlib.h>
2194 main ()
2197 FILE *f = fopen ("conftest.val", "w");
2198 if (! f)
2199 return 1;
2200 if (($2) < 0)
2202 long int i = longval ();
2203 if (i != ($2))
2204 return 1;
2205 fprintf (f, "%ld", i);
2207 else
2209 unsigned long int i = ulongval ();
2210 if (i != ($2))
2211 return 1;
2212 fprintf (f, "%lu", i);
2214 /* Do not output a trailing newline, as this causes \r\n confusion
2215 on some platforms. */
2216 return ferror (f) || fclose (f) != 0;
2219 return 0;
2221 _ACEOF
2222 if ac_fn_c_try_run "$LINENO"; then :
2223 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2224 else
2225 ac_retval=1
2227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2228 conftest.$ac_objext conftest.beam conftest.$ac_ext
2229 rm -f conftest.val
2232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233 as_fn_set_status $ac_retval
2235 } # ac_fn_c_compute_int
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=no"
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2254 main ()
2256 if (sizeof ($2))
2257 return 0;
2259 return 0;
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof (($2)))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2277 else
2278 eval "$3=yes"
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_type
2291 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2292 # ---------------------------------------------
2293 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2294 # accordingly.
2295 ac_fn_c_check_decl ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 as_decl_name=`echo $2|sed 's/ *(.*//'`
2299 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2301 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2302 if eval \${$3+:} false; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2309 main ()
2311 #ifndef $as_decl_name
2312 #ifdef __cplusplus
2313 (void) $as_decl_use;
2314 #else
2315 (void) $as_decl_name;
2316 #endif
2317 #endif
2320 return 0;
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 eval "$3=yes"
2325 else
2326 eval "$3=no"
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 eval ac_res=\$$3
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335 } # ac_fn_c_check_decl
2336 cat >config.log <<_ACEOF
2337 This file contains any messages produced by compilers while
2338 running configure, to aid debugging if configure makes a mistake.
2340 It was created by package-unused $as_me version-unused, which was
2341 generated by GNU Autoconf 2.69. Invocation command line was
2343 $ $0 $@
2345 _ACEOF
2346 exec 5>>config.log
2348 cat <<_ASUNAME
2349 ## --------- ##
2350 ## Platform. ##
2351 ## --------- ##
2353 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2354 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2355 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2356 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2357 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2359 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2360 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2362 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2363 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2364 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2365 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2366 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2367 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2368 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2370 _ASUNAME
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 $as_echo "PATH: $as_dir"
2378 done
2379 IFS=$as_save_IFS
2381 } >&5
2383 cat >&5 <<_ACEOF
2386 ## ----------- ##
2387 ## Core tests. ##
2388 ## ----------- ##
2390 _ACEOF
2393 # Keep a trace of the command line.
2394 # Strip out --no-create and --no-recursion so they do not pile up.
2395 # Strip out --silent because we don't want to record it for future runs.
2396 # Also quote any args containing shell meta-characters.
2397 # Make two passes to allow for proper duplicate-argument suppression.
2398 ac_configure_args=
2399 ac_configure_args0=
2400 ac_configure_args1=
2401 ac_must_keep_next=false
2402 for ac_pass in 1 2
2404 for ac_arg
2406 case $ac_arg in
2407 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2409 | -silent | --silent | --silen | --sile | --sil)
2410 continue ;;
2411 *\'*)
2412 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2413 esac
2414 case $ac_pass in
2415 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2417 as_fn_append ac_configure_args1 " '$ac_arg'"
2418 if test $ac_must_keep_next = true; then
2419 ac_must_keep_next=false # Got value, back to normal.
2420 else
2421 case $ac_arg in
2422 *=* | --config-cache | -C | -disable-* | --disable-* \
2423 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2424 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2425 | -with-* | --with-* | -without-* | --without-* | --x)
2426 case "$ac_configure_args0 " in
2427 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2428 esac
2430 -* ) ac_must_keep_next=true ;;
2431 esac
2433 as_fn_append ac_configure_args " '$ac_arg'"
2435 esac
2436 done
2437 done
2438 { ac_configure_args0=; unset ac_configure_args0;}
2439 { ac_configure_args1=; unset ac_configure_args1;}
2441 # When interrupted or exit'd, cleanup temporary files, and complete
2442 # config.log. We remove comments because anyway the quotes in there
2443 # would cause problems or look ugly.
2444 # WARNING: Use '\'' to represent an apostrophe within the trap.
2445 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2446 trap 'exit_status=$?
2447 # Save into config.log some information that might help in debugging.
2449 echo
2451 $as_echo "## ---------------- ##
2452 ## Cache variables. ##
2453 ## ---------------- ##"
2454 echo
2455 # The following way of writing the cache mishandles newlines in values,
2457 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2458 eval ac_val=\$$ac_var
2459 case $ac_val in #(
2460 *${as_nl}*)
2461 case $ac_var in #(
2462 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2464 esac
2465 case $ac_var in #(
2466 _ | IFS | as_nl) ;; #(
2467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2468 *) { eval $ac_var=; unset $ac_var;} ;;
2469 esac ;;
2470 esac
2471 done
2472 (set) 2>&1 |
2473 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2474 *${as_nl}ac_space=\ *)
2475 sed -n \
2476 "s/'\''/'\''\\\\'\'''\''/g;
2477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2478 ;; #(
2480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2482 esac |
2483 sort
2485 echo
2487 $as_echo "## ----------------- ##
2488 ## Output variables. ##
2489 ## ----------------- ##"
2490 echo
2491 for ac_var in $ac_subst_vars
2493 eval ac_val=\$$ac_var
2494 case $ac_val in
2495 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 esac
2497 $as_echo "$ac_var='\''$ac_val'\''"
2498 done | sort
2499 echo
2501 if test -n "$ac_subst_files"; then
2502 $as_echo "## ------------------- ##
2503 ## File substitutions. ##
2504 ## ------------------- ##"
2505 echo
2506 for ac_var in $ac_subst_files
2508 eval ac_val=\$$ac_var
2509 case $ac_val in
2510 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2511 esac
2512 $as_echo "$ac_var='\''$ac_val'\''"
2513 done | sort
2514 echo
2517 if test -s confdefs.h; then
2518 $as_echo "## ----------- ##
2519 ## confdefs.h. ##
2520 ## ----------- ##"
2521 echo
2522 cat confdefs.h
2523 echo
2525 test "$ac_signal" != 0 &&
2526 $as_echo "$as_me: caught signal $ac_signal"
2527 $as_echo "$as_me: exit $exit_status"
2528 } >&5
2529 rm -f core *.core core.conftest.* &&
2530 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2531 exit $exit_status
2533 for ac_signal in 1 2 13 15; do
2534 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2535 done
2536 ac_signal=0
2538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2539 rm -f -r conftest* confdefs.h
2541 $as_echo "/* confdefs.h */" > confdefs.h
2543 # Predefined preprocessor variables.
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_NAME "$PACKAGE_NAME"
2547 _ACEOF
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2551 _ACEOF
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2555 _ACEOF
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_STRING "$PACKAGE_STRING"
2559 _ACEOF
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2563 _ACEOF
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_URL "$PACKAGE_URL"
2567 _ACEOF
2570 # Let the site file select an alternate cache file if it wants to.
2571 # Prefer an explicitly selected file to automatically selected ones.
2572 ac_site_file1=NONE
2573 ac_site_file2=NONE
2574 if test -n "$CONFIG_SITE"; then
2575 # We do not want a PATH search for config.site.
2576 case $CONFIG_SITE in #((
2577 -*) ac_site_file1=./$CONFIG_SITE;;
2578 */*) ac_site_file1=$CONFIG_SITE;;
2579 *) ac_site_file1=./$CONFIG_SITE;;
2580 esac
2581 elif test "x$prefix" != xNONE; then
2582 ac_site_file1=$prefix/share/config.site
2583 ac_site_file2=$prefix/etc/config.site
2584 else
2585 ac_site_file1=$ac_default_prefix/share/config.site
2586 ac_site_file2=$ac_default_prefix/etc/config.site
2588 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2590 test "x$ac_site_file" = xNONE && continue
2591 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2593 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2594 sed 's/^/| /' "$ac_site_file" >&5
2595 . "$ac_site_file" \
2596 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 as_fn_error $? "failed to load site script $ac_site_file
2599 See \`config.log' for more details" "$LINENO" 5; }
2601 done
2603 if test -r "$cache_file"; then
2604 # Some versions of bash will fail to source /dev/null (special files
2605 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2606 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2608 $as_echo "$as_me: loading cache $cache_file" >&6;}
2609 case $cache_file in
2610 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2611 *) . "./$cache_file";;
2612 esac
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2616 $as_echo "$as_me: creating cache $cache_file" >&6;}
2617 >$cache_file
2620 # Check that the precious variables saved in the cache have kept the same
2621 # value.
2622 ac_cache_corrupted=false
2623 for ac_var in $ac_precious_vars; do
2624 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2625 eval ac_new_set=\$ac_env_${ac_var}_set
2626 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2627 eval ac_new_val=\$ac_env_${ac_var}_value
2628 case $ac_old_set,$ac_new_set in
2629 set,)
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2631 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2632 ac_cache_corrupted=: ;;
2633 ,set)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2637 ,);;
2639 if test "x$ac_old_val" != "x$ac_new_val"; then
2640 # differences in whitespace do not lead to failure.
2641 ac_old_val_w=`echo x $ac_old_val`
2642 ac_new_val_w=`echo x $ac_new_val`
2643 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2645 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2646 ac_cache_corrupted=:
2647 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2649 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2650 eval $ac_var=\$ac_old_val
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2653 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2655 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2656 fi;;
2657 esac
2658 # Pass precious variables to config.status.
2659 if test "$ac_new_set" = set; then
2660 case $ac_new_val in
2661 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2662 *) ac_arg=$ac_var=$ac_new_val ;;
2663 esac
2664 case " $ac_configure_args " in
2665 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2666 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2667 esac
2669 done
2670 if $ac_cache_corrupted; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2674 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2675 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2677 ## -------------------- ##
2678 ## Main body of script. ##
2679 ## -------------------- ##
2681 ac_ext=c
2682 ac_cpp='$CPP $CPPFLAGS'
2683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 # Default to --enable-multilib
2694 # Check whether --enable-multilib was given.
2695 if test "${enable_multilib+set}" = set; then :
2696 enableval=$enable_multilib; case "$enableval" in
2697 yes) multilib=yes ;;
2698 no) multilib=no ;;
2699 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2700 esac
2701 else
2702 multilib=yes
2706 # We may get other options which we leave undocumented:
2707 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2708 # See config-ml.in if you want the gory details.
2710 if test "$srcdir" = "."; then
2711 if test "$with_target_subdir" != "."; then
2712 multi_basedir="$srcdir/$with_multisrctop../.."
2713 else
2714 multi_basedir="$srcdir/$with_multisrctop.."
2716 else
2717 multi_basedir="$srcdir/.."
2721 # Even if the default multilib is not a cross compilation,
2722 # it may be that some of the other multilibs are.
2723 if test $cross_compiling = no && test $multilib = yes \
2724 && test "x${with_multisubdir}" != x ; then
2725 cross_compiling=maybe
2728 ac_config_commands="$ac_config_commands default-1"
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2732 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2733 # Check whether --enable-version-specific-runtime-libs was given.
2734 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2735 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2736 yes) version_specific_libs=yes ;;
2737 no) version_specific_libs=no ;;
2738 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2739 esac
2740 else
2741 version_specific_libs=no
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2745 $as_echo "$version_specific_libs" >&6; }
2747 ac_aux_dir=
2748 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2749 if test -f "$ac_dir/install-sh"; then
2750 ac_aux_dir=$ac_dir
2751 ac_install_sh="$ac_aux_dir/install-sh -c"
2752 break
2753 elif test -f "$ac_dir/install.sh"; then
2754 ac_aux_dir=$ac_dir
2755 ac_install_sh="$ac_aux_dir/install.sh -c"
2756 break
2757 elif test -f "$ac_dir/shtool"; then
2758 ac_aux_dir=$ac_dir
2759 ac_install_sh="$ac_aux_dir/shtool install -c"
2760 break
2762 done
2763 if test -z "$ac_aux_dir"; then
2764 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2767 # These three variables are undocumented and unsupported,
2768 # and are intended to be withdrawn in a future Autoconf release.
2769 # They can cause serious problems if a builder's source tree is in a directory
2770 # whose full name contains unusual characters.
2771 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2772 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2773 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2776 # Expand $ac_aux_dir to an absolute path.
2777 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if ${ac_cv_prog_CC+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2806 done
2807 done
2808 IFS=$as_save_IFS
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2823 if test -z "$ac_cv_prog_CC"; then
2824 ac_ct_CC=$CC
2825 # Extract the first word of "gcc", so it can be a program name with args.
2826 set dummy gcc; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$ac_ct_CC"; then
2833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_ac_ct_CC="gcc"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2848 IFS=$as_save_IFS
2852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2853 if test -n "$ac_ct_CC"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2855 $as_echo "$ac_ct_CC" >&6; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2861 if test "x$ac_ct_CC" = x; then
2862 CC=""
2863 else
2864 case $cross_compiling:$ac_tool_warned in
2865 yes:)
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868 ac_tool_warned=yes ;;
2869 esac
2870 CC=$ac_ct_CC
2872 else
2873 CC="$ac_cv_prog_CC"
2876 if test -z "$CC"; then
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2879 set dummy ${ac_tool_prefix}cc; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if ${ac_cv_prog_CC+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC="${ac_tool_prefix}cc"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2899 done
2900 done
2901 IFS=$as_save_IFS
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908 $as_echo "$CC" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2917 if test -z "$CC"; then
2918 # Extract the first word of "cc", so it can be a program name with args.
2919 set dummy cc; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_CC+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 ac_prog_rejected=no
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2937 ac_prog_rejected=yes
2938 continue
2940 ac_cv_prog_CC="cc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2944 done
2945 done
2946 IFS=$as_save_IFS
2948 if test $ac_prog_rejected = yes; then
2949 # We found a bogon in the path, so make sure we never use it.
2950 set dummy $ac_cv_prog_CC
2951 shift
2952 if test $# != 0; then
2953 # We chose a different compiler from the bogus one.
2954 # However, it has the same basename, so the bogon will be chosen
2955 # first if we set CC to just the basename; use the full file name.
2956 shift
2957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965 $as_echo "$CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 for ac_prog in cl.exe
2977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2978 set dummy $ac_tool_prefix$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 ${ac_cv_prog_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2998 done
2999 done
3000 IFS=$as_save_IFS
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007 $as_echo "$CC" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3014 test -n "$CC" && break
3015 done
3017 if test -z "$CC"; then
3018 ac_ct_CC=$CC
3019 for ac_prog in cl.exe
3021 # Extract the first word of "$ac_prog", so it can be a program name with args.
3022 set dummy $ac_prog; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_ac_ct_CC="$ac_prog"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3042 done
3043 done
3044 IFS=$as_save_IFS
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051 $as_echo "$ac_ct_CC" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3058 test -n "$ac_ct_CC" && break
3059 done
3061 if test "x$ac_ct_CC" = x; then
3062 CC=""
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070 CC=$ac_ct_CC
3077 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079 as_fn_error $? "no acceptable C compiler found in \$PATH
3080 See \`config.log' for more details" "$LINENO" 5; }
3082 # Provide some information about the compiler.
3083 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3084 set X $ac_compile
3085 ac_compiler=$2
3086 for ac_option in --version -v -V -qversion; do
3087 { { ac_try="$ac_compiler $ac_option >&5"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3095 ac_status=$?
3096 if test -s conftest.err; then
3097 sed '10a\
3098 ... rest of stderr output deleted ...
3099 10q' conftest.err >conftest.er1
3100 cat conftest.er1 >&5
3102 rm -f conftest.er1 conftest.err
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }
3105 done
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3111 main ()
3115 return 0;
3117 _ACEOF
3118 ac_clean_files_save=$ac_clean_files
3119 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3120 # Try to create an executable without -o first, disregard a.out.
3121 # It will help us diagnose broken compilers, and finding out an intuition
3122 # of exeext.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3124 $as_echo_n "checking whether the C compiler works... " >&6; }
3125 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3127 # The possible output files:
3128 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3130 ac_rmfiles=
3131 for ac_file in $ac_files
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3135 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3136 esac
3137 done
3138 rm -f $ac_rmfiles
3140 if { { ac_try="$ac_link_default"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_link_default") 2>&5
3148 ac_status=$?
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }; then :
3151 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3152 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3153 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3154 # so that the user can short-circuit this test for compilers unknown to
3155 # Autoconf.
3156 for ac_file in $ac_files ''
3158 test -f "$ac_file" || continue
3159 case $ac_file in
3160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3162 [ab].out )
3163 # We found the default executable, but exeext='' is most
3164 # certainly right.
3165 break;;
3166 *.* )
3167 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3168 then :; else
3169 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 # We set ac_cv_exeext here because the later test for it is not
3172 # safe: cross compilers may not add the suffix if given an `-o'
3173 # argument, so we may need to know it at that point already.
3174 # Even if this section looks crufty: it has the advantage of
3175 # actually working.
3176 break;;
3178 break;;
3179 esac
3180 done
3181 test "$ac_cv_exeext" = no && ac_cv_exeext=
3183 else
3184 ac_file=''
3186 if test -z "$ac_file"; then :
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 $as_echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194 as_fn_error 77 "C compiler cannot create executables
3195 See \`config.log' for more details" "$LINENO" 5; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198 $as_echo "yes" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3201 $as_echo_n "checking for C compiler default output file name... " >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3203 $as_echo "$ac_file" >&6; }
3204 ac_exeext=$ac_cv_exeext
3206 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3207 ac_clean_files=$ac_clean_files_save
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3209 $as_echo_n "checking for suffix of executables... " >&6; }
3210 if { { ac_try="$ac_link"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3223 # work properly (i.e., refer to `conftest.exe'), while it won't with
3224 # `rm'.
3225 for ac_file in conftest.exe conftest conftest.*; do
3226 test -f "$ac_file" || continue
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3229 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 break;;
3231 * ) break;;
3232 esac
3233 done
3234 else
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details" "$LINENO" 5; }
3240 rm -f conftest conftest$ac_cv_exeext
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3242 $as_echo "$ac_cv_exeext" >&6; }
3244 rm -f conftest.$ac_ext
3245 EXEEXT=$ac_cv_exeext
3246 ac_exeext=$EXEEXT
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249 #include <stdio.h>
3251 main ()
3253 FILE *f = fopen ("conftest.out", "w");
3254 return ferror (f) || fclose (f) != 0;
3257 return 0;
3259 _ACEOF
3260 ac_clean_files="$ac_clean_files conftest.out"
3261 # Check that the compiler produces executables we can run. If not, either
3262 # the compiler is broken, or we cross compile.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3264 $as_echo_n "checking whether we are cross compiling... " >&6; }
3265 if test "$cross_compiling" != yes; then
3266 { { ac_try="$ac_link"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }
3277 if { ac_try='./conftest$ac_cv_exeext'
3278 { { case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_try") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; }; then
3288 cross_compiling=no
3289 else
3290 if test "$cross_compiling" = maybe; then
3291 cross_compiling=yes
3292 else
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "cannot run C compiled programs.
3296 If you meant to cross compile, use \`--host'.
3297 See \`config.log' for more details" "$LINENO" 5; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3302 $as_echo "$cross_compiling" >&6; }
3304 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3305 ac_clean_files=$ac_clean_files_save
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3307 $as_echo_n "checking for suffix of object files... " >&6; }
3308 if ${ac_cv_objext+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3315 main ()
3319 return 0;
3321 _ACEOF
3322 rm -f conftest.o conftest.obj
3323 if { { ac_try="$ac_compile"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_compile") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 for ac_file in conftest.o conftest.obj conftest.*; do
3335 test -f "$ac_file" || continue;
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3339 break;;
3340 esac
3341 done
3342 else
3343 $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error $? "cannot compute suffix of object files: cannot compile
3349 See \`config.log' for more details" "$LINENO" 5; }
3351 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3354 $as_echo "$ac_cv_objext" >&6; }
3355 OBJEXT=$ac_cv_objext
3356 ac_objext=$OBJEXT
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3358 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3359 if ${ac_cv_c_compiler_gnu+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3366 main ()
3368 #ifndef __GNUC__
3369 choke me
3370 #endif
3373 return 0;
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377 ac_compiler_gnu=yes
3378 else
3379 ac_compiler_gnu=no
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3386 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3387 if test $ac_compiler_gnu = yes; then
3388 GCC=yes
3389 else
3390 GCC=
3392 ac_test_CFLAGS=${CFLAGS+set}
3393 ac_save_CFLAGS=$CFLAGS
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3395 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3396 if ${ac_cv_prog_cc_g+:} false; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 ac_save_c_werror_flag=$ac_c_werror_flag
3400 ac_c_werror_flag=yes
3401 ac_cv_prog_cc_g=no
3402 CFLAGS="-g"
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3407 main ()
3411 return 0;
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_g=yes
3416 else
3417 CFLAGS=""
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3422 main ()
3426 return 0;
3428 _ACEOF
3429 if ac_fn_c_try_compile "$LINENO"; then :
3431 else
3432 ac_c_werror_flag=$ac_save_c_werror_flag
3433 CFLAGS="-g"
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3438 main ()
3442 return 0;
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_cv_prog_cc_g=yes
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3456 $as_echo "$ac_cv_prog_cc_g" >&6; }
3457 if test "$ac_test_CFLAGS" = set; then
3458 CFLAGS=$ac_save_CFLAGS
3459 elif test $ac_cv_prog_cc_g = yes; then
3460 if test "$GCC" = yes; then
3461 CFLAGS="-g -O2"
3462 else
3463 CFLAGS="-g"
3465 else
3466 if test "$GCC" = yes; then
3467 CFLAGS="-O2"
3468 else
3469 CFLAGS=
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3473 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3474 if ${ac_cv_prog_cc_c89+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 ac_cv_prog_cc_c89=no
3478 ac_save_CC=$CC
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 #include <stdarg.h>
3482 #include <stdio.h>
3483 struct stat;
3484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3485 struct buf { int x; };
3486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487 static char *e (p, i)
3488 char **p;
3489 int i;
3491 return p[i];
3493 static char *f (char * (*g) (char **, int), char **p, ...)
3495 char *s;
3496 va_list v;
3497 va_start (v,p);
3498 s = g (p, va_arg (v,int));
3499 va_end (v);
3500 return s;
3503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3504 function prototypes and stuff, but not '\xHH' hex character constants.
3505 These don't provoke an error unfortunately, instead are silently treated
3506 as 'x'. The following induces an error, until -std is added to get
3507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3508 array size at least. It's necessary to write '\x00'==0 to get something
3509 that's true only with -std. */
3510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3512 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3513 inside strings and character constants. */
3514 #define FOO(x) 'x'
3515 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3517 int test (int i, double x);
3518 struct s1 {int (*f) (int a);};
3519 struct s2 {int (*f) (double a);};
3520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521 int argc;
3522 char **argv;
3524 main ()
3526 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3528 return 0;
3530 _ACEOF
3531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3532 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3534 CC="$ac_save_CC $ac_arg"
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_cv_prog_cc_c89=$ac_arg
3538 rm -f core conftest.err conftest.$ac_objext
3539 test "x$ac_cv_prog_cc_c89" != "xno" && break
3540 done
3541 rm -f conftest.$ac_ext
3542 CC=$ac_save_CC
3545 # AC_CACHE_VAL
3546 case "x$ac_cv_prog_cc_c89" in
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 $as_echo "none needed" >&6; } ;;
3550 xno)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552 $as_echo "unsupported" >&6; } ;;
3554 CC="$CC $ac_cv_prog_cc_c89"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3556 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3557 esac
3558 if test "x$ac_cv_prog_cc_c89" != xno; then :
3562 ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3574 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3575 if ${am_cv_prog_cc_c_o+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3582 main ()
3586 return 0;
3588 _ACEOF
3589 # Make sure it works both with $CC and with simple cc.
3590 # Following AC_PROG_CC_C_O, we do the test twice because some
3591 # compilers refuse to overwrite an existing .o file with -o,
3592 # though they will create one.
3593 am_cv_prog_cc_c_o=yes
3594 for am_i in 1 2; do
3595 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3596 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } \
3600 && test -f conftest2.$ac_objext; then
3601 : OK
3602 else
3603 am_cv_prog_cc_c_o=no
3604 break
3606 done
3607 rm -f core conftest*
3608 unset am_i
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3611 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3612 if test "$am_cv_prog_cc_c_o" != yes; then
3613 # Losing compiler, so override with the script.
3614 # FIXME: It is wrong to rewrite CC.
3615 # But if we don't then we get into trouble of one sort or another.
3616 # A longer-term fix would be to have automake use am__CC in this case,
3617 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3618 CC="$am_aux_dir/compile $CC"
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3634 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3635 # On Suns, sometimes $CPP names a directory.
3636 if test -n "$CPP" && test -d "$CPP"; then
3637 CPP=
3639 if test -z "$CPP"; then
3640 if ${ac_cv_prog_CPP+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 # Double quotes because CPP needs to be expanded
3644 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3646 ac_preproc_ok=false
3647 for ac_c_preproc_warn_flag in '' yes
3649 # Use a header file that comes with gcc, so configuring glibc
3650 # with a fresh cross-compiler works.
3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652 # <limits.h> exists even on freestanding compilers.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp. "Syntax error" is here to catch this case.
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657 #ifdef __STDC__
3658 # include <limits.h>
3659 #else
3660 # include <assert.h>
3661 #endif
3662 Syntax error
3663 _ACEOF
3664 if ac_fn_c_try_cpp "$LINENO"; then :
3666 else
3667 # Broken: fails on valid input.
3668 continue
3670 rm -f conftest.err conftest.i conftest.$ac_ext
3672 # OK, works on sane cases. Now check whether nonexistent headers
3673 # can be detected and how.
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676 #include <ac_nonexistent.h>
3677 _ACEOF
3678 if ac_fn_c_try_cpp "$LINENO"; then :
3679 # Broken: success on invalid input.
3680 continue
3681 else
3682 # Passes both tests.
3683 ac_preproc_ok=:
3684 break
3686 rm -f conftest.err conftest.i conftest.$ac_ext
3688 done
3689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3690 rm -f conftest.i conftest.err conftest.$ac_ext
3691 if $ac_preproc_ok; then :
3692 break
3695 done
3696 ac_cv_prog_CPP=$CPP
3699 CPP=$ac_cv_prog_CPP
3700 else
3701 ac_cv_prog_CPP=$CPP
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3704 $as_echo "$CPP" >&6; }
3705 ac_preproc_ok=false
3706 for ac_c_preproc_warn_flag in '' yes
3708 # Use a header file that comes with gcc, so configuring glibc
3709 # with a fresh cross-compiler works.
3710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3711 # <limits.h> exists even on freestanding compilers.
3712 # On the NeXT, cc -E runs the code through the compiler's parser,
3713 # not just through cpp. "Syntax error" is here to catch this case.
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3716 #ifdef __STDC__
3717 # include <limits.h>
3718 #else
3719 # include <assert.h>
3720 #endif
3721 Syntax error
3722 _ACEOF
3723 if ac_fn_c_try_cpp "$LINENO"; then :
3725 else
3726 # Broken: fails on valid input.
3727 continue
3729 rm -f conftest.err conftest.i conftest.$ac_ext
3731 # OK, works on sane cases. Now check whether nonexistent headers
3732 # can be detected and how.
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 #include <ac_nonexistent.h>
3736 _ACEOF
3737 if ac_fn_c_try_cpp "$LINENO"; then :
3738 # Broken: success on invalid input.
3739 continue
3740 else
3741 # Passes both tests.
3742 ac_preproc_ok=:
3743 break
3745 rm -f conftest.err conftest.i conftest.$ac_ext
3747 done
3748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3749 rm -f conftest.i conftest.err conftest.$ac_ext
3750 if $ac_preproc_ok; then :
3752 else
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3756 See \`config.log' for more details" "$LINENO" 5; }
3759 ac_ext=c
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3767 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3768 if ${ac_cv_path_GREP+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 if test -z "$GREP"; then
3772 ac_path_GREP_found=false
3773 # Loop through the user's path and test for each of PROGNAME-LIST
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_prog in grep ggrep; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3782 as_fn_executable_p "$ac_path_GREP" || continue
3783 # Check for GNU ac_path_GREP and select it if it is found.
3784 # Check for GNU $ac_path_GREP
3785 case `"$ac_path_GREP" --version 2>&1` in
3786 *GNU*)
3787 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3789 ac_count=0
3790 $as_echo_n 0123456789 >"conftest.in"
3791 while :
3793 cat "conftest.in" "conftest.in" >"conftest.tmp"
3794 mv "conftest.tmp" "conftest.in"
3795 cp "conftest.in" "conftest.nl"
3796 $as_echo 'GREP' >> "conftest.nl"
3797 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799 as_fn_arith $ac_count + 1 && ac_count=$as_val
3800 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3801 # Best one so far, save it but keep looking for a better one
3802 ac_cv_path_GREP="$ac_path_GREP"
3803 ac_path_GREP_max=$ac_count
3805 # 10*(2^10) chars as input seems more than enough
3806 test $ac_count -gt 10 && break
3807 done
3808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 esac
3811 $ac_path_GREP_found && break 3
3812 done
3813 done
3814 done
3815 IFS=$as_save_IFS
3816 if test -z "$ac_cv_path_GREP"; then
3817 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3819 else
3820 ac_cv_path_GREP=$GREP
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3825 $as_echo "$ac_cv_path_GREP" >&6; }
3826 GREP="$ac_cv_path_GREP"
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3830 $as_echo_n "checking for egrep... " >&6; }
3831 if ${ac_cv_path_EGREP+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3835 then ac_cv_path_EGREP="$GREP -E"
3836 else
3837 if test -z "$EGREP"; then
3838 ac_path_EGREP_found=false
3839 # Loop through the user's path and test for each of PROGNAME-LIST
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 for ac_prog in egrep; do
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3848 as_fn_executable_p "$ac_path_EGREP" || continue
3849 # Check for GNU ac_path_EGREP and select it if it is found.
3850 # Check for GNU $ac_path_EGREP
3851 case `"$ac_path_EGREP" --version 2>&1` in
3852 *GNU*)
3853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3855 ac_count=0
3856 $as_echo_n 0123456789 >"conftest.in"
3857 while :
3859 cat "conftest.in" "conftest.in" >"conftest.tmp"
3860 mv "conftest.tmp" "conftest.in"
3861 cp "conftest.in" "conftest.nl"
3862 $as_echo 'EGREP' >> "conftest.nl"
3863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3865 as_fn_arith $ac_count + 1 && ac_count=$as_val
3866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3867 # Best one so far, save it but keep looking for a better one
3868 ac_cv_path_EGREP="$ac_path_EGREP"
3869 ac_path_EGREP_max=$ac_count
3871 # 10*(2^10) chars as input seems more than enough
3872 test $ac_count -gt 10 && break
3873 done
3874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3875 esac
3877 $ac_path_EGREP_found && break 3
3878 done
3879 done
3880 done
3881 IFS=$as_save_IFS
3882 if test -z "$ac_cv_path_EGREP"; then
3883 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3885 else
3886 ac_cv_path_EGREP=$EGREP
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3892 $as_echo "$ac_cv_path_EGREP" >&6; }
3893 EGREP="$ac_cv_path_EGREP"
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3897 $as_echo_n "checking for ANSI C header files... " >&6; }
3898 if ${ac_cv_header_stdc+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <stdlib.h>
3904 #include <stdarg.h>
3905 #include <string.h>
3906 #include <float.h>
3909 main ()
3913 return 0;
3915 _ACEOF
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917 ac_cv_header_stdc=yes
3918 else
3919 ac_cv_header_stdc=no
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 if test $ac_cv_header_stdc = yes; then
3924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #include <string.h>
3929 _ACEOF
3930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931 $EGREP "memchr" >/dev/null 2>&1; then :
3933 else
3934 ac_cv_header_stdc=no
3936 rm -f conftest*
3940 if test $ac_cv_header_stdc = yes; then
3941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944 #include <stdlib.h>
3946 _ACEOF
3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948 $EGREP "free" >/dev/null 2>&1; then :
3950 else
3951 ac_cv_header_stdc=no
3953 rm -f conftest*
3957 if test $ac_cv_header_stdc = yes; then
3958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3959 if test "$cross_compiling" = yes; then :
3961 else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964 #include <ctype.h>
3965 #include <stdlib.h>
3966 #if ((' ' & 0x0FF) == 0x020)
3967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3969 #else
3970 # define ISLOWER(c) \
3971 (('a' <= (c) && (c) <= 'i') \
3972 || ('j' <= (c) && (c) <= 'r') \
3973 || ('s' <= (c) && (c) <= 'z'))
3974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3975 #endif
3977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3979 main ()
3981 int i;
3982 for (i = 0; i < 256; i++)
3983 if (XOR (islower (i), ISLOWER (i))
3984 || toupper (i) != TOUPPER (i))
3985 return 2;
3986 return 0;
3988 _ACEOF
3989 if ac_fn_c_try_run "$LINENO"; then :
3991 else
3992 ac_cv_header_stdc=no
3994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3995 conftest.$ac_objext conftest.beam conftest.$ac_ext
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4001 $as_echo "$ac_cv_header_stdc" >&6; }
4002 if test $ac_cv_header_stdc = yes; then
4004 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
4011 do :
4012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4016 cat >>confdefs.h <<_ACEOF
4017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4018 _ACEOF
4022 done
4026 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4027 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4028 MINIX=yes
4029 else
4030 MINIX=
4034 if test "$MINIX" = yes; then
4036 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4039 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4042 $as_echo "#define _MINIX 1" >>confdefs.h
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4048 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4049 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4055 # define __EXTENSIONS__ 1
4056 $ac_includes_default
4058 main ()
4062 return 0;
4064 _ACEOF
4065 if ac_fn_c_try_compile "$LINENO"; then :
4066 ac_cv_safe_to_define___extensions__=yes
4067 else
4068 ac_cv_safe_to_define___extensions__=no
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4073 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4074 test $ac_cv_safe_to_define___extensions__ = yes &&
4075 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4077 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4079 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4081 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4083 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4087 # Do not delete or change the following two lines. For why, see
4088 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4089 # Make sure we can run config.sub.
4090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4091 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4094 $as_echo_n "checking build system type... " >&6; }
4095 if ${ac_cv_build+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 ac_build_alias=$build_alias
4099 test "x$ac_build_alias" = x &&
4100 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4101 test "x$ac_build_alias" = x &&
4102 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4104 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4108 $as_echo "$ac_cv_build" >&6; }
4109 case $ac_cv_build in
4110 *-*-*) ;;
4111 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4112 esac
4113 build=$ac_cv_build
4114 ac_save_IFS=$IFS; IFS='-'
4115 set x $ac_cv_build
4116 shift
4117 build_cpu=$1
4118 build_vendor=$2
4119 shift; shift
4120 # Remember, the first character of IFS is used to create $*,
4121 # except with old shells:
4122 build_os=$*
4123 IFS=$ac_save_IFS
4124 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4128 $as_echo_n "checking host system type... " >&6; }
4129 if ${ac_cv_host+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test "x$host_alias" = x; then
4133 ac_cv_host=$ac_cv_build
4134 else
4135 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4136 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4141 $as_echo "$ac_cv_host" >&6; }
4142 case $ac_cv_host in
4143 *-*-*) ;;
4144 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4145 esac
4146 host=$ac_cv_host
4147 ac_save_IFS=$IFS; IFS='-'
4148 set x $ac_cv_host
4149 shift
4150 host_cpu=$1
4151 host_vendor=$2
4152 shift; shift
4153 # Remember, the first character of IFS is used to create $*,
4154 # except with old shells:
4155 host_os=$*
4156 IFS=$ac_save_IFS
4157 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4161 $as_echo_n "checking target system type... " >&6; }
4162 if ${ac_cv_target+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 if test "x$target_alias" = x; then
4166 ac_cv_target=$ac_cv_host
4167 else
4168 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4169 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4174 $as_echo "$ac_cv_target" >&6; }
4175 case $ac_cv_target in
4176 *-*-*) ;;
4177 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4178 esac
4179 target=$ac_cv_target
4180 ac_save_IFS=$IFS; IFS='-'
4181 set x $ac_cv_target
4182 shift
4183 target_cpu=$1
4184 target_vendor=$2
4185 shift; shift
4186 # Remember, the first character of IFS is used to create $*,
4187 # except with old shells:
4188 target_os=$*
4189 IFS=$ac_save_IFS
4190 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4193 # The aliases save the names the user supplied, while $host etc.
4194 # will get canonicalized.
4195 test -n "$target_alias" &&
4196 test "$program_prefix$program_suffix$program_transform_name" = \
4197 NONENONEs,x,x, &&
4198 program_prefix=${target_alias}-
4200 target_alias=${target_alias-$host_alias}
4202 case ${build_alias} in
4203 "") build_noncanonical=${build} ;;
4204 *) build_noncanonical=${build_alias} ;;
4205 esac
4207 case ${host_alias} in
4208 "") host_noncanonical=${build_noncanonical} ;;
4209 *) host_noncanonical=${host_alias} ;;
4210 esac
4212 case ${target_alias} in
4213 "") target_noncanonical=${host_noncanonical} ;;
4214 *) target_noncanonical=${target_alias} ;;
4215 esac
4221 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4222 -I\$(top_builddir)/../libstdc++-v3/include \
4223 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4224 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4225 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4226 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4231 am__api_version='1.15'
4233 # Find a good install program. We prefer a C program (faster),
4234 # so one script is as good as another. But avoid the broken or
4235 # incompatible versions:
4236 # SysV /etc/install, /usr/sbin/install
4237 # SunOS /usr/etc/install
4238 # IRIX /sbin/install
4239 # AIX /bin/install
4240 # AmigaOS /C/install, which installs bootblocks on floppy discs
4241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4244 # OS/2's system install, which has a completely different semantic
4245 # ./install, which can be erroneously created by make from ./install.sh.
4246 # Reject install programs that cannot install multiple files.
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4248 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4249 if test -z "$INSTALL"; then
4250 if ${ac_cv_path_install+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 # Account for people who put trailing slashes in PATH elements.
4259 case $as_dir/ in #((
4260 ./ | .// | /[cC]/* | \
4261 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4262 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4263 /usr/ucb/* ) ;;
4265 # OSF1 and SCO ODT 3.0 have their own names for install.
4266 # Don't use installbsd from OSF since it installs stuff as root
4267 # by default.
4268 for ac_prog in ginstall scoinst install; do
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4271 if test $ac_prog = install &&
4272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4273 # AIX install. It has an incompatible calling convention.
4275 elif test $ac_prog = install &&
4276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4277 # program-specific install script used by HP pwplus--don't use.
4279 else
4280 rm -rf conftest.one conftest.two conftest.dir
4281 echo one > conftest.one
4282 echo two > conftest.two
4283 mkdir conftest.dir
4284 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4285 test -s conftest.one && test -s conftest.two &&
4286 test -s conftest.dir/conftest.one &&
4287 test -s conftest.dir/conftest.two
4288 then
4289 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4290 break 3
4294 done
4295 done
4297 esac
4299 done
4300 IFS=$as_save_IFS
4302 rm -rf conftest.one conftest.two conftest.dir
4305 if test "${ac_cv_path_install+set}" = set; then
4306 INSTALL=$ac_cv_path_install
4307 else
4308 # As a last resort, use the slow shell script. Don't cache a
4309 # value for INSTALL within a source directory, because that will
4310 # break other packages using the cache if that directory is
4311 # removed, or if the value is a relative name.
4312 INSTALL=$ac_install_sh
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4316 $as_echo "$INSTALL" >&6; }
4318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4319 # It thinks the first close brace ends the variable substitution.
4320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4327 $as_echo_n "checking whether build environment is sane... " >&6; }
4328 # Reject unsafe characters in $srcdir or the absolute working directory
4329 # name. Accept space and tab only in the latter.
4330 am_lf='
4332 case `pwd` in
4333 *[\\\"\#\$\&\'\`$am_lf]*)
4334 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4335 esac
4336 case $srcdir in
4337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4338 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4339 esac
4341 # Do 'set' in a subshell so we don't clobber the current shell's
4342 # arguments. Must try -L first in case configure is actually a
4343 # symlink; some systems play weird games with the mod time of symlinks
4344 # (eg FreeBSD returns the mod time of the symlink's containing
4345 # directory).
4346 if (
4347 am_has_slept=no
4348 for am_try in 1 2; do
4349 echo "timestamp, slept: $am_has_slept" > conftest.file
4350 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4351 if test "$*" = "X"; then
4352 # -L didn't work.
4353 set X `ls -t "$srcdir/configure" conftest.file`
4355 if test "$*" != "X $srcdir/configure conftest.file" \
4356 && test "$*" != "X conftest.file $srcdir/configure"; then
4358 # If neither matched, then we have a broken ls. This can happen
4359 # if, for instance, CONFIG_SHELL is bash and it inherits a
4360 # broken ls alias from the environment. This has actually
4361 # happened. Such a system could not be considered "sane".
4362 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4363 alias in your environment" "$LINENO" 5
4365 if test "$2" = conftest.file || test $am_try -eq 2; then
4366 break
4368 # Just in case.
4369 sleep 1
4370 am_has_slept=yes
4371 done
4372 test "$2" = conftest.file
4374 then
4375 # Ok.
4377 else
4378 as_fn_error $? "newly created file is older than distributed files!
4379 Check your system clock" "$LINENO" 5
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4382 $as_echo "yes" >&6; }
4383 # If we didn't sleep, we still need to ensure time stamps of config.status and
4384 # generated files are strictly newer.
4385 am_sleep_pid=
4386 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4387 ( sleep 1 ) &
4388 am_sleep_pid=$!
4391 rm -f conftest.file
4393 test "$program_prefix" != NONE &&
4394 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4395 # Use a double $ so make ignores it.
4396 test "$program_suffix" != NONE &&
4397 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4398 # Double any \ or $.
4399 # By default was `s,x,x', remove it if useless.
4400 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4401 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4403 if test x"${MISSING+set}" != xset; then
4404 case $am_aux_dir in
4405 *\ * | *\ *)
4406 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4408 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4409 esac
4411 # Use eval to expand $SHELL
4412 if eval "$MISSING --is-lightweight"; then
4413 am_missing_run="$MISSING "
4414 else
4415 am_missing_run=
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4417 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4420 if test x"${install_sh+set}" != xset; then
4421 case $am_aux_dir in
4422 *\ * | *\ *)
4423 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4425 install_sh="\${SHELL} $am_aux_dir/install-sh"
4426 esac
4429 # Installed binaries are usually stripped using 'strip' when the user
4430 # run "make install-strip". However 'strip' might not be the right
4431 # tool to use in cross-compilation environments, therefore Automake
4432 # will honor the 'STRIP' environment variable to overrule this program.
4433 if test "$cross_compiling" != no; then
4434 if test -n "$ac_tool_prefix"; then
4435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4436 set dummy ${ac_tool_prefix}strip; ac_word=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if ${ac_cv_prog_STRIP+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$STRIP"; then
4443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4456 done
4457 done
4458 IFS=$as_save_IFS
4462 STRIP=$ac_cv_prog_STRIP
4463 if test -n "$STRIP"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4465 $as_echo "$STRIP" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4473 if test -z "$ac_cv_prog_STRIP"; then
4474 ac_ct_STRIP=$STRIP
4475 # Extract the first word of "strip", so it can be a program name with args.
4476 set dummy strip; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -n "$ac_ct_STRIP"; then
4483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_prog_ac_ct_STRIP="strip"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4496 done
4497 done
4498 IFS=$as_save_IFS
4502 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4503 if test -n "$ac_ct_STRIP"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4505 $as_echo "$ac_ct_STRIP" >&6; }
4506 else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4511 if test "x$ac_ct_STRIP" = x; then
4512 STRIP=":"
4513 else
4514 case $cross_compiling:$ac_tool_warned in
4515 yes:)
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4518 ac_tool_warned=yes ;;
4519 esac
4520 STRIP=$ac_ct_STRIP
4522 else
4523 STRIP="$ac_cv_prog_STRIP"
4527 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4530 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4531 if test -z "$MKDIR_P"; then
4532 if ${ac_cv_path_mkdir+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_prog in mkdir gmkdir; do
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4543 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4544 'mkdir (GNU coreutils) '* | \
4545 'mkdir (coreutils) '* | \
4546 'mkdir (fileutils) '4.1*)
4547 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4548 break 3;;
4549 esac
4550 done
4551 done
4552 done
4553 IFS=$as_save_IFS
4557 test -d ./--version && rmdir ./--version
4558 if test "${ac_cv_path_mkdir+set}" = set; then
4559 MKDIR_P="$ac_cv_path_mkdir -p"
4560 else
4561 # As a last resort, use the slow shell script. Don't cache a
4562 # value for MKDIR_P within a source directory, because that will
4563 # break other packages using the cache if that directory is
4564 # removed, or if the value is a relative name.
4565 MKDIR_P="$ac_install_sh -d"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4569 $as_echo "$MKDIR_P" >&6; }
4571 for ac_prog in gawk mawk nawk awk
4573 # Extract the first word of "$ac_prog", so it can be a program name with args.
4574 set dummy $ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_AWK+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$AWK"; then
4581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_AWK="$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 AWK=$ac_cv_prog_AWK
4601 if test -n "$AWK"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4603 $as_echo "$AWK" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4610 test -n "$AWK" && break
4611 done
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4614 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4615 set x ${MAKE-make}
4616 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4617 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 cat >conftest.make <<\_ACEOF
4621 SHELL = /bin/sh
4622 all:
4623 @echo '@@@%%%=$(MAKE)=@@@%%%'
4624 _ACEOF
4625 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4627 *@@@%%%=?*=@@@%%%*)
4628 eval ac_cv_prog_make_${ac_make}_set=yes;;
4630 eval ac_cv_prog_make_${ac_make}_set=no;;
4631 esac
4632 rm -f conftest.make
4634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4636 $as_echo "yes" >&6; }
4637 SET_MAKE=
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 SET_MAKE="MAKE=${MAKE-make}"
4644 rm -rf .tst 2>/dev/null
4645 mkdir .tst 2>/dev/null
4646 if test -d .tst; then
4647 am__leading_dot=.
4648 else
4649 am__leading_dot=_
4651 rmdir .tst 2>/dev/null
4653 DEPDIR="${am__leading_dot}deps"
4655 ac_config_commands="$ac_config_commands depfiles"
4658 am_make=${MAKE-make}
4659 cat > confinc << 'END'
4660 am__doit:
4661 @echo this is the am__doit target
4662 .PHONY: am__doit
4664 # If we don't find an include directive, just comment out the code.
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4666 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4667 am__include="#"
4668 am__quote=
4669 _am_result=none
4670 # First try GNU make style include.
4671 echo "include confinc" > confmf
4672 # Ignore all kinds of additional output from 'make'.
4673 case `$am_make -s -f confmf 2> /dev/null` in #(
4674 *the\ am__doit\ target*)
4675 am__include=include
4676 am__quote=
4677 _am_result=GNU
4679 esac
4680 # Now try BSD make style include.
4681 if test "$am__include" = "#"; then
4682 echo '.include "confinc"' > confmf
4683 case `$am_make -s -f confmf 2> /dev/null` in #(
4684 *the\ am__doit\ target*)
4685 am__include=.include
4686 am__quote="\""
4687 _am_result=BSD
4689 esac
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4694 $as_echo "$_am_result" >&6; }
4695 rm -f confinc confmf
4697 # Check whether --enable-dependency-tracking was given.
4698 if test "${enable_dependency_tracking+set}" = set; then :
4699 enableval=$enable_dependency_tracking;
4702 if test "x$enable_dependency_tracking" != xno; then
4703 am_depcomp="$ac_aux_dir/depcomp"
4704 AMDEPBACKSLASH='\'
4705 am__nodep='_no'
4707 if test "x$enable_dependency_tracking" != xno; then
4708 AMDEP_TRUE=
4709 AMDEP_FALSE='#'
4710 else
4711 AMDEP_TRUE='#'
4712 AMDEP_FALSE=
4716 # Check whether --enable-silent-rules was given.
4717 if test "${enable_silent_rules+set}" = set; then :
4718 enableval=$enable_silent_rules;
4721 case $enable_silent_rules in # (((
4722 yes) AM_DEFAULT_VERBOSITY=0;;
4723 no) AM_DEFAULT_VERBOSITY=1;;
4724 *) AM_DEFAULT_VERBOSITY=1;;
4725 esac
4726 am_make=${MAKE-make}
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4728 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4729 if ${am_cv_make_support_nested_variables+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if $as_echo 'TRUE=$(BAR$(V))
4733 BAR0=false
4734 BAR1=true
4736 am__doit:
4737 @$(TRUE)
4738 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4739 am_cv_make_support_nested_variables=yes
4740 else
4741 am_cv_make_support_nested_variables=no
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4745 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4746 if test $am_cv_make_support_nested_variables = yes; then
4747 AM_V='$(V)'
4748 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4749 else
4750 AM_V=$AM_DEFAULT_VERBOSITY
4751 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4753 AM_BACKSLASH='\'
4755 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4756 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4757 # is not polluted with repeated "-I."
4758 am__isrc=' -I$(srcdir)'
4759 # test to see if srcdir already configured
4760 if test -f $srcdir/config.status; then
4761 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4765 # test whether we have cygpath
4766 if test -z "$CYGPATH_W"; then
4767 if (cygpath --version) >/dev/null 2>/dev/null; then
4768 CYGPATH_W='cygpath -w'
4769 else
4770 CYGPATH_W=echo
4775 # Define the identity of the package.
4776 PACKAGE='package-unused'
4777 VERSION='version-unused'
4780 cat >>confdefs.h <<_ACEOF
4781 #define PACKAGE "$PACKAGE"
4782 _ACEOF
4785 cat >>confdefs.h <<_ACEOF
4786 #define VERSION "$VERSION"
4787 _ACEOF
4789 # Some tools Automake needs.
4791 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4794 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4797 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4800 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4803 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4805 # For better backward compatibility. To be removed once Automake 1.9.x
4806 # dies out for good. For more background, see:
4807 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4808 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4809 mkdir_p='$(MKDIR_P)'
4811 # We need awk for the "check" target (and possibly the TAP driver). The
4812 # system "awk" is bad on some platforms.
4813 # Always define AMTAR for backward compatibility. Yes, it's still used
4814 # in the wild :-( We should find a proper way to deprecate it ...
4815 AMTAR='$${TAR-tar}'
4818 # We'll loop over all known methods to create a tar archive until one works.
4819 _am_tools='gnutar pax cpio none'
4821 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4827 depcc="$CC" am_compiler_list=
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4830 $as_echo_n "checking dependency style of $depcc... " >&6; }
4831 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4835 # We make a subdir and do the tests there. Otherwise we can end up
4836 # making bogus files that we don't know about and never remove. For
4837 # instance it was reported that on HP-UX the gcc test will end up
4838 # making a dummy file named 'D' -- because '-MD' means "put the output
4839 # in D".
4840 rm -rf conftest.dir
4841 mkdir conftest.dir
4842 # Copy depcomp to subdir because otherwise we won't find it if we're
4843 # using a relative directory.
4844 cp "$am_depcomp" conftest.dir
4845 cd conftest.dir
4846 # We will build objects and dependencies in a subdirectory because
4847 # it helps to detect inapplicable dependency modes. For instance
4848 # both Tru64's cc and ICC support -MD to output dependencies as a
4849 # side effect of compilation, but ICC will put the dependencies in
4850 # the current directory while Tru64 will put them in the object
4851 # directory.
4852 mkdir sub
4854 am_cv_CC_dependencies_compiler_type=none
4855 if test "$am_compiler_list" = ""; then
4856 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4858 am__universal=false
4859 case " $depcc " in #(
4860 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4861 esac
4863 for depmode in $am_compiler_list; do
4864 # Setup a source with many dependencies, because some compilers
4865 # like to wrap large dependency lists on column 80 (with \), and
4866 # we should not choose a depcomp mode which is confused by this.
4868 # We need to recreate these files for each test, as the compiler may
4869 # overwrite some of them when testing with obscure command lines.
4870 # This happens at least with the AIX C compiler.
4871 : > sub/conftest.c
4872 for i in 1 2 3 4 5 6; do
4873 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4874 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4875 # Solaris 10 /bin/sh.
4876 echo '/* dummy */' > sub/conftst$i.h
4877 done
4878 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4880 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4881 # mode. It turns out that the SunPro C++ compiler does not properly
4882 # handle '-M -o', and we need to detect this. Also, some Intel
4883 # versions had trouble with output in subdirs.
4884 am__obj=sub/conftest.${OBJEXT-o}
4885 am__minus_obj="-o $am__obj"
4886 case $depmode in
4887 gcc)
4888 # This depmode causes a compiler race in universal mode.
4889 test "$am__universal" = false || continue
4891 nosideeffect)
4892 # After this tag, mechanisms are not by side-effect, so they'll
4893 # only be used when explicitly requested.
4894 if test "x$enable_dependency_tracking" = xyes; then
4895 continue
4896 else
4897 break
4900 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4901 # This compiler won't grok '-c -o', but also, the minuso test has
4902 # not run yet. These depmodes are late enough in the game, and
4903 # so weak that their functioning should not be impacted.
4904 am__obj=conftest.${OBJEXT-o}
4905 am__minus_obj=
4907 none) break ;;
4908 esac
4909 if depmode=$depmode \
4910 source=sub/conftest.c object=$am__obj \
4911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4912 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4913 >/dev/null 2>conftest.err &&
4914 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4916 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4918 # icc doesn't choke on unknown options, it will just issue warnings
4919 # or remarks (even with -Werror). So we grep stderr for any message
4920 # that says an option was ignored or not supported.
4921 # When given -MP, icc 7.0 and 7.1 complain thusly:
4922 # icc: Command line warning: ignoring option '-M'; no argument required
4923 # The diagnosis changed in icc 8.0:
4924 # icc: Command line remark: option '-MP' not supported
4925 if (grep 'ignoring option' conftest.err ||
4926 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4927 am_cv_CC_dependencies_compiler_type=$depmode
4928 break
4931 done
4933 cd ..
4934 rm -rf conftest.dir
4935 else
4936 am_cv_CC_dependencies_compiler_type=none
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4942 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4945 test "x$enable_dependency_tracking" != xno \
4946 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4947 am__fastdepCC_TRUE=
4948 am__fastdepCC_FALSE='#'
4949 else
4950 am__fastdepCC_TRUE='#'
4951 am__fastdepCC_FALSE=
4956 # POSIX will say in a future version that running "rm -f" with no argument
4957 # is OK; and we want to be able to make that assumption in our Makefile
4958 # recipes. So use an aggressive probe to check that the usage we want is
4959 # actually supported "in the wild" to an acceptable degree.
4960 # See automake bug#10828.
4961 # To make any issue more visible, cause the running configure to be aborted
4962 # by default if the 'rm' program in use doesn't match our expectations; the
4963 # user can still override this though.
4964 if rm -f && rm -fr && rm -rf; then : OK; else
4965 cat >&2 <<'END'
4966 Oops!
4968 Your 'rm' program seems unable to run without file operands specified
4969 on the command line, even when the '-f' option is present. This is contrary
4970 to the behaviour of most rm programs out there, and not conforming with
4971 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4973 Please tell bug-automake@gnu.org about your system, including the value
4974 of your $PATH and any error possibly output before this message. This
4975 can help us improve future automake versions.
4978 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4979 echo 'Configuration will proceed anyway, since you have set the' >&2
4980 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4981 echo >&2
4982 else
4983 cat >&2 <<'END'
4984 Aborting the configuration process, to ensure you take notice of the issue.
4986 You can download and install GNU coreutils to get an 'rm' implementation
4987 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4989 If you want to complete the configuration process using your problematic
4990 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4991 to "yes", and re-run configure.
4994 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5000 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5001 # Check whether --enable-maintainer-mode was given.
5002 if test "${enable_maintainer_mode+set}" = set; then :
5003 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5004 else
5005 USE_MAINTAINER_MODE=no
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5009 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5010 if test $USE_MAINTAINER_MODE = yes; then
5011 MAINTAINER_MODE_TRUE=
5012 MAINTAINER_MODE_FALSE='#'
5013 else
5014 MAINTAINER_MODE_TRUE='#'
5015 MAINTAINER_MODE_FALSE=
5018 MAINT=$MAINTAINER_MODE_TRUE
5023 # Check whether --with-toolexeclibdir was given.
5024 if test "${with_toolexeclibdir+set}" = set; then :
5025 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5029 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5031 esac
5032 else
5033 with_toolexeclibdir=no
5038 # Calculate toolexeclibdir
5039 # Also toolexecdir, though it's only used in toolexeclibdir
5040 case ${version_specific_libs} in
5041 yes)
5042 # Need the gcc compiler version to know where to install libraries
5043 # and header files if --enable-version-specific-runtime-libs option
5044 # is selected.
5045 toolexecdir='$(libdir)/gcc/$(target_alias)'
5046 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5049 if test -n "$with_cross_host" &&
5050 test x"$with_cross_host" != x"no"; then
5051 # Install a library built with a cross compiler in tooldir, not libdir.
5052 toolexecdir='$(exec_prefix)/$(target_alias)'
5053 case ${with_toolexeclibdir} in
5055 toolexeclibdir='$(toolexecdir)/lib'
5058 toolexeclibdir=${with_toolexeclibdir}
5060 esac
5061 else
5062 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5063 toolexeclibdir='$(libdir)'
5065 multi_os_directory=`$CC -print-multi-os-directory`
5066 case $multi_os_directory in
5067 .) ;; # Avoid trailing /.
5068 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5069 esac
5071 esac
5075 # Checks for programs.
5076 ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081 if test -n "$ac_tool_prefix"; then
5082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_prog_CC+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 if test -n "$CC"; then
5090 ac_cv_prog_CC="$CC" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5103 done
5104 done
5105 IFS=$as_save_IFS
5109 CC=$ac_cv_prog_CC
5110 if test -n "$CC"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5112 $as_echo "$CC" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5120 if test -z "$ac_cv_prog_CC"; then
5121 ac_ct_CC=$CC
5122 # Extract the first word of "gcc", so it can be a program name with args.
5123 set dummy gcc; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$ac_ct_CC"; then
5130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_prog_ac_ct_CC="gcc"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5150 if test -n "$ac_ct_CC"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5152 $as_echo "$ac_ct_CC" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5158 if test "x$ac_ct_CC" = x; then
5159 CC=""
5160 else
5161 case $cross_compiling:$ac_tool_warned in
5162 yes:)
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5165 ac_tool_warned=yes ;;
5166 esac
5167 CC=$ac_ct_CC
5169 else
5170 CC="$ac_cv_prog_CC"
5173 if test -z "$CC"; then
5174 if test -n "$ac_tool_prefix"; then
5175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5176 set dummy ${ac_tool_prefix}cc; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_CC+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$CC"; then
5183 ac_cv_prog_CC="$CC" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_CC="${ac_tool_prefix}cc"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 CC=$ac_cv_prog_CC
5203 if test -n "$CC"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5205 $as_echo "$CC" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5214 if test -z "$CC"; then
5215 # Extract the first word of "cc", so it can be a program name with args.
5216 set dummy cc; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_CC+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$CC"; then
5223 ac_cv_prog_CC="$CC" # Let the user override the test.
5224 else
5225 ac_prog_rejected=no
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5234 ac_prog_rejected=yes
5235 continue
5237 ac_cv_prog_CC="cc"
5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5243 IFS=$as_save_IFS
5245 if test $ac_prog_rejected = yes; then
5246 # We found a bogon in the path, so make sure we never use it.
5247 set dummy $ac_cv_prog_CC
5248 shift
5249 if test $# != 0; then
5250 # We chose a different compiler from the bogus one.
5251 # However, it has the same basename, so the bogon will be chosen
5252 # first if we set CC to just the basename; use the full file name.
5253 shift
5254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5259 CC=$ac_cv_prog_CC
5260 if test -n "$CC"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5262 $as_echo "$CC" >&6; }
5263 else
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5270 if test -z "$CC"; then
5271 if test -n "$ac_tool_prefix"; then
5272 for ac_prog in cl.exe
5274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_CC+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$CC"; then
5282 ac_cv_prog_CC="$CC" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5295 done
5296 done
5297 IFS=$as_save_IFS
5301 CC=$ac_cv_prog_CC
5302 if test -n "$CC"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5304 $as_echo "$CC" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5311 test -n "$CC" && break
5312 done
5314 if test -z "$CC"; then
5315 ac_ct_CC=$CC
5316 for ac_prog in cl.exe
5318 # Extract the first word of "$ac_prog", so it can be a program name with args.
5319 set dummy $ac_prog; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 if test -n "$ac_ct_CC"; then
5326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_ac_ct_CC="$ac_prog"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5339 done
5340 done
5341 IFS=$as_save_IFS
5345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5346 if test -n "$ac_ct_CC"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5348 $as_echo "$ac_ct_CC" >&6; }
5349 else
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5355 test -n "$ac_ct_CC" && break
5356 done
5358 if test "x$ac_ct_CC" = x; then
5359 CC=""
5360 else
5361 case $cross_compiling:$ac_tool_warned in
5362 yes:)
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5365 ac_tool_warned=yes ;;
5366 esac
5367 CC=$ac_ct_CC
5374 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5376 as_fn_error $? "no acceptable C compiler found in \$PATH
5377 See \`config.log' for more details" "$LINENO" 5; }
5379 # Provide some information about the compiler.
5380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5381 set X $ac_compile
5382 ac_compiler=$2
5383 for ac_option in --version -v -V -qversion; do
5384 { { ac_try="$ac_compiler $ac_option >&5"
5385 case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388 esac
5389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5390 $as_echo "$ac_try_echo"; } >&5
5391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5392 ac_status=$?
5393 if test -s conftest.err; then
5394 sed '10a\
5395 ... rest of stderr output deleted ...
5396 10q' conftest.err >conftest.er1
5397 cat conftest.er1 >&5
5399 rm -f conftest.er1 conftest.err
5400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }
5402 done
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5405 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5406 if ${ac_cv_c_compiler_gnu+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5413 main ()
5415 #ifndef __GNUC__
5416 choke me
5417 #endif
5420 return 0;
5422 _ACEOF
5423 if ac_fn_c_try_compile "$LINENO"; then :
5424 ac_compiler_gnu=yes
5425 else
5426 ac_compiler_gnu=no
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5433 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5434 if test $ac_compiler_gnu = yes; then
5435 GCC=yes
5436 else
5437 GCC=
5439 ac_test_CFLAGS=${CFLAGS+set}
5440 ac_save_CFLAGS=$CFLAGS
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5442 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5443 if ${ac_cv_prog_cc_g+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 ac_save_c_werror_flag=$ac_c_werror_flag
5447 ac_c_werror_flag=yes
5448 ac_cv_prog_cc_g=no
5449 CFLAGS="-g"
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5454 main ()
5458 return 0;
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462 ac_cv_prog_cc_g=yes
5463 else
5464 CFLAGS=""
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5469 main ()
5473 return 0;
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5478 else
5479 ac_c_werror_flag=$ac_save_c_werror_flag
5480 CFLAGS="-g"
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5485 main ()
5489 return 0;
5491 _ACEOF
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493 ac_cv_prog_cc_g=yes
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 ac_c_werror_flag=$ac_save_c_werror_flag
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5503 $as_echo "$ac_cv_prog_cc_g" >&6; }
5504 if test "$ac_test_CFLAGS" = set; then
5505 CFLAGS=$ac_save_CFLAGS
5506 elif test $ac_cv_prog_cc_g = yes; then
5507 if test "$GCC" = yes; then
5508 CFLAGS="-g -O2"
5509 else
5510 CFLAGS="-g"
5512 else
5513 if test "$GCC" = yes; then
5514 CFLAGS="-O2"
5515 else
5516 CFLAGS=
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5520 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5521 if ${ac_cv_prog_cc_c89+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 ac_cv_prog_cc_c89=no
5525 ac_save_CC=$CC
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <stdarg.h>
5529 #include <stdio.h>
5530 struct stat;
5531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5532 struct buf { int x; };
5533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5534 static char *e (p, i)
5535 char **p;
5536 int i;
5538 return p[i];
5540 static char *f (char * (*g) (char **, int), char **p, ...)
5542 char *s;
5543 va_list v;
5544 va_start (v,p);
5545 s = g (p, va_arg (v,int));
5546 va_end (v);
5547 return s;
5550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5551 function prototypes and stuff, but not '\xHH' hex character constants.
5552 These don't provoke an error unfortunately, instead are silently treated
5553 as 'x'. The following induces an error, until -std is added to get
5554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5555 array size at least. It's necessary to write '\x00'==0 to get something
5556 that's true only with -std. */
5557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5560 inside strings and character constants. */
5561 #define FOO(x) 'x'
5562 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5564 int test (int i, double x);
5565 struct s1 {int (*f) (int a);};
5566 struct s2 {int (*f) (double a);};
5567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5568 int argc;
5569 char **argv;
5571 main ()
5573 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5575 return 0;
5577 _ACEOF
5578 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5579 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5581 CC="$ac_save_CC $ac_arg"
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 ac_cv_prog_cc_c89=$ac_arg
5585 rm -f core conftest.err conftest.$ac_objext
5586 test "x$ac_cv_prog_cc_c89" != "xno" && break
5587 done
5588 rm -f conftest.$ac_ext
5589 CC=$ac_save_CC
5592 # AC_CACHE_VAL
5593 case "x$ac_cv_prog_cc_c89" in
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5596 $as_echo "none needed" >&6; } ;;
5597 xno)
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5599 $as_echo "unsupported" >&6; } ;;
5601 CC="$CC $ac_cv_prog_cc_c89"
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5603 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5604 esac
5605 if test "x$ac_cv_prog_cc_c89" != xno; then :
5609 ac_ext=c
5610 ac_cpp='$CPP $CPPFLAGS'
5611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 ac_ext=c
5616 ac_cpp='$CPP $CPPFLAGS'
5617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5621 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5622 if ${am_cv_prog_cc_c_o+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5629 main ()
5633 return 0;
5635 _ACEOF
5636 # Make sure it works both with $CC and with simple cc.
5637 # Following AC_PROG_CC_C_O, we do the test twice because some
5638 # compilers refuse to overwrite an existing .o file with -o,
5639 # though they will create one.
5640 am_cv_prog_cc_c_o=yes
5641 for am_i in 1 2; do
5642 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5643 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } \
5647 && test -f conftest2.$ac_objext; then
5648 : OK
5649 else
5650 am_cv_prog_cc_c_o=no
5651 break
5653 done
5654 rm -f core conftest*
5655 unset am_i
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5658 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5659 if test "$am_cv_prog_cc_c_o" != yes; then
5660 # Losing compiler, so override with the script.
5661 # FIXME: It is wrong to rewrite CC.
5662 # But if we don't then we get into trouble of one sort or another.
5663 # A longer-term fix would be to have automake use am__CC in this case,
5664 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5665 CC="$am_aux_dir/compile $CC"
5667 ac_ext=c
5668 ac_cpp='$CPP $CPPFLAGS'
5669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5674 ac_ext=cpp
5675 ac_cpp='$CXXCPP $CPPFLAGS'
5676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5679 if test -z "$CXX"; then
5680 if test -n "$CCC"; then
5681 CXX=$CCC
5682 else
5683 if test -n "$ac_tool_prefix"; then
5684 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_prog_CXX+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 if test -n "$CXX"; then
5694 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5707 done
5708 done
5709 IFS=$as_save_IFS
5713 CXX=$ac_cv_prog_CXX
5714 if test -n "$CXX"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5716 $as_echo "$CXX" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5723 test -n "$CXX" && break
5724 done
5726 if test -z "$CXX"; then
5727 ac_ct_CXX=$CXX
5728 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5730 # Extract the first word of "$ac_prog", so it can be a program name with args.
5731 set dummy $ac_prog; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 if test -n "$ac_ct_CXX"; then
5738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_ac_ct_CXX="$ac_prog"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5751 done
5752 done
5753 IFS=$as_save_IFS
5757 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5758 if test -n "$ac_ct_CXX"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5760 $as_echo "$ac_ct_CXX" >&6; }
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5767 test -n "$ac_ct_CXX" && break
5768 done
5770 if test "x$ac_ct_CXX" = x; then
5771 CXX="g++"
5772 else
5773 case $cross_compiling:$ac_tool_warned in
5774 yes:)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777 ac_tool_warned=yes ;;
5778 esac
5779 CXX=$ac_ct_CXX
5785 # Provide some information about the compiler.
5786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5787 set X $ac_compile
5788 ac_compiler=$2
5789 for ac_option in --version -v -V -qversion; do
5790 { { ac_try="$ac_compiler $ac_option >&5"
5791 case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794 esac
5795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5796 $as_echo "$ac_try_echo"; } >&5
5797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5798 ac_status=$?
5799 if test -s conftest.err; then
5800 sed '10a\
5801 ... rest of stderr output deleted ...
5802 10q' conftest.err >conftest.er1
5803 cat conftest.er1 >&5
5805 rm -f conftest.er1 conftest.err
5806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5807 test $ac_status = 0; }
5808 done
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5811 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5812 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5819 main ()
5821 #ifndef __GNUC__
5822 choke me
5823 #endif
5826 return 0;
5828 _ACEOF
5829 if ac_fn_cxx_try_compile "$LINENO"; then :
5830 ac_compiler_gnu=yes
5831 else
5832 ac_compiler_gnu=no
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5839 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5840 if test $ac_compiler_gnu = yes; then
5841 GXX=yes
5842 else
5843 GXX=
5845 ac_test_CXXFLAGS=${CXXFLAGS+set}
5846 ac_save_CXXFLAGS=$CXXFLAGS
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5848 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5849 if ${ac_cv_prog_cxx_g+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5853 ac_cxx_werror_flag=yes
5854 ac_cv_prog_cxx_g=no
5855 CXXFLAGS="-g"
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5860 main ()
5864 return 0;
5866 _ACEOF
5867 if ac_fn_cxx_try_compile "$LINENO"; then :
5868 ac_cv_prog_cxx_g=yes
5869 else
5870 CXXFLAGS=""
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5875 main ()
5879 return 0;
5881 _ACEOF
5882 if ac_fn_cxx_try_compile "$LINENO"; then :
5884 else
5885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5886 CXXFLAGS="-g"
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5891 main ()
5895 return 0;
5897 _ACEOF
5898 if ac_fn_cxx_try_compile "$LINENO"; then :
5899 ac_cv_prog_cxx_g=yes
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5909 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5910 if test "$ac_test_CXXFLAGS" = set; then
5911 CXXFLAGS=$ac_save_CXXFLAGS
5912 elif test $ac_cv_prog_cxx_g = yes; then
5913 if test "$GXX" = yes; then
5914 CXXFLAGS="-g -O2"
5915 else
5916 CXXFLAGS="-g"
5918 else
5919 if test "$GXX" = yes; then
5920 CXXFLAGS="-O2"
5921 else
5922 CXXFLAGS=
5925 ac_ext=c
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5931 depcc="$CXX" am_compiler_list=
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5934 $as_echo_n "checking dependency style of $depcc... " >&6; }
5935 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5939 # We make a subdir and do the tests there. Otherwise we can end up
5940 # making bogus files that we don't know about and never remove. For
5941 # instance it was reported that on HP-UX the gcc test will end up
5942 # making a dummy file named 'D' -- because '-MD' means "put the output
5943 # in D".
5944 rm -rf conftest.dir
5945 mkdir conftest.dir
5946 # Copy depcomp to subdir because otherwise we won't find it if we're
5947 # using a relative directory.
5948 cp "$am_depcomp" conftest.dir
5949 cd conftest.dir
5950 # We will build objects and dependencies in a subdirectory because
5951 # it helps to detect inapplicable dependency modes. For instance
5952 # both Tru64's cc and ICC support -MD to output dependencies as a
5953 # side effect of compilation, but ICC will put the dependencies in
5954 # the current directory while Tru64 will put them in the object
5955 # directory.
5956 mkdir sub
5958 am_cv_CXX_dependencies_compiler_type=none
5959 if test "$am_compiler_list" = ""; then
5960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5962 am__universal=false
5963 case " $depcc " in #(
5964 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5965 esac
5967 for depmode in $am_compiler_list; do
5968 # Setup a source with many dependencies, because some compilers
5969 # like to wrap large dependency lists on column 80 (with \), and
5970 # we should not choose a depcomp mode which is confused by this.
5972 # We need to recreate these files for each test, as the compiler may
5973 # overwrite some of them when testing with obscure command lines.
5974 # This happens at least with the AIX C compiler.
5975 : > sub/conftest.c
5976 for i in 1 2 3 4 5 6; do
5977 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5978 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5979 # Solaris 10 /bin/sh.
5980 echo '/* dummy */' > sub/conftst$i.h
5981 done
5982 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5984 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5985 # mode. It turns out that the SunPro C++ compiler does not properly
5986 # handle '-M -o', and we need to detect this. Also, some Intel
5987 # versions had trouble with output in subdirs.
5988 am__obj=sub/conftest.${OBJEXT-o}
5989 am__minus_obj="-o $am__obj"
5990 case $depmode in
5991 gcc)
5992 # This depmode causes a compiler race in universal mode.
5993 test "$am__universal" = false || continue
5995 nosideeffect)
5996 # After this tag, mechanisms are not by side-effect, so they'll
5997 # only be used when explicitly requested.
5998 if test "x$enable_dependency_tracking" = xyes; then
5999 continue
6000 else
6001 break
6004 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6005 # This compiler won't grok '-c -o', but also, the minuso test has
6006 # not run yet. These depmodes are late enough in the game, and
6007 # so weak that their functioning should not be impacted.
6008 am__obj=conftest.${OBJEXT-o}
6009 am__minus_obj=
6011 none) break ;;
6012 esac
6013 if depmode=$depmode \
6014 source=sub/conftest.c object=$am__obj \
6015 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6016 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6017 >/dev/null 2>conftest.err &&
6018 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6019 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6020 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6021 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6022 # icc doesn't choke on unknown options, it will just issue warnings
6023 # or remarks (even with -Werror). So we grep stderr for any message
6024 # that says an option was ignored or not supported.
6025 # When given -MP, icc 7.0 and 7.1 complain thusly:
6026 # icc: Command line warning: ignoring option '-M'; no argument required
6027 # The diagnosis changed in icc 8.0:
6028 # icc: Command line remark: option '-MP' not supported
6029 if (grep 'ignoring option' conftest.err ||
6030 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6031 am_cv_CXX_dependencies_compiler_type=$depmode
6032 break
6035 done
6037 cd ..
6038 rm -rf conftest.dir
6039 else
6040 am_cv_CXX_dependencies_compiler_type=none
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6045 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6046 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6049 test "x$enable_dependency_tracking" != xno \
6050 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6051 am__fastdepCXX_TRUE=
6052 am__fastdepCXX_FALSE='#'
6053 else
6054 am__fastdepCXX_TRUE='#'
6055 am__fastdepCXX_FALSE=
6059 # By default we simply use the C compiler to build assembly code.
6061 test "${CCAS+set}" = set || CCAS=$CC
6062 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6066 depcc="$CCAS" am_compiler_list=
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6069 $as_echo_n "checking dependency style of $depcc... " >&6; }
6070 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6074 # We make a subdir and do the tests there. Otherwise we can end up
6075 # making bogus files that we don't know about and never remove. For
6076 # instance it was reported that on HP-UX the gcc test will end up
6077 # making a dummy file named 'D' -- because '-MD' means "put the output
6078 # in D".
6079 rm -rf conftest.dir
6080 mkdir conftest.dir
6081 # Copy depcomp to subdir because otherwise we won't find it if we're
6082 # using a relative directory.
6083 cp "$am_depcomp" conftest.dir
6084 cd conftest.dir
6085 # We will build objects and dependencies in a subdirectory because
6086 # it helps to detect inapplicable dependency modes. For instance
6087 # both Tru64's cc and ICC support -MD to output dependencies as a
6088 # side effect of compilation, but ICC will put the dependencies in
6089 # the current directory while Tru64 will put them in the object
6090 # directory.
6091 mkdir sub
6093 am_cv_CCAS_dependencies_compiler_type=none
6094 if test "$am_compiler_list" = ""; then
6095 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6097 am__universal=false
6100 for depmode in $am_compiler_list; do
6101 # Setup a source with many dependencies, because some compilers
6102 # like to wrap large dependency lists on column 80 (with \), and
6103 # we should not choose a depcomp mode which is confused by this.
6105 # We need to recreate these files for each test, as the compiler may
6106 # overwrite some of them when testing with obscure command lines.
6107 # This happens at least with the AIX C compiler.
6108 : > sub/conftest.c
6109 for i in 1 2 3 4 5 6; do
6110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6111 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6112 # Solaris 10 /bin/sh.
6113 echo '/* dummy */' > sub/conftst$i.h
6114 done
6115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6117 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6118 # mode. It turns out that the SunPro C++ compiler does not properly
6119 # handle '-M -o', and we need to detect this. Also, some Intel
6120 # versions had trouble with output in subdirs.
6121 am__obj=sub/conftest.${OBJEXT-o}
6122 am__minus_obj="-o $am__obj"
6123 case $depmode in
6124 gcc)
6125 # This depmode causes a compiler race in universal mode.
6126 test "$am__universal" = false || continue
6128 nosideeffect)
6129 # After this tag, mechanisms are not by side-effect, so they'll
6130 # only be used when explicitly requested.
6131 if test "x$enable_dependency_tracking" = xyes; then
6132 continue
6133 else
6134 break
6137 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6138 # This compiler won't grok '-c -o', but also, the minuso test has
6139 # not run yet. These depmodes are late enough in the game, and
6140 # so weak that their functioning should not be impacted.
6141 am__obj=conftest.${OBJEXT-o}
6142 am__minus_obj=
6144 none) break ;;
6145 esac
6146 if depmode=$depmode \
6147 source=sub/conftest.c object=$am__obj \
6148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6150 >/dev/null 2>conftest.err &&
6151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6155 # icc doesn't choke on unknown options, it will just issue warnings
6156 # or remarks (even with -Werror). So we grep stderr for any message
6157 # that says an option was ignored or not supported.
6158 # When given -MP, icc 7.0 and 7.1 complain thusly:
6159 # icc: Command line warning: ignoring option '-M'; no argument required
6160 # The diagnosis changed in icc 8.0:
6161 # icc: Command line remark: option '-MP' not supported
6162 if (grep 'ignoring option' conftest.err ||
6163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6164 am_cv_CCAS_dependencies_compiler_type=$depmode
6165 break
6168 done
6170 cd ..
6171 rm -rf conftest.dir
6172 else
6173 am_cv_CCAS_dependencies_compiler_type=none
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6178 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6179 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6182 test "x$enable_dependency_tracking" != xno \
6183 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6184 am__fastdepCCAS_TRUE=
6185 am__fastdepCCAS_FALSE='#'
6186 else
6187 am__fastdepCCAS_TRUE='#'
6188 am__fastdepCCAS_FALSE=
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if ${ac_cv_prog_RANLIB+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$RANLIB"; then
6201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6214 done
6215 done
6216 IFS=$as_save_IFS
6220 RANLIB=$ac_cv_prog_RANLIB
6221 if test -n "$RANLIB"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6223 $as_echo "$RANLIB" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6231 if test -z "$ac_cv_prog_RANLIB"; then
6232 ac_ct_RANLIB=$RANLIB
6233 # Extract the first word of "ranlib", so it can be a program name with args.
6234 set dummy ranlib; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if test -n "$ac_ct_RANLIB"; then
6241 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6250 ac_cv_prog_ac_ct_RANLIB="ranlib"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6254 done
6255 done
6256 IFS=$as_save_IFS
6260 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6261 if test -n "$ac_ct_RANLIB"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6263 $as_echo "$ac_ct_RANLIB" >&6; }
6264 else
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6269 if test "x$ac_ct_RANLIB" = x; then
6270 RANLIB=":"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278 RANLIB=$ac_ct_RANLIB
6280 else
6281 RANLIB="$ac_cv_prog_RANLIB"
6285 enable_dlopen=yes
6289 case `pwd` in
6290 *\ * | *\ *)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6292 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6293 esac
6297 macro_version='2.2.7a'
6298 macro_revision='1.3134'
6312 ltmain="$ac_aux_dir/ltmain.sh"
6314 # Backslashify metacharacters that are still active within
6315 # double-quoted strings.
6316 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6318 # Same as above, but do not quote variable references.
6319 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6321 # Sed substitution to delay expansion of an escaped shell variable in a
6322 # double_quote_subst'ed string.
6323 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6325 # Sed substitution to delay expansion of an escaped single quote.
6326 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6328 # Sed substitution to avoid accidental globbing in evaled expressions
6329 no_glob_subst='s/\*/\\\*/g'
6331 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6332 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6333 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6336 $as_echo_n "checking how to print strings... " >&6; }
6337 # Test print first, because it will be a builtin if present.
6338 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6339 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6340 ECHO='print -r --'
6341 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6342 ECHO='printf %s\n'
6343 else
6344 # Use this function as a fallback that always works.
6345 func_fallback_echo ()
6347 eval 'cat <<_LTECHO_EOF
6349 _LTECHO_EOF'
6351 ECHO='func_fallback_echo'
6354 # func_echo_all arg...
6355 # Invoke $ECHO with all args, space-separated.
6356 func_echo_all ()
6358 $ECHO ""
6361 case "$ECHO" in
6362 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6363 $as_echo "printf" >&6; } ;;
6364 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6365 $as_echo "print -r" >&6; } ;;
6366 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6367 $as_echo "cat" >&6; } ;;
6368 esac
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6384 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6385 if ${ac_cv_path_SED+:} false; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6389 for ac_i in 1 2 3 4 5 6 7; do
6390 ac_script="$ac_script$as_nl$ac_script"
6391 done
6392 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6393 { ac_script=; unset ac_script;}
6394 if test -z "$SED"; then
6395 ac_path_SED_found=false
6396 # Loop through the user's path and test for each of PROGNAME-LIST
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_prog in sed gsed; do
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6405 as_fn_executable_p "$ac_path_SED" || continue
6406 # Check for GNU ac_path_SED and select it if it is found.
6407 # Check for GNU $ac_path_SED
6408 case `"$ac_path_SED" --version 2>&1` in
6409 *GNU*)
6410 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6412 ac_count=0
6413 $as_echo_n 0123456789 >"conftest.in"
6414 while :
6416 cat "conftest.in" "conftest.in" >"conftest.tmp"
6417 mv "conftest.tmp" "conftest.in"
6418 cp "conftest.in" "conftest.nl"
6419 $as_echo '' >> "conftest.nl"
6420 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6422 as_fn_arith $ac_count + 1 && ac_count=$as_val
6423 if test $ac_count -gt ${ac_path_SED_max-0}; then
6424 # Best one so far, save it but keep looking for a better one
6425 ac_cv_path_SED="$ac_path_SED"
6426 ac_path_SED_max=$ac_count
6428 # 10*(2^10) chars as input seems more than enough
6429 test $ac_count -gt 10 && break
6430 done
6431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6432 esac
6434 $ac_path_SED_found && break 3
6435 done
6436 done
6437 done
6438 IFS=$as_save_IFS
6439 if test -z "$ac_cv_path_SED"; then
6440 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6442 else
6443 ac_cv_path_SED=$SED
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6448 $as_echo "$ac_cv_path_SED" >&6; }
6449 SED="$ac_cv_path_SED"
6450 rm -f conftest.sed
6452 test -z "$SED" && SED=sed
6453 Xsed="$SED -e 1s/^X//"
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6466 $as_echo_n "checking for fgrep... " >&6; }
6467 if ${ac_cv_path_FGREP+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6471 then ac_cv_path_FGREP="$GREP -F"
6472 else
6473 if test -z "$FGREP"; then
6474 ac_path_FGREP_found=false
6475 # Loop through the user's path and test for each of PROGNAME-LIST
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_prog in fgrep; do
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6484 as_fn_executable_p "$ac_path_FGREP" || continue
6485 # Check for GNU ac_path_FGREP and select it if it is found.
6486 # Check for GNU $ac_path_FGREP
6487 case `"$ac_path_FGREP" --version 2>&1` in
6488 *GNU*)
6489 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6491 ac_count=0
6492 $as_echo_n 0123456789 >"conftest.in"
6493 while :
6495 cat "conftest.in" "conftest.in" >"conftest.tmp"
6496 mv "conftest.tmp" "conftest.in"
6497 cp "conftest.in" "conftest.nl"
6498 $as_echo 'FGREP' >> "conftest.nl"
6499 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6501 as_fn_arith $ac_count + 1 && ac_count=$as_val
6502 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6503 # Best one so far, save it but keep looking for a better one
6504 ac_cv_path_FGREP="$ac_path_FGREP"
6505 ac_path_FGREP_max=$ac_count
6507 # 10*(2^10) chars as input seems more than enough
6508 test $ac_count -gt 10 && break
6509 done
6510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6511 esac
6513 $ac_path_FGREP_found && break 3
6514 done
6515 done
6516 done
6517 IFS=$as_save_IFS
6518 if test -z "$ac_cv_path_FGREP"; then
6519 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6521 else
6522 ac_cv_path_FGREP=$FGREP
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6528 $as_echo "$ac_cv_path_FGREP" >&6; }
6529 FGREP="$ac_cv_path_FGREP"
6532 test -z "$GREP" && GREP=grep
6552 # Check whether --with-gnu-ld was given.
6553 if test "${with_gnu_ld+set}" = set; then :
6554 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6555 else
6556 with_gnu_ld=no
6559 ac_prog=ld
6560 if test "$GCC" = yes; then
6561 # Check if gcc -print-prog-name=ld gives a path.
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6563 $as_echo_n "checking for ld used by $CC... " >&6; }
6564 case $host in
6565 *-*-mingw*)
6566 # gcc leaves a trailing carriage return which upsets mingw
6567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6570 esac
6571 case $ac_prog in
6572 # Accept absolute paths.
6573 [\\/]* | ?:[\\/]*)
6574 re_direlt='/[^/][^/]*/\.\./'
6575 # Canonicalize the pathname of ld
6576 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6577 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6578 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6579 done
6580 test -z "$LD" && LD="$ac_prog"
6583 # If it fails, then pretend we aren't using GCC.
6584 ac_prog=ld
6587 # If it is relative, then search for the first ld in PATH.
6588 with_gnu_ld=unknown
6590 esac
6591 elif test "$with_gnu_ld" = yes; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6593 $as_echo_n "checking for GNU ld... " >&6; }
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6596 $as_echo_n "checking for non-GNU ld... " >&6; }
6598 if ${lt_cv_path_LD+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 if test -z "$LD"; then
6602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6603 for ac_dir in $PATH; do
6604 IFS="$lt_save_ifs"
6605 test -z "$ac_dir" && ac_dir=.
6606 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6607 lt_cv_path_LD="$ac_dir/$ac_prog"
6608 # Check to see if the program is GNU ld. I'd rather use --version,
6609 # but apparently some variants of GNU ld only accept -v.
6610 # Break only if it was the GNU/non-GNU ld that we prefer.
6611 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6612 *GNU* | *'with BFD'*)
6613 test "$with_gnu_ld" != no && break
6616 test "$with_gnu_ld" != yes && break
6618 esac
6620 done
6621 IFS="$lt_save_ifs"
6622 else
6623 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6627 LD="$lt_cv_path_LD"
6628 if test -n "$LD"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6630 $as_echo "$LD" >&6; }
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6635 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6637 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6638 if ${lt_cv_prog_gnu_ld+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6642 case `$LD -v 2>&1 </dev/null` in
6643 *GNU* | *'with BFD'*)
6644 lt_cv_prog_gnu_ld=yes
6647 lt_cv_prog_gnu_ld=no
6649 esac
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6652 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6653 with_gnu_ld=$lt_cv_prog_gnu_ld
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6664 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6665 if ${lt_cv_path_NM+:} false; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 if test -n "$NM"; then
6669 # Let the user override the test.
6670 lt_cv_path_NM="$NM"
6671 else
6672 lt_nm_to_check="${ac_tool_prefix}nm"
6673 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6674 lt_nm_to_check="$lt_nm_to_check nm"
6676 for lt_tmp_nm in $lt_nm_to_check; do
6677 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6678 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6679 IFS="$lt_save_ifs"
6680 test -z "$ac_dir" && ac_dir=.
6681 tmp_nm="$ac_dir/$lt_tmp_nm"
6682 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6683 # Check to see if the nm accepts a BSD-compat flag.
6684 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6685 # nm: unknown option "B" ignored
6686 # Tru64's nm complains that /dev/null is an invalid object file
6687 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6688 */dev/null* | *'Invalid file or object type'*)
6689 lt_cv_path_NM="$tmp_nm -B"
6690 break
6693 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6694 */dev/null*)
6695 lt_cv_path_NM="$tmp_nm -p"
6696 break
6699 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6700 continue # so that we can try to find one that supports BSD flags
6702 esac
6704 esac
6706 done
6707 IFS="$lt_save_ifs"
6708 done
6709 : ${lt_cv_path_NM=no}
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6713 $as_echo "$lt_cv_path_NM" >&6; }
6714 if test "$lt_cv_path_NM" != "no"; then
6715 NM="$lt_cv_path_NM"
6716 else
6717 # Didn't find any BSD compatible name lister, look for dumpbin.
6718 if test -n "$DUMPBIN"; then :
6719 # Let the user override the test.
6720 else
6721 if test -n "$ac_tool_prefix"; then
6722 for ac_prog in dumpbin "link -dump"
6724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_DUMPBIN+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$DUMPBIN"; then
6732 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6745 done
6746 done
6747 IFS=$as_save_IFS
6751 DUMPBIN=$ac_cv_prog_DUMPBIN
6752 if test -n "$DUMPBIN"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6754 $as_echo "$DUMPBIN" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6761 test -n "$DUMPBIN" && break
6762 done
6764 if test -z "$DUMPBIN"; then
6765 ac_ct_DUMPBIN=$DUMPBIN
6766 for ac_prog in dumpbin "link -dump"
6768 # Extract the first word of "$ac_prog", so it can be a program name with args.
6769 set dummy $ac_prog; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$ac_ct_DUMPBIN"; then
6776 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6791 IFS=$as_save_IFS
6795 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6796 if test -n "$ac_ct_DUMPBIN"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6798 $as_echo "$ac_ct_DUMPBIN" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6805 test -n "$ac_ct_DUMPBIN" && break
6806 done
6808 if test "x$ac_ct_DUMPBIN" = x; then
6809 DUMPBIN=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817 DUMPBIN=$ac_ct_DUMPBIN
6821 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6822 *COFF*)
6823 DUMPBIN="$DUMPBIN -symbols"
6826 DUMPBIN=:
6828 esac
6831 if test "$DUMPBIN" != ":"; then
6832 NM="$DUMPBIN"
6835 test -z "$NM" && NM=nm
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6843 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6844 if ${lt_cv_nm_interface+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 lt_cv_nm_interface="BSD nm"
6848 echo "int some_variable = 0;" > conftest.$ac_ext
6849 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6850 (eval "$ac_compile" 2>conftest.err)
6851 cat conftest.err >&5
6852 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6853 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6854 cat conftest.err >&5
6855 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6856 cat conftest.out >&5
6857 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6858 lt_cv_nm_interface="MS dumpbin"
6860 rm -f conftest*
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6863 $as_echo "$lt_cv_nm_interface" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6866 $as_echo_n "checking whether ln -s works... " >&6; }
6867 LN_S=$as_ln_s
6868 if test "$LN_S" = "ln -s"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6870 $as_echo "yes" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6873 $as_echo "no, using $LN_S" >&6; }
6876 # find the maximum length of command line arguments
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6878 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6879 if ${lt_cv_sys_max_cmd_len+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6883 teststring="ABCD"
6885 case $build_os in
6886 msdosdjgpp*)
6887 # On DJGPP, this test can blow up pretty badly due to problems in libc
6888 # (any single argument exceeding 2000 bytes causes a buffer overrun
6889 # during glob expansion). Even if it were fixed, the result of this
6890 # check would be larger than it should be.
6891 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6894 gnu*)
6895 # Under GNU Hurd, this test is not required because there is
6896 # no limit to the length of command line arguments.
6897 # Libtool will interpret -1 as no limit whatsoever
6898 lt_cv_sys_max_cmd_len=-1;
6901 cygwin* | mingw* | cegcc*)
6902 # On Win9x/ME, this test blows up -- it succeeds, but takes
6903 # about 5 minutes as the teststring grows exponentially.
6904 # Worse, since 9x/ME are not pre-emptively multitasking,
6905 # you end up with a "frozen" computer, even though with patience
6906 # the test eventually succeeds (with a max line length of 256k).
6907 # Instead, let's just punt: use the minimum linelength reported by
6908 # all of the supported platforms: 8192 (on NT/2K/XP).
6909 lt_cv_sys_max_cmd_len=8192;
6912 mint*)
6913 # On MiNT this can take a long time and run out of memory.
6914 lt_cv_sys_max_cmd_len=8192;
6917 amigaos*)
6918 # On AmigaOS with pdksh, this test takes hours, literally.
6919 # So we just punt and use a minimum line length of 8192.
6920 lt_cv_sys_max_cmd_len=8192;
6923 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6924 # This has been around since 386BSD, at least. Likely further.
6925 if test -x /sbin/sysctl; then
6926 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6927 elif test -x /usr/sbin/sysctl; then
6928 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6929 else
6930 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6932 # And add a safety zone
6933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6937 interix*)
6938 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6939 lt_cv_sys_max_cmd_len=196608
6942 osf*)
6943 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6944 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6945 # nice to cause kernel panics so lets avoid the loop below.
6946 # First set a reasonable default.
6947 lt_cv_sys_max_cmd_len=16384
6949 if test -x /sbin/sysconfig; then
6950 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6951 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6952 esac
6955 sco3.2v5*)
6956 lt_cv_sys_max_cmd_len=102400
6958 sysv5* | sco5v6* | sysv4.2uw2*)
6959 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6960 if test -n "$kargmax"; then
6961 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6962 else
6963 lt_cv_sys_max_cmd_len=32768
6967 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6968 if test -n "$lt_cv_sys_max_cmd_len"; then
6969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6971 else
6972 # Make teststring a little bigger before we do anything with it.
6973 # a 1K string should be a reasonable start.
6974 for i in 1 2 3 4 5 6 7 8 ; do
6975 teststring=$teststring$teststring
6976 done
6977 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6978 # If test is not a shell built-in, we'll probably end up computing a
6979 # maximum length that is only half of the actual maximum length, but
6980 # we can't tell.
6981 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6982 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6983 test $i != 17 # 1/2 MB should be enough
6985 i=`expr $i + 1`
6986 teststring=$teststring$teststring
6987 done
6988 # Only check the string length outside the loop.
6989 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6990 teststring=
6991 # Add a significant safety factor because C++ compilers can tack on
6992 # massive amounts of additional arguments before passing them to the
6993 # linker. It appears as though 1/2 is a usable value.
6994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6997 esac
7001 if test -n $lt_cv_sys_max_cmd_len ; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7003 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7006 $as_echo "none" >&6; }
7008 max_cmd_len=$lt_cv_sys_max_cmd_len
7015 : ${CP="cp -f"}
7016 : ${MV="mv -f"}
7017 : ${RM="rm -f"}
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7020 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7021 # Try some XSI features
7022 xsi_shell=no
7023 ( _lt_dummy="a/b/c"
7024 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7025 = c,a/b,, \
7026 && eval 'test $(( 1 + 1 )) -eq 2 \
7027 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7028 && xsi_shell=yes
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7030 $as_echo "$xsi_shell" >&6; }
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7034 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7035 lt_shell_append=no
7036 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7037 >/dev/null 2>&1 \
7038 && lt_shell_append=yes
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7040 $as_echo "$lt_shell_append" >&6; }
7043 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7044 lt_unset=unset
7045 else
7046 lt_unset=false
7053 # test EBCDIC or ASCII
7054 case `echo X|tr X '\101'` in
7055 A) # ASCII based system
7056 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7057 lt_SP2NL='tr \040 \012'
7058 lt_NL2SP='tr \015\012 \040\040'
7060 *) # EBCDIC based system
7061 lt_SP2NL='tr \100 \n'
7062 lt_NL2SP='tr \r\n \100\100'
7064 esac
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7075 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7076 if ${lt_cv_ld_reload_flag+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 lt_cv_ld_reload_flag='-r'
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7082 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7083 reload_flag=$lt_cv_ld_reload_flag
7084 case $reload_flag in
7085 "" | " "*) ;;
7086 *) reload_flag=" $reload_flag" ;;
7087 esac
7088 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7089 case $host_os in
7090 darwin*)
7091 if test "$GCC" = yes; then
7092 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7093 else
7094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7097 esac
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_OBJDUMP+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$OBJDUMP"; then
7116 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7129 done
7130 done
7131 IFS=$as_save_IFS
7135 OBJDUMP=$ac_cv_prog_OBJDUMP
7136 if test -n "$OBJDUMP"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7138 $as_echo "$OBJDUMP" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7146 if test -z "$ac_cv_prog_OBJDUMP"; then
7147 ac_ct_OBJDUMP=$OBJDUMP
7148 # Extract the first word of "objdump", so it can be a program name with args.
7149 set dummy objdump; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$ac_ct_OBJDUMP"; then
7156 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7169 done
7170 done
7171 IFS=$as_save_IFS
7175 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7176 if test -n "$ac_ct_OBJDUMP"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7178 $as_echo "$ac_ct_OBJDUMP" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7184 if test "x$ac_ct_OBJDUMP" = x; then
7185 OBJDUMP="false"
7186 else
7187 case $cross_compiling:$ac_tool_warned in
7188 yes:)
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7191 ac_tool_warned=yes ;;
7192 esac
7193 OBJDUMP=$ac_ct_OBJDUMP
7195 else
7196 OBJDUMP="$ac_cv_prog_OBJDUMP"
7199 test -z "$OBJDUMP" && OBJDUMP=objdump
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7210 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7211 if ${lt_cv_deplibs_check_method+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 lt_cv_file_magic_cmd='$MAGIC_CMD'
7215 lt_cv_file_magic_test_file=
7216 lt_cv_deplibs_check_method='unknown'
7217 # Need to set the preceding variable on all platforms that support
7218 # interlibrary dependencies.
7219 # 'none' -- dependencies not supported.
7220 # `unknown' -- same as none, but documents that we really don't know.
7221 # 'pass_all' -- all dependencies passed with no checks.
7222 # 'test_compile' -- check by making test program.
7223 # 'file_magic [[regex]]' -- check by looking for files in library path
7224 # which responds to the $file_magic_cmd with a given extended regex.
7225 # If you have `file' or equivalent on your system and you're not sure
7226 # whether `pass_all' will *always* work, you probably want this one.
7228 case $host_os in
7229 aix[4-9]*)
7230 lt_cv_deplibs_check_method=pass_all
7233 beos*)
7234 lt_cv_deplibs_check_method=pass_all
7237 bsdi[45]*)
7238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7239 lt_cv_file_magic_cmd='/usr/bin/file -L'
7240 lt_cv_file_magic_test_file=/shlib/libc.so
7243 cygwin*)
7244 # func_win32_libid is a shell function defined in ltmain.sh
7245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7246 lt_cv_file_magic_cmd='func_win32_libid'
7249 mingw* | pw32*)
7250 # Base MSYS/MinGW do not provide the 'file' command needed by
7251 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7252 # unless we find 'file', for example because we are cross-compiling.
7253 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7254 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7256 lt_cv_file_magic_cmd='func_win32_libid'
7257 else
7258 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7259 lt_cv_file_magic_cmd='$OBJDUMP -f'
7263 cegcc*)
7264 # use the weaker test based on 'objdump'. See mingw*.
7265 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7266 lt_cv_file_magic_cmd='$OBJDUMP -f'
7269 darwin* | rhapsody*)
7270 lt_cv_deplibs_check_method=pass_all
7273 freebsd* | dragonfly*)
7274 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7275 case $host_cpu in
7276 i*86 )
7277 # Not sure whether the presence of OpenBSD here was a mistake.
7278 # Let's accept both of them until this is cleared up.
7279 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7280 lt_cv_file_magic_cmd=/usr/bin/file
7281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7283 esac
7284 else
7285 lt_cv_deplibs_check_method=pass_all
7289 gnu*)
7290 lt_cv_deplibs_check_method=pass_all
7293 haiku*)
7294 lt_cv_deplibs_check_method=pass_all
7297 hpux10.20* | hpux11*)
7298 lt_cv_file_magic_cmd=/usr/bin/file
7299 case $host_cpu in
7300 ia64*)
7301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7302 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7304 hppa*64*)
7305 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]'
7306 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7310 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7312 esac
7315 interix[3-9]*)
7316 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7320 irix5* | irix6* | nonstopux*)
7321 case $LD in
7322 *-32|*"-32 ") libmagic=32-bit;;
7323 *-n32|*"-n32 ") libmagic=N32;;
7324 *-64|*"-64 ") libmagic=64-bit;;
7325 *) libmagic=never-match;;
7326 esac
7327 lt_cv_deplibs_check_method=pass_all
7330 # This must be Linux ELF.
7331 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7332 lt_cv_deplibs_check_method=pass_all
7335 netbsd*)
7336 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7338 else
7339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7343 newos6*)
7344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7345 lt_cv_file_magic_cmd=/usr/bin/file
7346 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7349 *nto* | *qnx*)
7350 lt_cv_deplibs_check_method=pass_all
7353 openbsd*)
7354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7356 else
7357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7361 osf3* | osf4* | osf5*)
7362 lt_cv_deplibs_check_method=pass_all
7365 rdos*)
7366 lt_cv_deplibs_check_method=pass_all
7369 solaris*)
7370 lt_cv_deplibs_check_method=pass_all
7373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7374 lt_cv_deplibs_check_method=pass_all
7377 sysv4 | sysv4.3*)
7378 case $host_vendor in
7379 motorola)
7380 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]'
7381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7383 ncr)
7384 lt_cv_deplibs_check_method=pass_all
7386 sequent)
7387 lt_cv_file_magic_cmd='/bin/file'
7388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7390 sni)
7391 lt_cv_file_magic_cmd='/bin/file'
7392 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7393 lt_cv_file_magic_test_file=/lib/libc.so
7395 siemens)
7396 lt_cv_deplibs_check_method=pass_all
7399 lt_cv_deplibs_check_method=pass_all
7401 esac
7404 tpf*)
7405 lt_cv_deplibs_check_method=pass_all
7407 esac
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7411 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7412 file_magic_cmd=$lt_cv_file_magic_cmd
7413 deplibs_check_method=$lt_cv_deplibs_check_method
7414 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7427 if test -n "$ac_tool_prefix"; then
7428 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7429 set dummy ${ac_tool_prefix}ar; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_AR+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 if test -n "$AR"; then
7436 ac_cv_prog_AR="$AR" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_AR="${ac_tool_prefix}ar"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7449 done
7450 done
7451 IFS=$as_save_IFS
7455 AR=$ac_cv_prog_AR
7456 if test -n "$AR"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7458 $as_echo "$AR" >&6; }
7459 else
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7466 if test -z "$ac_cv_prog_AR"; then
7467 ac_ct_AR=$AR
7468 # Extract the first word of "ar", so it can be a program name with args.
7469 set dummy ar; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 if test -n "$ac_ct_AR"; then
7476 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_ac_ct_AR="ar"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7489 done
7490 done
7491 IFS=$as_save_IFS
7495 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7496 if test -n "$ac_ct_AR"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7498 $as_echo "$ac_ct_AR" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7504 if test "x$ac_ct_AR" = x; then
7505 AR="false"
7506 else
7507 case $cross_compiling:$ac_tool_warned in
7508 yes:)
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7512 esac
7513 AR=$ac_ct_AR
7515 else
7516 AR="$ac_cv_prog_AR"
7519 test -z "$AR" && AR=ar
7520 test -z "$AR_FLAGS" && AR_FLAGS=cru
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}strip; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_STRIP+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$STRIP"; then
7541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7554 done
7555 done
7556 IFS=$as_save_IFS
7560 STRIP=$ac_cv_prog_STRIP
7561 if test -n "$STRIP"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7563 $as_echo "$STRIP" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7571 if test -z "$ac_cv_prog_STRIP"; then
7572 ac_ct_STRIP=$STRIP
7573 # Extract the first word of "strip", so it can be a program name with args.
7574 set dummy strip; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 if test -n "$ac_ct_STRIP"; then
7581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_ac_ct_STRIP="strip"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7594 done
7595 done
7596 IFS=$as_save_IFS
7600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7601 if test -n "$ac_ct_STRIP"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7603 $as_echo "$ac_ct_STRIP" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7609 if test "x$ac_ct_STRIP" = x; then
7610 STRIP=":"
7611 else
7612 case $cross_compiling:$ac_tool_warned in
7613 yes:)
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616 ac_tool_warned=yes ;;
7617 esac
7618 STRIP=$ac_ct_STRIP
7620 else
7621 STRIP="$ac_cv_prog_STRIP"
7624 test -z "$STRIP" && STRIP=:
7631 if test -n "$ac_tool_prefix"; then
7632 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7633 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_prog_RANLIB+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 if test -n "$RANLIB"; then
7640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7649 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7653 done
7654 done
7655 IFS=$as_save_IFS
7659 RANLIB=$ac_cv_prog_RANLIB
7660 if test -n "$RANLIB"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7662 $as_echo "$RANLIB" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7670 if test -z "$ac_cv_prog_RANLIB"; then
7671 ac_ct_RANLIB=$RANLIB
7672 # Extract the first word of "ranlib", so it can be a program name with args.
7673 set dummy ranlib; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 if test -n "$ac_ct_RANLIB"; then
7680 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689 ac_cv_prog_ac_ct_RANLIB="ranlib"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7693 done
7694 done
7695 IFS=$as_save_IFS
7699 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7700 if test -n "$ac_ct_RANLIB"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7702 $as_echo "$ac_ct_RANLIB" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7708 if test "x$ac_ct_RANLIB" = x; then
7709 RANLIB=":"
7710 else
7711 case $cross_compiling:$ac_tool_warned in
7712 yes:)
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7715 ac_tool_warned=yes ;;
7716 esac
7717 RANLIB=$ac_ct_RANLIB
7719 else
7720 RANLIB="$ac_cv_prog_RANLIB"
7723 test -z "$RANLIB" && RANLIB=:
7730 # Determine commands to create old-style static archives.
7731 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7732 old_postinstall_cmds='chmod 644 $oldlib'
7733 old_postuninstall_cmds=
7735 if test -n "$RANLIB"; then
7736 case $host_os in
7737 openbsd*)
7738 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7741 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7743 esac
7744 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7747 case $host_os in
7748 darwin*)
7749 lock_old_archive_extraction=yes ;;
7751 lock_old_archive_extraction=no ;;
7752 esac
7792 # If no C compiler was specified, use CC.
7793 LTCC=${LTCC-"$CC"}
7795 # If no C compiler flags were specified, use CFLAGS.
7796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7798 # Allow CC to be a program name with arguments.
7799 compiler=$CC
7802 # Check for command to grab the raw symbol name followed by C symbol from nm.
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7804 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7805 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7809 # These are sane defaults that work on at least a few old systems.
7810 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7812 # Character class describing NM global symbol codes.
7813 symcode='[BCDEGRST]'
7815 # Regexp to match symbols that can be accessed directly from C.
7816 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7818 # Define system-specific variables.
7819 case $host_os in
7820 aix*)
7821 symcode='[BCDT]'
7823 cygwin* | mingw* | pw32* | cegcc*)
7824 symcode='[ABCDGISTW]'
7826 hpux*)
7827 if test "$host_cpu" = ia64; then
7828 symcode='[ABCDEGRST]'
7831 irix* | nonstopux*)
7832 symcode='[BCDEGRST]'
7834 osf*)
7835 symcode='[BCDEGQRST]'
7837 solaris*)
7838 symcode='[BDRT]'
7840 sco3.2v5*)
7841 symcode='[DT]'
7843 sysv4.2uw2*)
7844 symcode='[DT]'
7846 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7847 symcode='[ABDT]'
7849 sysv4)
7850 symcode='[DFNSTU]'
7852 esac
7854 # If we're using GNU nm, then use its standard symbol codes.
7855 case `$NM -V 2>&1` in
7856 *GNU* | *'with BFD'*)
7857 symcode='[ABCDGIRSTW]' ;;
7858 esac
7860 # Transform an extracted symbol line into a proper C declaration.
7861 # Some systems (esp. on ia64) link data and code symbols differently,
7862 # so use this general approach.
7863 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7865 # Transform an extracted symbol line into symbol name and symbol address
7866 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7867 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'"
7869 # Handle CRLF in mingw tool chain
7870 opt_cr=
7871 case $build_os in
7872 mingw*)
7873 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7875 esac
7877 # Try without a prefix underscore, then with it.
7878 for ac_symprfx in "" "_"; do
7880 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7881 symxfrm="\\1 $ac_symprfx\\2 \\2"
7883 # Write the raw and C identifiers.
7884 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7885 # Fake it for dumpbin and say T for any non-static function
7886 # and D for any global variable.
7887 # Also find C++ and __fastcall symbols from MSVC++,
7888 # which start with @ or ?.
7889 lt_cv_sys_global_symbol_pipe="$AWK '"\
7890 " {last_section=section; section=\$ 3};"\
7891 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7892 " \$ 0!~/External *\|/{next};"\
7893 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7894 " {if(hide[section]) next};"\
7895 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7896 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7897 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7898 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7899 " ' prfx=^$ac_symprfx"
7900 else
7901 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7904 # Check to see that the pipe works correctly.
7905 pipe_works=no
7907 rm -f conftest*
7908 cat > conftest.$ac_ext <<_LT_EOF
7909 #ifdef __cplusplus
7910 extern "C" {
7911 #endif
7912 char nm_test_var;
7913 void nm_test_func(void);
7914 void nm_test_func(void){}
7915 #ifdef __cplusplus
7917 #endif
7918 int main(){nm_test_var='a';nm_test_func();return(0);}
7919 _LT_EOF
7921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7922 (eval $ac_compile) 2>&5
7923 ac_status=$?
7924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7925 test $ac_status = 0; }; then
7926 # Now try to grab the symbols.
7927 nlist=conftest.nm
7928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7929 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7930 ac_status=$?
7931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7932 test $ac_status = 0; } && test -s "$nlist"; then
7933 # Try sorting and uniquifying the output.
7934 if sort "$nlist" | uniq > "$nlist"T; then
7935 mv -f "$nlist"T "$nlist"
7936 else
7937 rm -f "$nlist"T
7940 # Make sure that we snagged all the symbols we need.
7941 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7942 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7943 cat <<_LT_EOF > conftest.$ac_ext
7944 #ifdef __cplusplus
7945 extern "C" {
7946 #endif
7948 _LT_EOF
7949 # Now generate the symbol file.
7950 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7952 cat <<_LT_EOF >> conftest.$ac_ext
7954 /* The mapping between symbol names and symbols. */
7955 const struct {
7956 const char *name;
7957 void *address;
7959 lt__PROGRAM__LTX_preloaded_symbols[] =
7961 { "@PROGRAM@", (void *) 0 },
7962 _LT_EOF
7963 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7964 cat <<\_LT_EOF >> conftest.$ac_ext
7965 {0, (void *) 0}
7968 /* This works around a problem in FreeBSD linker */
7969 #ifdef FREEBSD_WORKAROUND
7970 static const void *lt_preloaded_setup() {
7971 return lt__PROGRAM__LTX_preloaded_symbols;
7973 #endif
7975 #ifdef __cplusplus
7977 #endif
7978 _LT_EOF
7979 # Now try linking the two files.
7980 mv conftest.$ac_objext conftstm.$ac_objext
7981 lt_save_LIBS="$LIBS"
7982 lt_save_CFLAGS="$CFLAGS"
7983 LIBS="conftstm.$ac_objext"
7984 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7986 (eval $ac_link) 2>&5
7987 ac_status=$?
7988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7990 pipe_works=yes
7992 LIBS="$lt_save_LIBS"
7993 CFLAGS="$lt_save_CFLAGS"
7994 else
7995 echo "cannot find nm_test_func in $nlist" >&5
7997 else
7998 echo "cannot find nm_test_var in $nlist" >&5
8000 else
8001 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8003 else
8004 echo "$progname: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8007 rm -rf conftest* conftst*
8009 # Do not use the global_symbol_pipe unless it works.
8010 if test "$pipe_works" = yes; then
8011 break
8012 else
8013 lt_cv_sys_global_symbol_pipe=
8015 done
8019 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8020 lt_cv_sys_global_symbol_to_cdecl=
8022 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8024 $as_echo "failed" >&6; }
8025 else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8027 $as_echo "ok" >&6; }
8051 # Check whether --enable-libtool-lock was given.
8052 if test "${enable_libtool_lock+set}" = set; then :
8053 enableval=$enable_libtool_lock;
8056 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8058 # Some flags need to be propagated to the compiler or linker for good
8059 # libtool support.
8060 case $host in
8061 ia64-*-hpux*)
8062 # Find out which ABI we are using.
8063 echo 'int i;' > conftest.$ac_ext
8064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8065 (eval $ac_compile) 2>&5
8066 ac_status=$?
8067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8068 test $ac_status = 0; }; then
8069 case `/usr/bin/file conftest.$ac_objext` in
8070 *ELF-32*)
8071 HPUX_IA64_MODE="32"
8073 *ELF-64*)
8074 HPUX_IA64_MODE="64"
8076 esac
8078 rm -rf conftest*
8080 *-*-irix6*)
8081 # Find out which ABI we are using.
8082 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8084 (eval $ac_compile) 2>&5
8085 ac_status=$?
8086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087 test $ac_status = 0; }; then
8088 if test "$lt_cv_prog_gnu_ld" = yes; then
8089 case `/usr/bin/file conftest.$ac_objext` in
8090 *32-bit*)
8091 LD="${LD-ld} -melf32bsmip"
8093 *N32*)
8094 LD="${LD-ld} -melf32bmipn32"
8096 *64-bit*)
8097 LD="${LD-ld} -melf64bmip"
8099 esac
8100 else
8101 case `/usr/bin/file conftest.$ac_objext` in
8102 *32-bit*)
8103 LD="${LD-ld} -32"
8105 *N32*)
8106 LD="${LD-ld} -n32"
8108 *64-bit*)
8109 LD="${LD-ld} -64"
8111 esac
8114 rm -rf conftest*
8117 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8118 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8119 # Find out which ABI we are using.
8120 echo 'int i;' > conftest.$ac_ext
8121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8122 (eval $ac_compile) 2>&5
8123 ac_status=$?
8124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8125 test $ac_status = 0; }; then
8126 case `/usr/bin/file conftest.o` in
8127 *32-bit*)
8128 case $host in
8129 x86_64-*kfreebsd*-gnu)
8130 LD="${LD-ld} -m elf_i386_fbsd"
8132 x86_64-*linux*)
8133 case `/usr/bin/file conftest.o` in
8134 *x86-64*)
8135 LD="${LD-ld} -m elf32_x86_64"
8138 LD="${LD-ld} -m elf_i386"
8140 esac
8142 powerpc64le-*linux*)
8143 LD="${LD-ld} -m elf32lppclinux"
8145 powerpc64-*linux*)
8146 LD="${LD-ld} -m elf32ppclinux"
8148 s390x-*linux*)
8149 LD="${LD-ld} -m elf_s390"
8151 sparc64-*linux*)
8152 LD="${LD-ld} -m elf32_sparc"
8154 esac
8156 *64-bit*)
8157 case $host in
8158 x86_64-*kfreebsd*-gnu)
8159 LD="${LD-ld} -m elf_x86_64_fbsd"
8161 x86_64-*linux*)
8162 LD="${LD-ld} -m elf_x86_64"
8164 powerpcle-*linux*)
8165 LD="${LD-ld} -m elf64lppc"
8167 powerpc-*linux*)
8168 LD="${LD-ld} -m elf64ppc"
8170 s390*-*linux*|s390*-*tpf*)
8171 LD="${LD-ld} -m elf64_s390"
8173 sparc*-*linux*)
8174 LD="${LD-ld} -m elf64_sparc"
8176 esac
8178 esac
8180 rm -rf conftest*
8183 *-*-sco3.2v5*)
8184 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8185 SAVE_CFLAGS="$CFLAGS"
8186 CFLAGS="$CFLAGS -belf"
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8188 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8189 if ${lt_cv_cc_needs_belf+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 ac_ext=c
8193 ac_cpp='$CPP $CPPFLAGS'
8194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8202 main ()
8206 return 0;
8208 _ACEOF
8209 if ac_fn_c_try_link "$LINENO"; then :
8210 lt_cv_cc_needs_belf=yes
8211 else
8212 lt_cv_cc_needs_belf=no
8214 rm -f core conftest.err conftest.$ac_objext \
8215 conftest$ac_exeext conftest.$ac_ext
8216 ac_ext=c
8217 ac_cpp='$CPP $CPPFLAGS'
8218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8224 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8225 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8226 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8227 CFLAGS="$SAVE_CFLAGS"
8230 sparc*-*solaris*)
8231 # Find out which ABI we are using.
8232 echo 'int i;' > conftest.$ac_ext
8233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8234 (eval $ac_compile) 2>&5
8235 ac_status=$?
8236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8237 test $ac_status = 0; }; then
8238 case `/usr/bin/file conftest.o` in
8239 *64-bit*)
8240 case $lt_cv_prog_gnu_ld in
8241 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8243 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8244 LD="${LD-ld} -64"
8247 esac
8249 esac
8251 rm -rf conftest*
8253 esac
8255 need_locks="$enable_libtool_lock"
8258 case $host_os in
8259 rhapsody* | darwin*)
8260 if test -n "$ac_tool_prefix"; then
8261 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 if test -n "$DSYMUTIL"; then
8269 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8282 done
8283 done
8284 IFS=$as_save_IFS
8288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8289 if test -n "$DSYMUTIL"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8291 $as_echo "$DSYMUTIL" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8299 if test -z "$ac_cv_prog_DSYMUTIL"; then
8300 ac_ct_DSYMUTIL=$DSYMUTIL
8301 # Extract the first word of "dsymutil", so it can be a program name with args.
8302 set dummy dsymutil; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 if test -n "$ac_ct_DSYMUTIL"; then
8309 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 break 2
8322 done
8323 done
8324 IFS=$as_save_IFS
8328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8329 if test -n "$ac_ct_DSYMUTIL"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8331 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8332 else
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8337 if test "x$ac_ct_DSYMUTIL" = x; then
8338 DSYMUTIL=":"
8339 else
8340 case $cross_compiling:$ac_tool_warned in
8341 yes:)
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8344 ac_tool_warned=yes ;;
8345 esac
8346 DSYMUTIL=$ac_ct_DSYMUTIL
8348 else
8349 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8352 if test -n "$ac_tool_prefix"; then
8353 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8354 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_prog_NMEDIT+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 if test -n "$NMEDIT"; then
8361 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8374 done
8375 done
8376 IFS=$as_save_IFS
8380 NMEDIT=$ac_cv_prog_NMEDIT
8381 if test -n "$NMEDIT"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8383 $as_echo "$NMEDIT" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8391 if test -z "$ac_cv_prog_NMEDIT"; then
8392 ac_ct_NMEDIT=$NMEDIT
8393 # Extract the first word of "nmedit", so it can be a program name with args.
8394 set dummy nmedit; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 if test -n "$ac_ct_NMEDIT"; then
8401 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8402 else
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 break 2
8414 done
8415 done
8416 IFS=$as_save_IFS
8420 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8421 if test -n "$ac_ct_NMEDIT"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8423 $as_echo "$ac_ct_NMEDIT" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8429 if test "x$ac_ct_NMEDIT" = x; then
8430 NMEDIT=":"
8431 else
8432 case $cross_compiling:$ac_tool_warned in
8433 yes:)
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8436 ac_tool_warned=yes ;;
8437 esac
8438 NMEDIT=$ac_ct_NMEDIT
8440 else
8441 NMEDIT="$ac_cv_prog_NMEDIT"
8444 if test -n "$ac_tool_prefix"; then
8445 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8446 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_LIPO+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 if test -n "$LIPO"; then
8453 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8472 LIPO=$ac_cv_prog_LIPO
8473 if test -n "$LIPO"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8475 $as_echo "$LIPO" >&6; }
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8483 if test -z "$ac_cv_prog_LIPO"; then
8484 ac_ct_LIPO=$LIPO
8485 # Extract the first word of "lipo", so it can be a program name with args.
8486 set dummy lipo; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 if test -n "$ac_ct_LIPO"; then
8493 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8494 else
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_ac_ct_LIPO="lipo"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 break 2
8506 done
8507 done
8508 IFS=$as_save_IFS
8512 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8513 if test -n "$ac_ct_LIPO"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8515 $as_echo "$ac_ct_LIPO" >&6; }
8516 else
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8521 if test "x$ac_ct_LIPO" = x; then
8522 LIPO=":"
8523 else
8524 case $cross_compiling:$ac_tool_warned in
8525 yes:)
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8528 ac_tool_warned=yes ;;
8529 esac
8530 LIPO=$ac_ct_LIPO
8532 else
8533 LIPO="$ac_cv_prog_LIPO"
8536 if test -n "$ac_tool_prefix"; then
8537 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8538 set dummy ${ac_tool_prefix}otool; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_OTOOL+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 if test -n "$OTOOL"; then
8545 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8558 done
8559 done
8560 IFS=$as_save_IFS
8564 OTOOL=$ac_cv_prog_OTOOL
8565 if test -n "$OTOOL"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8567 $as_echo "$OTOOL" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8575 if test -z "$ac_cv_prog_OTOOL"; then
8576 ac_ct_OTOOL=$OTOOL
8577 # Extract the first word of "otool", so it can be a program name with args.
8578 set dummy otool; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 if test -n "$ac_ct_OTOOL"; then
8585 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_ac_ct_OTOOL="otool"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8598 done
8599 done
8600 IFS=$as_save_IFS
8604 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8605 if test -n "$ac_ct_OTOOL"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8607 $as_echo "$ac_ct_OTOOL" >&6; }
8608 else
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8613 if test "x$ac_ct_OTOOL" = x; then
8614 OTOOL=":"
8615 else
8616 case $cross_compiling:$ac_tool_warned in
8617 yes:)
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8620 ac_tool_warned=yes ;;
8621 esac
8622 OTOOL=$ac_ct_OTOOL
8624 else
8625 OTOOL="$ac_cv_prog_OTOOL"
8628 if test -n "$ac_tool_prefix"; then
8629 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8630 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if ${ac_cv_prog_OTOOL64+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 if test -n "$OTOOL64"; then
8637 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8650 done
8651 done
8652 IFS=$as_save_IFS
8656 OTOOL64=$ac_cv_prog_OTOOL64
8657 if test -n "$OTOOL64"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8659 $as_echo "$OTOOL64" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8667 if test -z "$ac_cv_prog_OTOOL64"; then
8668 ac_ct_OTOOL64=$OTOOL64
8669 # Extract the first word of "otool64", so it can be a program name with args.
8670 set dummy otool64; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 if test -n "$ac_ct_OTOOL64"; then
8677 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8678 else
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_prog_ac_ct_OTOOL64="otool64"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8690 done
8691 done
8692 IFS=$as_save_IFS
8696 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8697 if test -n "$ac_ct_OTOOL64"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8699 $as_echo "$ac_ct_OTOOL64" >&6; }
8700 else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8705 if test "x$ac_ct_OTOOL64" = x; then
8706 OTOOL64=":"
8707 else
8708 case $cross_compiling:$ac_tool_warned in
8709 yes:)
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8712 ac_tool_warned=yes ;;
8713 esac
8714 OTOOL64=$ac_ct_OTOOL64
8716 else
8717 OTOOL64="$ac_cv_prog_OTOOL64"
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8747 $as_echo_n "checking for -single_module linker flag... " >&6; }
8748 if ${lt_cv_apple_cc_single_mod+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 lt_cv_apple_cc_single_mod=no
8752 if test -z "${LT_MULTI_MODULE}"; then
8753 # By default we will add the -single_module flag. You can override
8754 # by either setting the environment variable LT_MULTI_MODULE
8755 # non-empty at configure time, or by adding -multi_module to the
8756 # link flags.
8757 rm -rf libconftest.dylib*
8758 echo "int foo(void){return 1;}" > conftest.c
8759 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8760 -dynamiclib -Wl,-single_module conftest.c" >&5
8761 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8762 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8763 _lt_result=$?
8764 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8765 lt_cv_apple_cc_single_mod=yes
8766 else
8767 cat conftest.err >&5
8769 rm -rf libconftest.dylib*
8770 rm -f conftest.*
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8774 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8776 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8777 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 lt_cv_ld_exported_symbols_list=no
8781 save_LDFLAGS=$LDFLAGS
8782 echo "_main" > conftest.sym
8783 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8788 main ()
8792 return 0;
8794 _ACEOF
8795 if ac_fn_c_try_link "$LINENO"; then :
8796 lt_cv_ld_exported_symbols_list=yes
8797 else
8798 lt_cv_ld_exported_symbols_list=no
8800 rm -f core conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8802 LDFLAGS="$save_LDFLAGS"
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8806 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8808 $as_echo_n "checking for -force_load linker flag... " >&6; }
8809 if ${lt_cv_ld_force_load+:} false; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 lt_cv_ld_force_load=no
8813 cat > conftest.c << _LT_EOF
8814 int forced_loaded() { return 2;}
8815 _LT_EOF
8816 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8817 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8818 echo "$AR cru libconftest.a conftest.o" >&5
8819 $AR cru libconftest.a conftest.o 2>&5
8820 cat > conftest.c << _LT_EOF
8821 int main() { return 0;}
8822 _LT_EOF
8823 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8824 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8825 _lt_result=$?
8826 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8827 lt_cv_ld_force_load=yes
8828 else
8829 cat conftest.err >&5
8831 rm -f conftest.err libconftest.a conftest conftest.c
8832 rm -rf conftest.dSYM
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8836 $as_echo "$lt_cv_ld_force_load" >&6; }
8837 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8838 # build without first building modern cctools / linker.
8839 case $host_cpu-$host_os in
8840 *-rhapsody* | *-darwin1.[012])
8841 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8842 *-darwin1.*)
8843 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8844 *-darwin*)
8845 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8846 # deployment target is forced to an earlier version.
8847 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8848 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8850 10.[012][,.]*)
8851 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8855 esac
8857 esac
8858 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8859 _lt_dar_single_mod='$single_module'
8861 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8862 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8863 else
8864 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8866 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8867 _lt_dsymutil='~$DSYMUTIL $lib || :'
8868 else
8869 _lt_dsymutil=
8872 esac
8874 for ac_header in dlfcn.h
8875 do :
8876 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8878 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8879 cat >>confdefs.h <<_ACEOF
8880 #define HAVE_DLFCN_H 1
8881 _ACEOF
8885 done
8892 # Set options
8897 enable_win32_dll=no
8900 # Check whether --enable-shared was given.
8901 if test "${enable_shared+set}" = set; then :
8902 enableval=$enable_shared; p=${PACKAGE-default}
8903 case $enableval in
8904 yes) enable_shared=yes ;;
8905 no) enable_shared=no ;;
8907 enable_shared=no
8908 # Look at the argument we got. We use all the common list separators.
8909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8910 for pkg in $enableval; do
8911 IFS="$lt_save_ifs"
8912 if test "X$pkg" = "X$p"; then
8913 enable_shared=yes
8915 done
8916 IFS="$lt_save_ifs"
8918 esac
8919 else
8920 enable_shared=yes
8931 # Check whether --enable-static was given.
8932 if test "${enable_static+set}" = set; then :
8933 enableval=$enable_static; p=${PACKAGE-default}
8934 case $enableval in
8935 yes) enable_static=yes ;;
8936 no) enable_static=no ;;
8938 enable_static=no
8939 # Look at the argument we got. We use all the common list separators.
8940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8941 for pkg in $enableval; do
8942 IFS="$lt_save_ifs"
8943 if test "X$pkg" = "X$p"; then
8944 enable_static=yes
8946 done
8947 IFS="$lt_save_ifs"
8949 esac
8950 else
8951 enable_static=yes
8963 # Check whether --with-pic was given.
8964 if test "${with_pic+set}" = set; then :
8965 withval=$with_pic; pic_mode="$withval"
8966 else
8967 pic_mode=default
8971 test -z "$pic_mode" && pic_mode=default
8979 # Check whether --enable-fast-install was given.
8980 if test "${enable_fast_install+set}" = set; then :
8981 enableval=$enable_fast_install; p=${PACKAGE-default}
8982 case $enableval in
8983 yes) enable_fast_install=yes ;;
8984 no) enable_fast_install=no ;;
8986 enable_fast_install=no
8987 # Look at the argument we got. We use all the common list separators.
8988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8989 for pkg in $enableval; do
8990 IFS="$lt_save_ifs"
8991 if test "X$pkg" = "X$p"; then
8992 enable_fast_install=yes
8994 done
8995 IFS="$lt_save_ifs"
8997 esac
8998 else
8999 enable_fast_install=yes
9012 # This can be used to rebuild libtool when needed
9013 LIBTOOL_DEPS="$ltmain"
9015 # Always use our own libtool.
9016 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9043 test -z "$LN_S" && LN_S="ln -s"
9058 if test -n "${ZSH_VERSION+set}" ; then
9059 setopt NO_GLOB_SUBST
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9063 $as_echo_n "checking for objdir... " >&6; }
9064 if ${lt_cv_objdir+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 rm -f .libs 2>/dev/null
9068 mkdir .libs 2>/dev/null
9069 if test -d .libs; then
9070 lt_cv_objdir=.libs
9071 else
9072 # MS-DOS does not allow filenames that begin with a dot.
9073 lt_cv_objdir=_libs
9075 rmdir .libs 2>/dev/null
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9078 $as_echo "$lt_cv_objdir" >&6; }
9079 objdir=$lt_cv_objdir
9085 cat >>confdefs.h <<_ACEOF
9086 #define LT_OBJDIR "$lt_cv_objdir/"
9087 _ACEOF
9092 case $host_os in
9093 aix3*)
9094 # AIX sometimes has problems with the GCC collect2 program. For some
9095 # reason, if we set the COLLECT_NAMES environment variable, the problems
9096 # vanish in a puff of smoke.
9097 if test "X${COLLECT_NAMES+set}" != Xset; then
9098 COLLECT_NAMES=
9099 export COLLECT_NAMES
9102 esac
9104 # Global variables:
9105 ofile=libtool
9106 can_build_shared=yes
9108 # All known linkers require a `.a' archive for static linking (except MSVC,
9109 # which needs '.lib').
9110 libext=a
9112 with_gnu_ld="$lt_cv_prog_gnu_ld"
9114 old_CC="$CC"
9115 old_CFLAGS="$CFLAGS"
9117 # Set sane defaults for various variables
9118 test -z "$CC" && CC=cc
9119 test -z "$LTCC" && LTCC=$CC
9120 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9121 test -z "$LD" && LD=ld
9122 test -z "$ac_objext" && ac_objext=o
9124 for cc_temp in $compiler""; do
9125 case $cc_temp in
9126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9128 \-*) ;;
9129 *) break;;
9130 esac
9131 done
9132 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9135 # Only perform the check for file, if the check method requires it
9136 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9137 case $deplibs_check_method in
9138 file_magic*)
9139 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9141 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9142 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 case $MAGIC_CMD in
9146 [\\/*] | ?:[\\/]*)
9147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9150 lt_save_MAGIC_CMD="$MAGIC_CMD"
9151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9153 for ac_dir in $ac_dummy; do
9154 IFS="$lt_save_ifs"
9155 test -z "$ac_dir" && ac_dir=.
9156 if test -f $ac_dir/${ac_tool_prefix}file; then
9157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9158 if test -n "$file_magic_test_file"; then
9159 case $deplibs_check_method in
9160 "file_magic "*)
9161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9164 $EGREP "$file_magic_regex" > /dev/null; then
9166 else
9167 cat <<_LT_EOF 1>&2
9169 *** Warning: the command libtool uses to detect shared libraries,
9170 *** $file_magic_cmd, produces output that libtool cannot recognize.
9171 *** The result is that libtool may fail to recognize shared libraries
9172 *** as such. This will affect the creation of libtool libraries that
9173 *** depend on shared libraries, but programs linked with such libtool
9174 *** libraries will work regardless of this problem. Nevertheless, you
9175 *** may want to report the problem to your system manager and/or to
9176 *** bug-libtool@gnu.org
9178 _LT_EOF
9179 fi ;;
9180 esac
9182 break
9184 done
9185 IFS="$lt_save_ifs"
9186 MAGIC_CMD="$lt_save_MAGIC_CMD"
9188 esac
9191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9192 if test -n "$MAGIC_CMD"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9194 $as_echo "$MAGIC_CMD" >&6; }
9195 else
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197 $as_echo "no" >&6; }
9204 if test -z "$lt_cv_path_MAGIC_CMD"; then
9205 if test -n "$ac_tool_prefix"; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9207 $as_echo_n "checking for file... " >&6; }
9208 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 case $MAGIC_CMD in
9212 [\\/*] | ?:[\\/]*)
9213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9216 lt_save_MAGIC_CMD="$MAGIC_CMD"
9217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9219 for ac_dir in $ac_dummy; do
9220 IFS="$lt_save_ifs"
9221 test -z "$ac_dir" && ac_dir=.
9222 if test -f $ac_dir/file; then
9223 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9224 if test -n "$file_magic_test_file"; then
9225 case $deplibs_check_method in
9226 "file_magic "*)
9227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9230 $EGREP "$file_magic_regex" > /dev/null; then
9232 else
9233 cat <<_LT_EOF 1>&2
9235 *** Warning: the command libtool uses to detect shared libraries,
9236 *** $file_magic_cmd, produces output that libtool cannot recognize.
9237 *** The result is that libtool may fail to recognize shared libraries
9238 *** as such. This will affect the creation of libtool libraries that
9239 *** depend on shared libraries, but programs linked with such libtool
9240 *** libraries will work regardless of this problem. Nevertheless, you
9241 *** may want to report the problem to your system manager and/or to
9242 *** bug-libtool@gnu.org
9244 _LT_EOF
9245 fi ;;
9246 esac
9248 break
9250 done
9251 IFS="$lt_save_ifs"
9252 MAGIC_CMD="$lt_save_MAGIC_CMD"
9254 esac
9257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9258 if test -n "$MAGIC_CMD"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9260 $as_echo "$MAGIC_CMD" >&6; }
9261 else
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9267 else
9268 MAGIC_CMD=:
9274 esac
9276 # Use C for the default configuration in the libtool script
9278 lt_save_CC="$CC"
9279 ac_ext=c
9280 ac_cpp='$CPP $CPPFLAGS'
9281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9286 # Source file extension for C test sources.
9287 ac_ext=c
9289 # Object file extension for compiled C test sources.
9290 objext=o
9291 objext=$objext
9293 # Code to be used in simple compile tests
9294 lt_simple_compile_test_code="int some_variable = 0;"
9296 # Code to be used in simple link tests
9297 lt_simple_link_test_code='int main(){return(0);}'
9305 # If no C compiler was specified, use CC.
9306 LTCC=${LTCC-"$CC"}
9308 # If no C compiler flags were specified, use CFLAGS.
9309 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9311 # Allow CC to be a program name with arguments.
9312 compiler=$CC
9314 # Save the default compiler, since it gets overwritten when the other
9315 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9316 compiler_DEFAULT=$CC
9318 # save warnings/boilerplate of simple test code
9319 ac_outfile=conftest.$ac_objext
9320 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9321 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9322 _lt_compiler_boilerplate=`cat conftest.err`
9323 $RM conftest*
9325 ac_outfile=conftest.$ac_objext
9326 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9327 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9328 _lt_linker_boilerplate=`cat conftest.err`
9329 $RM -r conftest*
9332 ## CAVEAT EMPTOR:
9333 ## There is no encapsulation within the following macros, do not change
9334 ## the running order or otherwise move them around unless you know exactly
9335 ## what you are doing...
9336 if test -n "$compiler"; then
9338 lt_prog_compiler_no_builtin_flag=
9340 if test "$GCC" = yes; then
9341 case $cc_basename in
9342 nvcc*)
9343 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9345 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9346 esac
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9349 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9350 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 lt_cv_prog_compiler_rtti_exceptions=no
9354 ac_outfile=conftest.$ac_objext
9355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9356 lt_compiler_flag="-fno-rtti -fno-exceptions"
9357 # Insert the option either (1) after the last *FLAGS variable, or
9358 # (2) before a word containing "conftest.", or (3) at the end.
9359 # Note that $ac_compile itself does not contain backslashes and begins
9360 # with a dollar sign (not a hyphen), so the echo should work correctly.
9361 # The option is referenced via a variable to avoid confusing sed.
9362 lt_compile=`echo "$ac_compile" | $SED \
9363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9365 -e 's:$: $lt_compiler_flag:'`
9366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9367 (eval "$lt_compile" 2>conftest.err)
9368 ac_status=$?
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 if (exit $ac_status) && test -s "$ac_outfile"; then
9372 # The compiler can only warn and ignore the option if not recognized
9373 # So say no if there are warnings other than the usual output.
9374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9377 lt_cv_prog_compiler_rtti_exceptions=yes
9380 $RM conftest*
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9384 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9386 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9387 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9388 else
9399 lt_prog_compiler_wl=
9400 lt_prog_compiler_pic=
9401 lt_prog_compiler_static=
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9404 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9406 if test "$GCC" = yes; then
9407 lt_prog_compiler_wl='-Wl,'
9408 lt_prog_compiler_static='-static'
9410 case $host_os in
9411 aix*)
9412 # All AIX code is PIC.
9413 if test "$host_cpu" = ia64; then
9414 # AIX 5 now supports IA64 processor
9415 lt_prog_compiler_static='-Bstatic'
9417 lt_prog_compiler_pic='-fPIC'
9420 amigaos*)
9421 case $host_cpu in
9422 powerpc)
9423 # see comment about AmigaOS4 .so support
9424 lt_prog_compiler_pic='-fPIC'
9426 m68k)
9427 # FIXME: we need at least 68020 code to build shared libraries, but
9428 # adding the `-m68020' flag to GCC prevents building anything better,
9429 # like `-m68040'.
9430 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9432 esac
9435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9436 # PIC is the default for these OSes.
9439 mingw* | cygwin* | pw32* | os2* | cegcc*)
9440 # This hack is so that the source file can tell whether it is being
9441 # built for inclusion in a dll (and should export symbols for example).
9442 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9443 # (--disable-auto-import) libraries
9444 lt_prog_compiler_pic='-DDLL_EXPORT'
9447 darwin* | rhapsody*)
9448 # PIC is the default on this platform
9449 # Common symbols not allowed in MH_DYLIB files
9450 lt_prog_compiler_pic='-fno-common'
9453 haiku*)
9454 # PIC is the default for Haiku.
9455 # The "-static" flag exists, but is broken.
9456 lt_prog_compiler_static=
9459 hpux*)
9460 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9461 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9462 # sets the default TLS model and affects inlining.
9463 case $host_cpu in
9464 hppa*64*)
9465 # +Z the default
9468 lt_prog_compiler_pic='-fPIC'
9470 esac
9473 interix[3-9]*)
9474 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9475 # Instead, we relocate shared libraries at runtime.
9478 msdosdjgpp*)
9479 # Just because we use GCC doesn't mean we suddenly get shared libraries
9480 # on systems that don't support them.
9481 lt_prog_compiler_can_build_shared=no
9482 enable_shared=no
9485 *nto* | *qnx*)
9486 # QNX uses GNU C++, but need to define -shared option too, otherwise
9487 # it will coredump.
9488 lt_prog_compiler_pic='-fPIC -shared'
9491 sysv4*MP*)
9492 if test -d /usr/nec; then
9493 lt_prog_compiler_pic=-Kconform_pic
9498 lt_prog_compiler_pic='-fPIC'
9500 esac
9502 case $cc_basename in
9503 nvcc*) # Cuda Compiler Driver 2.2
9504 lt_prog_compiler_wl='-Xlinker '
9505 lt_prog_compiler_pic='-Xcompiler -fPIC'
9507 esac
9508 else
9509 # PORTME Check for flag to pass linker flags through the system compiler.
9510 case $host_os in
9511 aix*)
9512 lt_prog_compiler_wl='-Wl,'
9513 if test "$host_cpu" = ia64; then
9514 # AIX 5 now supports IA64 processor
9515 lt_prog_compiler_static='-Bstatic'
9516 else
9517 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9521 mingw* | cygwin* | pw32* | os2* | cegcc*)
9522 # This hack is so that the source file can tell whether it is being
9523 # built for inclusion in a dll (and should export symbols for example).
9524 lt_prog_compiler_pic='-DDLL_EXPORT'
9527 hpux9* | hpux10* | hpux11*)
9528 lt_prog_compiler_wl='-Wl,'
9529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9530 # not for PA HP-UX.
9531 case $host_cpu in
9532 hppa*64*|ia64*)
9533 # +Z the default
9536 lt_prog_compiler_pic='+Z'
9538 esac
9539 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9540 lt_prog_compiler_static='${wl}-a ${wl}archive'
9543 irix5* | irix6* | nonstopux*)
9544 lt_prog_compiler_wl='-Wl,'
9545 # PIC (with -KPIC) is the default.
9546 lt_prog_compiler_static='-non_shared'
9549 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9550 case $cc_basename in
9551 # old Intel for x86_64 which still supported -KPIC.
9552 ecc*)
9553 lt_prog_compiler_wl='-Wl,'
9554 lt_prog_compiler_pic='-KPIC'
9555 lt_prog_compiler_static='-static'
9557 # icc used to be incompatible with GCC.
9558 # ICC 10 doesn't accept -KPIC any more.
9559 icc* | ifort*)
9560 lt_prog_compiler_wl='-Wl,'
9561 lt_prog_compiler_pic='-fPIC'
9562 lt_prog_compiler_static='-static'
9564 # Lahey Fortran 8.1.
9565 lf95*)
9566 lt_prog_compiler_wl='-Wl,'
9567 lt_prog_compiler_pic='--shared'
9568 lt_prog_compiler_static='--static'
9570 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9571 # Portland Group compilers (*not* the Pentium gcc compiler,
9572 # which looks to be a dead project)
9573 lt_prog_compiler_wl='-Wl,'
9574 lt_prog_compiler_pic='-fpic'
9575 lt_prog_compiler_static='-Bstatic'
9577 ccc*)
9578 lt_prog_compiler_wl='-Wl,'
9579 # All Alpha code is PIC.
9580 lt_prog_compiler_static='-non_shared'
9582 xl* | bgxl* | bgf* | mpixl*)
9583 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9584 lt_prog_compiler_wl='-Wl,'
9585 lt_prog_compiler_pic='-qpic'
9586 lt_prog_compiler_static='-qstaticlink'
9589 case `$CC -V 2>&1 | sed 5q` in
9590 *Sun\ F* | *Sun*Fortran*)
9591 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9592 lt_prog_compiler_pic='-KPIC'
9593 lt_prog_compiler_static='-Bstatic'
9594 lt_prog_compiler_wl=''
9596 *Sun\ C*)
9597 # Sun C 5.9
9598 lt_prog_compiler_pic='-KPIC'
9599 lt_prog_compiler_static='-Bstatic'
9600 lt_prog_compiler_wl='-Wl,'
9602 esac
9604 esac
9607 newsos6)
9608 lt_prog_compiler_pic='-KPIC'
9609 lt_prog_compiler_static='-Bstatic'
9612 *nto* | *qnx*)
9613 # QNX uses GNU C++, but need to define -shared option too, otherwise
9614 # it will coredump.
9615 lt_prog_compiler_pic='-fPIC -shared'
9618 osf3* | osf4* | osf5*)
9619 lt_prog_compiler_wl='-Wl,'
9620 # All OSF/1 code is PIC.
9621 lt_prog_compiler_static='-non_shared'
9624 rdos*)
9625 lt_prog_compiler_static='-non_shared'
9628 solaris*)
9629 lt_prog_compiler_pic='-KPIC'
9630 lt_prog_compiler_static='-Bstatic'
9631 case $cc_basename in
9632 f77* | f90* | f95*)
9633 lt_prog_compiler_wl='-Qoption ld ';;
9635 lt_prog_compiler_wl='-Wl,';;
9636 esac
9639 sunos4*)
9640 lt_prog_compiler_wl='-Qoption ld '
9641 lt_prog_compiler_pic='-PIC'
9642 lt_prog_compiler_static='-Bstatic'
9645 sysv4 | sysv4.2uw2* | sysv4.3*)
9646 lt_prog_compiler_wl='-Wl,'
9647 lt_prog_compiler_pic='-KPIC'
9648 lt_prog_compiler_static='-Bstatic'
9651 sysv4*MP*)
9652 if test -d /usr/nec ;then
9653 lt_prog_compiler_pic='-Kconform_pic'
9654 lt_prog_compiler_static='-Bstatic'
9658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9659 lt_prog_compiler_wl='-Wl,'
9660 lt_prog_compiler_pic='-KPIC'
9661 lt_prog_compiler_static='-Bstatic'
9664 unicos*)
9665 lt_prog_compiler_wl='-Wl,'
9666 lt_prog_compiler_can_build_shared=no
9669 uts4*)
9670 lt_prog_compiler_pic='-pic'
9671 lt_prog_compiler_static='-Bstatic'
9675 lt_prog_compiler_can_build_shared=no
9677 esac
9680 case $host_os in
9681 # For platforms which do not support PIC, -DPIC is meaningless:
9682 *djgpp*)
9683 lt_prog_compiler_pic=
9686 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9688 esac
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9690 $as_echo "$lt_prog_compiler_pic" >&6; }
9698 # Check to make sure the PIC flag actually works.
9700 if test -n "$lt_prog_compiler_pic"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9702 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9703 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 lt_cv_prog_compiler_pic_works=no
9707 ac_outfile=conftest.$ac_objext
9708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9709 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9710 # Insert the option either (1) after the last *FLAGS variable, or
9711 # (2) before a word containing "conftest.", or (3) at the end.
9712 # Note that $ac_compile itself does not contain backslashes and begins
9713 # with a dollar sign (not a hyphen), so the echo should work correctly.
9714 # The option is referenced via a variable to avoid confusing sed.
9715 lt_compile=`echo "$ac_compile" | $SED \
9716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9718 -e 's:$: $lt_compiler_flag:'`
9719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9720 (eval "$lt_compile" 2>conftest.err)
9721 ac_status=$?
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 if (exit $ac_status) && test -s "$ac_outfile"; then
9725 # The compiler can only warn and ignore the option if not recognized
9726 # So say no if there are warnings other than the usual output.
9727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9730 lt_cv_prog_compiler_pic_works=yes
9733 $RM conftest*
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9737 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9739 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9740 case $lt_prog_compiler_pic in
9741 "" | " "*) ;;
9742 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9743 esac
9744 else
9745 lt_prog_compiler_pic=
9746 lt_prog_compiler_can_build_shared=no
9757 # Check to make sure the static flag actually works.
9759 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9761 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9762 if ${lt_cv_prog_compiler_static_works+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 lt_cv_prog_compiler_static_works=no
9766 save_LDFLAGS="$LDFLAGS"
9767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9768 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9770 # The linker can only warn and ignore the option if not recognized
9771 # So say no if there are warnings
9772 if test -s conftest.err; then
9773 # Append any errors to the config.log.
9774 cat conftest.err 1>&5
9775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777 if diff conftest.exp conftest.er2 >/dev/null; then
9778 lt_cv_prog_compiler_static_works=yes
9780 else
9781 lt_cv_prog_compiler_static_works=yes
9784 $RM -r conftest*
9785 LDFLAGS="$save_LDFLAGS"
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9789 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9791 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9793 else
9794 lt_prog_compiler_static=
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9804 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9805 if ${lt_cv_prog_compiler_c_o+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 lt_cv_prog_compiler_c_o=no
9809 $RM -r conftest 2>/dev/null
9810 mkdir conftest
9811 cd conftest
9812 mkdir out
9813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815 lt_compiler_flag="-o out/conftest2.$ac_objext"
9816 # Insert the option either (1) after the last *FLAGS variable, or
9817 # (2) before a word containing "conftest.", or (3) at the end.
9818 # Note that $ac_compile itself does not contain backslashes and begins
9819 # with a dollar sign (not a hyphen), so the echo should work correctly.
9820 lt_compile=`echo "$ac_compile" | $SED \
9821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9823 -e 's:$: $lt_compiler_flag:'`
9824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9825 (eval "$lt_compile" 2>out/conftest.err)
9826 ac_status=$?
9827 cat out/conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9830 then
9831 # The compiler can only warn and ignore the option if not recognized
9832 # So say no if there are warnings
9833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9834 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9835 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9836 lt_cv_prog_compiler_c_o=yes
9839 chmod u+w . 2>&5
9840 $RM conftest*
9841 # SGI C++ compiler will create directory out/ii_files/ for
9842 # template instantiation
9843 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9844 $RM out/* && rmdir out
9845 cd ..
9846 $RM -r conftest
9847 $RM conftest*
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9851 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9859 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9860 if ${lt_cv_prog_compiler_c_o+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862 else
9863 lt_cv_prog_compiler_c_o=no
9864 $RM -r conftest 2>/dev/null
9865 mkdir conftest
9866 cd conftest
9867 mkdir out
9868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9870 lt_compiler_flag="-o out/conftest2.$ac_objext"
9871 # Insert the option either (1) after the last *FLAGS variable, or
9872 # (2) before a word containing "conftest.", or (3) at the end.
9873 # Note that $ac_compile itself does not contain backslashes and begins
9874 # with a dollar sign (not a hyphen), so the echo should work correctly.
9875 lt_compile=`echo "$ac_compile" | $SED \
9876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9878 -e 's:$: $lt_compiler_flag:'`
9879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9880 (eval "$lt_compile" 2>out/conftest.err)
9881 ac_status=$?
9882 cat out/conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9885 then
9886 # The compiler can only warn and ignore the option if not recognized
9887 # So say no if there are warnings
9888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9891 lt_cv_prog_compiler_c_o=yes
9894 chmod u+w . 2>&5
9895 $RM conftest*
9896 # SGI C++ compiler will create directory out/ii_files/ for
9897 # template instantiation
9898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9899 $RM out/* && rmdir out
9900 cd ..
9901 $RM -r conftest
9902 $RM conftest*
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9906 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9911 hard_links="nottested"
9912 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9913 # do not overwrite the value of need_locks provided by the user
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9915 $as_echo_n "checking if we can lock with hard links... " >&6; }
9916 hard_links=yes
9917 $RM conftest*
9918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9919 touch conftest.a
9920 ln conftest.a conftest.b 2>&5 || hard_links=no
9921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9923 $as_echo "$hard_links" >&6; }
9924 if test "$hard_links" = no; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9926 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9927 need_locks=warn
9929 else
9930 need_locks=no
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9939 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9941 runpath_var=
9942 allow_undefined_flag=
9943 always_export_symbols=no
9944 archive_cmds=
9945 archive_expsym_cmds=
9946 compiler_needs_object=no
9947 enable_shared_with_static_runtimes=no
9948 export_dynamic_flag_spec=
9949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9950 hardcode_automatic=no
9951 hardcode_direct=no
9952 hardcode_direct_absolute=no
9953 hardcode_libdir_flag_spec=
9954 hardcode_libdir_flag_spec_ld=
9955 hardcode_libdir_separator=
9956 hardcode_minus_L=no
9957 hardcode_shlibpath_var=unsupported
9958 inherit_rpath=no
9959 link_all_deplibs=unknown
9960 module_cmds=
9961 module_expsym_cmds=
9962 old_archive_from_new_cmds=
9963 old_archive_from_expsyms_cmds=
9964 thread_safe_flag_spec=
9965 whole_archive_flag_spec=
9966 # include_expsyms should be a list of space-separated symbols to be *always*
9967 # included in the symbol list
9968 include_expsyms=
9969 # exclude_expsyms can be an extended regexp of symbols to exclude
9970 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9971 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9972 # as well as any symbol that contains `d'.
9973 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9974 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9975 # platforms (ab)use it in PIC code, but their linkers get confused if
9976 # the symbol is explicitly referenced. Since portable code cannot
9977 # rely on this symbol name, it's probably fine to never include it in
9978 # preloaded symbol tables.
9979 # Exclude shared library initialization/finalization symbols.
9980 extract_expsyms_cmds=
9982 case $host_os in
9983 cygwin* | mingw* | pw32* | cegcc*)
9984 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9985 # When not using gcc, we currently assume that we are using
9986 # Microsoft Visual C++.
9987 if test "$GCC" != yes; then
9988 with_gnu_ld=no
9991 interix*)
9992 # we just hope/assume this is gcc and not c89 (= MSVC++)
9993 with_gnu_ld=yes
9995 openbsd*)
9996 with_gnu_ld=no
9998 esac
10000 ld_shlibs=yes
10002 # On some targets, GNU ld is compatible enough with the native linker
10003 # that we're better off using the native interface for both.
10004 lt_use_gnu_ld_interface=no
10005 if test "$with_gnu_ld" = yes; then
10006 case $host_os in
10007 aix*)
10008 # The AIX port of GNU ld has always aspired to compatibility
10009 # with the native linker. However, as the warning in the GNU ld
10010 # block says, versions before 2.19.5* couldn't really create working
10011 # shared libraries, regardless of the interface used.
10012 case `$LD -v 2>&1` in
10013 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10014 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10015 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10017 lt_use_gnu_ld_interface=yes
10019 esac
10022 lt_use_gnu_ld_interface=yes
10024 esac
10027 if test "$lt_use_gnu_ld_interface" = yes; then
10028 # If archive_cmds runs LD, not CC, wlarc should be empty
10029 wlarc='${wl}'
10031 # Set some defaults for GNU ld with shared library support. These
10032 # are reset later if shared libraries are not supported. Putting them
10033 # here allows them to be overridden if necessary.
10034 runpath_var=LD_RUN_PATH
10035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10036 export_dynamic_flag_spec='${wl}--export-dynamic'
10037 # ancient GNU ld didn't support --whole-archive et. al.
10038 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10039 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10040 else
10041 whole_archive_flag_spec=
10043 supports_anon_versioning=no
10044 case `$LD -v 2>&1` in
10045 *GNU\ gold*) supports_anon_versioning=yes ;;
10046 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10047 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10048 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10049 *\ 2.11.*) ;; # other 2.11 versions
10050 *) supports_anon_versioning=yes ;;
10051 esac
10053 # See if GNU ld supports shared libraries.
10054 case $host_os in
10055 aix[3-9]*)
10056 # On AIX/PPC, the GNU linker is very broken
10057 if test "$host_cpu" != ia64; then
10058 ld_shlibs=no
10059 cat <<_LT_EOF 1>&2
10061 *** Warning: the GNU linker, at least up to release 2.19, is reported
10062 *** to be unable to reliably create shared libraries on AIX.
10063 *** Therefore, libtool is disabling shared libraries support. If you
10064 *** really care for shared libraries, you may want to install binutils
10065 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10066 *** You will then need to restart the configuration process.
10068 _LT_EOF
10072 amigaos*)
10073 case $host_cpu in
10074 powerpc)
10075 # see comment about AmigaOS4 .so support
10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10077 archive_expsym_cmds=''
10079 m68k)
10080 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)'
10081 hardcode_libdir_flag_spec='-L$libdir'
10082 hardcode_minus_L=yes
10084 esac
10087 beos*)
10088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10089 allow_undefined_flag=unsupported
10090 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10091 # support --undefined. This deserves some investigation. FIXME
10092 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10093 else
10094 ld_shlibs=no
10098 cygwin* | mingw* | pw32* | cegcc*)
10099 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10100 # as there is no search path for DLLs.
10101 hardcode_libdir_flag_spec='-L$libdir'
10102 export_dynamic_flag_spec='${wl}--export-all-symbols'
10103 allow_undefined_flag=unsupported
10104 always_export_symbols=no
10105 enable_shared_with_static_runtimes=yes
10106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10108 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10110 # If the export-symbols file already is a .def file (1st line
10111 # is EXPORTS), use it as is; otherwise, prepend...
10112 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10113 cp $export_symbols $output_objdir/$soname.def;
10114 else
10115 echo EXPORTS > $output_objdir/$soname.def;
10116 cat $export_symbols >> $output_objdir/$soname.def;
10118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10119 else
10120 ld_shlibs=no
10124 haiku*)
10125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10126 link_all_deplibs=yes
10129 interix[3-9]*)
10130 hardcode_direct=no
10131 hardcode_shlibpath_var=no
10132 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10133 export_dynamic_flag_spec='${wl}-E'
10134 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10135 # Instead, shared libraries are loaded at an image base (0x10000000 by
10136 # default) and relocated if they conflict, which is a slow very memory
10137 # consuming and fragmenting process. To avoid this, we pick a random,
10138 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10139 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10140 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10141 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'
10144 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10145 tmp_diet=no
10146 if test "$host_os" = linux-dietlibc; then
10147 case $cc_basename in
10148 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10149 esac
10151 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10152 && test "$tmp_diet" = no
10153 then
10154 tmp_addflag=' $pic_flag'
10155 tmp_sharedflag='-shared'
10156 case $cc_basename,$host_cpu in
10157 pgcc*) # Portland Group C compiler
10158 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'
10159 tmp_addflag=' $pic_flag'
10161 pgf77* | pgf90* | pgf95* | pgfortran*)
10162 # Portland Group f77 and f90 compilers
10163 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'
10164 tmp_addflag=' $pic_flag -Mnomain' ;;
10165 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10166 tmp_addflag=' -i_dynamic' ;;
10167 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10168 tmp_addflag=' -i_dynamic -nofor_main' ;;
10169 ifc* | ifort*) # Intel Fortran compiler
10170 tmp_addflag=' -nofor_main' ;;
10171 lf95*) # Lahey Fortran 8.1
10172 whole_archive_flag_spec=
10173 tmp_sharedflag='--shared' ;;
10174 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10175 tmp_sharedflag='-qmkshrobj'
10176 tmp_addflag= ;;
10177 nvcc*) # Cuda Compiler Driver 2.2
10178 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'
10179 compiler_needs_object=yes
10181 esac
10182 case `$CC -V 2>&1 | sed 5q` in
10183 *Sun\ C*) # Sun C 5.9
10184 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'
10185 compiler_needs_object=yes
10186 tmp_sharedflag='-G' ;;
10187 *Sun\ F*) # Sun Fortran 8.3
10188 tmp_sharedflag='-G' ;;
10189 esac
10190 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10192 if test "x$supports_anon_versioning" = xyes; then
10193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10195 echo "local: *; };" >> $output_objdir/$libname.ver~
10196 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10199 case $cc_basename in
10200 xlf* | bgf* | bgxlf* | mpixlf*)
10201 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10202 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10203 hardcode_libdir_flag_spec=
10204 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10205 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10206 if test "x$supports_anon_versioning" = xyes; then
10207 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10209 echo "local: *; };" >> $output_objdir/$libname.ver~
10210 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10213 esac
10214 else
10215 ld_shlibs=no
10219 netbsd*)
10220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10221 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10222 wlarc=
10223 else
10224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10229 solaris*)
10230 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10231 ld_shlibs=no
10232 cat <<_LT_EOF 1>&2
10234 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10235 *** create shared libraries on Solaris systems. Therefore, libtool
10236 *** is disabling shared libraries support. We urge you to upgrade GNU
10237 *** binutils to release 2.9.1 or newer. Another option is to modify
10238 *** your PATH or compiler configuration so that the native linker is
10239 *** used, and then restart.
10241 _LT_EOF
10242 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10245 else
10246 ld_shlibs=no
10250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10251 case `$LD -v 2>&1` in
10252 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10253 ld_shlibs=no
10254 cat <<_LT_EOF 1>&2
10256 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10257 *** reliably create shared libraries on SCO systems. Therefore, libtool
10258 *** is disabling shared libraries support. We urge you to upgrade GNU
10259 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10260 *** your PATH or compiler configuration so that the native linker is
10261 *** used, and then restart.
10263 _LT_EOF
10266 # For security reasons, it is highly recommended that you always
10267 # use absolute paths for naming shared libraries, and exclude the
10268 # DT_RUNPATH tag from executables and libraries. But doing so
10269 # requires that you compile everything twice, which is a pain.
10270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10274 else
10275 ld_shlibs=no
10278 esac
10281 sunos4*)
10282 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10283 wlarc=
10284 hardcode_direct=yes
10285 hardcode_shlibpath_var=no
10289 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10292 else
10293 ld_shlibs=no
10296 esac
10298 if test "$ld_shlibs" = no; then
10299 runpath_var=
10300 hardcode_libdir_flag_spec=
10301 export_dynamic_flag_spec=
10302 whole_archive_flag_spec=
10304 else
10305 # PORTME fill in a description of your system's linker (not GNU ld)
10306 case $host_os in
10307 aix3*)
10308 allow_undefined_flag=unsupported
10309 always_export_symbols=yes
10310 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'
10311 # Note: this linker hardcodes the directories in LIBPATH if there
10312 # are no directories specified by -L.
10313 hardcode_minus_L=yes
10314 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10315 # Neither direct hardcoding nor static linking is supported with a
10316 # broken collect2.
10317 hardcode_direct=unsupported
10321 aix[4-9]*)
10322 if test "$host_cpu" = ia64; then
10323 # On IA64, the linker does run time linking by default, so we don't
10324 # have to do anything special.
10325 aix_use_runtimelinking=no
10326 exp_sym_flag='-Bexport'
10327 no_entry_flag=""
10328 else
10329 # If we're using GNU nm, then we don't want the "-C" option.
10330 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10331 # Also, AIX nm treats weak defined symbols like other global
10332 # defined symbols, whereas GNU nm marks them as "W".
10333 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10334 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'
10335 else
10336 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10338 aix_use_runtimelinking=no
10340 # Test if we are trying to use run time linking or normal
10341 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10342 # need to do runtime linking.
10343 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10344 for ld_flag in $LDFLAGS; do
10345 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10346 aix_use_runtimelinking=yes
10347 break
10349 done
10351 esac
10353 exp_sym_flag='-bexport'
10354 no_entry_flag='-bnoentry'
10357 # When large executables or shared objects are built, AIX ld can
10358 # have problems creating the table of contents. If linking a library
10359 # or program results in "error TOC overflow" add -mminimal-toc to
10360 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10361 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10363 archive_cmds=''
10364 hardcode_direct=yes
10365 hardcode_direct_absolute=yes
10366 hardcode_libdir_separator=':'
10367 link_all_deplibs=yes
10368 file_list_spec='${wl}-f,'
10370 if test "$GCC" = yes; then
10371 case $host_os in aix4.[012]|aix4.[012].*)
10372 # We only want to do this on AIX 4.2 and lower, the check
10373 # below for broken collect2 doesn't work under 4.3+
10374 collect2name=`${CC} -print-prog-name=collect2`
10375 if test -f "$collect2name" &&
10376 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10377 then
10378 # We have reworked collect2
10380 else
10381 # We have old collect2
10382 hardcode_direct=unsupported
10383 # It fails to find uninstalled libraries when the uninstalled
10384 # path is not listed in the libpath. Setting hardcode_minus_L
10385 # to unsupported forces relinking
10386 hardcode_minus_L=yes
10387 hardcode_libdir_flag_spec='-L$libdir'
10388 hardcode_libdir_separator=
10391 esac
10392 shared_flag='-shared'
10393 if test "$aix_use_runtimelinking" = yes; then
10394 shared_flag="$shared_flag "'${wl}-G'
10396 else
10397 # not using gcc
10398 if test "$host_cpu" = ia64; then
10399 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10400 # chokes on -Wl,-G. The following line is correct:
10401 shared_flag='-G'
10402 else
10403 if test "$aix_use_runtimelinking" = yes; then
10404 shared_flag='${wl}-G'
10405 else
10406 shared_flag='${wl}-bM:SRE'
10411 export_dynamic_flag_spec='${wl}-bexpall'
10412 # It seems that -bexpall does not export symbols beginning with
10413 # underscore (_), so it is better to generate a list of symbols to export.
10414 always_export_symbols=yes
10415 if test "$aix_use_runtimelinking" = yes; then
10416 # Warning - without using the other runtime loading flags (-brtl),
10417 # -berok will link without error, but may produce a broken library.
10418 allow_undefined_flag='-berok'
10419 # Determine the default libpath from the value encoded in an
10420 # empty executable.
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10425 main ()
10429 return 0;
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"; then :
10434 lt_aix_libpath_sed='
10435 /Import File Strings/,/^$/ {
10436 /^0/ {
10437 s/^0 *\(.*\)$/\1/
10441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10442 # Check for a 64-bit object if we didn't find anything.
10443 if test -z "$aix_libpath"; then
10444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10447 rm -f core conftest.err conftest.$ac_objext \
10448 conftest$ac_exeext conftest.$ac_ext
10449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10451 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10452 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"
10453 else
10454 if test "$host_cpu" = ia64; then
10455 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10456 allow_undefined_flag="-z nodefs"
10457 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"
10458 else
10459 # Determine the default libpath from the value encoded in an
10460 # empty executable.
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10465 main ()
10469 return 0;
10471 _ACEOF
10472 if ac_fn_c_try_link "$LINENO"; then :
10474 lt_aix_libpath_sed='
10475 /Import File Strings/,/^$/ {
10476 /^0/ {
10477 s/^0 *\(.*\)$/\1/
10481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10482 # Check for a 64-bit object if we didn't find anything.
10483 if test -z "$aix_libpath"; then
10484 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10487 rm -f core conftest.err conftest.$ac_objext \
10488 conftest$ac_exeext conftest.$ac_ext
10489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10492 # Warning - without using the other run time loading flags,
10493 # -berok will link without error, but may produce a broken library.
10494 no_undefined_flag=' ${wl}-bernotok'
10495 allow_undefined_flag=' ${wl}-berok'
10496 if test "$with_gnu_ld" = yes; then
10497 # We only use this code for GNU lds that support --whole-archive.
10498 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10499 else
10500 # Exported symbols can be pulled into shared objects from archives
10501 whole_archive_flag_spec='$convenience'
10503 archive_cmds_need_lc=yes
10504 # This is similar to how AIX traditionally builds its shared libraries.
10505 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'
10510 amigaos*)
10511 case $host_cpu in
10512 powerpc)
10513 # see comment about AmigaOS4 .so support
10514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10515 archive_expsym_cmds=''
10517 m68k)
10518 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)'
10519 hardcode_libdir_flag_spec='-L$libdir'
10520 hardcode_minus_L=yes
10522 esac
10525 bsdi[45]*)
10526 export_dynamic_flag_spec=-rdynamic
10529 cygwin* | mingw* | pw32* | cegcc*)
10530 # When not using gcc, we currently assume that we are using
10531 # Microsoft Visual C++.
10532 # hardcode_libdir_flag_spec is actually meaningless, as there is
10533 # no search path for DLLs.
10534 hardcode_libdir_flag_spec=' '
10535 allow_undefined_flag=unsupported
10536 # Tell ltmain to make .lib files, not .a files.
10537 libext=lib
10538 # Tell ltmain to make .dll files, not .so files.
10539 shrext_cmds=".dll"
10540 # FIXME: Setting linknames here is a bad hack.
10541 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10542 # The linker will automatically build a .lib file if we build a DLL.
10543 old_archive_from_new_cmds='true'
10544 # FIXME: Should let the user specify the lib program.
10545 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10546 fix_srcfile_path='`cygpath -w "$srcfile"`'
10547 enable_shared_with_static_runtimes=yes
10550 darwin* | rhapsody*)
10553 archive_cmds_need_lc=no
10554 hardcode_direct=no
10555 hardcode_automatic=yes
10556 hardcode_shlibpath_var=unsupported
10557 if test "$lt_cv_ld_force_load" = "yes"; then
10558 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\"`'
10559 else
10560 whole_archive_flag_spec=''
10562 link_all_deplibs=yes
10563 allow_undefined_flag="$_lt_dar_allow_undefined"
10564 case $cc_basename in
10565 ifort*) _lt_dar_can_shared=yes ;;
10566 *) _lt_dar_can_shared=$GCC ;;
10567 esac
10568 if test "$_lt_dar_can_shared" = "yes"; then
10569 output_verbose_link_cmd=func_echo_all
10570 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10571 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10572 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}"
10573 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}"
10575 else
10576 ld_shlibs=no
10581 dgux*)
10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_libdir_flag_spec='-L$libdir'
10584 hardcode_shlibpath_var=no
10587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10588 # support. Future versions do this automatically, but an explicit c++rt0.o
10589 # does not break anything, and helps significantly (at the cost of a little
10590 # extra space).
10591 freebsd2.2*)
10592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10593 hardcode_libdir_flag_spec='-R$libdir'
10594 hardcode_direct=yes
10595 hardcode_shlibpath_var=no
10598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10599 freebsd2.*)
10600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_direct=yes
10602 hardcode_minus_L=yes
10603 hardcode_shlibpath_var=no
10606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10607 freebsd* | dragonfly*)
10608 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10609 hardcode_libdir_flag_spec='-R$libdir'
10610 hardcode_direct=yes
10611 hardcode_shlibpath_var=no
10614 hpux9*)
10615 if test "$GCC" = yes; then
10616 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'
10617 else
10618 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'
10620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10621 hardcode_libdir_separator=:
10622 hardcode_direct=yes
10624 # hardcode_minus_L: Not really in the search PATH,
10625 # but as the default location of the library.
10626 hardcode_minus_L=yes
10627 export_dynamic_flag_spec='${wl}-E'
10630 hpux10*)
10631 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10632 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10633 else
10634 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10636 if test "$with_gnu_ld" = no; then
10637 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10638 hardcode_libdir_flag_spec_ld='+b $libdir'
10639 hardcode_libdir_separator=:
10640 hardcode_direct=yes
10641 hardcode_direct_absolute=yes
10642 export_dynamic_flag_spec='${wl}-E'
10643 # hardcode_minus_L: Not really in the search PATH,
10644 # but as the default location of the library.
10645 hardcode_minus_L=yes
10649 hpux11*)
10650 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10651 case $host_cpu in
10652 hppa*64*)
10653 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10655 ia64*)
10656 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10661 esac
10662 else
10663 case $host_cpu in
10664 hppa*64*)
10665 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10667 ia64*)
10668 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10672 # Older versions of the 11.00 compiler do not understand -b yet
10673 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10675 $as_echo_n "checking if $CC understands -b... " >&6; }
10676 if ${lt_cv_prog_compiler__b+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 lt_cv_prog_compiler__b=no
10680 save_LDFLAGS="$LDFLAGS"
10681 LDFLAGS="$LDFLAGS -b"
10682 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10684 # The linker can only warn and ignore the option if not recognized
10685 # So say no if there are warnings
10686 if test -s conftest.err; then
10687 # Append any errors to the config.log.
10688 cat conftest.err 1>&5
10689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10691 if diff conftest.exp conftest.er2 >/dev/null; then
10692 lt_cv_prog_compiler__b=yes
10694 else
10695 lt_cv_prog_compiler__b=yes
10698 $RM -r conftest*
10699 LDFLAGS="$save_LDFLAGS"
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10703 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10705 if test x"$lt_cv_prog_compiler__b" = xyes; then
10706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10707 else
10708 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10712 esac
10714 if test "$with_gnu_ld" = no; then
10715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10716 hardcode_libdir_separator=:
10718 case $host_cpu in
10719 hppa*64*|ia64*)
10720 hardcode_direct=no
10721 hardcode_shlibpath_var=no
10724 hardcode_direct=yes
10725 hardcode_direct_absolute=yes
10726 export_dynamic_flag_spec='${wl}-E'
10728 # hardcode_minus_L: Not really in the search PATH,
10729 # but as the default location of the library.
10730 hardcode_minus_L=yes
10732 esac
10736 irix5* | irix6* | nonstopux*)
10737 if test "$GCC" = yes; then
10738 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'
10739 # Try to use the -exported_symbol ld option, if it does not
10740 # work, assume that -exports_file does not work either and
10741 # implicitly export all symbols.
10742 save_LDFLAGS="$LDFLAGS"
10743 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746 int foo(void) {}
10747 _ACEOF
10748 if ac_fn_c_try_link "$LINENO"; then :
10749 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'
10752 rm -f core conftest.err conftest.$ac_objext \
10753 conftest$ac_exeext conftest.$ac_ext
10754 LDFLAGS="$save_LDFLAGS"
10755 else
10756 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'
10757 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'
10759 archive_cmds_need_lc='no'
10760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10761 hardcode_libdir_separator=:
10762 inherit_rpath=yes
10763 link_all_deplibs=yes
10766 netbsd*)
10767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10769 else
10770 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10772 hardcode_libdir_flag_spec='-R$libdir'
10773 hardcode_direct=yes
10774 hardcode_shlibpath_var=no
10777 newsos6)
10778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779 hardcode_direct=yes
10780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10781 hardcode_libdir_separator=:
10782 hardcode_shlibpath_var=no
10785 *nto* | *qnx*)
10788 openbsd*)
10789 if test -f /usr/libexec/ld.so; then
10790 hardcode_direct=yes
10791 hardcode_shlibpath_var=no
10792 hardcode_direct_absolute=yes
10793 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10795 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10797 export_dynamic_flag_spec='${wl}-E'
10798 else
10799 case $host_os in
10800 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10802 hardcode_libdir_flag_spec='-R$libdir'
10805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10808 esac
10810 else
10811 ld_shlibs=no
10815 os2*)
10816 hardcode_libdir_flag_spec='-L$libdir'
10817 hardcode_minus_L=yes
10818 allow_undefined_flag=unsupported
10819 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'
10820 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10823 osf3*)
10824 if test "$GCC" = yes; then
10825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10826 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'
10827 else
10828 allow_undefined_flag=' -expect_unresolved \*'
10829 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'
10831 archive_cmds_need_lc='no'
10832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10833 hardcode_libdir_separator=:
10836 osf4* | osf5*) # as osf3* with the addition of -msym flag
10837 if test "$GCC" = yes; then
10838 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10839 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'
10840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10841 else
10842 allow_undefined_flag=' -expect_unresolved \*'
10843 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'
10844 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~
10845 $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'
10847 # Both c and cxx compiler support -rpath directly
10848 hardcode_libdir_flag_spec='-rpath $libdir'
10850 archive_cmds_need_lc='no'
10851 hardcode_libdir_separator=:
10854 solaris*)
10855 no_undefined_flag=' -z defs'
10856 if test "$GCC" = yes; then
10857 wlarc='${wl}'
10858 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10860 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10861 else
10862 case `$CC -V 2>&1` in
10863 *"Compilers 5.0"*)
10864 wlarc=''
10865 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10867 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10870 wlarc='${wl}'
10871 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10873 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10875 esac
10877 hardcode_libdir_flag_spec='-R$libdir'
10878 hardcode_shlibpath_var=no
10879 case $host_os in
10880 solaris2.[0-5] | solaris2.[0-5].*) ;;
10882 # The compiler driver will combine and reorder linker options,
10883 # but understands `-z linker_flag'. GCC discards it without `$wl',
10884 # but is careful enough not to reorder.
10885 # Supported since Solaris 2.6 (maybe 2.5.1?)
10886 if test "$GCC" = yes; then
10887 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10888 else
10889 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10892 esac
10893 link_all_deplibs=yes
10896 sunos4*)
10897 if test "x$host_vendor" = xsequent; then
10898 # Use $CC to link under sequent, because it throws in some extra .o
10899 # files that make .init and .fini sections work.
10900 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10901 else
10902 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_libdir_flag_spec='-L$libdir'
10905 hardcode_direct=yes
10906 hardcode_minus_L=yes
10907 hardcode_shlibpath_var=no
10910 sysv4)
10911 case $host_vendor in
10912 sni)
10913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914 hardcode_direct=yes # is this really true???
10916 siemens)
10917 ## LD is ld it makes a PLAMLIB
10918 ## CC just makes a GrossModule.
10919 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10920 reload_cmds='$CC -r -o $output$reload_objs'
10921 hardcode_direct=no
10923 motorola)
10924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10927 esac
10928 runpath_var='LD_RUN_PATH'
10929 hardcode_shlibpath_var=no
10932 sysv4.3*)
10933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10934 hardcode_shlibpath_var=no
10935 export_dynamic_flag_spec='-Bexport'
10938 sysv4*MP*)
10939 if test -d /usr/nec; then
10940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10941 hardcode_shlibpath_var=no
10942 runpath_var=LD_RUN_PATH
10943 hardcode_runpath_var=yes
10944 ld_shlibs=yes
10948 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10949 no_undefined_flag='${wl}-z,text'
10950 archive_cmds_need_lc=no
10951 hardcode_shlibpath_var=no
10952 runpath_var='LD_RUN_PATH'
10954 if test "$GCC" = yes; then
10955 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 else
10958 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963 sysv5* | sco3.2v5* | sco5v6*)
10964 # Note: We can NOT use -z defs as we might desire, because we do not
10965 # link with -lc, and that would cause any symbols used from libc to
10966 # always be unresolved, which means just about no library would
10967 # ever link correctly. If we're not using GNU ld we use -z text
10968 # though, which does catch some bad symbols but isn't as heavy-handed
10969 # as -z defs.
10970 no_undefined_flag='${wl}-z,text'
10971 allow_undefined_flag='${wl}-z,nodefs'
10972 archive_cmds_need_lc=no
10973 hardcode_shlibpath_var=no
10974 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10975 hardcode_libdir_separator=':'
10976 link_all_deplibs=yes
10977 export_dynamic_flag_spec='${wl}-Bexport'
10978 runpath_var='LD_RUN_PATH'
10980 if test "$GCC" = yes; then
10981 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10983 else
10984 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10985 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989 uts4*)
10990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991 hardcode_libdir_flag_spec='-L$libdir'
10992 hardcode_shlibpath_var=no
10996 ld_shlibs=no
10998 esac
11000 if test x$host_vendor = xsni; then
11001 case $host in
11002 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11003 export_dynamic_flag_spec='${wl}-Blargedynsym'
11005 esac
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11010 $as_echo "$ld_shlibs" >&6; }
11011 test "$ld_shlibs" = no && can_build_shared=no
11013 with_gnu_ld=$with_gnu_ld
11030 # Do we need to explicitly link libc?
11032 case "x$archive_cmds_need_lc" in
11033 x|xyes)
11034 # Assume -lc should be added
11035 archive_cmds_need_lc=yes
11037 if test "$enable_shared" = yes && test "$GCC" = yes; then
11038 case $archive_cmds in
11039 *'~'*)
11040 # FIXME: we may have to deal with multi-command sequences.
11042 '$CC '*)
11043 # Test whether the compiler implicitly links with -lc since on some
11044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11045 # to ld, don't add -lc before -lgcc.
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11047 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11048 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 $RM conftest*
11052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11055 (eval $ac_compile) 2>&5
11056 ac_status=$?
11057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11058 test $ac_status = 0; } 2>conftest.err; then
11059 soname=conftest
11060 lib=conftest
11061 libobjs=conftest.$ac_objext
11062 deplibs=
11063 wl=$lt_prog_compiler_wl
11064 pic_flag=$lt_prog_compiler_pic
11065 compiler_flags=-v
11066 linker_flags=-v
11067 verstring=
11068 output_objdir=.
11069 libname=conftest
11070 lt_save_allow_undefined_flag=$allow_undefined_flag
11071 allow_undefined_flag=
11072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11073 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11074 ac_status=$?
11075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11076 test $ac_status = 0; }
11077 then
11078 lt_cv_archive_cmds_need_lc=no
11079 else
11080 lt_cv_archive_cmds_need_lc=yes
11082 allow_undefined_flag=$lt_save_allow_undefined_flag
11083 else
11084 cat conftest.err 1>&5
11086 $RM conftest*
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11090 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11091 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11093 esac
11096 esac
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11255 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11257 if test "$GCC" = yes; then
11258 case $host_os in
11259 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11260 *) lt_awk_arg="/^libraries:/" ;;
11261 esac
11262 case $host_os in
11263 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11264 *) lt_sed_strip_eq="s,=/,/,g" ;;
11265 esac
11266 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11267 case $lt_search_path_spec in
11268 *\;*)
11269 # if the path contains ";" then we assume it to be the separator
11270 # otherwise default to the standard path separator (i.e. ":") - it is
11271 # assumed that no part of a normal pathname contains ";" but that should
11272 # okay in the real world where ";" in dirpaths is itself problematic.
11273 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11278 esac
11279 # Ok, now we have the path, separated by spaces, we can step through it
11280 # and add multilib dir if necessary.
11281 lt_tmp_lt_search_path_spec=
11282 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11283 for lt_sys_path in $lt_search_path_spec; do
11284 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11285 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11286 else
11287 test -d "$lt_sys_path" && \
11288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11290 done
11291 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11292 BEGIN {RS=" "; FS="/|\n";} {
11293 lt_foo="";
11294 lt_count=0;
11295 for (lt_i = NF; lt_i > 0; lt_i--) {
11296 if ($lt_i != "" && $lt_i != ".") {
11297 if ($lt_i == "..") {
11298 lt_count++;
11299 } else {
11300 if (lt_count == 0) {
11301 lt_foo="/" $lt_i lt_foo;
11302 } else {
11303 lt_count--;
11308 if (lt_foo != "") { lt_freq[lt_foo]++; }
11309 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11311 # AWK program above erroneously prepends '/' to C:/dos/paths
11312 # for these hosts.
11313 case $host_os in
11314 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11315 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11316 esac
11317 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11318 else
11319 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11321 library_names_spec=
11322 libname_spec='lib$name'
11323 soname_spec=
11324 shrext_cmds=".so"
11325 postinstall_cmds=
11326 postuninstall_cmds=
11327 finish_cmds=
11328 finish_eval=
11329 shlibpath_var=
11330 shlibpath_overrides_runpath=unknown
11331 version_type=none
11332 dynamic_linker="$host_os ld.so"
11333 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11334 need_lib_prefix=unknown
11335 hardcode_into_libs=no
11337 # when you set need_version to no, make sure it does not cause -set_version
11338 # flags to be left without arguments
11339 need_version=unknown
11341 case $host_os in
11342 aix3*)
11343 version_type=linux
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11345 shlibpath_var=LIBPATH
11347 # AIX 3 has no versioning support, so we append a major version to the name.
11348 soname_spec='${libname}${release}${shared_ext}$major'
11351 aix[4-9]*)
11352 version_type=linux
11353 need_lib_prefix=no
11354 need_version=no
11355 hardcode_into_libs=yes
11356 if test "$host_cpu" = ia64; then
11357 # AIX 5 supports IA64
11358 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11359 shlibpath_var=LD_LIBRARY_PATH
11360 else
11361 # With GCC up to 2.95.x, collect2 would create an import file
11362 # for dependence libraries. The import file would start with
11363 # the line `#! .'. This would cause the generated library to
11364 # depend on `.', always an invalid library. This was fixed in
11365 # development snapshots of GCC prior to 3.0.
11366 case $host_os in
11367 aix4 | aix4.[01] | aix4.[01].*)
11368 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11369 echo ' yes '
11370 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11372 else
11373 can_build_shared=no
11376 esac
11377 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11378 # soname into executable. Probably we can add versioning support to
11379 # collect2, so additional links can be useful in future.
11380 if test "$aix_use_runtimelinking" = yes; then
11381 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11382 # instead of lib<name>.a to let people know that these are not
11383 # typical AIX shared libraries.
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385 else
11386 # We preserve .a as extension for shared libraries through AIX4.2
11387 # and later when we are not doing run time linking.
11388 library_names_spec='${libname}${release}.a $libname.a'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11391 shlibpath_var=LIBPATH
11395 amigaos*)
11396 case $host_cpu in
11397 powerpc)
11398 # Since July 2007 AmigaOS4 officially supports .so libraries.
11399 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402 m68k)
11403 library_names_spec='$libname.ixlibrary $libname.a'
11404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11405 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'
11407 esac
11410 beos*)
11411 library_names_spec='${libname}${shared_ext}'
11412 dynamic_linker="$host_os ld.so"
11413 shlibpath_var=LIBRARY_PATH
11416 bsdi[45]*)
11417 version_type=linux
11418 need_version=no
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11424 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11425 # the default ld.so.conf also contains /usr/contrib/lib and
11426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11427 # libtool to hard-code these into programs
11430 cygwin* | mingw* | pw32* | cegcc*)
11431 version_type=windows
11432 shrext_cmds=".dll"
11433 need_version=no
11434 need_lib_prefix=no
11436 case $GCC,$host_os in
11437 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11438 library_names_spec='$libname.dll.a'
11439 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11440 postinstall_cmds='base_file=`basename \${file}`~
11441 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11442 dldir=$destdir/`dirname \$dlpath`~
11443 test -d \$dldir || mkdir -p \$dldir~
11444 $install_prog $dir/$dlname \$dldir/$dlname~
11445 chmod a+x \$dldir/$dlname~
11446 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11447 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11449 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11450 dlpath=$dir/\$dldll~
11451 $RM \$dlpath'
11452 shlibpath_overrides_runpath=yes
11454 case $host_os in
11455 cygwin*)
11456 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11457 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11459 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11461 mingw* | cegcc*)
11462 # MinGW DLLs use traditional 'lib' prefix
11463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11465 pw32*)
11466 # pw32 DLLs use 'pw' prefix rather than 'lib'
11467 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11469 esac
11473 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11475 esac
11476 dynamic_linker='Win32 ld.exe'
11477 # FIXME: first we should search . and the directory the executable is in
11478 shlibpath_var=PATH
11481 darwin* | rhapsody*)
11482 dynamic_linker="$host_os dyld"
11483 version_type=darwin
11484 need_lib_prefix=no
11485 need_version=no
11486 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11487 soname_spec='${libname}${release}${major}$shared_ext'
11488 shlibpath_overrides_runpath=yes
11489 shlibpath_var=DYLD_LIBRARY_PATH
11490 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11492 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11493 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11496 dgux*)
11497 version_type=linux
11498 need_lib_prefix=no
11499 need_version=no
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 shlibpath_var=LD_LIBRARY_PATH
11505 freebsd* | dragonfly*)
11506 # DragonFly does not have aout. When/if they implement a new
11507 # versioning mechanism, adjust this.
11508 if test -x /usr/bin/objformat; then
11509 objformat=`/usr/bin/objformat`
11510 else
11511 case $host_os in
11512 freebsd[23].*) objformat=aout ;;
11513 *) objformat=elf ;;
11514 esac
11516 version_type=freebsd-$objformat
11517 case $version_type in
11518 freebsd-elf*)
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11520 need_version=no
11521 need_lib_prefix=no
11523 freebsd-*)
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11525 need_version=yes
11527 esac
11528 shlibpath_var=LD_LIBRARY_PATH
11529 case $host_os in
11530 freebsd2.*)
11531 shlibpath_overrides_runpath=yes
11533 freebsd3.[01]* | freebsdelf3.[01]*)
11534 shlibpath_overrides_runpath=yes
11535 hardcode_into_libs=yes
11537 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11538 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11539 shlibpath_overrides_runpath=no
11540 hardcode_into_libs=yes
11542 *) # from 4.6 on, and DragonFly
11543 shlibpath_overrides_runpath=yes
11544 hardcode_into_libs=yes
11546 esac
11549 haiku*)
11550 version_type=linux
11551 need_lib_prefix=no
11552 need_version=no
11553 dynamic_linker="$host_os runtime_loader"
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 shlibpath_var=LIBRARY_PATH
11557 shlibpath_overrides_runpath=yes
11558 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11559 hardcode_into_libs=yes
11562 hpux9* | hpux10* | hpux11*)
11563 # Give a soname corresponding to the major version so that dld.sl refuses to
11564 # link against other versions.
11565 version_type=sunos
11566 need_lib_prefix=no
11567 need_version=no
11568 case $host_cpu in
11569 ia64*)
11570 shrext_cmds='.so'
11571 hardcode_into_libs=yes
11572 dynamic_linker="$host_os dld.so"
11573 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 if test "X$HPUX_IA64_MODE" = X32; then
11578 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11579 else
11580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11584 hppa*64*)
11585 shrext_cmds='.sl'
11586 hardcode_into_libs=yes
11587 dynamic_linker="$host_os dld.sl"
11588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11596 shrext_cmds='.sl'
11597 dynamic_linker="$host_os dld.sl"
11598 shlibpath_var=SHLIB_PATH
11599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11603 esac
11604 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11605 postinstall_cmds='chmod 555 $lib'
11606 # or fails outright, so override atomically:
11607 install_override_mode=555
11610 interix[3-9]*)
11611 version_type=linux
11612 need_lib_prefix=no
11613 need_version=no
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=no
11619 hardcode_into_libs=yes
11622 irix5* | irix6* | nonstopux*)
11623 case $host_os in
11624 nonstopux*) version_type=nonstopux ;;
11626 if test "$lt_cv_prog_gnu_ld" = yes; then
11627 version_type=linux
11628 else
11629 version_type=irix
11630 fi ;;
11631 esac
11632 need_lib_prefix=no
11633 need_version=no
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11636 case $host_os in
11637 irix5* | nonstopux*)
11638 libsuff= shlibsuff=
11641 case $LD in # libtool.m4 will add one of these switches to LD
11642 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11643 libsuff= shlibsuff= libmagic=32-bit;;
11644 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11645 libsuff=32 shlibsuff=N32 libmagic=N32;;
11646 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11647 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11648 *) libsuff= shlibsuff= libmagic=never-match;;
11649 esac
11651 esac
11652 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11653 shlibpath_overrides_runpath=no
11654 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11655 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11656 hardcode_into_libs=yes
11659 # No shared lib support for Linux oldld, aout, or coff.
11660 linux*oldld* | linux*aout* | linux*coff*)
11661 dynamic_linker=no
11664 # This must be Linux ELF.
11666 # uclinux* changes (here and below) have been submitted to the libtool
11667 # project, but have not yet been accepted: they are GCC-local changes
11668 # for the time being. (See
11669 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11670 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11671 version_type=linux
11672 need_lib_prefix=no
11673 need_version=no
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=no
11680 # Some binutils ld are patched to set DT_RUNPATH
11681 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 lt_cv_shlibpath_overrides_runpath=no
11685 save_LDFLAGS=$LDFLAGS
11686 save_libdir=$libdir
11687 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11688 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11693 main ()
11697 return 0;
11699 _ACEOF
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11702 lt_cv_shlibpath_overrides_runpath=yes
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LDFLAGS=$save_LDFLAGS
11708 libdir=$save_libdir
11712 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11714 # This implies no fast_install, which is unacceptable.
11715 # Some rework will be needed to allow for fast_install
11716 # before this can be enabled.
11717 hardcode_into_libs=yes
11719 # Append ld.so.conf contents to the search path
11720 if test -f /etc/ld.so.conf; then
11721 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' ' '`
11722 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11725 # We used to test for /lib/ld.so.1 and disable shared libraries on
11726 # powerpc, because MkLinux only supported shared libraries with the
11727 # GNU dynamic linker. Since this was broken with cross compilers,
11728 # most powerpc-linux boxes support dynamic linking these days and
11729 # people can always --disable-shared, the test was removed, and we
11730 # assume the GNU/Linux dynamic linker is in use.
11731 dynamic_linker='GNU/Linux ld.so'
11734 netbsd*)
11735 version_type=sunos
11736 need_lib_prefix=no
11737 need_version=no
11738 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11741 dynamic_linker='NetBSD (a.out) ld.so'
11742 else
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11744 soname_spec='${libname}${release}${shared_ext}$major'
11745 dynamic_linker='NetBSD ld.elf_so'
11747 shlibpath_var=LD_LIBRARY_PATH
11748 shlibpath_overrides_runpath=yes
11749 hardcode_into_libs=yes
11752 newsos6)
11753 version_type=linux
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 shlibpath_overrides_runpath=yes
11759 *nto* | *qnx*)
11760 version_type=qnx
11761 need_lib_prefix=no
11762 need_version=no
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=no
11767 hardcode_into_libs=yes
11768 dynamic_linker='ldqnx.so'
11771 openbsd*)
11772 version_type=sunos
11773 sys_lib_dlsearch_path_spec="/usr/lib"
11774 need_lib_prefix=no
11775 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11776 case $host_os in
11777 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11778 *) need_version=no ;;
11779 esac
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11784 case $host_os in
11785 openbsd2.[89] | openbsd2.[89].*)
11786 shlibpath_overrides_runpath=no
11789 shlibpath_overrides_runpath=yes
11791 esac
11792 else
11793 shlibpath_overrides_runpath=yes
11797 os2*)
11798 libname_spec='$name'
11799 shrext_cmds=".dll"
11800 need_lib_prefix=no
11801 library_names_spec='$libname${shared_ext} $libname.a'
11802 dynamic_linker='OS/2 ld.exe'
11803 shlibpath_var=LIBPATH
11806 osf3* | osf4* | osf5*)
11807 version_type=osf
11808 need_lib_prefix=no
11809 need_version=no
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11814 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11817 rdos*)
11818 dynamic_linker=no
11821 solaris*)
11822 version_type=linux
11823 need_lib_prefix=no
11824 need_version=no
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11826 soname_spec='${libname}${release}${shared_ext}$major'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=yes
11829 hardcode_into_libs=yes
11830 # ldd complains unless libraries are executable
11831 postinstall_cmds='chmod +x $lib'
11834 sunos4*)
11835 version_type=sunos
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11837 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 shlibpath_overrides_runpath=yes
11840 if test "$with_gnu_ld" = yes; then
11841 need_lib_prefix=no
11843 need_version=yes
11846 sysv4 | sysv4.3*)
11847 version_type=linux
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849 soname_spec='${libname}${release}${shared_ext}$major'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 case $host_vendor in
11852 sni)
11853 shlibpath_overrides_runpath=no
11854 need_lib_prefix=no
11855 runpath_var=LD_RUN_PATH
11857 siemens)
11858 need_lib_prefix=no
11860 motorola)
11861 need_lib_prefix=no
11862 need_version=no
11863 shlibpath_overrides_runpath=no
11864 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11866 esac
11869 sysv4*MP*)
11870 if test -d /usr/nec ;then
11871 version_type=linux
11872 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11873 soname_spec='$libname${shared_ext}.$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11879 version_type=freebsd-elf
11880 need_lib_prefix=no
11881 need_version=no
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11883 soname_spec='${libname}${release}${shared_ext}$major'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=yes
11886 hardcode_into_libs=yes
11887 if test "$with_gnu_ld" = yes; then
11888 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11889 else
11890 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11891 case $host_os in
11892 sco3.2v5*)
11893 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11895 esac
11897 sys_lib_dlsearch_path_spec='/usr/lib'
11900 tpf*)
11901 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11902 version_type=linux
11903 need_lib_prefix=no
11904 need_version=no
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=no
11908 hardcode_into_libs=yes
11911 uts4*)
11912 version_type=linux
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914 soname_spec='${libname}${release}${shared_ext}$major'
11915 shlibpath_var=LD_LIBRARY_PATH
11919 dynamic_linker=no
11921 esac
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11923 $as_echo "$dynamic_linker" >&6; }
11924 test "$dynamic_linker" = no && can_build_shared=no
11926 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11927 if test "$GCC" = yes; then
11928 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11931 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11932 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11934 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11935 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12030 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12031 hardcode_action=
12032 if test -n "$hardcode_libdir_flag_spec" ||
12033 test -n "$runpath_var" ||
12034 test "X$hardcode_automatic" = "Xyes" ; then
12036 # We can hardcode non-existent directories.
12037 if test "$hardcode_direct" != no &&
12038 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12039 # have to relink, otherwise we might link with an installed library
12040 # when we should be linking with a yet-to-be-installed one
12041 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12042 test "$hardcode_minus_L" != no; then
12043 # Linking always hardcodes the temporary library directory.
12044 hardcode_action=relink
12045 else
12046 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12047 hardcode_action=immediate
12049 else
12050 # We cannot hardcode anything, or else we can only hardcode existing
12051 # directories.
12052 hardcode_action=unsupported
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12055 $as_echo "$hardcode_action" >&6; }
12057 if test "$hardcode_action" = relink ||
12058 test "$inherit_rpath" = yes; then
12059 # Fast installation is not supported
12060 enable_fast_install=no
12061 elif test "$shlibpath_overrides_runpath" = yes ||
12062 test "$enable_shared" = no; then
12063 # Fast installation is not necessary
12064 enable_fast_install=needless
12072 if test "x$enable_dlopen" != xyes; then
12073 enable_dlopen=unknown
12074 enable_dlopen_self=unknown
12075 enable_dlopen_self_static=unknown
12076 else
12077 lt_cv_dlopen=no
12078 lt_cv_dlopen_libs=
12080 case $host_os in
12081 beos*)
12082 lt_cv_dlopen="load_add_on"
12083 lt_cv_dlopen_libs=
12084 lt_cv_dlopen_self=yes
12087 mingw* | pw32* | cegcc*)
12088 lt_cv_dlopen="LoadLibrary"
12089 lt_cv_dlopen_libs=
12092 cygwin*)
12093 lt_cv_dlopen="dlopen"
12094 lt_cv_dlopen_libs=
12097 darwin*)
12098 # if libdl is installed we need to link against it
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12100 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12101 if ${ac_cv_lib_dl_dlopen+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 ac_check_lib_save_LIBS=$LIBS
12105 LIBS="-ldl $LIBS"
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12109 /* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 char dlopen ();
12117 main ()
12119 return dlopen ();
12121 return 0;
12123 _ACEOF
12124 if ac_fn_c_try_link "$LINENO"; then :
12125 ac_cv_lib_dl_dlopen=yes
12126 else
12127 ac_cv_lib_dl_dlopen=no
12129 rm -f core conftest.err conftest.$ac_objext \
12130 conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12134 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12135 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12137 else
12139 lt_cv_dlopen="dyld"
12140 lt_cv_dlopen_libs=
12141 lt_cv_dlopen_self=yes
12148 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12149 if test "x$ac_cv_func_shl_load" = xyes; then :
12150 lt_cv_dlopen="shl_load"
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12153 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12154 if ${ac_cv_lib_dld_shl_load+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 ac_check_lib_save_LIBS=$LIBS
12158 LIBS="-ldld $LIBS"
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12165 #ifdef __cplusplus
12166 extern "C"
12167 #endif
12168 char shl_load ();
12170 main ()
12172 return shl_load ();
12174 return 0;
12176 _ACEOF
12177 if ac_fn_c_try_link "$LINENO"; then :
12178 ac_cv_lib_dld_shl_load=yes
12179 else
12180 ac_cv_lib_dld_shl_load=no
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 LIBS=$ac_check_lib_save_LIBS
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12187 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12188 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12189 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12190 else
12191 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12192 if test "x$ac_cv_func_dlopen" = xyes; then :
12193 lt_cv_dlopen="dlopen"
12194 else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12196 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12197 if ${ac_cv_lib_dl_dlopen+:} false; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-ldl $LIBS"
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208 #ifdef __cplusplus
12209 extern "C"
12210 #endif
12211 char dlopen ();
12213 main ()
12215 return dlopen ();
12217 return 0;
12219 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"; then :
12221 ac_cv_lib_dl_dlopen=yes
12222 else
12223 ac_cv_lib_dl_dlopen=no
12225 rm -f core conftest.err conftest.$ac_objext \
12226 conftest$ac_exeext conftest.$ac_ext
12227 LIBS=$ac_check_lib_save_LIBS
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12230 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12231 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12233 else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12235 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12236 if ${ac_cv_lib_svld_dlopen+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-lsvld $LIBS"
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12244 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char dlopen ();
12252 main ()
12254 return dlopen ();
12256 return 0;
12258 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"; then :
12260 ac_cv_lib_svld_dlopen=yes
12261 else
12262 ac_cv_lib_svld_dlopen=no
12264 rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12269 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12270 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12272 else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12274 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12275 if ${ac_cv_lib_dld_dld_link+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 ac_check_lib_save_LIBS=$LIBS
12279 LIBS="-ldld $LIBS"
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 char dld_link ();
12291 main ()
12293 return dld_link ();
12295 return 0;
12297 _ACEOF
12298 if ac_fn_c_try_link "$LINENO"; then :
12299 ac_cv_lib_dld_dld_link=yes
12300 else
12301 ac_cv_lib_dld_dld_link=no
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12308 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12309 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12310 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12329 esac
12331 if test "x$lt_cv_dlopen" != xno; then
12332 enable_dlopen=yes
12333 else
12334 enable_dlopen=no
12337 case $lt_cv_dlopen in
12338 dlopen)
12339 save_CPPFLAGS="$CPPFLAGS"
12340 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12342 save_LDFLAGS="$LDFLAGS"
12343 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12345 save_LIBS="$LIBS"
12346 LIBS="$lt_cv_dlopen_libs $LIBS"
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12349 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12350 if ${lt_cv_dlopen_self+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 if test "$cross_compiling" = yes; then :
12354 lt_cv_dlopen_self=cross
12355 else
12356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12357 lt_status=$lt_dlunknown
12358 cat > conftest.$ac_ext <<_LT_EOF
12359 #line 12369 "configure"
12360 #include "confdefs.h"
12362 #if HAVE_DLFCN_H
12363 #include <dlfcn.h>
12364 #endif
12366 #include <stdio.h>
12368 #ifdef RTLD_GLOBAL
12369 # define LT_DLGLOBAL RTLD_GLOBAL
12370 #else
12371 # ifdef DL_GLOBAL
12372 # define LT_DLGLOBAL DL_GLOBAL
12373 # else
12374 # define LT_DLGLOBAL 0
12375 # endif
12376 #endif
12378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12379 find out it does not work in some platform. */
12380 #ifndef LT_DLLAZY_OR_NOW
12381 # ifdef RTLD_LAZY
12382 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12383 # else
12384 # ifdef DL_LAZY
12385 # define LT_DLLAZY_OR_NOW DL_LAZY
12386 # else
12387 # ifdef RTLD_NOW
12388 # define LT_DLLAZY_OR_NOW RTLD_NOW
12389 # else
12390 # ifdef DL_NOW
12391 # define LT_DLLAZY_OR_NOW DL_NOW
12392 # else
12393 # define LT_DLLAZY_OR_NOW 0
12394 # endif
12395 # endif
12396 # endif
12397 # endif
12398 #endif
12400 /* When -fvisbility=hidden is used, assume the code has been annotated
12401 correspondingly for the symbols needed. */
12402 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12403 void fnord () __attribute__((visibility("default")));
12404 #endif
12406 void fnord () { int i=42; }
12407 int main ()
12409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12410 int status = $lt_dlunknown;
12412 if (self)
12414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12415 else
12417 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12418 else puts (dlerror ());
12420 /* dlclose (self); */
12422 else
12423 puts (dlerror ());
12425 return status;
12427 _LT_EOF
12428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12429 (eval $ac_link) 2>&5
12430 ac_status=$?
12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12433 (./conftest; exit; ) >&5 2>/dev/null
12434 lt_status=$?
12435 case x$lt_status in
12436 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12437 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12438 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12439 esac
12440 else :
12441 # compilation failed
12442 lt_cv_dlopen_self=no
12445 rm -fr conftest*
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12450 $as_echo "$lt_cv_dlopen_self" >&6; }
12452 if test "x$lt_cv_dlopen_self" = xyes; then
12453 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12455 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12456 if ${lt_cv_dlopen_self_static+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 if test "$cross_compiling" = yes; then :
12460 lt_cv_dlopen_self_static=cross
12461 else
12462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12463 lt_status=$lt_dlunknown
12464 cat > conftest.$ac_ext <<_LT_EOF
12465 #line 12475 "configure"
12466 #include "confdefs.h"
12468 #if HAVE_DLFCN_H
12469 #include <dlfcn.h>
12470 #endif
12472 #include <stdio.h>
12474 #ifdef RTLD_GLOBAL
12475 # define LT_DLGLOBAL RTLD_GLOBAL
12476 #else
12477 # ifdef DL_GLOBAL
12478 # define LT_DLGLOBAL DL_GLOBAL
12479 # else
12480 # define LT_DLGLOBAL 0
12481 # endif
12482 #endif
12484 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12485 find out it does not work in some platform. */
12486 #ifndef LT_DLLAZY_OR_NOW
12487 # ifdef RTLD_LAZY
12488 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12489 # else
12490 # ifdef DL_LAZY
12491 # define LT_DLLAZY_OR_NOW DL_LAZY
12492 # else
12493 # ifdef RTLD_NOW
12494 # define LT_DLLAZY_OR_NOW RTLD_NOW
12495 # else
12496 # ifdef DL_NOW
12497 # define LT_DLLAZY_OR_NOW DL_NOW
12498 # else
12499 # define LT_DLLAZY_OR_NOW 0
12500 # endif
12501 # endif
12502 # endif
12503 # endif
12504 #endif
12506 /* When -fvisbility=hidden is used, assume the code has been annotated
12507 correspondingly for the symbols needed. */
12508 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12509 void fnord () __attribute__((visibility("default")));
12510 #endif
12512 void fnord () { int i=42; }
12513 int main ()
12515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12516 int status = $lt_dlunknown;
12518 if (self)
12520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12521 else
12523 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12524 else puts (dlerror ());
12526 /* dlclose (self); */
12528 else
12529 puts (dlerror ());
12531 return status;
12533 _LT_EOF
12534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12535 (eval $ac_link) 2>&5
12536 ac_status=$?
12537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12538 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12539 (./conftest; exit; ) >&5 2>/dev/null
12540 lt_status=$?
12541 case x$lt_status in
12542 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12543 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12544 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12545 esac
12546 else :
12547 # compilation failed
12548 lt_cv_dlopen_self_static=no
12551 rm -fr conftest*
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12556 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12559 CPPFLAGS="$save_CPPFLAGS"
12560 LDFLAGS="$save_LDFLAGS"
12561 LIBS="$save_LIBS"
12563 esac
12565 case $lt_cv_dlopen_self in
12566 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12567 *) enable_dlopen_self=unknown ;;
12568 esac
12570 case $lt_cv_dlopen_self_static in
12571 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12572 *) enable_dlopen_self_static=unknown ;;
12573 esac
12592 striplib=
12593 old_striplib=
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12595 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12596 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12597 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12598 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12600 $as_echo "yes" >&6; }
12601 else
12602 # FIXME - insert some real tests, host_os isn't really good enough
12603 case $host_os in
12604 darwin*)
12605 if test -n "$STRIP" ; then
12606 striplib="$STRIP -x"
12607 old_striplib="$STRIP -S"
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12609 $as_echo "yes" >&6; }
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12619 esac
12633 # Report which library types will actually be built
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12635 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12637 $as_echo "$can_build_shared" >&6; }
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12640 $as_echo_n "checking whether to build shared libraries... " >&6; }
12641 test "$can_build_shared" = "no" && enable_shared=no
12643 # On AIX, shared libraries and static libraries use the same namespace, and
12644 # are all built from PIC.
12645 case $host_os in
12646 aix3*)
12647 test "$enable_shared" = yes && enable_static=no
12648 if test -n "$RANLIB"; then
12649 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12650 postinstall_cmds='$RANLIB $lib'
12654 aix[4-9]*)
12655 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12656 test "$enable_shared" = yes && enable_static=no
12659 esac
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12661 $as_echo "$enable_shared" >&6; }
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12664 $as_echo_n "checking whether to build static libraries... " >&6; }
12665 # Make sure either enable_shared or enable_static is yes.
12666 test "$enable_shared" = yes || enable_static=yes
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12668 $as_echo "$enable_static" >&6; }
12674 ac_ext=c
12675 ac_cpp='$CPP $CPPFLAGS'
12676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12680 CC="$lt_save_CC"
12682 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12683 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12684 (test "X$CXX" != "Xg++"))) ; then
12685 ac_ext=cpp
12686 ac_cpp='$CXXCPP $CPPFLAGS'
12687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12691 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12692 if test -z "$CXXCPP"; then
12693 if ${ac_cv_prog_CXXCPP+:} false; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 # Double quotes because CXXCPP needs to be expanded
12697 for CXXCPP in "$CXX -E" "/lib/cpp"
12699 ac_preproc_ok=false
12700 for ac_cxx_preproc_warn_flag in '' yes
12702 # Use a header file that comes with gcc, so configuring glibc
12703 # with a fresh cross-compiler works.
12704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12705 # <limits.h> exists even on freestanding compilers.
12706 # On the NeXT, cc -E runs the code through the compiler's parser,
12707 # not just through cpp. "Syntax error" is here to catch this case.
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 #ifdef __STDC__
12711 # include <limits.h>
12712 #else
12713 # include <assert.h>
12714 #endif
12715 Syntax error
12716 _ACEOF
12717 if ac_fn_cxx_try_cpp "$LINENO"; then :
12719 else
12720 # Broken: fails on valid input.
12721 continue
12723 rm -f conftest.err conftest.i conftest.$ac_ext
12725 # OK, works on sane cases. Now check whether nonexistent headers
12726 # can be detected and how.
12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12729 #include <ac_nonexistent.h>
12730 _ACEOF
12731 if ac_fn_cxx_try_cpp "$LINENO"; then :
12732 # Broken: success on invalid input.
12733 continue
12734 else
12735 # Passes both tests.
12736 ac_preproc_ok=:
12737 break
12739 rm -f conftest.err conftest.i conftest.$ac_ext
12741 done
12742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12743 rm -f conftest.i conftest.err conftest.$ac_ext
12744 if $ac_preproc_ok; then :
12745 break
12748 done
12749 ac_cv_prog_CXXCPP=$CXXCPP
12752 CXXCPP=$ac_cv_prog_CXXCPP
12753 else
12754 ac_cv_prog_CXXCPP=$CXXCPP
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12757 $as_echo "$CXXCPP" >&6; }
12758 ac_preproc_ok=false
12759 for ac_cxx_preproc_warn_flag in '' yes
12761 # Use a header file that comes with gcc, so configuring glibc
12762 # with a fresh cross-compiler works.
12763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12764 # <limits.h> exists even on freestanding compilers.
12765 # On the NeXT, cc -E runs the code through the compiler's parser,
12766 # not just through cpp. "Syntax error" is here to catch this case.
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769 #ifdef __STDC__
12770 # include <limits.h>
12771 #else
12772 # include <assert.h>
12773 #endif
12774 Syntax error
12775 _ACEOF
12776 if ac_fn_cxx_try_cpp "$LINENO"; then :
12778 else
12779 # Broken: fails on valid input.
12780 continue
12782 rm -f conftest.err conftest.i conftest.$ac_ext
12784 # OK, works on sane cases. Now check whether nonexistent headers
12785 # can be detected and how.
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 #include <ac_nonexistent.h>
12789 _ACEOF
12790 if ac_fn_cxx_try_cpp "$LINENO"; then :
12791 # Broken: success on invalid input.
12792 continue
12793 else
12794 # Passes both tests.
12795 ac_preproc_ok=:
12796 break
12798 rm -f conftest.err conftest.i conftest.$ac_ext
12800 done
12801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12802 rm -f conftest.i conftest.err conftest.$ac_ext
12803 if $ac_preproc_ok; then :
12805 else
12806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12808 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12809 See \`config.log' for more details" "$LINENO" 5; }
12812 ac_ext=c
12813 ac_cpp='$CPP $CPPFLAGS'
12814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12818 else
12819 _lt_caught_CXX_error=yes
12822 ac_ext=cpp
12823 ac_cpp='$CXXCPP $CPPFLAGS'
12824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12828 archive_cmds_need_lc_CXX=no
12829 allow_undefined_flag_CXX=
12830 always_export_symbols_CXX=no
12831 archive_expsym_cmds_CXX=
12832 compiler_needs_object_CXX=no
12833 export_dynamic_flag_spec_CXX=
12834 hardcode_direct_CXX=no
12835 hardcode_direct_absolute_CXX=no
12836 hardcode_libdir_flag_spec_CXX=
12837 hardcode_libdir_flag_spec_ld_CXX=
12838 hardcode_libdir_separator_CXX=
12839 hardcode_minus_L_CXX=no
12840 hardcode_shlibpath_var_CXX=unsupported
12841 hardcode_automatic_CXX=no
12842 inherit_rpath_CXX=no
12843 module_cmds_CXX=
12844 module_expsym_cmds_CXX=
12845 link_all_deplibs_CXX=unknown
12846 old_archive_cmds_CXX=$old_archive_cmds
12847 reload_flag_CXX=$reload_flag
12848 reload_cmds_CXX=$reload_cmds
12849 no_undefined_flag_CXX=
12850 whole_archive_flag_spec_CXX=
12851 enable_shared_with_static_runtimes_CXX=no
12853 # Source file extension for C++ test sources.
12854 ac_ext=cpp
12856 # Object file extension for compiled C++ test sources.
12857 objext=o
12858 objext_CXX=$objext
12860 # No sense in running all these tests if we already determined that
12861 # the CXX compiler isn't working. Some variables (like enable_shared)
12862 # are currently assumed to apply to all compilers on this platform,
12863 # and will be corrupted by setting them based on a non-working compiler.
12864 if test "$_lt_caught_CXX_error" != yes; then
12865 # Code to be used in simple compile tests
12866 lt_simple_compile_test_code="int some_variable = 0;"
12868 # Code to be used in simple link tests
12869 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12871 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12878 # If no C compiler was specified, use CC.
12879 LTCC=${LTCC-"$CC"}
12881 # If no C compiler flags were specified, use CFLAGS.
12882 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12884 # Allow CC to be a program name with arguments.
12885 compiler=$CC
12888 # save warnings/boilerplate of simple test code
12889 ac_outfile=conftest.$ac_objext
12890 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12891 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12892 _lt_compiler_boilerplate=`cat conftest.err`
12893 $RM conftest*
12895 ac_outfile=conftest.$ac_objext
12896 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12897 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12898 _lt_linker_boilerplate=`cat conftest.err`
12899 $RM -r conftest*
12902 # Allow CC to be a program name with arguments.
12903 lt_save_CC=$CC
12904 lt_save_LD=$LD
12905 lt_save_GCC=$GCC
12906 GCC=$GXX
12907 lt_save_with_gnu_ld=$with_gnu_ld
12908 lt_save_path_LD=$lt_cv_path_LD
12909 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12910 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12911 else
12912 $as_unset lt_cv_prog_gnu_ld
12914 if test -n "${lt_cv_path_LDCXX+set}"; then
12915 lt_cv_path_LD=$lt_cv_path_LDCXX
12916 else
12917 $as_unset lt_cv_path_LD
12919 test -z "${LDCXX+set}" || LD=$LDCXX
12920 CC=${CXX-"c++"}
12921 compiler=$CC
12922 compiler_CXX=$CC
12923 for cc_temp in $compiler""; do
12924 case $cc_temp in
12925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12927 \-*) ;;
12928 *) break;;
12929 esac
12930 done
12931 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12934 if test -n "$compiler"; then
12935 # We don't want -fno-exception when compiling C++ code, so set the
12936 # no_builtin_flag separately
12937 if test "$GXX" = yes; then
12938 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12939 else
12940 lt_prog_compiler_no_builtin_flag_CXX=
12943 if test "$GXX" = yes; then
12944 # Set up default GNU C++ configuration
12948 # Check whether --with-gnu-ld was given.
12949 if test "${with_gnu_ld+set}" = set; then :
12950 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12951 else
12952 with_gnu_ld=no
12955 ac_prog=ld
12956 if test "$GCC" = yes; then
12957 # Check if gcc -print-prog-name=ld gives a path.
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12959 $as_echo_n "checking for ld used by $CC... " >&6; }
12960 case $host in
12961 *-*-mingw*)
12962 # gcc leaves a trailing carriage return which upsets mingw
12963 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12965 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12966 esac
12967 case $ac_prog in
12968 # Accept absolute paths.
12969 [\\/]* | ?:[\\/]*)
12970 re_direlt='/[^/][^/]*/\.\./'
12971 # Canonicalize the pathname of ld
12972 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12973 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12974 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12975 done
12976 test -z "$LD" && LD="$ac_prog"
12979 # If it fails, then pretend we aren't using GCC.
12980 ac_prog=ld
12983 # If it is relative, then search for the first ld in PATH.
12984 with_gnu_ld=unknown
12986 esac
12987 elif test "$with_gnu_ld" = yes; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12989 $as_echo_n "checking for GNU ld... " >&6; }
12990 else
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12992 $as_echo_n "checking for non-GNU ld... " >&6; }
12994 if ${lt_cv_path_LD+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 if test -z "$LD"; then
12998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12999 for ac_dir in $PATH; do
13000 IFS="$lt_save_ifs"
13001 test -z "$ac_dir" && ac_dir=.
13002 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13003 lt_cv_path_LD="$ac_dir/$ac_prog"
13004 # Check to see if the program is GNU ld. I'd rather use --version,
13005 # but apparently some variants of GNU ld only accept -v.
13006 # Break only if it was the GNU/non-GNU ld that we prefer.
13007 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13008 *GNU* | *'with BFD'*)
13009 test "$with_gnu_ld" != no && break
13012 test "$with_gnu_ld" != yes && break
13014 esac
13016 done
13017 IFS="$lt_save_ifs"
13018 else
13019 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13023 LD="$lt_cv_path_LD"
13024 if test -n "$LD"; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13026 $as_echo "$LD" >&6; }
13027 else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029 $as_echo "no" >&6; }
13031 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13033 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13034 if ${lt_cv_prog_gnu_ld+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13038 case `$LD -v 2>&1 </dev/null` in
13039 *GNU* | *'with BFD'*)
13040 lt_cv_prog_gnu_ld=yes
13043 lt_cv_prog_gnu_ld=no
13045 esac
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13048 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13049 with_gnu_ld=$lt_cv_prog_gnu_ld
13057 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13058 # archiving commands below assume that GNU ld is being used.
13059 if test "$with_gnu_ld" = yes; then
13060 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13063 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13066 # If archive_cmds runs LD, not CC, wlarc should be empty
13067 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13068 # investigate it a little bit more. (MM)
13069 wlarc='${wl}'
13071 # ancient GNU ld didn't support --whole-archive et. al.
13072 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13073 $GREP 'no-whole-archive' > /dev/null; then
13074 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13075 else
13076 whole_archive_flag_spec_CXX=
13078 else
13079 with_gnu_ld=no
13080 wlarc=
13082 # A generic and very simple default shared library creation
13083 # command for GNU C++ for the case where it uses the native
13084 # linker, instead of GNU ld. If possible, this setting should
13085 # overridden to take advantage of the native linker features on
13086 # the platform it is being used on.
13087 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13090 # Commands to make compiler produce verbose output that lists
13091 # what "hidden" libraries, object files and flags are used when
13092 # linking a shared library.
13093 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13095 else
13096 GXX=no
13097 with_gnu_ld=no
13098 wlarc=
13101 # PORTME: fill in a description of your system's C++ link characteristics
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13103 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13104 ld_shlibs_CXX=yes
13105 case $host_os in
13106 aix3*)
13107 # FIXME: insert proper C++ library support
13108 ld_shlibs_CXX=no
13110 aix[4-9]*)
13111 if test "$host_cpu" = ia64; then
13112 # On IA64, the linker does run time linking by default, so we don't
13113 # have to do anything special.
13114 aix_use_runtimelinking=no
13115 exp_sym_flag='-Bexport'
13116 no_entry_flag=""
13117 else
13118 aix_use_runtimelinking=no
13120 # Test if we are trying to use run time linking or normal
13121 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13122 # need to do runtime linking.
13123 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13124 for ld_flag in $LDFLAGS; do
13125 case $ld_flag in
13126 *-brtl*)
13127 aix_use_runtimelinking=yes
13128 break
13130 esac
13131 done
13133 esac
13135 exp_sym_flag='-bexport'
13136 no_entry_flag='-bnoentry'
13139 # When large executables or shared objects are built, AIX ld can
13140 # have problems creating the table of contents. If linking a library
13141 # or program results in "error TOC overflow" add -mminimal-toc to
13142 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13143 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13145 archive_cmds_CXX=''
13146 hardcode_direct_CXX=yes
13147 hardcode_direct_absolute_CXX=yes
13148 hardcode_libdir_separator_CXX=':'
13149 link_all_deplibs_CXX=yes
13150 file_list_spec_CXX='${wl}-f,'
13152 if test "$GXX" = yes; then
13153 case $host_os in aix4.[012]|aix4.[012].*)
13154 # We only want to do this on AIX 4.2 and lower, the check
13155 # below for broken collect2 doesn't work under 4.3+
13156 collect2name=`${CC} -print-prog-name=collect2`
13157 if test -f "$collect2name" &&
13158 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13159 then
13160 # We have reworked collect2
13162 else
13163 # We have old collect2
13164 hardcode_direct_CXX=unsupported
13165 # It fails to find uninstalled libraries when the uninstalled
13166 # path is not listed in the libpath. Setting hardcode_minus_L
13167 # to unsupported forces relinking
13168 hardcode_minus_L_CXX=yes
13169 hardcode_libdir_flag_spec_CXX='-L$libdir'
13170 hardcode_libdir_separator_CXX=
13172 esac
13173 shared_flag='-shared'
13174 if test "$aix_use_runtimelinking" = yes; then
13175 shared_flag="$shared_flag "'${wl}-G'
13177 else
13178 # not using gcc
13179 if test "$host_cpu" = ia64; then
13180 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13181 # chokes on -Wl,-G. The following line is correct:
13182 shared_flag='-G'
13183 else
13184 if test "$aix_use_runtimelinking" = yes; then
13185 shared_flag='${wl}-G'
13186 else
13187 shared_flag='${wl}-bM:SRE'
13192 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13193 # It seems that -bexpall does not export symbols beginning with
13194 # underscore (_), so it is better to generate a list of symbols to
13195 # export.
13196 always_export_symbols_CXX=yes
13197 if test "$aix_use_runtimelinking" = yes; then
13198 # Warning - without using the other runtime loading flags (-brtl),
13199 # -berok will link without error, but may produce a broken library.
13200 allow_undefined_flag_CXX='-berok'
13201 # Determine the default libpath from the value encoded in an empty
13202 # executable.
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13207 main ()
13211 return 0;
13213 _ACEOF
13214 if ac_fn_cxx_try_link "$LINENO"; then :
13216 lt_aix_libpath_sed='
13217 /Import File Strings/,/^$/ {
13218 /^0/ {
13219 s/^0 *\(.*\)$/\1/
13223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13224 # Check for a 64-bit object if we didn't find anything.
13225 if test -z "$aix_libpath"; then
13226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13233 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13235 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"
13236 else
13237 if test "$host_cpu" = ia64; then
13238 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13239 allow_undefined_flag_CXX="-z nodefs"
13240 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"
13241 else
13242 # Determine the default libpath from the value encoded in an
13243 # empty executable.
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13248 main ()
13252 return 0;
13254 _ACEOF
13255 if ac_fn_cxx_try_link "$LINENO"; then :
13257 lt_aix_libpath_sed='
13258 /Import File Strings/,/^$/ {
13259 /^0/ {
13260 s/^0 *\(.*\)$/\1/
13264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13265 # Check for a 64-bit object if we didn't find anything.
13266 if test -z "$aix_libpath"; then
13267 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13270 rm -f core conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13274 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13275 # Warning - without using the other run time loading flags,
13276 # -berok will link without error, but may produce a broken library.
13277 no_undefined_flag_CXX=' ${wl}-bernotok'
13278 allow_undefined_flag_CXX=' ${wl}-berok'
13279 if test "$with_gnu_ld" = yes; then
13280 # We only use this code for GNU lds that support --whole-archive.
13281 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13282 else
13283 # Exported symbols can be pulled into shared objects from archives
13284 whole_archive_flag_spec_CXX='$convenience'
13286 archive_cmds_need_lc_CXX=yes
13287 # This is similar to how AIX traditionally builds its shared
13288 # libraries.
13289 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'
13294 beos*)
13295 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13296 allow_undefined_flag_CXX=unsupported
13297 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13298 # support --undefined. This deserves some investigation. FIXME
13299 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13300 else
13301 ld_shlibs_CXX=no
13305 chorus*)
13306 case $cc_basename in
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13311 esac
13314 cygwin* | mingw* | pw32* | cegcc*)
13315 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13316 # as there is no search path for DLLs.
13317 hardcode_libdir_flag_spec_CXX='-L$libdir'
13318 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13319 allow_undefined_flag_CXX=unsupported
13320 always_export_symbols_CXX=no
13321 enable_shared_with_static_runtimes_CXX=yes
13323 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13324 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'
13325 # If the export-symbols file already is a .def file (1st line
13326 # is EXPORTS), use it as is; otherwise, prepend...
13327 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13328 cp $export_symbols $output_objdir/$soname.def;
13329 else
13330 echo EXPORTS > $output_objdir/$soname.def;
13331 cat $export_symbols >> $output_objdir/$soname.def;
13333 $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'
13334 else
13335 ld_shlibs_CXX=no
13338 darwin* | rhapsody*)
13341 archive_cmds_need_lc_CXX=no
13342 hardcode_direct_CXX=no
13343 hardcode_automatic_CXX=yes
13344 hardcode_shlibpath_var_CXX=unsupported
13345 if test "$lt_cv_ld_force_load" = "yes"; then
13346 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\"`'
13347 else
13348 whole_archive_flag_spec_CXX=''
13350 link_all_deplibs_CXX=yes
13351 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13352 case $cc_basename in
13353 ifort*) _lt_dar_can_shared=yes ;;
13354 *) _lt_dar_can_shared=$GCC ;;
13355 esac
13356 if test "$_lt_dar_can_shared" = "yes"; then
13357 output_verbose_link_cmd=func_echo_all
13358 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}"
13359 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13360 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}"
13361 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}"
13362 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13363 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}"
13364 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}"
13367 else
13368 ld_shlibs_CXX=no
13373 dgux*)
13374 case $cc_basename in
13375 ec++*)
13376 # FIXME: insert proper C++ library support
13377 ld_shlibs_CXX=no
13379 ghcx*)
13380 # Green Hills C++ Compiler
13381 # FIXME: insert proper C++ library support
13382 ld_shlibs_CXX=no
13385 # FIXME: insert proper C++ library support
13386 ld_shlibs_CXX=no
13388 esac
13391 freebsd2.*)
13392 # C++ shared libraries reported to be fairly broken before
13393 # switch to ELF
13394 ld_shlibs_CXX=no
13397 freebsd-elf*)
13398 archive_cmds_need_lc_CXX=no
13401 freebsd* | dragonfly*)
13402 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13403 # conventions
13404 ld_shlibs_CXX=yes
13407 gnu*)
13410 haiku*)
13411 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13412 link_all_deplibs_CXX=yes
13415 hpux9*)
13416 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13417 hardcode_libdir_separator_CXX=:
13418 export_dynamic_flag_spec_CXX='${wl}-E'
13419 hardcode_direct_CXX=yes
13420 hardcode_minus_L_CXX=yes # Not in the search PATH,
13421 # but as the default
13422 # location of the library.
13424 case $cc_basename in
13425 CC*)
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13429 aCC*)
13430 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'
13431 # Commands to make compiler produce verbose output that lists
13432 # what "hidden" libraries, object files and flags are used when
13433 # linking a shared library.
13435 # There doesn't appear to be a way to prevent this compiler from
13436 # explicitly linking system object files so we need to strip them
13437 # from the output so that they don't get included in the library
13438 # dependencies.
13439 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"'
13442 if test "$GXX" = yes; then
13443 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'
13444 else
13445 # FIXME: insert proper C++ library support
13446 ld_shlibs_CXX=no
13449 esac
13452 hpux10*|hpux11*)
13453 if test $with_gnu_ld = no; then
13454 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13455 hardcode_libdir_separator_CXX=:
13457 case $host_cpu in
13458 hppa*64*|ia64*)
13461 export_dynamic_flag_spec_CXX='${wl}-E'
13463 esac
13465 case $host_cpu in
13466 hppa*64*|ia64*)
13467 hardcode_direct_CXX=no
13468 hardcode_shlibpath_var_CXX=no
13471 hardcode_direct_CXX=yes
13472 hardcode_direct_absolute_CXX=yes
13473 hardcode_minus_L_CXX=yes # Not in the search PATH,
13474 # but as the default
13475 # location of the library.
13477 esac
13479 case $cc_basename in
13480 CC*)
13481 # FIXME: insert proper C++ library support
13482 ld_shlibs_CXX=no
13484 aCC*)
13485 case $host_cpu in
13486 hppa*64*)
13487 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13489 ia64*)
13490 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13493 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13495 esac
13496 # Commands to make compiler produce verbose output that lists
13497 # what "hidden" libraries, object files and flags are used when
13498 # linking a shared library.
13500 # There doesn't appear to be a way to prevent this compiler from
13501 # explicitly linking system object files so we need to strip them
13502 # from the output so that they don't get included in the library
13503 # dependencies.
13504 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"'
13507 if test "$GXX" = yes; then
13508 if test $with_gnu_ld = no; then
13509 case $host_cpu in
13510 hppa*64*)
13511 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13513 ia64*)
13514 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13517 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'
13519 esac
13521 else
13522 # FIXME: insert proper C++ library support
13523 ld_shlibs_CXX=no
13526 esac
13529 interix[3-9]*)
13530 hardcode_direct_CXX=no
13531 hardcode_shlibpath_var_CXX=no
13532 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13533 export_dynamic_flag_spec_CXX='${wl}-E'
13534 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13535 # Instead, shared libraries are loaded at an image base (0x10000000 by
13536 # default) and relocated if they conflict, which is a slow very memory
13537 # consuming and fragmenting process. To avoid this, we pick a random,
13538 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13539 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13540 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'
13541 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'
13543 irix5* | irix6*)
13544 case $cc_basename in
13545 CC*)
13546 # SGI C++
13547 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'
13549 # Archives containing C++ object files must be created using
13550 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13551 # necessary to make sure instantiated templates are included
13552 # in the archive.
13553 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13556 if test "$GXX" = yes; then
13557 if test "$with_gnu_ld" = no; then
13558 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'
13559 else
13560 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'
13563 link_all_deplibs_CXX=yes
13565 esac
13566 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13567 hardcode_libdir_separator_CXX=:
13568 inherit_rpath_CXX=yes
13571 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13572 case $cc_basename in
13573 KCC*)
13574 # Kuck and Associates, Inc. (KAI) C++ Compiler
13576 # KCC will only create a shared library if the output file
13577 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13578 # to its proper name (with version) after linking.
13579 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'
13580 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'
13581 # Commands to make compiler produce verbose output that lists
13582 # what "hidden" libraries, object files and flags are used when
13583 # linking a shared library.
13585 # There doesn't appear to be a way to prevent this compiler from
13586 # explicitly linking system object files so we need to strip them
13587 # from the output so that they don't get included in the library
13588 # dependencies.
13589 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"'
13591 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13594 # Archives containing C++ object files must be created using
13595 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13596 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13598 icpc* | ecpc* )
13599 # Intel C++
13600 with_gnu_ld=yes
13601 # version 8.0 and above of icpc choke on multiply defined symbols
13602 # if we add $predep_objects and $postdep_objects, however 7.1 and
13603 # earlier do not add the objects themselves.
13604 case `$CC -V 2>&1` in
13605 *"Version 7."*)
13606 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13607 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'
13609 *) # Version 8.0 or newer
13610 tmp_idyn=
13611 case $host_cpu in
13612 ia64*) tmp_idyn=' -i_dynamic';;
13613 esac
13614 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13615 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'
13617 esac
13618 archive_cmds_need_lc_CXX=no
13619 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13621 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13623 pgCC* | pgcpp*)
13624 # Portland Group C++ compiler
13625 case `$CC -V` in
13626 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13627 prelink_cmds_CXX='tpldir=Template.dir~
13628 rm -rf $tpldir~
13629 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13630 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13631 old_archive_cmds_CXX='tpldir=Template.dir~
13632 rm -rf $tpldir~
13633 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13634 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13635 $RANLIB $oldlib'
13636 archive_cmds_CXX='tpldir=Template.dir~
13637 rm -rf $tpldir~
13638 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13639 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13640 archive_expsym_cmds_CXX='tpldir=Template.dir~
13641 rm -rf $tpldir~
13642 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13643 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13645 *) # Version 6 and above use weak symbols
13646 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13647 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'
13649 esac
13651 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13652 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13653 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'
13655 cxx*)
13656 # Compaq C++
13657 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13658 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'
13660 runpath_var=LD_RUN_PATH
13661 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13662 hardcode_libdir_separator_CXX=:
13664 # Commands to make compiler produce verbose output that lists
13665 # what "hidden" libraries, object files and flags are used when
13666 # linking a shared library.
13668 # There doesn't appear to be a way to prevent this compiler from
13669 # explicitly linking system object files so we need to strip them
13670 # from the output so that they don't get included in the library
13671 # dependencies.
13672 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'
13674 xl* | mpixl* | bgxl*)
13675 # IBM XL 8.0 on PPC, with GNU ld
13676 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13677 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13678 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13679 if test "x$supports_anon_versioning" = xyes; then
13680 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13682 echo "local: *; };" >> $output_objdir/$libname.ver~
13683 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13687 case `$CC -V 2>&1 | sed 5q` in
13688 *Sun\ C*)
13689 # Sun C++ 5.9
13690 no_undefined_flag_CXX=' -zdefs'
13691 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13692 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'
13693 hardcode_libdir_flag_spec_CXX='-R$libdir'
13694 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'
13695 compiler_needs_object_CXX=yes
13697 # Not sure whether something based on
13698 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13699 # would be better.
13700 output_verbose_link_cmd='func_echo_all'
13702 # Archives containing C++ object files must be created using
13703 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13704 # necessary to make sure instantiated templates are included
13705 # in the archive.
13706 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13708 esac
13710 esac
13713 lynxos*)
13714 # FIXME: insert proper C++ library support
13715 ld_shlibs_CXX=no
13718 m88k*)
13719 # FIXME: insert proper C++ library support
13720 ld_shlibs_CXX=no
13723 mvs*)
13724 case $cc_basename in
13725 cxx*)
13726 # FIXME: insert proper C++ library support
13727 ld_shlibs_CXX=no
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13733 esac
13736 netbsd*)
13737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13738 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13739 wlarc=
13740 hardcode_libdir_flag_spec_CXX='-R$libdir'
13741 hardcode_direct_CXX=yes
13742 hardcode_shlibpath_var_CXX=no
13744 # Workaround some broken pre-1.5 toolchains
13745 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13748 *nto* | *qnx*)
13749 ld_shlibs_CXX=yes
13752 openbsd2*)
13753 # C++ shared libraries are fairly broken
13754 ld_shlibs_CXX=no
13757 openbsd*)
13758 if test -f /usr/libexec/ld.so; then
13759 hardcode_direct_CXX=yes
13760 hardcode_shlibpath_var_CXX=no
13761 hardcode_direct_absolute_CXX=yes
13762 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13763 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13765 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13766 export_dynamic_flag_spec_CXX='${wl}-E'
13767 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13769 output_verbose_link_cmd=func_echo_all
13770 else
13771 ld_shlibs_CXX=no
13775 osf3* | osf4* | osf5*)
13776 case $cc_basename in
13777 KCC*)
13778 # Kuck and Associates, Inc. (KAI) C++ Compiler
13780 # KCC will only create a shared library if the output file
13781 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13782 # to its proper name (with version) after linking.
13783 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'
13785 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13786 hardcode_libdir_separator_CXX=:
13788 # Archives containing C++ object files must be created using
13789 # the KAI C++ compiler.
13790 case $host in
13791 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13792 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13793 esac
13795 RCC*)
13796 # Rational C++ 2.4.1
13797 # FIXME: insert proper C++ library support
13798 ld_shlibs_CXX=no
13800 cxx*)
13801 case $host in
13802 osf3*)
13803 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13804 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'
13805 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13808 allow_undefined_flag_CXX=' -expect_unresolved \*'
13809 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'
13810 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13811 echo "-hidden">> $lib.exp~
13812 $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~
13813 $RM $lib.exp'
13814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13816 esac
13818 hardcode_libdir_separator_CXX=:
13820 # Commands to make compiler produce verbose output that lists
13821 # what "hidden" libraries, object files and flags are used when
13822 # linking a shared library.
13824 # There doesn't appear to be a way to prevent this compiler from
13825 # explicitly linking system object files so we need to strip them
13826 # from the output so that they don't get included in the library
13827 # dependencies.
13828 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"'
13831 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13832 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13833 case $host in
13834 osf3*)
13835 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'
13838 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'
13840 esac
13842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13843 hardcode_libdir_separator_CXX=:
13845 # Commands to make compiler produce verbose output that lists
13846 # what "hidden" libraries, object files and flags are used when
13847 # linking a shared library.
13848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13850 else
13851 # FIXME: insert proper C++ library support
13852 ld_shlibs_CXX=no
13855 esac
13858 psos*)
13859 # FIXME: insert proper C++ library support
13860 ld_shlibs_CXX=no
13863 sunos4*)
13864 case $cc_basename in
13865 CC*)
13866 # Sun C++ 4.x
13867 # FIXME: insert proper C++ library support
13868 ld_shlibs_CXX=no
13870 lcc*)
13871 # Lucid
13872 # FIXME: insert proper C++ library support
13873 ld_shlibs_CXX=no
13876 # FIXME: insert proper C++ library support
13877 ld_shlibs_CXX=no
13879 esac
13882 solaris*)
13883 case $cc_basename in
13884 CC*)
13885 # Sun C++ 4.2, 5.x and Centerline C++
13886 archive_cmds_need_lc_CXX=yes
13887 no_undefined_flag_CXX=' -zdefs'
13888 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13889 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13890 $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'
13892 hardcode_libdir_flag_spec_CXX='-R$libdir'
13893 hardcode_shlibpath_var_CXX=no
13894 case $host_os in
13895 solaris2.[0-5] | solaris2.[0-5].*) ;;
13897 # The compiler driver will combine and reorder linker options,
13898 # but understands `-z linker_flag'.
13899 # Supported since Solaris 2.6 (maybe 2.5.1?)
13900 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13902 esac
13903 link_all_deplibs_CXX=yes
13905 output_verbose_link_cmd='func_echo_all'
13907 # Archives containing C++ object files must be created using
13908 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13909 # necessary to make sure instantiated templates are included
13910 # in the archive.
13911 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13913 gcx*)
13914 # Green Hills C++ Compiler
13915 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13917 # The C++ compiler must be used to create the archive.
13918 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13921 # GNU C++ compiler with Solaris linker
13922 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13923 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13924 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13925 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13926 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13927 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13929 # Commands to make compiler produce verbose output that lists
13930 # what "hidden" libraries, object files and flags are used when
13931 # linking a shared library.
13932 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13933 else
13934 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13935 # platform.
13936 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13937 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13938 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13940 # Commands to make compiler produce verbose output that lists
13941 # what "hidden" libraries, object files and flags are used when
13942 # linking a shared library.
13943 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13946 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13947 case $host_os in
13948 solaris2.[0-5] | solaris2.[0-5].*) ;;
13950 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13952 esac
13955 esac
13958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13959 no_undefined_flag_CXX='${wl}-z,text'
13960 archive_cmds_need_lc_CXX=no
13961 hardcode_shlibpath_var_CXX=no
13962 runpath_var='LD_RUN_PATH'
13964 case $cc_basename in
13965 CC*)
13966 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13967 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13970 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13971 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13973 esac
13976 sysv5* | sco3.2v5* | sco5v6*)
13977 # Note: We can NOT use -z defs as we might desire, because we do not
13978 # link with -lc, and that would cause any symbols used from libc to
13979 # always be unresolved, which means just about no library would
13980 # ever link correctly. If we're not using GNU ld we use -z text
13981 # though, which does catch some bad symbols but isn't as heavy-handed
13982 # as -z defs.
13983 no_undefined_flag_CXX='${wl}-z,text'
13984 allow_undefined_flag_CXX='${wl}-z,nodefs'
13985 archive_cmds_need_lc_CXX=no
13986 hardcode_shlibpath_var_CXX=no
13987 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13988 hardcode_libdir_separator_CXX=':'
13989 link_all_deplibs_CXX=yes
13990 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13991 runpath_var='LD_RUN_PATH'
13993 case $cc_basename in
13994 CC*)
13995 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13996 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13997 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13998 '"$old_archive_cmds_CXX"
13999 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14000 '"$reload_cmds_CXX"
14003 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14004 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14006 esac
14009 tandem*)
14010 case $cc_basename in
14011 NCC*)
14012 # NonStop-UX NCC 3.20
14013 # FIXME: insert proper C++ library support
14014 ld_shlibs_CXX=no
14017 # FIXME: insert proper C++ library support
14018 ld_shlibs_CXX=no
14020 esac
14023 vxworks*)
14024 # FIXME: insert proper C++ library support
14025 ld_shlibs_CXX=no
14029 # FIXME: insert proper C++ library support
14030 ld_shlibs_CXX=no
14032 esac
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14035 $as_echo "$ld_shlibs_CXX" >&6; }
14036 test "$ld_shlibs_CXX" = no && can_build_shared=no
14038 GCC_CXX="$GXX"
14039 LD_CXX="$LD"
14041 ## CAVEAT EMPTOR:
14042 ## There is no encapsulation within the following macros, do not change
14043 ## the running order or otherwise move them around unless you know exactly
14044 ## what you are doing...
14045 # Dependencies to place before and after the object being linked:
14046 predep_objects_CXX=
14047 postdep_objects_CXX=
14048 predeps_CXX=
14049 postdeps_CXX=
14050 compiler_lib_search_path_CXX=
14052 cat > conftest.$ac_ext <<_LT_EOF
14053 class Foo
14055 public:
14056 Foo (void) { a = 0; }
14057 private:
14058 int a;
14060 _LT_EOF
14062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14063 (eval $ac_compile) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; then
14067 # Parse the compiler output and extract the necessary
14068 # objects, libraries and library flags.
14070 # Sentinel used to keep track of whether or not we are before
14071 # the conftest object file.
14072 pre_test_object_deps_done=no
14074 for p in `eval "$output_verbose_link_cmd"`; do
14075 case $p in
14077 -L* | -R* | -l*)
14078 # Some compilers place space between "-{L,R}" and the path.
14079 # Remove the space.
14080 if test $p = "-L" ||
14081 test $p = "-R"; then
14082 prev=$p
14083 continue
14084 else
14085 prev=
14088 if test "$pre_test_object_deps_done" = no; then
14089 case $p in
14090 -L* | -R*)
14091 # Internal compiler library paths should come after those
14092 # provided the user. The postdeps already come after the
14093 # user supplied libs so there is no need to process them.
14094 if test -z "$compiler_lib_search_path_CXX"; then
14095 compiler_lib_search_path_CXX="${prev}${p}"
14096 else
14097 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14100 # The "-l" case would never come before the object being
14101 # linked, so don't bother handling this case.
14102 esac
14103 else
14104 if test -z "$postdeps_CXX"; then
14105 postdeps_CXX="${prev}${p}"
14106 else
14107 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14112 *.$objext)
14113 # This assumes that the test object file only shows up
14114 # once in the compiler output.
14115 if test "$p" = "conftest.$objext"; then
14116 pre_test_object_deps_done=yes
14117 continue
14120 if test "$pre_test_object_deps_done" = no; then
14121 if test -z "$predep_objects_CXX"; then
14122 predep_objects_CXX="$p"
14123 else
14124 predep_objects_CXX="$predep_objects_CXX $p"
14126 else
14127 if test -z "$postdep_objects_CXX"; then
14128 postdep_objects_CXX="$p"
14129 else
14130 postdep_objects_CXX="$postdep_objects_CXX $p"
14135 *) ;; # Ignore the rest.
14137 esac
14138 done
14140 # Clean up.
14141 rm -f a.out a.exe
14142 else
14143 echo "libtool.m4: error: problem compiling CXX test program"
14146 $RM -f confest.$objext
14148 # PORTME: override above test on systems where it is broken
14149 case $host_os in
14150 interix[3-9]*)
14151 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14152 # hack all around it, let's just trust "g++" to DTRT.
14153 predep_objects_CXX=
14154 postdep_objects_CXX=
14155 postdeps_CXX=
14158 linux*)
14159 case `$CC -V 2>&1 | sed 5q` in
14160 *Sun\ C*)
14161 # Sun C++ 5.9
14163 # The more standards-conforming stlport4 library is
14164 # incompatible with the Cstd library. Avoid specifying
14165 # it if it's in CXXFLAGS. Ignore libCrun as
14166 # -library=stlport4 depends on it.
14167 case " $CXX $CXXFLAGS " in
14168 *" -library=stlport4 "*)
14169 solaris_use_stlport4=yes
14171 esac
14173 if test "$solaris_use_stlport4" != yes; then
14174 postdeps_CXX='-library=Cstd -library=Crun'
14177 esac
14180 solaris*)
14181 case $cc_basename in
14182 CC*)
14183 # The more standards-conforming stlport4 library is
14184 # incompatible with the Cstd library. Avoid specifying
14185 # it if it's in CXXFLAGS. Ignore libCrun as
14186 # -library=stlport4 depends on it.
14187 case " $CXX $CXXFLAGS " in
14188 *" -library=stlport4 "*)
14189 solaris_use_stlport4=yes
14191 esac
14193 # Adding this requires a known-good setup of shared libraries for
14194 # Sun compiler versions before 5.6, else PIC objects from an old
14195 # archive will be linked into the output, leading to subtle bugs.
14196 if test "$solaris_use_stlport4" != yes; then
14197 postdeps_CXX='-library=Cstd -library=Crun'
14200 esac
14202 esac
14205 case " $postdeps_CXX " in
14206 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14207 esac
14208 compiler_lib_search_dirs_CXX=
14209 if test -n "${compiler_lib_search_path_CXX}"; then
14210 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14243 lt_prog_compiler_wl_CXX=
14244 lt_prog_compiler_pic_CXX=
14245 lt_prog_compiler_static_CXX=
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14248 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14250 # C++ specific cases for pic, static, wl, etc.
14251 if test "$GXX" = yes; then
14252 lt_prog_compiler_wl_CXX='-Wl,'
14253 lt_prog_compiler_static_CXX='-static'
14255 case $host_os in
14256 aix*)
14257 # All AIX code is PIC.
14258 if test "$host_cpu" = ia64; then
14259 # AIX 5 now supports IA64 processor
14260 lt_prog_compiler_static_CXX='-Bstatic'
14262 lt_prog_compiler_pic_CXX='-fPIC'
14265 amigaos*)
14266 case $host_cpu in
14267 powerpc)
14268 # see comment about AmigaOS4 .so support
14269 lt_prog_compiler_pic_CXX='-fPIC'
14271 m68k)
14272 # FIXME: we need at least 68020 code to build shared libraries, but
14273 # adding the `-m68020' flag to GCC prevents building anything better,
14274 # like `-m68040'.
14275 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14277 esac
14280 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14281 # PIC is the default for these OSes.
14283 mingw* | cygwin* | os2* | pw32* | cegcc*)
14284 # This hack is so that the source file can tell whether it is being
14285 # built for inclusion in a dll (and should export symbols for example).
14286 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14287 # (--disable-auto-import) libraries
14288 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14290 darwin* | rhapsody*)
14291 # PIC is the default on this platform
14292 # Common symbols not allowed in MH_DYLIB files
14293 lt_prog_compiler_pic_CXX='-fno-common'
14295 *djgpp*)
14296 # DJGPP does not support shared libraries at all
14297 lt_prog_compiler_pic_CXX=
14299 haiku*)
14300 # PIC is the default for Haiku.
14301 # The "-static" flag exists, but is broken.
14302 lt_prog_compiler_static_CXX=
14304 interix[3-9]*)
14305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14306 # Instead, we relocate shared libraries at runtime.
14308 sysv4*MP*)
14309 if test -d /usr/nec; then
14310 lt_prog_compiler_pic_CXX=-Kconform_pic
14313 hpux*)
14314 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14315 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14316 # sets the default TLS model and affects inlining.
14317 case $host_cpu in
14318 hppa*64*)
14321 lt_prog_compiler_pic_CXX='-fPIC'
14323 esac
14325 *qnx* | *nto*)
14326 # QNX uses GNU C++, but need to define -shared option too, otherwise
14327 # it will coredump.
14328 lt_prog_compiler_pic_CXX='-fPIC -shared'
14331 lt_prog_compiler_pic_CXX='-fPIC'
14333 esac
14334 else
14335 case $host_os in
14336 aix[4-9]*)
14337 # All AIX code is PIC.
14338 if test "$host_cpu" = ia64; then
14339 # AIX 5 now supports IA64 processor
14340 lt_prog_compiler_static_CXX='-Bstatic'
14341 else
14342 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14345 chorus*)
14346 case $cc_basename in
14347 cxch68*)
14348 # Green Hills C++ Compiler
14349 # _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"
14351 esac
14353 dgux*)
14354 case $cc_basename in
14355 ec++*)
14356 lt_prog_compiler_pic_CXX='-KPIC'
14358 ghcx*)
14359 # Green Hills C++ Compiler
14360 lt_prog_compiler_pic_CXX='-pic'
14364 esac
14366 freebsd* | dragonfly*)
14367 # FreeBSD uses GNU C++
14369 hpux9* | hpux10* | hpux11*)
14370 case $cc_basename in
14371 CC*)
14372 lt_prog_compiler_wl_CXX='-Wl,'
14373 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14374 if test "$host_cpu" != ia64; then
14375 lt_prog_compiler_pic_CXX='+Z'
14378 aCC*)
14379 lt_prog_compiler_wl_CXX='-Wl,'
14380 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14381 case $host_cpu in
14382 hppa*64*|ia64*)
14383 # +Z the default
14386 lt_prog_compiler_pic_CXX='+Z'
14388 esac
14392 esac
14394 interix*)
14395 # This is c89, which is MS Visual C++ (no shared libs)
14396 # Anyone wants to do a port?
14398 irix5* | irix6* | nonstopux*)
14399 case $cc_basename in
14400 CC*)
14401 lt_prog_compiler_wl_CXX='-Wl,'
14402 lt_prog_compiler_static_CXX='-non_shared'
14403 # CC pic flag -KPIC is the default.
14407 esac
14409 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14410 case $cc_basename in
14411 KCC*)
14412 # KAI C++ Compiler
14413 lt_prog_compiler_wl_CXX='--backend -Wl,'
14414 lt_prog_compiler_pic_CXX='-fPIC'
14416 ecpc* )
14417 # old Intel C++ for x86_64 which still supported -KPIC.
14418 lt_prog_compiler_wl_CXX='-Wl,'
14419 lt_prog_compiler_pic_CXX='-KPIC'
14420 lt_prog_compiler_static_CXX='-static'
14422 icpc* )
14423 # Intel C++, used to be incompatible with GCC.
14424 # ICC 10 doesn't accept -KPIC any more.
14425 lt_prog_compiler_wl_CXX='-Wl,'
14426 lt_prog_compiler_pic_CXX='-fPIC'
14427 lt_prog_compiler_static_CXX='-static'
14429 pgCC* | pgcpp*)
14430 # Portland Group C++ compiler
14431 lt_prog_compiler_wl_CXX='-Wl,'
14432 lt_prog_compiler_pic_CXX='-fpic'
14433 lt_prog_compiler_static_CXX='-Bstatic'
14435 cxx*)
14436 # Compaq C++
14437 # Make sure the PIC flag is empty. It appears that all Alpha
14438 # Linux and Compaq Tru64 Unix objects are PIC.
14439 lt_prog_compiler_pic_CXX=
14440 lt_prog_compiler_static_CXX='-non_shared'
14442 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14443 # IBM XL 8.0, 9.0 on PPC and BlueGene
14444 lt_prog_compiler_wl_CXX='-Wl,'
14445 lt_prog_compiler_pic_CXX='-qpic'
14446 lt_prog_compiler_static_CXX='-qstaticlink'
14449 case `$CC -V 2>&1 | sed 5q` in
14450 *Sun\ C*)
14451 # Sun C++ 5.9
14452 lt_prog_compiler_pic_CXX='-KPIC'
14453 lt_prog_compiler_static_CXX='-Bstatic'
14454 lt_prog_compiler_wl_CXX='-Qoption ld '
14456 esac
14458 esac
14460 lynxos*)
14462 m88k*)
14464 mvs*)
14465 case $cc_basename in
14466 cxx*)
14467 lt_prog_compiler_pic_CXX='-W c,exportall'
14471 esac
14473 netbsd*)
14475 *qnx* | *nto*)
14476 # QNX uses GNU C++, but need to define -shared option too, otherwise
14477 # it will coredump.
14478 lt_prog_compiler_pic_CXX='-fPIC -shared'
14480 osf3* | osf4* | osf5*)
14481 case $cc_basename in
14482 KCC*)
14483 lt_prog_compiler_wl_CXX='--backend -Wl,'
14485 RCC*)
14486 # Rational C++ 2.4.1
14487 lt_prog_compiler_pic_CXX='-pic'
14489 cxx*)
14490 # Digital/Compaq C++
14491 lt_prog_compiler_wl_CXX='-Wl,'
14492 # Make sure the PIC flag is empty. It appears that all Alpha
14493 # Linux and Compaq Tru64 Unix objects are PIC.
14494 lt_prog_compiler_pic_CXX=
14495 lt_prog_compiler_static_CXX='-non_shared'
14499 esac
14501 psos*)
14503 solaris*)
14504 case $cc_basename in
14505 CC*)
14506 # Sun C++ 4.2, 5.x and Centerline C++
14507 lt_prog_compiler_pic_CXX='-KPIC'
14508 lt_prog_compiler_static_CXX='-Bstatic'
14509 lt_prog_compiler_wl_CXX='-Qoption ld '
14511 gcx*)
14512 # Green Hills C++ Compiler
14513 lt_prog_compiler_pic_CXX='-PIC'
14517 esac
14519 sunos4*)
14520 case $cc_basename in
14521 CC*)
14522 # Sun C++ 4.x
14523 lt_prog_compiler_pic_CXX='-pic'
14524 lt_prog_compiler_static_CXX='-Bstatic'
14526 lcc*)
14527 # Lucid
14528 lt_prog_compiler_pic_CXX='-pic'
14532 esac
14534 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14535 case $cc_basename in
14536 CC*)
14537 lt_prog_compiler_wl_CXX='-Wl,'
14538 lt_prog_compiler_pic_CXX='-KPIC'
14539 lt_prog_compiler_static_CXX='-Bstatic'
14541 esac
14543 tandem*)
14544 case $cc_basename in
14545 NCC*)
14546 # NonStop-UX NCC 3.20
14547 lt_prog_compiler_pic_CXX='-KPIC'
14551 esac
14553 vxworks*)
14556 lt_prog_compiler_can_build_shared_CXX=no
14558 esac
14561 case $host_os in
14562 # For platforms which do not support PIC, -DPIC is meaningless:
14563 *djgpp*)
14564 lt_prog_compiler_pic_CXX=
14567 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14569 esac
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14571 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14576 # Check to make sure the PIC flag actually works.
14578 if test -n "$lt_prog_compiler_pic_CXX"; then
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14581 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14582 $as_echo_n "(cached) " >&6
14583 else
14584 lt_cv_prog_compiler_pic_works_CXX=no
14585 ac_outfile=conftest.$ac_objext
14586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14587 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14588 # Insert the option either (1) after the last *FLAGS variable, or
14589 # (2) before a word containing "conftest.", or (3) at the end.
14590 # Note that $ac_compile itself does not contain backslashes and begins
14591 # with a dollar sign (not a hyphen), so the echo should work correctly.
14592 # The option is referenced via a variable to avoid confusing sed.
14593 lt_compile=`echo "$ac_compile" | $SED \
14594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14596 -e 's:$: $lt_compiler_flag:'`
14597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14598 (eval "$lt_compile" 2>conftest.err)
14599 ac_status=$?
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 if (exit $ac_status) && test -s "$ac_outfile"; then
14603 # The compiler can only warn and ignore the option if not recognized
14604 # So say no if there are warnings other than the usual output.
14605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14608 lt_cv_prog_compiler_pic_works_CXX=yes
14611 $RM conftest*
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14615 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14617 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14618 case $lt_prog_compiler_pic_CXX in
14619 "" | " "*) ;;
14620 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14621 esac
14622 else
14623 lt_prog_compiler_pic_CXX=
14624 lt_prog_compiler_can_build_shared_CXX=no
14632 # Check to make sure the static flag actually works.
14634 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14636 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14637 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14638 $as_echo_n "(cached) " >&6
14639 else
14640 lt_cv_prog_compiler_static_works_CXX=no
14641 save_LDFLAGS="$LDFLAGS"
14642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14643 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14645 # The linker can only warn and ignore the option if not recognized
14646 # So say no if there are warnings
14647 if test -s conftest.err; then
14648 # Append any errors to the config.log.
14649 cat conftest.err 1>&5
14650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652 if diff conftest.exp conftest.er2 >/dev/null; then
14653 lt_cv_prog_compiler_static_works_CXX=yes
14655 else
14656 lt_cv_prog_compiler_static_works_CXX=yes
14659 $RM -r conftest*
14660 LDFLAGS="$save_LDFLAGS"
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14664 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14666 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14668 else
14669 lt_prog_compiler_static_CXX=
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14676 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14677 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14678 $as_echo_n "(cached) " >&6
14679 else
14680 lt_cv_prog_compiler_c_o_CXX=no
14681 $RM -r conftest 2>/dev/null
14682 mkdir conftest
14683 cd conftest
14684 mkdir out
14685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14687 lt_compiler_flag="-o out/conftest2.$ac_objext"
14688 # Insert the option either (1) after the last *FLAGS variable, or
14689 # (2) before a word containing "conftest.", or (3) at the end.
14690 # Note that $ac_compile itself does not contain backslashes and begins
14691 # with a dollar sign (not a hyphen), so the echo should work correctly.
14692 lt_compile=`echo "$ac_compile" | $SED \
14693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14695 -e 's:$: $lt_compiler_flag:'`
14696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14697 (eval "$lt_compile" 2>out/conftest.err)
14698 ac_status=$?
14699 cat out/conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14702 then
14703 # The compiler can only warn and ignore the option if not recognized
14704 # So say no if there are warnings
14705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14706 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14707 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14708 lt_cv_prog_compiler_c_o_CXX=yes
14711 chmod u+w . 2>&5
14712 $RM conftest*
14713 # SGI C++ compiler will create directory out/ii_files/ for
14714 # template instantiation
14715 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14716 $RM out/* && rmdir out
14717 cd ..
14718 $RM -r conftest
14719 $RM conftest*
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14723 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14728 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14729 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14730 $as_echo_n "(cached) " >&6
14731 else
14732 lt_cv_prog_compiler_c_o_CXX=no
14733 $RM -r conftest 2>/dev/null
14734 mkdir conftest
14735 cd conftest
14736 mkdir out
14737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14739 lt_compiler_flag="-o out/conftest2.$ac_objext"
14740 # Insert the option either (1) after the last *FLAGS variable, or
14741 # (2) before a word containing "conftest.", or (3) at the end.
14742 # Note that $ac_compile itself does not contain backslashes and begins
14743 # with a dollar sign (not a hyphen), so the echo should work correctly.
14744 lt_compile=`echo "$ac_compile" | $SED \
14745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14747 -e 's:$: $lt_compiler_flag:'`
14748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14749 (eval "$lt_compile" 2>out/conftest.err)
14750 ac_status=$?
14751 cat out/conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14754 then
14755 # The compiler can only warn and ignore the option if not recognized
14756 # So say no if there are warnings
14757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14760 lt_cv_prog_compiler_c_o_CXX=yes
14763 chmod u+w . 2>&5
14764 $RM conftest*
14765 # SGI C++ compiler will create directory out/ii_files/ for
14766 # template instantiation
14767 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14768 $RM out/* && rmdir out
14769 cd ..
14770 $RM -r conftest
14771 $RM conftest*
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14775 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14780 hard_links="nottested"
14781 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14782 # do not overwrite the value of need_locks provided by the user
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14784 $as_echo_n "checking if we can lock with hard links... " >&6; }
14785 hard_links=yes
14786 $RM conftest*
14787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14788 touch conftest.a
14789 ln conftest.a conftest.b 2>&5 || hard_links=no
14790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14792 $as_echo "$hard_links" >&6; }
14793 if test "$hard_links" = no; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14795 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14796 need_locks=warn
14798 else
14799 need_locks=no
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14807 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14808 case $host_os in
14809 aix[4-9]*)
14810 # If we're using GNU nm, then we don't want the "-C" option.
14811 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14812 # Also, AIX nm treats weak defined symbols like other global defined
14813 # symbols, whereas GNU nm marks them as "W".
14814 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14815 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'
14816 else
14817 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14820 pw32*)
14821 export_symbols_cmds_CXX="$ltdll_cmds"
14823 cygwin* | mingw* | cegcc*)
14824 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'
14827 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14829 esac
14830 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14833 $as_echo "$ld_shlibs_CXX" >&6; }
14834 test "$ld_shlibs_CXX" = no && can_build_shared=no
14836 with_gnu_ld_CXX=$with_gnu_ld
14844 # Do we need to explicitly link libc?
14846 case "x$archive_cmds_need_lc_CXX" in
14847 x|xyes)
14848 # Assume -lc should be added
14849 archive_cmds_need_lc_CXX=yes
14851 if test "$enable_shared" = yes && test "$GCC" = yes; then
14852 case $archive_cmds_CXX in
14853 *'~'*)
14854 # FIXME: we may have to deal with multi-command sequences.
14856 '$CC '*)
14857 # Test whether the compiler implicitly links with -lc since on some
14858 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14859 # to ld, don't add -lc before -lgcc.
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14861 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14862 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 $RM conftest*
14866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14869 (eval $ac_compile) 2>&5
14870 ac_status=$?
14871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 test $ac_status = 0; } 2>conftest.err; then
14873 soname=conftest
14874 lib=conftest
14875 libobjs=conftest.$ac_objext
14876 deplibs=
14877 wl=$lt_prog_compiler_wl_CXX
14878 pic_flag=$lt_prog_compiler_pic_CXX
14879 compiler_flags=-v
14880 linker_flags=-v
14881 verstring=
14882 output_objdir=.
14883 libname=conftest
14884 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14885 allow_undefined_flag_CXX=
14886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14887 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14888 ac_status=$?
14889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14890 test $ac_status = 0; }
14891 then
14892 lt_cv_archive_cmds_need_lc_CXX=no
14893 else
14894 lt_cv_archive_cmds_need_lc_CXX=yes
14896 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14897 else
14898 cat conftest.err 1>&5
14900 $RM conftest*
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14904 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14905 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14907 esac
14910 esac
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14976 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14978 library_names_spec=
14979 libname_spec='lib$name'
14980 soname_spec=
14981 shrext_cmds=".so"
14982 postinstall_cmds=
14983 postuninstall_cmds=
14984 finish_cmds=
14985 finish_eval=
14986 shlibpath_var=
14987 shlibpath_overrides_runpath=unknown
14988 version_type=none
14989 dynamic_linker="$host_os ld.so"
14990 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14991 need_lib_prefix=unknown
14992 hardcode_into_libs=no
14994 # when you set need_version to no, make sure it does not cause -set_version
14995 # flags to be left without arguments
14996 need_version=unknown
14998 case $host_os in
14999 aix3*)
15000 version_type=linux
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15002 shlibpath_var=LIBPATH
15004 # AIX 3 has no versioning support, so we append a major version to the name.
15005 soname_spec='${libname}${release}${shared_ext}$major'
15008 aix[4-9]*)
15009 version_type=linux
15010 need_lib_prefix=no
15011 need_version=no
15012 hardcode_into_libs=yes
15013 if test "$host_cpu" = ia64; then
15014 # AIX 5 supports IA64
15015 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 else
15018 # With GCC up to 2.95.x, collect2 would create an import file
15019 # for dependence libraries. The import file would start with
15020 # the line `#! .'. This would cause the generated library to
15021 # depend on `.', always an invalid library. This was fixed in
15022 # development snapshots of GCC prior to 3.0.
15023 case $host_os in
15024 aix4 | aix4.[01] | aix4.[01].*)
15025 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15026 echo ' yes '
15027 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15029 else
15030 can_build_shared=no
15033 esac
15034 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15035 # soname into executable. Probably we can add versioning support to
15036 # collect2, so additional links can be useful in future.
15037 if test "$aix_use_runtimelinking" = yes; then
15038 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15039 # instead of lib<name>.a to let people know that these are not
15040 # typical AIX shared libraries.
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042 else
15043 # We preserve .a as extension for shared libraries through AIX4.2
15044 # and later when we are not doing run time linking.
15045 library_names_spec='${libname}${release}.a $libname.a'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15048 shlibpath_var=LIBPATH
15052 amigaos*)
15053 case $host_cpu in
15054 powerpc)
15055 # Since July 2007 AmigaOS4 officially supports .so libraries.
15056 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059 m68k)
15060 library_names_spec='$libname.ixlibrary $libname.a'
15061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15062 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'
15064 esac
15067 beos*)
15068 library_names_spec='${libname}${shared_ext}'
15069 dynamic_linker="$host_os ld.so"
15070 shlibpath_var=LIBRARY_PATH
15073 bsdi[45]*)
15074 version_type=linux
15075 need_version=no
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077 soname_spec='${libname}${release}${shared_ext}$major'
15078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15082 # the default ld.so.conf also contains /usr/contrib/lib and
15083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15084 # libtool to hard-code these into programs
15087 cygwin* | mingw* | pw32* | cegcc*)
15088 version_type=windows
15089 shrext_cmds=".dll"
15090 need_version=no
15091 need_lib_prefix=no
15093 case $GCC,$host_os in
15094 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15095 library_names_spec='$libname.dll.a'
15096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15097 postinstall_cmds='base_file=`basename \${file}`~
15098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15099 dldir=$destdir/`dirname \$dlpath`~
15100 test -d \$dldir || mkdir -p \$dldir~
15101 $install_prog $dir/$dlname \$dldir/$dlname~
15102 chmod a+x \$dldir/$dlname~
15103 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15104 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15107 dlpath=$dir/\$dldll~
15108 $RM \$dlpath'
15109 shlibpath_overrides_runpath=yes
15111 case $host_os in
15112 cygwin*)
15113 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15114 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15117 mingw* | cegcc*)
15118 # MinGW DLLs use traditional 'lib' prefix
15119 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15121 pw32*)
15122 # pw32 DLLs use 'pw' prefix rather than 'lib'
15123 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15125 esac
15129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15131 esac
15132 dynamic_linker='Win32 ld.exe'
15133 # FIXME: first we should search . and the directory the executable is in
15134 shlibpath_var=PATH
15137 darwin* | rhapsody*)
15138 dynamic_linker="$host_os dyld"
15139 version_type=darwin
15140 need_lib_prefix=no
15141 need_version=no
15142 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15143 soname_spec='${libname}${release}${major}$shared_ext'
15144 shlibpath_overrides_runpath=yes
15145 shlibpath_var=DYLD_LIBRARY_PATH
15146 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15148 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15151 dgux*)
15152 version_type=linux
15153 need_lib_prefix=no
15154 need_version=no
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15156 soname_spec='${libname}${release}${shared_ext}$major'
15157 shlibpath_var=LD_LIBRARY_PATH
15160 freebsd* | dragonfly*)
15161 # DragonFly does not have aout. When/if they implement a new
15162 # versioning mechanism, adjust this.
15163 if test -x /usr/bin/objformat; then
15164 objformat=`/usr/bin/objformat`
15165 else
15166 case $host_os in
15167 freebsd[23].*) objformat=aout ;;
15168 *) objformat=elf ;;
15169 esac
15171 version_type=freebsd-$objformat
15172 case $version_type in
15173 freebsd-elf*)
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15175 need_version=no
15176 need_lib_prefix=no
15178 freebsd-*)
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15180 need_version=yes
15182 esac
15183 shlibpath_var=LD_LIBRARY_PATH
15184 case $host_os in
15185 freebsd2.*)
15186 shlibpath_overrides_runpath=yes
15188 freebsd3.[01]* | freebsdelf3.[01]*)
15189 shlibpath_overrides_runpath=yes
15190 hardcode_into_libs=yes
15192 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15193 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15194 shlibpath_overrides_runpath=no
15195 hardcode_into_libs=yes
15197 *) # from 4.6 on, and DragonFly
15198 shlibpath_overrides_runpath=yes
15199 hardcode_into_libs=yes
15201 esac
15204 gnu*)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 hardcode_into_libs=yes
15214 haiku*)
15215 version_type=linux
15216 need_lib_prefix=no
15217 need_version=no
15218 dynamic_linker="$host_os runtime_loader"
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15220 soname_spec='${libname}${release}${shared_ext}$major'
15221 shlibpath_var=LIBRARY_PATH
15222 shlibpath_overrides_runpath=yes
15223 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15224 hardcode_into_libs=yes
15227 hpux9* | hpux10* | hpux11*)
15228 # Give a soname corresponding to the major version so that dld.sl refuses to
15229 # link against other versions.
15230 version_type=sunos
15231 need_lib_prefix=no
15232 need_version=no
15233 case $host_cpu in
15234 ia64*)
15235 shrext_cmds='.so'
15236 hardcode_into_libs=yes
15237 dynamic_linker="$host_os dld.so"
15238 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 if test "X$HPUX_IA64_MODE" = X32; then
15243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15244 else
15245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15249 hppa*64*)
15250 shrext_cmds='.sl'
15251 hardcode_into_libs=yes
15252 dynamic_linker="$host_os dld.sl"
15253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15261 shrext_cmds='.sl'
15262 dynamic_linker="$host_os dld.sl"
15263 shlibpath_var=SHLIB_PATH
15264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266 soname_spec='${libname}${release}${shared_ext}$major'
15268 esac
15269 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15270 postinstall_cmds='chmod 555 $lib'
15271 # or fails outright, so override atomically:
15272 install_override_mode=555
15275 interix[3-9]*)
15276 version_type=linux
15277 need_lib_prefix=no
15278 need_version=no
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 shlibpath_overrides_runpath=no
15284 hardcode_into_libs=yes
15287 irix5* | irix6* | nonstopux*)
15288 case $host_os in
15289 nonstopux*) version_type=nonstopux ;;
15291 if test "$lt_cv_prog_gnu_ld" = yes; then
15292 version_type=linux
15293 else
15294 version_type=irix
15295 fi ;;
15296 esac
15297 need_lib_prefix=no
15298 need_version=no
15299 soname_spec='${libname}${release}${shared_ext}$major'
15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15301 case $host_os in
15302 irix5* | nonstopux*)
15303 libsuff= shlibsuff=
15306 case $LD in # libtool.m4 will add one of these switches to LD
15307 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15308 libsuff= shlibsuff= libmagic=32-bit;;
15309 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15310 libsuff=32 shlibsuff=N32 libmagic=N32;;
15311 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15312 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15313 *) libsuff= shlibsuff= libmagic=never-match;;
15314 esac
15316 esac
15317 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15318 shlibpath_overrides_runpath=no
15319 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15320 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15321 hardcode_into_libs=yes
15324 # No shared lib support for Linux oldld, aout, or coff.
15325 linux*oldld* | linux*aout* | linux*coff*)
15326 dynamic_linker=no
15329 # This must be Linux ELF.
15331 # uclinux* changes (here and below) have been submitted to the libtool
15332 # project, but have not yet been accepted: they are GCC-local changes
15333 # for the time being. (See
15334 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15335 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15336 version_type=linux
15337 need_lib_prefix=no
15338 need_version=no
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 shlibpath_overrides_runpath=no
15345 # Some binutils ld are patched to set DT_RUNPATH
15346 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15347 $as_echo_n "(cached) " >&6
15348 else
15349 lt_cv_shlibpath_overrides_runpath=no
15350 save_LDFLAGS=$LDFLAGS
15351 save_libdir=$libdir
15352 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15353 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15358 main ()
15362 return 0;
15364 _ACEOF
15365 if ac_fn_cxx_try_link "$LINENO"; then :
15366 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15367 lt_cv_shlibpath_overrides_runpath=yes
15370 rm -f core conftest.err conftest.$ac_objext \
15371 conftest$ac_exeext conftest.$ac_ext
15372 LDFLAGS=$save_LDFLAGS
15373 libdir=$save_libdir
15377 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15379 # This implies no fast_install, which is unacceptable.
15380 # Some rework will be needed to allow for fast_install
15381 # before this can be enabled.
15382 hardcode_into_libs=yes
15384 # Append ld.so.conf contents to the search path
15385 if test -f /etc/ld.so.conf; then
15386 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' ' '`
15387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15390 # We used to test for /lib/ld.so.1 and disable shared libraries on
15391 # powerpc, because MkLinux only supported shared libraries with the
15392 # GNU dynamic linker. Since this was broken with cross compilers,
15393 # most powerpc-linux boxes support dynamic linking these days and
15394 # people can always --disable-shared, the test was removed, and we
15395 # assume the GNU/Linux dynamic linker is in use.
15396 dynamic_linker='GNU/Linux ld.so'
15399 netbsd*)
15400 version_type=sunos
15401 need_lib_prefix=no
15402 need_version=no
15403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15406 dynamic_linker='NetBSD (a.out) ld.so'
15407 else
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 dynamic_linker='NetBSD ld.elf_so'
15412 shlibpath_var=LD_LIBRARY_PATH
15413 shlibpath_overrides_runpath=yes
15414 hardcode_into_libs=yes
15417 newsos6)
15418 version_type=linux
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 shlibpath_overrides_runpath=yes
15424 *nto* | *qnx*)
15425 version_type=qnx
15426 need_lib_prefix=no
15427 need_version=no
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=no
15432 hardcode_into_libs=yes
15433 dynamic_linker='ldqnx.so'
15436 openbsd*)
15437 version_type=sunos
15438 sys_lib_dlsearch_path_spec="/usr/lib"
15439 need_lib_prefix=no
15440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15441 case $host_os in
15442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15443 *) need_version=no ;;
15444 esac
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15447 shlibpath_var=LD_LIBRARY_PATH
15448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15449 case $host_os in
15450 openbsd2.[89] | openbsd2.[89].*)
15451 shlibpath_overrides_runpath=no
15454 shlibpath_overrides_runpath=yes
15456 esac
15457 else
15458 shlibpath_overrides_runpath=yes
15462 os2*)
15463 libname_spec='$name'
15464 shrext_cmds=".dll"
15465 need_lib_prefix=no
15466 library_names_spec='$libname${shared_ext} $libname.a'
15467 dynamic_linker='OS/2 ld.exe'
15468 shlibpath_var=LIBPATH
15471 osf3* | osf4* | osf5*)
15472 version_type=osf
15473 need_lib_prefix=no
15474 need_version=no
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15482 rdos*)
15483 dynamic_linker=no
15486 solaris*)
15487 version_type=linux
15488 need_lib_prefix=no
15489 need_version=no
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 shlibpath_overrides_runpath=yes
15494 hardcode_into_libs=yes
15495 # ldd complains unless libraries are executable
15496 postinstall_cmds='chmod +x $lib'
15499 sunos4*)
15500 version_type=sunos
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15502 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15503 shlibpath_var=LD_LIBRARY_PATH
15504 shlibpath_overrides_runpath=yes
15505 if test "$with_gnu_ld" = yes; then
15506 need_lib_prefix=no
15508 need_version=yes
15511 sysv4 | sysv4.3*)
15512 version_type=linux
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514 soname_spec='${libname}${release}${shared_ext}$major'
15515 shlibpath_var=LD_LIBRARY_PATH
15516 case $host_vendor in
15517 sni)
15518 shlibpath_overrides_runpath=no
15519 need_lib_prefix=no
15520 runpath_var=LD_RUN_PATH
15522 siemens)
15523 need_lib_prefix=no
15525 motorola)
15526 need_lib_prefix=no
15527 need_version=no
15528 shlibpath_overrides_runpath=no
15529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15531 esac
15534 sysv4*MP*)
15535 if test -d /usr/nec ;then
15536 version_type=linux
15537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15538 soname_spec='$libname${shared_ext}.$major'
15539 shlibpath_var=LD_LIBRARY_PATH
15543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15544 version_type=freebsd-elf
15545 need_lib_prefix=no
15546 need_version=no
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 shlibpath_overrides_runpath=yes
15551 hardcode_into_libs=yes
15552 if test "$with_gnu_ld" = yes; then
15553 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15554 else
15555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15556 case $host_os in
15557 sco3.2v5*)
15558 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15560 esac
15562 sys_lib_dlsearch_path_spec='/usr/lib'
15565 tpf*)
15566 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15567 version_type=linux
15568 need_lib_prefix=no
15569 need_version=no
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=no
15573 hardcode_into_libs=yes
15576 uts4*)
15577 version_type=linux
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 shlibpath_var=LD_LIBRARY_PATH
15584 dynamic_linker=no
15586 esac
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15588 $as_echo "$dynamic_linker" >&6; }
15589 test "$dynamic_linker" = no && can_build_shared=no
15591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15592 if test "$GCC" = yes; then
15593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15596 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15597 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15600 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15641 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15642 hardcode_action_CXX=
15643 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15644 test -n "$runpath_var_CXX" ||
15645 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15647 # We can hardcode non-existent directories.
15648 if test "$hardcode_direct_CXX" != no &&
15649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15650 # have to relink, otherwise we might link with an installed library
15651 # when we should be linking with a yet-to-be-installed one
15652 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15653 test "$hardcode_minus_L_CXX" != no; then
15654 # Linking always hardcodes the temporary library directory.
15655 hardcode_action_CXX=relink
15656 else
15657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15658 hardcode_action_CXX=immediate
15660 else
15661 # We cannot hardcode anything, or else we can only hardcode existing
15662 # directories.
15663 hardcode_action_CXX=unsupported
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15666 $as_echo "$hardcode_action_CXX" >&6; }
15668 if test "$hardcode_action_CXX" = relink ||
15669 test "$inherit_rpath_CXX" = yes; then
15670 # Fast installation is not supported
15671 enable_fast_install=no
15672 elif test "$shlibpath_overrides_runpath" = yes ||
15673 test "$enable_shared" = no; then
15674 # Fast installation is not necessary
15675 enable_fast_install=needless
15684 fi # test -n "$compiler"
15686 CC=$lt_save_CC
15687 LDCXX=$LD
15688 LD=$lt_save_LD
15689 GCC=$lt_save_GCC
15690 with_gnu_ld=$lt_save_with_gnu_ld
15691 lt_cv_path_LDCXX=$lt_cv_path_LD
15692 lt_cv_path_LD=$lt_save_path_LD
15693 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15694 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15695 fi # test "$_lt_caught_CXX_error" != yes
15697 ac_ext=c
15698 ac_cpp='$CPP $CPPFLAGS'
15699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15715 ac_config_commands="$ac_config_commands libtool"
15720 # Only expand once:
15724 for ac_prog in gawk mawk nawk awk
15726 # Extract the first word of "$ac_prog", so it can be a program name with args.
15727 set dummy $ac_prog; ac_word=$2
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15729 $as_echo_n "checking for $ac_word... " >&6; }
15730 if ${ac_cv_prog_AWK+:} false; then :
15731 $as_echo_n "(cached) " >&6
15732 else
15733 if test -n "$AWK"; then
15734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15735 else
15736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15737 for as_dir in $PATH
15739 IFS=$as_save_IFS
15740 test -z "$as_dir" && as_dir=.
15741 for ac_exec_ext in '' $ac_executable_extensions; do
15742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15743 ac_cv_prog_AWK="$ac_prog"
15744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15745 break 2
15747 done
15748 done
15749 IFS=$as_save_IFS
15753 AWK=$ac_cv_prog_AWK
15754 if test -n "$AWK"; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15756 $as_echo "$AWK" >&6; }
15757 else
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15759 $as_echo "no" >&6; }
15763 test -n "$AWK" && break
15764 done
15766 case "$AWK" in
15767 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
15768 esac
15773 # The cast to long int works around a bug in the HP C Compiler
15774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15776 # This bug is HP SR number 8606223364.
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15778 $as_echo_n "checking size of void *... " >&6; }
15779 if ${ac_cv_sizeof_void_p+:} false; then :
15780 $as_echo_n "(cached) " >&6
15781 else
15782 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15784 else
15785 if test "$ac_cv_type_void_p" = yes; then
15786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15788 as_fn_error 77 "cannot compute sizeof (void *)
15789 See \`config.log' for more details" "$LINENO" 5; }
15790 else
15791 ac_cv_sizeof_void_p=0
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15797 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15801 cat >>confdefs.h <<_ACEOF
15802 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15803 _ACEOF
15807 if test "${multilib}" = "yes"; then
15808 multilib_arg="--enable-multilib"
15809 else
15810 multilib_arg=
15813 # Get target configury.
15814 unset TSAN_SUPPORTED
15815 unset LSAN_SUPPORTED
15816 unset HWASAN_SUPPORTED
15817 . ${srcdir}/configure.tgt
15818 if test "x$TSAN_SUPPORTED" = "xyes"; then
15819 TSAN_SUPPORTED_TRUE=
15820 TSAN_SUPPORTED_FALSE='#'
15821 else
15822 TSAN_SUPPORTED_TRUE='#'
15823 TSAN_SUPPORTED_FALSE=
15826 if test "x$LSAN_SUPPORTED" = "xyes"; then
15827 LSAN_SUPPORTED_TRUE=
15828 LSAN_SUPPORTED_FALSE='#'
15829 else
15830 LSAN_SUPPORTED_TRUE='#'
15831 LSAN_SUPPORTED_FALSE=
15834 if test "x$HWASAN_SUPPORTED" = "xyes"; then
15835 HWASAN_SUPPORTED_TRUE=
15836 HWASAN_SUPPORTED_FALSE='#'
15837 else
15838 HWASAN_SUPPORTED_TRUE='#'
15839 HWASAN_SUPPORTED_FALSE=
15843 # Check for functions needed.
15844 for ac_func in clock_getres clock_gettime clock_settime lstat readlink
15845 do :
15846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15848 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15849 cat >>confdefs.h <<_ACEOF
15850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15851 _ACEOF
15854 done
15857 # Common libraries that we need to link against for all sanitizer libs.
15858 link_sanitizer_common='-lpthread -lm'
15860 # At least for glibc, shm_open is in librt. But don't pull that
15861 # in if it still doesn't give us the function we want. This
15862 # test is copied from libgomp.
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15864 $as_echo_n "checking for shm_open in -lrt... " >&6; }
15865 if ${ac_cv_lib_rt_shm_open+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 ac_check_lib_save_LIBS=$LIBS
15869 LIBS="-lrt $LIBS"
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15873 /* Override any GCC internal prototype to avoid an error.
15874 Use char because int might match the return type of a GCC
15875 builtin and then its argument prototype would still apply. */
15876 #ifdef __cplusplus
15877 extern "C"
15878 #endif
15879 char shm_open ();
15881 main ()
15883 return shm_open ();
15885 return 0;
15887 _ACEOF
15888 if ac_fn_c_try_link "$LINENO"; then :
15889 ac_cv_lib_rt_shm_open=yes
15890 else
15891 ac_cv_lib_rt_shm_open=no
15893 rm -f core conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15895 LIBS=$ac_check_lib_save_LIBS
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15898 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
15899 if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
15900 link_sanitizer_common="-lrt $link_sanitizer_common"
15904 # Do a configure time check for -ldl
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15906 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15907 if ${ac_cv_lib_dl_dlsym+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 ac_check_lib_save_LIBS=$LIBS
15911 LIBS="-ldl $LIBS"
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15915 /* Override any GCC internal prototype to avoid an error.
15916 Use char because int might match the return type of a GCC
15917 builtin and then its argument prototype would still apply. */
15918 #ifdef __cplusplus
15919 extern "C"
15920 #endif
15921 char dlsym ();
15923 main ()
15925 return dlsym ();
15927 return 0;
15929 _ACEOF
15930 if ac_fn_c_try_link "$LINENO"; then :
15931 ac_cv_lib_dl_dlsym=yes
15932 else
15933 ac_cv_lib_dl_dlsym=no
15935 rm -f core conftest.err conftest.$ac_objext \
15936 conftest$ac_exeext conftest.$ac_ext
15937 LIBS=$ac_check_lib_save_LIBS
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15940 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15941 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15942 link_sanitizer_common="-ldl $link_sanitizer_common"
15946 # Set up the set of additional libraries that we need to link against for libasan.
15947 link_libasan=$link_sanitizer_common
15950 # Set up the set of additional libraries that we need to link against for libhwasan.
15951 link_libhwasan=$link_sanitizer_common
15954 # Set up the set of additional libraries that we need to link against for libtsan.
15955 link_libtsan=$link_sanitizer_common
15958 # Set up the set of additional libraries that we need to link against for libubsan.
15959 link_libubsan=$link_sanitizer_common
15962 # Set up the set of additional libraries that we need to link against for liblsan.
15963 link_liblsan=$link_sanitizer_common
15967 # At least for glibc, clock_gettime is in librt. But don't pull that
15968 # in if it still doesn't give us the function we want. This
15969 # test is copied from libgomp.
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15971 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15972 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15973 $as_echo_n "(cached) " >&6
15974 else
15975 ac_check_lib_save_LIBS=$LIBS
15976 LIBS="-lrt $LIBS"
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15980 /* Override any GCC internal prototype to avoid an error.
15981 Use char because int might match the return type of a GCC
15982 builtin and then its argument prototype would still apply. */
15983 #ifdef __cplusplus
15984 extern "C"
15985 #endif
15986 char clock_gettime ();
15988 main ()
15990 return clock_gettime ();
15992 return 0;
15994 _ACEOF
15995 if ac_fn_c_try_link "$LINENO"; then :
15996 ac_cv_lib_rt_clock_gettime=yes
15997 else
15998 ac_cv_lib_rt_clock_gettime=no
16000 rm -f core conftest.err conftest.$ac_objext \
16001 conftest$ac_exeext conftest.$ac_ext
16002 LIBS=$ac_check_lib_save_LIBS
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16005 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16006 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16007 link_libasan="-lrt $link_libasan"
16008 link_libtsan="-lrt $link_libtsan"
16009 # Other sanitizers do not override clock_* API
16014 case "$host" in
16015 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
16016 *) MAC_INTERPOSE=false ;;
16017 esac
16018 if $MAC_INTERPOSE; then
16019 USING_MAC_INTERPOSE_TRUE=
16020 USING_MAC_INTERPOSE_FALSE='#'
16021 else
16022 USING_MAC_INTERPOSE_TRUE='#'
16023 USING_MAC_INTERPOSE_FALSE=
16027 backtrace_supported=yes
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
16030 $as_echo_n "checking for necessary platform features... " >&6; }
16031 case "$target" in
16032 *-*-linux*)
16033 # Some old Linux distributions miss required syscalls.
16034 sanitizer_supported=no
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16037 #include <sys/syscall.h>
16039 main ()
16042 syscall (__NR_gettid);
16043 syscall (__NR_futex);
16044 syscall (__NR_exit_group);
16047 return 0;
16049 _ACEOF
16050 if ac_fn_c_try_compile "$LINENO"; then :
16051 sanitizer_supported=yes
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056 sanitizer_supported=yes
16058 esac
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
16060 $as_echo "$sanitizer_supported" >&6; }
16061 if test "$sanitizer_supported" = yes; then
16062 SANITIZER_SUPPORTED_TRUE=
16063 SANITIZER_SUPPORTED_FALSE='#'
16064 else
16065 SANITIZER_SUPPORTED_TRUE='#'
16066 SANITIZER_SUPPORTED_FALSE=
16070 # Test for __sync support.
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
16072 $as_echo_n "checking __sync extensions... " >&6; }
16073 if ${libsanitizer_cv_sys_sync+:} false; then :
16074 $as_echo_n "(cached) " >&6
16075 else
16076 if test -n "${with_target_subdir}"; then
16077 libsanitizer_cv_sys_sync=yes
16078 else
16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080 /* end confdefs.h. */
16081 int i;
16083 main ()
16085 __sync_bool_compare_and_swap (&i, i, i);
16086 __sync_lock_test_and_set (&i, 1);
16087 __sync_lock_release (&i);
16089 return 0;
16091 _ACEOF
16092 if ac_fn_c_try_link "$LINENO"; then :
16093 libsanitizer_cv_sys_sync=yes
16094 else
16095 libsanitizer_cv_sys_sync=no
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
16102 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
16103 if test "$libsanitizer_cv_sys_sync" = "yes"; then
16105 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
16109 # Test for __atomic support.
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
16111 $as_echo_n "checking __atomic extensions... " >&6; }
16112 if ${libsanitizer_cv_sys_atomic+:} false; then :
16113 $as_echo_n "(cached) " >&6
16114 else
16115 if test -n "${with_target_subdir}"; then
16116 libsanitizer_cv_sys_atomic=yes
16117 else
16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16120 int i;
16122 main ()
16124 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
16125 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
16127 return 0;
16129 _ACEOF
16130 if ac_fn_c_try_link "$LINENO"; then :
16131 libsanitizer_cv_sys_atomic=yes
16132 else
16133 libsanitizer_cv_sys_atomic=no
16135 rm -f core conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
16140 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
16141 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
16143 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
16147 # The library needs to be able to read the executable itself. Compile
16148 # a file to determine the executable format. The awk script
16149 # filetype.awk prints out the file type.
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
16151 $as_echo_n "checking output filetype... " >&6; }
16152 if ${libsanitizer_cv_sys_filetype+:} false; then :
16153 $as_echo_n "(cached) " >&6
16154 else
16155 filetype=
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 int i;
16160 main ()
16162 int j;
16164 return 0;
16166 _ACEOF
16167 if ac_fn_c_try_compile "$LINENO"; then :
16168 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
16169 else
16170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16172 as_fn_error $? "compiler failed
16173 See \`config.log' for more details" "$LINENO" 5; }
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16176 libsanitizer_cv_sys_filetype=$filetype
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
16179 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
16181 # Match the file type to decide what files to compile.
16182 FORMAT_FILE=
16183 case "$libsanitizer_cv_sys_filetype" in
16184 elf*) FORMAT_FILE="elf.lo" ;;
16185 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
16186 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
16187 FORMAT_FILE="unknown.lo"
16188 backtrace_supported=no
16190 esac
16193 # ELF defines.
16194 elfsize=
16195 case "$libsanitizer_cv_sys_filetype" in
16196 elf32) elfsize=32 ;;
16197 elf64) elfsize=64 ;;
16198 esac
16200 cat >>confdefs.h <<_ACEOF
16201 #define BACKTRACE_ELF_SIZE $elfsize
16202 _ACEOF
16205 BACKTRACE_SUPPORTED=0
16206 if test "$backtrace_supported" = "yes"; then
16207 BACKTRACE_SUPPORTED=1
16213 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16215 acx_cv_header_stdint=stddef.h
16216 acx_cv_header_stdint_kind="(already complete)"
16217 for i in stdint.h $inttype_headers; do
16218 unset ac_cv_type_uintptr_t
16219 unset ac_cv_type_uintmax_t
16220 unset ac_cv_type_int_least32_t
16221 unset ac_cv_type_int_fast32_t
16222 unset ac_cv_type_uint64_t
16223 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16224 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16225 #include <$i>
16227 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16228 acx_cv_header_stdint=$i
16229 else
16230 continue
16233 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16234 #include <$i>
16236 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16238 else
16239 acx_cv_header_stdint_kind="(mostly complete)"
16242 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16243 #include <$i>
16245 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16247 else
16248 acx_cv_header_stdint_kind="(mostly complete)"
16251 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16252 #include <$i>
16254 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16256 else
16257 acx_cv_header_stdint_kind="(mostly complete)"
16260 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16261 #include <$i>
16263 if test "x$ac_cv_type_uint64_t" = xyes; then :
16265 else
16266 acx_cv_header_stdint_kind="(lacks uint64_t)"
16269 break
16270 done
16271 if test "$acx_cv_header_stdint" = stddef.h; then
16272 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16273 for i in stdint.h $inttype_headers; do
16274 unset ac_cv_type_uintptr_t
16275 unset ac_cv_type_uint32_t
16276 unset ac_cv_type_uint64_t
16277 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16278 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16279 #include <$i>
16281 if test "x$ac_cv_type_uint32_t" = xyes; then :
16282 acx_cv_header_stdint=$i
16283 else
16284 continue
16287 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16288 #include <$i>
16290 if test "x$ac_cv_type_uint64_t" = xyes; then :
16294 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16295 #include <$i>
16297 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16301 break
16302 done
16304 if test "$acx_cv_header_stdint" = stddef.h; then
16305 acx_cv_header_stdint_kind="(u_intXX_t style)"
16306 for i in sys/types.h $inttype_headers; do
16307 unset ac_cv_type_u_int32_t
16308 unset ac_cv_type_u_int64_t
16309 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16310 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16311 #include <$i>
16313 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16314 acx_cv_header_stdint=$i
16315 else
16316 continue
16319 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16320 #include <$i>
16322 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16326 break
16327 done
16329 if test "$acx_cv_header_stdint" = stddef.h; then
16330 acx_cv_header_stdint_kind="(using manual detection)"
16333 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16334 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16335 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16336 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16337 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16339 # ----------------- Summarize what we found so far
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16342 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16344 case `$as_basename -- gstdint.h ||
16345 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16346 Xgstdint.h : 'X\(//\)$' \| \
16347 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16348 $as_echo X/gstdint.h |
16349 sed '/^.*\/\([^/][^/]*\)\/*$/{
16350 s//\1/
16353 /^X\/\(\/\/\)$/{
16354 s//\1/
16357 /^X\/\(\/\).*/{
16358 s//\1/
16361 s/.*/./; q'` in
16362 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16363 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16364 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16365 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16366 *) ;;
16367 esac
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16370 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16372 # ----------------- done included file, check C basic types --------
16374 # Lacking an uintptr_t? Test size of void *
16375 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16376 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16379 # This bug is HP SR number 8606223364.
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16381 $as_echo_n "checking size of void *... " >&6; }
16382 if ${ac_cv_sizeof_void_p+:} false; then :
16383 $as_echo_n "(cached) " >&6
16384 else
16385 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16387 else
16388 if test "$ac_cv_type_void_p" = yes; then
16389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16391 as_fn_error 77 "cannot compute sizeof (void *)
16392 See \`config.log' for more details" "$LINENO" 5; }
16393 else
16394 ac_cv_sizeof_void_p=0
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16400 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16404 cat >>confdefs.h <<_ACEOF
16405 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16406 _ACEOF
16409 esac
16411 # Lacking an uint64_t? Test size of long
16412 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16413 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16416 # This bug is HP SR number 8606223364.
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16418 $as_echo_n "checking size of long... " >&6; }
16419 if ${ac_cv_sizeof_long+:} false; then :
16420 $as_echo_n "(cached) " >&6
16421 else
16422 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16424 else
16425 if test "$ac_cv_type_long" = yes; then
16426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16428 as_fn_error 77 "cannot compute sizeof (long)
16429 See \`config.log' for more details" "$LINENO" 5; }
16430 else
16431 ac_cv_sizeof_long=0
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16437 $as_echo "$ac_cv_sizeof_long" >&6; }
16441 cat >>confdefs.h <<_ACEOF
16442 #define SIZEOF_LONG $ac_cv_sizeof_long
16443 _ACEOF
16446 esac
16448 if test $acx_cv_header_stdint = stddef.h; then
16449 # Lacking a good header? Test size of everything and deduce all types.
16450 # The cast to long int works around a bug in the HP C Compiler
16451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16453 # This bug is HP SR number 8606223364.
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16455 $as_echo_n "checking size of int... " >&6; }
16456 if ${ac_cv_sizeof_int+:} false; then :
16457 $as_echo_n "(cached) " >&6
16458 else
16459 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16461 else
16462 if test "$ac_cv_type_int" = yes; then
16463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16465 as_fn_error 77 "cannot compute sizeof (int)
16466 See \`config.log' for more details" "$LINENO" 5; }
16467 else
16468 ac_cv_sizeof_int=0
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16474 $as_echo "$ac_cv_sizeof_int" >&6; }
16478 cat >>confdefs.h <<_ACEOF
16479 #define SIZEOF_INT $ac_cv_sizeof_int
16480 _ACEOF
16483 # The cast to long int works around a bug in the HP C Compiler
16484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16486 # This bug is HP SR number 8606223364.
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16488 $as_echo_n "checking size of short... " >&6; }
16489 if ${ac_cv_sizeof_short+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16494 else
16495 if test "$ac_cv_type_short" = yes; then
16496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16498 as_fn_error 77 "cannot compute sizeof (short)
16499 See \`config.log' for more details" "$LINENO" 5; }
16500 else
16501 ac_cv_sizeof_short=0
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16507 $as_echo "$ac_cv_sizeof_short" >&6; }
16511 cat >>confdefs.h <<_ACEOF
16512 #define SIZEOF_SHORT $ac_cv_sizeof_short
16513 _ACEOF
16516 # The cast to long int works around a bug in the HP C Compiler
16517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16519 # This bug is HP SR number 8606223364.
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16521 $as_echo_n "checking size of char... " >&6; }
16522 if ${ac_cv_sizeof_char+:} false; then :
16523 $as_echo_n "(cached) " >&6
16524 else
16525 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16527 else
16528 if test "$ac_cv_type_char" = yes; then
16529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16531 as_fn_error 77 "cannot compute sizeof (char)
16532 See \`config.log' for more details" "$LINENO" 5; }
16533 else
16534 ac_cv_sizeof_char=0
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16540 $as_echo "$ac_cv_sizeof_char" >&6; }
16544 cat >>confdefs.h <<_ACEOF
16545 #define SIZEOF_CHAR $ac_cv_sizeof_char
16546 _ACEOF
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16551 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16552 case "$ac_cv_sizeof_char" in
16553 1) acx_cv_type_int8_t=char ;;
16554 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16555 esac
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16557 $as_echo "$acx_cv_type_int8_t" >&6; }
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16560 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16561 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16562 2:*) acx_cv_type_int16_t=int ;;
16563 *:2) acx_cv_type_int16_t=short ;;
16564 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16565 esac
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16567 $as_echo "$acx_cv_type_int16_t" >&6; }
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16570 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16571 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16572 4:*) acx_cv_type_int32_t=int ;;
16573 *:4) acx_cv_type_int32_t=long ;;
16574 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16575 esac
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16577 $as_echo "$acx_cv_type_int32_t" >&6; }
16580 # These tests are here to make the output prettier
16582 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16583 case "$ac_cv_sizeof_long" in
16584 8) acx_cv_type_int64_t=long ;;
16585 esac
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16587 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16589 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16592 # Now we can use the above types
16594 if test "$ac_cv_type_uintptr_t" != yes; then
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16596 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16597 case $ac_cv_sizeof_void_p in
16598 2) acx_cv_type_intptr_t=int16_t ;;
16599 4) acx_cv_type_intptr_t=int32_t ;;
16600 8) acx_cv_type_intptr_t=int64_t ;;
16601 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16602 esac
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16604 $as_echo "$acx_cv_type_intptr_t" >&6; }
16607 # ----------------- done all checks, emit header -------------
16608 ac_config_commands="$ac_config_commands gstdint.h"
16613 for ac_header in sys/mman.h alloca.h
16614 do :
16615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16616 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16617 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16618 cat >>confdefs.h <<_ACEOF
16619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16620 _ACEOF
16624 done
16626 if test "$ac_cv_header_sys_mman_h" = "no"; then
16627 have_mmap=no
16628 else
16629 if test -n "${with_target_subdir}"; then
16630 # When built as a GCC target library, we can't do a link test. We
16631 # simply assume that if we have mman.h, we have mmap.
16632 have_mmap=yes
16633 else
16634 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16635 if test "x$ac_cv_func_mmap" = xyes; then :
16636 have_mmap=yes
16637 else
16638 have_mmap=no
16643 if test "$have_mmap" = "no"; then
16644 VIEW_FILE=read.lo
16645 ALLOC_FILE=alloc.lo
16646 else
16647 VIEW_FILE=mmapio.lo
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16651 #include <sys/mman.h>
16652 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16653 #error no MAP_ANONYMOUS
16654 #endif
16656 _ACEOF
16657 if ac_fn_c_try_cpp "$LINENO"; then :
16658 ALLOC_FILE=mmap.lo
16659 else
16660 ALLOC_FILE=alloc.lo
16662 rm -f conftest.err conftest.i conftest.$ac_ext
16667 BACKTRACE_USES_MALLOC=0
16668 if test "$ALLOC_FILE" = "alloc.lo"; then
16669 BACKTRACE_USES_MALLOC=1
16673 # Don't care about thread support
16674 BACKTRACE_SUPPORTS_THREADS=0
16677 # Check for dl_iterate_phdr.
16678 for ac_header in link.h
16679 do :
16680 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16681 if test "x$ac_cv_header_link_h" = xyes; then :
16682 cat >>confdefs.h <<_ACEOF
16683 #define HAVE_LINK_H 1
16684 _ACEOF
16688 done
16690 if test "$ac_cv_header_link_h" = "no"; then
16691 have_dl_iterate_phdr=no
16692 else
16693 # When built as a GCC target library, we can't do a link test.
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16696 #include <link.h>
16698 _ACEOF
16699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16700 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16701 have_dl_iterate_phdr=yes
16702 else
16703 have_dl_iterate_phdr=no
16705 rm -f conftest*
16708 if test "$have_dl_iterate_phdr" = "yes"; then
16710 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16714 # Check for the fcntl function.
16715 if test -n "${with_target_subdir}"; then
16716 case "${host}" in
16717 *-*-mingw*) have_fcntl=no ;;
16718 *) have_fcntl=yes ;;
16719 esac
16720 else
16721 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16722 if test "x$ac_cv_func_fcntl" = xyes; then :
16723 have_fcntl=yes
16724 else
16725 have_fcntl=no
16729 if test "$have_fcntl" = "yes"; then
16731 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16735 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16736 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
16737 ac_have_decl=1
16738 else
16739 ac_have_decl=0
16742 cat >>confdefs.h <<_ACEOF
16743 #define HAVE_DECL_STRNLEN $ac_have_decl
16744 _ACEOF
16747 # Check for getexecname function.
16748 if test -n "${with_target_subdir}"; then
16749 case "${host}" in
16750 *-*-solaris2*) have_getexecname=yes ;;
16751 *) have_getexecname=no ;;
16752 esac
16753 else
16754 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16755 if test "x$ac_cv_func_getexecname" = xyes; then :
16756 have_getexecname=yes
16757 else
16758 have_getexecname=no
16762 if test "$have_getexecname" = "yes"; then
16764 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16768 # Check for rpc/xdr.h
16769 for ac_header in rpc/xdr.h
16770 do :
16771 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16772 if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
16773 cat >>confdefs.h <<_ACEOF
16774 #define HAVE_RPC_XDR_H 1
16775 _ACEOF
16779 done
16781 if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16782 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16783 else
16784 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16787 # Check for tirpc/rpc/xdr.h
16788 for ac_header in tirpc/rpc/xdr.h
16789 do :
16790 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16791 if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then :
16792 cat >>confdefs.h <<_ACEOF
16793 #define HAVE_TIRPC_RPC_XDR_H 1
16794 _ACEOF
16798 done
16800 if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16801 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16802 else
16803 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16806 RPC_DEFS=$rpc_defs
16809 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16810 LIBBACKTRACE_SUPPORTED_TRUE=
16811 LIBBACKTRACE_SUPPORTED_FALSE='#'
16812 else
16813 LIBBACKTRACE_SUPPORTED_TRUE='#'
16814 LIBBACKTRACE_SUPPORTED_FALSE=
16819 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16821 ac_config_headers="$ac_config_headers config.h"
16824 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16827 if test "x$TSAN_SUPPORTED" = "xyes"; then
16828 ac_config_files="$ac_config_files tsan/Makefile"
16832 if test "x$HWASAN_SUPPORTED" = "xyes"; then
16833 ac_config_files="$ac_config_files hwasan/Makefile"
16840 # Determine what GCC version number to use in filesystem paths.
16842 get_gcc_base_ver="cat"
16844 # Check whether --with-gcc-major-version-only was given.
16845 if test "${with_gcc_major_version_only+set}" = set; then :
16846 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16847 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16855 # Add CET specific flags if Intel CET is enabled.
16856 # Check whether --enable-cet was given.
16857 if test "${enable_cet+set}" = set; then :
16858 enableval=$enable_cet;
16859 case "$enableval" in
16860 yes|no|auto) ;;
16861 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16862 esac
16864 else
16865 enable_cet=auto
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16870 $as_echo_n "checking for CET support... " >&6; }
16872 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16873 case "$host" in
16874 i[34567]86-*-linux* | x86_64-*-linux*)
16875 case "$enable_cet" in
16876 auto)
16877 # Check if target supports multi-byte NOPs
16878 # and if compiler and assembler support CET insn.
16879 cet_save_CFLAGS="$CFLAGS"
16880 CFLAGS="$CFLAGS -fcf-protection"
16881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882 /* end confdefs.h. */
16885 main ()
16888 #if !defined(__SSE2__)
16889 #error target does not support multi-byte NOPs
16890 #else
16891 asm ("setssbsy");
16892 #endif
16895 return 0;
16897 _ACEOF
16898 if ac_fn_c_try_compile "$LINENO"; then :
16899 enable_cet=yes
16900 else
16901 enable_cet=no
16903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16904 CFLAGS="$cet_save_CFLAGS"
16906 yes)
16907 # Check if assembler supports CET.
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16912 main ()
16914 asm ("setssbsy");
16916 return 0;
16918 _ACEOF
16919 if ac_fn_c_try_compile "$LINENO"; then :
16921 else
16922 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926 esac
16929 enable_cet=no
16931 esac
16932 if test x$enable_cet = xyes; then
16933 CET_FLAGS="-fcf-protection -mshstk"
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16935 $as_echo "yes" >&6; }
16936 else
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938 $as_echo "no" >&6; }
16941 EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
16942 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS"
16943 EXTRA_ASFLAGS=$CET_FLAGS
16948 cat >confcache <<\_ACEOF
16949 # This file is a shell script that caches the results of configure
16950 # tests run on this system so they can be shared between configure
16951 # scripts and configure runs, see configure's option --config-cache.
16952 # It is not useful on other systems. If it contains results you don't
16953 # want to keep, you may remove or edit it.
16955 # config.status only pays attention to the cache file if you give it
16956 # the --recheck option to rerun configure.
16958 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16959 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16960 # following values.
16962 _ACEOF
16964 # The following way of writing the cache mishandles newlines in values,
16965 # but we know of no workaround that is simple, portable, and efficient.
16966 # So, we kill variables containing newlines.
16967 # Ultrix sh set writes to stderr and can't be redirected directly,
16968 # and sets the high bit in the cache file unless we assign to the vars.
16970 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16971 eval ac_val=\$$ac_var
16972 case $ac_val in #(
16973 *${as_nl}*)
16974 case $ac_var in #(
16975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16976 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16977 esac
16978 case $ac_var in #(
16979 _ | IFS | as_nl) ;; #(
16980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16981 *) { eval $ac_var=; unset $ac_var;} ;;
16982 esac ;;
16983 esac
16984 done
16986 (set) 2>&1 |
16987 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16988 *${as_nl}ac_space=\ *)
16989 # `set' does not quote correctly, so add quotes: double-quote
16990 # substitution turns \\\\ into \\, and sed turns \\ into \.
16991 sed -n \
16992 "s/'/'\\\\''/g;
16993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16994 ;; #(
16996 # `set' quotes correctly as required by POSIX, so do not add quotes.
16997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16999 esac |
17000 sort
17002 sed '
17003 /^ac_cv_env_/b end
17004 t clear
17005 :clear
17006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17007 t end
17008 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17009 :end' >>confcache
17010 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17011 if test -w "$cache_file"; then
17012 if test "x$cache_file" != "x/dev/null"; then
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17014 $as_echo "$as_me: updating cache $cache_file" >&6;}
17015 if test ! -f "$cache_file" || test -h "$cache_file"; then
17016 cat confcache >"$cache_file"
17017 else
17018 case $cache_file in #(
17019 */* | ?:*)
17020 mv -f confcache "$cache_file"$$ &&
17021 mv -f "$cache_file"$$ "$cache_file" ;; #(
17023 mv -f confcache "$cache_file" ;;
17024 esac
17027 else
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17029 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17032 rm -f confcache
17034 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17035 # Let make expand exec_prefix.
17036 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17038 DEFS=-DHAVE_CONFIG_H
17040 ac_libobjs=
17041 ac_ltlibobjs=
17043 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17044 # 1. Remove the extension, and $U if already installed.
17045 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17046 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17047 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17048 # will be set to the directory where LIBOBJS objects are built.
17049 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17050 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17051 done
17052 LIBOBJS=$ac_libobjs
17054 LTLIBOBJS=$ac_ltlibobjs
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17058 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17059 if test -n "$am_sleep_pid"; then
17060 # Hide warnings about reused PIDs.
17061 wait $am_sleep_pid 2>/dev/null
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17064 $as_echo "done" >&6; }
17065 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17066 as_fn_error $? "conditional \"AMDEP\" was never defined.
17067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17069 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17070 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17073 if test -n "$EXEEXT"; then
17074 am__EXEEXT_TRUE=
17075 am__EXEEXT_FALSE='#'
17076 else
17077 am__EXEEXT_TRUE='#'
17078 am__EXEEXT_FALSE=
17081 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17082 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17085 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17086 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17089 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17090 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17093 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
17094 as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined.
17095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17097 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
17098 as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined.
17099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17101 if test -z "${HWASAN_SUPPORTED_TRUE}" && test -z "${HWASAN_SUPPORTED_FALSE}"; then
17102 as_fn_error $? "conditional \"HWASAN_SUPPORTED\" was never defined.
17103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17105 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
17106 as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined.
17107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17109 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
17110 as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined.
17111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17113 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
17114 as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
17115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17118 : "${CONFIG_STATUS=./config.status}"
17119 ac_write_fail=0
17120 ac_clean_files_save=$ac_clean_files
17121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17123 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17124 as_write_fail=0
17125 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17126 #! $SHELL
17127 # Generated by $as_me.
17128 # Run this file to recreate the current configuration.
17129 # Compiler output produced by configure, useful for debugging
17130 # configure, is in config.log if it exists.
17132 debug=false
17133 ac_cs_recheck=false
17134 ac_cs_silent=false
17136 SHELL=\${CONFIG_SHELL-$SHELL}
17137 export SHELL
17138 _ASEOF
17139 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17140 ## -------------------- ##
17141 ## M4sh Initialization. ##
17142 ## -------------------- ##
17144 # Be more Bourne compatible
17145 DUALCASE=1; export DUALCASE # for MKS sh
17146 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17147 emulate sh
17148 NULLCMD=:
17149 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17150 # is contrary to our usage. Disable this feature.
17151 alias -g '${1+"$@"}'='"$@"'
17152 setopt NO_GLOB_SUBST
17153 else
17154 case `(set -o) 2>/dev/null` in #(
17155 *posix*) :
17156 set -o posix ;; #(
17157 *) :
17159 esac
17163 as_nl='
17165 export as_nl
17166 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17167 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17170 # Prefer a ksh shell builtin over an external printf program on Solaris,
17171 # but without wasting forks for bash or zsh.
17172 if test -z "$BASH_VERSION$ZSH_VERSION" \
17173 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17174 as_echo='print -r --'
17175 as_echo_n='print -rn --'
17176 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17177 as_echo='printf %s\n'
17178 as_echo_n='printf %s'
17179 else
17180 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17181 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17182 as_echo_n='/usr/ucb/echo -n'
17183 else
17184 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17185 as_echo_n_body='eval
17186 arg=$1;
17187 case $arg in #(
17188 *"$as_nl"*)
17189 expr "X$arg" : "X\\(.*\\)$as_nl";
17190 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17191 esac;
17192 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17194 export as_echo_n_body
17195 as_echo_n='sh -c $as_echo_n_body as_echo'
17197 export as_echo_body
17198 as_echo='sh -c $as_echo_body as_echo'
17201 # The user is always right.
17202 if test "${PATH_SEPARATOR+set}" != set; then
17203 PATH_SEPARATOR=:
17204 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17205 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17206 PATH_SEPARATOR=';'
17211 # IFS
17212 # We need space, tab and new line, in precisely that order. Quoting is
17213 # there to prevent editors from complaining about space-tab.
17214 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17215 # splitting by setting IFS to empty value.)
17216 IFS=" "" $as_nl"
17218 # Find who we are. Look in the path if we contain no directory separator.
17219 as_myself=
17220 case $0 in #((
17221 *[\\/]* ) as_myself=$0 ;;
17222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17223 for as_dir in $PATH
17225 IFS=$as_save_IFS
17226 test -z "$as_dir" && as_dir=.
17227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17228 done
17229 IFS=$as_save_IFS
17232 esac
17233 # We did not find ourselves, most probably we were run as `sh COMMAND'
17234 # in which case we are not to be found in the path.
17235 if test "x$as_myself" = x; then
17236 as_myself=$0
17238 if test ! -f "$as_myself"; then
17239 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17240 exit 1
17243 # Unset variables that we do not need and which cause bugs (e.g. in
17244 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17245 # suppresses any "Segmentation fault" message there. '((' could
17246 # trigger a bug in pdksh 5.2.14.
17247 for as_var in BASH_ENV ENV MAIL MAILPATH
17248 do eval test x\${$as_var+set} = xset \
17249 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17250 done
17251 PS1='$ '
17252 PS2='> '
17253 PS4='+ '
17255 # NLS nuisances.
17256 LC_ALL=C
17257 export LC_ALL
17258 LANGUAGE=C
17259 export LANGUAGE
17261 # CDPATH.
17262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17265 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17266 # ----------------------------------------
17267 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17268 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17269 # script with STATUS, using 1 if that was 0.
17270 as_fn_error ()
17272 as_status=$1; test $as_status -eq 0 && as_status=1
17273 if test "$4"; then
17274 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17275 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17277 $as_echo "$as_me: error: $2" >&2
17278 as_fn_exit $as_status
17279 } # as_fn_error
17282 # as_fn_set_status STATUS
17283 # -----------------------
17284 # Set $? to STATUS, without forking.
17285 as_fn_set_status ()
17287 return $1
17288 } # as_fn_set_status
17290 # as_fn_exit STATUS
17291 # -----------------
17292 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17293 as_fn_exit ()
17295 set +e
17296 as_fn_set_status $1
17297 exit $1
17298 } # as_fn_exit
17300 # as_fn_unset VAR
17301 # ---------------
17302 # Portably unset VAR.
17303 as_fn_unset ()
17305 { eval $1=; unset $1;}
17307 as_unset=as_fn_unset
17308 # as_fn_append VAR VALUE
17309 # ----------------------
17310 # Append the text in VALUE to the end of the definition contained in VAR. Take
17311 # advantage of any shell optimizations that allow amortized linear growth over
17312 # repeated appends, instead of the typical quadratic growth present in naive
17313 # implementations.
17314 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17315 eval 'as_fn_append ()
17317 eval $1+=\$2
17319 else
17320 as_fn_append ()
17322 eval $1=\$$1\$2
17324 fi # as_fn_append
17326 # as_fn_arith ARG...
17327 # ------------------
17328 # Perform arithmetic evaluation on the ARGs, and store the result in the
17329 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17330 # must be portable across $(()) and expr.
17331 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17332 eval 'as_fn_arith ()
17334 as_val=$(( $* ))
17336 else
17337 as_fn_arith ()
17339 as_val=`expr "$@" || test $? -eq 1`
17341 fi # as_fn_arith
17344 if expr a : '\(a\)' >/dev/null 2>&1 &&
17345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17346 as_expr=expr
17347 else
17348 as_expr=false
17351 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17352 as_basename=basename
17353 else
17354 as_basename=false
17357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17358 as_dirname=dirname
17359 else
17360 as_dirname=false
17363 as_me=`$as_basename -- "$0" ||
17364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17365 X"$0" : 'X\(//\)$' \| \
17366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17367 $as_echo X/"$0" |
17368 sed '/^.*\/\([^/][^/]*\)\/*$/{
17369 s//\1/
17372 /^X\/\(\/\/\)$/{
17373 s//\1/
17376 /^X\/\(\/\).*/{
17377 s//\1/
17380 s/.*/./; q'`
17382 # Avoid depending upon Character Ranges.
17383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17386 as_cr_digits='0123456789'
17387 as_cr_alnum=$as_cr_Letters$as_cr_digits
17389 ECHO_C= ECHO_N= ECHO_T=
17390 case `echo -n x` in #(((((
17391 -n*)
17392 case `echo 'xy\c'` in
17393 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17394 xy) ECHO_C='\c';;
17395 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17396 ECHO_T=' ';;
17397 esac;;
17399 ECHO_N='-n';;
17400 esac
17402 rm -f conf$$ conf$$.exe conf$$.file
17403 if test -d conf$$.dir; then
17404 rm -f conf$$.dir/conf$$.file
17405 else
17406 rm -f conf$$.dir
17407 mkdir conf$$.dir 2>/dev/null
17409 if (echo >conf$$.file) 2>/dev/null; then
17410 if ln -s conf$$.file conf$$ 2>/dev/null; then
17411 as_ln_s='ln -s'
17412 # ... but there are two gotchas:
17413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17415 # In both cases, we have to default to `cp -pR'.
17416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17417 as_ln_s='cp -pR'
17418 elif ln conf$$.file conf$$ 2>/dev/null; then
17419 as_ln_s=ln
17420 else
17421 as_ln_s='cp -pR'
17423 else
17424 as_ln_s='cp -pR'
17426 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17427 rmdir conf$$.dir 2>/dev/null
17430 # as_fn_mkdir_p
17431 # -------------
17432 # Create "$as_dir" as a directory, including parents if necessary.
17433 as_fn_mkdir_p ()
17436 case $as_dir in #(
17437 -*) as_dir=./$as_dir;;
17438 esac
17439 test -d "$as_dir" || eval $as_mkdir_p || {
17440 as_dirs=
17441 while :; do
17442 case $as_dir in #(
17443 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17444 *) as_qdir=$as_dir;;
17445 esac
17446 as_dirs="'$as_qdir' $as_dirs"
17447 as_dir=`$as_dirname -- "$as_dir" ||
17448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17449 X"$as_dir" : 'X\(//\)[^/]' \| \
17450 X"$as_dir" : 'X\(//\)$' \| \
17451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17452 $as_echo X"$as_dir" |
17453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17454 s//\1/
17457 /^X\(\/\/\)[^/].*/{
17458 s//\1/
17461 /^X\(\/\/\)$/{
17462 s//\1/
17465 /^X\(\/\).*/{
17466 s//\1/
17469 s/.*/./; q'`
17470 test -d "$as_dir" && break
17471 done
17472 test -z "$as_dirs" || eval "mkdir $as_dirs"
17473 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17476 } # as_fn_mkdir_p
17477 if mkdir -p . 2>/dev/null; then
17478 as_mkdir_p='mkdir -p "$as_dir"'
17479 else
17480 test -d ./-p && rmdir ./-p
17481 as_mkdir_p=false
17485 # as_fn_executable_p FILE
17486 # -----------------------
17487 # Test if FILE is an executable regular file.
17488 as_fn_executable_p ()
17490 test -f "$1" && test -x "$1"
17491 } # as_fn_executable_p
17492 as_test_x='test -x'
17493 as_executable_p=as_fn_executable_p
17495 # Sed expression to map a string onto a valid CPP name.
17496 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17498 # Sed expression to map a string onto a valid variable name.
17499 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17502 exec 6>&1
17503 ## ----------------------------------- ##
17504 ## Main body of $CONFIG_STATUS script. ##
17505 ## ----------------------------------- ##
17506 _ASEOF
17507 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17510 # Save the log message, to keep $0 and so on meaningful, and to
17511 # report actual input values of CONFIG_FILES etc. instead of their
17512 # values after options handling.
17513 ac_log="
17514 This file was extended by package-unused $as_me version-unused, which was
17515 generated by GNU Autoconf 2.69. Invocation command line was
17517 CONFIG_FILES = $CONFIG_FILES
17518 CONFIG_HEADERS = $CONFIG_HEADERS
17519 CONFIG_LINKS = $CONFIG_LINKS
17520 CONFIG_COMMANDS = $CONFIG_COMMANDS
17521 $ $0 $@
17523 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17526 _ACEOF
17528 case $ac_config_files in *"
17529 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17530 esac
17532 case $ac_config_headers in *"
17533 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17534 esac
17537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17538 # Files that config.status was made for.
17539 config_files="$ac_config_files"
17540 config_headers="$ac_config_headers"
17541 config_commands="$ac_config_commands"
17543 _ACEOF
17545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17546 ac_cs_usage="\
17547 \`$as_me' instantiates files and other configuration actions
17548 from templates according to the current configuration. Unless the files
17549 and actions are specified as TAGs, all are instantiated by default.
17551 Usage: $0 [OPTION]... [TAG]...
17553 -h, --help print this help, then exit
17554 -V, --version print version number and configuration settings, then exit
17555 --config print configuration, then exit
17556 -q, --quiet, --silent
17557 do not print progress messages
17558 -d, --debug don't remove temporary files
17559 --recheck update $as_me by reconfiguring in the same conditions
17560 --file=FILE[:TEMPLATE]
17561 instantiate the configuration file FILE
17562 --header=FILE[:TEMPLATE]
17563 instantiate the configuration header FILE
17565 Configuration files:
17566 $config_files
17568 Configuration headers:
17569 $config_headers
17571 Configuration commands:
17572 $config_commands
17574 Report bugs to <libsanitizer>."
17576 _ACEOF
17577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17578 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17579 ac_cs_version="\\
17580 package-unused config.status version-unused
17581 configured by $0, generated by GNU Autoconf 2.69,
17582 with options \\"\$ac_cs_config\\"
17584 Copyright (C) 2012 Free Software Foundation, Inc.
17585 This config.status script is free software; the Free Software Foundation
17586 gives unlimited permission to copy, distribute and modify it."
17588 ac_pwd='$ac_pwd'
17589 srcdir='$srcdir'
17590 INSTALL='$INSTALL'
17591 MKDIR_P='$MKDIR_P'
17592 AWK='$AWK'
17593 test -n "\$AWK" || AWK=awk
17594 _ACEOF
17596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17597 # The default lists apply if the user does not specify any file.
17598 ac_need_defaults=:
17599 while test $# != 0
17601 case $1 in
17602 --*=?*)
17603 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17604 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17605 ac_shift=:
17607 --*=)
17608 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17609 ac_optarg=
17610 ac_shift=:
17613 ac_option=$1
17614 ac_optarg=$2
17615 ac_shift=shift
17617 esac
17619 case $ac_option in
17620 # Handling of the options.
17621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17622 ac_cs_recheck=: ;;
17623 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17624 $as_echo "$ac_cs_version"; exit ;;
17625 --config | --confi | --conf | --con | --co | --c )
17626 $as_echo "$ac_cs_config"; exit ;;
17627 --debug | --debu | --deb | --de | --d | -d )
17628 debug=: ;;
17629 --file | --fil | --fi | --f )
17630 $ac_shift
17631 case $ac_optarg in
17632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17633 '') as_fn_error $? "missing file argument" ;;
17634 esac
17635 as_fn_append CONFIG_FILES " '$ac_optarg'"
17636 ac_need_defaults=false;;
17637 --header | --heade | --head | --hea )
17638 $ac_shift
17639 case $ac_optarg in
17640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17641 esac
17642 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17643 ac_need_defaults=false;;
17644 --he | --h)
17645 # Conflict between --help and --header
17646 as_fn_error $? "ambiguous option: \`$1'
17647 Try \`$0 --help' for more information.";;
17648 --help | --hel | -h )
17649 $as_echo "$ac_cs_usage"; exit ;;
17650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17652 ac_cs_silent=: ;;
17654 # This is an error.
17655 -*) as_fn_error $? "unrecognized option: \`$1'
17656 Try \`$0 --help' for more information." ;;
17658 *) as_fn_append ac_config_targets " $1"
17659 ac_need_defaults=false ;;
17661 esac
17662 shift
17663 done
17665 ac_configure_extra_args=
17667 if $ac_cs_silent; then
17668 exec 6>/dev/null
17669 ac_configure_extra_args="$ac_configure_extra_args --silent"
17672 _ACEOF
17673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17674 if \$ac_cs_recheck; then
17675 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17676 shift
17677 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17678 CONFIG_SHELL='$SHELL'
17679 export CONFIG_SHELL
17680 exec "\$@"
17683 _ACEOF
17684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17685 exec 5>>config.log
17687 echo
17688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17689 ## Running $as_me. ##
17690 _ASBOX
17691 $as_echo "$ac_log"
17692 } >&5
17694 _ACEOF
17695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17697 # INIT-COMMANDS
17700 srcdir="$srcdir"
17701 host="$host"
17702 target="$target"
17703 with_multisubdir="$with_multisubdir"
17704 with_multisrctop="$with_multisrctop"
17705 with_target_subdir="$with_target_subdir"
17706 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17707 multi_basedir="$multi_basedir"
17708 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17709 CC="$CC"
17710 CXX="$CXX"
17711 GFORTRAN="$GFORTRAN"
17712 GDC="$GDC"
17713 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17716 # The HP-UX ksh and POSIX shell print the target directory to stdout
17717 # if CDPATH is set.
17718 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17720 sed_quote_subst='$sed_quote_subst'
17721 double_quote_subst='$double_quote_subst'
17722 delay_variable_subst='$delay_variable_subst'
17723 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17724 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17725 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17726 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17727 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17728 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17729 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17730 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17731 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17732 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17733 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17734 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17735 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17736 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17737 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17738 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17739 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17740 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17741 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17742 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17743 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17744 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17745 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17746 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17747 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17748 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17749 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17750 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17751 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17752 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17753 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17754 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17755 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17756 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17757 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17758 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17759 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17760 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17761 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17762 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17763 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17764 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17765 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17766 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17767 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17768 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17769 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17770 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17771 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"`'
17772 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17773 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17774 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17775 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17776 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17777 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17778 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17779 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17780 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17781 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17782 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17783 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17784 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17785 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17786 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17787 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17788 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17789 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17790 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17791 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17792 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17793 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17794 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17795 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17796 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17797 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17798 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17799 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17800 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17801 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17802 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17803 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17804 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17805 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17806 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17807 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17808 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17809 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17810 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17811 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17812 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17813 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17814 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17815 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17816 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17817 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17818 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17819 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17820 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17821 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17822 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17823 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17824 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17825 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17826 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17827 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17828 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17829 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17830 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17831 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17832 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17833 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17834 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17835 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17836 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17837 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17838 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17839 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17840 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17841 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17842 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17843 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17844 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17845 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17846 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17847 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17848 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17849 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17850 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17851 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17852 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17853 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17854 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17855 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17856 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17857 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17858 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17859 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17860 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17861 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17862 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17863 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17864 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17865 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17866 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17867 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17868 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17869 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17870 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17871 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17872 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17873 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17874 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17875 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17876 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17877 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17878 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17879 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17880 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17881 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17882 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17883 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17884 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17885 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17886 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17887 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17888 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17889 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17890 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17891 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17892 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17893 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17894 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17895 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17896 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17897 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17899 LTCC='$LTCC'
17900 LTCFLAGS='$LTCFLAGS'
17901 compiler='$compiler_DEFAULT'
17903 # A function that is used when there is no print builtin or printf.
17904 func_fallback_echo ()
17906 eval 'cat <<_LTECHO_EOF
17908 _LTECHO_EOF'
17911 # Quote evaled strings.
17912 for var in SHELL \
17913 ECHO \
17914 SED \
17915 GREP \
17916 EGREP \
17917 FGREP \
17918 LD \
17919 NM \
17920 LN_S \
17921 lt_SP2NL \
17922 lt_NL2SP \
17923 reload_flag \
17924 OBJDUMP \
17925 deplibs_check_method \
17926 file_magic_cmd \
17927 AR \
17928 AR_FLAGS \
17929 STRIP \
17930 RANLIB \
17931 CC \
17932 CFLAGS \
17933 compiler \
17934 lt_cv_sys_global_symbol_pipe \
17935 lt_cv_sys_global_symbol_to_cdecl \
17936 lt_cv_sys_global_symbol_to_c_name_address \
17937 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17938 lt_prog_compiler_no_builtin_flag \
17939 lt_prog_compiler_wl \
17940 lt_prog_compiler_pic \
17941 lt_prog_compiler_static \
17942 lt_cv_prog_compiler_c_o \
17943 need_locks \
17944 DSYMUTIL \
17945 NMEDIT \
17946 LIPO \
17947 OTOOL \
17948 OTOOL64 \
17949 shrext_cmds \
17950 export_dynamic_flag_spec \
17951 whole_archive_flag_spec \
17952 compiler_needs_object \
17953 with_gnu_ld \
17954 allow_undefined_flag \
17955 no_undefined_flag \
17956 hardcode_libdir_flag_spec \
17957 hardcode_libdir_flag_spec_ld \
17958 hardcode_libdir_separator \
17959 fix_srcfile_path \
17960 exclude_expsyms \
17961 include_expsyms \
17962 file_list_spec \
17963 variables_saved_for_relink \
17964 libname_spec \
17965 library_names_spec \
17966 soname_spec \
17967 install_override_mode \
17968 finish_eval \
17969 old_striplib \
17970 striplib \
17971 compiler_lib_search_dirs \
17972 predep_objects \
17973 postdep_objects \
17974 predeps \
17975 postdeps \
17976 compiler_lib_search_path \
17977 LD_CXX \
17978 reload_flag_CXX \
17979 compiler_CXX \
17980 lt_prog_compiler_no_builtin_flag_CXX \
17981 lt_prog_compiler_wl_CXX \
17982 lt_prog_compiler_pic_CXX \
17983 lt_prog_compiler_static_CXX \
17984 lt_cv_prog_compiler_c_o_CXX \
17985 export_dynamic_flag_spec_CXX \
17986 whole_archive_flag_spec_CXX \
17987 compiler_needs_object_CXX \
17988 with_gnu_ld_CXX \
17989 allow_undefined_flag_CXX \
17990 no_undefined_flag_CXX \
17991 hardcode_libdir_flag_spec_CXX \
17992 hardcode_libdir_flag_spec_ld_CXX \
17993 hardcode_libdir_separator_CXX \
17994 fix_srcfile_path_CXX \
17995 exclude_expsyms_CXX \
17996 include_expsyms_CXX \
17997 file_list_spec_CXX \
17998 compiler_lib_search_dirs_CXX \
17999 predep_objects_CXX \
18000 postdep_objects_CXX \
18001 predeps_CXX \
18002 postdeps_CXX \
18003 compiler_lib_search_path_CXX; do
18004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18005 *[\\\\\\\`\\"\\\$]*)
18006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18011 esac
18012 done
18014 # Double-quote double-evaled strings.
18015 for var in reload_cmds \
18016 old_postinstall_cmds \
18017 old_postuninstall_cmds \
18018 old_archive_cmds \
18019 extract_expsyms_cmds \
18020 old_archive_from_new_cmds \
18021 old_archive_from_expsyms_cmds \
18022 archive_cmds \
18023 archive_expsym_cmds \
18024 module_cmds \
18025 module_expsym_cmds \
18026 export_symbols_cmds \
18027 prelink_cmds \
18028 postinstall_cmds \
18029 postuninstall_cmds \
18030 finish_cmds \
18031 sys_lib_search_path_spec \
18032 sys_lib_dlsearch_path_spec \
18033 reload_cmds_CXX \
18034 old_archive_cmds_CXX \
18035 old_archive_from_new_cmds_CXX \
18036 old_archive_from_expsyms_cmds_CXX \
18037 archive_cmds_CXX \
18038 archive_expsym_cmds_CXX \
18039 module_cmds_CXX \
18040 module_expsym_cmds_CXX \
18041 export_symbols_cmds_CXX \
18042 prelink_cmds_CXX; do
18043 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18044 *[\\\\\\\`\\"\\\$]*)
18045 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18048 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18050 esac
18051 done
18053 ac_aux_dir='$ac_aux_dir'
18054 xsi_shell='$xsi_shell'
18055 lt_shell_append='$lt_shell_append'
18057 # See if we are running on zsh, and set the options which allow our
18058 # commands through without removal of \ escapes INIT.
18059 if test -n "\${ZSH_VERSION+set}" ; then
18060 setopt NO_GLOB_SUBST
18064 PACKAGE='$PACKAGE'
18065 VERSION='$VERSION'
18066 TIMESTAMP='$TIMESTAMP'
18067 RM='$RM'
18068 ofile='$ofile'
18075 GCC="$GCC"
18076 CC="$CC"
18077 acx_cv_header_stdint="$acx_cv_header_stdint"
18078 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18079 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18080 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18081 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18082 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18083 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18084 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18085 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18086 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18087 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18088 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18089 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18090 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18093 _ACEOF
18095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18097 # Handling of arguments.
18098 for ac_config_target in $ac_config_targets
18100 case $ac_config_target in
18101 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18102 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18103 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18104 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18105 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18106 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
18107 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
18108 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18109 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
18110 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
18111 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
18112 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
18113 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
18114 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
18115 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
18116 "hwasan/Makefile") CONFIG_FILES="$CONFIG_FILES hwasan/Makefile" ;;
18118 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18119 esac
18120 done
18123 # If the user did not use the arguments to specify the items to instantiate,
18124 # then the envvar interface is used. Set only those that are not.
18125 # We use the long form for the default assignment because of an extremely
18126 # bizarre bug on SunOS 4.1.3.
18127 if $ac_need_defaults; then
18128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18133 # Have a temporary directory for convenience. Make it in the build tree
18134 # simply because there is no reason against having it here, and in addition,
18135 # creating and moving files from /tmp can sometimes cause problems.
18136 # Hook for its removal unless debugging.
18137 # Note that there is a small window in which the directory will not be cleaned:
18138 # after its creation but before its name has been assigned to `$tmp'.
18139 $debug ||
18141 tmp= ac_tmp=
18142 trap 'exit_status=$?
18143 : "${ac_tmp:=$tmp}"
18144 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18146 trap 'as_fn_exit 1' 1 2 13 15
18148 # Create a (secure) tmp directory for tmp files.
18151 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18152 test -d "$tmp"
18153 } ||
18155 tmp=./conf$$-$RANDOM
18156 (umask 077 && mkdir "$tmp")
18157 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18158 ac_tmp=$tmp
18160 # Set up the scripts for CONFIG_FILES section.
18161 # No need to generate them if there are no CONFIG_FILES.
18162 # This happens for instance with `./config.status config.h'.
18163 if test -n "$CONFIG_FILES"; then
18166 ac_cr=`echo X | tr X '\015'`
18167 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18168 # But we know of no other shell where ac_cr would be empty at this
18169 # point, so we can use a bashism as a fallback.
18170 if test "x$ac_cr" = x; then
18171 eval ac_cr=\$\'\\r\'
18173 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18174 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18175 ac_cs_awk_cr='\\r'
18176 else
18177 ac_cs_awk_cr=$ac_cr
18180 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18181 _ACEOF
18185 echo "cat >conf$$subs.awk <<_ACEOF" &&
18186 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18187 echo "_ACEOF"
18188 } >conf$$subs.sh ||
18189 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18190 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18191 ac_delim='%!_!# '
18192 for ac_last_try in false false false false false :; do
18193 . ./conf$$subs.sh ||
18194 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18196 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18197 if test $ac_delim_n = $ac_delim_num; then
18198 break
18199 elif $ac_last_try; then
18200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18201 else
18202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18204 done
18205 rm -f conf$$subs.sh
18207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18208 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18209 _ACEOF
18210 sed -n '
18212 s/^/S["/; s/!.*/"]=/
18215 s/^[^!]*!//
18216 :repl
18217 t repl
18218 s/'"$ac_delim"'$//
18219 t delim
18222 s/\(.\{148\}\)..*/\1/
18223 t more1
18224 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18227 b repl
18228 :more1
18229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18232 s/.\{148\}//
18233 t nl
18234 :delim
18236 s/\(.\{148\}\)..*/\1/
18237 t more2
18238 s/["\\]/\\&/g; s/^/"/; s/$/"/
18241 :more2
18242 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18245 s/.\{148\}//
18246 t delim
18247 ' <conf$$subs.awk | sed '
18248 /^[^""]/{
18250 s/\n//
18252 ' >>$CONFIG_STATUS || ac_write_fail=1
18253 rm -f conf$$subs.awk
18254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18255 _ACAWK
18256 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18257 for (key in S) S_is_set[key] = 1
18258 FS = "\a"
18262 line = $ 0
18263 nfields = split(line, field, "@")
18264 substed = 0
18265 len = length(field[1])
18266 for (i = 2; i < nfields; i++) {
18267 key = field[i]
18268 keylen = length(key)
18269 if (S_is_set[key]) {
18270 value = S[key]
18271 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18272 len += length(value) + length(field[++i])
18273 substed = 1
18274 } else
18275 len += 1 + keylen
18278 print line
18281 _ACAWK
18282 _ACEOF
18283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18284 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18285 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18286 else
18288 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18289 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18290 _ACEOF
18292 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18293 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18294 # trailing colons and then remove the whole line if VPATH becomes empty
18295 # (actually we leave an empty line to preserve line numbers).
18296 if test "x$srcdir" = x.; then
18297 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18299 s///
18300 s/^/:/
18301 s/[ ]*$/:/
18302 s/:\$(srcdir):/:/g
18303 s/:\${srcdir}:/:/g
18304 s/:@srcdir@:/:/g
18305 s/^:*//
18306 s/:*$//
18308 s/\(=[ ]*\).*/\1/
18310 s/\n//
18311 s/^[^=]*=[ ]*$//
18315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18316 fi # test -n "$CONFIG_FILES"
18318 # Set up the scripts for CONFIG_HEADERS section.
18319 # No need to generate them if there are no CONFIG_HEADERS.
18320 # This happens for instance with `./config.status Makefile'.
18321 if test -n "$CONFIG_HEADERS"; then
18322 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18323 BEGIN {
18324 _ACEOF
18326 # Transform confdefs.h into an awk script `defines.awk', embedded as
18327 # here-document in config.status, that substitutes the proper values into
18328 # config.h.in to produce config.h.
18330 # Create a delimiter string that does not exist in confdefs.h, to ease
18331 # handling of long lines.
18332 ac_delim='%!_!# '
18333 for ac_last_try in false false :; do
18334 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18335 if test -z "$ac_tt"; then
18336 break
18337 elif $ac_last_try; then
18338 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18339 else
18340 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18342 done
18344 # For the awk script, D is an array of macro values keyed by name,
18345 # likewise P contains macro parameters if any. Preserve backslash
18346 # newline sequences.
18348 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18349 sed -n '
18350 s/.\{148\}/&'"$ac_delim"'/g
18351 t rset
18352 :rset
18353 s/^[ ]*#[ ]*define[ ][ ]*/ /
18354 t def
18356 :def
18357 s/\\$//
18358 t bsnl
18359 s/["\\]/\\&/g
18360 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18361 D["\1"]=" \3"/p
18362 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18364 :bsnl
18365 s/["\\]/\\&/g
18366 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18367 D["\1"]=" \3\\\\\\n"\\/p
18368 t cont
18369 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18370 t cont
18372 :cont
18374 s/.\{148\}/&'"$ac_delim"'/g
18375 t clear
18376 :clear
18377 s/\\$//
18378 t bsnlc
18379 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18381 :bsnlc
18382 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18383 b cont
18384 ' <confdefs.h | sed '
18385 s/'"$ac_delim"'/"\\\
18386 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18389 for (key in D) D_is_set[key] = 1
18390 FS = "\a"
18392 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18393 line = \$ 0
18394 split(line, arg, " ")
18395 if (arg[1] == "#") {
18396 defundef = arg[2]
18397 mac1 = arg[3]
18398 } else {
18399 defundef = substr(arg[1], 2)
18400 mac1 = arg[2]
18402 split(mac1, mac2, "(") #)
18403 macro = mac2[1]
18404 prefix = substr(line, 1, index(line, defundef) - 1)
18405 if (D_is_set[macro]) {
18406 # Preserve the white space surrounding the "#".
18407 print prefix "define", macro P[macro] D[macro]
18408 next
18409 } else {
18410 # Replace #undef with comments. This is necessary, for example,
18411 # in the case of _POSIX_SOURCE, which is predefined and required
18412 # on some systems where configure will not decide to define it.
18413 if (defundef == "undef") {
18414 print "/*", prefix defundef, macro, "*/"
18415 next
18419 { print }
18420 _ACAWK
18421 _ACEOF
18422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18423 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18424 fi # test -n "$CONFIG_HEADERS"
18427 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18428 shift
18429 for ac_tag
18431 case $ac_tag in
18432 :[FHLC]) ac_mode=$ac_tag; continue;;
18433 esac
18434 case $ac_mode$ac_tag in
18435 :[FHL]*:*);;
18436 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18437 :[FH]-) ac_tag=-:-;;
18438 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18439 esac
18440 ac_save_IFS=$IFS
18441 IFS=:
18442 set x $ac_tag
18443 IFS=$ac_save_IFS
18444 shift
18445 ac_file=$1
18446 shift
18448 case $ac_mode in
18449 :L) ac_source=$1;;
18450 :[FH])
18451 ac_file_inputs=
18452 for ac_f
18454 case $ac_f in
18455 -) ac_f="$ac_tmp/stdin";;
18456 *) # Look for the file first in the build tree, then in the source tree
18457 # (if the path is not absolute). The absolute path cannot be DOS-style,
18458 # because $ac_f cannot contain `:'.
18459 test -f "$ac_f" ||
18460 case $ac_f in
18461 [\\/$]*) false;;
18462 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18463 esac ||
18464 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18465 esac
18466 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18467 as_fn_append ac_file_inputs " '$ac_f'"
18468 done
18470 # Let's still pretend it is `configure' which instantiates (i.e., don't
18471 # use $as_me), people would be surprised to read:
18472 # /* config.h. Generated by config.status. */
18473 configure_input='Generated from '`
18474 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18475 `' by configure.'
18476 if test x"$ac_file" != x-; then
18477 configure_input="$ac_file. $configure_input"
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18479 $as_echo "$as_me: creating $ac_file" >&6;}
18481 # Neutralize special characters interpreted by sed in replacement strings.
18482 case $configure_input in #(
18483 *\&* | *\|* | *\\* )
18484 ac_sed_conf_input=`$as_echo "$configure_input" |
18485 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18486 *) ac_sed_conf_input=$configure_input;;
18487 esac
18489 case $ac_tag in
18490 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18492 esac
18494 esac
18496 ac_dir=`$as_dirname -- "$ac_file" ||
18497 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18498 X"$ac_file" : 'X\(//\)[^/]' \| \
18499 X"$ac_file" : 'X\(//\)$' \| \
18500 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18501 $as_echo X"$ac_file" |
18502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18503 s//\1/
18506 /^X\(\/\/\)[^/].*/{
18507 s//\1/
18510 /^X\(\/\/\)$/{
18511 s//\1/
18514 /^X\(\/\).*/{
18515 s//\1/
18518 s/.*/./; q'`
18519 as_dir="$ac_dir"; as_fn_mkdir_p
18520 ac_builddir=.
18522 case "$ac_dir" in
18523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18526 # A ".." for each directory in $ac_dir_suffix.
18527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18528 case $ac_top_builddir_sub in
18529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18531 esac ;;
18532 esac
18533 ac_abs_top_builddir=$ac_pwd
18534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18535 # for backward compatibility:
18536 ac_top_builddir=$ac_top_build_prefix
18538 case $srcdir in
18539 .) # We are building in place.
18540 ac_srcdir=.
18541 ac_top_srcdir=$ac_top_builddir_sub
18542 ac_abs_top_srcdir=$ac_pwd ;;
18543 [\\/]* | ?:[\\/]* ) # Absolute name.
18544 ac_srcdir=$srcdir$ac_dir_suffix;
18545 ac_top_srcdir=$srcdir
18546 ac_abs_top_srcdir=$srcdir ;;
18547 *) # Relative name.
18548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18549 ac_top_srcdir=$ac_top_build_prefix$srcdir
18550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18551 esac
18552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18555 case $ac_mode in
18558 # CONFIG_FILE
18561 case $INSTALL in
18562 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18563 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18564 esac
18565 ac_MKDIR_P=$MKDIR_P
18566 case $MKDIR_P in
18567 [\\/$]* | ?:[\\/]* ) ;;
18568 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18569 esac
18570 _ACEOF
18572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18573 # If the template does not know about datarootdir, expand it.
18574 # FIXME: This hack should be removed a few years after 2.60.
18575 ac_datarootdir_hack=; ac_datarootdir_seen=
18576 ac_sed_dataroot='
18577 /datarootdir/ {
18581 /@datadir@/p
18582 /@docdir@/p
18583 /@infodir@/p
18584 /@localedir@/p
18585 /@mandir@/p'
18586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18587 *datarootdir*) ac_datarootdir_seen=yes;;
18588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18591 _ACEOF
18592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18593 ac_datarootdir_hack='
18594 s&@datadir@&$datadir&g
18595 s&@docdir@&$docdir&g
18596 s&@infodir@&$infodir&g
18597 s&@localedir@&$localedir&g
18598 s&@mandir@&$mandir&g
18599 s&\\\${datarootdir}&$datarootdir&g' ;;
18600 esac
18601 _ACEOF
18603 # Neutralize VPATH when `$srcdir' = `.'.
18604 # Shell code in configure.ac might set extrasub.
18605 # FIXME: do we really want to maintain this feature?
18606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18607 ac_sed_extra="$ac_vpsub
18608 $extrasub
18609 _ACEOF
18610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18613 s|@configure_input@|$ac_sed_conf_input|;t t
18614 s&@top_builddir@&$ac_top_builddir_sub&;t t
18615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18616 s&@srcdir@&$ac_srcdir&;t t
18617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18618 s&@top_srcdir@&$ac_top_srcdir&;t t
18619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18620 s&@builddir@&$ac_builddir&;t t
18621 s&@abs_builddir@&$ac_abs_builddir&;t t
18622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18623 s&@INSTALL@&$ac_INSTALL&;t t
18624 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18625 $ac_datarootdir_hack
18627 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18628 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18630 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18631 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18632 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18633 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18635 which seems to be undefined. Please make sure it is defined" >&5
18636 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18637 which seems to be undefined. Please make sure it is defined" >&2;}
18639 rm -f "$ac_tmp/stdin"
18640 case $ac_file in
18641 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18642 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18643 esac \
18644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18648 # CONFIG_HEADER
18650 if test x"$ac_file" != x-; then
18652 $as_echo "/* $configure_input */" \
18653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18654 } >"$ac_tmp/config.h" \
18655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18656 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18658 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18659 else
18660 rm -f "$ac_file"
18661 mv "$ac_tmp/config.h" "$ac_file" \
18662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18664 else
18665 $as_echo "/* $configure_input */" \
18666 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18667 || as_fn_error $? "could not create -" "$LINENO" 5
18669 # Compute "$ac_file"'s index in $config_headers.
18670 _am_arg="$ac_file"
18671 _am_stamp_count=1
18672 for _am_header in $config_headers :; do
18673 case $_am_header in
18674 $_am_arg | $_am_arg:* )
18675 break ;;
18677 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18678 esac
18679 done
18680 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18681 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18682 X"$_am_arg" : 'X\(//\)[^/]' \| \
18683 X"$_am_arg" : 'X\(//\)$' \| \
18684 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18685 $as_echo X"$_am_arg" |
18686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18687 s//\1/
18690 /^X\(\/\/\)[^/].*/{
18691 s//\1/
18694 /^X\(\/\/\)$/{
18695 s//\1/
18698 /^X\(\/\).*/{
18699 s//\1/
18702 s/.*/./; q'`/stamp-h$_am_stamp_count
18705 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18706 $as_echo "$as_me: executing $ac_file commands" >&6;}
18708 esac
18711 case $ac_file$ac_mode in
18712 "default-1":C)
18713 # Only add multilib support code if we just rebuilt the top-level
18714 # Makefile.
18715 case " $CONFIG_FILES " in
18716 *" Makefile "*)
18717 ac_file=Makefile . ${multi_basedir}/config-ml.in
18719 esac ;;
18720 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18721 # Older Autoconf quotes --file arguments for eval, but not when files
18722 # are listed without --file. Let's play safe and only enable the eval
18723 # if we detect the quoting.
18724 case $CONFIG_FILES in
18725 *\'*) eval set x "$CONFIG_FILES" ;;
18726 *) set x $CONFIG_FILES ;;
18727 esac
18728 shift
18729 for mf
18731 # Strip MF so we end up with the name of the file.
18732 mf=`echo "$mf" | sed -e 's/:.*$//'`
18733 # Check whether this is an Automake generated Makefile or not.
18734 # We used to match only the files named 'Makefile.in', but
18735 # some people rename them; so instead we look at the file content.
18736 # Grep'ing the first line is not enough: some people post-process
18737 # each Makefile.in and add a new line on top of each file to say so.
18738 # Grep'ing the whole file is not good either: AIX grep has a line
18739 # limit of 2048, but all sed's we know have understand at least 4000.
18740 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18741 dirpart=`$as_dirname -- "$mf" ||
18742 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18743 X"$mf" : 'X\(//\)[^/]' \| \
18744 X"$mf" : 'X\(//\)$' \| \
18745 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18746 $as_echo X"$mf" |
18747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18748 s//\1/
18751 /^X\(\/\/\)[^/].*/{
18752 s//\1/
18755 /^X\(\/\/\)$/{
18756 s//\1/
18759 /^X\(\/\).*/{
18760 s//\1/
18763 s/.*/./; q'`
18764 else
18765 continue
18767 # Extract the definition of DEPDIR, am__include, and am__quote
18768 # from the Makefile without running 'make'.
18769 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18770 test -z "$DEPDIR" && continue
18771 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18772 test -z "$am__include" && continue
18773 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18774 # Find all dependency output files, they are included files with
18775 # $(DEPDIR) in their names. We invoke sed twice because it is the
18776 # simplest approach to changing $(DEPDIR) to its actual value in the
18777 # expansion.
18778 for file in `sed -n "
18779 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18780 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18781 # Make sure the directory exists.
18782 test -f "$dirpart/$file" && continue
18783 fdir=`$as_dirname -- "$file" ||
18784 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18785 X"$file" : 'X\(//\)[^/]' \| \
18786 X"$file" : 'X\(//\)$' \| \
18787 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18788 $as_echo X"$file" |
18789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18790 s//\1/
18793 /^X\(\/\/\)[^/].*/{
18794 s//\1/
18797 /^X\(\/\/\)$/{
18798 s//\1/
18801 /^X\(\/\).*/{
18802 s//\1/
18805 s/.*/./; q'`
18806 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18807 # echo "creating $dirpart/$file"
18808 echo '# dummy' > "$dirpart/$file"
18809 done
18810 done
18813 "libtool":C)
18815 # See if we are running on zsh, and set the options which allow our
18816 # commands through without removal of \ escapes.
18817 if test -n "${ZSH_VERSION+set}" ; then
18818 setopt NO_GLOB_SUBST
18821 cfgfile="${ofile}T"
18822 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18823 $RM "$cfgfile"
18825 cat <<_LT_EOF >> "$cfgfile"
18826 #! $SHELL
18828 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18829 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18831 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18833 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18834 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18835 # Written by Gordon Matzigkeit, 1996
18837 # This file is part of GNU Libtool.
18839 # GNU Libtool is free software; you can redistribute it and/or
18840 # modify it under the terms of the GNU General Public License as
18841 # published by the Free Software Foundation; either version 2 of
18842 # the License, or (at your option) any later version.
18844 # As a special exception to the GNU General Public License,
18845 # if you distribute this file as part of a program or library that
18846 # is built using GNU Libtool, you may include this file under the
18847 # same distribution terms that you use for the rest of that program.
18849 # GNU Libtool is distributed in the hope that it will be useful,
18850 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18851 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18852 # GNU General Public License for more details.
18854 # You should have received a copy of the GNU General Public License
18855 # along with GNU Libtool; see the file COPYING. If not, a copy
18856 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18857 # obtained by writing to the Free Software Foundation, Inc.,
18858 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18861 # The names of the tagged configurations supported by this script.
18862 available_tags="CXX "
18864 # ### BEGIN LIBTOOL CONFIG
18866 # Which release of libtool.m4 was used?
18867 macro_version=$macro_version
18868 macro_revision=$macro_revision
18870 # Whether or not to build shared libraries.
18871 build_libtool_libs=$enable_shared
18873 # Whether or not to build static libraries.
18874 build_old_libs=$enable_static
18876 # What type of objects to build.
18877 pic_mode=$pic_mode
18879 # Whether or not to optimize for fast installation.
18880 fast_install=$enable_fast_install
18882 # Shell to use when invoking shell scripts.
18883 SHELL=$lt_SHELL
18885 # An echo program that protects backslashes.
18886 ECHO=$lt_ECHO
18888 # The host system.
18889 host_alias=$host_alias
18890 host=$host
18891 host_os=$host_os
18893 # The build system.
18894 build_alias=$build_alias
18895 build=$build
18896 build_os=$build_os
18898 # A sed program that does not truncate output.
18899 SED=$lt_SED
18901 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18902 Xsed="\$SED -e 1s/^X//"
18904 # A grep program that handles long lines.
18905 GREP=$lt_GREP
18907 # An ERE matcher.
18908 EGREP=$lt_EGREP
18910 # A literal string matcher.
18911 FGREP=$lt_FGREP
18913 # A BSD- or MS-compatible name lister.
18914 NM=$lt_NM
18916 # Whether we need soft or hard links.
18917 LN_S=$lt_LN_S
18919 # What is the maximum length of a command?
18920 max_cmd_len=$max_cmd_len
18922 # Object file suffix (normally "o").
18923 objext=$ac_objext
18925 # Executable file suffix (normally "").
18926 exeext=$exeext
18928 # whether the shell understands "unset".
18929 lt_unset=$lt_unset
18931 # turn spaces into newlines.
18932 SP2NL=$lt_lt_SP2NL
18934 # turn newlines into spaces.
18935 NL2SP=$lt_lt_NL2SP
18937 # An object symbol dumper.
18938 OBJDUMP=$lt_OBJDUMP
18940 # Method to check whether dependent libraries are shared objects.
18941 deplibs_check_method=$lt_deplibs_check_method
18943 # Command to use when deplibs_check_method == "file_magic".
18944 file_magic_cmd=$lt_file_magic_cmd
18946 # The archiver.
18947 AR=$lt_AR
18948 AR_FLAGS=$lt_AR_FLAGS
18950 # A symbol stripping program.
18951 STRIP=$lt_STRIP
18953 # Commands used to install an old-style archive.
18954 RANLIB=$lt_RANLIB
18955 old_postinstall_cmds=$lt_old_postinstall_cmds
18956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18958 # Whether to use a lock for old archive extraction.
18959 lock_old_archive_extraction=$lock_old_archive_extraction
18961 # A C compiler.
18962 LTCC=$lt_CC
18964 # LTCC compiler flags.
18965 LTCFLAGS=$lt_CFLAGS
18967 # Take the output of nm and produce a listing of raw symbols and C names.
18968 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18970 # Transform the output of nm in a proper C declaration.
18971 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18973 # Transform the output of nm in a C name address pair.
18974 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18976 # Transform the output of nm in a C name address pair when lib prefix is needed.
18977 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18979 # The name of the directory that contains temporary libtool files.
18980 objdir=$objdir
18982 # Used to examine libraries when file_magic_cmd begins with "file".
18983 MAGIC_CMD=$MAGIC_CMD
18985 # Must we lock files when doing compilation?
18986 need_locks=$lt_need_locks
18988 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18989 DSYMUTIL=$lt_DSYMUTIL
18991 # Tool to change global to local symbols on Mac OS X.
18992 NMEDIT=$lt_NMEDIT
18994 # Tool to manipulate fat objects and archives on Mac OS X.
18995 LIPO=$lt_LIPO
18997 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18998 OTOOL=$lt_OTOOL
19000 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19001 OTOOL64=$lt_OTOOL64
19003 # Old archive suffix (normally "a").
19004 libext=$libext
19006 # Shared library suffix (normally ".so").
19007 shrext_cmds=$lt_shrext_cmds
19009 # The commands to extract the exported symbol list from a shared archive.
19010 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19012 # Variables whose values should be saved in libtool wrapper scripts and
19013 # restored at link time.
19014 variables_saved_for_relink=$lt_variables_saved_for_relink
19016 # Do we need the "lib" prefix for modules?
19017 need_lib_prefix=$need_lib_prefix
19019 # Do we need a version for libraries?
19020 need_version=$need_version
19022 # Library versioning type.
19023 version_type=$version_type
19025 # Shared library runtime path variable.
19026 runpath_var=$runpath_var
19028 # Shared library path variable.
19029 shlibpath_var=$shlibpath_var
19031 # Is shlibpath searched before the hard-coded library search path?
19032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19034 # Format of library name prefix.
19035 libname_spec=$lt_libname_spec
19037 # List of archive names. First name is the real one, the rest are links.
19038 # The last name is the one that the linker finds with -lNAME
19039 library_names_spec=$lt_library_names_spec
19041 # The coded name of the library, if different from the real name.
19042 soname_spec=$lt_soname_spec
19044 # Permission mode override for installation of shared libraries.
19045 install_override_mode=$lt_install_override_mode
19047 # Command to use after installation of a shared archive.
19048 postinstall_cmds=$lt_postinstall_cmds
19050 # Command to use after uninstallation of a shared archive.
19051 postuninstall_cmds=$lt_postuninstall_cmds
19053 # Commands used to finish a libtool library installation in a directory.
19054 finish_cmds=$lt_finish_cmds
19056 # As "finish_cmds", except a single script fragment to be evaled but
19057 # not shown.
19058 finish_eval=$lt_finish_eval
19060 # Whether we should hardcode library paths into libraries.
19061 hardcode_into_libs=$hardcode_into_libs
19063 # Compile-time system search path for libraries.
19064 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19066 # Run-time system search path for libraries.
19067 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19069 # Whether dlopen is supported.
19070 dlopen_support=$enable_dlopen
19072 # Whether dlopen of programs is supported.
19073 dlopen_self=$enable_dlopen_self
19075 # Whether dlopen of statically linked programs is supported.
19076 dlopen_self_static=$enable_dlopen_self_static
19078 # Commands to strip libraries.
19079 old_striplib=$lt_old_striplib
19080 striplib=$lt_striplib
19083 # The linker used to build libraries.
19084 LD=$lt_LD
19086 # How to create reloadable object files.
19087 reload_flag=$lt_reload_flag
19088 reload_cmds=$lt_reload_cmds
19090 # Commands used to build an old-style archive.
19091 old_archive_cmds=$lt_old_archive_cmds
19093 # A language specific compiler.
19094 CC=$lt_compiler
19096 # Is the compiler the GNU compiler?
19097 with_gcc=$GCC
19099 # Compiler flag to turn off builtin functions.
19100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19102 # How to pass a linker flag through the compiler.
19103 wl=$lt_lt_prog_compiler_wl
19105 # Additional compiler flags for building library objects.
19106 pic_flag=$lt_lt_prog_compiler_pic
19108 # Compiler flag to prevent dynamic linking.
19109 link_static_flag=$lt_lt_prog_compiler_static
19111 # Does compiler simultaneously support -c and -o options?
19112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19114 # Whether or not to add -lc for building shared libraries.
19115 build_libtool_need_lc=$archive_cmds_need_lc
19117 # Whether or not to disallow shared libs when runtime libs are static.
19118 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19120 # Compiler flag to allow reflexive dlopens.
19121 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19123 # Compiler flag to generate shared objects directly from archives.
19124 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19126 # Whether the compiler copes with passing no objects directly.
19127 compiler_needs_object=$lt_compiler_needs_object
19129 # Create an old-style archive from a shared archive.
19130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19132 # Create a temporary old-style archive to link instead of a shared archive.
19133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19135 # Commands used to build a shared archive.
19136 archive_cmds=$lt_archive_cmds
19137 archive_expsym_cmds=$lt_archive_expsym_cmds
19139 # Commands used to build a loadable module if different from building
19140 # a shared archive.
19141 module_cmds=$lt_module_cmds
19142 module_expsym_cmds=$lt_module_expsym_cmds
19144 # Whether we are building with GNU ld or not.
19145 with_gnu_ld=$lt_with_gnu_ld
19147 # Flag that allows shared libraries with undefined symbols to be built.
19148 allow_undefined_flag=$lt_allow_undefined_flag
19150 # Flag that enforces no undefined symbols.
19151 no_undefined_flag=$lt_no_undefined_flag
19153 # Flag to hardcode \$libdir into a binary during linking.
19154 # This must work even if \$libdir does not exist
19155 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19157 # If ld is used when linking, flag to hardcode \$libdir into a binary
19158 # during linking. This must work even if \$libdir does not exist.
19159 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19161 # Whether we need a single "-rpath" flag with a separated argument.
19162 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19164 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19165 # DIR into the resulting binary.
19166 hardcode_direct=$hardcode_direct
19168 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19169 # DIR into the resulting binary and the resulting library dependency is
19170 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19171 # library is relocated.
19172 hardcode_direct_absolute=$hardcode_direct_absolute
19174 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19175 # into the resulting binary.
19176 hardcode_minus_L=$hardcode_minus_L
19178 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19179 # into the resulting binary.
19180 hardcode_shlibpath_var=$hardcode_shlibpath_var
19182 # Set to "yes" if building a shared library automatically hardcodes DIR
19183 # into the library and all subsequent libraries and executables linked
19184 # against it.
19185 hardcode_automatic=$hardcode_automatic
19187 # Set to yes if linker adds runtime paths of dependent libraries
19188 # to runtime path list.
19189 inherit_rpath=$inherit_rpath
19191 # Whether libtool must link a program against all its dependency libraries.
19192 link_all_deplibs=$link_all_deplibs
19194 # Fix the shell variable \$srcfile for the compiler.
19195 fix_srcfile_path=$lt_fix_srcfile_path
19197 # Set to "yes" if exported symbols are required.
19198 always_export_symbols=$always_export_symbols
19200 # The commands to list exported symbols.
19201 export_symbols_cmds=$lt_export_symbols_cmds
19203 # Symbols that should not be listed in the preloaded symbols.
19204 exclude_expsyms=$lt_exclude_expsyms
19206 # Symbols that must always be exported.
19207 include_expsyms=$lt_include_expsyms
19209 # Commands necessary for linking programs (against libraries) with templates.
19210 prelink_cmds=$lt_prelink_cmds
19212 # Specify filename containing input files.
19213 file_list_spec=$lt_file_list_spec
19215 # How to hardcode a shared library path into an executable.
19216 hardcode_action=$hardcode_action
19218 # The directories searched by this compiler when creating a shared library.
19219 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19221 # Dependencies to place before and after the objects being linked to
19222 # create a shared library.
19223 predep_objects=$lt_predep_objects
19224 postdep_objects=$lt_postdep_objects
19225 predeps=$lt_predeps
19226 postdeps=$lt_postdeps
19228 # The library search path used internally by the compiler when linking
19229 # a shared library.
19230 compiler_lib_search_path=$lt_compiler_lib_search_path
19232 # ### END LIBTOOL CONFIG
19234 _LT_EOF
19236 case $host_os in
19237 aix3*)
19238 cat <<\_LT_EOF >> "$cfgfile"
19239 # AIX sometimes has problems with the GCC collect2 program. For some
19240 # reason, if we set the COLLECT_NAMES environment variable, the problems
19241 # vanish in a puff of smoke.
19242 if test "X${COLLECT_NAMES+set}" != Xset; then
19243 COLLECT_NAMES=
19244 export COLLECT_NAMES
19246 _LT_EOF
19248 esac
19251 ltmain="$ac_aux_dir/ltmain.sh"
19254 # We use sed instead of cat because bash on DJGPP gets confused if
19255 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19256 # text mode, it properly converts lines to CR/LF. This bash problem
19257 # is reportedly fixed, but why not run on old versions too?
19258 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19259 || (rm -f "$cfgfile"; exit 1)
19261 case $xsi_shell in
19262 yes)
19263 cat << \_LT_EOF >> "$cfgfile"
19265 # func_dirname file append nondir_replacement
19266 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19267 # otherwise set result to NONDIR_REPLACEMENT.
19268 func_dirname ()
19270 case ${1} in
19271 */*) func_dirname_result="${1%/*}${2}" ;;
19272 * ) func_dirname_result="${3}" ;;
19273 esac
19276 # func_basename file
19277 func_basename ()
19279 func_basename_result="${1##*/}"
19282 # func_dirname_and_basename file append nondir_replacement
19283 # perform func_basename and func_dirname in a single function
19284 # call:
19285 # dirname: Compute the dirname of FILE. If nonempty,
19286 # add APPEND to the result, otherwise set result
19287 # to NONDIR_REPLACEMENT.
19288 # value returned in "$func_dirname_result"
19289 # basename: Compute filename of FILE.
19290 # value retuned in "$func_basename_result"
19291 # Implementation must be kept synchronized with func_dirname
19292 # and func_basename. For efficiency, we do not delegate to
19293 # those functions but instead duplicate the functionality here.
19294 func_dirname_and_basename ()
19296 case ${1} in
19297 */*) func_dirname_result="${1%/*}${2}" ;;
19298 * ) func_dirname_result="${3}" ;;
19299 esac
19300 func_basename_result="${1##*/}"
19303 # func_stripname prefix suffix name
19304 # strip PREFIX and SUFFIX off of NAME.
19305 # PREFIX and SUFFIX must not contain globbing or regex special
19306 # characters, hashes, percent signs, but SUFFIX may contain a leading
19307 # dot (in which case that matches only a dot).
19308 func_stripname ()
19310 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19311 # positional parameters, so assign one to ordinary parameter first.
19312 func_stripname_result=${3}
19313 func_stripname_result=${func_stripname_result#"${1}"}
19314 func_stripname_result=${func_stripname_result%"${2}"}
19317 # func_opt_split
19318 func_opt_split ()
19320 func_opt_split_opt=${1%%=*}
19321 func_opt_split_arg=${1#*=}
19324 # func_lo2o object
19325 func_lo2o ()
19327 case ${1} in
19328 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19329 *) func_lo2o_result=${1} ;;
19330 esac
19333 # func_xform libobj-or-source
19334 func_xform ()
19336 func_xform_result=${1%.*}.lo
19339 # func_arith arithmetic-term...
19340 func_arith ()
19342 func_arith_result=$(( $* ))
19345 # func_len string
19346 # STRING may not start with a hyphen.
19347 func_len ()
19349 func_len_result=${#1}
19352 _LT_EOF
19354 *) # Bourne compatible functions.
19355 cat << \_LT_EOF >> "$cfgfile"
19357 # func_dirname file append nondir_replacement
19358 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19359 # otherwise set result to NONDIR_REPLACEMENT.
19360 func_dirname ()
19362 # Extract subdirectory from the argument.
19363 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19364 if test "X$func_dirname_result" = "X${1}"; then
19365 func_dirname_result="${3}"
19366 else
19367 func_dirname_result="$func_dirname_result${2}"
19371 # func_basename file
19372 func_basename ()
19374 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19378 # func_stripname prefix suffix name
19379 # strip PREFIX and SUFFIX off of NAME.
19380 # PREFIX and SUFFIX must not contain globbing or regex special
19381 # characters, hashes, percent signs, but SUFFIX may contain a leading
19382 # dot (in which case that matches only a dot).
19383 # func_strip_suffix prefix name
19384 func_stripname ()
19386 case ${2} in
19387 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19388 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19389 esac
19392 # sed scripts:
19393 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19394 my_sed_long_arg='1s/^-[^=]*=//'
19396 # func_opt_split
19397 func_opt_split ()
19399 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19400 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19403 # func_lo2o object
19404 func_lo2o ()
19406 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19409 # func_xform libobj-or-source
19410 func_xform ()
19412 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19415 # func_arith arithmetic-term...
19416 func_arith ()
19418 func_arith_result=`expr "$@"`
19421 # func_len string
19422 # STRING may not start with a hyphen.
19423 func_len ()
19425 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19428 _LT_EOF
19429 esac
19431 case $lt_shell_append in
19432 yes)
19433 cat << \_LT_EOF >> "$cfgfile"
19435 # func_append var value
19436 # Append VALUE to the end of shell variable VAR.
19437 func_append ()
19439 eval "$1+=\$2"
19441 _LT_EOF
19444 cat << \_LT_EOF >> "$cfgfile"
19446 # func_append var value
19447 # Append VALUE to the end of shell variable VAR.
19448 func_append ()
19450 eval "$1=\$$1\$2"
19453 _LT_EOF
19455 esac
19458 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19459 || (rm -f "$cfgfile"; exit 1)
19461 mv -f "$cfgfile" "$ofile" ||
19462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19463 chmod +x "$ofile"
19466 cat <<_LT_EOF >> "$ofile"
19468 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19470 # The linker used to build libraries.
19471 LD=$lt_LD_CXX
19473 # How to create reloadable object files.
19474 reload_flag=$lt_reload_flag_CXX
19475 reload_cmds=$lt_reload_cmds_CXX
19477 # Commands used to build an old-style archive.
19478 old_archive_cmds=$lt_old_archive_cmds_CXX
19480 # A language specific compiler.
19481 CC=$lt_compiler_CXX
19483 # Is the compiler the GNU compiler?
19484 with_gcc=$GCC_CXX
19486 # Compiler flag to turn off builtin functions.
19487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19489 # How to pass a linker flag through the compiler.
19490 wl=$lt_lt_prog_compiler_wl_CXX
19492 # Additional compiler flags for building library objects.
19493 pic_flag=$lt_lt_prog_compiler_pic_CXX
19495 # Compiler flag to prevent dynamic linking.
19496 link_static_flag=$lt_lt_prog_compiler_static_CXX
19498 # Does compiler simultaneously support -c and -o options?
19499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19501 # Whether or not to add -lc for building shared libraries.
19502 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19504 # Whether or not to disallow shared libs when runtime libs are static.
19505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19507 # Compiler flag to allow reflexive dlopens.
19508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19510 # Compiler flag to generate shared objects directly from archives.
19511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19513 # Whether the compiler copes with passing no objects directly.
19514 compiler_needs_object=$lt_compiler_needs_object_CXX
19516 # Create an old-style archive from a shared archive.
19517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19519 # Create a temporary old-style archive to link instead of a shared archive.
19520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19522 # Commands used to build a shared archive.
19523 archive_cmds=$lt_archive_cmds_CXX
19524 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19526 # Commands used to build a loadable module if different from building
19527 # a shared archive.
19528 module_cmds=$lt_module_cmds_CXX
19529 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19531 # Whether we are building with GNU ld or not.
19532 with_gnu_ld=$lt_with_gnu_ld_CXX
19534 # Flag that allows shared libraries with undefined symbols to be built.
19535 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19537 # Flag that enforces no undefined symbols.
19538 no_undefined_flag=$lt_no_undefined_flag_CXX
19540 # Flag to hardcode \$libdir into a binary during linking.
19541 # This must work even if \$libdir does not exist
19542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19544 # If ld is used when linking, flag to hardcode \$libdir into a binary
19545 # during linking. This must work even if \$libdir does not exist.
19546 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19548 # Whether we need a single "-rpath" flag with a separated argument.
19549 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19552 # DIR into the resulting binary.
19553 hardcode_direct=$hardcode_direct_CXX
19555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19556 # DIR into the resulting binary and the resulting library dependency is
19557 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19558 # library is relocated.
19559 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19561 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19562 # into the resulting binary.
19563 hardcode_minus_L=$hardcode_minus_L_CXX
19565 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19566 # into the resulting binary.
19567 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19569 # Set to "yes" if building a shared library automatically hardcodes DIR
19570 # into the library and all subsequent libraries and executables linked
19571 # against it.
19572 hardcode_automatic=$hardcode_automatic_CXX
19574 # Set to yes if linker adds runtime paths of dependent libraries
19575 # to runtime path list.
19576 inherit_rpath=$inherit_rpath_CXX
19578 # Whether libtool must link a program against all its dependency libraries.
19579 link_all_deplibs=$link_all_deplibs_CXX
19581 # Fix the shell variable \$srcfile for the compiler.
19582 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19584 # Set to "yes" if exported symbols are required.
19585 always_export_symbols=$always_export_symbols_CXX
19587 # The commands to list exported symbols.
19588 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19590 # Symbols that should not be listed in the preloaded symbols.
19591 exclude_expsyms=$lt_exclude_expsyms_CXX
19593 # Symbols that must always be exported.
19594 include_expsyms=$lt_include_expsyms_CXX
19596 # Commands necessary for linking programs (against libraries) with templates.
19597 prelink_cmds=$lt_prelink_cmds_CXX
19599 # Specify filename containing input files.
19600 file_list_spec=$lt_file_list_spec_CXX
19602 # How to hardcode a shared library path into an executable.
19603 hardcode_action=$hardcode_action_CXX
19605 # The directories searched by this compiler when creating a shared library.
19606 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19608 # Dependencies to place before and after the objects being linked to
19609 # create a shared library.
19610 predep_objects=$lt_predep_objects_CXX
19611 postdep_objects=$lt_postdep_objects_CXX
19612 predeps=$lt_predeps_CXX
19613 postdeps=$lt_postdeps_CXX
19615 # The library search path used internally by the compiler when linking
19616 # a shared library.
19617 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19619 # ### END LIBTOOL TAG CONFIG: CXX
19620 _LT_EOF
19623 "gstdint.h":C)
19624 if test "$GCC" = yes; then
19625 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19626 else
19627 echo "/* generated for $CC */" > tmp-stdint.h
19630 sed 's/^ *//' >> tmp-stdint.h <<EOF
19632 #ifndef GCC_GENERATED_STDINT_H
19633 #define GCC_GENERATED_STDINT_H 1
19635 #include <sys/types.h>
19638 if test "$acx_cv_header_stdint" != stdint.h; then
19639 echo "#include <stddef.h>" >> tmp-stdint.h
19641 if test "$acx_cv_header_stdint" != stddef.h; then
19642 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19645 sed 's/^ *//' >> tmp-stdint.h <<EOF
19646 /* glibc uses these symbols as guards to prevent redefinitions. */
19647 #ifdef __int8_t_defined
19648 #define _INT8_T
19649 #define _INT16_T
19650 #define _INT32_T
19651 #endif
19652 #ifdef __uint32_t_defined
19653 #define _UINT32_T
19654 #endif
19658 # ----------------- done header, emit basic int types -------------
19659 if test "$acx_cv_header_stdint" = stddef.h; then
19660 sed 's/^ *//' >> tmp-stdint.h <<EOF
19662 #ifndef _UINT8_T
19663 #define _UINT8_T
19664 #ifndef __uint8_t_defined
19665 #define __uint8_t_defined
19666 #ifndef uint8_t
19667 typedef unsigned $acx_cv_type_int8_t uint8_t;
19668 #endif
19669 #endif
19670 #endif
19672 #ifndef _UINT16_T
19673 #define _UINT16_T
19674 #ifndef __uint16_t_defined
19675 #define __uint16_t_defined
19676 #ifndef uint16_t
19677 typedef unsigned $acx_cv_type_int16_t uint16_t;
19678 #endif
19679 #endif
19680 #endif
19682 #ifndef _UINT32_T
19683 #define _UINT32_T
19684 #ifndef __uint32_t_defined
19685 #define __uint32_t_defined
19686 #ifndef uint32_t
19687 typedef unsigned $acx_cv_type_int32_t uint32_t;
19688 #endif
19689 #endif
19690 #endif
19692 #ifndef _INT8_T
19693 #define _INT8_T
19694 #ifndef __int8_t_defined
19695 #define __int8_t_defined
19696 #ifndef int8_t
19697 typedef $acx_cv_type_int8_t int8_t;
19698 #endif
19699 #endif
19700 #endif
19702 #ifndef _INT16_T
19703 #define _INT16_T
19704 #ifndef __int16_t_defined
19705 #define __int16_t_defined
19706 #ifndef int16_t
19707 typedef $acx_cv_type_int16_t int16_t;
19708 #endif
19709 #endif
19710 #endif
19712 #ifndef _INT32_T
19713 #define _INT32_T
19714 #ifndef __int32_t_defined
19715 #define __int32_t_defined
19716 #ifndef int32_t
19717 typedef $acx_cv_type_int32_t int32_t;
19718 #endif
19719 #endif
19720 #endif
19722 elif test "$ac_cv_type_u_int32_t" = yes; then
19723 sed 's/^ *//' >> tmp-stdint.h <<EOF
19725 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19726 #ifndef _INT8_T
19727 #define _INT8_T
19728 #endif
19729 #ifndef _INT16_T
19730 #define _INT16_T
19731 #endif
19732 #ifndef _INT32_T
19733 #define _INT32_T
19734 #endif
19736 #ifndef _UINT8_T
19737 #define _UINT8_T
19738 #ifndef __uint8_t_defined
19739 #define __uint8_t_defined
19740 #ifndef uint8_t
19741 typedef u_int8_t uint8_t;
19742 #endif
19743 #endif
19744 #endif
19746 #ifndef _UINT16_T
19747 #define _UINT16_T
19748 #ifndef __uint16_t_defined
19749 #define __uint16_t_defined
19750 #ifndef uint16_t
19751 typedef u_int16_t uint16_t;
19752 #endif
19753 #endif
19754 #endif
19756 #ifndef _UINT32_T
19757 #define _UINT32_T
19758 #ifndef __uint32_t_defined
19759 #define __uint32_t_defined
19760 #ifndef uint32_t
19761 typedef u_int32_t uint32_t;
19762 #endif
19763 #endif
19764 #endif
19766 else
19767 sed 's/^ *//' >> tmp-stdint.h <<EOF
19769 /* Some systems have guard macros to prevent redefinitions, define them. */
19770 #ifndef _INT8_T
19771 #define _INT8_T
19772 #endif
19773 #ifndef _INT16_T
19774 #define _INT16_T
19775 #endif
19776 #ifndef _INT32_T
19777 #define _INT32_T
19778 #endif
19779 #ifndef _UINT8_T
19780 #define _UINT8_T
19781 #endif
19782 #ifndef _UINT16_T
19783 #define _UINT16_T
19784 #endif
19785 #ifndef _UINT32_T
19786 #define _UINT32_T
19787 #endif
19791 # ------------- done basic int types, emit int64_t types ------------
19792 if test "$ac_cv_type_uint64_t" = yes; then
19793 sed 's/^ *//' >> tmp-stdint.h <<EOF
19795 /* system headers have good uint64_t and int64_t */
19796 #ifndef _INT64_T
19797 #define _INT64_T
19798 #endif
19799 #ifndef _UINT64_T
19800 #define _UINT64_T
19801 #endif
19803 elif test "$ac_cv_type_u_int64_t" = yes; then
19804 sed 's/^ *//' >> tmp-stdint.h <<EOF
19806 /* system headers have an u_int64_t (and int64_t) */
19807 #ifndef _INT64_T
19808 #define _INT64_T
19809 #endif
19810 #ifndef _UINT64_T
19811 #define _UINT64_T
19812 #ifndef __uint64_t_defined
19813 #define __uint64_t_defined
19814 #ifndef uint64_t
19815 typedef u_int64_t uint64_t;
19816 #endif
19817 #endif
19818 #endif
19820 elif test -n "$acx_cv_type_int64_t"; then
19821 sed 's/^ *//' >> tmp-stdint.h <<EOF
19823 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19824 #ifndef _INT64_T
19825 #define _INT64_T
19826 #ifndef int64_t
19827 typedef $acx_cv_type_int64_t int64_t;
19828 #endif
19829 #endif
19830 #ifndef _UINT64_T
19831 #define _UINT64_T
19832 #ifndef __uint64_t_defined
19833 #define __uint64_t_defined
19834 #ifndef uint64_t
19835 typedef unsigned $acx_cv_type_int64_t uint64_t;
19836 #endif
19837 #endif
19838 #endif
19840 else
19841 sed 's/^ *//' >> tmp-stdint.h <<EOF
19843 /* some common heuristics for int64_t, using compiler-specific tests */
19844 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19845 #ifndef _INT64_T
19846 #define _INT64_T
19847 #ifndef __int64_t_defined
19848 #ifndef int64_t
19849 typedef long long int64_t;
19850 #endif
19851 #endif
19852 #endif
19853 #ifndef _UINT64_T
19854 #define _UINT64_T
19855 #ifndef uint64_t
19856 typedef unsigned long long uint64_t;
19857 #endif
19858 #endif
19860 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19861 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19862 does not implement __extension__. But that compiler doesn't define
19863 __GNUC_MINOR__. */
19864 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19865 # define __extension__
19866 # endif
19868 # ifndef _INT64_T
19869 # define _INT64_T
19870 # ifndef int64_t
19871 __extension__ typedef long long int64_t;
19872 # endif
19873 # endif
19874 # ifndef _UINT64_T
19875 # define _UINT64_T
19876 # ifndef uint64_t
19877 __extension__ typedef unsigned long long uint64_t;
19878 # endif
19879 # endif
19881 #elif !defined __STRICT_ANSI__
19882 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19884 # ifndef _INT64_T
19885 # define _INT64_T
19886 # ifndef int64_t
19887 typedef __int64 int64_t;
19888 # endif
19889 # endif
19890 # ifndef _UINT64_T
19891 # define _UINT64_T
19892 # ifndef uint64_t
19893 typedef unsigned __int64 uint64_t;
19894 # endif
19895 # endif
19896 # endif /* compiler */
19898 #endif /* ANSI version */
19902 # ------------- done int64_t types, emit intptr types ------------
19903 if test "$ac_cv_type_uintptr_t" != yes; then
19904 sed 's/^ *//' >> tmp-stdint.h <<EOF
19906 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19907 #ifndef __uintptr_t_defined
19908 #ifndef uintptr_t
19909 typedef u$acx_cv_type_intptr_t uintptr_t;
19910 #endif
19911 #endif
19912 #ifndef __intptr_t_defined
19913 #ifndef intptr_t
19914 typedef $acx_cv_type_intptr_t intptr_t;
19915 #endif
19916 #endif
19920 # ------------- done intptr types, emit int_least types ------------
19921 if test "$ac_cv_type_int_least32_t" != yes; then
19922 sed 's/^ *//' >> tmp-stdint.h <<EOF
19924 /* Define int_least types */
19925 typedef int8_t int_least8_t;
19926 typedef int16_t int_least16_t;
19927 typedef int32_t int_least32_t;
19928 #ifdef _INT64_T
19929 typedef int64_t int_least64_t;
19930 #endif
19932 typedef uint8_t uint_least8_t;
19933 typedef uint16_t uint_least16_t;
19934 typedef uint32_t uint_least32_t;
19935 #ifdef _UINT64_T
19936 typedef uint64_t uint_least64_t;
19937 #endif
19941 # ------------- done intptr types, emit int_fast types ------------
19942 if test "$ac_cv_type_int_fast32_t" != yes; then
19943 sed 's/^ *//' >> tmp-stdint.h <<EOF
19945 /* Define int_fast types. short is often slow */
19946 typedef int8_t int_fast8_t;
19947 typedef int int_fast16_t;
19948 typedef int32_t int_fast32_t;
19949 #ifdef _INT64_T
19950 typedef int64_t int_fast64_t;
19951 #endif
19953 typedef uint8_t uint_fast8_t;
19954 typedef unsigned int uint_fast16_t;
19955 typedef uint32_t uint_fast32_t;
19956 #ifdef _UINT64_T
19957 typedef uint64_t uint_fast64_t;
19958 #endif
19962 if test "$ac_cv_type_uintmax_t" != yes; then
19963 sed 's/^ *//' >> tmp-stdint.h <<EOF
19965 /* Define intmax based on what we found */
19966 #ifndef intmax_t
19967 #ifdef _INT64_T
19968 typedef int64_t intmax_t;
19969 #else
19970 typedef long intmax_t;
19971 #endif
19972 #endif
19973 #ifndef uintmax_t
19974 #ifdef _UINT64_T
19975 typedef uint64_t uintmax_t;
19976 #else
19977 typedef unsigned long uintmax_t;
19978 #endif
19979 #endif
19983 sed 's/^ *//' >> tmp-stdint.h <<EOF
19985 #endif /* GCC_GENERATED_STDINT_H */
19988 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19989 rm -f tmp-stdint.h
19990 else
19991 mv -f tmp-stdint.h gstdint.h
19995 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19996 s!`test -f '$<' || echo '$(srcdir)/'`!!
19997 _EOF
19998 sed -f vpsed$$ $ac_file > tmp$$
19999 mv tmp$$ $ac_file
20000 rm vpsed$$
20001 echo 'MULTISUBDIR =' >> $ac_file
20002 ml_norecursion=yes
20003 . ${multi_basedir}/config-ml.in
20004 { ml_norecursion=; unset ml_norecursion;}
20006 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
20007 s!`test -f '$<' || echo '$(srcdir)/'`!!
20008 _EOF
20009 sed -f vpsed$$ $ac_file > tmp$$
20010 mv tmp$$ $ac_file
20011 rm vpsed$$
20012 echo 'MULTISUBDIR =' >> $ac_file
20013 ml_norecursion=yes
20014 . ${multi_basedir}/config-ml.in
20015 { ml_norecursion=; unset ml_norecursion;}
20017 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
20018 s!`test -f '$<' || echo '$(srcdir)/'`!!
20019 _EOF
20020 sed -f vpsed$$ $ac_file > tmp$$
20021 mv tmp$$ $ac_file
20022 rm vpsed$$
20023 echo 'MULTISUBDIR =' >> $ac_file
20024 ml_norecursion=yes
20025 . ${multi_basedir}/config-ml.in
20026 { ml_norecursion=; unset ml_norecursion;}
20028 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
20029 s!`test -f '$<' || echo '$(srcdir)/'`!!
20030 _EOF
20031 sed -f vpsed$$ $ac_file > tmp$$
20032 mv tmp$$ $ac_file
20033 rm vpsed$$
20034 echo 'MULTISUBDIR =' >> $ac_file
20035 ml_norecursion=yes
20036 . ${multi_basedir}/config-ml.in
20037 { ml_norecursion=; unset ml_norecursion;}
20039 "asan/Makefile":F) cat > vpsed$$ << \_EOF
20040 s!`test -f '$<' || echo '$(srcdir)/'`!!
20041 _EOF
20042 sed -f vpsed$$ $ac_file > tmp$$
20043 mv tmp$$ $ac_file
20044 rm vpsed$$
20045 echo 'MULTISUBDIR =' >> $ac_file
20046 ml_norecursion=yes
20047 . ${multi_basedir}/config-ml.in
20048 { ml_norecursion=; unset ml_norecursion;}
20050 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
20051 s!`test -f '$<' || echo '$(srcdir)/'`!!
20052 _EOF
20053 sed -f vpsed$$ $ac_file > tmp$$
20054 mv tmp$$ $ac_file
20055 rm vpsed$$
20056 echo 'MULTISUBDIR =' >> $ac_file
20057 ml_norecursion=yes
20058 . ${multi_basedir}/config-ml.in
20059 { ml_norecursion=; unset ml_norecursion;}
20061 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
20062 s!`test -f '$<' || echo '$(srcdir)/'`!!
20063 _EOF
20064 sed -f vpsed$$ $ac_file > tmp$$
20065 mv tmp$$ $ac_file
20066 rm vpsed$$
20067 echo 'MULTISUBDIR =' >> $ac_file
20068 ml_norecursion=yes
20069 . ${multi_basedir}/config-ml.in
20070 { ml_norecursion=; unset ml_norecursion;}
20072 "hwasan/Makefile":F) cat > vpsed$$ << \_EOF
20073 s!`test -f '$<' || echo '$(srcdir)/'`!!
20074 _EOF
20075 sed -f vpsed$$ $ac_file > tmp$$
20076 mv tmp$$ $ac_file
20077 rm vpsed$$
20078 echo 'MULTISUBDIR =' >> $ac_file
20079 ml_norecursion=yes
20080 . ${multi_basedir}/config-ml.in
20081 { ml_norecursion=; unset ml_norecursion;}
20084 esac
20085 done # for ac_tag
20088 as_fn_exit 0
20089 _ACEOF
20090 ac_clean_files=$ac_clean_files_save
20092 test $ac_write_fail = 0 ||
20093 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20096 # configure is writing to config.log, and then calls config.status.
20097 # config.status does its own redirection, appending to config.log.
20098 # Unfortunately, on DOS this fails, as config.log is still kept open
20099 # by configure, so config.status won't be able to write to it; its
20100 # output is simply discarded. So we exec the FD to /dev/null,
20101 # effectively closing config.log, so it can be properly (re)opened and
20102 # appended to by config.status. When coming back to configure, we
20103 # need to make the FD available again.
20104 if test "$no_create" != yes; then
20105 ac_cs_success=:
20106 ac_config_status_args=
20107 test "$silent" = yes &&
20108 ac_config_status_args="$ac_config_status_args --quiet"
20109 exec 5>/dev/null
20110 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20111 exec 5>>config.log
20112 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20113 # would make configure fail if this is the last instruction.
20114 $ac_cs_success || as_fn_exit 1
20116 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20118 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}