ada: Minor tweak in assertion
[official-gcc.git] / libbacktrace / configure
bloba5bd133f4e4b67ccf66d9821b58bd2530b352560
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.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libbacktrace'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="backtrace.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 NATIVE_FALSE
637 NATIVE_TRUE
638 HAVE_LIBLZMA_FALSE
639 HAVE_LIBLZMA_TRUE
640 HAVE_MINIDEBUG_FALSE
641 HAVE_MINIDEBUG_TRUE
642 HAVE_COMM_FALSE
643 HAVE_COMM_TRUE
644 COMM
645 HAVE_XZ_FALSE
646 HAVE_XZ_TRUE
648 USE_DSYMUTIL_FALSE
649 USE_DSYMUTIL_TRUE
650 HAVE_OBJCOPY_DEBUGLINK_FALSE
651 HAVE_OBJCOPY_DEBUGLINK_TRUE
652 READELF
653 OBJCOPY
654 HAVE_COMPRESSED_DEBUG_FALSE
655 HAVE_COMPRESSED_DEBUG_TRUE
656 HAVE_ZLIB_FALSE
657 HAVE_ZLIB_TRUE
658 HAVE_DWARF5_FALSE
659 HAVE_DWARF5_TRUE
660 HAVE_PTHREAD_FALSE
661 HAVE_PTHREAD_TRUE
662 PTHREAD_CFLAGS
663 CLOCK_GETTIME_LINK
664 BACKTRACE_USES_MALLOC
665 ALLOC_FILE
666 VIEW_FILE
667 BACKTRACE_SUPPORTS_DATA
668 BACKTRACE_SUPPORTED
669 HAVE_ELF_FALSE
670 HAVE_ELF_TRUE
671 FORMAT_FILE
672 BACKTRACE_SUPPORTS_THREADS
673 CET_HOST_FLAGS
674 PIC_FLAG
675 WARN_FLAGS
676 EXTRA_FLAGS
677 BACKTRACE_FILE
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
684 OBJDUMP
685 LN_S
687 ac_ct_DUMPBIN
688 DUMPBIN
690 FGREP
692 LIBTOOL
693 HAVE_DWZ_FALSE
694 HAVE_DWZ_TRUE
696 RANLIB
697 MAINT
698 MAINTAINER_MODE_FALSE
699 MAINTAINER_MODE_TRUE
700 AM_BACKSLASH
701 AM_DEFAULT_VERBOSITY
702 AM_DEFAULT_V
703 AM_V
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 libtool_VERSION
728 EGREP
729 GREP
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
738 target_os
739 target_vendor
740 target_cpu
741 target
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 multi_basedir
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_multilib
793 enable_silent_rules
794 enable_maintainer_mode
795 with_target_subdir
796 enable_shared
797 enable_static
798 with_pic
799 enable_fast_install
800 with_gnu_ld
801 enable_libtool_lock
802 enable_largefile
803 enable_cet
804 enable_werror
805 with_system_libunwind
806 enable_host_shared
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
817 OBJCOPY
818 DSYMUTIL
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
870 ac_prev=
871 ac_dashdash=
872 for ac_option
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
891 ac_dashdash=yes ;;
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
910 --config-cache | -C)
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 esac
1228 done
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1312 /^X\(\/\/\)$/{
1313 s//\1/
1316 /^X\(\/\).*/{
1317 s//\1/
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1325 else
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1415 cat <<\_ACEOF
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426 _ACEOF
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of package-unused version-unused:";;
1432 esac
1433 cat <<\_ACEOF
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-multilib build many library versions (default)
1440 --enable-silent-rules less verbose build output (undo: "make V=1")
1441 --disable-silent-rules verbose build output (undo: "make V=0")
1442 --enable-maintainer-mode
1443 enable make rules and dependencies not useful (and
1444 sometimes confusing) to the casual installer
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-static[=PKGS] build static libraries [default=yes]
1447 --enable-fast-install[=PKGS]
1448 optimize for fast installation [default=yes]
1449 --disable-libtool-lock avoid locking (might break parallel builds)
1450 --disable-largefile omit support for large files
1451 --enable-cet enable Intel CET in target libraries [default=auto]
1452 --disable-werror disable building with -Werror
1453 --enable-host-shared build host code as shared libraries
1454 --enable-cet enable Intel CET in host libraries [default=auto]
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-system-libunwind use installed libunwind
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 OBJCOPY location of objcopy
1475 DSYMUTIL location of dsymutil
1476 NM location of nm
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to the package provider.
1482 _ACEOF
1483 ac_status=$?
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 package-unused configure version-unused
1545 generated by GNU Autoconf 2.69
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1589 ac_retval=1
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_compile
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } > conftest.i && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1626 ac_retval=1
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1631 } # ac_fn_c_try_cpp
1633 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636 # the include files in INCLUDES and setting the cache variable VAR
1637 # accordingly.
1638 ac_fn_c_check_header_mongrel ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if eval \${$3+:} false; then :
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 else
1651 # Is the header compilable?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653 $as_echo_n "checking $2 usability... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 ac_header_compiler=yes
1661 else
1662 ac_header_compiler=no
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666 $as_echo "$ac_header_compiler" >&6; }
1668 # Is the header present?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670 $as_echo_n "checking $2 presence... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_cpp "$LINENO"; then :
1676 ac_header_preproc=yes
1677 else
1678 ac_header_preproc=no
1680 rm -f conftest.err conftest.i conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682 $as_echo "$ac_header_preproc" >&6; }
1684 # So? What about this header?
1685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 yes:no: )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 no:yes:* )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1696 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1700 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 esac
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1709 else
1710 eval "$3=\$ac_header_compiler"
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 } # ac_fn_c_check_header_mongrel
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=$ac_status
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_run
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 } # ac_fn_c_check_header_compile
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_link ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 test -x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1837 } # ac_fn_c_try_link
1839 # ac_fn_c_check_func LINENO FUNC VAR
1840 # ----------------------------------
1841 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1842 ac_fn_c_check_func ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1854 #define $2 innocuous_$2
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char $2 (); below.
1858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1859 <limits.h> exists even on freestanding compilers. */
1861 #ifdef __STDC__
1862 # include <limits.h>
1863 #else
1864 # include <assert.h>
1865 #endif
1867 #undef $2
1869 /* Override any GCC internal prototype to avoid an error.
1870 Use char because int might match the return type of a GCC
1871 builtin and then its argument prototype would still apply. */
1872 #ifdef __cplusplus
1873 extern "C"
1874 #endif
1875 char $2 ();
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined __stub_$2 || defined __stub___$2
1880 choke me
1881 #endif
1884 main ()
1886 return $2 ();
1888 return 0;
1890 _ACEOF
1891 if ac_fn_c_try_link "$LINENO"; then :
1892 eval "$3=yes"
1893 else
1894 eval "$3=no"
1896 rm -f core conftest.err conftest.$ac_objext \
1897 conftest$ac_exeext conftest.$ac_ext
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 } # ac_fn_c_check_func
1906 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1907 # -------------------------------------------
1908 # Tests whether TYPE exists after having included INCLUDES, setting cache
1909 # variable VAR accordingly.
1910 ac_fn_c_check_type ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 eval "$3=no"
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1923 main ()
1925 if (sizeof ($2))
1926 return 0;
1928 return 0;
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1936 main ()
1938 if (sizeof (($2)))
1939 return 0;
1941 return 0;
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1946 else
1947 eval "$3=yes"
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 } # ac_fn_c_check_type
1960 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1961 # --------------------------------------------
1962 # Tries to find the compile-time value of EXPR in a program that includes
1963 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1964 # computed
1965 ac_fn_c_compute_int ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if test "$cross_compiling" = yes; then
1969 # Depending upon the size, compute the lo and hi bounds.
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1974 main ()
1976 static int test_array [1 - 2 * !(($2) >= 0)];
1977 test_array [0] = 0;
1978 return test_array [0];
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 ac_lo=0 ac_mid=0
1986 while :; do
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 main ()
1993 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1994 test_array [0] = 0;
1995 return test_array [0];
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_hi=$ac_mid; break
2003 else
2004 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2005 if test $ac_lo -le $ac_mid; then
2006 ac_lo= ac_hi=
2007 break
2009 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 main ()
2020 static int test_array [1 - 2 * !(($2) < 0)];
2021 test_array [0] = 0;
2022 return test_array [0];
2025 return 0;
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=-1 ac_mid=-1
2030 while :; do
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 main ()
2037 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2038 test_array [0] = 0;
2039 return test_array [0];
2042 return 0;
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_lo=$ac_mid; break
2047 else
2048 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2049 if test $ac_mid -le $ac_hi; then
2050 ac_lo= ac_hi=
2051 break
2053 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 done
2057 else
2058 ac_lo= ac_hi=
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 # Binary search between lo and hi bounds.
2064 while test "x$ac_lo" != "x$ac_hi"; do
2065 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2073 test_array [0] = 0;
2074 return test_array [0];
2077 return 0;
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 ac_hi=$ac_mid
2082 else
2083 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 done
2087 case $ac_lo in #((
2088 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2089 '') ac_retval=1 ;;
2090 esac
2091 else
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2095 static long int longval () { return $2; }
2096 static unsigned long int ulongval () { return $2; }
2097 #include <stdio.h>
2098 #include <stdlib.h>
2100 main ()
2103 FILE *f = fopen ("conftest.val", "w");
2104 if (! f)
2105 return 1;
2106 if (($2) < 0)
2108 long int i = longval ();
2109 if (i != ($2))
2110 return 1;
2111 fprintf (f, "%ld", i);
2113 else
2115 unsigned long int i = ulongval ();
2116 if (i != ($2))
2117 return 1;
2118 fprintf (f, "%lu", i);
2120 /* Do not output a trailing newline, as this causes \r\n confusion
2121 on some platforms. */
2122 return ferror (f) || fclose (f) != 0;
2125 return 0;
2127 _ACEOF
2128 if ac_fn_c_try_run "$LINENO"; then :
2129 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2130 else
2131 ac_retval=1
2133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2134 conftest.$ac_objext conftest.beam conftest.$ac_ext
2135 rm -f conftest.val
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 as_fn_set_status $ac_retval
2141 } # ac_fn_c_compute_int
2143 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2144 # ---------------------------------------------
2145 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2146 # accordingly.
2147 ac_fn_c_check_decl ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 as_decl_name=`echo $2|sed 's/ *(.*//'`
2151 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2153 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2154 if eval \${$3+:} false; then :
2155 $as_echo_n "(cached) " >&6
2156 else
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 main ()
2163 #ifndef $as_decl_name
2164 #ifdef __cplusplus
2165 (void) $as_decl_use;
2166 #else
2167 (void) $as_decl_name;
2168 #endif
2169 #endif
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 eval "$3=yes"
2177 else
2178 eval "$3=no"
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 } # ac_fn_c_check_decl
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2192 It was created by package-unused $as_me version-unused, which was
2193 generated by GNU Autoconf 2.69. Invocation command line was
2195 $ $0 $@
2197 _ACEOF
2198 exec 5>>config.log
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2222 _ASUNAME
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2230 done
2231 IFS=$as_save_IFS
2233 } >&5
2235 cat >&5 <<_ACEOF
2238 ## ----------- ##
2239 ## Core tests. ##
2240 ## ----------- ##
2242 _ACEOF
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_configure_args=
2251 ac_configure_args0=
2252 ac_configure_args1=
2253 ac_must_keep_next=false
2254 for ac_pass in 1 2
2256 for ac_arg
2258 case $ac_arg in
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2262 continue ;;
2263 *\'*)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 esac
2266 case $ac_pass in
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2272 else
2273 case $ac_arg in
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2280 esac
2282 -* ) ac_must_keep_next=true ;;
2283 esac
2285 as_fn_append ac_configure_args " '$ac_arg'"
2287 esac
2288 done
2289 done
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2301 echo
2303 $as_echo "## ---------------- ##
2304 ## Cache variables. ##
2305 ## ---------------- ##"
2306 echo
2307 # The following way of writing the cache mishandles newlines in values,
2309 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2310 eval ac_val=\$$ac_var
2311 case $ac_val in #(
2312 *${as_nl}*)
2313 case $ac_var in #(
2314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2316 esac
2317 case $ac_var in #(
2318 _ | IFS | as_nl) ;; #(
2319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2320 *) { eval $ac_var=; unset $ac_var;} ;;
2321 esac ;;
2322 esac
2323 done
2324 (set) 2>&1 |
2325 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2326 *${as_nl}ac_space=\ *)
2327 sed -n \
2328 "s/'\''/'\''\\\\'\'''\''/g;
2329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2330 ;; #(
2332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2334 esac |
2335 sort
2337 echo
2339 $as_echo "## ----------------- ##
2340 ## Output variables. ##
2341 ## ----------------- ##"
2342 echo
2343 for ac_var in $ac_subst_vars
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2353 if test -n "$ac_subst_files"; then
2354 $as_echo "## ------------------- ##
2355 ## File substitutions. ##
2356 ## ------------------- ##"
2357 echo
2358 for ac_var in $ac_subst_files
2360 eval ac_val=\$$ac_var
2361 case $ac_val in
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363 esac
2364 $as_echo "$ac_var='\''$ac_val'\''"
2365 done | sort
2366 echo
2369 if test -s confdefs.h; then
2370 $as_echo "## ----------- ##
2371 ## confdefs.h. ##
2372 ## ----------- ##"
2373 echo
2374 cat confdefs.h
2375 echo
2377 test "$ac_signal" != 0 &&
2378 $as_echo "$as_me: caught signal $ac_signal"
2379 $as_echo "$as_me: exit $exit_status"
2380 } >&5
2381 rm -f core *.core core.conftest.* &&
2382 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2383 exit $exit_status
2385 for ac_signal in 1 2 13 15; do
2386 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2387 done
2388 ac_signal=0
2390 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2391 rm -f -r conftest* confdefs.h
2393 $as_echo "/* confdefs.h */" > confdefs.h
2395 # Predefined preprocessor variables.
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_NAME "$PACKAGE_NAME"
2399 _ACEOF
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2403 _ACEOF
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2407 _ACEOF
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_STRING "$PACKAGE_STRING"
2411 _ACEOF
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2415 _ACEOF
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_URL "$PACKAGE_URL"
2419 _ACEOF
2422 # Let the site file select an alternate cache file if it wants to.
2423 # Prefer an explicitly selected file to automatically selected ones.
2424 ac_site_file1=NONE
2425 ac_site_file2=NONE
2426 if test -n "$CONFIG_SITE"; then
2427 # We do not want a PATH search for config.site.
2428 case $CONFIG_SITE in #((
2429 -*) ac_site_file1=./$CONFIG_SITE;;
2430 */*) ac_site_file1=$CONFIG_SITE;;
2431 *) ac_site_file1=./$CONFIG_SITE;;
2432 esac
2433 elif test "x$prefix" != xNONE; then
2434 ac_site_file1=$prefix/share/config.site
2435 ac_site_file2=$prefix/etc/config.site
2436 else
2437 ac_site_file1=$ac_default_prefix/share/config.site
2438 ac_site_file2=$ac_default_prefix/etc/config.site
2440 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2442 test "x$ac_site_file" = xNONE && continue
2443 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446 sed 's/^/| /' "$ac_site_file" >&5
2447 . "$ac_site_file" \
2448 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 as_fn_error $? "failed to load site script $ac_site_file
2451 See \`config.log' for more details" "$LINENO" 5; }
2453 done
2455 if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special files
2457 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2458 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461 case $cache_file in
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2464 esac
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469 >$cache_file
2472 # Check that the precious variables saved in the cache have kept the same
2473 # value.
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
2521 done
2522 if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 ## -------------------- ##
2530 ## Main body of script. ##
2531 ## -------------------- ##
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 ac_config_headers="$ac_config_headers config.h"
2547 if test -n "${with_target_subdir}"; then
2548 # Default to --enable-multilib
2549 # Check whether --enable-multilib was given.
2550 if test "${enable_multilib+set}" = set; then :
2551 enableval=$enable_multilib; case "$enableval" in
2552 yes) multilib=yes ;;
2553 no) multilib=no ;;
2554 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2555 esac
2556 else
2557 multilib=yes
2561 # We may get other options which we leave undocumented:
2562 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2563 # See config-ml.in if you want the gory details.
2565 if test "$srcdir" = "."; then
2566 if test "$with_target_subdir" != "."; then
2567 multi_basedir="$srcdir/$with_multisrctop../.."
2568 else
2569 multi_basedir="$srcdir/$with_multisrctop.."
2571 else
2572 multi_basedir="$srcdir/.."
2576 # Even if the default multilib is not a cross compilation,
2577 # it may be that some of the other multilibs are.
2578 if test $cross_compiling = no && test $multilib = yes \
2579 && test "x${with_multisubdir}" != x ; then
2580 cross_compiling=maybe
2583 ac_config_commands="$ac_config_commands default-1"
2587 ac_aux_dir=
2588 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2589 if test -f "$ac_dir/install-sh"; then
2590 ac_aux_dir=$ac_dir
2591 ac_install_sh="$ac_aux_dir/install-sh -c"
2592 break
2593 elif test -f "$ac_dir/install.sh"; then
2594 ac_aux_dir=$ac_dir
2595 ac_install_sh="$ac_aux_dir/install.sh -c"
2596 break
2597 elif test -f "$ac_dir/shtool"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/shtool install -c"
2600 break
2602 done
2603 if test -z "$ac_aux_dir"; then
2604 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2607 # These three variables are undocumented and unsupported,
2608 # and are intended to be withdrawn in a future Autoconf release.
2609 # They can cause serious problems if a builder's source tree is in a directory
2610 # whose full name contains unusual characters.
2611 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2612 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2613 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2616 # Make sure we can run config.sub.
2617 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2618 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2621 $as_echo_n "checking build system type... " >&6; }
2622 if ${ac_cv_build+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 ac_build_alias=$build_alias
2626 test "x$ac_build_alias" = x &&
2627 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2628 test "x$ac_build_alias" = x &&
2629 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2630 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2631 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2635 $as_echo "$ac_cv_build" >&6; }
2636 case $ac_cv_build in
2637 *-*-*) ;;
2638 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2639 esac
2640 build=$ac_cv_build
2641 ac_save_IFS=$IFS; IFS='-'
2642 set x $ac_cv_build
2643 shift
2644 build_cpu=$1
2645 build_vendor=$2
2646 shift; shift
2647 # Remember, the first character of IFS is used to create $*,
2648 # except with old shells:
2649 build_os=$*
2650 IFS=$ac_save_IFS
2651 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2655 $as_echo_n "checking host system type... " >&6; }
2656 if ${ac_cv_host+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if test "x$host_alias" = x; then
2660 ac_cv_host=$ac_cv_build
2661 else
2662 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2663 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2668 $as_echo "$ac_cv_host" >&6; }
2669 case $ac_cv_host in
2670 *-*-*) ;;
2671 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2672 esac
2673 host=$ac_cv_host
2674 ac_save_IFS=$IFS; IFS='-'
2675 set x $ac_cv_host
2676 shift
2677 host_cpu=$1
2678 host_vendor=$2
2679 shift; shift
2680 # Remember, the first character of IFS is used to create $*,
2681 # except with old shells:
2682 host_os=$*
2683 IFS=$ac_save_IFS
2684 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2688 $as_echo_n "checking target system type... " >&6; }
2689 if ${ac_cv_target+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test "x$target_alias" = x; then
2693 ac_cv_target=$ac_cv_host
2694 else
2695 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2696 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2701 $as_echo "$ac_cv_target" >&6; }
2702 case $ac_cv_target in
2703 *-*-*) ;;
2704 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2705 esac
2706 target=$ac_cv_target
2707 ac_save_IFS=$IFS; IFS='-'
2708 set x $ac_cv_target
2709 shift
2710 target_cpu=$1
2711 target_vendor=$2
2712 shift; shift
2713 # Remember, the first character of IFS is used to create $*,
2714 # except with old shells:
2715 target_os=$*
2716 IFS=$ac_save_IFS
2717 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2720 # The aliases save the names the user supplied, while $host etc.
2721 # will get canonicalized.
2722 test -n "$target_alias" &&
2723 test "$program_prefix$program_suffix$program_transform_name" = \
2724 NONENONEs,x,x, &&
2725 program_prefix=${target_alias}-
2727 target_alias=${target_alias-$host_alias}
2729 # Expand $ac_aux_dir to an absolute path.
2730 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_CC+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2759 done
2760 done
2761 IFS=$as_save_IFS
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2776 if test -z "$ac_cv_prog_CC"; then
2777 ac_ct_CC=$CC
2778 # Extract the first word of "gcc", so it can be a program name with args.
2779 set dummy gcc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$ac_ct_CC"; then
2786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_ac_ct_CC="gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2799 done
2800 done
2801 IFS=$as_save_IFS
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808 $as_echo "$ac_ct_CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 CC=$ac_ct_CC
2825 else
2826 CC="$ac_cv_prog_CC"
2829 if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}cc; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_CC+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC="${ac_tool_prefix}cc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2852 done
2853 done
2854 IFS=$as_save_IFS
2858 CC=$ac_cv_prog_CC
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2870 if test -z "$CC"; then
2871 # Extract the first word of "cc", so it can be a program name with args.
2872 set dummy cc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 ac_prog_rejected=no
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2890 ac_prog_rejected=yes
2891 continue
2893 ac_cv_prog_CC="cc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2899 IFS=$as_save_IFS
2901 if test $ac_prog_rejected = yes; then
2902 # We found a bogon in the path, so make sure we never use it.
2903 set dummy $ac_cv_prog_CC
2904 shift
2905 if test $# != 0; then
2906 # We chose a different compiler from the bogus one.
2907 # However, it has the same basename, so the bogon will be chosen
2908 # first if we set CC to just the basename; use the full file name.
2909 shift
2910 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2915 CC=$ac_cv_prog_CC
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 for ac_prog in cl.exe
2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2953 IFS=$as_save_IFS
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2967 test -n "$CC" && break
2968 done
2970 if test -z "$CC"; then
2971 ac_ct_CC=$CC
2972 for ac_prog in cl.exe
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_ac_ct_CC="$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2995 done
2996 done
2997 IFS=$as_save_IFS
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004 $as_echo "$ac_ct_CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3011 test -n "$ac_ct_CC" && break
3012 done
3014 if test "x$ac_ct_CC" = x; then
3015 CC=""
3016 else
3017 case $cross_compiling:$ac_tool_warned in
3018 yes:)
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023 CC=$ac_ct_CC
3030 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error $? "no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details" "$LINENO" 5; }
3035 # Provide some information about the compiler.
3036 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3037 set X $ac_compile
3038 ac_compiler=$2
3039 for ac_option in --version -v -V -qversion; do
3040 { { ac_try="$ac_compiler $ac_option >&5"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3048 ac_status=$?
3049 if test -s conftest.err; then
3050 sed '10a\
3051 ... rest of stderr output deleted ...
3052 10q' conftest.err >conftest.er1
3053 cat conftest.er1 >&5
3055 rm -f conftest.er1 conftest.err
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }
3058 done
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3064 main ()
3068 return 0;
3070 _ACEOF
3071 ac_clean_files_save=$ac_clean_files
3072 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3073 # Try to create an executable without -o first, disregard a.out.
3074 # It will help us diagnose broken compilers, and finding out an intuition
3075 # of exeext.
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3077 $as_echo_n "checking whether the C compiler works... " >&6; }
3078 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080 # The possible output files:
3081 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3083 ac_rmfiles=
3084 for ac_file in $ac_files
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3089 esac
3090 done
3091 rm -f $ac_rmfiles
3093 if { { ac_try="$ac_link_default"
3094 case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_link_default") 2>&5
3101 ac_status=$?
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }; then :
3104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3105 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3106 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3107 # so that the user can short-circuit this test for compilers unknown to
3108 # Autoconf.
3109 for ac_file in $ac_files ''
3111 test -f "$ac_file" || continue
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3115 [ab].out )
3116 # We found the default executable, but exeext='' is most
3117 # certainly right.
3118 break;;
3119 *.* )
3120 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3121 then :; else
3122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 # We set ac_cv_exeext here because the later test for it is not
3125 # safe: cross compilers may not add the suffix if given an `-o'
3126 # argument, so we may need to know it at that point already.
3127 # Even if this section looks crufty: it has the advantage of
3128 # actually working.
3129 break;;
3131 break;;
3132 esac
3133 done
3134 test "$ac_cv_exeext" = no && ac_cv_exeext=
3136 else
3137 ac_file=''
3139 if test -z "$ac_file"; then :
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error 77 "C compiler cannot create executables
3148 See \`config.log' for more details" "$LINENO" 5; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3151 $as_echo "yes" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3154 $as_echo_n "checking for C compiler default output file name... " >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3156 $as_echo "$ac_file" >&6; }
3157 ac_exeext=$ac_cv_exeext
3159 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3160 ac_clean_files=$ac_clean_files_save
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3162 $as_echo_n "checking for suffix of executables... " >&6; }
3163 if { { ac_try="$ac_link"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; then :
3174 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3175 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3176 # work properly (i.e., refer to `conftest.exe'), while it won't with
3177 # `rm'.
3178 for ac_file in conftest.exe conftest conftest.*; do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183 break;;
3184 * ) break;;
3185 esac
3186 done
3187 else
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details" "$LINENO" 5; }
3193 rm -f conftest conftest$ac_cv_exeext
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3195 $as_echo "$ac_cv_exeext" >&6; }
3197 rm -f conftest.$ac_ext
3198 EXEEXT=$ac_cv_exeext
3199 ac_exeext=$EXEEXT
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3202 #include <stdio.h>
3204 main ()
3206 FILE *f = fopen ("conftest.out", "w");
3207 return ferror (f) || fclose (f) != 0;
3210 return 0;
3212 _ACEOF
3213 ac_clean_files="$ac_clean_files conftest.out"
3214 # Check that the compiler produces executables we can run. If not, either
3215 # the compiler is broken, or we cross compile.
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3217 $as_echo_n "checking whether we are cross compiling... " >&6; }
3218 if test "$cross_compiling" != yes; then
3219 { { ac_try="$ac_link"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }
3230 if { ac_try='./conftest$ac_cv_exeext'
3231 { { case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_try") 2>&5
3238 ac_status=$?
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; }; then
3241 cross_compiling=no
3242 else
3243 if test "$cross_compiling" = maybe; then
3244 cross_compiling=yes
3245 else
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "cannot run C compiled programs.
3249 If you meant to cross compile, use \`--host'.
3250 See \`config.log' for more details" "$LINENO" 5; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3255 $as_echo "$cross_compiling" >&6; }
3257 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3258 ac_clean_files=$ac_clean_files_save
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3260 $as_echo_n "checking for suffix of object files... " >&6; }
3261 if ${ac_cv_objext+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3268 main ()
3272 return 0;
3274 _ACEOF
3275 rm -f conftest.o conftest.obj
3276 if { { ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_compile") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
3287 for ac_file in conftest.o conftest.obj conftest.*; do
3288 test -f "$ac_file" || continue;
3289 case $ac_file in
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3291 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3292 break;;
3293 esac
3294 done
3295 else
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "cannot compute suffix of object files: cannot compile
3302 See \`config.log' for more details" "$LINENO" 5; }
3304 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3307 $as_echo "$ac_cv_objext" >&6; }
3308 OBJEXT=$ac_cv_objext
3309 ac_objext=$OBJEXT
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3311 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3312 if ${ac_cv_c_compiler_gnu+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3319 main ()
3321 #ifndef __GNUC__
3322 choke me
3323 #endif
3326 return 0;
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_compiler_gnu=yes
3331 else
3332 ac_compiler_gnu=no
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3339 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3340 if test $ac_compiler_gnu = yes; then
3341 GCC=yes
3342 else
3343 GCC=
3345 ac_test_CFLAGS=${CFLAGS+set}
3346 ac_save_CFLAGS=$CFLAGS
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3348 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3349 if ${ac_cv_prog_cc_g+:} false; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 ac_save_c_werror_flag=$ac_c_werror_flag
3353 ac_c_werror_flag=yes
3354 ac_cv_prog_cc_g=no
3355 CFLAGS="-g"
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3360 main ()
3364 return 0;
3366 _ACEOF
3367 if ac_fn_c_try_compile "$LINENO"; then :
3368 ac_cv_prog_cc_g=yes
3369 else
3370 CFLAGS=""
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3375 main ()
3379 return 0;
3381 _ACEOF
3382 if ac_fn_c_try_compile "$LINENO"; then :
3384 else
3385 ac_c_werror_flag=$ac_save_c_werror_flag
3386 CFLAGS="-g"
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3391 main ()
3395 return 0;
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3399 ac_cv_prog_cc_g=yes
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 ac_c_werror_flag=$ac_save_c_werror_flag
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3409 $as_echo "$ac_cv_prog_cc_g" >&6; }
3410 if test "$ac_test_CFLAGS" = set; then
3411 CFLAGS=$ac_save_CFLAGS
3412 elif test $ac_cv_prog_cc_g = yes; then
3413 if test "$GCC" = yes; then
3414 CFLAGS="-g -O2"
3415 else
3416 CFLAGS="-g"
3418 else
3419 if test "$GCC" = yes; then
3420 CFLAGS="-O2"
3421 else
3422 CFLAGS=
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3426 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3427 if ${ac_cv_prog_cc_c89+:} false; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 ac_cv_prog_cc_c89=no
3431 ac_save_CC=$CC
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434 #include <stdarg.h>
3435 #include <stdio.h>
3436 struct stat;
3437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3438 struct buf { int x; };
3439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3440 static char *e (p, i)
3441 char **p;
3442 int i;
3444 return p[i];
3446 static char *f (char * (*g) (char **, int), char **p, ...)
3448 char *s;
3449 va_list v;
3450 va_start (v,p);
3451 s = g (p, va_arg (v,int));
3452 va_end (v);
3453 return s;
3456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3457 function prototypes and stuff, but not '\xHH' hex character constants.
3458 These don't provoke an error unfortunately, instead are silently treated
3459 as 'x'. The following induces an error, until -std is added to get
3460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3461 array size at least. It's necessary to write '\x00'==0 to get something
3462 that's true only with -std. */
3463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3466 inside strings and character constants. */
3467 #define FOO(x) 'x'
3468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3470 int test (int i, double x);
3471 struct s1 {int (*f) (int a);};
3472 struct s2 {int (*f) (double a);};
3473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3474 int argc;
3475 char **argv;
3477 main ()
3479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3481 return 0;
3483 _ACEOF
3484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3487 CC="$ac_save_CC $ac_arg"
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489 ac_cv_prog_cc_c89=$ac_arg
3491 rm -f core conftest.err conftest.$ac_objext
3492 test "x$ac_cv_prog_cc_c89" != "xno" && break
3493 done
3494 rm -f conftest.$ac_ext
3495 CC=$ac_save_CC
3498 # AC_CACHE_VAL
3499 case "x$ac_cv_prog_cc_c89" in
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3502 $as_echo "none needed" >&6; } ;;
3503 xno)
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3505 $as_echo "unsupported" >&6; } ;;
3507 CC="$CC $ac_cv_prog_cc_c89"
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3510 esac
3511 if test "x$ac_cv_prog_cc_c89" != xno; then :
3515 ac_ext=c
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3527 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3528 if ${am_cv_prog_cc_c_o+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3535 main ()
3539 return 0;
3541 _ACEOF
3542 # Make sure it works both with $CC and with simple cc.
3543 # Following AC_PROG_CC_C_O, we do the test twice because some
3544 # compilers refuse to overwrite an existing .o file with -o,
3545 # though they will create one.
3546 am_cv_prog_cc_c_o=yes
3547 for am_i in 1 2; do
3548 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3549 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } \
3553 && test -f conftest2.$ac_objext; then
3554 : OK
3555 else
3556 am_cv_prog_cc_c_o=no
3557 break
3559 done
3560 rm -f core conftest*
3561 unset am_i
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3564 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3565 if test "$am_cv_prog_cc_c_o" != yes; then
3566 # Losing compiler, so override with the script.
3567 # FIXME: It is wrong to rewrite CC.
3568 # But if we don't then we get into trouble of one sort or another.
3569 # A longer-term fix would be to have automake use am__CC in this case,
3570 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3571 CC="$am_aux_dir/compile $CC"
3573 ac_ext=c
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3587 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3588 # On Suns, sometimes $CPP names a directory.
3589 if test -n "$CPP" && test -d "$CPP"; then
3590 CPP=
3592 if test -z "$CPP"; then
3593 if ${ac_cv_prog_CPP+:} false; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 # Double quotes because CPP needs to be expanded
3597 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3599 ac_preproc_ok=false
3600 for ac_c_preproc_warn_flag in '' yes
3602 # Use a header file that comes with gcc, so configuring glibc
3603 # with a fresh cross-compiler works.
3604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3605 # <limits.h> exists even on freestanding compilers.
3606 # On the NeXT, cc -E runs the code through the compiler's parser,
3607 # not just through cpp. "Syntax error" is here to catch this case.
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610 #ifdef __STDC__
3611 # include <limits.h>
3612 #else
3613 # include <assert.h>
3614 #endif
3615 Syntax error
3616 _ACEOF
3617 if ac_fn_c_try_cpp "$LINENO"; then :
3619 else
3620 # Broken: fails on valid input.
3621 continue
3623 rm -f conftest.err conftest.i conftest.$ac_ext
3625 # OK, works on sane cases. Now check whether nonexistent headers
3626 # can be detected and how.
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3630 _ACEOF
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3632 # Broken: success on invalid input.
3633 continue
3634 else
3635 # Passes both tests.
3636 ac_preproc_ok=:
3637 break
3639 rm -f conftest.err conftest.i conftest.$ac_ext
3641 done
3642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3643 rm -f conftest.i conftest.err conftest.$ac_ext
3644 if $ac_preproc_ok; then :
3645 break
3648 done
3649 ac_cv_prog_CPP=$CPP
3652 CPP=$ac_cv_prog_CPP
3653 else
3654 ac_cv_prog_CPP=$CPP
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3657 $as_echo "$CPP" >&6; }
3658 ac_preproc_ok=false
3659 for ac_c_preproc_warn_flag in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error" is here to catch this case.
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669 #ifdef __STDC__
3670 # include <limits.h>
3671 #else
3672 # include <assert.h>
3673 #endif
3674 Syntax error
3675 _ACEOF
3676 if ac_fn_c_try_cpp "$LINENO"; then :
3678 else
3679 # Broken: fails on valid input.
3680 continue
3682 rm -f conftest.err conftest.i conftest.$ac_ext
3684 # OK, works on sane cases. Now check whether nonexistent headers
3685 # can be detected and how.
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <ac_nonexistent.h>
3689 _ACEOF
3690 if ac_fn_c_try_cpp "$LINENO"; then :
3691 # Broken: success on invalid input.
3692 continue
3693 else
3694 # Passes both tests.
3695 ac_preproc_ok=:
3696 break
3698 rm -f conftest.err conftest.i conftest.$ac_ext
3700 done
3701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3702 rm -f conftest.i conftest.err conftest.$ac_ext
3703 if $ac_preproc_ok; then :
3705 else
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3709 See \`config.log' for more details" "$LINENO" 5; }
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3720 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3721 if ${ac_cv_path_GREP+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test -z "$GREP"; then
3725 ac_path_GREP_found=false
3726 # Loop through the user's path and test for each of PROGNAME-LIST
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_prog in grep ggrep; do
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3735 as_fn_executable_p "$ac_path_GREP" || continue
3736 # Check for GNU ac_path_GREP and select it if it is found.
3737 # Check for GNU $ac_path_GREP
3738 case `"$ac_path_GREP" --version 2>&1` in
3739 *GNU*)
3740 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3742 ac_count=0
3743 $as_echo_n 0123456789 >"conftest.in"
3744 while :
3746 cat "conftest.in" "conftest.in" >"conftest.tmp"
3747 mv "conftest.tmp" "conftest.in"
3748 cp "conftest.in" "conftest.nl"
3749 $as_echo 'GREP' >> "conftest.nl"
3750 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3752 as_fn_arith $ac_count + 1 && ac_count=$as_val
3753 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3754 # Best one so far, save it but keep looking for a better one
3755 ac_cv_path_GREP="$ac_path_GREP"
3756 ac_path_GREP_max=$ac_count
3758 # 10*(2^10) chars as input seems more than enough
3759 test $ac_count -gt 10 && break
3760 done
3761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3762 esac
3764 $ac_path_GREP_found && break 3
3765 done
3766 done
3767 done
3768 IFS=$as_save_IFS
3769 if test -z "$ac_cv_path_GREP"; then
3770 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3772 else
3773 ac_cv_path_GREP=$GREP
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3778 $as_echo "$ac_cv_path_GREP" >&6; }
3779 GREP="$ac_cv_path_GREP"
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3783 $as_echo_n "checking for egrep... " >&6; }
3784 if ${ac_cv_path_EGREP+:} false; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3788 then ac_cv_path_EGREP="$GREP -E"
3789 else
3790 if test -z "$EGREP"; then
3791 ac_path_EGREP_found=false
3792 # Loop through the user's path and test for each of PROGNAME-LIST
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_prog in egrep; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3801 as_fn_executable_p "$ac_path_EGREP" || continue
3802 # Check for GNU ac_path_EGREP and select it if it is found.
3803 # Check for GNU $ac_path_EGREP
3804 case `"$ac_path_EGREP" --version 2>&1` in
3805 *GNU*)
3806 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3808 ac_count=0
3809 $as_echo_n 0123456789 >"conftest.in"
3810 while :
3812 cat "conftest.in" "conftest.in" >"conftest.tmp"
3813 mv "conftest.tmp" "conftest.in"
3814 cp "conftest.in" "conftest.nl"
3815 $as_echo 'EGREP' >> "conftest.nl"
3816 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3818 as_fn_arith $ac_count + 1 && ac_count=$as_val
3819 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3820 # Best one so far, save it but keep looking for a better one
3821 ac_cv_path_EGREP="$ac_path_EGREP"
3822 ac_path_EGREP_max=$ac_count
3824 # 10*(2^10) chars as input seems more than enough
3825 test $ac_count -gt 10 && break
3826 done
3827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3828 esac
3830 $ac_path_EGREP_found && break 3
3831 done
3832 done
3833 done
3834 IFS=$as_save_IFS
3835 if test -z "$ac_cv_path_EGREP"; then
3836 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3838 else
3839 ac_cv_path_EGREP=$EGREP
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3845 $as_echo "$ac_cv_path_EGREP" >&6; }
3846 EGREP="$ac_cv_path_EGREP"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3850 $as_echo_n "checking for ANSI C header files... " >&6; }
3851 if ${ac_cv_header_stdc+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <stdlib.h>
3857 #include <stdarg.h>
3858 #include <string.h>
3859 #include <float.h>
3862 main ()
3866 return 0;
3868 _ACEOF
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870 ac_cv_header_stdc=yes
3871 else
3872 ac_cv_header_stdc=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880 #include <string.h>
3882 _ACEOF
3883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884 $EGREP "memchr" >/dev/null 2>&1; then :
3886 else
3887 ac_cv_header_stdc=no
3889 rm -f conftest*
3893 if test $ac_cv_header_stdc = yes; then
3894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <stdlib.h>
3899 _ACEOF
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901 $EGREP "free" >/dev/null 2>&1; then :
3903 else
3904 ac_cv_header_stdc=no
3906 rm -f conftest*
3910 if test $ac_cv_header_stdc = yes; then
3911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3912 if test "$cross_compiling" = yes; then :
3914 else
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917 #include <ctype.h>
3918 #include <stdlib.h>
3919 #if ((' ' & 0x0FF) == 0x020)
3920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3922 #else
3923 # define ISLOWER(c) \
3924 (('a' <= (c) && (c) <= 'i') \
3925 || ('j' <= (c) && (c) <= 'r') \
3926 || ('s' <= (c) && (c) <= 'z'))
3927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3928 #endif
3930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3932 main ()
3934 int i;
3935 for (i = 0; i < 256; i++)
3936 if (XOR (islower (i), ISLOWER (i))
3937 || toupper (i) != TOUPPER (i))
3938 return 2;
3939 return 0;
3941 _ACEOF
3942 if ac_fn_c_try_run "$LINENO"; then :
3944 else
3945 ac_cv_header_stdc=no
3947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3948 conftest.$ac_objext conftest.beam conftest.$ac_ext
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3954 $as_echo "$ac_cv_header_stdc" >&6; }
3955 if test $ac_cv_header_stdc = yes; then
3957 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3962 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3963 inttypes.h stdint.h unistd.h
3964 do :
3965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3966 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3969 cat >>confdefs.h <<_ACEOF
3970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3971 _ACEOF
3975 done
3979 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3980 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3981 MINIX=yes
3982 else
3983 MINIX=
3987 if test "$MINIX" = yes; then
3989 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3992 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3995 $as_echo "#define _MINIX 1" >>confdefs.h
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4001 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4002 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4008 # define __EXTENSIONS__ 1
4009 $ac_includes_default
4011 main ()
4015 return 0;
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_safe_to_define___extensions__=yes
4020 else
4021 ac_cv_safe_to_define___extensions__=no
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4026 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4027 test $ac_cv_safe_to_define___extensions__ = yes &&
4028 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4030 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4032 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4034 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4036 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4040 libtool_VERSION=1:0:0
4043 # 1.11.1: Require that version of automake.
4044 # foreign: Don't require README, INSTALL, NEWS, etc.
4045 # no-define: Don't define PACKAGE and VERSION.
4046 # no-dependencies: Don't generate automatic dependencies.
4047 # (because it breaks when using bootstrap-lean, since some of the
4048 # headers are gone at "make install" time).
4049 # -Wall: Issue all automake warnings.
4050 # -Wno-portability: Don't warn about constructs supported by GNU make.
4051 # (because GCC requires GNU make anyhow).
4052 am__api_version='1.15'
4054 # Find a good install program. We prefer a C program (faster),
4055 # so one script is as good as another. But avoid the broken or
4056 # incompatible versions:
4057 # SysV /etc/install, /usr/sbin/install
4058 # SunOS /usr/etc/install
4059 # IRIX /sbin/install
4060 # AIX /bin/install
4061 # AmigaOS /C/install, which installs bootblocks on floppy discs
4062 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4063 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4064 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4065 # OS/2's system install, which has a completely different semantic
4066 # ./install, which can be erroneously created by make from ./install.sh.
4067 # Reject install programs that cannot install multiple files.
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4069 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4070 if test -z "$INSTALL"; then
4071 if ${ac_cv_path_install+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
4079 # Account for people who put trailing slashes in PATH elements.
4080 case $as_dir/ in #((
4081 ./ | .// | /[cC]/* | \
4082 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4083 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4084 /usr/ucb/* ) ;;
4086 # OSF1 and SCO ODT 3.0 have their own names for install.
4087 # Don't use installbsd from OSF since it installs stuff as root
4088 # by default.
4089 for ac_prog in ginstall scoinst install; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4092 if test $ac_prog = install &&
4093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4094 # AIX install. It has an incompatible calling convention.
4096 elif test $ac_prog = install &&
4097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4098 # program-specific install script used by HP pwplus--don't use.
4100 else
4101 rm -rf conftest.one conftest.two conftest.dir
4102 echo one > conftest.one
4103 echo two > conftest.two
4104 mkdir conftest.dir
4105 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4106 test -s conftest.one && test -s conftest.two &&
4107 test -s conftest.dir/conftest.one &&
4108 test -s conftest.dir/conftest.two
4109 then
4110 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4111 break 3
4115 done
4116 done
4118 esac
4120 done
4121 IFS=$as_save_IFS
4123 rm -rf conftest.one conftest.two conftest.dir
4126 if test "${ac_cv_path_install+set}" = set; then
4127 INSTALL=$ac_cv_path_install
4128 else
4129 # As a last resort, use the slow shell script. Don't cache a
4130 # value for INSTALL within a source directory, because that will
4131 # break other packages using the cache if that directory is
4132 # removed, or if the value is a relative name.
4133 INSTALL=$ac_install_sh
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4137 $as_echo "$INSTALL" >&6; }
4139 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4140 # It thinks the first close brace ends the variable substitution.
4141 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4143 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4145 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4148 $as_echo_n "checking whether build environment is sane... " >&6; }
4149 # Reject unsafe characters in $srcdir or the absolute working directory
4150 # name. Accept space and tab only in the latter.
4151 am_lf='
4153 case `pwd` in
4154 *[\\\"\#\$\&\'\`$am_lf]*)
4155 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4156 esac
4157 case $srcdir in
4158 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4159 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4160 esac
4162 # Do 'set' in a subshell so we don't clobber the current shell's
4163 # arguments. Must try -L first in case configure is actually a
4164 # symlink; some systems play weird games with the mod time of symlinks
4165 # (eg FreeBSD returns the mod time of the symlink's containing
4166 # directory).
4167 if (
4168 am_has_slept=no
4169 for am_try in 1 2; do
4170 echo "timestamp, slept: $am_has_slept" > conftest.file
4171 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4172 if test "$*" = "X"; then
4173 # -L didn't work.
4174 set X `ls -t "$srcdir/configure" conftest.file`
4176 if test "$*" != "X $srcdir/configure conftest.file" \
4177 && test "$*" != "X conftest.file $srcdir/configure"; then
4179 # If neither matched, then we have a broken ls. This can happen
4180 # if, for instance, CONFIG_SHELL is bash and it inherits a
4181 # broken ls alias from the environment. This has actually
4182 # happened. Such a system could not be considered "sane".
4183 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4184 alias in your environment" "$LINENO" 5
4186 if test "$2" = conftest.file || test $am_try -eq 2; then
4187 break
4189 # Just in case.
4190 sleep 1
4191 am_has_slept=yes
4192 done
4193 test "$2" = conftest.file
4195 then
4196 # Ok.
4198 else
4199 as_fn_error $? "newly created file is older than distributed files!
4200 Check your system clock" "$LINENO" 5
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4203 $as_echo "yes" >&6; }
4204 # If we didn't sleep, we still need to ensure time stamps of config.status and
4205 # generated files are strictly newer.
4206 am_sleep_pid=
4207 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4208 ( sleep 1 ) &
4209 am_sleep_pid=$!
4212 rm -f conftest.file
4214 test "$program_prefix" != NONE &&
4215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4216 # Use a double $ so make ignores it.
4217 test "$program_suffix" != NONE &&
4218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4219 # Double any \ or $.
4220 # By default was `s,x,x', remove it if useless.
4221 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4222 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4224 if test x"${MISSING+set}" != xset; then
4225 case $am_aux_dir in
4226 *\ * | *\ *)
4227 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4229 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4230 esac
4232 # Use eval to expand $SHELL
4233 if eval "$MISSING --is-lightweight"; then
4234 am_missing_run="$MISSING "
4235 else
4236 am_missing_run=
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4238 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4241 if test x"${install_sh+set}" != xset; then
4242 case $am_aux_dir in
4243 *\ * | *\ *)
4244 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4246 install_sh="\${SHELL} $am_aux_dir/install-sh"
4247 esac
4250 # Installed binaries are usually stripped using 'strip' when the user
4251 # run "make install-strip". However 'strip' might not be the right
4252 # tool to use in cross-compilation environments, therefore Automake
4253 # will honor the 'STRIP' environment variable to overrule this program.
4254 if test "$cross_compiling" != no; then
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}strip; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_STRIP+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$STRIP"; then
4264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4277 done
4278 done
4279 IFS=$as_save_IFS
4283 STRIP=$ac_cv_prog_STRIP
4284 if test -n "$STRIP"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4286 $as_echo "$STRIP" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4294 if test -z "$ac_cv_prog_STRIP"; then
4295 ac_ct_STRIP=$STRIP
4296 # Extract the first word of "strip", so it can be a program name with args.
4297 set dummy strip; ac_word=$2
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 $as_echo_n "checking for $ac_word... " >&6; }
4300 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if test -n "$ac_ct_STRIP"; then
4304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_ac_ct_STRIP="strip"
4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4317 done
4318 done
4319 IFS=$as_save_IFS
4323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4324 if test -n "$ac_ct_STRIP"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4326 $as_echo "$ac_ct_STRIP" >&6; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4332 if test "x$ac_ct_STRIP" = x; then
4333 STRIP=":"
4334 else
4335 case $cross_compiling:$ac_tool_warned in
4336 yes:)
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4339 ac_tool_warned=yes ;;
4340 esac
4341 STRIP=$ac_ct_STRIP
4343 else
4344 STRIP="$ac_cv_prog_STRIP"
4348 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4351 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4352 if test -z "$MKDIR_P"; then
4353 if ${ac_cv_path_mkdir+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_prog in mkdir gmkdir; do
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4364 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4365 'mkdir (GNU coreutils) '* | \
4366 'mkdir (coreutils) '* | \
4367 'mkdir (fileutils) '4.1*)
4368 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4369 break 3;;
4370 esac
4371 done
4372 done
4373 done
4374 IFS=$as_save_IFS
4378 test -d ./--version && rmdir ./--version
4379 if test "${ac_cv_path_mkdir+set}" = set; then
4380 MKDIR_P="$ac_cv_path_mkdir -p"
4381 else
4382 # As a last resort, use the slow shell script. Don't cache a
4383 # value for MKDIR_P within a source directory, because that will
4384 # break other packages using the cache if that directory is
4385 # removed, or if the value is a relative name.
4386 MKDIR_P="$ac_install_sh -d"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4390 $as_echo "$MKDIR_P" >&6; }
4392 for ac_prog in gawk mawk nawk awk
4394 # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_AWK+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$AWK"; then
4402 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_prog_AWK="$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4421 AWK=$ac_cv_prog_AWK
4422 if test -n "$AWK"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4424 $as_echo "$AWK" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$AWK" && break
4432 done
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4435 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4436 set x ${MAKE-make}
4437 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4438 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 cat >conftest.make <<\_ACEOF
4442 SHELL = /bin/sh
4443 all:
4444 @echo '@@@%%%=$(MAKE)=@@@%%%'
4445 _ACEOF
4446 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4447 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4448 *@@@%%%=?*=@@@%%%*)
4449 eval ac_cv_prog_make_${ac_make}_set=yes;;
4451 eval ac_cv_prog_make_${ac_make}_set=no;;
4452 esac
4453 rm -f conftest.make
4455 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4457 $as_echo "yes" >&6; }
4458 SET_MAKE=
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4462 SET_MAKE="MAKE=${MAKE-make}"
4465 rm -rf .tst 2>/dev/null
4466 mkdir .tst 2>/dev/null
4467 if test -d .tst; then
4468 am__leading_dot=.
4469 else
4470 am__leading_dot=_
4472 rmdir .tst 2>/dev/null
4474 # Check whether --enable-silent-rules was given.
4475 if test "${enable_silent_rules+set}" = set; then :
4476 enableval=$enable_silent_rules;
4479 case $enable_silent_rules in # (((
4480 yes) AM_DEFAULT_VERBOSITY=0;;
4481 no) AM_DEFAULT_VERBOSITY=1;;
4482 *) AM_DEFAULT_VERBOSITY=1;;
4483 esac
4484 am_make=${MAKE-make}
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4486 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4487 if ${am_cv_make_support_nested_variables+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if $as_echo 'TRUE=$(BAR$(V))
4491 BAR0=false
4492 BAR1=true
4494 am__doit:
4495 @$(TRUE)
4496 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4497 am_cv_make_support_nested_variables=yes
4498 else
4499 am_cv_make_support_nested_variables=no
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4503 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4504 if test $am_cv_make_support_nested_variables = yes; then
4505 AM_V='$(V)'
4506 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4507 else
4508 AM_V=$AM_DEFAULT_VERBOSITY
4509 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4511 AM_BACKSLASH='\'
4513 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4514 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4515 # is not polluted with repeated "-I."
4516 am__isrc=' -I$(srcdir)'
4517 # test to see if srcdir already configured
4518 if test -f $srcdir/config.status; then
4519 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4523 # test whether we have cygpath
4524 if test -z "$CYGPATH_W"; then
4525 if (cygpath --version) >/dev/null 2>/dev/null; then
4526 CYGPATH_W='cygpath -w'
4527 else
4528 CYGPATH_W=echo
4533 # Define the identity of the package.
4534 PACKAGE='libbacktrace'
4535 VERSION='version-unused'
4538 # Some tools Automake needs.
4540 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4543 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4546 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4549 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4552 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4554 # For better backward compatibility. To be removed once Automake 1.9.x
4555 # dies out for good. For more background, see:
4556 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4557 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4558 mkdir_p='$(MKDIR_P)'
4560 # We need awk for the "check" target (and possibly the TAP driver). The
4561 # system "awk" is bad on some platforms.
4562 # Always define AMTAR for backward compatibility. Yes, it's still used
4563 # in the wild :-( We should find a proper way to deprecate it ...
4564 AMTAR='$${TAR-tar}'
4567 # We'll loop over all known methods to create a tar archive until one works.
4568 _am_tools='gnutar pax cpio none'
4570 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4577 # POSIX will say in a future version that running "rm -f" with no argument
4578 # is OK; and we want to be able to make that assumption in our Makefile
4579 # recipes. So use an aggressive probe to check that the usage we want is
4580 # actually supported "in the wild" to an acceptable degree.
4581 # See automake bug#10828.
4582 # To make any issue more visible, cause the running configure to be aborted
4583 # by default if the 'rm' program in use doesn't match our expectations; the
4584 # user can still override this though.
4585 if rm -f && rm -fr && rm -rf; then : OK; else
4586 cat >&2 <<'END'
4587 Oops!
4589 Your 'rm' program seems unable to run without file operands specified
4590 on the command line, even when the '-f' option is present. This is contrary
4591 to the behaviour of most rm programs out there, and not conforming with
4592 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4594 Please tell bug-automake@gnu.org about your system, including the value
4595 of your $PATH and any error possibly output before this message. This
4596 can help us improve future automake versions.
4599 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4600 echo 'Configuration will proceed anyway, since you have set the' >&2
4601 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4602 echo >&2
4603 else
4604 cat >&2 <<'END'
4605 Aborting the configuration process, to ensure you take notice of the issue.
4607 You can download and install GNU coreutils to get an 'rm' implementation
4608 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4610 If you want to complete the configuration process using your problematic
4611 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4612 to "yes", and re-run configure.
4615 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4622 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4623 # Check whether --enable-maintainer-mode was given.
4624 if test "${enable_maintainer_mode+set}" = set; then :
4625 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4626 else
4627 USE_MAINTAINER_MODE=no
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4631 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4632 if test $USE_MAINTAINER_MODE = yes; then
4633 MAINTAINER_MODE_TRUE=
4634 MAINTAINER_MODE_FALSE='#'
4635 else
4636 MAINTAINER_MODE_TRUE='#'
4637 MAINTAINER_MODE_FALSE=
4640 MAINT=$MAINTAINER_MODE_TRUE
4645 # Check whether --with-target-subdir was given.
4646 if test "${with_target_subdir+set}" = set; then :
4647 withval=$with_target_subdir;
4651 # We must force CC to /not/ be precious variables; otherwise
4652 # the wrong, non-multilib-adjusted value will be used in multilibs.
4653 # As a side effect, we have to subst CFLAGS ourselves.
4656 ac_ext=c
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661 if test -n "$ac_tool_prefix"; then
4662 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4663 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if ${ac_cv_prog_CC+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if test -n "$CC"; then
4670 ac_cv_prog_CC="$CC" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4683 done
4684 done
4685 IFS=$as_save_IFS
4689 CC=$ac_cv_prog_CC
4690 if test -n "$CC"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4692 $as_echo "$CC" >&6; }
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4700 if test -z "$ac_cv_prog_CC"; then
4701 ac_ct_CC=$CC
4702 # Extract the first word of "gcc", so it can be a program name with args.
4703 set dummy gcc; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 if test -n "$ac_ct_CC"; then
4710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_prog_ac_ct_CC="gcc"
4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
4723 done
4724 done
4725 IFS=$as_save_IFS
4729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4730 if test -n "$ac_ct_CC"; then
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4732 $as_echo "$ac_ct_CC" >&6; }
4733 else
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4738 if test "x$ac_ct_CC" = x; then
4739 CC=""
4740 else
4741 case $cross_compiling:$ac_tool_warned in
4742 yes:)
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4745 ac_tool_warned=yes ;;
4746 esac
4747 CC=$ac_ct_CC
4749 else
4750 CC="$ac_cv_prog_CC"
4753 if test -z "$CC"; then
4754 if test -n "$ac_tool_prefix"; then
4755 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4756 set dummy ${ac_tool_prefix}cc; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if ${ac_cv_prog_CC+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 if test -n "$CC"; then
4763 ac_cv_prog_CC="$CC" # Let the user override the test.
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772 ac_cv_prog_CC="${ac_tool_prefix}cc"
4773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 break 2
4776 done
4777 done
4778 IFS=$as_save_IFS
4782 CC=$ac_cv_prog_CC
4783 if test -n "$CC"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4785 $as_echo "$CC" >&6; }
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4794 if test -z "$CC"; then
4795 # Extract the first word of "cc", so it can be a program name with args.
4796 set dummy cc; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_prog_CC+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -n "$CC"; then
4803 ac_cv_prog_CC="$CC" # Let the user override the test.
4804 else
4805 ac_prog_rejected=no
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4814 ac_prog_rejected=yes
4815 continue
4817 ac_cv_prog_CC="cc"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4821 done
4822 done
4823 IFS=$as_save_IFS
4825 if test $ac_prog_rejected = yes; then
4826 # We found a bogon in the path, so make sure we never use it.
4827 set dummy $ac_cv_prog_CC
4828 shift
4829 if test $# != 0; then
4830 # We chose a different compiler from the bogus one.
4831 # However, it has the same basename, so the bogon will be chosen
4832 # first if we set CC to just the basename; use the full file name.
4833 shift
4834 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4839 CC=$ac_cv_prog_CC
4840 if test -n "$CC"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4842 $as_echo "$CC" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4850 if test -z "$CC"; then
4851 if test -n "$ac_tool_prefix"; then
4852 for ac_prog in cl.exe
4854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4855 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_CC+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$CC"; then
4862 ac_cv_prog_CC="$CC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4875 done
4876 done
4877 IFS=$as_save_IFS
4881 CC=$ac_cv_prog_CC
4882 if test -n "$CC"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4884 $as_echo "$CC" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4891 test -n "$CC" && break
4892 done
4894 if test -z "$CC"; then
4895 ac_ct_CC=$CC
4896 for ac_prog in cl.exe
4898 # Extract the first word of "$ac_prog", so it can be a program name with args.
4899 set dummy $ac_prog; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 if test -n "$ac_ct_CC"; then
4906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_ac_ct_CC="$ac_prog"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4919 done
4920 done
4921 IFS=$as_save_IFS
4925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4926 if test -n "$ac_ct_CC"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4928 $as_echo "$ac_ct_CC" >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4935 test -n "$ac_ct_CC" && break
4936 done
4938 if test "x$ac_ct_CC" = x; then
4939 CC=""
4940 else
4941 case $cross_compiling:$ac_tool_warned in
4942 yes:)
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945 ac_tool_warned=yes ;;
4946 esac
4947 CC=$ac_ct_CC
4954 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4956 as_fn_error $? "no acceptable C compiler found in \$PATH
4957 See \`config.log' for more details" "$LINENO" 5; }
4959 # Provide some information about the compiler.
4960 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4961 set X $ac_compile
4962 ac_compiler=$2
4963 for ac_option in --version -v -V -qversion; do
4964 { { ac_try="$ac_compiler $ac_option >&5"
4965 case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4968 esac
4969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4970 $as_echo "$ac_try_echo"; } >&5
4971 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4972 ac_status=$?
4973 if test -s conftest.err; then
4974 sed '10a\
4975 ... rest of stderr output deleted ...
4976 10q' conftest.err >conftest.er1
4977 cat conftest.er1 >&5
4979 rm -f conftest.er1 conftest.err
4980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4981 test $ac_status = 0; }
4982 done
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4985 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4986 if ${ac_cv_c_compiler_gnu+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4993 main ()
4995 #ifndef __GNUC__
4996 choke me
4997 #endif
5000 return 0;
5002 _ACEOF
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004 ac_compiler_gnu=yes
5005 else
5006 ac_compiler_gnu=no
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5013 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5014 if test $ac_compiler_gnu = yes; then
5015 GCC=yes
5016 else
5017 GCC=
5019 ac_test_CFLAGS=${CFLAGS+set}
5020 ac_save_CFLAGS=$CFLAGS
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5022 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5023 if ${ac_cv_prog_cc_g+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 ac_save_c_werror_flag=$ac_c_werror_flag
5027 ac_c_werror_flag=yes
5028 ac_cv_prog_cc_g=no
5029 CFLAGS="-g"
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5034 main ()
5038 return 0;
5040 _ACEOF
5041 if ac_fn_c_try_compile "$LINENO"; then :
5042 ac_cv_prog_cc_g=yes
5043 else
5044 CFLAGS=""
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5049 main ()
5053 return 0;
5055 _ACEOF
5056 if ac_fn_c_try_compile "$LINENO"; then :
5058 else
5059 ac_c_werror_flag=$ac_save_c_werror_flag
5060 CFLAGS="-g"
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5065 main ()
5069 return 0;
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 ac_cv_prog_cc_g=yes
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080 ac_c_werror_flag=$ac_save_c_werror_flag
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5083 $as_echo "$ac_cv_prog_cc_g" >&6; }
5084 if test "$ac_test_CFLAGS" = set; then
5085 CFLAGS=$ac_save_CFLAGS
5086 elif test $ac_cv_prog_cc_g = yes; then
5087 if test "$GCC" = yes; then
5088 CFLAGS="-g -O2"
5089 else
5090 CFLAGS="-g"
5092 else
5093 if test "$GCC" = yes; then
5094 CFLAGS="-O2"
5095 else
5096 CFLAGS=
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5100 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5101 if ${ac_cv_prog_cc_c89+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 ac_cv_prog_cc_c89=no
5105 ac_save_CC=$CC
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #include <stdarg.h>
5109 #include <stdio.h>
5110 struct stat;
5111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5112 struct buf { int x; };
5113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5114 static char *e (p, i)
5115 char **p;
5116 int i;
5118 return p[i];
5120 static char *f (char * (*g) (char **, int), char **p, ...)
5122 char *s;
5123 va_list v;
5124 va_start (v,p);
5125 s = g (p, va_arg (v,int));
5126 va_end (v);
5127 return s;
5130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5131 function prototypes and stuff, but not '\xHH' hex character constants.
5132 These don't provoke an error unfortunately, instead are silently treated
5133 as 'x'. The following induces an error, until -std is added to get
5134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5135 array size at least. It's necessary to write '\x00'==0 to get something
5136 that's true only with -std. */
5137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5139 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5140 inside strings and character constants. */
5141 #define FOO(x) 'x'
5142 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5144 int test (int i, double x);
5145 struct s1 {int (*f) (int a);};
5146 struct s2 {int (*f) (double a);};
5147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5148 int argc;
5149 char **argv;
5151 main ()
5153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5155 return 0;
5157 _ACEOF
5158 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5159 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5161 CC="$ac_save_CC $ac_arg"
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163 ac_cv_prog_cc_c89=$ac_arg
5165 rm -f core conftest.err conftest.$ac_objext
5166 test "x$ac_cv_prog_cc_c89" != "xno" && break
5167 done
5168 rm -f conftest.$ac_ext
5169 CC=$ac_save_CC
5172 # AC_CACHE_VAL
5173 case "x$ac_cv_prog_cc_c89" in
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5176 $as_echo "none needed" >&6; } ;;
5177 xno)
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5179 $as_echo "unsupported" >&6; } ;;
5181 CC="$CC $ac_cv_prog_cc_c89"
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5183 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5184 esac
5185 if test "x$ac_cv_prog_cc_c89" != xno; then :
5189 ac_ext=c
5190 ac_cpp='$CPP $CPPFLAGS'
5191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 ac_ext=c
5196 ac_cpp='$CPP $CPPFLAGS'
5197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5201 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5202 if ${am_cv_prog_cc_c_o+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5209 main ()
5213 return 0;
5215 _ACEOF
5216 # Make sure it works both with $CC and with simple cc.
5217 # Following AC_PROG_CC_C_O, we do the test twice because some
5218 # compilers refuse to overwrite an existing .o file with -o,
5219 # though they will create one.
5220 am_cv_prog_cc_c_o=yes
5221 for am_i in 1 2; do
5222 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5223 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } \
5227 && test -f conftest2.$ac_objext; then
5228 : OK
5229 else
5230 am_cv_prog_cc_c_o=no
5231 break
5233 done
5234 rm -f core conftest*
5235 unset am_i
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5238 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5239 if test "$am_cv_prog_cc_c_o" != yes; then
5240 # Losing compiler, so override with the script.
5241 # FIXME: It is wrong to rewrite CC.
5242 # But if we don't then we get into trouble of one sort or another.
5243 # A longer-term fix would be to have automake use am__CC in this case,
5244 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5245 CC="$am_aux_dir/compile $CC"
5247 ac_ext=c
5248 ac_cpp='$CPP $CPPFLAGS'
5249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 if test -n "$ac_tool_prefix"; then
5259 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5260 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_prog_RANLIB+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if test -n "$RANLIB"; then
5267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5280 done
5281 done
5282 IFS=$as_save_IFS
5286 RANLIB=$ac_cv_prog_RANLIB
5287 if test -n "$RANLIB"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5289 $as_echo "$RANLIB" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5297 if test -z "$ac_cv_prog_RANLIB"; then
5298 ac_ct_RANLIB=$RANLIB
5299 # Extract the first word of "ranlib", so it can be a program name with args.
5300 set dummy ranlib; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$ac_ct_RANLIB"; then
5307 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_ac_ct_RANLIB="ranlib"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5322 IFS=$as_save_IFS
5326 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5327 if test -n "$ac_ct_RANLIB"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5329 $as_echo "$ac_ct_RANLIB" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5335 if test "x$ac_ct_RANLIB" = x; then
5336 RANLIB=":"
5337 else
5338 case $cross_compiling:$ac_tool_warned in
5339 yes:)
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342 ac_tool_warned=yes ;;
5343 esac
5344 RANLIB=$ac_ct_RANLIB
5346 else
5347 RANLIB="$ac_cv_prog_RANLIB"
5351 for ac_prog in gawk mawk nawk awk
5353 # Extract the first word of "$ac_prog", so it can be a program name with args.
5354 set dummy $ac_prog; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_AWK+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -n "$AWK"; then
5361 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_AWK="$ac_prog"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5374 done
5375 done
5376 IFS=$as_save_IFS
5380 AWK=$ac_cv_prog_AWK
5381 if test -n "$AWK"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5383 $as_echo "$AWK" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5390 test -n "$AWK" && break
5391 done
5393 case "$AWK" in
5394 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5395 esac
5397 # Extract the first word of "dwz", so it can be a program name with args.
5398 set dummy dwz; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_DWZ+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$DWZ"; then
5405 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_DWZ="dwz"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5420 IFS=$as_save_IFS
5424 DWZ=$ac_cv_prog_DWZ
5425 if test -n "$DWZ"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5427 $as_echo "$DWZ" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5434 if test "$DWZ" != ""; then
5435 HAVE_DWZ_TRUE=
5436 HAVE_DWZ_FALSE='#'
5437 else
5438 HAVE_DWZ_TRUE='#'
5439 HAVE_DWZ_FALSE=
5443 case `pwd` in
5444 *\ * | *\ *)
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5446 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5447 esac
5451 macro_version='2.2.7a'
5452 macro_revision='1.3134'
5466 ltmain="$ac_aux_dir/ltmain.sh"
5468 # Backslashify metacharacters that are still active within
5469 # double-quoted strings.
5470 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5472 # Same as above, but do not quote variable references.
5473 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5475 # Sed substitution to delay expansion of an escaped shell variable in a
5476 # double_quote_subst'ed string.
5477 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5479 # Sed substitution to delay expansion of an escaped single quote.
5480 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5482 # Sed substitution to avoid accidental globbing in evaled expressions
5483 no_glob_subst='s/\*/\\\*/g'
5485 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5486 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5487 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5490 $as_echo_n "checking how to print strings... " >&6; }
5491 # Test print first, because it will be a builtin if present.
5492 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5493 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5494 ECHO='print -r --'
5495 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5496 ECHO='printf %s\n'
5497 else
5498 # Use this function as a fallback that always works.
5499 func_fallback_echo ()
5501 eval 'cat <<_LTECHO_EOF
5503 _LTECHO_EOF'
5505 ECHO='func_fallback_echo'
5508 # func_echo_all arg...
5509 # Invoke $ECHO with all args, space-separated.
5510 func_echo_all ()
5512 $ECHO ""
5515 case "$ECHO" in
5516 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5517 $as_echo "printf" >&6; } ;;
5518 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5519 $as_echo "print -r" >&6; } ;;
5520 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5521 $as_echo "cat" >&6; } ;;
5522 esac
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5538 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5539 if ${ac_cv_path_SED+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5543 for ac_i in 1 2 3 4 5 6 7; do
5544 ac_script="$ac_script$as_nl$ac_script"
5545 done
5546 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5547 { ac_script=; unset ac_script;}
5548 if test -z "$SED"; then
5549 ac_path_SED_found=false
5550 # Loop through the user's path and test for each of PROGNAME-LIST
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_prog in sed gsed; do
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5559 as_fn_executable_p "$ac_path_SED" || continue
5560 # Check for GNU ac_path_SED and select it if it is found.
5561 # Check for GNU $ac_path_SED
5562 case `"$ac_path_SED" --version 2>&1` in
5563 *GNU*)
5564 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5566 ac_count=0
5567 $as_echo_n 0123456789 >"conftest.in"
5568 while :
5570 cat "conftest.in" "conftest.in" >"conftest.tmp"
5571 mv "conftest.tmp" "conftest.in"
5572 cp "conftest.in" "conftest.nl"
5573 $as_echo '' >> "conftest.nl"
5574 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5576 as_fn_arith $ac_count + 1 && ac_count=$as_val
5577 if test $ac_count -gt ${ac_path_SED_max-0}; then
5578 # Best one so far, save it but keep looking for a better one
5579 ac_cv_path_SED="$ac_path_SED"
5580 ac_path_SED_max=$ac_count
5582 # 10*(2^10) chars as input seems more than enough
5583 test $ac_count -gt 10 && break
5584 done
5585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5586 esac
5588 $ac_path_SED_found && break 3
5589 done
5590 done
5591 done
5592 IFS=$as_save_IFS
5593 if test -z "$ac_cv_path_SED"; then
5594 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5596 else
5597 ac_cv_path_SED=$SED
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5602 $as_echo "$ac_cv_path_SED" >&6; }
5603 SED="$ac_cv_path_SED"
5604 rm -f conftest.sed
5606 test -z "$SED" && SED=sed
5607 Xsed="$SED -e 1s/^X//"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5620 $as_echo_n "checking for fgrep... " >&6; }
5621 if ${ac_cv_path_FGREP+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5625 then ac_cv_path_FGREP="$GREP -F"
5626 else
5627 if test -z "$FGREP"; then
5628 ac_path_FGREP_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_prog in fgrep; do
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5638 as_fn_executable_p "$ac_path_FGREP" || continue
5639 # Check for GNU ac_path_FGREP and select it if it is found.
5640 # Check for GNU $ac_path_FGREP
5641 case `"$ac_path_FGREP" --version 2>&1` in
5642 *GNU*)
5643 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5645 ac_count=0
5646 $as_echo_n 0123456789 >"conftest.in"
5647 while :
5649 cat "conftest.in" "conftest.in" >"conftest.tmp"
5650 mv "conftest.tmp" "conftest.in"
5651 cp "conftest.in" "conftest.nl"
5652 $as_echo 'FGREP' >> "conftest.nl"
5653 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655 as_fn_arith $ac_count + 1 && ac_count=$as_val
5656 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5657 # Best one so far, save it but keep looking for a better one
5658 ac_cv_path_FGREP="$ac_path_FGREP"
5659 ac_path_FGREP_max=$ac_count
5661 # 10*(2^10) chars as input seems more than enough
5662 test $ac_count -gt 10 && break
5663 done
5664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665 esac
5667 $ac_path_FGREP_found && break 3
5668 done
5669 done
5670 done
5671 IFS=$as_save_IFS
5672 if test -z "$ac_cv_path_FGREP"; then
5673 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5675 else
5676 ac_cv_path_FGREP=$FGREP
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5682 $as_echo "$ac_cv_path_FGREP" >&6; }
5683 FGREP="$ac_cv_path_FGREP"
5686 test -z "$GREP" && GREP=grep
5706 # Check whether --with-gnu-ld was given.
5707 if test "${with_gnu_ld+set}" = set; then :
5708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5709 else
5710 with_gnu_ld=no
5713 ac_prog=ld
5714 if test "$GCC" = yes; then
5715 # Check if gcc -print-prog-name=ld gives a path.
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5717 $as_echo_n "checking for ld used by $CC... " >&6; }
5718 case $host in
5719 *-*-mingw*)
5720 # gcc leaves a trailing carriage return which upsets mingw
5721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5724 esac
5725 case $ac_prog in
5726 # Accept absolute paths.
5727 [\\/]* | ?:[\\/]*)
5728 re_direlt='/[^/][^/]*/\.\./'
5729 # Canonicalize the pathname of ld
5730 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5731 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5732 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5733 done
5734 test -z "$LD" && LD="$ac_prog"
5737 # If it fails, then pretend we aren't using GCC.
5738 ac_prog=ld
5741 # If it is relative, then search for the first ld in PATH.
5742 with_gnu_ld=unknown
5744 esac
5745 elif test "$with_gnu_ld" = yes; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5747 $as_echo_n "checking for GNU ld... " >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5750 $as_echo_n "checking for non-GNU ld... " >&6; }
5752 if ${lt_cv_path_LD+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 if test -z "$LD"; then
5756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757 for ac_dir in $PATH; do
5758 IFS="$lt_save_ifs"
5759 test -z "$ac_dir" && ac_dir=.
5760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5761 lt_cv_path_LD="$ac_dir/$ac_prog"
5762 # Check to see if the program is GNU ld. I'd rather use --version,
5763 # but apparently some variants of GNU ld only accept -v.
5764 # Break only if it was the GNU/non-GNU ld that we prefer.
5765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5766 *GNU* | *'with BFD'*)
5767 test "$with_gnu_ld" != no && break
5770 test "$with_gnu_ld" != yes && break
5772 esac
5774 done
5775 IFS="$lt_save_ifs"
5776 else
5777 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5781 LD="$lt_cv_path_LD"
5782 if test -n "$LD"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5784 $as_echo "$LD" >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5789 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5791 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5792 if ${lt_cv_prog_gnu_ld+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5796 case `$LD -v 2>&1 </dev/null` in
5797 *GNU* | *'with BFD'*)
5798 lt_cv_prog_gnu_ld=yes
5801 lt_cv_prog_gnu_ld=no
5803 esac
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5806 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5807 with_gnu_ld=$lt_cv_prog_gnu_ld
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5818 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5819 if ${lt_cv_path_NM+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$NM"; then
5823 # Let the user override the test.
5824 lt_cv_path_NM="$NM"
5825 else
5826 lt_nm_to_check="${ac_tool_prefix}nm"
5827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828 lt_nm_to_check="$lt_nm_to_check nm"
5830 for lt_tmp_nm in $lt_nm_to_check; do
5831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5833 IFS="$lt_save_ifs"
5834 test -z "$ac_dir" && ac_dir=.
5835 tmp_nm="$ac_dir/$lt_tmp_nm"
5836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837 # Check to see if the nm accepts a BSD-compat flag.
5838 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839 # nm: unknown option "B" ignored
5840 # Tru64's nm complains that /dev/null is an invalid object file
5841 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842 */dev/null* | *'Invalid file or object type'*)
5843 lt_cv_path_NM="$tmp_nm -B"
5844 break
5847 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5848 */dev/null*)
5849 lt_cv_path_NM="$tmp_nm -p"
5850 break
5853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854 continue # so that we can try to find one that supports BSD flags
5856 esac
5858 esac
5860 done
5861 IFS="$lt_save_ifs"
5862 done
5863 : ${lt_cv_path_NM=no}
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5867 $as_echo "$lt_cv_path_NM" >&6; }
5868 if test "$lt_cv_path_NM" != "no"; then
5869 NM="$lt_cv_path_NM"
5870 else
5871 # Didn't find any BSD compatible name lister, look for dumpbin.
5872 if test -n "$DUMPBIN"; then :
5873 # Let the user override the test.
5874 else
5875 if test -n "$ac_tool_prefix"; then
5876 for ac_prog in dumpbin "link -dump"
5878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_DUMPBIN+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test -n "$DUMPBIN"; then
5886 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5899 done
5900 done
5901 IFS=$as_save_IFS
5905 DUMPBIN=$ac_cv_prog_DUMPBIN
5906 if test -n "$DUMPBIN"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5908 $as_echo "$DUMPBIN" >&6; }
5909 else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5915 test -n "$DUMPBIN" && break
5916 done
5918 if test -z "$DUMPBIN"; then
5919 ac_ct_DUMPBIN=$DUMPBIN
5920 for ac_prog in dumpbin "link -dump"
5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
5923 set dummy $ac_prog; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 if test -n "$ac_ct_DUMPBIN"; then
5930 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5943 done
5944 done
5945 IFS=$as_save_IFS
5949 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5950 if test -n "$ac_ct_DUMPBIN"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5952 $as_echo "$ac_ct_DUMPBIN" >&6; }
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5959 test -n "$ac_ct_DUMPBIN" && break
5960 done
5962 if test "x$ac_ct_DUMPBIN" = x; then
5963 DUMPBIN=":"
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966 yes:)
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969 ac_tool_warned=yes ;;
5970 esac
5971 DUMPBIN=$ac_ct_DUMPBIN
5975 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5976 *COFF*)
5977 DUMPBIN="$DUMPBIN -symbols"
5980 DUMPBIN=:
5982 esac
5985 if test "$DUMPBIN" != ":"; then
5986 NM="$DUMPBIN"
5989 test -z "$NM" && NM=nm
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5997 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5998 if ${lt_cv_nm_interface+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 lt_cv_nm_interface="BSD nm"
6002 echo "int some_variable = 0;" > conftest.$ac_ext
6003 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6004 (eval "$ac_compile" 2>conftest.err)
6005 cat conftest.err >&5
6006 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6007 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6008 cat conftest.err >&5
6009 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6010 cat conftest.out >&5
6011 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6012 lt_cv_nm_interface="MS dumpbin"
6014 rm -f conftest*
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6017 $as_echo "$lt_cv_nm_interface" >&6; }
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6020 $as_echo_n "checking whether ln -s works... " >&6; }
6021 LN_S=$as_ln_s
6022 if test "$LN_S" = "ln -s"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6024 $as_echo "yes" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6027 $as_echo "no, using $LN_S" >&6; }
6030 # find the maximum length of command line arguments
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6032 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6033 if ${lt_cv_sys_max_cmd_len+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6037 teststring="ABCD"
6039 case $build_os in
6040 msdosdjgpp*)
6041 # On DJGPP, this test can blow up pretty badly due to problems in libc
6042 # (any single argument exceeding 2000 bytes causes a buffer overrun
6043 # during glob expansion). Even if it were fixed, the result of this
6044 # check would be larger than it should be.
6045 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6048 gnu*)
6049 # Under GNU Hurd, this test is not required because there is
6050 # no limit to the length of command line arguments.
6051 # Libtool will interpret -1 as no limit whatsoever
6052 lt_cv_sys_max_cmd_len=-1;
6055 cygwin* | mingw* | cegcc*)
6056 # On Win9x/ME, this test blows up -- it succeeds, but takes
6057 # about 5 minutes as the teststring grows exponentially.
6058 # Worse, since 9x/ME are not pre-emptively multitasking,
6059 # you end up with a "frozen" computer, even though with patience
6060 # the test eventually succeeds (with a max line length of 256k).
6061 # Instead, let's just punt: use the minimum linelength reported by
6062 # all of the supported platforms: 8192 (on NT/2K/XP).
6063 lt_cv_sys_max_cmd_len=8192;
6066 mint*)
6067 # On MiNT this can take a long time and run out of memory.
6068 lt_cv_sys_max_cmd_len=8192;
6071 amigaos*)
6072 # On AmigaOS with pdksh, this test takes hours, literally.
6073 # So we just punt and use a minimum line length of 8192.
6074 lt_cv_sys_max_cmd_len=8192;
6077 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6078 # This has been around since 386BSD, at least. Likely further.
6079 if test -x /sbin/sysctl; then
6080 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6081 elif test -x /usr/sbin/sysctl; then
6082 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6083 else
6084 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6086 # And add a safety zone
6087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6091 interix*)
6092 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6093 lt_cv_sys_max_cmd_len=196608
6096 osf*)
6097 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6098 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6099 # nice to cause kernel panics so lets avoid the loop below.
6100 # First set a reasonable default.
6101 lt_cv_sys_max_cmd_len=16384
6103 if test -x /sbin/sysconfig; then
6104 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6105 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6106 esac
6109 sco3.2v5*)
6110 lt_cv_sys_max_cmd_len=102400
6112 sysv5* | sco5v6* | sysv4.2uw2*)
6113 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6114 if test -n "$kargmax"; then
6115 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6116 else
6117 lt_cv_sys_max_cmd_len=32768
6121 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6122 if test -n "$lt_cv_sys_max_cmd_len"; then
6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6125 else
6126 # Make teststring a little bigger before we do anything with it.
6127 # a 1K string should be a reasonable start.
6128 for i in 1 2 3 4 5 6 7 8 ; do
6129 teststring=$teststring$teststring
6130 done
6131 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6132 # If test is not a shell built-in, we'll probably end up computing a
6133 # maximum length that is only half of the actual maximum length, but
6134 # we can't tell.
6135 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6136 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6137 test $i != 17 # 1/2 MB should be enough
6139 i=`expr $i + 1`
6140 teststring=$teststring$teststring
6141 done
6142 # Only check the string length outside the loop.
6143 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6144 teststring=
6145 # Add a significant safety factor because C++ compilers can tack on
6146 # massive amounts of additional arguments before passing them to the
6147 # linker. It appears as though 1/2 is a usable value.
6148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6151 esac
6155 if test -n $lt_cv_sys_max_cmd_len ; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6157 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6160 $as_echo "none" >&6; }
6162 max_cmd_len=$lt_cv_sys_max_cmd_len
6169 : ${CP="cp -f"}
6170 : ${MV="mv -f"}
6171 : ${RM="rm -f"}
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6174 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6175 # Try some XSI features
6176 xsi_shell=no
6177 ( _lt_dummy="a/b/c"
6178 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6179 = c,a/b,, \
6180 && eval 'test $(( 1 + 1 )) -eq 2 \
6181 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6182 && xsi_shell=yes
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6184 $as_echo "$xsi_shell" >&6; }
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6188 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6189 lt_shell_append=no
6190 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6191 >/dev/null 2>&1 \
6192 && lt_shell_append=yes
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6194 $as_echo "$lt_shell_append" >&6; }
6197 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6198 lt_unset=unset
6199 else
6200 lt_unset=false
6207 # test EBCDIC or ASCII
6208 case `echo X|tr X '\101'` in
6209 A) # ASCII based system
6210 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6211 lt_SP2NL='tr \040 \012'
6212 lt_NL2SP='tr \015\012 \040\040'
6214 *) # EBCDIC based system
6215 lt_SP2NL='tr \100 \n'
6216 lt_NL2SP='tr \r\n \100\100'
6218 esac
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6229 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6230 if ${lt_cv_ld_reload_flag+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 lt_cv_ld_reload_flag='-r'
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6236 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6237 reload_flag=$lt_cv_ld_reload_flag
6238 case $reload_flag in
6239 "" | " "*) ;;
6240 *) reload_flag=" $reload_flag" ;;
6241 esac
6242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6243 case $host_os in
6244 darwin*)
6245 if test "$GCC" = yes; then
6246 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6247 else
6248 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6251 esac
6261 if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6263 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_OBJDUMP+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if test -n "$OBJDUMP"; then
6270 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6279 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6283 done
6284 done
6285 IFS=$as_save_IFS
6289 OBJDUMP=$ac_cv_prog_OBJDUMP
6290 if test -n "$OBJDUMP"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6292 $as_echo "$OBJDUMP" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6300 if test -z "$ac_cv_prog_OBJDUMP"; then
6301 ac_ct_OBJDUMP=$OBJDUMP
6302 # Extract the first word of "objdump", so it can be a program name with args.
6303 set dummy objdump; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$ac_ct_OBJDUMP"; then
6310 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6323 done
6324 done
6325 IFS=$as_save_IFS
6329 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6330 if test -n "$ac_ct_OBJDUMP"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6332 $as_echo "$ac_ct_OBJDUMP" >&6; }
6333 else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6338 if test "x$ac_ct_OBJDUMP" = x; then
6339 OBJDUMP="false"
6340 else
6341 case $cross_compiling:$ac_tool_warned in
6342 yes:)
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345 ac_tool_warned=yes ;;
6346 esac
6347 OBJDUMP=$ac_ct_OBJDUMP
6349 else
6350 OBJDUMP="$ac_cv_prog_OBJDUMP"
6353 test -z "$OBJDUMP" && OBJDUMP=objdump
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6364 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6365 if ${lt_cv_deplibs_check_method+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 lt_cv_file_magic_cmd='$MAGIC_CMD'
6369 lt_cv_file_magic_test_file=
6370 lt_cv_deplibs_check_method='unknown'
6371 # Need to set the preceding variable on all platforms that support
6372 # interlibrary dependencies.
6373 # 'none' -- dependencies not supported.
6374 # `unknown' -- same as none, but documents that we really don't know.
6375 # 'pass_all' -- all dependencies passed with no checks.
6376 # 'test_compile' -- check by making test program.
6377 # 'file_magic [[regex]]' -- check by looking for files in library path
6378 # which responds to the $file_magic_cmd with a given extended regex.
6379 # If you have `file' or equivalent on your system and you're not sure
6380 # whether `pass_all' will *always* work, you probably want this one.
6382 case $host_os in
6383 aix[4-9]*)
6384 lt_cv_deplibs_check_method=pass_all
6387 beos*)
6388 lt_cv_deplibs_check_method=pass_all
6391 bsdi[45]*)
6392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6393 lt_cv_file_magic_cmd='/usr/bin/file -L'
6394 lt_cv_file_magic_test_file=/shlib/libc.so
6397 cygwin*)
6398 # func_win32_libid is a shell function defined in ltmain.sh
6399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400 lt_cv_file_magic_cmd='func_win32_libid'
6403 mingw* | pw32*)
6404 # Base MSYS/MinGW do not provide the 'file' command needed by
6405 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6406 # unless we find 'file', for example because we are cross-compiling.
6407 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6408 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6410 lt_cv_file_magic_cmd='func_win32_libid'
6411 else
6412 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6413 lt_cv_file_magic_cmd='$OBJDUMP -f'
6417 cegcc*)
6418 # use the weaker test based on 'objdump'. See mingw*.
6419 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6420 lt_cv_file_magic_cmd='$OBJDUMP -f'
6423 darwin* | rhapsody*)
6424 lt_cv_deplibs_check_method=pass_all
6427 freebsd* | dragonfly*)
6428 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6429 case $host_cpu in
6430 i*86 )
6431 # Not sure whether the presence of OpenBSD here was a mistake.
6432 # Let's accept both of them until this is cleared up.
6433 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6434 lt_cv_file_magic_cmd=/usr/bin/file
6435 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6437 esac
6438 else
6439 lt_cv_deplibs_check_method=pass_all
6443 gnu*)
6444 lt_cv_deplibs_check_method=pass_all
6447 haiku*)
6448 lt_cv_deplibs_check_method=pass_all
6451 hpux10.20* | hpux11*)
6452 lt_cv_file_magic_cmd=/usr/bin/file
6453 case $host_cpu in
6454 ia64*)
6455 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6456 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6458 hppa*64*)
6459 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]'
6460 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6463 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6464 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6466 esac
6469 interix[3-9]*)
6470 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6474 irix5* | irix6* | nonstopux*)
6475 case $LD in
6476 *-32|*"-32 ") libmagic=32-bit;;
6477 *-n32|*"-n32 ") libmagic=N32;;
6478 *-64|*"-64 ") libmagic=64-bit;;
6479 *) libmagic=never-match;;
6480 esac
6481 lt_cv_deplibs_check_method=pass_all
6484 # This must be Linux ELF.
6485 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6486 lt_cv_deplibs_check_method=pass_all
6489 netbsd*)
6490 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492 else
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6497 newos6*)
6498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6499 lt_cv_file_magic_cmd=/usr/bin/file
6500 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6503 *nto* | *qnx*)
6504 lt_cv_deplibs_check_method=pass_all
6507 openbsd*)
6508 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6510 else
6511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6515 osf3* | osf4* | osf5*)
6516 lt_cv_deplibs_check_method=pass_all
6519 rdos*)
6520 lt_cv_deplibs_check_method=pass_all
6523 solaris*)
6524 lt_cv_deplibs_check_method=pass_all
6527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6528 lt_cv_deplibs_check_method=pass_all
6531 sysv4 | sysv4.3*)
6532 case $host_vendor in
6533 motorola)
6534 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]'
6535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6537 ncr)
6538 lt_cv_deplibs_check_method=pass_all
6540 sequent)
6541 lt_cv_file_magic_cmd='/bin/file'
6542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6544 sni)
6545 lt_cv_file_magic_cmd='/bin/file'
6546 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6547 lt_cv_file_magic_test_file=/lib/libc.so
6549 siemens)
6550 lt_cv_deplibs_check_method=pass_all
6553 lt_cv_deplibs_check_method=pass_all
6555 esac
6558 tpf*)
6559 lt_cv_deplibs_check_method=pass_all
6561 vxworks*)
6562 # Assume VxWorks cross toolchains are built on Linux, possibly
6563 # as canadian for Windows hosts.
6564 lt_cv_deplibs_check_method=pass_all
6566 esac
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6570 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6571 file_magic_cmd=$lt_cv_file_magic_cmd
6572 deplibs_check_method=$lt_cv_deplibs_check_method
6573 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6586 if test -n "$ac_tool_prefix"; then
6587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6588 set dummy ${ac_tool_prefix}ar; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_AR+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if test -n "$AR"; then
6595 ac_cv_prog_AR="$AR" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_AR="${ac_tool_prefix}ar"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6608 done
6609 done
6610 IFS=$as_save_IFS
6614 AR=$ac_cv_prog_AR
6615 if test -n "$AR"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6617 $as_echo "$AR" >&6; }
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6625 if test -z "$ac_cv_prog_AR"; then
6626 ac_ct_AR=$AR
6627 # Extract the first word of "ar", so it can be a program name with args.
6628 set dummy ar; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$ac_ct_AR"; then
6635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_ac_ct_AR="ar"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6648 done
6649 done
6650 IFS=$as_save_IFS
6654 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6655 if test -n "$ac_ct_AR"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6657 $as_echo "$ac_ct_AR" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6663 if test "x$ac_ct_AR" = x; then
6664 AR="false"
6665 else
6666 case $cross_compiling:$ac_tool_warned in
6667 yes:)
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670 ac_tool_warned=yes ;;
6671 esac
6672 AR=$ac_ct_AR
6674 else
6675 AR="$ac_cv_prog_AR"
6678 test -z "$AR" && AR=ar
6679 test -z "$AR_FLAGS" && AR_FLAGS=cru
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}strip; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_STRIP+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$STRIP"; then
6700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6713 done
6714 done
6715 IFS=$as_save_IFS
6719 STRIP=$ac_cv_prog_STRIP
6720 if test -n "$STRIP"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6722 $as_echo "$STRIP" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6730 if test -z "$ac_cv_prog_STRIP"; then
6731 ac_ct_STRIP=$STRIP
6732 # Extract the first word of "strip", so it can be a program name with args.
6733 set dummy strip; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$ac_ct_STRIP"; then
6740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_STRIP="strip"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6760 if test -n "$ac_ct_STRIP"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6762 $as_echo "$ac_ct_STRIP" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6768 if test "x$ac_ct_STRIP" = x; then
6769 STRIP=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 STRIP=$ac_ct_STRIP
6779 else
6780 STRIP="$ac_cv_prog_STRIP"
6783 test -z "$STRIP" && STRIP=:
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_RANLIB+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$RANLIB"; then
6799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6812 done
6813 done
6814 IFS=$as_save_IFS
6818 RANLIB=$ac_cv_prog_RANLIB
6819 if test -n "$RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821 $as_echo "$RANLIB" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6829 if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB=$RANLIB
6831 # Extract the first word of "ranlib", so it can be a program name with args.
6832 set dummy ranlib; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_RANLIB"; then
6839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_RANLIB="ranlib"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859 if test -n "$ac_ct_RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861 $as_echo "$ac_ct_RANLIB" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6867 if test "x$ac_ct_RANLIB" = x; then
6868 RANLIB=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 RANLIB=$ac_ct_RANLIB
6878 else
6879 RANLIB="$ac_cv_prog_RANLIB"
6882 test -z "$RANLIB" && RANLIB=:
6889 # Determine commands to create old-style static archives.
6890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6891 old_postinstall_cmds='chmod 644 $oldlib'
6892 old_postuninstall_cmds=
6894 if test -n "$RANLIB"; then
6895 case $host_os in
6896 openbsd*)
6897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6902 esac
6903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6906 case $host_os in
6907 darwin*)
6908 lock_old_archive_extraction=yes ;;
6910 lock_old_archive_extraction=no ;;
6911 esac
6951 # If no C compiler was specified, use CC.
6952 LTCC=${LTCC-"$CC"}
6954 # If no C compiler flags were specified, use CFLAGS.
6955 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6957 # Allow CC to be a program name with arguments.
6958 compiler=$CC
6961 # Check for command to grab the raw symbol name followed by C symbol from nm.
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6963 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6964 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6968 # These are sane defaults that work on at least a few old systems.
6969 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6971 # Character class describing NM global symbol codes.
6972 symcode='[BCDEGRST]'
6974 # Regexp to match symbols that can be accessed directly from C.
6975 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6977 # Define system-specific variables.
6978 case $host_os in
6979 aix*)
6980 symcode='[BCDT]'
6982 cygwin* | mingw* | pw32* | cegcc*)
6983 symcode='[ABCDGISTW]'
6985 hpux*)
6986 if test "$host_cpu" = ia64; then
6987 symcode='[ABCDEGRST]'
6990 irix* | nonstopux*)
6991 symcode='[BCDEGRST]'
6993 osf*)
6994 symcode='[BCDEGQRST]'
6996 solaris*)
6997 symcode='[BDRT]'
6999 sco3.2v5*)
7000 symcode='[DT]'
7002 sysv4.2uw2*)
7003 symcode='[DT]'
7005 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7006 symcode='[ABDT]'
7008 sysv4)
7009 symcode='[DFNSTU]'
7011 esac
7013 # If we're using GNU nm, then use its standard symbol codes.
7014 case `$NM -V 2>&1` in
7015 *GNU* | *'with BFD'*)
7016 symcode='[ABCDGIRSTW]' ;;
7017 esac
7019 # Transform an extracted symbol line into a proper C declaration.
7020 # Some systems (esp. on ia64) link data and code symbols differently,
7021 # so use this general approach.
7022 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7024 # Transform an extracted symbol line into symbol name and symbol address
7025 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7026 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'"
7028 # Handle CRLF in mingw tool chain
7029 opt_cr=
7030 case $build_os in
7031 mingw*)
7032 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7034 esac
7036 # Try without a prefix underscore, then with it.
7037 for ac_symprfx in "" "_"; do
7039 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7040 symxfrm="\\1 $ac_symprfx\\2 \\2"
7042 # Write the raw and C identifiers.
7043 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7044 # Fake it for dumpbin and say T for any non-static function
7045 # and D for any global variable.
7046 # Also find C++ and __fastcall symbols from MSVC++,
7047 # which start with @ or ?.
7048 lt_cv_sys_global_symbol_pipe="$AWK '"\
7049 " {last_section=section; section=\$ 3};"\
7050 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7051 " \$ 0!~/External *\|/{next};"\
7052 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7053 " {if(hide[section]) next};"\
7054 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7055 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7056 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7057 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7058 " ' prfx=^$ac_symprfx"
7059 else
7060 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7063 # Check to see that the pipe works correctly.
7064 pipe_works=no
7066 rm -f conftest*
7067 cat > conftest.$ac_ext <<_LT_EOF
7068 #ifdef __cplusplus
7069 extern "C" {
7070 #endif
7071 char nm_test_var;
7072 void nm_test_func(void);
7073 void nm_test_func(void){}
7074 #ifdef __cplusplus
7076 #endif
7077 int main(){nm_test_var='a';nm_test_func();return(0);}
7078 _LT_EOF
7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7081 (eval $ac_compile) 2>&5
7082 ac_status=$?
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }; then
7085 # Now try to grab the symbols.
7086 nlist=conftest.nm
7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7088 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; } && test -s "$nlist"; then
7092 # Try sorting and uniquifying the output.
7093 if sort "$nlist" | uniq > "$nlist"T; then
7094 mv -f "$nlist"T "$nlist"
7095 else
7096 rm -f "$nlist"T
7099 # Make sure that we snagged all the symbols we need.
7100 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7101 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7102 cat <<_LT_EOF > conftest.$ac_ext
7103 #ifdef __cplusplus
7104 extern "C" {
7105 #endif
7107 _LT_EOF
7108 # Now generate the symbol file.
7109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7111 cat <<_LT_EOF >> conftest.$ac_ext
7113 /* The mapping between symbol names and symbols. */
7114 const struct {
7115 const char *name;
7116 void *address;
7118 lt__PROGRAM__LTX_preloaded_symbols[] =
7120 { "@PROGRAM@", (void *) 0 },
7121 _LT_EOF
7122 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7123 cat <<\_LT_EOF >> conftest.$ac_ext
7124 {0, (void *) 0}
7127 /* This works around a problem in FreeBSD linker */
7128 #ifdef FREEBSD_WORKAROUND
7129 static const void *lt_preloaded_setup() {
7130 return lt__PROGRAM__LTX_preloaded_symbols;
7132 #endif
7134 #ifdef __cplusplus
7136 #endif
7137 _LT_EOF
7138 # Now try linking the two files.
7139 mv conftest.$ac_objext conftstm.$ac_objext
7140 lt_save_LIBS="$LIBS"
7141 lt_save_CFLAGS="$CFLAGS"
7142 LIBS="conftstm.$ac_objext"
7143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7145 (eval $ac_link) 2>&5
7146 ac_status=$?
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7149 pipe_works=yes
7151 LIBS="$lt_save_LIBS"
7152 CFLAGS="$lt_save_CFLAGS"
7153 else
7154 echo "cannot find nm_test_func in $nlist" >&5
7156 else
7157 echo "cannot find nm_test_var in $nlist" >&5
7159 else
7160 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7162 else
7163 echo "$progname: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7166 rm -rf conftest* conftst*
7168 # Do not use the global_symbol_pipe unless it works.
7169 if test "$pipe_works" = yes; then
7170 break
7171 else
7172 lt_cv_sys_global_symbol_pipe=
7174 done
7178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7179 lt_cv_sys_global_symbol_to_cdecl=
7181 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7183 $as_echo "failed" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7186 $as_echo "ok" >&6; }
7210 # Check whether --enable-libtool-lock was given.
7211 if test "${enable_libtool_lock+set}" = set; then :
7212 enableval=$enable_libtool_lock;
7215 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7217 # Some flags need to be propagated to the compiler or linker for good
7218 # libtool support.
7219 case $host in
7220 ia64-*-hpux*)
7221 # Find out which ABI we are using.
7222 echo 'int i;' > conftest.$ac_ext
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 case `/usr/bin/file conftest.$ac_objext` in
7229 *ELF-32*)
7230 HPUX_IA64_MODE="32"
7232 *ELF-64*)
7233 HPUX_IA64_MODE="64"
7235 esac
7237 rm -rf conftest*
7239 *-*-irix6*)
7240 # Find out which ABI we are using.
7241 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7243 (eval $ac_compile) 2>&5
7244 ac_status=$?
7245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7246 test $ac_status = 0; }; then
7247 if test "$lt_cv_prog_gnu_ld" = yes; then
7248 case `/usr/bin/file conftest.$ac_objext` in
7249 *32-bit*)
7250 LD="${LD-ld} -melf32bsmip"
7252 *N32*)
7253 LD="${LD-ld} -melf32bmipn32"
7255 *64-bit*)
7256 LD="${LD-ld} -melf64bmip"
7258 esac
7259 else
7260 case `/usr/bin/file conftest.$ac_objext` in
7261 *32-bit*)
7262 LD="${LD-ld} -32"
7264 *N32*)
7265 LD="${LD-ld} -n32"
7267 *64-bit*)
7268 LD="${LD-ld} -64"
7270 esac
7273 rm -rf conftest*
7276 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7277 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7278 # Find out which ABI we are using.
7279 echo 'int i;' > conftest.$ac_ext
7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7281 (eval $ac_compile) 2>&5
7282 ac_status=$?
7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284 test $ac_status = 0; }; then
7285 case `/usr/bin/file conftest.o` in
7286 *32-bit*)
7287 case $host in
7288 x86_64-*kfreebsd*-gnu)
7289 LD="${LD-ld} -m elf_i386_fbsd"
7291 x86_64-*linux*)
7292 case `/usr/bin/file conftest.o` in
7293 *x86-64*)
7294 LD="${LD-ld} -m elf32_x86_64"
7297 LD="${LD-ld} -m elf_i386"
7299 esac
7301 powerpc64le-*linux*)
7302 LD="${LD-ld} -m elf32lppclinux"
7304 powerpc64-*linux*)
7305 LD="${LD-ld} -m elf32ppclinux"
7307 s390x-*linux*)
7308 LD="${LD-ld} -m elf_s390"
7310 sparc64-*linux*)
7311 LD="${LD-ld} -m elf32_sparc"
7313 esac
7315 *64-bit*)
7316 case $host in
7317 x86_64-*kfreebsd*-gnu)
7318 LD="${LD-ld} -m elf_x86_64_fbsd"
7320 x86_64-*linux*)
7321 LD="${LD-ld} -m elf_x86_64"
7323 powerpcle-*linux*)
7324 LD="${LD-ld} -m elf64lppc"
7326 powerpc-*linux*)
7327 LD="${LD-ld} -m elf64ppc"
7329 s390*-*linux*|s390*-*tpf*)
7330 LD="${LD-ld} -m elf64_s390"
7332 sparc*-*linux*)
7333 LD="${LD-ld} -m elf64_sparc"
7335 esac
7337 esac
7339 rm -rf conftest*
7342 *-*-sco3.2v5*)
7343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7344 SAVE_CFLAGS="$CFLAGS"
7345 CFLAGS="$CFLAGS -belf"
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7347 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7348 if ${lt_cv_cc_needs_belf+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 ac_ext=c
7352 ac_cpp='$CPP $CPPFLAGS'
7353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7361 main ()
7365 return 0;
7367 _ACEOF
7368 if ac_fn_c_try_link "$LINENO"; then :
7369 lt_cv_cc_needs_belf=yes
7370 else
7371 lt_cv_cc_needs_belf=no
7373 rm -f core conftest.err conftest.$ac_objext \
7374 conftest$ac_exeext conftest.$ac_ext
7375 ac_ext=c
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7383 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7386 CFLAGS="$SAVE_CFLAGS"
7389 sparc*-*solaris*)
7390 # Find out which ABI we are using.
7391 echo 'int i;' > conftest.$ac_ext
7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393 (eval $ac_compile) 2>&5
7394 ac_status=$?
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 case `/usr/bin/file conftest.o` in
7398 *64-bit*)
7399 case $lt_cv_prog_gnu_ld in
7400 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7402 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7403 LD="${LD-ld} -64"
7406 esac
7408 esac
7410 rm -rf conftest*
7412 esac
7414 need_locks="$enable_libtool_lock"
7417 case $host_os in
7418 rhapsody* | darwin*)
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 if test -n "$DSYMUTIL"; then
7428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7441 done
7442 done
7443 IFS=$as_save_IFS
7447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7448 if test -n "$DSYMUTIL"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7450 $as_echo "$DSYMUTIL" >&6; }
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7458 if test -z "$ac_cv_prog_DSYMUTIL"; then
7459 ac_ct_DSYMUTIL=$DSYMUTIL
7460 # Extract the first word of "dsymutil", so it can be a program name with args.
7461 set dummy dsymutil; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 if test -n "$ac_ct_DSYMUTIL"; then
7468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7481 done
7482 done
7483 IFS=$as_save_IFS
7487 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7488 if test -n "$ac_ct_DSYMUTIL"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7490 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7496 if test "x$ac_ct_DSYMUTIL" = x; then
7497 DSYMUTIL=":"
7498 else
7499 case $cross_compiling:$ac_tool_warned in
7500 yes:)
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503 ac_tool_warned=yes ;;
7504 esac
7505 DSYMUTIL=$ac_ct_DSYMUTIL
7507 else
7508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_NMEDIT+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 if test -n "$NMEDIT"; then
7520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7533 done
7534 done
7535 IFS=$as_save_IFS
7539 NMEDIT=$ac_cv_prog_NMEDIT
7540 if test -n "$NMEDIT"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7542 $as_echo "$NMEDIT" >&6; }
7543 else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 if test -z "$ac_cv_prog_NMEDIT"; then
7551 ac_ct_NMEDIT=$NMEDIT
7552 # Extract the first word of "nmedit", so it can be a program name with args.
7553 set dummy nmedit; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 if test -n "$ac_ct_NMEDIT"; then
7560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7573 done
7574 done
7575 IFS=$as_save_IFS
7579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7580 if test -n "$ac_ct_NMEDIT"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7582 $as_echo "$ac_ct_NMEDIT" >&6; }
7583 else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7588 if test "x$ac_ct_NMEDIT" = x; then
7589 NMEDIT=":"
7590 else
7591 case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597 NMEDIT=$ac_ct_NMEDIT
7599 else
7600 NMEDIT="$ac_cv_prog_NMEDIT"
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_LIPO+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 if test -n "$LIPO"; then
7612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7625 done
7626 done
7627 IFS=$as_save_IFS
7631 LIPO=$ac_cv_prog_LIPO
7632 if test -n "$LIPO"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7634 $as_echo "$LIPO" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7642 if test -z "$ac_cv_prog_LIPO"; then
7643 ac_ct_LIPO=$LIPO
7644 # Extract the first word of "lipo", so it can be a program name with args.
7645 set dummy lipo; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 if test -n "$ac_ct_LIPO"; then
7652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_ac_ct_LIPO="lipo"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 break 2
7665 done
7666 done
7667 IFS=$as_save_IFS
7671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672 if test -n "$ac_ct_LIPO"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7674 $as_echo "$ac_ct_LIPO" >&6; }
7675 else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7680 if test "x$ac_ct_LIPO" = x; then
7681 LIPO=":"
7682 else
7683 case $cross_compiling:$ac_tool_warned in
7684 yes:)
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned=yes ;;
7688 esac
7689 LIPO=$ac_ct_LIPO
7691 else
7692 LIPO="$ac_cv_prog_LIPO"
7695 if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7697 set dummy ${ac_tool_prefix}otool; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_OTOOL+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$OTOOL"; then
7704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7717 done
7718 done
7719 IFS=$as_save_IFS
7723 OTOOL=$ac_cv_prog_OTOOL
7724 if test -n "$OTOOL"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7726 $as_echo "$OTOOL" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7734 if test -z "$ac_cv_prog_OTOOL"; then
7735 ac_ct_OTOOL=$OTOOL
7736 # Extract the first word of "otool", so it can be a program name with args.
7737 set dummy otool; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 if test -n "$ac_ct_OTOOL"; then
7744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_ac_ct_OTOOL="otool"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7757 done
7758 done
7759 IFS=$as_save_IFS
7763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7764 if test -n "$ac_ct_OTOOL"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7766 $as_echo "$ac_ct_OTOOL" >&6; }
7767 else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7772 if test "x$ac_ct_OTOOL" = x; then
7773 OTOOL=":"
7774 else
7775 case $cross_compiling:$ac_tool_warned in
7776 yes:)
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781 OTOOL=$ac_ct_OTOOL
7783 else
7784 OTOOL="$ac_cv_prog_OTOOL"
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_OTOOL64+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 if test -n "$OTOOL64"; then
7796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7809 done
7810 done
7811 IFS=$as_save_IFS
7815 OTOOL64=$ac_cv_prog_OTOOL64
7816 if test -n "$OTOOL64"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7818 $as_echo "$OTOOL64" >&6; }
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7826 if test -z "$ac_cv_prog_OTOOL64"; then
7827 ac_ct_OTOOL64=$OTOOL64
7828 # Extract the first word of "otool64", so it can be a program name with args.
7829 set dummy otool64; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 if test -n "$ac_ct_OTOOL64"; then
7836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_ac_ct_OTOOL64="otool64"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7849 done
7850 done
7851 IFS=$as_save_IFS
7855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7856 if test -n "$ac_ct_OTOOL64"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7858 $as_echo "$ac_ct_OTOOL64" >&6; }
7859 else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7864 if test "x$ac_ct_OTOOL64" = x; then
7865 OTOOL64=":"
7866 else
7867 case $cross_compiling:$ac_tool_warned in
7868 yes:)
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871 ac_tool_warned=yes ;;
7872 esac
7873 OTOOL64=$ac_ct_OTOOL64
7875 else
7876 OTOOL64="$ac_cv_prog_OTOOL64"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7906 $as_echo_n "checking for -single_module linker flag... " >&6; }
7907 if ${lt_cv_apple_cc_single_mod+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 lt_cv_apple_cc_single_mod=no
7911 if test -z "${LT_MULTI_MODULE}"; then
7912 # By default we will add the -single_module flag. You can override
7913 # by either setting the environment variable LT_MULTI_MODULE
7914 # non-empty at configure time, or by adding -multi_module to the
7915 # link flags.
7916 rm -rf libconftest.dylib*
7917 echo "int foo(void){return 1;}" > conftest.c
7918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7919 -dynamiclib -Wl,-single_module conftest.c" >&5
7920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7922 _lt_result=$?
7923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7924 lt_cv_apple_cc_single_mod=yes
7925 else
7926 cat conftest.err >&5
7928 rm -rf libconftest.dylib*
7929 rm -f conftest.*
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7933 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7935 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7936 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 lt_cv_ld_exported_symbols_list=no
7940 save_LDFLAGS=$LDFLAGS
7941 echo "_main" > conftest.sym
7942 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7947 main ()
7951 return 0;
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 lt_cv_ld_exported_symbols_list=yes
7956 else
7957 lt_cv_ld_exported_symbols_list=no
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 LDFLAGS="$save_LDFLAGS"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7965 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7967 $as_echo_n "checking for -force_load linker flag... " >&6; }
7968 if ${lt_cv_ld_force_load+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 lt_cv_ld_force_load=no
7972 cat > conftest.c << _LT_EOF
7973 int forced_loaded() { return 2;}
7974 _LT_EOF
7975 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7976 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7977 echo "$AR cru libconftest.a conftest.o" >&5
7978 $AR cru libconftest.a conftest.o 2>&5
7979 cat > conftest.c << _LT_EOF
7980 int main() { return 0;}
7981 _LT_EOF
7982 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7983 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7984 _lt_result=$?
7985 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7986 lt_cv_ld_force_load=yes
7987 else
7988 cat conftest.err >&5
7990 rm -f conftest.err libconftest.a conftest conftest.c
7991 rm -rf conftest.dSYM
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7995 $as_echo "$lt_cv_ld_force_load" >&6; }
7996 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7997 # build without first building modern cctools / linker.
7998 case $host_cpu-$host_os in
7999 *-rhapsody* | *-darwin1.[012])
8000 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8001 *-darwin1.*)
8002 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8003 *-darwin*)
8004 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8005 # deployment target is forced to an earlier version.
8006 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8007 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8009 10.[012][,.]*)
8010 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8014 esac
8016 esac
8017 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8018 _lt_dar_single_mod='$single_module'
8020 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8021 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8022 else
8023 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8025 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8026 _lt_dsymutil='~$DSYMUTIL $lib || :'
8027 else
8028 _lt_dsymutil=
8031 esac
8033 for ac_header in dlfcn.h
8034 do :
8035 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8037 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8038 cat >>confdefs.h <<_ACEOF
8039 #define HAVE_DLFCN_H 1
8040 _ACEOF
8044 done
8050 # Set options
8054 enable_dlopen=no
8057 enable_win32_dll=no
8060 # Check whether --enable-shared was given.
8061 if test "${enable_shared+set}" = set; then :
8062 enableval=$enable_shared; p=${PACKAGE-default}
8063 case $enableval in
8064 yes) enable_shared=yes ;;
8065 no) enable_shared=no ;;
8067 enable_shared=no
8068 # Look at the argument we got. We use all the common list separators.
8069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8070 for pkg in $enableval; do
8071 IFS="$lt_save_ifs"
8072 if test "X$pkg" = "X$p"; then
8073 enable_shared=yes
8075 done
8076 IFS="$lt_save_ifs"
8078 esac
8079 else
8080 enable_shared=yes
8091 # Check whether --enable-static was given.
8092 if test "${enable_static+set}" = set; then :
8093 enableval=$enable_static; p=${PACKAGE-default}
8094 case $enableval in
8095 yes) enable_static=yes ;;
8096 no) enable_static=no ;;
8098 enable_static=no
8099 # Look at the argument we got. We use all the common list separators.
8100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8101 for pkg in $enableval; do
8102 IFS="$lt_save_ifs"
8103 if test "X$pkg" = "X$p"; then
8104 enable_static=yes
8106 done
8107 IFS="$lt_save_ifs"
8109 esac
8110 else
8111 enable_static=yes
8123 # Check whether --with-pic was given.
8124 if test "${with_pic+set}" = set; then :
8125 withval=$with_pic; pic_mode="$withval"
8126 else
8127 pic_mode=default
8131 test -z "$pic_mode" && pic_mode=default
8139 # Check whether --enable-fast-install was given.
8140 if test "${enable_fast_install+set}" = set; then :
8141 enableval=$enable_fast_install; p=${PACKAGE-default}
8142 case $enableval in
8143 yes) enable_fast_install=yes ;;
8144 no) enable_fast_install=no ;;
8146 enable_fast_install=no
8147 # Look at the argument we got. We use all the common list separators.
8148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8149 for pkg in $enableval; do
8150 IFS="$lt_save_ifs"
8151 if test "X$pkg" = "X$p"; then
8152 enable_fast_install=yes
8154 done
8155 IFS="$lt_save_ifs"
8157 esac
8158 else
8159 enable_fast_install=yes
8172 # This can be used to rebuild libtool when needed
8173 LIBTOOL_DEPS="$ltmain"
8175 # Always use our own libtool.
8176 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8203 test -z "$LN_S" && LN_S="ln -s"
8218 if test -n "${ZSH_VERSION+set}" ; then
8219 setopt NO_GLOB_SUBST
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8223 $as_echo_n "checking for objdir... " >&6; }
8224 if ${lt_cv_objdir+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 rm -f .libs 2>/dev/null
8228 mkdir .libs 2>/dev/null
8229 if test -d .libs; then
8230 lt_cv_objdir=.libs
8231 else
8232 # MS-DOS does not allow filenames that begin with a dot.
8233 lt_cv_objdir=_libs
8235 rmdir .libs 2>/dev/null
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8238 $as_echo "$lt_cv_objdir" >&6; }
8239 objdir=$lt_cv_objdir
8245 cat >>confdefs.h <<_ACEOF
8246 #define LT_OBJDIR "$lt_cv_objdir/"
8247 _ACEOF
8252 case $host_os in
8253 aix3*)
8254 # AIX sometimes has problems with the GCC collect2 program. For some
8255 # reason, if we set the COLLECT_NAMES environment variable, the problems
8256 # vanish in a puff of smoke.
8257 if test "X${COLLECT_NAMES+set}" != Xset; then
8258 COLLECT_NAMES=
8259 export COLLECT_NAMES
8262 esac
8264 # Global variables:
8265 ofile=libtool
8266 can_build_shared=yes
8268 # All known linkers require a `.a' archive for static linking (except MSVC,
8269 # which needs '.lib').
8270 libext=a
8272 with_gnu_ld="$lt_cv_prog_gnu_ld"
8274 old_CC="$CC"
8275 old_CFLAGS="$CFLAGS"
8277 # Set sane defaults for various variables
8278 test -z "$CC" && CC=cc
8279 test -z "$LTCC" && LTCC=$CC
8280 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8281 test -z "$LD" && LD=ld
8282 test -z "$ac_objext" && ac_objext=o
8284 for cc_temp in $compiler""; do
8285 case $cc_temp in
8286 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8287 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8288 \-*) ;;
8289 *) break;;
8290 esac
8291 done
8292 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8295 # Only perform the check for file, if the check method requires it
8296 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8297 case $deplibs_check_method in
8298 file_magic*)
8299 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8301 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8302 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 case $MAGIC_CMD in
8306 [\\/*] | ?:[\\/]*)
8307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8310 lt_save_MAGIC_CMD="$MAGIC_CMD"
8311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8312 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8313 for ac_dir in $ac_dummy; do
8314 IFS="$lt_save_ifs"
8315 test -z "$ac_dir" && ac_dir=.
8316 if test -f $ac_dir/${ac_tool_prefix}file; then
8317 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8318 if test -n "$file_magic_test_file"; then
8319 case $deplibs_check_method in
8320 "file_magic "*)
8321 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8324 $EGREP "$file_magic_regex" > /dev/null; then
8326 else
8327 cat <<_LT_EOF 1>&2
8329 *** Warning: the command libtool uses to detect shared libraries,
8330 *** $file_magic_cmd, produces output that libtool cannot recognize.
8331 *** The result is that libtool may fail to recognize shared libraries
8332 *** as such. This will affect the creation of libtool libraries that
8333 *** depend on shared libraries, but programs linked with such libtool
8334 *** libraries will work regardless of this problem. Nevertheless, you
8335 *** may want to report the problem to your system manager and/or to
8336 *** bug-libtool@gnu.org
8338 _LT_EOF
8339 fi ;;
8340 esac
8342 break
8344 done
8345 IFS="$lt_save_ifs"
8346 MAGIC_CMD="$lt_save_MAGIC_CMD"
8348 esac
8351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8352 if test -n "$MAGIC_CMD"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8354 $as_echo "$MAGIC_CMD" >&6; }
8355 else
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8364 if test -z "$lt_cv_path_MAGIC_CMD"; then
8365 if test -n "$ac_tool_prefix"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8367 $as_echo_n "checking for file... " >&6; }
8368 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 case $MAGIC_CMD in
8372 [\\/*] | ?:[\\/]*)
8373 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8376 lt_save_MAGIC_CMD="$MAGIC_CMD"
8377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8379 for ac_dir in $ac_dummy; do
8380 IFS="$lt_save_ifs"
8381 test -z "$ac_dir" && ac_dir=.
8382 if test -f $ac_dir/file; then
8383 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8384 if test -n "$file_magic_test_file"; then
8385 case $deplibs_check_method in
8386 "file_magic "*)
8387 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8390 $EGREP "$file_magic_regex" > /dev/null; then
8392 else
8393 cat <<_LT_EOF 1>&2
8395 *** Warning: the command libtool uses to detect shared libraries,
8396 *** $file_magic_cmd, produces output that libtool cannot recognize.
8397 *** The result is that libtool may fail to recognize shared libraries
8398 *** as such. This will affect the creation of libtool libraries that
8399 *** depend on shared libraries, but programs linked with such libtool
8400 *** libraries will work regardless of this problem. Nevertheless, you
8401 *** may want to report the problem to your system manager and/or to
8402 *** bug-libtool@gnu.org
8404 _LT_EOF
8405 fi ;;
8406 esac
8408 break
8410 done
8411 IFS="$lt_save_ifs"
8412 MAGIC_CMD="$lt_save_MAGIC_CMD"
8414 esac
8417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8418 if test -n "$MAGIC_CMD"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8420 $as_echo "$MAGIC_CMD" >&6; }
8421 else
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8427 else
8428 MAGIC_CMD=:
8434 esac
8436 # Use C for the default configuration in the libtool script
8438 lt_save_CC="$CC"
8439 ac_ext=c
8440 ac_cpp='$CPP $CPPFLAGS'
8441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8446 # Source file extension for C test sources.
8447 ac_ext=c
8449 # Object file extension for compiled C test sources.
8450 objext=o
8451 objext=$objext
8453 # Code to be used in simple compile tests
8454 lt_simple_compile_test_code="int some_variable = 0;"
8456 # Code to be used in simple link tests
8457 lt_simple_link_test_code='int main(){return(0);}'
8465 # If no C compiler was specified, use CC.
8466 LTCC=${LTCC-"$CC"}
8468 # If no C compiler flags were specified, use CFLAGS.
8469 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8471 # Allow CC to be a program name with arguments.
8472 compiler=$CC
8474 # Save the default compiler, since it gets overwritten when the other
8475 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8476 compiler_DEFAULT=$CC
8478 # save warnings/boilerplate of simple test code
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8481 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8482 _lt_compiler_boilerplate=`cat conftest.err`
8483 $RM conftest*
8485 ac_outfile=conftest.$ac_objext
8486 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8487 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8488 _lt_linker_boilerplate=`cat conftest.err`
8489 $RM -r conftest*
8492 ## CAVEAT EMPTOR:
8493 ## There is no encapsulation within the following macros, do not change
8494 ## the running order or otherwise move them around unless you know exactly
8495 ## what you are doing...
8496 if test -n "$compiler"; then
8498 lt_prog_compiler_no_builtin_flag=
8500 if test "$GCC" = yes; then
8501 case $cc_basename in
8502 nvcc*)
8503 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8505 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8506 esac
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8509 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8510 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 lt_cv_prog_compiler_rtti_exceptions=no
8514 ac_outfile=conftest.$ac_objext
8515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8516 lt_compiler_flag="-fno-rtti -fno-exceptions"
8517 # Insert the option either (1) after the last *FLAGS variable, or
8518 # (2) before a word containing "conftest.", or (3) at the end.
8519 # Note that $ac_compile itself does not contain backslashes and begins
8520 # with a dollar sign (not a hyphen), so the echo should work correctly.
8521 # The option is referenced via a variable to avoid confusing sed.
8522 lt_compile=`echo "$ac_compile" | $SED \
8523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8525 -e 's:$: $lt_compiler_flag:'`
8526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8527 (eval "$lt_compile" 2>conftest.err)
8528 ac_status=$?
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 if (exit $ac_status) && test -s "$ac_outfile"; then
8532 # The compiler can only warn and ignore the option if not recognized
8533 # So say no if there are warnings other than the usual output.
8534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8537 lt_cv_prog_compiler_rtti_exceptions=yes
8540 $RM conftest*
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8544 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8546 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8547 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8548 else
8559 lt_prog_compiler_wl=
8560 lt_prog_compiler_pic=
8561 lt_prog_compiler_static=
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8564 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8566 if test "$GCC" = yes; then
8567 lt_prog_compiler_wl='-Wl,'
8568 lt_prog_compiler_static='-static'
8570 case $host_os in
8571 aix*)
8572 # All AIX code is PIC.
8573 if test "$host_cpu" = ia64; then
8574 # AIX 5 now supports IA64 processor
8575 lt_prog_compiler_static='-Bstatic'
8577 lt_prog_compiler_pic='-fPIC'
8580 amigaos*)
8581 case $host_cpu in
8582 powerpc)
8583 # see comment about AmigaOS4 .so support
8584 lt_prog_compiler_pic='-fPIC'
8586 m68k)
8587 # FIXME: we need at least 68020 code to build shared libraries, but
8588 # adding the `-m68020' flag to GCC prevents building anything better,
8589 # like `-m68040'.
8590 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8592 esac
8595 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8596 # PIC is the default for these OSes.
8599 mingw* | cygwin* | pw32* | os2* | cegcc*)
8600 # This hack is so that the source file can tell whether it is being
8601 # built for inclusion in a dll (and should export symbols for example).
8602 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8603 # (--disable-auto-import) libraries
8604 lt_prog_compiler_pic='-DDLL_EXPORT'
8607 darwin* | rhapsody*)
8608 # PIC is the default on this platform
8609 # Common symbols not allowed in MH_DYLIB files
8610 lt_prog_compiler_pic='-fno-common'
8613 haiku*)
8614 # PIC is the default for Haiku.
8615 # The "-static" flag exists, but is broken.
8616 lt_prog_compiler_static=
8619 hpux*)
8620 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8621 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8622 # sets the default TLS model and affects inlining.
8623 case $host_cpu in
8624 hppa*64*)
8625 # +Z the default
8628 lt_prog_compiler_pic='-fPIC'
8630 esac
8633 interix[3-9]*)
8634 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8635 # Instead, we relocate shared libraries at runtime.
8638 msdosdjgpp*)
8639 # Just because we use GCC doesn't mean we suddenly get shared libraries
8640 # on systems that don't support them.
8641 lt_prog_compiler_can_build_shared=no
8642 enable_shared=no
8645 *nto* | *qnx*)
8646 # QNX uses GNU C++, but need to define -shared option too, otherwise
8647 # it will coredump.
8648 lt_prog_compiler_pic='-fPIC -shared'
8651 sysv4*MP*)
8652 if test -d /usr/nec; then
8653 lt_prog_compiler_pic=-Kconform_pic
8658 lt_prog_compiler_pic='-fPIC'
8660 esac
8662 case $cc_basename in
8663 nvcc*) # Cuda Compiler Driver 2.2
8664 lt_prog_compiler_wl='-Xlinker '
8665 lt_prog_compiler_pic='-Xcompiler -fPIC'
8667 esac
8668 else
8669 # PORTME Check for flag to pass linker flags through the system compiler.
8670 case $host_os in
8671 aix*)
8672 lt_prog_compiler_wl='-Wl,'
8673 if test "$host_cpu" = ia64; then
8674 # AIX 5 now supports IA64 processor
8675 lt_prog_compiler_static='-Bstatic'
8676 else
8677 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8681 mingw* | cygwin* | pw32* | os2* | cegcc*)
8682 # This hack is so that the source file can tell whether it is being
8683 # built for inclusion in a dll (and should export symbols for example).
8684 lt_prog_compiler_pic='-DDLL_EXPORT'
8687 hpux9* | hpux10* | hpux11*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8690 # not for PA HP-UX.
8691 case $host_cpu in
8692 hppa*64*|ia64*)
8693 # +Z the default
8696 lt_prog_compiler_pic='+Z'
8698 esac
8699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8700 lt_prog_compiler_static='${wl}-a ${wl}archive'
8703 irix5* | irix6* | nonstopux*)
8704 lt_prog_compiler_wl='-Wl,'
8705 # PIC (with -KPIC) is the default.
8706 lt_prog_compiler_static='-non_shared'
8709 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8710 case $cc_basename in
8711 # old Intel for x86_64 which still supported -KPIC.
8712 ecc*)
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_pic='-KPIC'
8715 lt_prog_compiler_static='-static'
8717 # icc used to be incompatible with GCC.
8718 # ICC 10 doesn't accept -KPIC any more.
8719 icc* | ifort*)
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_pic='-fPIC'
8722 lt_prog_compiler_static='-static'
8724 # Lahey Fortran 8.1.
8725 lf95*)
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_pic='--shared'
8728 lt_prog_compiler_static='--static'
8730 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8731 # Portland Group compilers (*not* the Pentium gcc compiler,
8732 # which looks to be a dead project)
8733 lt_prog_compiler_wl='-Wl,'
8734 lt_prog_compiler_pic='-fpic'
8735 lt_prog_compiler_static='-Bstatic'
8737 ccc*)
8738 lt_prog_compiler_wl='-Wl,'
8739 # All Alpha code is PIC.
8740 lt_prog_compiler_static='-non_shared'
8742 xl* | bgxl* | bgf* | mpixl*)
8743 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8744 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_pic='-qpic'
8746 lt_prog_compiler_static='-qstaticlink'
8749 case `$CC -V 2>&1 | sed 5q` in
8750 *Sun\ F* | *Sun*Fortran*)
8751 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8752 lt_prog_compiler_pic='-KPIC'
8753 lt_prog_compiler_static='-Bstatic'
8754 lt_prog_compiler_wl=''
8756 *Sun\ C*)
8757 # Sun C 5.9
8758 lt_prog_compiler_pic='-KPIC'
8759 lt_prog_compiler_static='-Bstatic'
8760 lt_prog_compiler_wl='-Wl,'
8762 esac
8764 esac
8767 newsos6)
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8772 *nto* | *qnx*)
8773 # QNX uses GNU C++, but need to define -shared option too, otherwise
8774 # it will coredump.
8775 lt_prog_compiler_pic='-fPIC -shared'
8778 osf3* | osf4* | osf5*)
8779 lt_prog_compiler_wl='-Wl,'
8780 # All OSF/1 code is PIC.
8781 lt_prog_compiler_static='-non_shared'
8784 rdos*)
8785 lt_prog_compiler_static='-non_shared'
8788 solaris*)
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 case $cc_basename in
8792 f77* | f90* | f95*)
8793 lt_prog_compiler_wl='-Qoption ld ';;
8795 lt_prog_compiler_wl='-Wl,';;
8796 esac
8799 sunos4*)
8800 lt_prog_compiler_wl='-Qoption ld '
8801 lt_prog_compiler_pic='-PIC'
8802 lt_prog_compiler_static='-Bstatic'
8805 sysv4 | sysv4.2uw2* | sysv4.3*)
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-KPIC'
8808 lt_prog_compiler_static='-Bstatic'
8811 sysv4*MP*)
8812 if test -d /usr/nec ;then
8813 lt_prog_compiler_pic='-Kconform_pic'
8814 lt_prog_compiler_static='-Bstatic'
8818 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8824 unicos*)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_can_build_shared=no
8829 uts4*)
8830 lt_prog_compiler_pic='-pic'
8831 lt_prog_compiler_static='-Bstatic'
8835 lt_prog_compiler_can_build_shared=no
8837 esac
8840 case $host_os in
8841 # For platforms which do not support PIC, -DPIC is meaningless:
8842 *djgpp*)
8843 lt_prog_compiler_pic=
8846 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8848 esac
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8850 $as_echo "$lt_prog_compiler_pic" >&6; }
8858 # Check to make sure the PIC flag actually works.
8860 if test -n "$lt_prog_compiler_pic"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8862 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8863 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 lt_cv_prog_compiler_pic_works=no
8867 ac_outfile=conftest.$ac_objext
8868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8869 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8870 # Insert the option either (1) after the last *FLAGS variable, or
8871 # (2) before a word containing "conftest.", or (3) at the end.
8872 # Note that $ac_compile itself does not contain backslashes and begins
8873 # with a dollar sign (not a hyphen), so the echo should work correctly.
8874 # The option is referenced via a variable to avoid confusing sed.
8875 lt_compile=`echo "$ac_compile" | $SED \
8876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8878 -e 's:$: $lt_compiler_flag:'`
8879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8880 (eval "$lt_compile" 2>conftest.err)
8881 ac_status=$?
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 if (exit $ac_status) && test -s "$ac_outfile"; then
8885 # The compiler can only warn and ignore the option if not recognized
8886 # So say no if there are warnings other than the usual output.
8887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8889 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8890 lt_cv_prog_compiler_pic_works=yes
8893 $RM conftest*
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8897 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8899 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8900 case $lt_prog_compiler_pic in
8901 "" | " "*) ;;
8902 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8903 esac
8904 else
8905 lt_prog_compiler_pic=
8906 lt_prog_compiler_can_build_shared=no
8917 # Check to make sure the static flag actually works.
8919 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8921 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8922 if ${lt_cv_prog_compiler_static_works+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 lt_cv_prog_compiler_static_works=no
8926 save_LDFLAGS="$LDFLAGS"
8927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8928 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8930 # The linker can only warn and ignore the option if not recognized
8931 # So say no if there are warnings
8932 if test -s conftest.err; then
8933 # Append any errors to the config.log.
8934 cat conftest.err 1>&5
8935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8937 if diff conftest.exp conftest.er2 >/dev/null; then
8938 lt_cv_prog_compiler_static_works=yes
8940 else
8941 lt_cv_prog_compiler_static_works=yes
8944 $RM -r conftest*
8945 LDFLAGS="$save_LDFLAGS"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8949 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8951 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8953 else
8954 lt_prog_compiler_static=
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8965 if ${lt_cv_prog_compiler_c_o+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 lt_cv_prog_compiler_c_o=no
8969 $RM -r conftest 2>/dev/null
8970 mkdir conftest
8971 cd conftest
8972 mkdir out
8973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975 lt_compiler_flag="-o out/conftest2.$ac_objext"
8976 # Insert the option either (1) after the last *FLAGS variable, or
8977 # (2) before a word containing "conftest.", or (3) at the end.
8978 # Note that $ac_compile itself does not contain backslashes and begins
8979 # with a dollar sign (not a hyphen), so the echo should work correctly.
8980 lt_compile=`echo "$ac_compile" | $SED \
8981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8983 -e 's:$: $lt_compiler_flag:'`
8984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8985 (eval "$lt_compile" 2>out/conftest.err)
8986 ac_status=$?
8987 cat out/conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8990 then
8991 # The compiler can only warn and ignore the option if not recognized
8992 # So say no if there are warnings
8993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8996 lt_cv_prog_compiler_c_o=yes
8999 chmod u+w . 2>&5
9000 $RM conftest*
9001 # SGI C++ compiler will create directory out/ii_files/ for
9002 # template instantiation
9003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9004 $RM out/* && rmdir out
9005 cd ..
9006 $RM -r conftest
9007 $RM conftest*
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9011 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9019 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9020 if ${lt_cv_prog_compiler_c_o+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 lt_cv_prog_compiler_c_o=no
9024 $RM -r conftest 2>/dev/null
9025 mkdir conftest
9026 cd conftest
9027 mkdir out
9028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9030 lt_compiler_flag="-o out/conftest2.$ac_objext"
9031 # Insert the option either (1) after the last *FLAGS variable, or
9032 # (2) before a word containing "conftest.", or (3) at the end.
9033 # Note that $ac_compile itself does not contain backslashes and begins
9034 # with a dollar sign (not a hyphen), so the echo should work correctly.
9035 lt_compile=`echo "$ac_compile" | $SED \
9036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9038 -e 's:$: $lt_compiler_flag:'`
9039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9040 (eval "$lt_compile" 2>out/conftest.err)
9041 ac_status=$?
9042 cat out/conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9045 then
9046 # The compiler can only warn and ignore the option if not recognized
9047 # So say no if there are warnings
9048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9051 lt_cv_prog_compiler_c_o=yes
9054 chmod u+w . 2>&5
9055 $RM conftest*
9056 # SGI C++ compiler will create directory out/ii_files/ for
9057 # template instantiation
9058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9059 $RM out/* && rmdir out
9060 cd ..
9061 $RM -r conftest
9062 $RM conftest*
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9066 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9071 hard_links="nottested"
9072 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9073 # do not overwrite the value of need_locks provided by the user
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9075 $as_echo_n "checking if we can lock with hard links... " >&6; }
9076 hard_links=yes
9077 $RM conftest*
9078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9079 touch conftest.a
9080 ln conftest.a conftest.b 2>&5 || hard_links=no
9081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9083 $as_echo "$hard_links" >&6; }
9084 if test "$hard_links" = no; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9086 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9087 need_locks=warn
9089 else
9090 need_locks=no
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9099 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9101 runpath_var=
9102 allow_undefined_flag=
9103 always_export_symbols=no
9104 archive_cmds=
9105 archive_expsym_cmds=
9106 compiler_needs_object=no
9107 enable_shared_with_static_runtimes=no
9108 export_dynamic_flag_spec=
9109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9110 hardcode_automatic=no
9111 hardcode_direct=no
9112 hardcode_direct_absolute=no
9113 hardcode_libdir_flag_spec=
9114 hardcode_libdir_flag_spec_ld=
9115 hardcode_libdir_separator=
9116 hardcode_minus_L=no
9117 hardcode_shlibpath_var=unsupported
9118 inherit_rpath=no
9119 link_all_deplibs=unknown
9120 module_cmds=
9121 module_expsym_cmds=
9122 old_archive_from_new_cmds=
9123 old_archive_from_expsyms_cmds=
9124 thread_safe_flag_spec=
9125 whole_archive_flag_spec=
9126 # include_expsyms should be a list of space-separated symbols to be *always*
9127 # included in the symbol list
9128 include_expsyms=
9129 # exclude_expsyms can be an extended regexp of symbols to exclude
9130 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9132 # as well as any symbol that contains `d'.
9133 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9135 # platforms (ab)use it in PIC code, but their linkers get confused if
9136 # the symbol is explicitly referenced. Since portable code cannot
9137 # rely on this symbol name, it's probably fine to never include it in
9138 # preloaded symbol tables.
9139 # Exclude shared library initialization/finalization symbols.
9140 extract_expsyms_cmds=
9142 case $host_os in
9143 cygwin* | mingw* | pw32* | cegcc*)
9144 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9145 # When not using gcc, we currently assume that we are using
9146 # Microsoft Visual C++.
9147 if test "$GCC" != yes; then
9148 with_gnu_ld=no
9151 interix*)
9152 # we just hope/assume this is gcc and not c89 (= MSVC++)
9153 with_gnu_ld=yes
9155 openbsd*)
9156 with_gnu_ld=no
9158 esac
9160 ld_shlibs=yes
9162 # On some targets, GNU ld is compatible enough with the native linker
9163 # that we're better off using the native interface for both.
9164 lt_use_gnu_ld_interface=no
9165 if test "$with_gnu_ld" = yes; then
9166 case $host_os in
9167 aix*)
9168 # The AIX port of GNU ld has always aspired to compatibility
9169 # with the native linker. However, as the warning in the GNU ld
9170 # block says, versions before 2.19.5* couldn't really create working
9171 # shared libraries, regardless of the interface used.
9172 case `$LD -v 2>&1` in
9173 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9174 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9175 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9177 lt_use_gnu_ld_interface=yes
9179 esac
9182 lt_use_gnu_ld_interface=yes
9184 esac
9187 if test "$lt_use_gnu_ld_interface" = yes; then
9188 # If archive_cmds runs LD, not CC, wlarc should be empty
9189 wlarc='${wl}'
9191 # Set some defaults for GNU ld with shared library support. These
9192 # are reset later if shared libraries are not supported. Putting them
9193 # here allows them to be overridden if necessary.
9194 runpath_var=LD_RUN_PATH
9195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9196 export_dynamic_flag_spec='${wl}--export-dynamic'
9197 # ancient GNU ld didn't support --whole-archive et. al.
9198 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9199 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9200 else
9201 whole_archive_flag_spec=
9203 supports_anon_versioning=no
9204 case `$LD -v 2>&1` in
9205 *GNU\ gold*) supports_anon_versioning=yes ;;
9206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9209 *\ 2.11.*) ;; # other 2.11 versions
9210 *) supports_anon_versioning=yes ;;
9211 esac
9213 # See if GNU ld supports shared libraries.
9214 case $host_os in
9215 aix[3-9]*)
9216 # On AIX/PPC, the GNU linker is very broken
9217 if test "$host_cpu" != ia64; then
9218 ld_shlibs=no
9219 cat <<_LT_EOF 1>&2
9221 *** Warning: the GNU linker, at least up to release 2.19, is reported
9222 *** to be unable to reliably create shared libraries on AIX.
9223 *** Therefore, libtool is disabling shared libraries support. If you
9224 *** really care for shared libraries, you may want to install binutils
9225 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9226 *** You will then need to restart the configuration process.
9228 _LT_EOF
9232 amigaos*)
9233 case $host_cpu in
9234 powerpc)
9235 # see comment about AmigaOS4 .so support
9236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237 archive_expsym_cmds=''
9239 m68k)
9240 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)'
9241 hardcode_libdir_flag_spec='-L$libdir'
9242 hardcode_minus_L=yes
9244 esac
9247 beos*)
9248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9249 allow_undefined_flag=unsupported
9250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9251 # support --undefined. This deserves some investigation. FIXME
9252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 else
9254 ld_shlibs=no
9258 cygwin* | mingw* | pw32* | cegcc*)
9259 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9260 # as there is no search path for DLLs.
9261 hardcode_libdir_flag_spec='-L$libdir'
9262 export_dynamic_flag_spec='${wl}--export-all-symbols'
9263 allow_undefined_flag=unsupported
9264 always_export_symbols=no
9265 enable_shared_with_static_runtimes=yes
9266 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9268 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9270 # If the export-symbols file already is a .def file (1st line
9271 # is EXPORTS), use it as is; otherwise, prepend...
9272 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9273 cp $export_symbols $output_objdir/$soname.def;
9274 else
9275 echo EXPORTS > $output_objdir/$soname.def;
9276 cat $export_symbols >> $output_objdir/$soname.def;
9278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9279 else
9280 ld_shlibs=no
9284 haiku*)
9285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 link_all_deplibs=yes
9289 interix[3-9]*)
9290 hardcode_direct=no
9291 hardcode_shlibpath_var=no
9292 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9293 export_dynamic_flag_spec='${wl}-E'
9294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9295 # Instead, shared libraries are loaded at an image base (0x10000000 by
9296 # default) and relocated if they conflict, which is a slow very memory
9297 # consuming and fragmenting process. To avoid this, we pick a random,
9298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9300 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9301 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'
9304 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9305 tmp_diet=no
9306 if test "$host_os" = linux-dietlibc; then
9307 case $cc_basename in
9308 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9309 esac
9311 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9312 && test "$tmp_diet" = no
9313 then
9314 tmp_addflag=' $pic_flag'
9315 tmp_sharedflag='-shared'
9316 case $cc_basename,$host_cpu in
9317 pgcc*) # Portland Group C compiler
9318 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'
9319 tmp_addflag=' $pic_flag'
9321 pgf77* | pgf90* | pgf95* | pgfortran*)
9322 # Portland Group f77 and f90 compilers
9323 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'
9324 tmp_addflag=' $pic_flag -Mnomain' ;;
9325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9326 tmp_addflag=' -i_dynamic' ;;
9327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9328 tmp_addflag=' -i_dynamic -nofor_main' ;;
9329 ifc* | ifort*) # Intel Fortran compiler
9330 tmp_addflag=' -nofor_main' ;;
9331 lf95*) # Lahey Fortran 8.1
9332 whole_archive_flag_spec=
9333 tmp_sharedflag='--shared' ;;
9334 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9335 tmp_sharedflag='-qmkshrobj'
9336 tmp_addflag= ;;
9337 nvcc*) # Cuda Compiler Driver 2.2
9338 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'
9339 compiler_needs_object=yes
9341 esac
9342 case `$CC -V 2>&1 | sed 5q` in
9343 *Sun\ C*) # Sun C 5.9
9344 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'
9345 compiler_needs_object=yes
9346 tmp_sharedflag='-G' ;;
9347 *Sun\ F*) # Sun Fortran 8.3
9348 tmp_sharedflag='-G' ;;
9349 esac
9350 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 if test "x$supports_anon_versioning" = xyes; then
9353 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9355 echo "local: *; };" >> $output_objdir/$libname.ver~
9356 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9359 case $cc_basename in
9360 xlf* | bgf* | bgxlf* | mpixlf*)
9361 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9362 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9363 hardcode_libdir_flag_spec=
9364 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9365 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9366 if test "x$supports_anon_versioning" = xyes; then
9367 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9369 echo "local: *; };" >> $output_objdir/$libname.ver~
9370 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9373 esac
9374 else
9375 ld_shlibs=no
9379 netbsd*)
9380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9381 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9382 wlarc=
9383 else
9384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9389 solaris*)
9390 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9391 ld_shlibs=no
9392 cat <<_LT_EOF 1>&2
9394 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9395 *** create shared libraries on Solaris systems. Therefore, libtool
9396 *** is disabling shared libraries support. We urge you to upgrade GNU
9397 *** binutils to release 2.9.1 or newer. Another option is to modify
9398 *** your PATH or compiler configuration so that the native linker is
9399 *** used, and then restart.
9401 _LT_EOF
9402 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9405 else
9406 ld_shlibs=no
9410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9411 case `$LD -v 2>&1` in
9412 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9413 ld_shlibs=no
9414 cat <<_LT_EOF 1>&2
9416 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9417 *** reliably create shared libraries on SCO systems. Therefore, libtool
9418 *** is disabling shared libraries support. We urge you to upgrade GNU
9419 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9420 *** your PATH or compiler configuration so that the native linker is
9421 *** used, and then restart.
9423 _LT_EOF
9426 # For security reasons, it is highly recommended that you always
9427 # use absolute paths for naming shared libraries, and exclude the
9428 # DT_RUNPATH tag from executables and libraries. But doing so
9429 # requires that you compile everything twice, which is a pain.
9430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9434 else
9435 ld_shlibs=no
9438 esac
9441 sunos4*)
9442 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9443 wlarc=
9444 hardcode_direct=yes
9445 hardcode_shlibpath_var=no
9449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9452 else
9453 ld_shlibs=no
9456 esac
9458 if test "$ld_shlibs" = no; then
9459 runpath_var=
9460 hardcode_libdir_flag_spec=
9461 export_dynamic_flag_spec=
9462 whole_archive_flag_spec=
9464 else
9465 # PORTME fill in a description of your system's linker (not GNU ld)
9466 case $host_os in
9467 aix3*)
9468 allow_undefined_flag=unsupported
9469 always_export_symbols=yes
9470 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'
9471 # Note: this linker hardcodes the directories in LIBPATH if there
9472 # are no directories specified by -L.
9473 hardcode_minus_L=yes
9474 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9475 # Neither direct hardcoding nor static linking is supported with a
9476 # broken collect2.
9477 hardcode_direct=unsupported
9481 aix[4-9]*)
9482 if test "$host_cpu" = ia64; then
9483 # On IA64, the linker does run time linking by default, so we don't
9484 # have to do anything special.
9485 aix_use_runtimelinking=no
9486 exp_sym_flag='-Bexport'
9487 no_entry_flag=""
9488 else
9489 # If we're using GNU nm, then we don't want the "-C" option.
9490 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9491 # Also, AIX nm treats weak defined symbols like other global
9492 # defined symbols, whereas GNU nm marks them as "W".
9493 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9494 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'
9495 else
9496 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'
9498 aix_use_runtimelinking=no
9500 # Test if we are trying to use run time linking or normal
9501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9502 # need to do runtime linking.
9503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9504 for ld_flag in $LDFLAGS; do
9505 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9506 aix_use_runtimelinking=yes
9507 break
9509 done
9511 esac
9513 exp_sym_flag='-bexport'
9514 no_entry_flag='-bnoentry'
9517 # When large executables or shared objects are built, AIX ld can
9518 # have problems creating the table of contents. If linking a library
9519 # or program results in "error TOC overflow" add -mminimal-toc to
9520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9523 archive_cmds=''
9524 hardcode_direct=yes
9525 hardcode_direct_absolute=yes
9526 hardcode_libdir_separator=':'
9527 link_all_deplibs=yes
9528 file_list_spec='${wl}-f,'
9530 if test "$GCC" = yes; then
9531 case $host_os in aix4.[012]|aix4.[012].*)
9532 # We only want to do this on AIX 4.2 and lower, the check
9533 # below for broken collect2 doesn't work under 4.3+
9534 collect2name=`${CC} -print-prog-name=collect2`
9535 if test -f "$collect2name" &&
9536 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9537 then
9538 # We have reworked collect2
9540 else
9541 # We have old collect2
9542 hardcode_direct=unsupported
9543 # It fails to find uninstalled libraries when the uninstalled
9544 # path is not listed in the libpath. Setting hardcode_minus_L
9545 # to unsupported forces relinking
9546 hardcode_minus_L=yes
9547 hardcode_libdir_flag_spec='-L$libdir'
9548 hardcode_libdir_separator=
9551 esac
9552 shared_flag='-shared'
9553 if test "$aix_use_runtimelinking" = yes; then
9554 shared_flag="$shared_flag "'${wl}-G'
9556 else
9557 # not using gcc
9558 if test "$host_cpu" = ia64; then
9559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9560 # chokes on -Wl,-G. The following line is correct:
9561 shared_flag='-G'
9562 else
9563 if test "$aix_use_runtimelinking" = yes; then
9564 shared_flag='${wl}-G'
9565 else
9566 shared_flag='${wl}-bM:SRE'
9571 export_dynamic_flag_spec='${wl}-bexpall'
9572 # It seems that -bexpall does not export symbols beginning with
9573 # underscore (_), so it is better to generate a list of symbols to export.
9574 always_export_symbols=yes
9575 if test "$aix_use_runtimelinking" = yes; then
9576 # Warning - without using the other runtime loading flags (-brtl),
9577 # -berok will link without error, but may produce a broken library.
9578 allow_undefined_flag='-berok'
9579 # Determine the default libpath from the value encoded in an
9580 # empty executable.
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9585 main ()
9589 return 0;
9591 _ACEOF
9592 if ac_fn_c_try_link "$LINENO"; then :
9594 lt_aix_libpath_sed='
9595 /Import File Strings/,/^$/ {
9596 /^0/ {
9597 s/^0 *\(.*\)$/\1/
9601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9602 # Check for a 64-bit object if we didn't find anything.
9603 if test -z "$aix_libpath"; then
9604 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9611 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9612 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"
9613 else
9614 if test "$host_cpu" = ia64; then
9615 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9616 allow_undefined_flag="-z nodefs"
9617 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"
9618 else
9619 # Determine the default libpath from the value encoded in an
9620 # empty executable.
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9625 main ()
9629 return 0;
9631 _ACEOF
9632 if ac_fn_c_try_link "$LINENO"; then :
9634 lt_aix_libpath_sed='
9635 /Import File Strings/,/^$/ {
9636 /^0/ {
9637 s/^0 *\(.*\)$/\1/
9641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9642 # Check for a 64-bit object if we didn't find anything.
9643 if test -z "$aix_libpath"; then
9644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9651 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9652 # Warning - without using the other run time loading flags,
9653 # -berok will link without error, but may produce a broken library.
9654 no_undefined_flag=' ${wl}-bernotok'
9655 allow_undefined_flag=' ${wl}-berok'
9656 if test "$with_gnu_ld" = yes; then
9657 # We only use this code for GNU lds that support --whole-archive.
9658 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9659 else
9660 # Exported symbols can be pulled into shared objects from archives
9661 whole_archive_flag_spec='$convenience'
9663 archive_cmds_need_lc=yes
9664 # This is similar to how AIX traditionally builds its shared libraries.
9665 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'
9670 amigaos*)
9671 case $host_cpu in
9672 powerpc)
9673 # see comment about AmigaOS4 .so support
9674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9675 archive_expsym_cmds=''
9677 m68k)
9678 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)'
9679 hardcode_libdir_flag_spec='-L$libdir'
9680 hardcode_minus_L=yes
9682 esac
9685 bsdi[45]*)
9686 export_dynamic_flag_spec=-rdynamic
9689 cygwin* | mingw* | pw32* | cegcc*)
9690 # When not using gcc, we currently assume that we are using
9691 # Microsoft Visual C++.
9692 # hardcode_libdir_flag_spec is actually meaningless, as there is
9693 # no search path for DLLs.
9694 hardcode_libdir_flag_spec=' '
9695 allow_undefined_flag=unsupported
9696 # Tell ltmain to make .lib files, not .a files.
9697 libext=lib
9698 # Tell ltmain to make .dll files, not .so files.
9699 shrext_cmds=".dll"
9700 # FIXME: Setting linknames here is a bad hack.
9701 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9702 # The linker will automatically build a .lib file if we build a DLL.
9703 old_archive_from_new_cmds='true'
9704 # FIXME: Should let the user specify the lib program.
9705 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9706 fix_srcfile_path='`cygpath -w "$srcfile"`'
9707 enable_shared_with_static_runtimes=yes
9710 darwin* | rhapsody*)
9713 archive_cmds_need_lc=no
9714 hardcode_direct=no
9715 hardcode_automatic=yes
9716 hardcode_shlibpath_var=unsupported
9717 if test "$lt_cv_ld_force_load" = "yes"; then
9718 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\"`'
9719 else
9720 whole_archive_flag_spec=''
9722 link_all_deplibs=yes
9723 allow_undefined_flag="$_lt_dar_allow_undefined"
9724 case $cc_basename in
9725 ifort*) _lt_dar_can_shared=yes ;;
9726 *) _lt_dar_can_shared=$GCC ;;
9727 esac
9728 if test "$_lt_dar_can_shared" = "yes"; then
9729 output_verbose_link_cmd=func_echo_all
9730 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9731 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9732 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}"
9733 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}"
9735 else
9736 ld_shlibs=no
9741 dgux*)
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 hardcode_shlibpath_var=no
9747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9748 # support. Future versions do this automatically, but an explicit c++rt0.o
9749 # does not break anything, and helps significantly (at the cost of a little
9750 # extra space).
9751 freebsd2.2*)
9752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9753 hardcode_libdir_flag_spec='-R$libdir'
9754 hardcode_direct=yes
9755 hardcode_shlibpath_var=no
9758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9759 freebsd2.*)
9760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9761 hardcode_direct=yes
9762 hardcode_minus_L=yes
9763 hardcode_shlibpath_var=no
9766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9767 freebsd* | dragonfly*)
9768 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9769 hardcode_libdir_flag_spec='-R$libdir'
9770 hardcode_direct=yes
9771 hardcode_shlibpath_var=no
9774 hpux9*)
9775 if test "$GCC" = yes; then
9776 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'
9777 else
9778 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'
9780 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9781 hardcode_libdir_separator=:
9782 hardcode_direct=yes
9784 # hardcode_minus_L: Not really in the search PATH,
9785 # but as the default location of the library.
9786 hardcode_minus_L=yes
9787 export_dynamic_flag_spec='${wl}-E'
9790 hpux10*)
9791 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9792 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9793 else
9794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9796 if test "$with_gnu_ld" = no; then
9797 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9798 hardcode_libdir_flag_spec_ld='+b $libdir'
9799 hardcode_libdir_separator=:
9800 hardcode_direct=yes
9801 hardcode_direct_absolute=yes
9802 export_dynamic_flag_spec='${wl}-E'
9803 # hardcode_minus_L: Not really in the search PATH,
9804 # but as the default location of the library.
9805 hardcode_minus_L=yes
9809 hpux11*)
9810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9811 case $host_cpu in
9812 hppa*64*)
9813 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9815 ia64*)
9816 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9819 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9821 esac
9822 else
9823 case $host_cpu in
9824 hppa*64*)
9825 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9827 ia64*)
9828 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9832 # Older versions of the 11.00 compiler do not understand -b yet
9833 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9835 $as_echo_n "checking if $CC understands -b... " >&6; }
9836 if ${lt_cv_prog_compiler__b+:} false; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 lt_cv_prog_compiler__b=no
9840 save_LDFLAGS="$LDFLAGS"
9841 LDFLAGS="$LDFLAGS -b"
9842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9844 # The linker can only warn and ignore the option if not recognized
9845 # So say no if there are warnings
9846 if test -s conftest.err; then
9847 # Append any errors to the config.log.
9848 cat conftest.err 1>&5
9849 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9851 if diff conftest.exp conftest.er2 >/dev/null; then
9852 lt_cv_prog_compiler__b=yes
9854 else
9855 lt_cv_prog_compiler__b=yes
9858 $RM -r conftest*
9859 LDFLAGS="$save_LDFLAGS"
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9863 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9865 if test x"$lt_cv_prog_compiler__b" = xyes; then
9866 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867 else
9868 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9872 esac
9874 if test "$with_gnu_ld" = no; then
9875 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9876 hardcode_libdir_separator=:
9878 case $host_cpu in
9879 hppa*64*|ia64*)
9880 hardcode_direct=no
9881 hardcode_shlibpath_var=no
9884 hardcode_direct=yes
9885 hardcode_direct_absolute=yes
9886 export_dynamic_flag_spec='${wl}-E'
9888 # hardcode_minus_L: Not really in the search PATH,
9889 # but as the default location of the library.
9890 hardcode_minus_L=yes
9892 esac
9896 irix5* | irix6* | nonstopux*)
9897 if test "$GCC" = yes; then
9898 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'
9899 # Try to use the -exported_symbol ld option, if it does not
9900 # work, assume that -exports_file does not work either and
9901 # implicitly export all symbols.
9902 save_LDFLAGS="$LDFLAGS"
9903 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h. */
9906 int foo(void) {}
9907 _ACEOF
9908 if ac_fn_c_try_link "$LINENO"; then :
9909 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'
9912 rm -f core conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
9914 LDFLAGS="$save_LDFLAGS"
9915 else
9916 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'
9917 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'
9919 archive_cmds_need_lc='no'
9920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9921 hardcode_libdir_separator=:
9922 inherit_rpath=yes
9923 link_all_deplibs=yes
9926 netbsd*)
9927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9929 else
9930 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9932 hardcode_libdir_flag_spec='-R$libdir'
9933 hardcode_direct=yes
9934 hardcode_shlibpath_var=no
9937 newsos6)
9938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_direct=yes
9940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9941 hardcode_libdir_separator=:
9942 hardcode_shlibpath_var=no
9945 *nto* | *qnx*)
9948 openbsd*)
9949 if test -f /usr/libexec/ld.so; then
9950 hardcode_direct=yes
9951 hardcode_shlibpath_var=no
9952 hardcode_direct_absolute=yes
9953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9955 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9957 export_dynamic_flag_spec='${wl}-E'
9958 else
9959 case $host_os in
9960 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_libdir_flag_spec='-R$libdir'
9965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9968 esac
9970 else
9971 ld_shlibs=no
9975 os2*)
9976 hardcode_libdir_flag_spec='-L$libdir'
9977 hardcode_minus_L=yes
9978 allow_undefined_flag=unsupported
9979 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'
9980 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9983 osf3*)
9984 if test "$GCC" = yes; then
9985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9986 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'
9987 else
9988 allow_undefined_flag=' -expect_unresolved \*'
9989 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'
9991 archive_cmds_need_lc='no'
9992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9993 hardcode_libdir_separator=:
9996 osf4* | osf5*) # as osf3* with the addition of -msym flag
9997 if test "$GCC" = yes; then
9998 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9999 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'
10000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10001 else
10002 allow_undefined_flag=' -expect_unresolved \*'
10003 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'
10004 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~
10005 $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'
10007 # Both c and cxx compiler support -rpath directly
10008 hardcode_libdir_flag_spec='-rpath $libdir'
10010 archive_cmds_need_lc='no'
10011 hardcode_libdir_separator=:
10014 solaris*)
10015 no_undefined_flag=' -z defs'
10016 if test "$GCC" = yes; then
10017 wlarc='${wl}'
10018 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10020 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10021 else
10022 case `$CC -V 2>&1` in
10023 *"Compilers 5.0"*)
10024 wlarc=''
10025 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10027 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10030 wlarc='${wl}'
10031 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10033 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10035 esac
10037 hardcode_libdir_flag_spec='-R$libdir'
10038 hardcode_shlibpath_var=no
10039 case $host_os in
10040 solaris2.[0-5] | solaris2.[0-5].*) ;;
10042 # The compiler driver will combine and reorder linker options,
10043 # but understands `-z linker_flag'. GCC discards it without `$wl',
10044 # but is careful enough not to reorder.
10045 # Supported since Solaris 2.6 (maybe 2.5.1?)
10046 if test "$GCC" = yes; then
10047 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10048 else
10049 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10052 esac
10053 link_all_deplibs=yes
10056 sunos4*)
10057 if test "x$host_vendor" = xsequent; then
10058 # Use $CC to link under sequent, because it throws in some extra .o
10059 # files that make .init and .fini sections work.
10060 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10061 else
10062 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_libdir_flag_spec='-L$libdir'
10065 hardcode_direct=yes
10066 hardcode_minus_L=yes
10067 hardcode_shlibpath_var=no
10070 sysv4)
10071 case $host_vendor in
10072 sni)
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_direct=yes # is this really true???
10076 siemens)
10077 ## LD is ld it makes a PLAMLIB
10078 ## CC just makes a GrossModule.
10079 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10080 reload_cmds='$CC -r -o $output$reload_objs'
10081 hardcode_direct=no
10083 motorola)
10084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10087 esac
10088 runpath_var='LD_RUN_PATH'
10089 hardcode_shlibpath_var=no
10092 sysv4.3*)
10093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_shlibpath_var=no
10095 export_dynamic_flag_spec='-Bexport'
10098 sysv4*MP*)
10099 if test -d /usr/nec; then
10100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_shlibpath_var=no
10102 runpath_var=LD_RUN_PATH
10103 hardcode_runpath_var=yes
10104 ld_shlibs=yes
10108 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10109 no_undefined_flag='${wl}-z,text'
10110 archive_cmds_need_lc=no
10111 hardcode_shlibpath_var=no
10112 runpath_var='LD_RUN_PATH'
10114 if test "$GCC" = yes; then
10115 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 else
10118 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 sysv5* | sco3.2v5* | sco5v6*)
10124 # Note: We can NOT use -z defs as we might desire, because we do not
10125 # link with -lc, and that would cause any symbols used from libc to
10126 # always be unresolved, which means just about no library would
10127 # ever link correctly. If we're not using GNU ld we use -z text
10128 # though, which does catch some bad symbols but isn't as heavy-handed
10129 # as -z defs.
10130 no_undefined_flag='${wl}-z,text'
10131 allow_undefined_flag='${wl}-z,nodefs'
10132 archive_cmds_need_lc=no
10133 hardcode_shlibpath_var=no
10134 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10135 hardcode_libdir_separator=':'
10136 link_all_deplibs=yes
10137 export_dynamic_flag_spec='${wl}-Bexport'
10138 runpath_var='LD_RUN_PATH'
10140 if test "$GCC" = yes; then
10141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 else
10144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 uts4*)
10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_libdir_flag_spec='-L$libdir'
10152 hardcode_shlibpath_var=no
10156 ld_shlibs=no
10158 esac
10160 if test x$host_vendor = xsni; then
10161 case $host in
10162 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10163 export_dynamic_flag_spec='${wl}-Blargedynsym'
10165 esac
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10170 $as_echo "$ld_shlibs" >&6; }
10171 test "$ld_shlibs" = no && can_build_shared=no
10173 with_gnu_ld=$with_gnu_ld
10190 # Do we need to explicitly link libc?
10192 case "x$archive_cmds_need_lc" in
10193 x|xyes)
10194 # Assume -lc should be added
10195 archive_cmds_need_lc=yes
10197 if test "$enable_shared" = yes && test "$GCC" = yes; then
10198 case $archive_cmds in
10199 *'~'*)
10200 # FIXME: we may have to deal with multi-command sequences.
10202 '$CC '*)
10203 # Test whether the compiler implicitly links with -lc since on some
10204 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10205 # to ld, don't add -lc before -lgcc.
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10207 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10208 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 $RM conftest*
10212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10215 (eval $ac_compile) 2>&5
10216 ac_status=$?
10217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10218 test $ac_status = 0; } 2>conftest.err; then
10219 soname=conftest
10220 lib=conftest
10221 libobjs=conftest.$ac_objext
10222 deplibs=
10223 wl=$lt_prog_compiler_wl
10224 pic_flag=$lt_prog_compiler_pic
10225 compiler_flags=-v
10226 linker_flags=-v
10227 verstring=
10228 output_objdir=.
10229 libname=conftest
10230 lt_save_allow_undefined_flag=$allow_undefined_flag
10231 allow_undefined_flag=
10232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10233 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10234 ac_status=$?
10235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10236 test $ac_status = 0; }
10237 then
10238 lt_cv_archive_cmds_need_lc=no
10239 else
10240 lt_cv_archive_cmds_need_lc=yes
10242 allow_undefined_flag=$lt_save_allow_undefined_flag
10243 else
10244 cat conftest.err 1>&5
10246 $RM conftest*
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10250 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10251 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10253 esac
10256 esac
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10415 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10417 if test "$GCC" = yes; then
10418 case $host_os in
10419 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10420 *) lt_awk_arg="/^libraries:/" ;;
10421 esac
10422 case $host_os in
10423 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10424 *) lt_sed_strip_eq="s,=/,/,g" ;;
10425 esac
10426 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10427 case $lt_search_path_spec in
10428 *\;*)
10429 # if the path contains ";" then we assume it to be the separator
10430 # otherwise default to the standard path separator (i.e. ":") - it is
10431 # assumed that no part of a normal pathname contains ";" but that should
10432 # okay in the real world where ";" in dirpaths is itself problematic.
10433 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10438 esac
10439 # Ok, now we have the path, separated by spaces, we can step through it
10440 # and add multilib dir if necessary.
10441 lt_tmp_lt_search_path_spec=
10442 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10443 for lt_sys_path in $lt_search_path_spec; do
10444 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10445 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10446 else
10447 test -d "$lt_sys_path" && \
10448 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10450 done
10451 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10452 BEGIN {RS=" "; FS="/|\n";} {
10453 lt_foo="";
10454 lt_count=0;
10455 for (lt_i = NF; lt_i > 0; lt_i--) {
10456 if ($lt_i != "" && $lt_i != ".") {
10457 if ($lt_i == "..") {
10458 lt_count++;
10459 } else {
10460 if (lt_count == 0) {
10461 lt_foo="/" $lt_i lt_foo;
10462 } else {
10463 lt_count--;
10468 if (lt_foo != "") { lt_freq[lt_foo]++; }
10469 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10471 # AWK program above erroneously prepends '/' to C:/dos/paths
10472 # for these hosts.
10473 case $host_os in
10474 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10475 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10476 esac
10477 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10478 else
10479 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10481 library_names_spec=
10482 libname_spec='lib$name'
10483 soname_spec=
10484 shrext_cmds=".so"
10485 postinstall_cmds=
10486 postuninstall_cmds=
10487 finish_cmds=
10488 finish_eval=
10489 shlibpath_var=
10490 shlibpath_overrides_runpath=unknown
10491 version_type=none
10492 dynamic_linker="$host_os ld.so"
10493 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10494 need_lib_prefix=unknown
10495 hardcode_into_libs=no
10497 # when you set need_version to no, make sure it does not cause -set_version
10498 # flags to be left without arguments
10499 need_version=unknown
10501 case $host_os in
10502 aix3*)
10503 version_type=linux
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10505 shlibpath_var=LIBPATH
10507 # AIX 3 has no versioning support, so we append a major version to the name.
10508 soname_spec='${libname}${release}${shared_ext}$major'
10511 aix[4-9]*)
10512 version_type=linux
10513 need_lib_prefix=no
10514 need_version=no
10515 hardcode_into_libs=yes
10516 if test "$host_cpu" = ia64; then
10517 # AIX 5 supports IA64
10518 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 else
10521 # With GCC up to 2.95.x, collect2 would create an import file
10522 # for dependence libraries. The import file would start with
10523 # the line `#! .'. This would cause the generated library to
10524 # depend on `.', always an invalid library. This was fixed in
10525 # development snapshots of GCC prior to 3.0.
10526 case $host_os in
10527 aix4 | aix4.[01] | aix4.[01].*)
10528 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10529 echo ' yes '
10530 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10532 else
10533 can_build_shared=no
10536 esac
10537 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10538 # soname into executable. Probably we can add versioning support to
10539 # collect2, so additional links can be useful in future.
10540 if test "$aix_use_runtimelinking" = yes; then
10541 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10542 # instead of lib<name>.a to let people know that these are not
10543 # typical AIX shared libraries.
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 else
10546 # We preserve .a as extension for shared libraries through AIX4.2
10547 # and later when we are not doing run time linking.
10548 library_names_spec='${libname}${release}.a $libname.a'
10549 soname_spec='${libname}${release}${shared_ext}$major'
10551 shlibpath_var=LIBPATH
10555 amigaos*)
10556 case $host_cpu in
10557 powerpc)
10558 # Since July 2007 AmigaOS4 officially supports .so libraries.
10559 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 m68k)
10563 library_names_spec='$libname.ixlibrary $libname.a'
10564 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10565 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'
10567 esac
10570 beos*)
10571 library_names_spec='${libname}${shared_ext}'
10572 dynamic_linker="$host_os ld.so"
10573 shlibpath_var=LIBRARY_PATH
10576 bsdi[45]*)
10577 version_type=linux
10578 need_version=no
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10585 # the default ld.so.conf also contains /usr/contrib/lib and
10586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10587 # libtool to hard-code these into programs
10590 cygwin* | mingw* | pw32* | cegcc*)
10591 version_type=windows
10592 shrext_cmds=".dll"
10593 need_version=no
10594 need_lib_prefix=no
10596 case $GCC,$host_os in
10597 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10598 library_names_spec='$libname.dll.a'
10599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10600 postinstall_cmds='base_file=`basename \${file}`~
10601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10602 dldir=$destdir/`dirname \$dlpath`~
10603 test -d \$dldir || mkdir -p \$dldir~
10604 $install_prog $dir/$dlname \$dldir/$dlname~
10605 chmod a+x \$dldir/$dlname~
10606 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10607 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10610 dlpath=$dir/\$dldll~
10611 $RM \$dlpath'
10612 shlibpath_overrides_runpath=yes
10614 case $host_os in
10615 cygwin*)
10616 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10617 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10619 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10621 mingw* | cegcc*)
10622 # MinGW DLLs use traditional 'lib' prefix
10623 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10625 pw32*)
10626 # pw32 DLLs use 'pw' prefix rather than 'lib'
10627 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10629 esac
10633 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10635 esac
10636 dynamic_linker='Win32 ld.exe'
10637 # FIXME: first we should search . and the directory the executable is in
10638 shlibpath_var=PATH
10641 darwin* | rhapsody*)
10642 dynamic_linker="$host_os dyld"
10643 version_type=darwin
10644 need_lib_prefix=no
10645 need_version=no
10646 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10647 soname_spec='${libname}${release}${major}$shared_ext'
10648 shlibpath_overrides_runpath=yes
10649 shlibpath_var=DYLD_LIBRARY_PATH
10650 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10652 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10656 dgux*)
10657 version_type=linux
10658 need_lib_prefix=no
10659 need_version=no
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 shlibpath_var=LD_LIBRARY_PATH
10665 freebsd* | dragonfly*)
10666 # DragonFly does not have aout. When/if they implement a new
10667 # versioning mechanism, adjust this.
10668 if test -x /usr/bin/objformat; then
10669 objformat=`/usr/bin/objformat`
10670 else
10671 case $host_os in
10672 freebsd[23].*) objformat=aout ;;
10673 *) objformat=elf ;;
10674 esac
10676 version_type=freebsd-$objformat
10677 case $version_type in
10678 freebsd-elf*)
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10680 need_version=no
10681 need_lib_prefix=no
10683 freebsd-*)
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10685 need_version=yes
10687 esac
10688 shlibpath_var=LD_LIBRARY_PATH
10689 case $host_os in
10690 freebsd2.*)
10691 shlibpath_overrides_runpath=yes
10693 freebsd3.[01]* | freebsdelf3.[01]*)
10694 shlibpath_overrides_runpath=yes
10695 hardcode_into_libs=yes
10697 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10698 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10699 shlibpath_overrides_runpath=no
10700 hardcode_into_libs=yes
10702 *) # from 4.6 on, and DragonFly
10703 shlibpath_overrides_runpath=yes
10704 hardcode_into_libs=yes
10706 esac
10709 haiku*)
10710 version_type=linux
10711 need_lib_prefix=no
10712 need_version=no
10713 dynamic_linker="$host_os runtime_loader"
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LIBRARY_PATH
10717 shlibpath_overrides_runpath=yes
10718 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10719 hardcode_into_libs=yes
10722 hpux9* | hpux10* | hpux11*)
10723 # Give a soname corresponding to the major version so that dld.sl refuses to
10724 # link against other versions.
10725 version_type=sunos
10726 need_lib_prefix=no
10727 need_version=no
10728 case $host_cpu in
10729 ia64*)
10730 shrext_cmds='.so'
10731 hardcode_into_libs=yes
10732 dynamic_linker="$host_os dld.so"
10733 shlibpath_var=LD_LIBRARY_PATH
10734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 soname_spec='${libname}${release}${shared_ext}$major'
10737 if test "X$HPUX_IA64_MODE" = X32; then
10738 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10739 else
10740 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10744 hppa*64*)
10745 shrext_cmds='.sl'
10746 hardcode_into_libs=yes
10747 dynamic_linker="$host_os dld.sl"
10748 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10756 shrext_cmds='.sl'
10757 dynamic_linker="$host_os dld.sl"
10758 shlibpath_var=SHLIB_PATH
10759 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10763 esac
10764 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10765 postinstall_cmds='chmod 555 $lib'
10766 # or fails outright, so override atomically:
10767 install_override_mode=555
10770 interix[3-9]*)
10771 version_type=linux
10772 need_lib_prefix=no
10773 need_version=no
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=no
10779 hardcode_into_libs=yes
10782 irix5* | irix6* | nonstopux*)
10783 case $host_os in
10784 nonstopux*) version_type=nonstopux ;;
10786 if test "$lt_cv_prog_gnu_ld" = yes; then
10787 version_type=linux
10788 else
10789 version_type=irix
10790 fi ;;
10791 esac
10792 need_lib_prefix=no
10793 need_version=no
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10796 case $host_os in
10797 irix5* | nonstopux*)
10798 libsuff= shlibsuff=
10801 case $LD in # libtool.m4 will add one of these switches to LD
10802 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10803 libsuff= shlibsuff= libmagic=32-bit;;
10804 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10805 libsuff=32 shlibsuff=N32 libmagic=N32;;
10806 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10807 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10808 *) libsuff= shlibsuff= libmagic=never-match;;
10809 esac
10811 esac
10812 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10813 shlibpath_overrides_runpath=no
10814 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10815 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10816 hardcode_into_libs=yes
10819 # No shared lib support for Linux oldld, aout, or coff.
10820 linux*oldld* | linux*aout* | linux*coff*)
10821 dynamic_linker=no
10824 # This must be Linux ELF.
10826 # uclinux* changes (here and below) have been submitted to the libtool
10827 # project, but have not yet been accepted: they are GCC-local changes
10828 # for the time being. (See
10829 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10830 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10831 version_type=linux
10832 need_lib_prefix=no
10833 need_version=no
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 shlibpath_overrides_runpath=no
10840 # Some binutils ld are patched to set DT_RUNPATH
10841 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 lt_cv_shlibpath_overrides_runpath=no
10845 save_LDFLAGS=$LDFLAGS
10846 save_libdir=$libdir
10847 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10848 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10853 main ()
10857 return 0;
10859 _ACEOF
10860 if ac_fn_c_try_link "$LINENO"; then :
10861 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10862 lt_cv_shlibpath_overrides_runpath=yes
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 LDFLAGS=$save_LDFLAGS
10868 libdir=$save_libdir
10872 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10874 # This implies no fast_install, which is unacceptable.
10875 # Some rework will be needed to allow for fast_install
10876 # before this can be enabled.
10877 hardcode_into_libs=yes
10879 # Append ld.so.conf contents to the search path
10880 if test -f /etc/ld.so.conf; then
10881 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' ' '`
10882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10885 # We used to test for /lib/ld.so.1 and disable shared libraries on
10886 # powerpc, because MkLinux only supported shared libraries with the
10887 # GNU dynamic linker. Since this was broken with cross compilers,
10888 # most powerpc-linux boxes support dynamic linking these days and
10889 # people can always --disable-shared, the test was removed, and we
10890 # assume the GNU/Linux dynamic linker is in use.
10891 dynamic_linker='GNU/Linux ld.so'
10894 netbsd*)
10895 version_type=sunos
10896 need_lib_prefix=no
10897 need_version=no
10898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10901 dynamic_linker='NetBSD (a.out) ld.so'
10902 else
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 dynamic_linker='NetBSD ld.elf_so'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=yes
10909 hardcode_into_libs=yes
10912 newsos6)
10913 version_type=linux
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=yes
10919 *nto* | *qnx*)
10920 version_type=qnx
10921 need_lib_prefix=no
10922 need_version=no
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=no
10927 hardcode_into_libs=yes
10928 dynamic_linker='ldqnx.so'
10931 openbsd*)
10932 version_type=sunos
10933 sys_lib_dlsearch_path_spec="/usr/lib"
10934 need_lib_prefix=no
10935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10936 case $host_os in
10937 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10938 *) need_version=no ;;
10939 esac
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10944 case $host_os in
10945 openbsd2.[89] | openbsd2.[89].*)
10946 shlibpath_overrides_runpath=no
10949 shlibpath_overrides_runpath=yes
10951 esac
10952 else
10953 shlibpath_overrides_runpath=yes
10957 os2*)
10958 libname_spec='$name'
10959 shrext_cmds=".dll"
10960 need_lib_prefix=no
10961 library_names_spec='$libname${shared_ext} $libname.a'
10962 dynamic_linker='OS/2 ld.exe'
10963 shlibpath_var=LIBPATH
10966 osf3* | osf4* | osf5*)
10967 version_type=osf
10968 need_lib_prefix=no
10969 need_version=no
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10977 rdos*)
10978 dynamic_linker=no
10981 solaris*)
10982 version_type=linux
10983 need_lib_prefix=no
10984 need_version=no
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=yes
10989 hardcode_into_libs=yes
10990 # ldd complains unless libraries are executable
10991 postinstall_cmds='chmod +x $lib'
10994 sunos4*)
10995 version_type=sunos
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=yes
11000 if test "$with_gnu_ld" = yes; then
11001 need_lib_prefix=no
11003 need_version=yes
11006 sysv4 | sysv4.3*)
11007 version_type=linux
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 case $host_vendor in
11012 sni)
11013 shlibpath_overrides_runpath=no
11014 need_lib_prefix=no
11015 runpath_var=LD_RUN_PATH
11017 siemens)
11018 need_lib_prefix=no
11020 motorola)
11021 need_lib_prefix=no
11022 need_version=no
11023 shlibpath_overrides_runpath=no
11024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11026 esac
11029 sysv4*MP*)
11030 if test -d /usr/nec ;then
11031 version_type=linux
11032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11033 soname_spec='$libname${shared_ext}.$major'
11034 shlibpath_var=LD_LIBRARY_PATH
11038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11039 version_type=freebsd-elf
11040 need_lib_prefix=no
11041 need_version=no
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=yes
11046 hardcode_into_libs=yes
11047 if test "$with_gnu_ld" = yes; then
11048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11049 else
11050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11051 case $host_os in
11052 sco3.2v5*)
11053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11055 esac
11057 sys_lib_dlsearch_path_spec='/usr/lib'
11060 tpf*)
11061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11062 version_type=linux
11063 need_lib_prefix=no
11064 need_version=no
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11068 hardcode_into_libs=yes
11071 uts4*)
11072 version_type=linux
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 shlibpath_var=LD_LIBRARY_PATH
11078 # Shared libraries for VwWorks, >= 7 only at this stage
11079 # and (fpic) still incompatible with "large" code models
11080 # in a few configurations. Only for RTP mode in any case,
11081 # and upon explicit request at configure time.
11082 vxworks7*)
11083 dynamic_linker=no
11084 case ${with_multisubdir}-${enable_shared} in
11085 *large*)
11087 *mrtp*-yes)
11088 version_type=linux
11089 need_lib_prefix=no
11090 need_version=no
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 dynamic_linker="$host_os module_loader"
11095 esac
11098 dynamic_linker=no
11100 esac
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11102 $as_echo "$dynamic_linker" >&6; }
11103 test "$dynamic_linker" = no && can_build_shared=no
11105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11106 if test "$GCC" = yes; then
11107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11110 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11111 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11113 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11114 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11209 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11210 hardcode_action=
11211 if test -n "$hardcode_libdir_flag_spec" ||
11212 test -n "$runpath_var" ||
11213 test "X$hardcode_automatic" = "Xyes" ; then
11215 # We can hardcode non-existent directories.
11216 if test "$hardcode_direct" != no &&
11217 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11218 # have to relink, otherwise we might link with an installed library
11219 # when we should be linking with a yet-to-be-installed one
11220 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11221 test "$hardcode_minus_L" != no; then
11222 # Linking always hardcodes the temporary library directory.
11223 hardcode_action=relink
11224 else
11225 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11226 hardcode_action=immediate
11228 else
11229 # We cannot hardcode anything, or else we can only hardcode existing
11230 # directories.
11231 hardcode_action=unsupported
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11234 $as_echo "$hardcode_action" >&6; }
11236 if test "$hardcode_action" = relink ||
11237 test "$inherit_rpath" = yes; then
11238 # Fast installation is not supported
11239 enable_fast_install=no
11240 elif test "$shlibpath_overrides_runpath" = yes ||
11241 test "$enable_shared" = no; then
11242 # Fast installation is not necessary
11243 enable_fast_install=needless
11251 if test "x$enable_dlopen" != xyes; then
11252 enable_dlopen=unknown
11253 enable_dlopen_self=unknown
11254 enable_dlopen_self_static=unknown
11255 else
11256 lt_cv_dlopen=no
11257 lt_cv_dlopen_libs=
11259 case $host_os in
11260 beos*)
11261 lt_cv_dlopen="load_add_on"
11262 lt_cv_dlopen_libs=
11263 lt_cv_dlopen_self=yes
11266 mingw* | pw32* | cegcc*)
11267 lt_cv_dlopen="LoadLibrary"
11268 lt_cv_dlopen_libs=
11271 cygwin*)
11272 lt_cv_dlopen="dlopen"
11273 lt_cv_dlopen_libs=
11276 darwin*)
11277 # if libdl is installed we need to link against it
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11279 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11280 if ${ac_cv_lib_dl_dlopen+:} false; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 ac_check_lib_save_LIBS=$LIBS
11284 LIBS="-ldl $LIBS"
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11288 /* Override any GCC internal prototype to avoid an error.
11289 Use char because int might match the return type of a GCC
11290 builtin and then its argument prototype would still apply. */
11291 #ifdef __cplusplus
11292 extern "C"
11293 #endif
11294 char dlopen ();
11296 main ()
11298 return dlopen ();
11300 return 0;
11302 _ACEOF
11303 if ac_fn_c_try_link "$LINENO"; then :
11304 ac_cv_lib_dl_dlopen=yes
11305 else
11306 ac_cv_lib_dl_dlopen=no
11308 rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310 LIBS=$ac_check_lib_save_LIBS
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11313 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11314 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11316 else
11318 lt_cv_dlopen="dyld"
11319 lt_cv_dlopen_libs=
11320 lt_cv_dlopen_self=yes
11327 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11328 if test "x$ac_cv_func_shl_load" = xyes; then :
11329 lt_cv_dlopen="shl_load"
11330 else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11332 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11333 if ${ac_cv_lib_dld_shl_load+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 ac_check_lib_save_LIBS=$LIBS
11337 LIBS="-ldld $LIBS"
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11341 /* Override any GCC internal prototype to avoid an error.
11342 Use char because int might match the return type of a GCC
11343 builtin and then its argument prototype would still apply. */
11344 #ifdef __cplusplus
11345 extern "C"
11346 #endif
11347 char shl_load ();
11349 main ()
11351 return shl_load ();
11353 return 0;
11355 _ACEOF
11356 if ac_fn_c_try_link "$LINENO"; then :
11357 ac_cv_lib_dld_shl_load=yes
11358 else
11359 ac_cv_lib_dld_shl_load=no
11361 rm -f core conftest.err conftest.$ac_objext \
11362 conftest$ac_exeext conftest.$ac_ext
11363 LIBS=$ac_check_lib_save_LIBS
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11366 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11367 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11368 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11369 else
11370 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11371 if test "x$ac_cv_func_dlopen" = xyes; then :
11372 lt_cv_dlopen="dlopen"
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11375 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11376 if ${ac_cv_lib_dl_dlopen+:} false; then :
11377 $as_echo_n "(cached) " >&6
11378 else
11379 ac_check_lib_save_LIBS=$LIBS
11380 LIBS="-ldl $LIBS"
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h. */
11384 /* Override any GCC internal prototype to avoid an error.
11385 Use char because int might match the return type of a GCC
11386 builtin and then its argument prototype would still apply. */
11387 #ifdef __cplusplus
11388 extern "C"
11389 #endif
11390 char dlopen ();
11392 main ()
11394 return dlopen ();
11396 return 0;
11398 _ACEOF
11399 if ac_fn_c_try_link "$LINENO"; then :
11400 ac_cv_lib_dl_dlopen=yes
11401 else
11402 ac_cv_lib_dl_dlopen=no
11404 rm -f core conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext conftest.$ac_ext
11406 LIBS=$ac_check_lib_save_LIBS
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11409 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11410 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11412 else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11414 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11415 if ${ac_cv_lib_svld_dlopen+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-lsvld $LIBS"
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 char dlopen ();
11431 main ()
11433 return dlopen ();
11435 return 0;
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 ac_cv_lib_svld_dlopen=yes
11440 else
11441 ac_cv_lib_svld_dlopen=no
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11448 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11449 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11451 else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11453 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11454 if ${ac_cv_lib_dld_dld_link+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-ldld $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char dld_link ();
11470 main ()
11472 return dld_link ();
11474 return 0;
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478 ac_cv_lib_dld_dld_link=yes
11479 else
11480 ac_cv_lib_dld_dld_link=no
11482 rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11487 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11488 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11489 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11508 esac
11510 if test "x$lt_cv_dlopen" != xno; then
11511 enable_dlopen=yes
11512 else
11513 enable_dlopen=no
11516 case $lt_cv_dlopen in
11517 dlopen)
11518 save_CPPFLAGS="$CPPFLAGS"
11519 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11521 save_LDFLAGS="$LDFLAGS"
11522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11524 save_LIBS="$LIBS"
11525 LIBS="$lt_cv_dlopen_libs $LIBS"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11528 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11529 if ${lt_cv_dlopen_self+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 if test "$cross_compiling" = yes; then :
11533 lt_cv_dlopen_self=cross
11534 else
11535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11536 lt_status=$lt_dlunknown
11537 cat > conftest.$ac_ext <<_LT_EOF
11538 #line 11538 "configure"
11539 #include "confdefs.h"
11541 #if HAVE_DLFCN_H
11542 #include <dlfcn.h>
11543 #endif
11545 #include <stdio.h>
11547 #ifdef RTLD_GLOBAL
11548 # define LT_DLGLOBAL RTLD_GLOBAL
11549 #else
11550 # ifdef DL_GLOBAL
11551 # define LT_DLGLOBAL DL_GLOBAL
11552 # else
11553 # define LT_DLGLOBAL 0
11554 # endif
11555 #endif
11557 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11558 find out it does not work in some platform. */
11559 #ifndef LT_DLLAZY_OR_NOW
11560 # ifdef RTLD_LAZY
11561 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11562 # else
11563 # ifdef DL_LAZY
11564 # define LT_DLLAZY_OR_NOW DL_LAZY
11565 # else
11566 # ifdef RTLD_NOW
11567 # define LT_DLLAZY_OR_NOW RTLD_NOW
11568 # else
11569 # ifdef DL_NOW
11570 # define LT_DLLAZY_OR_NOW DL_NOW
11571 # else
11572 # define LT_DLLAZY_OR_NOW 0
11573 # endif
11574 # endif
11575 # endif
11576 # endif
11577 #endif
11579 /* When -fvisbility=hidden is used, assume the code has been annotated
11580 correspondingly for the symbols needed. */
11581 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11582 void fnord () __attribute__((visibility("default")));
11583 #endif
11585 void fnord () { int i=42; }
11586 int main ()
11588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11589 int status = $lt_dlunknown;
11591 if (self)
11593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11594 else
11596 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11597 else puts (dlerror ());
11599 /* dlclose (self); */
11601 else
11602 puts (dlerror ());
11604 return status;
11606 _LT_EOF
11607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11608 (eval $ac_link) 2>&5
11609 ac_status=$?
11610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11611 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11612 (./conftest; exit; ) >&5 2>/dev/null
11613 lt_status=$?
11614 case x$lt_status in
11615 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11616 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11617 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11618 esac
11619 else :
11620 # compilation failed
11621 lt_cv_dlopen_self=no
11624 rm -fr conftest*
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11629 $as_echo "$lt_cv_dlopen_self" >&6; }
11631 if test "x$lt_cv_dlopen_self" = xyes; then
11632 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11634 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11635 if ${lt_cv_dlopen_self_static+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 if test "$cross_compiling" = yes; then :
11639 lt_cv_dlopen_self_static=cross
11640 else
11641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11642 lt_status=$lt_dlunknown
11643 cat > conftest.$ac_ext <<_LT_EOF
11644 #line 11644 "configure"
11645 #include "confdefs.h"
11647 #if HAVE_DLFCN_H
11648 #include <dlfcn.h>
11649 #endif
11651 #include <stdio.h>
11653 #ifdef RTLD_GLOBAL
11654 # define LT_DLGLOBAL RTLD_GLOBAL
11655 #else
11656 # ifdef DL_GLOBAL
11657 # define LT_DLGLOBAL DL_GLOBAL
11658 # else
11659 # define LT_DLGLOBAL 0
11660 # endif
11661 #endif
11663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11664 find out it does not work in some platform. */
11665 #ifndef LT_DLLAZY_OR_NOW
11666 # ifdef RTLD_LAZY
11667 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11668 # else
11669 # ifdef DL_LAZY
11670 # define LT_DLLAZY_OR_NOW DL_LAZY
11671 # else
11672 # ifdef RTLD_NOW
11673 # define LT_DLLAZY_OR_NOW RTLD_NOW
11674 # else
11675 # ifdef DL_NOW
11676 # define LT_DLLAZY_OR_NOW DL_NOW
11677 # else
11678 # define LT_DLLAZY_OR_NOW 0
11679 # endif
11680 # endif
11681 # endif
11682 # endif
11683 #endif
11685 /* When -fvisbility=hidden is used, assume the code has been annotated
11686 correspondingly for the symbols needed. */
11687 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11688 void fnord () __attribute__((visibility("default")));
11689 #endif
11691 void fnord () { int i=42; }
11692 int main ()
11694 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11695 int status = $lt_dlunknown;
11697 if (self)
11699 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11700 else
11702 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11703 else puts (dlerror ());
11705 /* dlclose (self); */
11707 else
11708 puts (dlerror ());
11710 return status;
11712 _LT_EOF
11713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11714 (eval $ac_link) 2>&5
11715 ac_status=$?
11716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11718 (./conftest; exit; ) >&5 2>/dev/null
11719 lt_status=$?
11720 case x$lt_status in
11721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11724 esac
11725 else :
11726 # compilation failed
11727 lt_cv_dlopen_self_static=no
11730 rm -fr conftest*
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11735 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11738 CPPFLAGS="$save_CPPFLAGS"
11739 LDFLAGS="$save_LDFLAGS"
11740 LIBS="$save_LIBS"
11742 esac
11744 case $lt_cv_dlopen_self in
11745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11746 *) enable_dlopen_self=unknown ;;
11747 esac
11749 case $lt_cv_dlopen_self_static in
11750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11751 *) enable_dlopen_self_static=unknown ;;
11752 esac
11771 striplib=
11772 old_striplib=
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11774 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11775 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11776 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11777 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11779 $as_echo "yes" >&6; }
11780 else
11781 # FIXME - insert some real tests, host_os isn't really good enough
11782 case $host_os in
11783 darwin*)
11784 if test -n "$STRIP" ; then
11785 striplib="$STRIP -x"
11786 old_striplib="$STRIP -S"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788 $as_echo "yes" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11798 esac
11812 # Report which library types will actually be built
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11814 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11816 $as_echo "$can_build_shared" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11819 $as_echo_n "checking whether to build shared libraries... " >&6; }
11820 test "$can_build_shared" = "no" && enable_shared=no
11822 # On AIX, shared libraries and static libraries use the same namespace, and
11823 # are all built from PIC.
11824 case $host_os in
11825 aix3*)
11826 test "$enable_shared" = yes && enable_static=no
11827 if test -n "$RANLIB"; then
11828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11829 postinstall_cmds='$RANLIB $lib'
11833 aix[4-9]*)
11834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11835 test "$enable_shared" = yes && enable_static=no
11838 esac
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11840 $as_echo "$enable_shared" >&6; }
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11843 $as_echo_n "checking whether to build static libraries... " >&6; }
11844 # Make sure either enable_shared or enable_static is yes.
11845 test "$enable_shared" = yes || enable_static=yes
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11847 $as_echo "$enable_static" >&6; }
11853 ac_ext=c
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11859 CC="$lt_save_CC"
11873 ac_config_commands="$ac_config_commands libtool"
11878 # Only expand once:
11883 # Check whether --enable-largefile was given.
11884 if test "${enable_largefile+set}" = set; then :
11885 enableval=$enable_largefile;
11888 if test "$enable_largefile" != no; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11891 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11892 if ${ac_cv_sys_largefile_CC+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 ac_cv_sys_largefile_CC=no
11896 if test "$GCC" != yes; then
11897 ac_save_CC=$CC
11898 while :; do
11899 # IRIX 6.2 and later do not support large files by default,
11900 # so use the C compiler's -n32 option if that helps.
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11903 #include <sys/types.h>
11904 /* Check that off_t can represent 2**63 - 1 correctly.
11905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11906 since some C++ compilers masquerading as C compilers
11907 incorrectly reject 9223372036854775807. */
11908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11910 && LARGE_OFF_T % 2147483647 == 1)
11911 ? 1 : -1];
11913 main ()
11917 return 0;
11919 _ACEOF
11920 if ac_fn_c_try_compile "$LINENO"; then :
11921 break
11923 rm -f core conftest.err conftest.$ac_objext
11924 CC="$CC -n32"
11925 if ac_fn_c_try_compile "$LINENO"; then :
11926 ac_cv_sys_largefile_CC=' -n32'; break
11928 rm -f core conftest.err conftest.$ac_objext
11929 break
11930 done
11931 CC=$ac_save_CC
11932 rm -f conftest.$ac_ext
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11936 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11937 if test "$ac_cv_sys_largefile_CC" != no; then
11938 CC=$CC$ac_cv_sys_largefile_CC
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11942 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11943 if ${ac_cv_sys_file_offset_bits+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 while :; do
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949 #include <sys/types.h>
11950 /* Check that off_t can represent 2**63 - 1 correctly.
11951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11952 since some C++ compilers masquerading as C compilers
11953 incorrectly reject 9223372036854775807. */
11954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11956 && LARGE_OFF_T % 2147483647 == 1)
11957 ? 1 : -1];
11959 main ()
11963 return 0;
11965 _ACEOF
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967 ac_cv_sys_file_offset_bits=no; break
11969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 #define _FILE_OFFSET_BITS 64
11973 #include <sys/types.h>
11974 /* Check that off_t can represent 2**63 - 1 correctly.
11975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11976 since some C++ compilers masquerading as C compilers
11977 incorrectly reject 9223372036854775807. */
11978 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11980 && LARGE_OFF_T % 2147483647 == 1)
11981 ? 1 : -1];
11983 main ()
11987 return 0;
11989 _ACEOF
11990 if ac_fn_c_try_compile "$LINENO"; then :
11991 ac_cv_sys_file_offset_bits=64; break
11993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11994 ac_cv_sys_file_offset_bits=unknown
11995 break
11996 done
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11999 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12000 case $ac_cv_sys_file_offset_bits in #(
12001 no | unknown) ;;
12003 cat >>confdefs.h <<_ACEOF
12004 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12005 _ACEOF
12007 esac
12008 rm -rf conftest*
12009 if test $ac_cv_sys_file_offset_bits = unknown; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12011 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12012 if ${ac_cv_sys_large_files+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 while :; do
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 #include <sys/types.h>
12019 /* Check that off_t can represent 2**63 - 1 correctly.
12020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12021 since some C++ compilers masquerading as C compilers
12022 incorrectly reject 9223372036854775807. */
12023 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12025 && LARGE_OFF_T % 2147483647 == 1)
12026 ? 1 : -1];
12028 main ()
12032 return 0;
12034 _ACEOF
12035 if ac_fn_c_try_compile "$LINENO"; then :
12036 ac_cv_sys_large_files=no; break
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12041 #define _LARGE_FILES 1
12042 #include <sys/types.h>
12043 /* Check that off_t can represent 2**63 - 1 correctly.
12044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12045 since some C++ compilers masquerading as C compilers
12046 incorrectly reject 9223372036854775807. */
12047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12049 && LARGE_OFF_T % 2147483647 == 1)
12050 ? 1 : -1];
12052 main ()
12056 return 0;
12058 _ACEOF
12059 if ac_fn_c_try_compile "$LINENO"; then :
12060 ac_cv_sys_large_files=1; break
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 ac_cv_sys_large_files=unknown
12064 break
12065 done
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12068 $as_echo "$ac_cv_sys_large_files" >&6; }
12069 case $ac_cv_sys_large_files in #(
12070 no | unknown) ;;
12072 cat >>confdefs.h <<_ACEOF
12073 #define _LARGE_FILES $ac_cv_sys_large_files
12074 _ACEOF
12076 esac
12077 rm -rf conftest*
12084 backtrace_supported=yes
12086 if test -n "${with_target_subdir}"; then
12087 # We are compiling a GCC library. We can assume that the unwind
12088 # library exists.
12089 BACKTRACE_FILE="backtrace.lo simple.lo"
12090 else
12091 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12092 if test "x$ac_cv_header_unwind_h" = xyes; then :
12093 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12094 if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12095 BACKTRACE_FILE="backtrace.lo simple.lo"
12096 else
12097 BACKTRACE_FILE="nounwind.lo"
12098 backtrace_supported=no
12101 else
12102 BACKTRACE_FILE="nounwind.lo"
12103 backtrace_supported=no
12110 EXTRA_FLAGS=
12111 if test -n "${with_target_subdir}"; then
12112 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12115 $as_echo_n "checking for -funwind-tables option... " >&6; }
12116 if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 CFLAGS_hold="$CFLAGS"
12120 CFLAGS="$CFLAGS -funwind-tables"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123 static int f() { return 0; }
12125 main ()
12127 return f();
12129 return 0;
12131 _ACEOF
12132 if ac_fn_c_try_compile "$LINENO"; then :
12133 libbacktrace_cv_c_unwind_tables=yes
12134 else
12135 libbacktrace_cv_c_unwind_tables=no
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 CFLAGS="$CFLAGS_hold"
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12141 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12142 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12143 EXTRA_FLAGS=-funwind-tables
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12146 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
12147 if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 CFLAGS_hold="$CFLAGS"
12151 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12156 main ()
12158 return 0;
12160 return 0;
12162 _ACEOF
12163 if ac_fn_c_try_compile "$LINENO"; then :
12164 libbacktrace_cv_c_random_seed_string=yes
12165 else
12166 libbacktrace_cv_c_random_seed_string=no
12168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12169 CFLAGS="$CFLAGS_hold"
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12172 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12173 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12174 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12178 if test -n "${with_target_subdir}"; then
12179 # Add CET specific flags is Intel CET is enabled.
12180 # Check whether --enable-cet was given.
12181 if test "${enable_cet+set}" = set; then :
12182 enableval=$enable_cet;
12183 case "$enableval" in
12184 yes|no|auto) ;;
12185 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12186 esac
12188 else
12189 enable_cet=auto
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12194 $as_echo_n "checking for CET support... " >&6; }
12196 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12197 case "$host" in
12198 i[34567]86-*-linux* | x86_64-*-linux*)
12199 case "$enable_cet" in
12200 auto)
12201 # Check if target supports multi-byte NOPs
12202 # and if compiler and assembler support CET insn.
12203 cet_save_CFLAGS="$CFLAGS"
12204 CFLAGS="$CFLAGS -fcf-protection"
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12209 main ()
12212 #if !defined(__SSE2__)
12213 #error target does not support multi-byte NOPs
12214 #else
12215 asm ("setssbsy");
12216 #endif
12219 return 0;
12221 _ACEOF
12222 if ac_fn_c_try_compile "$LINENO"; then :
12223 enable_cet=yes
12224 else
12225 enable_cet=no
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 CFLAGS="$cet_save_CFLAGS"
12230 yes)
12231 # Check if assembler supports CET.
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12236 main ()
12238 asm ("setssbsy");
12240 return 0;
12242 _ACEOF
12243 if ac_fn_c_try_compile "$LINENO"; then :
12245 else
12246 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250 esac
12253 enable_cet=no
12255 esac
12256 if test x$enable_cet = xyes; then
12257 CET_FLAGS="-fcf-protection -mshstk"
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12259 $as_echo "yes" >&6; }
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12265 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12269 ac_ext=c
12270 ac_cpp='$CPP $CPPFLAGS'
12271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12275 WARN_FLAGS=
12276 save_CFLAGS="$CFLAGS"
12277 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12278 -Wmissing-prototypes -Wold-style-definition \
12279 -Wmissing-format-attribute -Wcast-qual; do
12280 # Do the check with the no- prefix removed since gcc silently
12281 # accepts any -Wno-* option on purpose
12282 case $real_option in
12283 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12284 *) option=$real_option ;;
12285 esac
12286 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12289 $as_echo_n "checking whether $CC supports $option... " >&6; }
12290 if eval \${$as_acx_Woption+:} false; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 CFLAGS="$option"
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12298 main ()
12302 return 0;
12304 _ACEOF
12305 if ac_fn_c_try_compile "$LINENO"; then :
12306 eval "$as_acx_Woption=yes"
12307 else
12308 eval "$as_acx_Woption=no"
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12313 eval ac_res=\$$as_acx_Woption
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12315 $as_echo "$ac_res" >&6; }
12316 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12317 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12319 done
12320 CFLAGS="$save_CFLAGS"
12321 ac_ext=c
12322 ac_cpp='$CPP $CPPFLAGS'
12323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12329 # Check whether --enable-werror was given.
12330 if test "${enable_werror+set}" = set; then :
12331 enableval=$enable_werror;
12334 if test "x$enable_werror" != "xno" && test -n "${with_target_subdir}"; then :
12335 WARN_FLAGS="$WARN_FLAGS -Werror"
12339 if test -n "${with_target_subdir}"; then
12342 # Check whether --with-system-libunwind was given.
12343 if test "${with_system_libunwind+set}" = set; then :
12344 withval=$with_system_libunwind;
12347 # If system-libunwind was not specifically set, pick a default setting.
12348 if test x$with_system_libunwind = x; then
12349 case ${target} in
12350 ia64-*-hpux*) with_system_libunwind=yes ;;
12351 *) with_system_libunwind=no ;;
12352 esac
12354 # Based on system-libunwind and target, do we have ipinfo?
12355 if test x$with_system_libunwind = xyes; then
12356 case ${target} in
12357 ia64-*-*) have_unwind_getipinfo=no ;;
12358 *) have_unwind_getipinfo=yes ;;
12359 esac
12360 else
12361 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12363 case ${target} in
12364 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12365 *) have_unwind_getipinfo=yes ;;
12366 esac
12370 if test x$have_unwind_getipinfo = xyes; then
12372 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12376 else
12377 ac_save_CFFLAGS="$CFLAGS"
12378 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12380 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 #include "unwind.h"
12384 struct _Unwind_Context *context;
12385 int ip_before_insn = 0;
12387 main ()
12389 return _Unwind_GetIPInfo (context, &ip_before_insn);
12391 return 0;
12393 _ACEOF
12394 if ac_fn_c_try_link "$LINENO"; then :
12395 have_unwind_getipinfo=yes
12396 else
12397 have_unwind_getipinfo=no
12399 rm -f core conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401 CFLAGS="$ac_save_CFLAGS"
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12403 $as_echo "$have_unwind_getipinfo" >&6; }
12404 if test "$have_unwind_getipinfo" = "yes"; then
12406 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12411 # Enable --enable-host-shared.
12412 # Check whether --enable-host-shared was given.
12413 if test "${enable_host_shared+set}" = set; then :
12414 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12415 else
12416 PIC_FLAG=
12421 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12422 # Check whether --enable-cet was given.
12423 if test "${enable_cet+set}" = set; then :
12424 enableval=$enable_cet;
12425 case "$enableval" in
12426 yes|no|auto) ;;
12427 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12428 esac
12430 else
12431 enable_cet=auto
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12436 $as_echo_n "checking for CET support... " >&6; }
12438 case "$host" in
12439 i[34567]86-*-linux* | x86_64-*-linux*)
12440 may_have_cet=yes
12441 cet_save_CFLAGS="$CFLAGS"
12442 CFLAGS="$CFLAGS -fcf-protection"
12443 case "$enable_cet" in
12444 auto)
12445 # Check if target supports multi-byte NOPs
12446 # and if compiler and assembler support CET.
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12451 main ()
12454 #if !defined(__SSE2__)
12455 #error target does not support multi-byte NOPs
12456 #else
12457 asm ("setssbsy");
12458 #endif
12461 return 0;
12463 _ACEOF
12464 if ac_fn_c_try_compile "$LINENO"; then :
12465 enable_cet=yes
12466 else
12467 enable_cet=no
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471 yes)
12472 # Check if compiler and assembler support CET.
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12477 main ()
12479 asm ("setssbsy");
12481 return 0;
12483 _ACEOF
12484 if ac_fn_c_try_compile "$LINENO"; then :
12485 support_cet=yes
12486 else
12487 support_cet=no
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 if test $support_cet = "no"; then
12491 if test x$enable_bootstrap != xno \
12492 && test -z "${with_build_subdir}" \
12493 && (test ! -f ../stage_current \
12494 || test `cat ../stage_current` != "stage1"); then
12495 # Require CET support only for the final GCC build.
12496 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12497 else
12498 # Don't enable CET without CET support for non-bootstrap
12499 # build, in stage1 nor for build support.
12500 enable_cet=no
12504 esac
12505 CFLAGS="$cet_save_CFLAGS"
12508 may_have_cet=no
12509 enable_cet=no
12511 esac
12513 cet_save_CFLAGS="$CFLAGS"
12514 CFLAGS="$CFLAGS -fcf-protection=none"
12515 cet_save_LDFLAGS="$LDFLAGS"
12516 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12517 if test x$may_have_cet = xyes; then
12518 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12523 main ()
12525 return 0;
12527 return 0;
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 may_have_cet=yes
12532 else
12533 may_have_cet=no
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12539 if test x$may_have_cet = xyes; then
12540 if test x$cross_compiling = xno; then
12541 if test "$cross_compiling" = yes; then :
12542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12544 as_fn_error $? "cannot run test program while cross compiling
12545 See \`config.log' for more details" "$LINENO" 5; }
12546 else
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12551 main ()
12553 asm ("endbr32");
12554 return 0;
12557 _ACEOF
12558 if ac_fn_c_try_run "$LINENO"; then :
12559 have_multi_byte_nop=yes
12560 else
12561 have_multi_byte_nop=no
12563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12564 conftest.$ac_objext conftest.beam conftest.$ac_ext
12567 have_cet=no
12568 if test x$have_multi_byte_nop = xyes; then
12569 if test "$cross_compiling" = yes; then :
12570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12572 as_fn_error $? "cannot run test program while cross compiling
12573 See \`config.log' for more details" "$LINENO" 5; }
12574 else
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12578 static void
12579 foo (void)
12583 static void
12584 __attribute__ ((noinline, noclone))
12585 xxx (void (*f) (void))
12587 f ();
12590 static void
12591 __attribute__ ((noinline, noclone))
12592 bar (void)
12594 xxx (foo);
12598 main ()
12600 bar ();
12601 return 0;
12604 _ACEOF
12605 if ac_fn_c_try_run "$LINENO"; then :
12606 have_cet=no
12607 else
12608 have_cet=yes
12610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12611 conftest.$ac_objext conftest.beam conftest.$ac_ext
12615 if test x$enable_cet = xno -a x$have_cet = xyes; then
12616 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12619 else
12620 # Enable CET in cross compiler if possible so that it will run on both
12621 # CET and non-CET hosts.
12622 have_cet=yes
12624 if test x$enable_cet = xyes; then
12625 CET_HOST_FLAGS="-fcf-protection"
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12627 $as_echo "yes" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12632 CFLAGS="$cet_save_CFLAGS"
12633 LDFLAGS="$cet_save_LDFLAGS"
12635 case x$enable_languages in
12636 *jit*)
12639 CET_HOST_FLAGS=
12641 esac
12644 # Test for __sync support.
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12646 $as_echo_n "checking __sync extensions... " >&6; }
12647 if ${libbacktrace_cv_sys_sync+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "${with_target_subdir}"; then
12651 case "${host}" in
12652 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12653 *) libbacktrace_cv_sys_sync=yes ;;
12654 esac
12655 else
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658 int i;
12660 main ()
12662 __sync_bool_compare_and_swap (&i, i, i);
12663 __sync_lock_test_and_set (&i, 1);
12664 __sync_lock_release (&i);
12666 return 0;
12668 _ACEOF
12669 if ac_fn_c_try_link "$LINENO"; then :
12670 libbacktrace_cv_sys_sync=yes
12671 else
12672 libbacktrace_cv_sys_sync=no
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12679 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12680 BACKTRACE_SUPPORTS_THREADS=0
12681 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12682 BACKTRACE_SUPPORTS_THREADS=1
12684 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12689 # Test for __atomic support.
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12691 $as_echo_n "checking __atomic extensions... " >&6; }
12692 if ${libbacktrace_cv_sys_atomic+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 if test -n "${with_target_subdir}"; then
12696 libbacktrace_cv_sys_atomic=yes
12697 else
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12700 int i;
12702 main ()
12704 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12705 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12707 return 0;
12709 _ACEOF
12710 if ac_fn_c_try_link "$LINENO"; then :
12711 libbacktrace_cv_sys_atomic=yes
12712 else
12713 libbacktrace_cv_sys_atomic=no
12715 rm -f core conftest.err conftest.$ac_objext \
12716 conftest$ac_exeext conftest.$ac_ext
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12720 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12721 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12723 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12727 # The library needs to be able to read the executable itself. Compile
12728 # a file to determine the executable format. The awk script
12729 # filetype.awk prints out the file type.
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12731 $as_echo_n "checking output filetype... " >&6; }
12732 if ${libbacktrace_cv_sys_filetype+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 filetype=
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12738 int i;
12740 main ()
12742 int j;
12744 return 0;
12746 _ACEOF
12747 if ac_fn_c_try_compile "$LINENO"; then :
12748 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12749 else
12750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12752 as_fn_error $? "compiler failed
12753 See \`config.log' for more details" "$LINENO" 5; }
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 libbacktrace_cv_sys_filetype=$filetype
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12759 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12761 # Match the file type to decide what files to compile.
12762 FORMAT_FILE=
12763 backtrace_supports_data=yes
12764 case "$libbacktrace_cv_sys_filetype" in
12765 elf*) FORMAT_FILE="elf.lo" ;;
12766 macho) FORMAT_FILE="macho.lo" ;;
12767 pecoff) FORMAT_FILE="pecoff.lo"
12768 backtrace_supports_data=no
12770 xcoff*) FORMAT_FILE="xcoff.lo"
12771 backtrace_supports_data=no
12773 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12774 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12775 FORMAT_FILE="unknown.lo"
12776 backtrace_supported=no
12778 esac
12781 # ELF defines.
12782 elfsize=
12783 case "$libbacktrace_cv_sys_filetype" in
12784 elf32) elfsize=32 ;;
12785 elf64) elfsize=64 ;;
12786 *) elfsize=unused
12787 esac
12789 cat >>confdefs.h <<_ACEOF
12790 #define BACKTRACE_ELF_SIZE $elfsize
12791 _ACEOF
12793 if test "$FORMAT_FILE" = "elf.lo"; then
12794 HAVE_ELF_TRUE=
12795 HAVE_ELF_FALSE='#'
12796 else
12797 HAVE_ELF_TRUE='#'
12798 HAVE_ELF_FALSE=
12802 # XCOFF defines.
12803 xcoffsize=
12804 case "$libbacktrace_cv_sys_filetype" in
12805 xcoff32) xcoffsize=32 ;;
12806 xcoff64) xcoffsize=64 ;;
12807 *) xcoffsize=unused
12808 esac
12810 cat >>confdefs.h <<_ACEOF
12811 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12812 _ACEOF
12815 BACKTRACE_SUPPORTED=0
12816 if test "$backtrace_supported" = "yes"; then
12817 BACKTRACE_SUPPORTED=1
12821 BACKTRACE_SUPPORTS_DATA=0
12822 if test "$backtrace_supports_data" = "yes"; then
12823 BACKTRACE_SUPPORTS_DATA=1
12829 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12831 acx_cv_header_stdint=stddef.h
12832 acx_cv_header_stdint_kind="(already complete)"
12833 for i in stdint.h $inttype_headers; do
12834 unset ac_cv_type_uintptr_t
12835 unset ac_cv_type_uintmax_t
12836 unset ac_cv_type_int_least32_t
12837 unset ac_cv_type_int_fast32_t
12838 unset ac_cv_type_uint64_t
12839 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12840 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12841 #include <$i>
12843 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12844 acx_cv_header_stdint=$i
12845 else
12846 continue
12849 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12850 #include <$i>
12852 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12854 else
12855 acx_cv_header_stdint_kind="(mostly complete)"
12858 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12859 #include <$i>
12861 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12863 else
12864 acx_cv_header_stdint_kind="(mostly complete)"
12867 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12868 #include <$i>
12870 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12872 else
12873 acx_cv_header_stdint_kind="(mostly complete)"
12876 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12877 #include <$i>
12879 if test "x$ac_cv_type_uint64_t" = xyes; then :
12881 else
12882 acx_cv_header_stdint_kind="(lacks uint64_t)"
12885 break
12886 done
12887 if test "$acx_cv_header_stdint" = stddef.h; then
12888 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12889 for i in stdint.h $inttype_headers; do
12890 unset ac_cv_type_uintptr_t
12891 unset ac_cv_type_uint32_t
12892 unset ac_cv_type_uint64_t
12893 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12894 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12895 #include <$i>
12897 if test "x$ac_cv_type_uint32_t" = xyes; then :
12898 acx_cv_header_stdint=$i
12899 else
12900 continue
12903 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12904 #include <$i>
12906 if test "x$ac_cv_type_uint64_t" = xyes; then :
12910 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12911 #include <$i>
12913 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12917 break
12918 done
12920 if test "$acx_cv_header_stdint" = stddef.h; then
12921 acx_cv_header_stdint_kind="(u_intXX_t style)"
12922 for i in sys/types.h $inttype_headers; do
12923 unset ac_cv_type_u_int32_t
12924 unset ac_cv_type_u_int64_t
12925 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12926 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12927 #include <$i>
12929 if test "x$ac_cv_type_u_int32_t" = xyes; then :
12930 acx_cv_header_stdint=$i
12931 else
12932 continue
12935 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12936 #include <$i>
12938 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12942 break
12943 done
12945 if test "$acx_cv_header_stdint" = stddef.h; then
12946 acx_cv_header_stdint_kind="(using manual detection)"
12949 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12950 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12951 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12952 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12953 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12955 # ----------------- Summarize what we found so far
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12958 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12960 case `$as_basename -- gstdint.h ||
12961 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12962 Xgstdint.h : 'X\(//\)$' \| \
12963 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12964 $as_echo X/gstdint.h |
12965 sed '/^.*\/\([^/][^/]*\)\/*$/{
12966 s//\1/
12969 /^X\/\(\/\/\)$/{
12970 s//\1/
12973 /^X\/\(\/\).*/{
12974 s//\1/
12977 s/.*/./; q'` in
12978 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12979 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12980 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12981 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12982 *) ;;
12983 esac
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12986 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12988 # ----------------- done included file, check C basic types --------
12990 # Lacking an uintptr_t? Test size of void *
12991 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12992 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12995 # This bug is HP SR number 8606223364.
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12997 $as_echo_n "checking size of void *... " >&6; }
12998 if ${ac_cv_sizeof_void_p+:} false; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13003 else
13004 if test "$ac_cv_type_void_p" = yes; then
13005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13007 as_fn_error 77 "cannot compute sizeof (void *)
13008 See \`config.log' for more details" "$LINENO" 5; }
13009 else
13010 ac_cv_sizeof_void_p=0
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13016 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13020 cat >>confdefs.h <<_ACEOF
13021 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13022 _ACEOF
13025 esac
13027 # Lacking an uint64_t? Test size of long
13028 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13029 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13032 # This bug is HP SR number 8606223364.
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13034 $as_echo_n "checking size of long... " >&6; }
13035 if ${ac_cv_sizeof_long+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13040 else
13041 if test "$ac_cv_type_long" = yes; then
13042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13044 as_fn_error 77 "cannot compute sizeof (long)
13045 See \`config.log' for more details" "$LINENO" 5; }
13046 else
13047 ac_cv_sizeof_long=0
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13053 $as_echo "$ac_cv_sizeof_long" >&6; }
13057 cat >>confdefs.h <<_ACEOF
13058 #define SIZEOF_LONG $ac_cv_sizeof_long
13059 _ACEOF
13062 esac
13064 if test $acx_cv_header_stdint = stddef.h; then
13065 # Lacking a good header? Test size of everything and deduce all types.
13066 # The cast to long int works around a bug in the HP C Compiler
13067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13069 # This bug is HP SR number 8606223364.
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13071 $as_echo_n "checking size of int... " >&6; }
13072 if ${ac_cv_sizeof_int+:} false; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13077 else
13078 if test "$ac_cv_type_int" = yes; then
13079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13081 as_fn_error 77 "cannot compute sizeof (int)
13082 See \`config.log' for more details" "$LINENO" 5; }
13083 else
13084 ac_cv_sizeof_int=0
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13090 $as_echo "$ac_cv_sizeof_int" >&6; }
13094 cat >>confdefs.h <<_ACEOF
13095 #define SIZEOF_INT $ac_cv_sizeof_int
13096 _ACEOF
13099 # The cast to long int works around a bug in the HP C Compiler
13100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13102 # This bug is HP SR number 8606223364.
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13104 $as_echo_n "checking size of short... " >&6; }
13105 if ${ac_cv_sizeof_short+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13110 else
13111 if test "$ac_cv_type_short" = yes; then
13112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13114 as_fn_error 77 "cannot compute sizeof (short)
13115 See \`config.log' for more details" "$LINENO" 5; }
13116 else
13117 ac_cv_sizeof_short=0
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13123 $as_echo "$ac_cv_sizeof_short" >&6; }
13127 cat >>confdefs.h <<_ACEOF
13128 #define SIZEOF_SHORT $ac_cv_sizeof_short
13129 _ACEOF
13132 # The cast to long int works around a bug in the HP C Compiler
13133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13135 # This bug is HP SR number 8606223364.
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13137 $as_echo_n "checking size of char... " >&6; }
13138 if ${ac_cv_sizeof_char+:} false; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13143 else
13144 if test "$ac_cv_type_char" = yes; then
13145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13147 as_fn_error 77 "cannot compute sizeof (char)
13148 See \`config.log' for more details" "$LINENO" 5; }
13149 else
13150 ac_cv_sizeof_char=0
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13156 $as_echo "$ac_cv_sizeof_char" >&6; }
13160 cat >>confdefs.h <<_ACEOF
13161 #define SIZEOF_CHAR $ac_cv_sizeof_char
13162 _ACEOF
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13167 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13168 case "$ac_cv_sizeof_char" in
13169 1) acx_cv_type_int8_t=char ;;
13170 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13171 esac
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13173 $as_echo "$acx_cv_type_int8_t" >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13176 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13177 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13178 2:*) acx_cv_type_int16_t=int ;;
13179 *:2) acx_cv_type_int16_t=short ;;
13180 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13181 esac
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13183 $as_echo "$acx_cv_type_int16_t" >&6; }
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13186 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13187 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13188 4:*) acx_cv_type_int32_t=int ;;
13189 *:4) acx_cv_type_int32_t=long ;;
13190 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13191 esac
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13193 $as_echo "$acx_cv_type_int32_t" >&6; }
13196 # These tests are here to make the output prettier
13198 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13199 case "$ac_cv_sizeof_long" in
13200 8) acx_cv_type_int64_t=long ;;
13201 esac
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13203 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13205 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13208 # Now we can use the above types
13210 if test "$ac_cv_type_uintptr_t" != yes; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13212 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13213 case $ac_cv_sizeof_void_p in
13214 2) acx_cv_type_intptr_t=int16_t ;;
13215 4) acx_cv_type_intptr_t=int32_t ;;
13216 8) acx_cv_type_intptr_t=int64_t ;;
13217 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13218 esac
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13220 $as_echo "$acx_cv_type_intptr_t" >&6; }
13223 # ----------------- done all checks, emit header -------------
13224 ac_config_commands="$ac_config_commands gstdint.h"
13229 for ac_header in sys/mman.h
13230 do :
13231 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13232 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13233 cat >>confdefs.h <<_ACEOF
13234 #define HAVE_SYS_MMAN_H 1
13235 _ACEOF
13239 done
13241 if test "$ac_cv_header_sys_mman_h" = "no"; then
13242 have_mmap=no
13243 else
13244 if test -n "${with_target_subdir}"; then
13245 # When built as a GCC target library, we can't do a link test. We
13246 # simply assume that if we have mman.h, we have mmap.
13247 have_mmap=yes
13248 case "${host}" in
13249 *-*-msdosdjgpp)
13250 # DJGPP has sys/man.h, but no mmap
13251 have_mmap=no ;;
13252 esac
13253 else
13254 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13255 if test "x$ac_cv_func_mmap" = xyes; then :
13256 have_mmap=yes
13257 else
13258 have_mmap=no
13263 if test "$have_mmap" = "no"; then
13264 VIEW_FILE=read.lo
13265 ALLOC_FILE=alloc.lo
13266 else
13267 VIEW_FILE=mmapio.lo
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13271 #include <sys/mman.h>
13272 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13273 #error no MAP_ANONYMOUS
13274 #endif
13276 _ACEOF
13277 if ac_fn_c_try_cpp "$LINENO"; then :
13278 ALLOC_FILE=mmap.lo
13279 else
13280 ALLOC_FILE=alloc.lo
13282 rm -f conftest.err conftest.i conftest.$ac_ext
13287 BACKTRACE_USES_MALLOC=0
13288 if test "$ALLOC_FILE" = "alloc.lo"; then
13289 BACKTRACE_USES_MALLOC=1
13293 # Check for dl_iterate_phdr.
13294 for ac_header in link.h sys/link.h
13295 do :
13296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13297 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13298 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13299 cat >>confdefs.h <<_ACEOF
13300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13301 _ACEOF
13305 done
13307 if test "$ac_cv_header_link_h" = "no" -a "$ac_cv_header_sys_link_h" = "no"; then
13308 have_dl_iterate_phdr=no
13309 else
13310 if test -n "${with_target_subdir}"; then
13311 link_h=link.h
13312 if test "$ac_cv_header_link_h" = "no"; then
13313 link_h=sys/link.h
13315 # When built as a GCC target library, we can't do a link test.
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 #include <$link_h>
13320 _ACEOF
13321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13323 have_dl_iterate_phdr=yes
13324 else
13325 have_dl_iterate_phdr=no
13327 rm -f conftest*
13329 else
13330 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13331 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13332 have_dl_iterate_phdr=yes
13333 else
13334 have_dl_iterate_phdr=no
13339 if test "$have_dl_iterate_phdr" = "yes"; then
13341 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13345 # Check for header file for Mach-O image functions.
13346 for ac_header in mach-o/dyld.h
13347 do :
13348 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13349 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13350 cat >>confdefs.h <<_ACEOF
13351 #define HAVE_MACH_O_DYLD_H 1
13352 _ACEOF
13356 done
13359 # Check for loadquery.
13360 for ac_header in sys/ldr.h
13361 do :
13362 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13363 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13364 cat >>confdefs.h <<_ACEOF
13365 #define HAVE_SYS_LDR_H 1
13366 _ACEOF
13370 done
13372 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13373 have_loadquery=no
13374 else
13375 if test -n "${with_target_subdir}"; then
13376 # When built as a GCC target library, we can't do a link test.
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13379 #include <sys/ldr.h>
13381 _ACEOF
13382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383 $EGREP "loadquery" >/dev/null 2>&1; then :
13384 have_loadquery=yes
13385 else
13386 have_loadquery=no
13388 rm -f conftest*
13390 else
13391 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13392 if test "x$ac_cv_func_loadquery" = xyes; then :
13393 have_loadquery=yes
13394 else
13395 have_loadquery=no
13400 if test "$have_loadquery" = "yes"; then
13402 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13406 # Check for the fcntl function.
13407 if test -n "${with_target_subdir}"; then
13408 case "${host}" in
13409 *-*-mingw*) have_fcntl=no ;;
13410 *) have_fcntl=yes ;;
13411 esac
13412 else
13413 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13414 if test "x$ac_cv_func_fcntl" = xyes; then :
13415 have_fcntl=yes
13416 else
13417 have_fcntl=no
13421 if test "$have_fcntl" = "yes"; then
13423 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13427 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13428 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13429 ac_have_decl=1
13430 else
13431 ac_have_decl=0
13434 cat >>confdefs.h <<_ACEOF
13435 #define HAVE_DECL_STRNLEN $ac_have_decl
13436 _ACEOF
13437 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13438 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13439 ac_have_decl=1
13440 else
13441 ac_have_decl=0
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13446 _ACEOF
13448 for ac_func in lstat readlink
13449 do :
13450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13453 cat >>confdefs.h <<_ACEOF
13454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13455 _ACEOF
13458 done
13461 # Check for getexecname function.
13462 if test -n "${with_target_subdir}"; then
13463 case "${host}" in
13464 *-*-solaris2*) have_getexecname=yes ;;
13465 *) have_getexecname=no ;;
13466 esac
13467 else
13468 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13469 if test "x$ac_cv_func_getexecname" = xyes; then :
13470 have_getexecname=yes
13471 else
13472 have_getexecname=no
13476 if test "$have_getexecname" = "yes"; then
13478 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13482 # Check for sysctl definitions.
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13485 $as_echo_n "checking for KERN_PROC... " >&6; }
13486 if ${libbacktrace_cv_proc+:} false; then :
13487 $as_echo_n "(cached) " >&6
13488 else
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13492 #include <sys/types.h>
13493 #include <sys/sysctl.h>
13496 main ()
13498 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13500 return 0;
13502 _ACEOF
13503 if ac_fn_c_try_compile "$LINENO"; then :
13504 libbacktrace_cv_proc=yes
13505 else
13506 libbacktrace_cv_proc=no
13508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13511 $as_echo "$libbacktrace_cv_proc" >&6; }
13512 if test "$libbacktrace_cv_proc" = "yes"; then
13514 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13519 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13520 if ${libbacktrace_cv_procargs+:} false; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13526 #include <sys/types.h>
13527 #include <sys/sysctl.h>
13530 main ()
13532 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13534 return 0;
13536 _ACEOF
13537 if ac_fn_c_try_compile "$LINENO"; then :
13538 libbacktrace_cv_procargs=yes
13539 else
13540 libbacktrace_cv_procargs=no
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13545 $as_echo "$libbacktrace_cv_procargs" >&6; }
13546 if test "$libbacktrace_cv_procargs" = "yes"; then
13548 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13552 # Check for the clock_gettime function.
13553 for ac_func in clock_gettime
13554 do :
13555 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13556 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13557 cat >>confdefs.h <<_ACEOF
13558 #define HAVE_CLOCK_GETTIME 1
13559 _ACEOF
13562 done
13564 clock_gettime_link=
13565 # At least for glibc, clock_gettime is in librt. But don't
13566 # pull that in if it still doesn't give us the function we want. This
13567 # test is copied from libgomp, and modified to not link in -lrt as
13568 # we're using this for test timing only.
13569 if test "$ac_cv_func_clock_gettime" = no; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13571 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13572 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-lrt $LIBS"
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13580 /* Override any GCC internal prototype to avoid an error.
13581 Use char because int might match the return type of a GCC
13582 builtin and then its argument prototype would still apply. */
13583 #ifdef __cplusplus
13584 extern "C"
13585 #endif
13586 char clock_gettime ();
13588 main ()
13590 return clock_gettime ();
13592 return 0;
13594 _ACEOF
13595 if ac_fn_c_try_link "$LINENO"; then :
13596 ac_cv_lib_rt_clock_gettime=yes
13597 else
13598 ac_cv_lib_rt_clock_gettime=no
13600 rm -f core conftest.err conftest.$ac_objext \
13601 conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_check_lib_save_LIBS
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13605 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13606 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13607 CLOCK_GETTIME_LINK=-lrt
13609 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13617 $as_echo_n "checking whether -pthread is supported... " >&6; }
13618 if ${libgo_cv_lib_pthread+:} false; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 CFLAGS_hold=$CFLAGS
13622 CFLAGS="$CFLAGS -pthread"
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13625 int i;
13626 _ACEOF
13627 if ac_fn_c_try_compile "$LINENO"; then :
13628 libgo_cv_lib_pthread=yes
13629 else
13630 libgo_cv_lib_pthread=no
13632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 CFLAGS=$CFLAGS_hold
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13636 $as_echo "$libgo_cv_lib_pthread" >&6; }
13637 PTHREAD_CFLAGS=
13638 if test "$libgo_cv_lib_pthread" = yes; then
13639 PTHREAD_CFLAGS=-pthread
13643 if test "$libgo_cv_lib_pthread" = yes; then
13644 HAVE_PTHREAD_TRUE=
13645 HAVE_PTHREAD_FALSE='#'
13646 else
13647 HAVE_PTHREAD_TRUE='#'
13648 HAVE_PTHREAD_FALSE=
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13653 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13654 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 CFLAGS_hold=$CFLAGS
13658 CFLAGS="$CFLAGS -gdwarf-5"
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661 int i;
13663 main ()
13665 return 0;
13667 return 0;
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 libbacktrace_cv_lib_dwarf5=yes
13672 else
13673 libbacktrace_cv_lib_dwarf5=no
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 CFLAGS=$CFLAGS_hold
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13680 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13681 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13682 HAVE_DWARF5_TRUE=
13683 HAVE_DWARF5_FALSE='#'
13684 else
13685 HAVE_DWARF5_TRUE='#'
13686 HAVE_DWARF5_FALSE=
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13691 $as_echo_n "checking for compress in -lz... " >&6; }
13692 if ${ac_cv_lib_z_compress+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 ac_check_lib_save_LIBS=$LIBS
13696 LIBS="-lz $LIBS"
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13700 /* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
13703 #ifdef __cplusplus
13704 extern "C"
13705 #endif
13706 char compress ();
13708 main ()
13710 return compress ();
13712 return 0;
13714 _ACEOF
13715 if ac_fn_c_try_link "$LINENO"; then :
13716 ac_cv_lib_z_compress=yes
13717 else
13718 ac_cv_lib_z_compress=no
13720 rm -f core conftest.err conftest.$ac_objext \
13721 conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_check_lib_save_LIBS
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13725 $as_echo "$ac_cv_lib_z_compress" >&6; }
13726 if test "x$ac_cv_lib_z_compress" = xyes; then :
13728 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13732 if test "$ac_cv_lib_z_compress" = yes; then
13733 HAVE_ZLIB_TRUE=
13734 HAVE_ZLIB_FALSE='#'
13735 else
13736 HAVE_ZLIB_TRUE='#'
13737 HAVE_ZLIB_FALSE=
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13742 $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
13743 if ${libgo_cv_ld_compress+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 LDFLAGS_hold=$LDFLAGS
13747 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13752 main ()
13756 return 0;
13758 _ACEOF
13759 if ac_fn_c_try_link "$LINENO"; then :
13760 libgo_cv_ld_compress=yes
13761 else
13762 libgo_cv_ld_compress=no
13764 rm -f core conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13766 LDFLAGS=$LDFLAGS_hold
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13769 $as_echo "$libgo_cv_ld_compress" >&6; }
13770 if test "$libgo_cv_ld_compress" = yes; then
13771 HAVE_COMPRESSED_DEBUG_TRUE=
13772 HAVE_COMPRESSED_DEBUG_FALSE='#'
13773 else
13774 HAVE_COMPRESSED_DEBUG_TRUE='#'
13775 HAVE_COMPRESSED_DEBUG_FALSE=
13780 # Extract the first word of "objcopy", so it can be a program name with args.
13781 set dummy objcopy; ac_word=$2
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13783 $as_echo_n "checking for $ac_word... " >&6; }
13784 if ${ac_cv_prog_OBJCOPY+:} false; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 if test -n "$OBJCOPY"; then
13788 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13789 else
13790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13791 for as_dir in $PATH
13793 IFS=$as_save_IFS
13794 test -z "$as_dir" && as_dir=.
13795 for ac_exec_ext in '' $ac_executable_extensions; do
13796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13797 ac_cv_prog_OBJCOPY="objcopy"
13798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13799 break 2
13801 done
13802 done
13803 IFS=$as_save_IFS
13807 OBJCOPY=$ac_cv_prog_OBJCOPY
13808 if test -n "$OBJCOPY"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13810 $as_echo "$OBJCOPY" >&6; }
13811 else
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 $as_echo "no" >&6; }
13817 # Extract the first word of "readelf", so it can be a program name with args.
13818 set dummy readelf; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820 $as_echo_n "checking for $ac_word... " >&6; }
13821 if ${ac_cv_prog_READELF+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 if test -n "$READELF"; then
13825 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13826 else
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13830 IFS=$as_save_IFS
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13834 ac_cv_prog_READELF="readelf"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836 break 2
13838 done
13839 done
13840 IFS=$as_save_IFS
13844 READELF=$ac_cv_prog_READELF
13845 if test -n "$READELF"; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13847 $as_echo "$READELF" >&6; }
13848 else
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13855 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
13856 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859 if test -n "${with_target_subdir}"; then
13860 libbacktrace_cv_objcopy_debuglink=no
13861 elif ! test -n "${OBJCOPY}"; then
13862 libbacktrace_cv_objcopy_debuglink=no
13863 elif ${OBJCOPY} --help | grep add-gnu-debuglink >/dev/null 2>&1; then
13864 libbacktrace_cv_objcopy_debuglink=yes
13865 else
13866 libbacktrace_cv_objcopy_debuglink=no
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13870 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13871 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13872 HAVE_OBJCOPY_DEBUGLINK_TRUE=
13873 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13874 else
13875 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13876 HAVE_OBJCOPY_DEBUGLINK_FALSE=
13881 # Extract the first word of "dsymutil", so it can be a program name with args.
13882 set dummy dsymutil; ac_word=$2
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13884 $as_echo_n "checking for $ac_word... " >&6; }
13885 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 if test -n "$DSYMUTIL"; then
13889 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13890 else
13891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13892 for as_dir in $PATH
13894 IFS=$as_save_IFS
13895 test -z "$as_dir" && as_dir=.
13896 for ac_exec_ext in '' $ac_executable_extensions; do
13897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13898 ac_cv_prog_DSYMUTIL="dsymutil"
13899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13900 break 2
13902 done
13903 done
13904 IFS=$as_save_IFS
13908 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13909 if test -n "$DSYMUTIL"; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13911 $as_echo "$DSYMUTIL" >&6; }
13912 else
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13918 if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
13919 USE_DSYMUTIL_TRUE=
13920 USE_DSYMUTIL_FALSE='#'
13921 else
13922 USE_DSYMUTIL_TRUE='#'
13923 USE_DSYMUTIL_FALSE=
13928 # Extract the first word of "nm", so it can be a program name with args.
13929 set dummy nm; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if ${ac_cv_prog_NM+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 if test -n "$NM"; then
13936 ac_cv_prog_NM="$NM" # Let the user override the test.
13937 else
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13945 ac_cv_prog_NM="nm"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 break 2
13949 done
13950 done
13951 IFS=$as_save_IFS
13955 NM=$ac_cv_prog_NM
13956 if test -n "$NM"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13958 $as_echo "$NM" >&6; }
13959 else
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13966 # Extract the first word of "xz", so it can be a program name with args.
13967 set dummy xz; ac_word=$2
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13969 $as_echo_n "checking for $ac_word... " >&6; }
13970 if ${ac_cv_prog_XZ+:} false; then :
13971 $as_echo_n "(cached) " >&6
13972 else
13973 if test -n "$XZ"; then
13974 ac_cv_prog_XZ="$XZ" # Let the user override the test.
13975 else
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13983 ac_cv_prog_XZ="xz"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13985 break 2
13987 done
13988 done
13989 IFS=$as_save_IFS
13993 XZ=$ac_cv_prog_XZ
13994 if test -n "$XZ"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
13996 $as_echo "$XZ" >&6; }
13997 else
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14003 if test "$XZ" != ""; then
14004 HAVE_XZ_TRUE=
14005 HAVE_XZ_FALSE='#'
14006 else
14007 HAVE_XZ_TRUE='#'
14008 HAVE_XZ_FALSE=
14011 # Extract the first word of "comm", so it can be a program name with args.
14012 set dummy comm; ac_word=$2
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14014 $as_echo_n "checking for $ac_word... " >&6; }
14015 if ${ac_cv_prog_COMM+:} false; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 if test -n "$COMM"; then
14019 ac_cv_prog_COMM="$COMM" # Let the user override the test.
14020 else
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14024 IFS=$as_save_IFS
14025 test -z "$as_dir" && as_dir=.
14026 for ac_exec_ext in '' $ac_executable_extensions; do
14027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14028 ac_cv_prog_COMM="comm"
14029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14030 break 2
14032 done
14033 done
14034 IFS=$as_save_IFS
14038 COMM=$ac_cv_prog_COMM
14039 if test -n "$COMM"; then
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
14041 $as_echo "$COMM" >&6; }
14042 else
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14044 $as_echo "no" >&6; }
14048 if test "$COMM" != ""; then
14049 HAVE_COMM_TRUE=
14050 HAVE_COMM_FALSE='#'
14051 else
14052 HAVE_COMM_TRUE='#'
14053 HAVE_COMM_FALSE=
14057 if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
14058 HAVE_MINIDEBUG_TRUE=
14059 HAVE_MINIDEBUG_FALSE='#'
14060 else
14061 HAVE_MINIDEBUG_TRUE='#'
14062 HAVE_MINIDEBUG_FALSE=
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
14067 $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
14068 if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 ac_check_lib_save_LIBS=$LIBS
14072 LIBS="-llzma $LIBS"
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14076 /* Override any GCC internal prototype to avoid an error.
14077 Use char because int might match the return type of a GCC
14078 builtin and then its argument prototype would still apply. */
14079 #ifdef __cplusplus
14080 extern "C"
14081 #endif
14082 char lzma_auto_decoder ();
14084 main ()
14086 return lzma_auto_decoder ();
14088 return 0;
14090 _ACEOF
14091 if ac_fn_c_try_link "$LINENO"; then :
14092 ac_cv_lib_lzma_lzma_auto_decoder=yes
14093 else
14094 ac_cv_lib_lzma_lzma_auto_decoder=no
14096 rm -f core conftest.err conftest.$ac_objext \
14097 conftest$ac_exeext conftest.$ac_ext
14098 LIBS=$ac_check_lib_save_LIBS
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
14101 $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
14102 if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
14104 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14108 if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
14109 HAVE_LIBLZMA_TRUE=
14110 HAVE_LIBLZMA_FALSE='#'
14111 else
14112 HAVE_LIBLZMA_TRUE='#'
14113 HAVE_LIBLZMA_FALSE=
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
14118 $as_echo_n "checking whether tests can run... " >&6; }
14119 if ${libbacktrace_cv_sys_native+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 if test "$cross_compiling" = yes; then :
14123 libbacktrace_cv_sys_native=no
14124 else
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14129 main ()
14131 return 0;
14133 return 0;
14135 _ACEOF
14136 if ac_fn_c_try_run "$LINENO"; then :
14137 libbacktrace_cv_sys_native=yes
14138 else
14139 libbacktrace_cv_sys_native=no
14141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14142 conftest.$ac_objext conftest.beam conftest.$ac_ext
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
14147 $as_echo "$libbacktrace_cv_sys_native" >&6; }
14148 if test "$libbacktrace_cv_sys_native" = "yes"; then
14149 NATIVE_TRUE=
14150 NATIVE_FALSE='#'
14151 else
14152 NATIVE_TRUE='#'
14153 NATIVE_FALSE=
14157 if test "${multilib}" = "yes"; then
14158 multilib_arg="--enable-multilib"
14159 else
14160 multilib_arg=
14163 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
14165 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
14168 # We need multilib support, but only if configuring for the target.
14169 ac_config_commands="$ac_config_commands default"
14172 cat >confcache <<\_ACEOF
14173 # This file is a shell script that caches the results of configure
14174 # tests run on this system so they can be shared between configure
14175 # scripts and configure runs, see configure's option --config-cache.
14176 # It is not useful on other systems. If it contains results you don't
14177 # want to keep, you may remove or edit it.
14179 # config.status only pays attention to the cache file if you give it
14180 # the --recheck option to rerun configure.
14182 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14184 # following values.
14186 _ACEOF
14188 # The following way of writing the cache mishandles newlines in values,
14189 # but we know of no workaround that is simple, portable, and efficient.
14190 # So, we kill variables containing newlines.
14191 # Ultrix sh set writes to stderr and can't be redirected directly,
14192 # and sets the high bit in the cache file unless we assign to the vars.
14194 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14195 eval ac_val=\$$ac_var
14196 case $ac_val in #(
14197 *${as_nl}*)
14198 case $ac_var in #(
14199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14201 esac
14202 case $ac_var in #(
14203 _ | IFS | as_nl) ;; #(
14204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14205 *) { eval $ac_var=; unset $ac_var;} ;;
14206 esac ;;
14207 esac
14208 done
14210 (set) 2>&1 |
14211 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14212 *${as_nl}ac_space=\ *)
14213 # `set' does not quote correctly, so add quotes: double-quote
14214 # substitution turns \\\\ into \\, and sed turns \\ into \.
14215 sed -n \
14216 "s/'/'\\\\''/g;
14217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14218 ;; #(
14220 # `set' quotes correctly as required by POSIX, so do not add quotes.
14221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14223 esac |
14224 sort
14226 sed '
14227 /^ac_cv_env_/b end
14228 t clear
14229 :clear
14230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14231 t end
14232 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14233 :end' >>confcache
14234 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14235 if test -w "$cache_file"; then
14236 if test "x$cache_file" != "x/dev/null"; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14238 $as_echo "$as_me: updating cache $cache_file" >&6;}
14239 if test ! -f "$cache_file" || test -h "$cache_file"; then
14240 cat confcache >"$cache_file"
14241 else
14242 case $cache_file in #(
14243 */* | ?:*)
14244 mv -f confcache "$cache_file"$$ &&
14245 mv -f "$cache_file"$$ "$cache_file" ;; #(
14247 mv -f confcache "$cache_file" ;;
14248 esac
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14253 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14256 rm -f confcache
14258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14259 # Let make expand exec_prefix.
14260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14262 DEFS=-DHAVE_CONFIG_H
14264 ac_libobjs=
14265 ac_ltlibobjs=
14267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14268 # 1. Remove the extension, and $U if already installed.
14269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14270 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14272 # will be set to the directory where LIBOBJS objects are built.
14273 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14274 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14275 done
14276 LIBOBJS=$ac_libobjs
14278 LTLIBOBJS=$ac_ltlibobjs
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14282 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14283 if test -n "$am_sleep_pid"; then
14284 # Hide warnings about reused PIDs.
14285 wait $am_sleep_pid 2>/dev/null
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14288 $as_echo "done" >&6; }
14289 if test -n "$EXEEXT"; then
14290 am__EXEEXT_TRUE=
14291 am__EXEEXT_FALSE='#'
14292 else
14293 am__EXEEXT_TRUE='#'
14294 am__EXEEXT_FALSE=
14297 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14298 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14301 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14302 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14305 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14306 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14309 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14310 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14313 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14314 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14317 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14318 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14321 if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
14322 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
14323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14325 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14326 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14329 if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
14330 as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
14331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14333 if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
14334 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
14335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14337 if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
14338 as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
14339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14341 if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
14342 as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
14343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14345 if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
14346 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
14347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14349 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14350 as_fn_error $? "conditional \"NATIVE\" was never defined.
14351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14354 : "${CONFIG_STATUS=./config.status}"
14355 ac_write_fail=0
14356 ac_clean_files_save=$ac_clean_files
14357 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14359 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14360 as_write_fail=0
14361 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14362 #! $SHELL
14363 # Generated by $as_me.
14364 # Run this file to recreate the current configuration.
14365 # Compiler output produced by configure, useful for debugging
14366 # configure, is in config.log if it exists.
14368 debug=false
14369 ac_cs_recheck=false
14370 ac_cs_silent=false
14372 SHELL=\${CONFIG_SHELL-$SHELL}
14373 export SHELL
14374 _ASEOF
14375 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14376 ## -------------------- ##
14377 ## M4sh Initialization. ##
14378 ## -------------------- ##
14380 # Be more Bourne compatible
14381 DUALCASE=1; export DUALCASE # for MKS sh
14382 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14383 emulate sh
14384 NULLCMD=:
14385 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14386 # is contrary to our usage. Disable this feature.
14387 alias -g '${1+"$@"}'='"$@"'
14388 setopt NO_GLOB_SUBST
14389 else
14390 case `(set -o) 2>/dev/null` in #(
14391 *posix*) :
14392 set -o posix ;; #(
14393 *) :
14395 esac
14399 as_nl='
14401 export as_nl
14402 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14403 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14404 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14405 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14406 # Prefer a ksh shell builtin over an external printf program on Solaris,
14407 # but without wasting forks for bash or zsh.
14408 if test -z "$BASH_VERSION$ZSH_VERSION" \
14409 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14410 as_echo='print -r --'
14411 as_echo_n='print -rn --'
14412 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14413 as_echo='printf %s\n'
14414 as_echo_n='printf %s'
14415 else
14416 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14417 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14418 as_echo_n='/usr/ucb/echo -n'
14419 else
14420 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14421 as_echo_n_body='eval
14422 arg=$1;
14423 case $arg in #(
14424 *"$as_nl"*)
14425 expr "X$arg" : "X\\(.*\\)$as_nl";
14426 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14427 esac;
14428 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14430 export as_echo_n_body
14431 as_echo_n='sh -c $as_echo_n_body as_echo'
14433 export as_echo_body
14434 as_echo='sh -c $as_echo_body as_echo'
14437 # The user is always right.
14438 if test "${PATH_SEPARATOR+set}" != set; then
14439 PATH_SEPARATOR=:
14440 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14441 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14442 PATH_SEPARATOR=';'
14447 # IFS
14448 # We need space, tab and new line, in precisely that order. Quoting is
14449 # there to prevent editors from complaining about space-tab.
14450 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14451 # splitting by setting IFS to empty value.)
14452 IFS=" "" $as_nl"
14454 # Find who we are. Look in the path if we contain no directory separator.
14455 as_myself=
14456 case $0 in #((
14457 *[\\/]* ) as_myself=$0 ;;
14458 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459 for as_dir in $PATH
14461 IFS=$as_save_IFS
14462 test -z "$as_dir" && as_dir=.
14463 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14464 done
14465 IFS=$as_save_IFS
14468 esac
14469 # We did not find ourselves, most probably we were run as `sh COMMAND'
14470 # in which case we are not to be found in the path.
14471 if test "x$as_myself" = x; then
14472 as_myself=$0
14474 if test ! -f "$as_myself"; then
14475 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14476 exit 1
14479 # Unset variables that we do not need and which cause bugs (e.g. in
14480 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14481 # suppresses any "Segmentation fault" message there. '((' could
14482 # trigger a bug in pdksh 5.2.14.
14483 for as_var in BASH_ENV ENV MAIL MAILPATH
14484 do eval test x\${$as_var+set} = xset \
14485 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14486 done
14487 PS1='$ '
14488 PS2='> '
14489 PS4='+ '
14491 # NLS nuisances.
14492 LC_ALL=C
14493 export LC_ALL
14494 LANGUAGE=C
14495 export LANGUAGE
14497 # CDPATH.
14498 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14501 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14502 # ----------------------------------------
14503 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14504 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14505 # script with STATUS, using 1 if that was 0.
14506 as_fn_error ()
14508 as_status=$1; test $as_status -eq 0 && as_status=1
14509 if test "$4"; then
14510 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14511 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14513 $as_echo "$as_me: error: $2" >&2
14514 as_fn_exit $as_status
14515 } # as_fn_error
14518 # as_fn_set_status STATUS
14519 # -----------------------
14520 # Set $? to STATUS, without forking.
14521 as_fn_set_status ()
14523 return $1
14524 } # as_fn_set_status
14526 # as_fn_exit STATUS
14527 # -----------------
14528 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14529 as_fn_exit ()
14531 set +e
14532 as_fn_set_status $1
14533 exit $1
14534 } # as_fn_exit
14536 # as_fn_unset VAR
14537 # ---------------
14538 # Portably unset VAR.
14539 as_fn_unset ()
14541 { eval $1=; unset $1;}
14543 as_unset=as_fn_unset
14544 # as_fn_append VAR VALUE
14545 # ----------------------
14546 # Append the text in VALUE to the end of the definition contained in VAR. Take
14547 # advantage of any shell optimizations that allow amortized linear growth over
14548 # repeated appends, instead of the typical quadratic growth present in naive
14549 # implementations.
14550 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14551 eval 'as_fn_append ()
14553 eval $1+=\$2
14555 else
14556 as_fn_append ()
14558 eval $1=\$$1\$2
14560 fi # as_fn_append
14562 # as_fn_arith ARG...
14563 # ------------------
14564 # Perform arithmetic evaluation on the ARGs, and store the result in the
14565 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14566 # must be portable across $(()) and expr.
14567 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14568 eval 'as_fn_arith ()
14570 as_val=$(( $* ))
14572 else
14573 as_fn_arith ()
14575 as_val=`expr "$@" || test $? -eq 1`
14577 fi # as_fn_arith
14580 if expr a : '\(a\)' >/dev/null 2>&1 &&
14581 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14582 as_expr=expr
14583 else
14584 as_expr=false
14587 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14588 as_basename=basename
14589 else
14590 as_basename=false
14593 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14594 as_dirname=dirname
14595 else
14596 as_dirname=false
14599 as_me=`$as_basename -- "$0" ||
14600 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14601 X"$0" : 'X\(//\)$' \| \
14602 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14603 $as_echo X/"$0" |
14604 sed '/^.*\/\([^/][^/]*\)\/*$/{
14605 s//\1/
14608 /^X\/\(\/\/\)$/{
14609 s//\1/
14612 /^X\/\(\/\).*/{
14613 s//\1/
14616 s/.*/./; q'`
14618 # Avoid depending upon Character Ranges.
14619 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14620 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14621 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14622 as_cr_digits='0123456789'
14623 as_cr_alnum=$as_cr_Letters$as_cr_digits
14625 ECHO_C= ECHO_N= ECHO_T=
14626 case `echo -n x` in #(((((
14627 -n*)
14628 case `echo 'xy\c'` in
14629 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14630 xy) ECHO_C='\c';;
14631 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14632 ECHO_T=' ';;
14633 esac;;
14635 ECHO_N='-n';;
14636 esac
14638 rm -f conf$$ conf$$.exe conf$$.file
14639 if test -d conf$$.dir; then
14640 rm -f conf$$.dir/conf$$.file
14641 else
14642 rm -f conf$$.dir
14643 mkdir conf$$.dir 2>/dev/null
14645 if (echo >conf$$.file) 2>/dev/null; then
14646 if ln -s conf$$.file conf$$ 2>/dev/null; then
14647 as_ln_s='ln -s'
14648 # ... but there are two gotchas:
14649 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14650 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14651 # In both cases, we have to default to `cp -pR'.
14652 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14653 as_ln_s='cp -pR'
14654 elif ln conf$$.file conf$$ 2>/dev/null; then
14655 as_ln_s=ln
14656 else
14657 as_ln_s='cp -pR'
14659 else
14660 as_ln_s='cp -pR'
14662 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14663 rmdir conf$$.dir 2>/dev/null
14666 # as_fn_mkdir_p
14667 # -------------
14668 # Create "$as_dir" as a directory, including parents if necessary.
14669 as_fn_mkdir_p ()
14672 case $as_dir in #(
14673 -*) as_dir=./$as_dir;;
14674 esac
14675 test -d "$as_dir" || eval $as_mkdir_p || {
14676 as_dirs=
14677 while :; do
14678 case $as_dir in #(
14679 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14680 *) as_qdir=$as_dir;;
14681 esac
14682 as_dirs="'$as_qdir' $as_dirs"
14683 as_dir=`$as_dirname -- "$as_dir" ||
14684 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14685 X"$as_dir" : 'X\(//\)[^/]' \| \
14686 X"$as_dir" : 'X\(//\)$' \| \
14687 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14688 $as_echo X"$as_dir" |
14689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14690 s//\1/
14693 /^X\(\/\/\)[^/].*/{
14694 s//\1/
14697 /^X\(\/\/\)$/{
14698 s//\1/
14701 /^X\(\/\).*/{
14702 s//\1/
14705 s/.*/./; q'`
14706 test -d "$as_dir" && break
14707 done
14708 test -z "$as_dirs" || eval "mkdir $as_dirs"
14709 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14712 } # as_fn_mkdir_p
14713 if mkdir -p . 2>/dev/null; then
14714 as_mkdir_p='mkdir -p "$as_dir"'
14715 else
14716 test -d ./-p && rmdir ./-p
14717 as_mkdir_p=false
14721 # as_fn_executable_p FILE
14722 # -----------------------
14723 # Test if FILE is an executable regular file.
14724 as_fn_executable_p ()
14726 test -f "$1" && test -x "$1"
14727 } # as_fn_executable_p
14728 as_test_x='test -x'
14729 as_executable_p=as_fn_executable_p
14731 # Sed expression to map a string onto a valid CPP name.
14732 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14734 # Sed expression to map a string onto a valid variable name.
14735 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14738 exec 6>&1
14739 ## ----------------------------------- ##
14740 ## Main body of $CONFIG_STATUS script. ##
14741 ## ----------------------------------- ##
14742 _ASEOF
14743 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14746 # Save the log message, to keep $0 and so on meaningful, and to
14747 # report actual input values of CONFIG_FILES etc. instead of their
14748 # values after options handling.
14749 ac_log="
14750 This file was extended by package-unused $as_me version-unused, which was
14751 generated by GNU Autoconf 2.69. Invocation command line was
14753 CONFIG_FILES = $CONFIG_FILES
14754 CONFIG_HEADERS = $CONFIG_HEADERS
14755 CONFIG_LINKS = $CONFIG_LINKS
14756 CONFIG_COMMANDS = $CONFIG_COMMANDS
14757 $ $0 $@
14759 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14762 _ACEOF
14764 case $ac_config_files in *"
14765 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14766 esac
14768 case $ac_config_headers in *"
14769 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14770 esac
14773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14774 # Files that config.status was made for.
14775 config_files="$ac_config_files"
14776 config_headers="$ac_config_headers"
14777 config_commands="$ac_config_commands"
14779 _ACEOF
14781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14782 ac_cs_usage="\
14783 \`$as_me' instantiates files and other configuration actions
14784 from templates according to the current configuration. Unless the files
14785 and actions are specified as TAGs, all are instantiated by default.
14787 Usage: $0 [OPTION]... [TAG]...
14789 -h, --help print this help, then exit
14790 -V, --version print version number and configuration settings, then exit
14791 --config print configuration, then exit
14792 -q, --quiet, --silent
14793 do not print progress messages
14794 -d, --debug don't remove temporary files
14795 --recheck update $as_me by reconfiguring in the same conditions
14796 --file=FILE[:TEMPLATE]
14797 instantiate the configuration file FILE
14798 --header=FILE[:TEMPLATE]
14799 instantiate the configuration header FILE
14801 Configuration files:
14802 $config_files
14804 Configuration headers:
14805 $config_headers
14807 Configuration commands:
14808 $config_commands
14810 Report bugs to the package provider."
14812 _ACEOF
14813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14814 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14815 ac_cs_version="\\
14816 package-unused config.status version-unused
14817 configured by $0, generated by GNU Autoconf 2.69,
14818 with options \\"\$ac_cs_config\\"
14820 Copyright (C) 2012 Free Software Foundation, Inc.
14821 This config.status script is free software; the Free Software Foundation
14822 gives unlimited permission to copy, distribute and modify it."
14824 ac_pwd='$ac_pwd'
14825 srcdir='$srcdir'
14826 INSTALL='$INSTALL'
14827 MKDIR_P='$MKDIR_P'
14828 AWK='$AWK'
14829 test -n "\$AWK" || AWK=awk
14830 _ACEOF
14832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14833 # The default lists apply if the user does not specify any file.
14834 ac_need_defaults=:
14835 while test $# != 0
14837 case $1 in
14838 --*=?*)
14839 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14840 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14841 ac_shift=:
14843 --*=)
14844 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14845 ac_optarg=
14846 ac_shift=:
14849 ac_option=$1
14850 ac_optarg=$2
14851 ac_shift=shift
14853 esac
14855 case $ac_option in
14856 # Handling of the options.
14857 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14858 ac_cs_recheck=: ;;
14859 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14860 $as_echo "$ac_cs_version"; exit ;;
14861 --config | --confi | --conf | --con | --co | --c )
14862 $as_echo "$ac_cs_config"; exit ;;
14863 --debug | --debu | --deb | --de | --d | -d )
14864 debug=: ;;
14865 --file | --fil | --fi | --f )
14866 $ac_shift
14867 case $ac_optarg in
14868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14869 '') as_fn_error $? "missing file argument" ;;
14870 esac
14871 as_fn_append CONFIG_FILES " '$ac_optarg'"
14872 ac_need_defaults=false;;
14873 --header | --heade | --head | --hea )
14874 $ac_shift
14875 case $ac_optarg in
14876 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14877 esac
14878 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14879 ac_need_defaults=false;;
14880 --he | --h)
14881 # Conflict between --help and --header
14882 as_fn_error $? "ambiguous option: \`$1'
14883 Try \`$0 --help' for more information.";;
14884 --help | --hel | -h )
14885 $as_echo "$ac_cs_usage"; exit ;;
14886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14887 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14888 ac_cs_silent=: ;;
14890 # This is an error.
14891 -*) as_fn_error $? "unrecognized option: \`$1'
14892 Try \`$0 --help' for more information." ;;
14894 *) as_fn_append ac_config_targets " $1"
14895 ac_need_defaults=false ;;
14897 esac
14898 shift
14899 done
14901 ac_configure_extra_args=
14903 if $ac_cs_silent; then
14904 exec 6>/dev/null
14905 ac_configure_extra_args="$ac_configure_extra_args --silent"
14908 _ACEOF
14909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14910 if \$ac_cs_recheck; then
14911 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14912 shift
14913 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14914 CONFIG_SHELL='$SHELL'
14915 export CONFIG_SHELL
14916 exec "\$@"
14919 _ACEOF
14920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14921 exec 5>>config.log
14923 echo
14924 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14925 ## Running $as_me. ##
14926 _ASBOX
14927 $as_echo "$ac_log"
14928 } >&5
14930 _ACEOF
14931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14933 # INIT-COMMANDS
14936 srcdir="$srcdir"
14937 host="$host"
14938 target="$target"
14939 with_multisubdir="$with_multisubdir"
14940 with_multisrctop="$with_multisrctop"
14941 with_target_subdir="$with_target_subdir"
14942 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14943 multi_basedir="$multi_basedir"
14944 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14945 CC="$CC"
14946 CXX="$CXX"
14947 GFORTRAN="$GFORTRAN"
14948 GDC="$GDC"
14951 # The HP-UX ksh and POSIX shell print the target directory to stdout
14952 # if CDPATH is set.
14953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14955 sed_quote_subst='$sed_quote_subst'
14956 double_quote_subst='$double_quote_subst'
14957 delay_variable_subst='$delay_variable_subst'
14958 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14959 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14960 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14961 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14962 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14963 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14964 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14965 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14966 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14967 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14968 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14969 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14970 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14971 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14972 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14973 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14974 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14975 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14976 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14977 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14978 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14979 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14980 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14981 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14982 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14983 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14984 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14985 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14986 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14987 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14988 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14989 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14990 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14991 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14992 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14993 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14994 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14995 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14996 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14997 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14998 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14999 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15000 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15001 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15002 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15003 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15004 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15005 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15006 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"`'
15007 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15008 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15009 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15010 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15011 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15012 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15013 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15014 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15015 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15016 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15017 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15018 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15019 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15020 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15021 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15022 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15023 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15024 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15025 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15026 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15027 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15028 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15029 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15030 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15031 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15032 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15033 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15034 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15035 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15036 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15037 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15038 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15039 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15040 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15041 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15042 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15043 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15044 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15045 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15046 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15047 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15048 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15049 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15050 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15051 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15052 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15053 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15054 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15055 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15056 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15057 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15058 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15059 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15060 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15061 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15062 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15063 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15064 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15065 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15066 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15067 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15068 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15069 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15070 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15071 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15072 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15073 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15074 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15075 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15076 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15077 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15079 LTCC='$LTCC'
15080 LTCFLAGS='$LTCFLAGS'
15081 compiler='$compiler_DEFAULT'
15083 # A function that is used when there is no print builtin or printf.
15084 func_fallback_echo ()
15086 eval 'cat <<_LTECHO_EOF
15088 _LTECHO_EOF'
15091 # Quote evaled strings.
15092 for var in SHELL \
15093 ECHO \
15094 SED \
15095 GREP \
15096 EGREP \
15097 FGREP \
15098 LD \
15099 NM \
15100 LN_S \
15101 lt_SP2NL \
15102 lt_NL2SP \
15103 reload_flag \
15104 OBJDUMP \
15105 deplibs_check_method \
15106 file_magic_cmd \
15107 AR \
15108 AR_FLAGS \
15109 STRIP \
15110 RANLIB \
15111 CC \
15112 CFLAGS \
15113 compiler \
15114 lt_cv_sys_global_symbol_pipe \
15115 lt_cv_sys_global_symbol_to_cdecl \
15116 lt_cv_sys_global_symbol_to_c_name_address \
15117 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15118 lt_prog_compiler_no_builtin_flag \
15119 lt_prog_compiler_wl \
15120 lt_prog_compiler_pic \
15121 lt_prog_compiler_static \
15122 lt_cv_prog_compiler_c_o \
15123 need_locks \
15124 DSYMUTIL \
15125 NMEDIT \
15126 LIPO \
15127 OTOOL \
15128 OTOOL64 \
15129 shrext_cmds \
15130 export_dynamic_flag_spec \
15131 whole_archive_flag_spec \
15132 compiler_needs_object \
15133 with_gnu_ld \
15134 allow_undefined_flag \
15135 no_undefined_flag \
15136 hardcode_libdir_flag_spec \
15137 hardcode_libdir_flag_spec_ld \
15138 hardcode_libdir_separator \
15139 fix_srcfile_path \
15140 exclude_expsyms \
15141 include_expsyms \
15142 file_list_spec \
15143 variables_saved_for_relink \
15144 libname_spec \
15145 library_names_spec \
15146 soname_spec \
15147 install_override_mode \
15148 finish_eval \
15149 old_striplib \
15150 striplib; do
15151 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15152 *[\\\\\\\`\\"\\\$]*)
15153 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15156 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15158 esac
15159 done
15161 # Double-quote double-evaled strings.
15162 for var in reload_cmds \
15163 old_postinstall_cmds \
15164 old_postuninstall_cmds \
15165 old_archive_cmds \
15166 extract_expsyms_cmds \
15167 old_archive_from_new_cmds \
15168 old_archive_from_expsyms_cmds \
15169 archive_cmds \
15170 archive_expsym_cmds \
15171 module_cmds \
15172 module_expsym_cmds \
15173 export_symbols_cmds \
15174 prelink_cmds \
15175 postinstall_cmds \
15176 postuninstall_cmds \
15177 finish_cmds \
15178 sys_lib_search_path_spec \
15179 sys_lib_dlsearch_path_spec; do
15180 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15181 *[\\\\\\\`\\"\\\$]*)
15182 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15185 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15187 esac
15188 done
15190 ac_aux_dir='$ac_aux_dir'
15191 xsi_shell='$xsi_shell'
15192 lt_shell_append='$lt_shell_append'
15194 # See if we are running on zsh, and set the options which allow our
15195 # commands through without removal of \ escapes INIT.
15196 if test -n "\${ZSH_VERSION+set}" ; then
15197 setopt NO_GLOB_SUBST
15201 PACKAGE='$PACKAGE'
15202 VERSION='$VERSION'
15203 TIMESTAMP='$TIMESTAMP'
15204 RM='$RM'
15205 ofile='$ofile'
15210 GCC="$GCC"
15211 CC="$CC"
15212 acx_cv_header_stdint="$acx_cv_header_stdint"
15213 acx_cv_type_int8_t="$acx_cv_type_int8_t"
15214 acx_cv_type_int16_t="$acx_cv_type_int16_t"
15215 acx_cv_type_int32_t="$acx_cv_type_int32_t"
15216 acx_cv_type_int64_t="$acx_cv_type_int64_t"
15217 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15218 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15219 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15220 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15221 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15222 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15223 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15224 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15225 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15228 # Variables needed in config.status (file generation) which aren't already
15229 # passed by autoconf.
15230 SUBDIRS="$SUBDIRS"
15233 _ACEOF
15235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15237 # Handling of arguments.
15238 for ac_config_target in $ac_config_targets
15240 case $ac_config_target in
15241 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15242 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15243 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15244 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
15245 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15246 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
15247 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
15248 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15250 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15251 esac
15252 done
15255 # If the user did not use the arguments to specify the items to instantiate,
15256 # then the envvar interface is used. Set only those that are not.
15257 # We use the long form for the default assignment because of an extremely
15258 # bizarre bug on SunOS 4.1.3.
15259 if $ac_need_defaults; then
15260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15265 # Have a temporary directory for convenience. Make it in the build tree
15266 # simply because there is no reason against having it here, and in addition,
15267 # creating and moving files from /tmp can sometimes cause problems.
15268 # Hook for its removal unless debugging.
15269 # Note that there is a small window in which the directory will not be cleaned:
15270 # after its creation but before its name has been assigned to `$tmp'.
15271 $debug ||
15273 tmp= ac_tmp=
15274 trap 'exit_status=$?
15275 : "${ac_tmp:=$tmp}"
15276 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15278 trap 'as_fn_exit 1' 1 2 13 15
15280 # Create a (secure) tmp directory for tmp files.
15283 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15284 test -d "$tmp"
15285 } ||
15287 tmp=./conf$$-$RANDOM
15288 (umask 077 && mkdir "$tmp")
15289 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15290 ac_tmp=$tmp
15292 # Set up the scripts for CONFIG_FILES section.
15293 # No need to generate them if there are no CONFIG_FILES.
15294 # This happens for instance with `./config.status config.h'.
15295 if test -n "$CONFIG_FILES"; then
15298 ac_cr=`echo X | tr X '\015'`
15299 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15300 # But we know of no other shell where ac_cr would be empty at this
15301 # point, so we can use a bashism as a fallback.
15302 if test "x$ac_cr" = x; then
15303 eval ac_cr=\$\'\\r\'
15305 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15306 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15307 ac_cs_awk_cr='\\r'
15308 else
15309 ac_cs_awk_cr=$ac_cr
15312 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15313 _ACEOF
15317 echo "cat >conf$$subs.awk <<_ACEOF" &&
15318 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15319 echo "_ACEOF"
15320 } >conf$$subs.sh ||
15321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15322 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15323 ac_delim='%!_!# '
15324 for ac_last_try in false false false false false :; do
15325 . ./conf$$subs.sh ||
15326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15328 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15329 if test $ac_delim_n = $ac_delim_num; then
15330 break
15331 elif $ac_last_try; then
15332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15333 else
15334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15336 done
15337 rm -f conf$$subs.sh
15339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15340 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15341 _ACEOF
15342 sed -n '
15344 s/^/S["/; s/!.*/"]=/
15347 s/^[^!]*!//
15348 :repl
15349 t repl
15350 s/'"$ac_delim"'$//
15351 t delim
15354 s/\(.\{148\}\)..*/\1/
15355 t more1
15356 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15359 b repl
15360 :more1
15361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15364 s/.\{148\}//
15365 t nl
15366 :delim
15368 s/\(.\{148\}\)..*/\1/
15369 t more2
15370 s/["\\]/\\&/g; s/^/"/; s/$/"/
15373 :more2
15374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15377 s/.\{148\}//
15378 t delim
15379 ' <conf$$subs.awk | sed '
15380 /^[^""]/{
15382 s/\n//
15384 ' >>$CONFIG_STATUS || ac_write_fail=1
15385 rm -f conf$$subs.awk
15386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15387 _ACAWK
15388 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15389 for (key in S) S_is_set[key] = 1
15390 FS = "\a"
15394 line = $ 0
15395 nfields = split(line, field, "@")
15396 substed = 0
15397 len = length(field[1])
15398 for (i = 2; i < nfields; i++) {
15399 key = field[i]
15400 keylen = length(key)
15401 if (S_is_set[key]) {
15402 value = S[key]
15403 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15404 len += length(value) + length(field[++i])
15405 substed = 1
15406 } else
15407 len += 1 + keylen
15410 print line
15413 _ACAWK
15414 _ACEOF
15415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15417 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15418 else
15420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15421 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15422 _ACEOF
15424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15426 # trailing colons and then remove the whole line if VPATH becomes empty
15427 # (actually we leave an empty line to preserve line numbers).
15428 if test "x$srcdir" = x.; then
15429 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15431 s///
15432 s/^/:/
15433 s/[ ]*$/:/
15434 s/:\$(srcdir):/:/g
15435 s/:\${srcdir}:/:/g
15436 s/:@srcdir@:/:/g
15437 s/^:*//
15438 s/:*$//
15440 s/\(=[ ]*\).*/\1/
15442 s/\n//
15443 s/^[^=]*=[ ]*$//
15447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15448 fi # test -n "$CONFIG_FILES"
15450 # Set up the scripts for CONFIG_HEADERS section.
15451 # No need to generate them if there are no CONFIG_HEADERS.
15452 # This happens for instance with `./config.status Makefile'.
15453 if test -n "$CONFIG_HEADERS"; then
15454 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15455 BEGIN {
15456 _ACEOF
15458 # Transform confdefs.h into an awk script `defines.awk', embedded as
15459 # here-document in config.status, that substitutes the proper values into
15460 # config.h.in to produce config.h.
15462 # Create a delimiter string that does not exist in confdefs.h, to ease
15463 # handling of long lines.
15464 ac_delim='%!_!# '
15465 for ac_last_try in false false :; do
15466 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15467 if test -z "$ac_tt"; then
15468 break
15469 elif $ac_last_try; then
15470 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15471 else
15472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15474 done
15476 # For the awk script, D is an array of macro values keyed by name,
15477 # likewise P contains macro parameters if any. Preserve backslash
15478 # newline sequences.
15480 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15481 sed -n '
15482 s/.\{148\}/&'"$ac_delim"'/g
15483 t rset
15484 :rset
15485 s/^[ ]*#[ ]*define[ ][ ]*/ /
15486 t def
15488 :def
15489 s/\\$//
15490 t bsnl
15491 s/["\\]/\\&/g
15492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15493 D["\1"]=" \3"/p
15494 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15496 :bsnl
15497 s/["\\]/\\&/g
15498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15499 D["\1"]=" \3\\\\\\n"\\/p
15500 t cont
15501 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15502 t cont
15504 :cont
15506 s/.\{148\}/&'"$ac_delim"'/g
15507 t clear
15508 :clear
15509 s/\\$//
15510 t bsnlc
15511 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15513 :bsnlc
15514 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15515 b cont
15516 ' <confdefs.h | sed '
15517 s/'"$ac_delim"'/"\\\
15518 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15521 for (key in D) D_is_set[key] = 1
15522 FS = "\a"
15524 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15525 line = \$ 0
15526 split(line, arg, " ")
15527 if (arg[1] == "#") {
15528 defundef = arg[2]
15529 mac1 = arg[3]
15530 } else {
15531 defundef = substr(arg[1], 2)
15532 mac1 = arg[2]
15534 split(mac1, mac2, "(") #)
15535 macro = mac2[1]
15536 prefix = substr(line, 1, index(line, defundef) - 1)
15537 if (D_is_set[macro]) {
15538 # Preserve the white space surrounding the "#".
15539 print prefix "define", macro P[macro] D[macro]
15540 next
15541 } else {
15542 # Replace #undef with comments. This is necessary, for example,
15543 # in the case of _POSIX_SOURCE, which is predefined and required
15544 # on some systems where configure will not decide to define it.
15545 if (defundef == "undef") {
15546 print "/*", prefix defundef, macro, "*/"
15547 next
15551 { print }
15552 _ACAWK
15553 _ACEOF
15554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15555 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15556 fi # test -n "$CONFIG_HEADERS"
15559 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15560 shift
15561 for ac_tag
15563 case $ac_tag in
15564 :[FHLC]) ac_mode=$ac_tag; continue;;
15565 esac
15566 case $ac_mode$ac_tag in
15567 :[FHL]*:*);;
15568 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15569 :[FH]-) ac_tag=-:-;;
15570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15571 esac
15572 ac_save_IFS=$IFS
15573 IFS=:
15574 set x $ac_tag
15575 IFS=$ac_save_IFS
15576 shift
15577 ac_file=$1
15578 shift
15580 case $ac_mode in
15581 :L) ac_source=$1;;
15582 :[FH])
15583 ac_file_inputs=
15584 for ac_f
15586 case $ac_f in
15587 -) ac_f="$ac_tmp/stdin";;
15588 *) # Look for the file first in the build tree, then in the source tree
15589 # (if the path is not absolute). The absolute path cannot be DOS-style,
15590 # because $ac_f cannot contain `:'.
15591 test -f "$ac_f" ||
15592 case $ac_f in
15593 [\\/$]*) false;;
15594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15595 esac ||
15596 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15597 esac
15598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15599 as_fn_append ac_file_inputs " '$ac_f'"
15600 done
15602 # Let's still pretend it is `configure' which instantiates (i.e., don't
15603 # use $as_me), people would be surprised to read:
15604 # /* config.h. Generated by config.status. */
15605 configure_input='Generated from '`
15606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15607 `' by configure.'
15608 if test x"$ac_file" != x-; then
15609 configure_input="$ac_file. $configure_input"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15611 $as_echo "$as_me: creating $ac_file" >&6;}
15613 # Neutralize special characters interpreted by sed in replacement strings.
15614 case $configure_input in #(
15615 *\&* | *\|* | *\\* )
15616 ac_sed_conf_input=`$as_echo "$configure_input" |
15617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15618 *) ac_sed_conf_input=$configure_input;;
15619 esac
15621 case $ac_tag in
15622 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15624 esac
15626 esac
15628 ac_dir=`$as_dirname -- "$ac_file" ||
15629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15630 X"$ac_file" : 'X\(//\)[^/]' \| \
15631 X"$ac_file" : 'X\(//\)$' \| \
15632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15633 $as_echo X"$ac_file" |
15634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15635 s//\1/
15638 /^X\(\/\/\)[^/].*/{
15639 s//\1/
15642 /^X\(\/\/\)$/{
15643 s//\1/
15646 /^X\(\/\).*/{
15647 s//\1/
15650 s/.*/./; q'`
15651 as_dir="$ac_dir"; as_fn_mkdir_p
15652 ac_builddir=.
15654 case "$ac_dir" in
15655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15658 # A ".." for each directory in $ac_dir_suffix.
15659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15660 case $ac_top_builddir_sub in
15661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15663 esac ;;
15664 esac
15665 ac_abs_top_builddir=$ac_pwd
15666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15667 # for backward compatibility:
15668 ac_top_builddir=$ac_top_build_prefix
15670 case $srcdir in
15671 .) # We are building in place.
15672 ac_srcdir=.
15673 ac_top_srcdir=$ac_top_builddir_sub
15674 ac_abs_top_srcdir=$ac_pwd ;;
15675 [\\/]* | ?:[\\/]* ) # Absolute name.
15676 ac_srcdir=$srcdir$ac_dir_suffix;
15677 ac_top_srcdir=$srcdir
15678 ac_abs_top_srcdir=$srcdir ;;
15679 *) # Relative name.
15680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15681 ac_top_srcdir=$ac_top_build_prefix$srcdir
15682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15683 esac
15684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15687 case $ac_mode in
15690 # CONFIG_FILE
15693 case $INSTALL in
15694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15696 esac
15697 ac_MKDIR_P=$MKDIR_P
15698 case $MKDIR_P in
15699 [\\/$]* | ?:[\\/]* ) ;;
15700 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15701 esac
15702 _ACEOF
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 # If the template does not know about datarootdir, expand it.
15706 # FIXME: This hack should be removed a few years after 2.60.
15707 ac_datarootdir_hack=; ac_datarootdir_seen=
15708 ac_sed_dataroot='
15709 /datarootdir/ {
15713 /@datadir@/p
15714 /@docdir@/p
15715 /@infodir@/p
15716 /@localedir@/p
15717 /@mandir@/p'
15718 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15719 *datarootdir*) ac_datarootdir_seen=yes;;
15720 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15722 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15723 _ACEOF
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 ac_datarootdir_hack='
15726 s&@datadir@&$datadir&g
15727 s&@docdir@&$docdir&g
15728 s&@infodir@&$infodir&g
15729 s&@localedir@&$localedir&g
15730 s&@mandir@&$mandir&g
15731 s&\\\${datarootdir}&$datarootdir&g' ;;
15732 esac
15733 _ACEOF
15735 # Neutralize VPATH when `$srcdir' = `.'.
15736 # Shell code in configure.ac might set extrasub.
15737 # FIXME: do we really want to maintain this feature?
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 ac_sed_extra="$ac_vpsub
15740 $extrasub
15741 _ACEOF
15742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15745 s|@configure_input@|$ac_sed_conf_input|;t t
15746 s&@top_builddir@&$ac_top_builddir_sub&;t t
15747 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15748 s&@srcdir@&$ac_srcdir&;t t
15749 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15750 s&@top_srcdir@&$ac_top_srcdir&;t t
15751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15752 s&@builddir@&$ac_builddir&;t t
15753 s&@abs_builddir@&$ac_abs_builddir&;t t
15754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15755 s&@INSTALL@&$ac_INSTALL&;t t
15756 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15757 $ac_datarootdir_hack
15759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15760 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15763 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15765 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15767 which seems to be undefined. Please make sure it is defined" >&5
15768 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15769 which seems to be undefined. Please make sure it is defined" >&2;}
15771 rm -f "$ac_tmp/stdin"
15772 case $ac_file in
15773 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15774 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15775 esac \
15776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15780 # CONFIG_HEADER
15782 if test x"$ac_file" != x-; then
15784 $as_echo "/* $configure_input */" \
15785 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15786 } >"$ac_tmp/config.h" \
15787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15788 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15790 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15791 else
15792 rm -f "$ac_file"
15793 mv "$ac_tmp/config.h" "$ac_file" \
15794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15796 else
15797 $as_echo "/* $configure_input */" \
15798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15799 || as_fn_error $? "could not create -" "$LINENO" 5
15801 # Compute "$ac_file"'s index in $config_headers.
15802 _am_arg="$ac_file"
15803 _am_stamp_count=1
15804 for _am_header in $config_headers :; do
15805 case $_am_header in
15806 $_am_arg | $_am_arg:* )
15807 break ;;
15809 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15810 esac
15811 done
15812 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15813 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15814 X"$_am_arg" : 'X\(//\)[^/]' \| \
15815 X"$_am_arg" : 'X\(//\)$' \| \
15816 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15817 $as_echo X"$_am_arg" |
15818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15819 s//\1/
15822 /^X\(\/\/\)[^/].*/{
15823 s//\1/
15826 /^X\(\/\/\)$/{
15827 s//\1/
15830 /^X\(\/\).*/{
15831 s//\1/
15834 s/.*/./; q'`/stamp-h$_am_stamp_count
15837 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15838 $as_echo "$as_me: executing $ac_file commands" >&6;}
15840 esac
15843 case $ac_file$ac_mode in
15844 "default-1":C)
15845 # Only add multilib support code if we just rebuilt the top-level
15846 # Makefile.
15847 case " $CONFIG_FILES " in
15848 *" Makefile "*)
15849 ac_file=Makefile . ${multi_basedir}/config-ml.in
15851 esac ;;
15852 "libtool":C)
15854 # See if we are running on zsh, and set the options which allow our
15855 # commands through without removal of \ escapes.
15856 if test -n "${ZSH_VERSION+set}" ; then
15857 setopt NO_GLOB_SUBST
15860 cfgfile="${ofile}T"
15861 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15862 $RM "$cfgfile"
15864 cat <<_LT_EOF >> "$cfgfile"
15865 #! $SHELL
15867 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15868 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15869 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15870 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15872 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15873 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15874 # Written by Gordon Matzigkeit, 1996
15876 # This file is part of GNU Libtool.
15878 # GNU Libtool is free software; you can redistribute it and/or
15879 # modify it under the terms of the GNU General Public License as
15880 # published by the Free Software Foundation; either version 2 of
15881 # the License, or (at your option) any later version.
15883 # As a special exception to the GNU General Public License,
15884 # if you distribute this file as part of a program or library that
15885 # is built using GNU Libtool, you may include this file under the
15886 # same distribution terms that you use for the rest of that program.
15888 # GNU Libtool is distributed in the hope that it will be useful,
15889 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15890 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15891 # GNU General Public License for more details.
15893 # You should have received a copy of the GNU General Public License
15894 # along with GNU Libtool; see the file COPYING. If not, a copy
15895 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15896 # obtained by writing to the Free Software Foundation, Inc.,
15897 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15900 # The names of the tagged configurations supported by this script.
15901 available_tags=""
15903 # ### BEGIN LIBTOOL CONFIG
15905 # Which release of libtool.m4 was used?
15906 macro_version=$macro_version
15907 macro_revision=$macro_revision
15909 # Whether or not to build shared libraries.
15910 build_libtool_libs=$enable_shared
15912 # Whether or not to build static libraries.
15913 build_old_libs=$enable_static
15915 # What type of objects to build.
15916 pic_mode=$pic_mode
15918 # Whether or not to optimize for fast installation.
15919 fast_install=$enable_fast_install
15921 # Shell to use when invoking shell scripts.
15922 SHELL=$lt_SHELL
15924 # An echo program that protects backslashes.
15925 ECHO=$lt_ECHO
15927 # The host system.
15928 host_alias=$host_alias
15929 host=$host
15930 host_os=$host_os
15932 # The build system.
15933 build_alias=$build_alias
15934 build=$build
15935 build_os=$build_os
15937 # A sed program that does not truncate output.
15938 SED=$lt_SED
15940 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15941 Xsed="\$SED -e 1s/^X//"
15943 # A grep program that handles long lines.
15944 GREP=$lt_GREP
15946 # An ERE matcher.
15947 EGREP=$lt_EGREP
15949 # A literal string matcher.
15950 FGREP=$lt_FGREP
15952 # A BSD- or MS-compatible name lister.
15953 NM=$lt_NM
15955 # Whether we need soft or hard links.
15956 LN_S=$lt_LN_S
15958 # What is the maximum length of a command?
15959 max_cmd_len=$max_cmd_len
15961 # Object file suffix (normally "o").
15962 objext=$ac_objext
15964 # Executable file suffix (normally "").
15965 exeext=$exeext
15967 # whether the shell understands "unset".
15968 lt_unset=$lt_unset
15970 # turn spaces into newlines.
15971 SP2NL=$lt_lt_SP2NL
15973 # turn newlines into spaces.
15974 NL2SP=$lt_lt_NL2SP
15976 # An object symbol dumper.
15977 OBJDUMP=$lt_OBJDUMP
15979 # Method to check whether dependent libraries are shared objects.
15980 deplibs_check_method=$lt_deplibs_check_method
15982 # Command to use when deplibs_check_method == "file_magic".
15983 file_magic_cmd=$lt_file_magic_cmd
15985 # The archiver.
15986 AR=$lt_AR
15987 AR_FLAGS=$lt_AR_FLAGS
15989 # A symbol stripping program.
15990 STRIP=$lt_STRIP
15992 # Commands used to install an old-style archive.
15993 RANLIB=$lt_RANLIB
15994 old_postinstall_cmds=$lt_old_postinstall_cmds
15995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15997 # Whether to use a lock for old archive extraction.
15998 lock_old_archive_extraction=$lock_old_archive_extraction
16000 # A C compiler.
16001 LTCC=$lt_CC
16003 # LTCC compiler flags.
16004 LTCFLAGS=$lt_CFLAGS
16006 # Take the output of nm and produce a listing of raw symbols and C names.
16007 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16009 # Transform the output of nm in a proper C declaration.
16010 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16012 # Transform the output of nm in a C name address pair.
16013 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16015 # Transform the output of nm in a C name address pair when lib prefix is needed.
16016 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16018 # The name of the directory that contains temporary libtool files.
16019 objdir=$objdir
16021 # Used to examine libraries when file_magic_cmd begins with "file".
16022 MAGIC_CMD=$MAGIC_CMD
16024 # Must we lock files when doing compilation?
16025 need_locks=$lt_need_locks
16027 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16028 DSYMUTIL=$lt_DSYMUTIL
16030 # Tool to change global to local symbols on Mac OS X.
16031 NMEDIT=$lt_NMEDIT
16033 # Tool to manipulate fat objects and archives on Mac OS X.
16034 LIPO=$lt_LIPO
16036 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16037 OTOOL=$lt_OTOOL
16039 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16040 OTOOL64=$lt_OTOOL64
16042 # Old archive suffix (normally "a").
16043 libext=$libext
16045 # Shared library suffix (normally ".so").
16046 shrext_cmds=$lt_shrext_cmds
16048 # The commands to extract the exported symbol list from a shared archive.
16049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16051 # Variables whose values should be saved in libtool wrapper scripts and
16052 # restored at link time.
16053 variables_saved_for_relink=$lt_variables_saved_for_relink
16055 # Do we need the "lib" prefix for modules?
16056 need_lib_prefix=$need_lib_prefix
16058 # Do we need a version for libraries?
16059 need_version=$need_version
16061 # Library versioning type.
16062 version_type=$version_type
16064 # Shared library runtime path variable.
16065 runpath_var=$runpath_var
16067 # Shared library path variable.
16068 shlibpath_var=$shlibpath_var
16070 # Is shlibpath searched before the hard-coded library search path?
16071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16073 # Format of library name prefix.
16074 libname_spec=$lt_libname_spec
16076 # List of archive names. First name is the real one, the rest are links.
16077 # The last name is the one that the linker finds with -lNAME
16078 library_names_spec=$lt_library_names_spec
16080 # The coded name of the library, if different from the real name.
16081 soname_spec=$lt_soname_spec
16083 # Permission mode override for installation of shared libraries.
16084 install_override_mode=$lt_install_override_mode
16086 # Command to use after installation of a shared archive.
16087 postinstall_cmds=$lt_postinstall_cmds
16089 # Command to use after uninstallation of a shared archive.
16090 postuninstall_cmds=$lt_postuninstall_cmds
16092 # Commands used to finish a libtool library installation in a directory.
16093 finish_cmds=$lt_finish_cmds
16095 # As "finish_cmds", except a single script fragment to be evaled but
16096 # not shown.
16097 finish_eval=$lt_finish_eval
16099 # Whether we should hardcode library paths into libraries.
16100 hardcode_into_libs=$hardcode_into_libs
16102 # Compile-time system search path for libraries.
16103 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16105 # Run-time system search path for libraries.
16106 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16108 # Whether dlopen is supported.
16109 dlopen_support=$enable_dlopen
16111 # Whether dlopen of programs is supported.
16112 dlopen_self=$enable_dlopen_self
16114 # Whether dlopen of statically linked programs is supported.
16115 dlopen_self_static=$enable_dlopen_self_static
16117 # Commands to strip libraries.
16118 old_striplib=$lt_old_striplib
16119 striplib=$lt_striplib
16122 # The linker used to build libraries.
16123 LD=$lt_LD
16125 # How to create reloadable object files.
16126 reload_flag=$lt_reload_flag
16127 reload_cmds=$lt_reload_cmds
16129 # Commands used to build an old-style archive.
16130 old_archive_cmds=$lt_old_archive_cmds
16132 # A language specific compiler.
16133 CC=$lt_compiler
16135 # Is the compiler the GNU compiler?
16136 with_gcc=$GCC
16138 # Compiler flag to turn off builtin functions.
16139 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16141 # How to pass a linker flag through the compiler.
16142 wl=$lt_lt_prog_compiler_wl
16144 # Additional compiler flags for building library objects.
16145 pic_flag=$lt_lt_prog_compiler_pic
16147 # Compiler flag to prevent dynamic linking.
16148 link_static_flag=$lt_lt_prog_compiler_static
16150 # Does compiler simultaneously support -c and -o options?
16151 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16153 # Whether or not to add -lc for building shared libraries.
16154 build_libtool_need_lc=$archive_cmds_need_lc
16156 # Whether or not to disallow shared libs when runtime libs are static.
16157 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16159 # Compiler flag to allow reflexive dlopens.
16160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16162 # Compiler flag to generate shared objects directly from archives.
16163 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16165 # Whether the compiler copes with passing no objects directly.
16166 compiler_needs_object=$lt_compiler_needs_object
16168 # Create an old-style archive from a shared archive.
16169 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16171 # Create a temporary old-style archive to link instead of a shared archive.
16172 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16174 # Commands used to build a shared archive.
16175 archive_cmds=$lt_archive_cmds
16176 archive_expsym_cmds=$lt_archive_expsym_cmds
16178 # Commands used to build a loadable module if different from building
16179 # a shared archive.
16180 module_cmds=$lt_module_cmds
16181 module_expsym_cmds=$lt_module_expsym_cmds
16183 # Whether we are building with GNU ld or not.
16184 with_gnu_ld=$lt_with_gnu_ld
16186 # Flag that allows shared libraries with undefined symbols to be built.
16187 allow_undefined_flag=$lt_allow_undefined_flag
16189 # Flag that enforces no undefined symbols.
16190 no_undefined_flag=$lt_no_undefined_flag
16192 # Flag to hardcode \$libdir into a binary during linking.
16193 # This must work even if \$libdir does not exist
16194 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16196 # If ld is used when linking, flag to hardcode \$libdir into a binary
16197 # during linking. This must work even if \$libdir does not exist.
16198 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16200 # Whether we need a single "-rpath" flag with a separated argument.
16201 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16203 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16204 # DIR into the resulting binary.
16205 hardcode_direct=$hardcode_direct
16207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16208 # DIR into the resulting binary and the resulting library dependency is
16209 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16210 # library is relocated.
16211 hardcode_direct_absolute=$hardcode_direct_absolute
16213 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16214 # into the resulting binary.
16215 hardcode_minus_L=$hardcode_minus_L
16217 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16218 # into the resulting binary.
16219 hardcode_shlibpath_var=$hardcode_shlibpath_var
16221 # Set to "yes" if building a shared library automatically hardcodes DIR
16222 # into the library and all subsequent libraries and executables linked
16223 # against it.
16224 hardcode_automatic=$hardcode_automatic
16226 # Set to yes if linker adds runtime paths of dependent libraries
16227 # to runtime path list.
16228 inherit_rpath=$inherit_rpath
16230 # Whether libtool must link a program against all its dependency libraries.
16231 link_all_deplibs=$link_all_deplibs
16233 # Fix the shell variable \$srcfile for the compiler.
16234 fix_srcfile_path=$lt_fix_srcfile_path
16236 # Set to "yes" if exported symbols are required.
16237 always_export_symbols=$always_export_symbols
16239 # The commands to list exported symbols.
16240 export_symbols_cmds=$lt_export_symbols_cmds
16242 # Symbols that should not be listed in the preloaded symbols.
16243 exclude_expsyms=$lt_exclude_expsyms
16245 # Symbols that must always be exported.
16246 include_expsyms=$lt_include_expsyms
16248 # Commands necessary for linking programs (against libraries) with templates.
16249 prelink_cmds=$lt_prelink_cmds
16251 # Specify filename containing input files.
16252 file_list_spec=$lt_file_list_spec
16254 # How to hardcode a shared library path into an executable.
16255 hardcode_action=$hardcode_action
16257 # ### END LIBTOOL CONFIG
16259 _LT_EOF
16261 case $host_os in
16262 aix3*)
16263 cat <<\_LT_EOF >> "$cfgfile"
16264 # AIX sometimes has problems with the GCC collect2 program. For some
16265 # reason, if we set the COLLECT_NAMES environment variable, the problems
16266 # vanish in a puff of smoke.
16267 if test "X${COLLECT_NAMES+set}" != Xset; then
16268 COLLECT_NAMES=
16269 export COLLECT_NAMES
16271 _LT_EOF
16273 esac
16276 ltmain="$ac_aux_dir/ltmain.sh"
16279 # We use sed instead of cat because bash on DJGPP gets confused if
16280 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16281 # text mode, it properly converts lines to CR/LF. This bash problem
16282 # is reportedly fixed, but why not run on old versions too?
16283 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16284 || (rm -f "$cfgfile"; exit 1)
16286 case $xsi_shell in
16287 yes)
16288 cat << \_LT_EOF >> "$cfgfile"
16290 # func_dirname file append nondir_replacement
16291 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16292 # otherwise set result to NONDIR_REPLACEMENT.
16293 func_dirname ()
16295 case ${1} in
16296 */*) func_dirname_result="${1%/*}${2}" ;;
16297 * ) func_dirname_result="${3}" ;;
16298 esac
16301 # func_basename file
16302 func_basename ()
16304 func_basename_result="${1##*/}"
16307 # func_dirname_and_basename file append nondir_replacement
16308 # perform func_basename and func_dirname in a single function
16309 # call:
16310 # dirname: Compute the dirname of FILE. If nonempty,
16311 # add APPEND to the result, otherwise set result
16312 # to NONDIR_REPLACEMENT.
16313 # value returned in "$func_dirname_result"
16314 # basename: Compute filename of FILE.
16315 # value retuned in "$func_basename_result"
16316 # Implementation must be kept synchronized with func_dirname
16317 # and func_basename. For efficiency, we do not delegate to
16318 # those functions but instead duplicate the functionality here.
16319 func_dirname_and_basename ()
16321 case ${1} in
16322 */*) func_dirname_result="${1%/*}${2}" ;;
16323 * ) func_dirname_result="${3}" ;;
16324 esac
16325 func_basename_result="${1##*/}"
16328 # func_stripname prefix suffix name
16329 # strip PREFIX and SUFFIX off of NAME.
16330 # PREFIX and SUFFIX must not contain globbing or regex special
16331 # characters, hashes, percent signs, but SUFFIX may contain a leading
16332 # dot (in which case that matches only a dot).
16333 func_stripname ()
16335 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16336 # positional parameters, so assign one to ordinary parameter first.
16337 func_stripname_result=${3}
16338 func_stripname_result=${func_stripname_result#"${1}"}
16339 func_stripname_result=${func_stripname_result%"${2}"}
16342 # func_opt_split
16343 func_opt_split ()
16345 func_opt_split_opt=${1%%=*}
16346 func_opt_split_arg=${1#*=}
16349 # func_lo2o object
16350 func_lo2o ()
16352 case ${1} in
16353 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16354 *) func_lo2o_result=${1} ;;
16355 esac
16358 # func_xform libobj-or-source
16359 func_xform ()
16361 func_xform_result=${1%.*}.lo
16364 # func_arith arithmetic-term...
16365 func_arith ()
16367 func_arith_result=$(( $* ))
16370 # func_len string
16371 # STRING may not start with a hyphen.
16372 func_len ()
16374 func_len_result=${#1}
16377 _LT_EOF
16379 *) # Bourne compatible functions.
16380 cat << \_LT_EOF >> "$cfgfile"
16382 # func_dirname file append nondir_replacement
16383 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16384 # otherwise set result to NONDIR_REPLACEMENT.
16385 func_dirname ()
16387 # Extract subdirectory from the argument.
16388 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16389 if test "X$func_dirname_result" = "X${1}"; then
16390 func_dirname_result="${3}"
16391 else
16392 func_dirname_result="$func_dirname_result${2}"
16396 # func_basename file
16397 func_basename ()
16399 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16403 # func_stripname prefix suffix name
16404 # strip PREFIX and SUFFIX off of NAME.
16405 # PREFIX and SUFFIX must not contain globbing or regex special
16406 # characters, hashes, percent signs, but SUFFIX may contain a leading
16407 # dot (in which case that matches only a dot).
16408 # func_strip_suffix prefix name
16409 func_stripname ()
16411 case ${2} in
16412 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16413 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16414 esac
16417 # sed scripts:
16418 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16419 my_sed_long_arg='1s/^-[^=]*=//'
16421 # func_opt_split
16422 func_opt_split ()
16424 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16425 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16428 # func_lo2o object
16429 func_lo2o ()
16431 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16434 # func_xform libobj-or-source
16435 func_xform ()
16437 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16440 # func_arith arithmetic-term...
16441 func_arith ()
16443 func_arith_result=`expr "$@"`
16446 # func_len string
16447 # STRING may not start with a hyphen.
16448 func_len ()
16450 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16453 _LT_EOF
16454 esac
16456 case $lt_shell_append in
16457 yes)
16458 cat << \_LT_EOF >> "$cfgfile"
16460 # func_append var value
16461 # Append VALUE to the end of shell variable VAR.
16462 func_append ()
16464 eval "$1+=\$2"
16466 _LT_EOF
16469 cat << \_LT_EOF >> "$cfgfile"
16471 # func_append var value
16472 # Append VALUE to the end of shell variable VAR.
16473 func_append ()
16475 eval "$1=\$$1\$2"
16478 _LT_EOF
16480 esac
16483 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16484 || (rm -f "$cfgfile"; exit 1)
16486 mv -f "$cfgfile" "$ofile" ||
16487 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16488 chmod +x "$ofile"
16491 "gstdint.h":C)
16492 if test "$GCC" = yes; then
16493 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16494 else
16495 echo "/* generated for $CC */" > tmp-stdint.h
16498 sed 's/^ *//' >> tmp-stdint.h <<EOF
16500 #ifndef GCC_GENERATED_STDINT_H
16501 #define GCC_GENERATED_STDINT_H 1
16503 #include <sys/types.h>
16506 if test "$acx_cv_header_stdint" != stdint.h; then
16507 echo "#include <stddef.h>" >> tmp-stdint.h
16509 if test "$acx_cv_header_stdint" != stddef.h; then
16510 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16513 sed 's/^ *//' >> tmp-stdint.h <<EOF
16514 /* glibc uses these symbols as guards to prevent redefinitions. */
16515 #ifdef __int8_t_defined
16516 #define _INT8_T
16517 #define _INT16_T
16518 #define _INT32_T
16519 #endif
16520 #ifdef __uint32_t_defined
16521 #define _UINT32_T
16522 #endif
16526 # ----------------- done header, emit basic int types -------------
16527 if test "$acx_cv_header_stdint" = stddef.h; then
16528 sed 's/^ *//' >> tmp-stdint.h <<EOF
16530 #ifndef _UINT8_T
16531 #define _UINT8_T
16532 #ifndef __uint8_t_defined
16533 #define __uint8_t_defined
16534 #ifndef uint8_t
16535 typedef unsigned $acx_cv_type_int8_t uint8_t;
16536 #endif
16537 #endif
16538 #endif
16540 #ifndef _UINT16_T
16541 #define _UINT16_T
16542 #ifndef __uint16_t_defined
16543 #define __uint16_t_defined
16544 #ifndef uint16_t
16545 typedef unsigned $acx_cv_type_int16_t uint16_t;
16546 #endif
16547 #endif
16548 #endif
16550 #ifndef _UINT32_T
16551 #define _UINT32_T
16552 #ifndef __uint32_t_defined
16553 #define __uint32_t_defined
16554 #ifndef uint32_t
16555 typedef unsigned $acx_cv_type_int32_t uint32_t;
16556 #endif
16557 #endif
16558 #endif
16560 #ifndef _INT8_T
16561 #define _INT8_T
16562 #ifndef __int8_t_defined
16563 #define __int8_t_defined
16564 #ifndef int8_t
16565 typedef $acx_cv_type_int8_t int8_t;
16566 #endif
16567 #endif
16568 #endif
16570 #ifndef _INT16_T
16571 #define _INT16_T
16572 #ifndef __int16_t_defined
16573 #define __int16_t_defined
16574 #ifndef int16_t
16575 typedef $acx_cv_type_int16_t int16_t;
16576 #endif
16577 #endif
16578 #endif
16580 #ifndef _INT32_T
16581 #define _INT32_T
16582 #ifndef __int32_t_defined
16583 #define __int32_t_defined
16584 #ifndef int32_t
16585 typedef $acx_cv_type_int32_t int32_t;
16586 #endif
16587 #endif
16588 #endif
16590 elif test "$ac_cv_type_u_int32_t" = yes; then
16591 sed 's/^ *//' >> tmp-stdint.h <<EOF
16593 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16594 #ifndef _INT8_T
16595 #define _INT8_T
16596 #endif
16597 #ifndef _INT16_T
16598 #define _INT16_T
16599 #endif
16600 #ifndef _INT32_T
16601 #define _INT32_T
16602 #endif
16604 #ifndef _UINT8_T
16605 #define _UINT8_T
16606 #ifndef __uint8_t_defined
16607 #define __uint8_t_defined
16608 #ifndef uint8_t
16609 typedef u_int8_t uint8_t;
16610 #endif
16611 #endif
16612 #endif
16614 #ifndef _UINT16_T
16615 #define _UINT16_T
16616 #ifndef __uint16_t_defined
16617 #define __uint16_t_defined
16618 #ifndef uint16_t
16619 typedef u_int16_t uint16_t;
16620 #endif
16621 #endif
16622 #endif
16624 #ifndef _UINT32_T
16625 #define _UINT32_T
16626 #ifndef __uint32_t_defined
16627 #define __uint32_t_defined
16628 #ifndef uint32_t
16629 typedef u_int32_t uint32_t;
16630 #endif
16631 #endif
16632 #endif
16634 else
16635 sed 's/^ *//' >> tmp-stdint.h <<EOF
16637 /* Some systems have guard macros to prevent redefinitions, define them. */
16638 #ifndef _INT8_T
16639 #define _INT8_T
16640 #endif
16641 #ifndef _INT16_T
16642 #define _INT16_T
16643 #endif
16644 #ifndef _INT32_T
16645 #define _INT32_T
16646 #endif
16647 #ifndef _UINT8_T
16648 #define _UINT8_T
16649 #endif
16650 #ifndef _UINT16_T
16651 #define _UINT16_T
16652 #endif
16653 #ifndef _UINT32_T
16654 #define _UINT32_T
16655 #endif
16659 # ------------- done basic int types, emit int64_t types ------------
16660 if test "$ac_cv_type_uint64_t" = yes; then
16661 sed 's/^ *//' >> tmp-stdint.h <<EOF
16663 /* system headers have good uint64_t and int64_t */
16664 #ifndef _INT64_T
16665 #define _INT64_T
16666 #endif
16667 #ifndef _UINT64_T
16668 #define _UINT64_T
16669 #endif
16671 elif test "$ac_cv_type_u_int64_t" = yes; then
16672 sed 's/^ *//' >> tmp-stdint.h <<EOF
16674 /* system headers have an u_int64_t (and int64_t) */
16675 #ifndef _INT64_T
16676 #define _INT64_T
16677 #endif
16678 #ifndef _UINT64_T
16679 #define _UINT64_T
16680 #ifndef __uint64_t_defined
16681 #define __uint64_t_defined
16682 #ifndef uint64_t
16683 typedef u_int64_t uint64_t;
16684 #endif
16685 #endif
16686 #endif
16688 elif test -n "$acx_cv_type_int64_t"; then
16689 sed 's/^ *//' >> tmp-stdint.h <<EOF
16691 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16692 #ifndef _INT64_T
16693 #define _INT64_T
16694 #ifndef int64_t
16695 typedef $acx_cv_type_int64_t int64_t;
16696 #endif
16697 #endif
16698 #ifndef _UINT64_T
16699 #define _UINT64_T
16700 #ifndef __uint64_t_defined
16701 #define __uint64_t_defined
16702 #ifndef uint64_t
16703 typedef unsigned $acx_cv_type_int64_t uint64_t;
16704 #endif
16705 #endif
16706 #endif
16708 else
16709 sed 's/^ *//' >> tmp-stdint.h <<EOF
16711 /* some common heuristics for int64_t, using compiler-specific tests */
16712 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16713 #ifndef _INT64_T
16714 #define _INT64_T
16715 #ifndef __int64_t_defined
16716 #ifndef int64_t
16717 typedef long long int64_t;
16718 #endif
16719 #endif
16720 #endif
16721 #ifndef _UINT64_T
16722 #define _UINT64_T
16723 #ifndef uint64_t
16724 typedef unsigned long long uint64_t;
16725 #endif
16726 #endif
16728 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16729 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16730 does not implement __extension__. But that compiler doesn't define
16731 __GNUC_MINOR__. */
16732 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16733 # define __extension__
16734 # endif
16736 # ifndef _INT64_T
16737 # define _INT64_T
16738 # ifndef int64_t
16739 __extension__ typedef long long int64_t;
16740 # endif
16741 # endif
16742 # ifndef _UINT64_T
16743 # define _UINT64_T
16744 # ifndef uint64_t
16745 __extension__ typedef unsigned long long uint64_t;
16746 # endif
16747 # endif
16749 #elif !defined __STRICT_ANSI__
16750 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16752 # ifndef _INT64_T
16753 # define _INT64_T
16754 # ifndef int64_t
16755 typedef __int64 int64_t;
16756 # endif
16757 # endif
16758 # ifndef _UINT64_T
16759 # define _UINT64_T
16760 # ifndef uint64_t
16761 typedef unsigned __int64 uint64_t;
16762 # endif
16763 # endif
16764 # endif /* compiler */
16766 #endif /* ANSI version */
16770 # ------------- done int64_t types, emit intptr types ------------
16771 if test "$ac_cv_type_uintptr_t" != yes; then
16772 sed 's/^ *//' >> tmp-stdint.h <<EOF
16774 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16775 #ifndef __uintptr_t_defined
16776 #ifndef uintptr_t
16777 typedef u$acx_cv_type_intptr_t uintptr_t;
16778 #endif
16779 #endif
16780 #ifndef __intptr_t_defined
16781 #ifndef intptr_t
16782 typedef $acx_cv_type_intptr_t intptr_t;
16783 #endif
16784 #endif
16788 # ------------- done intptr types, emit int_least types ------------
16789 if test "$ac_cv_type_int_least32_t" != yes; then
16790 sed 's/^ *//' >> tmp-stdint.h <<EOF
16792 /* Define int_least types */
16793 typedef int8_t int_least8_t;
16794 typedef int16_t int_least16_t;
16795 typedef int32_t int_least32_t;
16796 #ifdef _INT64_T
16797 typedef int64_t int_least64_t;
16798 #endif
16800 typedef uint8_t uint_least8_t;
16801 typedef uint16_t uint_least16_t;
16802 typedef uint32_t uint_least32_t;
16803 #ifdef _UINT64_T
16804 typedef uint64_t uint_least64_t;
16805 #endif
16809 # ------------- done intptr types, emit int_fast types ------------
16810 if test "$ac_cv_type_int_fast32_t" != yes; then
16811 sed 's/^ *//' >> tmp-stdint.h <<EOF
16813 /* Define int_fast types. short is often slow */
16814 typedef int8_t int_fast8_t;
16815 typedef int int_fast16_t;
16816 typedef int32_t int_fast32_t;
16817 #ifdef _INT64_T
16818 typedef int64_t int_fast64_t;
16819 #endif
16821 typedef uint8_t uint_fast8_t;
16822 typedef unsigned int uint_fast16_t;
16823 typedef uint32_t uint_fast32_t;
16824 #ifdef _UINT64_T
16825 typedef uint64_t uint_fast64_t;
16826 #endif
16830 if test "$ac_cv_type_uintmax_t" != yes; then
16831 sed 's/^ *//' >> tmp-stdint.h <<EOF
16833 /* Define intmax based on what we found */
16834 #ifndef intmax_t
16835 #ifdef _INT64_T
16836 typedef int64_t intmax_t;
16837 #else
16838 typedef long intmax_t;
16839 #endif
16840 #endif
16841 #ifndef uintmax_t
16842 #ifdef _UINT64_T
16843 typedef uint64_t uintmax_t;
16844 #else
16845 typedef unsigned long uintmax_t;
16846 #endif
16847 #endif
16851 sed 's/^ *//' >> tmp-stdint.h <<EOF
16853 #endif /* GCC_GENERATED_STDINT_H */
16856 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
16857 rm -f tmp-stdint.h
16858 else
16859 mv -f tmp-stdint.h gstdint.h
16863 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
16864 "default":C) if test -n "$CONFIG_FILES"; then
16865 if test -n "${with_target_subdir}"; then
16866 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16867 # that multilib installs will end up installed in the correct place.
16868 # The testsuite needs it for multilib-aware ABI baseline files.
16869 # To work around this not being passed down from config-ml.in ->
16870 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16871 # append it here. Only modify Makefiles that have just been created.
16873 # Also, get rid of this simulated-VPATH thing that automake does.
16874 cat > vpsed << \_EOF
16875 s!`test -f '$<' || echo '$(srcdir)/'`!!
16876 _EOF
16877 for i in $SUBDIRS; do
16878 case $CONFIG_FILES in
16879 *${i}/Makefile*)
16880 #echo "Adding MULTISUBDIR to $i/Makefile"
16881 sed -f vpsed $i/Makefile > tmp
16882 grep '^MULTISUBDIR =' Makefile >> tmp
16883 mv tmp $i/Makefile
16885 esac
16886 done
16887 rm vpsed
16892 esac
16893 done # for ac_tag
16896 as_fn_exit 0
16897 _ACEOF
16898 ac_clean_files=$ac_clean_files_save
16900 test $ac_write_fail = 0 ||
16901 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16904 # configure is writing to config.log, and then calls config.status.
16905 # config.status does its own redirection, appending to config.log.
16906 # Unfortunately, on DOS this fails, as config.log is still kept open
16907 # by configure, so config.status won't be able to write to it; its
16908 # output is simply discarded. So we exec the FD to /dev/null,
16909 # effectively closing config.log, so it can be properly (re)opened and
16910 # appended to by config.status. When coming back to configure, we
16911 # need to make the FD available again.
16912 if test "$no_create" != yes; then
16913 ac_cs_success=:
16914 ac_config_status_args=
16915 test "$silent" = yes &&
16916 ac_config_status_args="$ac_config_status_args --quiet"
16917 exec 5>/dev/null
16918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16919 exec 5>>config.log
16920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16921 # would make configure fail if this is the last instruction.
16922 $ac_cs_success || as_fn_exit 1
16924 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16926 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}