hppa: Fix LO_SUM DLTIND14R address support in PRINT_OPERAND_ADDRESS
[official-gcc.git] / libbacktrace / configure
blob7ade966b54d7edd0fc45fbe79a9b0642c37dd4de
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_ZSTD_FALSE
655 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE
656 HAVE_ZSTD_FALSE
657 HAVE_ZSTD_TRUE
658 HAVE_COMPRESSED_DEBUG_FALSE
659 HAVE_COMPRESSED_DEBUG_TRUE
660 HAVE_BUILDID_FALSE
661 HAVE_BUILDID_TRUE
662 HAVE_ZLIB_FALSE
663 HAVE_ZLIB_TRUE
664 HAVE_DWARF5_FALSE
665 HAVE_DWARF5_TRUE
666 HAVE_PTHREAD_FALSE
667 HAVE_PTHREAD_TRUE
668 PTHREAD_CFLAGS
669 CLOCK_GETTIME_LINK
670 BACKTRACE_USES_MALLOC
671 ALLOC_FILE
672 VIEW_FILE
673 BACKTRACE_SUPPORTS_DATA
674 BACKTRACE_SUPPORTED
675 HAVE_ELF_FALSE
676 HAVE_ELF_TRUE
677 FORMAT_FILE
678 BACKTRACE_SUPPORTS_THREADS
679 CET_HOST_FLAGS
680 PIC_FLAG
681 WARN_FLAGS
682 EXTRA_FLAGS
683 BACKTRACE_FILE
684 ENABLE_DARWIN_AT_RPATH_FALSE
685 ENABLE_DARWIN_AT_RPATH_TRUE
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
692 OBJDUMP
693 LN_S
695 ac_ct_DUMPBIN
696 DUMPBIN
698 FGREP
700 LIBTOOL
701 HAVE_DWZ_FALSE
702 HAVE_DWZ_TRUE
704 RANLIB
705 MAINT
706 MAINTAINER_MODE_FALSE
707 MAINTAINER_MODE_TRUE
708 AM_BACKSLASH
709 AM_DEFAULT_VERBOSITY
710 AM_DEFAULT_V
711 AM_V
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 libtool_VERSION
736 EGREP
737 GREP
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 multi_basedir
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_multilib
801 enable_silent_rules
802 enable_maintainer_mode
803 with_target_subdir
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 enable_libtool_lock
810 enable_darwin_at_rpath
811 enable_largefile
812 enable_cet
813 enable_werror
814 with_system_libunwind
815 enable_host_shared
817 ac_precious_vars='build_alias
818 host_alias
819 target_alias
821 CFLAGS
822 LDFLAGS
823 LIBS
824 CPPFLAGS
826 OBJCOPY
827 DSYMUTIL
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
879 ac_prev=
880 ac_dashdash=
881 for ac_option
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
900 ac_dashdash=yes ;;
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
919 --config-cache | -C)
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 esac
1237 done
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1321 /^X\(\/\/\)$/{
1322 s//\1/
1325 /^X\(\/\).*/{
1326 s//\1/
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1334 else
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1424 cat <<\_ACEOF
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 --target=TARGET configure for building compilers for TARGET [HOST]
1435 _ACEOF
1438 if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of package-unused version-unused:";;
1441 esac
1442 cat <<\_ACEOF
1444 Optional Features:
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-multilib build many library versions (default)
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --enable-darwin-at-rpath
1460 install libraries with @rpath/library-name, requires
1461 rpaths to be added to executables
1462 --disable-largefile omit support for large files
1463 --enable-cet enable Intel CET in target libraries [default=auto]
1464 --disable-werror disable building with -Werror
1465 --enable-host-shared build host code as shared libraries
1466 --enable-cet enable Intel CET in host libraries [default=auto]
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1472 --with-pic try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-system-libunwind use installed libunwind
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CPP C preprocessor
1486 OBJCOPY location of objcopy
1487 DSYMUTIL location of dsymutil
1488 NM location of nm
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1493 Report bugs to the package provider.
1494 _ACEOF
1495 ac_status=$?
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 package-unused configure version-unused
1557 generated by GNU Autoconf 2.69
1559 Copyright (C) 2012 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1601 ac_retval=1
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1606 } # ac_fn_c_try_compile
1608 # ac_fn_c_try_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_cpp ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } > conftest.i && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1638 ac_retval=1
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1643 } # ac_fn_c_try_cpp
1645 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648 # the include files in INCLUDES and setting the cache variable VAR
1649 # accordingly.
1650 ac_fn_c_check_header_mongrel ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if eval \${$3+:} false; then :
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 else
1663 # Is the header compilable?
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665 $as_echo_n "checking $2 usability... " >&6; }
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_header_compiler=yes
1673 else
1674 ac_header_compiler=no
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678 $as_echo "$ac_header_compiler" >&6; }
1680 # Is the header present?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682 $as_echo_n "checking $2 presence... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1689 else
1690 ac_header_preproc=no
1692 rm -f conftest.err conftest.i conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694 $as_echo "$ac_header_preproc" >&6; }
1696 # So? What about this header?
1697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 yes:no: )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 no:yes:* )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716 esac
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1721 else
1722 eval "$3=\$ac_header_compiler"
1724 eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 } # ac_fn_c_check_header_mongrel
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1736 ac_fn_c_try_run ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=$ac_status
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1772 } # ac_fn_c_try_run
1774 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists and can be compiled using the include files in
1777 # INCLUDES, setting the cache variable VAR accordingly.
1778 ac_fn_c_check_header_compile ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792 eval "$3=yes"
1793 else
1794 eval "$3=no"
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 } # ac_fn_c_check_header_compile
1805 # ac_fn_c_try_link LINENO
1806 # -----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_link ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest$ac_exeext
1812 if { { ac_try="$ac_link"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest$ac_exeext && {
1831 test "$cross_compiling" = yes ||
1832 test -x conftest$ac_exeext
1833 }; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=1
1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1843 # interfere with the next link command; also delete a directory that is
1844 # left behind by Apple's compiler. We do this before executing the actions.
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1849 } # ac_fn_c_try_link
1851 # ac_fn_c_check_func LINENO FUNC VAR
1852 # ----------------------------------
1853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1854 ac_fn_c_check_func ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866 #define $2 innocuous_$2
1868 /* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $2 (); below.
1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871 <limits.h> exists even on freestanding compilers. */
1873 #ifdef __STDC__
1874 # include <limits.h>
1875 #else
1876 # include <assert.h>
1877 #endif
1879 #undef $2
1881 /* Override any GCC internal prototype to avoid an error.
1882 Use char because int might match the return type of a GCC
1883 builtin and then its argument prototype would still apply. */
1884 #ifdef __cplusplus
1885 extern "C"
1886 #endif
1887 char $2 ();
1888 /* The GNU C library defines this for functions which it implements
1889 to always fail with ENOSYS. Some functions are actually named
1890 something starting with __ and the normal name is an alias. */
1891 #if defined __stub_$2 || defined __stub___$2
1892 choke me
1893 #endif
1896 main ()
1898 return $2 ();
1900 return 0;
1902 _ACEOF
1903 if ac_fn_c_try_link "$LINENO"; then :
1904 eval "$3=yes"
1905 else
1906 eval "$3=no"
1908 rm -f core conftest.err conftest.$ac_objext \
1909 conftest$ac_exeext conftest.$ac_ext
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 } # ac_fn_c_check_func
1918 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1919 # -------------------------------------------
1920 # Tests whether TYPE exists after having included INCLUDES, setting cache
1921 # variable VAR accordingly.
1922 ac_fn_c_check_type ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1929 else
1930 eval "$3=no"
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1935 main ()
1937 if (sizeof ($2))
1938 return 0;
1940 return 0;
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1948 main ()
1950 if (sizeof (($2)))
1951 return 0;
1953 return 0;
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1958 else
1959 eval "$3=yes"
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_c_check_type
1972 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1973 # --------------------------------------------
1974 # Tries to find the compile-time value of EXPR in a program that includes
1975 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1976 # computed
1977 ac_fn_c_compute_int ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if test "$cross_compiling" = yes; then
1981 # Depending upon the size, compute the lo and hi bounds.
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 main ()
1988 static int test_array [1 - 2 * !(($2) >= 0)];
1989 test_array [0] = 0;
1990 return test_array [0];
1993 return 0;
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_lo=0 ac_mid=0
1998 while :; do
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2003 main ()
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2006 test_array [0] = 0;
2007 return test_array [0];
2010 return 0;
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_hi=$ac_mid; break
2015 else
2016 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2017 if test $ac_lo -le $ac_mid; then
2018 ac_lo= ac_hi=
2019 break
2021 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 done
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 static int test_array [1 - 2 * !(($2) < 0)];
2033 test_array [0] = 0;
2034 return test_array [0];
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_hi=-1 ac_mid=-1
2042 while :; do
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 main ()
2049 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2050 test_array [0] = 0;
2051 return test_array [0];
2054 return 0;
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_lo=$ac_mid; break
2059 else
2060 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2061 if test $ac_mid -le $ac_hi; then
2062 ac_lo= ac_hi=
2063 break
2065 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 done
2069 else
2070 ac_lo= ac_hi=
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 # Binary search between lo and hi bounds.
2076 while test "x$ac_lo" != "x$ac_hi"; do
2077 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 test_array [0] = 0;
2086 return test_array [0];
2089 return 0;
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_hi=$ac_mid
2094 else
2095 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 done
2099 case $ac_lo in #((
2100 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2101 '') ac_retval=1 ;;
2102 esac
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2107 static long int longval () { return $2; }
2108 static unsigned long int ulongval () { return $2; }
2109 #include <stdio.h>
2110 #include <stdlib.h>
2112 main ()
2115 FILE *f = fopen ("conftest.val", "w");
2116 if (! f)
2117 return 1;
2118 if (($2) < 0)
2120 long int i = longval ();
2121 if (i != ($2))
2122 return 1;
2123 fprintf (f, "%ld", i);
2125 else
2127 unsigned long int i = ulongval ();
2128 if (i != ($2))
2129 return 1;
2130 fprintf (f, "%lu", i);
2132 /* Do not output a trailing newline, as this causes \r\n confusion
2133 on some platforms. */
2134 return ferror (f) || fclose (f) != 0;
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_run "$LINENO"; then :
2141 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2142 else
2143 ac_retval=1
2145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2146 conftest.$ac_objext conftest.beam conftest.$ac_ext
2147 rm -f conftest.val
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 as_fn_set_status $ac_retval
2153 } # ac_fn_c_compute_int
2155 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2156 # ---------------------------------------------
2157 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2158 # accordingly.
2159 ac_fn_c_check_decl ()
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 as_decl_name=`echo $2|sed 's/ *(.*//'`
2163 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2165 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2166 if eval \${$3+:} false; then :
2167 $as_echo_n "(cached) " >&6
2168 else
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2173 main ()
2175 #ifndef $as_decl_name
2176 #ifdef __cplusplus
2177 (void) $as_decl_use;
2178 #else
2179 (void) $as_decl_name;
2180 #endif
2181 #endif
2184 return 0;
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188 eval "$3=yes"
2189 else
2190 eval "$3=no"
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 } # ac_fn_c_check_decl
2200 cat >config.log <<_ACEOF
2201 This file contains any messages produced by compilers while
2202 running configure, to aid debugging if configure makes a mistake.
2204 It was created by package-unused $as_me version-unused, which was
2205 generated by GNU Autoconf 2.69. Invocation command line was
2207 $ $0 $@
2209 _ACEOF
2210 exec 5>>config.log
2212 cat <<_ASUNAME
2213 ## --------- ##
2214 ## Platform. ##
2215 ## --------- ##
2217 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2218 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2219 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2220 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2221 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2224 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2226 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2227 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2228 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2229 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2230 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2231 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2232 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2234 _ASUNAME
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 $as_echo "PATH: $as_dir"
2242 done
2243 IFS=$as_save_IFS
2245 } >&5
2247 cat >&5 <<_ACEOF
2250 ## ----------- ##
2251 ## Core tests. ##
2252 ## ----------- ##
2254 _ACEOF
2257 # Keep a trace of the command line.
2258 # Strip out --no-create and --no-recursion so they do not pile up.
2259 # Strip out --silent because we don't want to record it for future runs.
2260 # Also quote any args containing shell meta-characters.
2261 # Make two passes to allow for proper duplicate-argument suppression.
2262 ac_configure_args=
2263 ac_configure_args0=
2264 ac_configure_args1=
2265 ac_must_keep_next=false
2266 for ac_pass in 1 2
2268 for ac_arg
2270 case $ac_arg in
2271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2273 | -silent | --silent | --silen | --sile | --sil)
2274 continue ;;
2275 *\'*)
2276 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 esac
2278 case $ac_pass in
2279 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2281 as_fn_append ac_configure_args1 " '$ac_arg'"
2282 if test $ac_must_keep_next = true; then
2283 ac_must_keep_next=false # Got value, back to normal.
2284 else
2285 case $ac_arg in
2286 *=* | --config-cache | -C | -disable-* | --disable-* \
2287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2289 | -with-* | --with-* | -without-* | --without-* | --x)
2290 case "$ac_configure_args0 " in
2291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2292 esac
2294 -* ) ac_must_keep_next=true ;;
2295 esac
2297 as_fn_append ac_configure_args " '$ac_arg'"
2299 esac
2300 done
2301 done
2302 { ac_configure_args0=; unset ac_configure_args0;}
2303 { ac_configure_args1=; unset ac_configure_args1;}
2305 # When interrupted or exit'd, cleanup temporary files, and complete
2306 # config.log. We remove comments because anyway the quotes in there
2307 # would cause problems or look ugly.
2308 # WARNING: Use '\'' to represent an apostrophe within the trap.
2309 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2310 trap 'exit_status=$?
2311 # Save into config.log some information that might help in debugging.
2313 echo
2315 $as_echo "## ---------------- ##
2316 ## Cache variables. ##
2317 ## ---------------- ##"
2318 echo
2319 # The following way of writing the cache mishandles newlines in values,
2321 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2322 eval ac_val=\$$ac_var
2323 case $ac_val in #(
2324 *${as_nl}*)
2325 case $ac_var in #(
2326 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2327 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2328 esac
2329 case $ac_var in #(
2330 _ | IFS | as_nl) ;; #(
2331 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2332 *) { eval $ac_var=; unset $ac_var;} ;;
2333 esac ;;
2334 esac
2335 done
2336 (set) 2>&1 |
2337 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2338 *${as_nl}ac_space=\ *)
2339 sed -n \
2340 "s/'\''/'\''\\\\'\'''\''/g;
2341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2342 ;; #(
2344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2346 esac |
2347 sort
2349 echo
2351 $as_echo "## ----------------- ##
2352 ## Output variables. ##
2353 ## ----------------- ##"
2354 echo
2355 for ac_var in $ac_subst_vars
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2365 if test -n "$ac_subst_files"; then
2366 $as_echo "## ------------------- ##
2367 ## File substitutions. ##
2368 ## ------------------- ##"
2369 echo
2370 for ac_var in $ac_subst_files
2372 eval ac_val=\$$ac_var
2373 case $ac_val in
2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2375 esac
2376 $as_echo "$ac_var='\''$ac_val'\''"
2377 done | sort
2378 echo
2381 if test -s confdefs.h; then
2382 $as_echo "## ----------- ##
2383 ## confdefs.h. ##
2384 ## ----------- ##"
2385 echo
2386 cat confdefs.h
2387 echo
2389 test "$ac_signal" != 0 &&
2390 $as_echo "$as_me: caught signal $ac_signal"
2391 $as_echo "$as_me: exit $exit_status"
2392 } >&5
2393 rm -f core *.core core.conftest.* &&
2394 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2395 exit $exit_status
2397 for ac_signal in 1 2 13 15; do
2398 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2399 done
2400 ac_signal=0
2402 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2403 rm -f -r conftest* confdefs.h
2405 $as_echo "/* confdefs.h */" > confdefs.h
2407 # Predefined preprocessor variables.
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_NAME "$PACKAGE_NAME"
2411 _ACEOF
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2415 _ACEOF
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2419 _ACEOF
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_STRING "$PACKAGE_STRING"
2423 _ACEOF
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2427 _ACEOF
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_URL "$PACKAGE_URL"
2431 _ACEOF
2434 # Let the site file select an alternate cache file if it wants to.
2435 # Prefer an explicitly selected file to automatically selected ones.
2436 ac_site_file1=NONE
2437 ac_site_file2=NONE
2438 if test -n "$CONFIG_SITE"; then
2439 # We do not want a PATH search for config.site.
2440 case $CONFIG_SITE in #((
2441 -*) ac_site_file1=./$CONFIG_SITE;;
2442 */*) ac_site_file1=$CONFIG_SITE;;
2443 *) ac_site_file1=./$CONFIG_SITE;;
2444 esac
2445 elif test "x$prefix" != xNONE; then
2446 ac_site_file1=$prefix/share/config.site
2447 ac_site_file2=$prefix/etc/config.site
2448 else
2449 ac_site_file1=$ac_default_prefix/share/config.site
2450 ac_site_file2=$ac_default_prefix/etc/config.site
2452 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454 test "x$ac_site_file" = xNONE && continue
2455 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2457 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2458 sed 's/^/| /' "$ac_site_file" >&5
2459 . "$ac_site_file" \
2460 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2462 as_fn_error $? "failed to load site script $ac_site_file
2463 See \`config.log' for more details" "$LINENO" 5; }
2465 done
2467 if test -r "$cache_file"; then
2468 # Some versions of bash will fail to source /dev/null (special files
2469 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2470 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2472 $as_echo "$as_me: loading cache $cache_file" >&6;}
2473 case $cache_file in
2474 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2475 *) . "./$cache_file";;
2476 esac
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2480 $as_echo "$as_me: creating cache $cache_file" >&6;}
2481 >$cache_file
2484 # Check that the precious variables saved in the cache have kept the same
2485 # value.
2486 ac_cache_corrupted=false
2487 for ac_var in $ac_precious_vars; do
2488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2489 eval ac_new_set=\$ac_env_${ac_var}_set
2490 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2491 eval ac_new_val=\$ac_env_${ac_var}_value
2492 case $ac_old_set,$ac_new_set in
2493 set,)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2495 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2496 ac_cache_corrupted=: ;;
2497 ,set)
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2499 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2500 ac_cache_corrupted=: ;;
2501 ,);;
2503 if test "x$ac_old_val" != "x$ac_new_val"; then
2504 # differences in whitespace do not lead to failure.
2505 ac_old_val_w=`echo x $ac_old_val`
2506 ac_new_val_w=`echo x $ac_new_val`
2507 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2509 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2510 ac_cache_corrupted=:
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2513 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2514 eval $ac_var=\$ac_old_val
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2517 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2519 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2520 fi;;
2521 esac
2522 # Pass precious variables to config.status.
2523 if test "$ac_new_set" = set; then
2524 case $ac_new_val in
2525 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2526 *) ac_arg=$ac_var=$ac_new_val ;;
2527 esac
2528 case " $ac_configure_args " in
2529 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2530 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2531 esac
2533 done
2534 if $ac_cache_corrupted; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2538 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2539 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2541 ## -------------------- ##
2542 ## Main body of script. ##
2543 ## -------------------- ##
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556 ac_config_headers="$ac_config_headers config.h"
2559 if test -n "${with_target_subdir}"; then
2560 # Default to --enable-multilib
2561 # Check whether --enable-multilib was given.
2562 if test "${enable_multilib+set}" = set; then :
2563 enableval=$enable_multilib; case "$enableval" in
2564 yes) multilib=yes ;;
2565 no) multilib=no ;;
2566 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2567 esac
2568 else
2569 multilib=yes
2573 # We may get other options which we leave undocumented:
2574 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2575 # See config-ml.in if you want the gory details.
2577 if test "$srcdir" = "."; then
2578 if test "$with_target_subdir" != "."; then
2579 multi_basedir="$srcdir/$with_multisrctop../.."
2580 else
2581 multi_basedir="$srcdir/$with_multisrctop.."
2583 else
2584 multi_basedir="$srcdir/.."
2588 # Even if the default multilib is not a cross compilation,
2589 # it may be that some of the other multilibs are.
2590 if test $cross_compiling = no && test $multilib = yes \
2591 && test "x${with_multisubdir}" != x ; then
2592 cross_compiling=maybe
2595 ac_config_commands="$ac_config_commands default-1"
2599 ac_aux_dir=
2600 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2601 if test -f "$ac_dir/install-sh"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/install-sh -c"
2604 break
2605 elif test -f "$ac_dir/install.sh"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/install.sh -c"
2608 break
2609 elif test -f "$ac_dir/shtool"; then
2610 ac_aux_dir=$ac_dir
2611 ac_install_sh="$ac_aux_dir/shtool install -c"
2612 break
2614 done
2615 if test -z "$ac_aux_dir"; then
2616 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2619 # These three variables are undocumented and unsupported,
2620 # and are intended to be withdrawn in a future Autoconf release.
2621 # They can cause serious problems if a builder's source tree is in a directory
2622 # whose full name contains unusual characters.
2623 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2624 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2625 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if ${ac_cv_build+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2649 *-*-*) ;;
2650 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2651 esac
2652 build=$ac_cv_build
2653 ac_save_IFS=$IFS; IFS='-'
2654 set x $ac_cv_build
2655 shift
2656 build_cpu=$1
2657 build_vendor=$2
2658 shift; shift
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2661 build_os=$*
2662 IFS=$ac_save_IFS
2663 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if ${ac_cv_host+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2673 else
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2681 case $ac_cv_host in
2682 *-*-*) ;;
2683 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2684 esac
2685 host=$ac_cv_host
2686 ac_save_IFS=$IFS; IFS='-'
2687 set x $ac_cv_host
2688 shift
2689 host_cpu=$1
2690 host_vendor=$2
2691 shift; shift
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2694 host_os=$*
2695 IFS=$ac_save_IFS
2696 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2700 $as_echo_n "checking target system type... " >&6; }
2701 if ${ac_cv_target+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test "x$target_alias" = x; then
2705 ac_cv_target=$ac_cv_host
2706 else
2707 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2713 $as_echo "$ac_cv_target" >&6; }
2714 case $ac_cv_target in
2715 *-*-*) ;;
2716 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2717 esac
2718 target=$ac_cv_target
2719 ac_save_IFS=$IFS; IFS='-'
2720 set x $ac_cv_target
2721 shift
2722 target_cpu=$1
2723 target_vendor=$2
2724 shift; shift
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2727 target_os=$*
2728 IFS=$ac_save_IFS
2729 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2732 # The aliases save the names the user supplied, while $host etc.
2733 # will get canonicalized.
2734 test -n "$target_alias" &&
2735 test "$program_prefix$program_suffix$program_transform_name" = \
2736 NONENONEs,x,x, &&
2737 program_prefix=${target_alias}-
2739 target_alias=${target_alias-$host_alias}
2741 # Expand $ac_aux_dir to an absolute path.
2742 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2771 done
2772 done
2773 IFS=$as_save_IFS
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2788 if test -z "$ac_cv_prog_CC"; then
2789 ac_ct_CC=$CC
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791 set dummy gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_CC="gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2811 done
2812 done
2813 IFS=$as_save_IFS
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820 $as_echo "$ac_ct_CC" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2826 if test "x$ac_ct_CC" = x; then
2827 CC=""
2828 else
2829 case $cross_compiling:$ac_tool_warned in
2830 yes:)
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835 CC=$ac_ct_CC
2837 else
2838 CC="$ac_cv_prog_CC"
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}cc; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_CC+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_CC="${ac_tool_prefix}cc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 ac_prog_rejected=no
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2903 continue
2905 ac_cv_prog_CC="cc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2911 IFS=$as_save_IFS
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in cl.exe
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2963 done
2964 done
2965 IFS=$as_save_IFS
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2979 test -n "$CC" && break
2980 done
2982 if test -z "$CC"; then
2983 ac_ct_CC=$CC
2984 for ac_prog in cl.exe
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_ac_ct_CC="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3007 done
3008 done
3009 IFS=$as_save_IFS
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3023 test -n "$ac_ct_CC" && break
3024 done
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035 CC=$ac_ct_CC
3042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error $? "no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details" "$LINENO" 5; }
3047 # Provide some information about the compiler.
3048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 set X $ac_compile
3050 ac_compiler=$2
3051 for ac_option in --version -v -V -qversion; do
3052 { { ac_try="$ac_compiler $ac_option >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3060 ac_status=$?
3061 if test -s conftest.err; then
3062 sed '10a\
3063 ... rest of stderr output deleted ...
3064 10q' conftest.err >conftest.er1
3065 cat conftest.er1 >&5
3067 rm -f conftest.er1 conftest.err
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070 done
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3076 main ()
3080 return 0;
3082 _ACEOF
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3087 # of exeext.
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3089 $as_echo_n "checking whether the C compiler works... " >&6; }
3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3092 # The possible output files:
3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3095 ac_rmfiles=
3096 for ac_file in $ac_files
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102 done
3103 rm -f $ac_rmfiles
3105 if { { ac_try="$ac_link_default"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3120 # Autoconf.
3121 for ac_file in $ac_files ''
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
3141 break;;
3143 break;;
3144 esac
3145 done
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3148 else
3149 ac_file=''
3151 if test -z "$ac_file"; then :
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error 77 "C compiler cannot create executables
3160 See \`config.log' for more details" "$LINENO" 5; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3166 $as_echo_n "checking for C compiler default output file name... " >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3168 $as_echo "$ac_file" >&6; }
3169 ac_exeext=$ac_cv_exeext
3171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3172 ac_clean_files=$ac_clean_files_save
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3174 $as_echo_n "checking for suffix of executables... " >&6; }
3175 if { { ac_try="$ac_link"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; then :
3186 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3187 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3188 # work properly (i.e., refer to `conftest.exe'), while it won't with
3189 # `rm'.
3190 for ac_file in conftest.exe conftest conftest.*; do
3191 test -f "$ac_file" || continue
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 break;;
3196 * ) break;;
3197 esac
3198 done
3199 else
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3203 See \`config.log' for more details" "$LINENO" 5; }
3205 rm -f conftest conftest$ac_cv_exeext
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3207 $as_echo "$ac_cv_exeext" >&6; }
3209 rm -f conftest.$ac_ext
3210 EXEEXT=$ac_cv_exeext
3211 ac_exeext=$EXEEXT
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3214 #include <stdio.h>
3216 main ()
3218 FILE *f = fopen ("conftest.out", "w");
3219 return ferror (f) || fclose (f) != 0;
3222 return 0;
3224 _ACEOF
3225 ac_clean_files="$ac_clean_files conftest.out"
3226 # Check that the compiler produces executables we can run. If not, either
3227 # the compiler is broken, or we cross compile.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3229 $as_echo_n "checking whether we are cross compiling... " >&6; }
3230 if test "$cross_compiling" != yes; then
3231 { { ac_try="$ac_link"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242 if { ac_try='./conftest$ac_cv_exeext'
3243 { { case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; }; then
3253 cross_compiling=no
3254 else
3255 if test "$cross_compiling" = maybe; then
3256 cross_compiling=yes
3257 else
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details" "$LINENO" 5; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3267 $as_echo "$cross_compiling" >&6; }
3269 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if ${ac_cv_objext+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { { ac_try="$ac_compile"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_compile") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 for ac_file in conftest.o conftest.obj conftest.*; do
3300 test -f "$ac_file" || continue;
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304 break;;
3305 esac
3306 done
3307 else
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details" "$LINENO" 5; }
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3319 $as_echo "$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3321 ac_objext=$OBJEXT
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3324 if ${ac_cv_c_compiler_gnu+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3331 main ()
3333 #ifndef __GNUC__
3334 choke me
3335 #endif
3338 return 0;
3340 _ACEOF
3341 if ac_fn_c_try_compile "$LINENO"; then :
3342 ac_compiler_gnu=yes
3343 else
3344 ac_compiler_gnu=no
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3352 if test $ac_compiler_gnu = yes; then
3353 GCC=yes
3354 else
3355 GCC=
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3361 if ${ac_cv_prog_cc_g+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3366 ac_cv_prog_cc_g=no
3367 CFLAGS="-g"
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3372 main ()
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_g=yes
3381 else
3382 CFLAGS=""
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3387 main ()
3391 return 0;
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3396 else
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3398 CFLAGS="-g"
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_g=yes
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3421 $as_echo "$ac_cv_prog_cc_g" >&6; }
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3426 CFLAGS="-g -O2"
3427 else
3428 CFLAGS="-g"
3430 else
3431 if test "$GCC" = yes; then
3432 CFLAGS="-O2"
3433 else
3434 CFLAGS=
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3439 if ${ac_cv_prog_cc_c89+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 ac_cv_prog_cc_c89=no
3443 ac_save_CC=$CC
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 #include <stdarg.h>
3447 #include <stdio.h>
3448 struct stat;
3449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3450 struct buf { int x; };
3451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3452 static char *e (p, i)
3453 char **p;
3454 int i;
3456 return p[i];
3458 static char *f (char * (*g) (char **, int), char **p, ...)
3460 char *s;
3461 va_list v;
3462 va_start (v,p);
3463 s = g (p, va_arg (v,int));
3464 va_end (v);
3465 return s;
3468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3469 function prototypes and stuff, but not '\xHH' hex character constants.
3470 These don't provoke an error unfortunately, instead are silently treated
3471 as 'x'. The following induces an error, until -std is added to get
3472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3473 array size at least. It's necessary to write '\x00'==0 to get something
3474 that's true only with -std. */
3475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3478 inside strings and character constants. */
3479 #define FOO(x) 'x'
3480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3486 int argc;
3487 char **argv;
3489 main ()
3491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3493 return 0;
3495 _ACEOF
3496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3499 CC="$ac_save_CC $ac_arg"
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_cv_prog_cc_c89=$ac_arg
3503 rm -f core conftest.err conftest.$ac_objext
3504 test "x$ac_cv_prog_cc_c89" != "xno" && break
3505 done
3506 rm -f conftest.$ac_ext
3507 CC=$ac_save_CC
3510 # AC_CACHE_VAL
3511 case "x$ac_cv_prog_cc_c89" in
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3514 $as_echo "none needed" >&6; } ;;
3515 xno)
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3517 $as_echo "unsupported" >&6; } ;;
3519 CC="$CC $ac_cv_prog_cc_c89"
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3521 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3522 esac
3523 if test "x$ac_cv_prog_cc_c89" != xno; then :
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3539 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3540 if ${am_cv_prog_cc_c_o+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3547 main ()
3551 return 0;
3553 _ACEOF
3554 # Make sure it works both with $CC and with simple cc.
3555 # Following AC_PROG_CC_C_O, we do the test twice because some
3556 # compilers refuse to overwrite an existing .o file with -o,
3557 # though they will create one.
3558 am_cv_prog_cc_c_o=yes
3559 for am_i in 1 2; do
3560 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3561 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } \
3565 && test -f conftest2.$ac_objext; then
3566 : OK
3567 else
3568 am_cv_prog_cc_c_o=no
3569 break
3571 done
3572 rm -f core conftest*
3573 unset am_i
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3576 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3577 if test "$am_cv_prog_cc_c_o" != yes; then
3578 # Losing compiler, so override with the script.
3579 # FIXME: It is wrong to rewrite CC.
3580 # But if we don't then we get into trouble of one sort or another.
3581 # A longer-term fix would be to have automake use am__CC in this case,
3582 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3583 CC="$am_aux_dir/compile $CC"
3585 ac_ext=c
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3599 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3600 # On Suns, sometimes $CPP names a directory.
3601 if test -n "$CPP" && test -d "$CPP"; then
3602 CPP=
3604 if test -z "$CPP"; then
3605 if ${ac_cv_prog_CPP+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 # Double quotes because CPP needs to be expanded
3609 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3611 ac_preproc_ok=false
3612 for ac_c_preproc_warn_flag in '' yes
3614 # Use a header file that comes with gcc, so configuring glibc
3615 # with a fresh cross-compiler works.
3616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617 # <limits.h> exists even on freestanding compilers.
3618 # On the NeXT, cc -E runs the code through the compiler's parser,
3619 # not just through cpp. "Syntax error" is here to catch this case.
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #ifdef __STDC__
3623 # include <limits.h>
3624 #else
3625 # include <assert.h>
3626 #endif
3627 Syntax error
3628 _ACEOF
3629 if ac_fn_c_try_cpp "$LINENO"; then :
3631 else
3632 # Broken: fails on valid input.
3633 continue
3635 rm -f conftest.err conftest.i conftest.$ac_ext
3637 # OK, works on sane cases. Now check whether nonexistent headers
3638 # can be detected and how.
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <ac_nonexistent.h>
3642 _ACEOF
3643 if ac_fn_c_try_cpp "$LINENO"; then :
3644 # Broken: success on invalid input.
3645 continue
3646 else
3647 # Passes both tests.
3648 ac_preproc_ok=:
3649 break
3651 rm -f conftest.err conftest.i conftest.$ac_ext
3653 done
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.i conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then :
3657 break
3660 done
3661 ac_cv_prog_CPP=$CPP
3664 CPP=$ac_cv_prog_CPP
3665 else
3666 ac_cv_prog_CPP=$CPP
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3669 $as_echo "$CPP" >&6; }
3670 ac_preproc_ok=false
3671 for ac_c_preproc_warn_flag in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681 #ifdef __STDC__
3682 # include <limits.h>
3683 #else
3684 # include <assert.h>
3685 #endif
3686 Syntax error
3687 _ACEOF
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3690 else
3691 # Broken: fails on valid input.
3692 continue
3694 rm -f conftest.err conftest.i conftest.$ac_ext
3696 # OK, works on sane cases. Now check whether nonexistent headers
3697 # can be detected and how.
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700 #include <ac_nonexistent.h>
3701 _ACEOF
3702 if ac_fn_c_try_cpp "$LINENO"; then :
3703 # Broken: success on invalid input.
3704 continue
3705 else
3706 # Passes both tests.
3707 ac_preproc_ok=:
3708 break
3710 rm -f conftest.err conftest.i conftest.$ac_ext
3712 done
3713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3714 rm -f conftest.i conftest.err conftest.$ac_ext
3715 if $ac_preproc_ok; then :
3717 else
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3721 See \`config.log' for more details" "$LINENO" 5; }
3724 ac_ext=c
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3732 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3733 if ${ac_cv_path_GREP+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -z "$GREP"; then
3737 ac_path_GREP_found=false
3738 # Loop through the user's path and test for each of PROGNAME-LIST
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_prog in grep ggrep; do
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3747 as_fn_executable_p "$ac_path_GREP" || continue
3748 # Check for GNU ac_path_GREP and select it if it is found.
3749 # Check for GNU $ac_path_GREP
3750 case `"$ac_path_GREP" --version 2>&1` in
3751 *GNU*)
3752 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3754 ac_count=0
3755 $as_echo_n 0123456789 >"conftest.in"
3756 while :
3758 cat "conftest.in" "conftest.in" >"conftest.tmp"
3759 mv "conftest.tmp" "conftest.in"
3760 cp "conftest.in" "conftest.nl"
3761 $as_echo 'GREP' >> "conftest.nl"
3762 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3764 as_fn_arith $ac_count + 1 && ac_count=$as_val
3765 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3766 # Best one so far, save it but keep looking for a better one
3767 ac_cv_path_GREP="$ac_path_GREP"
3768 ac_path_GREP_max=$ac_count
3770 # 10*(2^10) chars as input seems more than enough
3771 test $ac_count -gt 10 && break
3772 done
3773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3774 esac
3776 $ac_path_GREP_found && break 3
3777 done
3778 done
3779 done
3780 IFS=$as_save_IFS
3781 if test -z "$ac_cv_path_GREP"; then
3782 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3784 else
3785 ac_cv_path_GREP=$GREP
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3790 $as_echo "$ac_cv_path_GREP" >&6; }
3791 GREP="$ac_cv_path_GREP"
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3795 $as_echo_n "checking for egrep... " >&6; }
3796 if ${ac_cv_path_EGREP+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3800 then ac_cv_path_EGREP="$GREP -E"
3801 else
3802 if test -z "$EGREP"; then
3803 ac_path_EGREP_found=false
3804 # Loop through the user's path and test for each of PROGNAME-LIST
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_prog in egrep; do
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3813 as_fn_executable_p "$ac_path_EGREP" || continue
3814 # Check for GNU ac_path_EGREP and select it if it is found.
3815 # Check for GNU $ac_path_EGREP
3816 case `"$ac_path_EGREP" --version 2>&1` in
3817 *GNU*)
3818 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3820 ac_count=0
3821 $as_echo_n 0123456789 >"conftest.in"
3822 while :
3824 cat "conftest.in" "conftest.in" >"conftest.tmp"
3825 mv "conftest.tmp" "conftest.in"
3826 cp "conftest.in" "conftest.nl"
3827 $as_echo 'EGREP' >> "conftest.nl"
3828 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3830 as_fn_arith $ac_count + 1 && ac_count=$as_val
3831 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3832 # Best one so far, save it but keep looking for a better one
3833 ac_cv_path_EGREP="$ac_path_EGREP"
3834 ac_path_EGREP_max=$ac_count
3836 # 10*(2^10) chars as input seems more than enough
3837 test $ac_count -gt 10 && break
3838 done
3839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3840 esac
3842 $ac_path_EGREP_found && break 3
3843 done
3844 done
3845 done
3846 IFS=$as_save_IFS
3847 if test -z "$ac_cv_path_EGREP"; then
3848 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3850 else
3851 ac_cv_path_EGREP=$EGREP
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3857 $as_echo "$ac_cv_path_EGREP" >&6; }
3858 EGREP="$ac_cv_path_EGREP"
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3862 $as_echo_n "checking for ANSI C header files... " >&6; }
3863 if ${ac_cv_header_stdc+:} false; then :
3864 $as_echo_n "(cached) " >&6
3865 else
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #include <stdlib.h>
3869 #include <stdarg.h>
3870 #include <string.h>
3871 #include <float.h>
3874 main ()
3878 return 0;
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_cv_header_stdc=yes
3883 else
3884 ac_cv_header_stdc=no
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 if test $ac_cv_header_stdc = yes; then
3889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892 #include <string.h>
3894 _ACEOF
3895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3896 $EGREP "memchr" >/dev/null 2>&1; then :
3898 else
3899 ac_cv_header_stdc=no
3901 rm -f conftest*
3905 if test $ac_cv_header_stdc = yes; then
3906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3909 #include <stdlib.h>
3911 _ACEOF
3912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913 $EGREP "free" >/dev/null 2>&1; then :
3915 else
3916 ac_cv_header_stdc=no
3918 rm -f conftest*
3922 if test $ac_cv_header_stdc = yes; then
3923 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3924 if test "$cross_compiling" = yes; then :
3926 else
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <ctype.h>
3930 #include <stdlib.h>
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 #else
3935 # define ISLOWER(c) \
3936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940 #endif
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944 main ()
3946 int i;
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
3949 || toupper (i) != TOUPPER (i))
3950 return 2;
3951 return 0;
3953 _ACEOF
3954 if ac_fn_c_try_run "$LINENO"; then :
3956 else
3957 ac_cv_header_stdc=no
3959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3960 conftest.$ac_objext conftest.beam conftest.$ac_ext
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3966 $as_echo "$ac_cv_header_stdc" >&6; }
3967 if test $ac_cv_header_stdc = yes; then
3969 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3973 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3974 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3975 inttypes.h stdint.h unistd.h
3976 do :
3977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3978 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3981 cat >>confdefs.h <<_ACEOF
3982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3983 _ACEOF
3987 done
3991 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3992 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3993 MINIX=yes
3994 else
3995 MINIX=
3999 if test "$MINIX" = yes; then
4001 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4004 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4007 $as_echo "#define _MINIX 1" >>confdefs.h
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4013 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4014 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4020 # define __EXTENSIONS__ 1
4021 $ac_includes_default
4023 main ()
4027 return 0;
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_safe_to_define___extensions__=yes
4032 else
4033 ac_cv_safe_to_define___extensions__=no
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4038 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4039 test $ac_cv_safe_to_define___extensions__ = yes &&
4040 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4042 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4044 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4046 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4048 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4052 libtool_VERSION=1:0:0
4055 # 1.11.1: Require that version of automake.
4056 # foreign: Don't require README, INSTALL, NEWS, etc.
4057 # no-define: Don't define PACKAGE and VERSION.
4058 # no-dependencies: Don't generate automatic dependencies.
4059 # (because it breaks when using bootstrap-lean, since some of the
4060 # headers are gone at "make install" time).
4061 # -Wall: Issue all automake warnings.
4062 # -Wno-portability: Don't warn about constructs supported by GNU make.
4063 # (because GCC requires GNU make anyhow).
4064 am__api_version='1.15'
4066 # Find a good install program. We prefer a C program (faster),
4067 # so one script is as good as another. But avoid the broken or
4068 # incompatible versions:
4069 # SysV /etc/install, /usr/sbin/install
4070 # SunOS /usr/etc/install
4071 # IRIX /sbin/install
4072 # AIX /bin/install
4073 # AmigaOS /C/install, which installs bootblocks on floppy discs
4074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4077 # OS/2's system install, which has a completely different semantic
4078 # ./install, which can be erroneously created by make from ./install.sh.
4079 # Reject install programs that cannot install multiple files.
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4081 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4082 if test -z "$INSTALL"; then
4083 if ${ac_cv_path_install+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 # Account for people who put trailing slashes in PATH elements.
4092 case $as_dir/ in #((
4093 ./ | .// | /[cC]/* | \
4094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4095 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4096 /usr/ucb/* ) ;;
4098 # OSF1 and SCO ODT 3.0 have their own names for install.
4099 # Don't use installbsd from OSF since it installs stuff as root
4100 # by default.
4101 for ac_prog in ginstall scoinst install; do
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4104 if test $ac_prog = install &&
4105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4106 # AIX install. It has an incompatible calling convention.
4108 elif test $ac_prog = install &&
4109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4110 # program-specific install script used by HP pwplus--don't use.
4112 else
4113 rm -rf conftest.one conftest.two conftest.dir
4114 echo one > conftest.one
4115 echo two > conftest.two
4116 mkdir conftest.dir
4117 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4118 test -s conftest.one && test -s conftest.two &&
4119 test -s conftest.dir/conftest.one &&
4120 test -s conftest.dir/conftest.two
4121 then
4122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4123 break 3
4127 done
4128 done
4130 esac
4132 done
4133 IFS=$as_save_IFS
4135 rm -rf conftest.one conftest.two conftest.dir
4138 if test "${ac_cv_path_install+set}" = set; then
4139 INSTALL=$ac_cv_path_install
4140 else
4141 # As a last resort, use the slow shell script. Don't cache a
4142 # value for INSTALL within a source directory, because that will
4143 # break other packages using the cache if that directory is
4144 # removed, or if the value is a relative name.
4145 INSTALL=$ac_install_sh
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4149 $as_echo "$INSTALL" >&6; }
4151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4152 # It thinks the first close brace ends the variable substitution.
4153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4160 $as_echo_n "checking whether build environment is sane... " >&6; }
4161 # Reject unsafe characters in $srcdir or the absolute working directory
4162 # name. Accept space and tab only in the latter.
4163 am_lf='
4165 case `pwd` in
4166 *[\\\"\#\$\&\'\`$am_lf]*)
4167 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4168 esac
4169 case $srcdir in
4170 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4171 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4172 esac
4174 # Do 'set' in a subshell so we don't clobber the current shell's
4175 # arguments. Must try -L first in case configure is actually a
4176 # symlink; some systems play weird games with the mod time of symlinks
4177 # (eg FreeBSD returns the mod time of the symlink's containing
4178 # directory).
4179 if (
4180 am_has_slept=no
4181 for am_try in 1 2; do
4182 echo "timestamp, slept: $am_has_slept" > conftest.file
4183 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4184 if test "$*" = "X"; then
4185 # -L didn't work.
4186 set X `ls -t "$srcdir/configure" conftest.file`
4188 if test "$*" != "X $srcdir/configure conftest.file" \
4189 && test "$*" != "X conftest.file $srcdir/configure"; then
4191 # If neither matched, then we have a broken ls. This can happen
4192 # if, for instance, CONFIG_SHELL is bash and it inherits a
4193 # broken ls alias from the environment. This has actually
4194 # happened. Such a system could not be considered "sane".
4195 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4196 alias in your environment" "$LINENO" 5
4198 if test "$2" = conftest.file || test $am_try -eq 2; then
4199 break
4201 # Just in case.
4202 sleep 1
4203 am_has_slept=yes
4204 done
4205 test "$2" = conftest.file
4207 then
4208 # Ok.
4210 else
4211 as_fn_error $? "newly created file is older than distributed files!
4212 Check your system clock" "$LINENO" 5
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4215 $as_echo "yes" >&6; }
4216 # If we didn't sleep, we still need to ensure time stamps of config.status and
4217 # generated files are strictly newer.
4218 am_sleep_pid=
4219 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4220 ( sleep 1 ) &
4221 am_sleep_pid=$!
4224 rm -f conftest.file
4226 test "$program_prefix" != NONE &&
4227 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4228 # Use a double $ so make ignores it.
4229 test "$program_suffix" != NONE &&
4230 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4231 # Double any \ or $.
4232 # By default was `s,x,x', remove it if useless.
4233 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4234 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4236 if test x"${MISSING+set}" != xset; then
4237 case $am_aux_dir in
4238 *\ * | *\ *)
4239 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4241 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4242 esac
4244 # Use eval to expand $SHELL
4245 if eval "$MISSING --is-lightweight"; then
4246 am_missing_run="$MISSING "
4247 else
4248 am_missing_run=
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4250 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4253 if test x"${install_sh+set}" != xset; then
4254 case $am_aux_dir in
4255 *\ * | *\ *)
4256 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4258 install_sh="\${SHELL} $am_aux_dir/install-sh"
4259 esac
4262 # Installed binaries are usually stripped using 'strip' when the user
4263 # run "make install-strip". However 'strip' might not be the right
4264 # tool to use in cross-compilation environments, therefore Automake
4265 # will honor the 'STRIP' environment variable to overrule this program.
4266 if test "$cross_compiling" != no; then
4267 if test -n "$ac_tool_prefix"; then
4268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4269 set dummy ${ac_tool_prefix}strip; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_STRIP+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -n "$STRIP"; then
4276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4291 IFS=$as_save_IFS
4295 STRIP=$ac_cv_prog_STRIP
4296 if test -n "$STRIP"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4298 $as_echo "$STRIP" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4306 if test -z "$ac_cv_prog_STRIP"; then
4307 ac_ct_STRIP=$STRIP
4308 # Extract the first word of "strip", so it can be a program name with args.
4309 set dummy strip; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$ac_ct_STRIP"; then
4316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_ac_ct_STRIP="strip"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4335 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4336 if test -n "$ac_ct_STRIP"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4338 $as_echo "$ac_ct_STRIP" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4344 if test "x$ac_ct_STRIP" = x; then
4345 STRIP=":"
4346 else
4347 case $cross_compiling:$ac_tool_warned in
4348 yes:)
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4351 ac_tool_warned=yes ;;
4352 esac
4353 STRIP=$ac_ct_STRIP
4355 else
4356 STRIP="$ac_cv_prog_STRIP"
4360 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4363 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4364 if test -z "$MKDIR_P"; then
4365 if ${ac_cv_path_mkdir+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_prog in mkdir gmkdir; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4376 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4377 'mkdir (GNU coreutils) '* | \
4378 'mkdir (coreutils) '* | \
4379 'mkdir (fileutils) '4.1*)
4380 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4381 break 3;;
4382 esac
4383 done
4384 done
4385 done
4386 IFS=$as_save_IFS
4390 test -d ./--version && rmdir ./--version
4391 if test "${ac_cv_path_mkdir+set}" = set; then
4392 MKDIR_P="$ac_cv_path_mkdir -p"
4393 else
4394 # As a last resort, use the slow shell script. Don't cache a
4395 # value for MKDIR_P within a source directory, because that will
4396 # break other packages using the cache if that directory is
4397 # removed, or if the value is a relative name.
4398 MKDIR_P="$ac_install_sh -d"
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4402 $as_echo "$MKDIR_P" >&6; }
4404 for ac_prog in gawk mawk nawk awk
4406 # Extract the first word of "$ac_prog", so it can be a program name with args.
4407 set dummy $ac_prog; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_AWK+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$AWK"; then
4414 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_AWK="$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4427 done
4428 done
4429 IFS=$as_save_IFS
4433 AWK=$ac_cv_prog_AWK
4434 if test -n "$AWK"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4436 $as_echo "$AWK" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4443 test -n "$AWK" && break
4444 done
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4447 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4448 set x ${MAKE-make}
4449 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4450 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 cat >conftest.make <<\_ACEOF
4454 SHELL = /bin/sh
4455 all:
4456 @echo '@@@%%%=$(MAKE)=@@@%%%'
4457 _ACEOF
4458 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4459 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4460 *@@@%%%=?*=@@@%%%*)
4461 eval ac_cv_prog_make_${ac_make}_set=yes;;
4463 eval ac_cv_prog_make_${ac_make}_set=no;;
4464 esac
4465 rm -f conftest.make
4467 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4469 $as_echo "yes" >&6; }
4470 SET_MAKE=
4471 else
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 SET_MAKE="MAKE=${MAKE-make}"
4477 rm -rf .tst 2>/dev/null
4478 mkdir .tst 2>/dev/null
4479 if test -d .tst; then
4480 am__leading_dot=.
4481 else
4482 am__leading_dot=_
4484 rmdir .tst 2>/dev/null
4486 # Check whether --enable-silent-rules was given.
4487 if test "${enable_silent_rules+set}" = set; then :
4488 enableval=$enable_silent_rules;
4491 case $enable_silent_rules in # (((
4492 yes) AM_DEFAULT_VERBOSITY=0;;
4493 no) AM_DEFAULT_VERBOSITY=1;;
4494 *) AM_DEFAULT_VERBOSITY=1;;
4495 esac
4496 am_make=${MAKE-make}
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4498 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4499 if ${am_cv_make_support_nested_variables+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if $as_echo 'TRUE=$(BAR$(V))
4503 BAR0=false
4504 BAR1=true
4506 am__doit:
4507 @$(TRUE)
4508 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4509 am_cv_make_support_nested_variables=yes
4510 else
4511 am_cv_make_support_nested_variables=no
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4515 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4516 if test $am_cv_make_support_nested_variables = yes; then
4517 AM_V='$(V)'
4518 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4519 else
4520 AM_V=$AM_DEFAULT_VERBOSITY
4521 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4523 AM_BACKSLASH='\'
4525 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4526 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4527 # is not polluted with repeated "-I."
4528 am__isrc=' -I$(srcdir)'
4529 # test to see if srcdir already configured
4530 if test -f $srcdir/config.status; then
4531 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4535 # test whether we have cygpath
4536 if test -z "$CYGPATH_W"; then
4537 if (cygpath --version) >/dev/null 2>/dev/null; then
4538 CYGPATH_W='cygpath -w'
4539 else
4540 CYGPATH_W=echo
4545 # Define the identity of the package.
4546 PACKAGE='libbacktrace'
4547 VERSION='version-unused'
4550 # Some tools Automake needs.
4552 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4555 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4558 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4561 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4564 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4566 # For better backward compatibility. To be removed once Automake 1.9.x
4567 # dies out for good. For more background, see:
4568 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4569 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4570 mkdir_p='$(MKDIR_P)'
4572 # We need awk for the "check" target (and possibly the TAP driver). The
4573 # system "awk" is bad on some platforms.
4574 # Always define AMTAR for backward compatibility. Yes, it's still used
4575 # in the wild :-( We should find a proper way to deprecate it ...
4576 AMTAR='$${TAR-tar}'
4579 # We'll loop over all known methods to create a tar archive until one works.
4580 _am_tools='gnutar pax cpio none'
4582 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4589 # POSIX will say in a future version that running "rm -f" with no argument
4590 # is OK; and we want to be able to make that assumption in our Makefile
4591 # recipes. So use an aggressive probe to check that the usage we want is
4592 # actually supported "in the wild" to an acceptable degree.
4593 # See automake bug#10828.
4594 # To make any issue more visible, cause the running configure to be aborted
4595 # by default if the 'rm' program in use doesn't match our expectations; the
4596 # user can still override this though.
4597 if rm -f && rm -fr && rm -rf; then : OK; else
4598 cat >&2 <<'END'
4599 Oops!
4601 Your 'rm' program seems unable to run without file operands specified
4602 on the command line, even when the '-f' option is present. This is contrary
4603 to the behaviour of most rm programs out there, and not conforming with
4604 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4606 Please tell bug-automake@gnu.org about your system, including the value
4607 of your $PATH and any error possibly output before this message. This
4608 can help us improve future automake versions.
4611 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4612 echo 'Configuration will proceed anyway, since you have set the' >&2
4613 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4614 echo >&2
4615 else
4616 cat >&2 <<'END'
4617 Aborting the configuration process, to ensure you take notice of the issue.
4619 You can download and install GNU coreutils to get an 'rm' implementation
4620 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4622 If you want to complete the configuration process using your problematic
4623 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4624 to "yes", and re-run configure.
4627 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4634 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4635 # Check whether --enable-maintainer-mode was given.
4636 if test "${enable_maintainer_mode+set}" = set; then :
4637 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4638 else
4639 USE_MAINTAINER_MODE=no
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4643 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4644 if test $USE_MAINTAINER_MODE = yes; then
4645 MAINTAINER_MODE_TRUE=
4646 MAINTAINER_MODE_FALSE='#'
4647 else
4648 MAINTAINER_MODE_TRUE='#'
4649 MAINTAINER_MODE_FALSE=
4652 MAINT=$MAINTAINER_MODE_TRUE
4657 # Check whether --with-target-subdir was given.
4658 if test "${with_target_subdir+set}" = set; then :
4659 withval=$with_target_subdir;
4663 # We must force CC to /not/ be precious variables; otherwise
4664 # the wrong, non-multilib-adjusted value will be used in multilibs.
4665 # As a side effect, we have to subst CFLAGS ourselves.
4668 ac_ext=c
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_prog_CC+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$CC"; then
4682 ac_cv_prog_CC="$CC" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4695 done
4696 done
4697 IFS=$as_save_IFS
4701 CC=$ac_cv_prog_CC
4702 if test -n "$CC"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4704 $as_echo "$CC" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4712 if test -z "$ac_cv_prog_CC"; then
4713 ac_ct_CC=$CC
4714 # Extract the first word of "gcc", so it can be a program name with args.
4715 set dummy gcc; ac_word=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -n "$ac_ct_CC"; then
4722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731 ac_cv_prog_ac_ct_CC="gcc"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4742 if test -n "$ac_ct_CC"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4744 $as_echo "$ac_ct_CC" >&6; }
4745 else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4750 if test "x$ac_ct_CC" = x; then
4751 CC=""
4752 else
4753 case $cross_compiling:$ac_tool_warned in
4754 yes:)
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4757 ac_tool_warned=yes ;;
4758 esac
4759 CC=$ac_ct_CC
4761 else
4762 CC="$ac_cv_prog_CC"
4765 if test -z "$CC"; then
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}cc; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if ${ac_cv_prog_CC+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$CC"; then
4775 ac_cv_prog_CC="$CC" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_prog_CC="${ac_tool_prefix}cc"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4794 CC=$ac_cv_prog_CC
4795 if test -n "$CC"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4797 $as_echo "$CC" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4806 if test -z "$CC"; then
4807 # Extract the first word of "cc", so it can be a program name with args.
4808 set dummy cc; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_prog_CC+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$CC"; then
4815 ac_cv_prog_CC="$CC" # Let the user override the test.
4816 else
4817 ac_prog_rejected=no
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4826 ac_prog_rejected=yes
4827 continue
4829 ac_cv_prog_CC="cc"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4835 IFS=$as_save_IFS
4837 if test $ac_prog_rejected = yes; then
4838 # We found a bogon in the path, so make sure we never use it.
4839 set dummy $ac_cv_prog_CC
4840 shift
4841 if test $# != 0; then
4842 # We chose a different compiler from the bogus one.
4843 # However, it has the same basename, so the bogon will be chosen
4844 # first if we set CC to just the basename; use the full file name.
4845 shift
4846 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4851 CC=$ac_cv_prog_CC
4852 if test -n "$CC"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4854 $as_echo "$CC" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4862 if test -z "$CC"; then
4863 if test -n "$ac_tool_prefix"; then
4864 for ac_prog in cl.exe
4866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_prog_CC+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$CC"; then
4874 ac_cv_prog_CC="$CC" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 CC=$ac_cv_prog_CC
4894 if test -n "$CC"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4896 $as_echo "$CC" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4903 test -n "$CC" && break
4904 done
4906 if test -z "$CC"; then
4907 ac_ct_CC=$CC
4908 for ac_prog in cl.exe
4910 # Extract the first word of "$ac_prog", so it can be a program name with args.
4911 set dummy $ac_prog; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$ac_ct_CC"; then
4918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_ac_ct_CC="$ac_prog"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4938 if test -n "$ac_ct_CC"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4940 $as_echo "$ac_ct_CC" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 test -n "$ac_ct_CC" && break
4948 done
4950 if test "x$ac_ct_CC" = x; then
4951 CC=""
4952 else
4953 case $cross_compiling:$ac_tool_warned in
4954 yes:)
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957 ac_tool_warned=yes ;;
4958 esac
4959 CC=$ac_ct_CC
4966 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error $? "no acceptable C compiler found in \$PATH
4969 See \`config.log' for more details" "$LINENO" 5; }
4971 # Provide some information about the compiler.
4972 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4973 set X $ac_compile
4974 ac_compiler=$2
4975 for ac_option in --version -v -V -qversion; do
4976 { { ac_try="$ac_compiler $ac_option >&5"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4982 $as_echo "$ac_try_echo"; } >&5
4983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4984 ac_status=$?
4985 if test -s conftest.err; then
4986 sed '10a\
4987 ... rest of stderr output deleted ...
4988 10q' conftest.err >conftest.er1
4989 cat conftest.er1 >&5
4991 rm -f conftest.er1 conftest.err
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }
4994 done
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4997 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4998 if ${ac_cv_c_compiler_gnu+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5005 main ()
5007 #ifndef __GNUC__
5008 choke me
5009 #endif
5012 return 0;
5014 _ACEOF
5015 if ac_fn_c_try_compile "$LINENO"; then :
5016 ac_compiler_gnu=yes
5017 else
5018 ac_compiler_gnu=no
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5025 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5026 if test $ac_compiler_gnu = yes; then
5027 GCC=yes
5028 else
5029 GCC=
5031 ac_test_CFLAGS=${CFLAGS+set}
5032 ac_save_CFLAGS=$CFLAGS
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5034 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5035 if ${ac_cv_prog_cc_g+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 ac_save_c_werror_flag=$ac_c_werror_flag
5039 ac_c_werror_flag=yes
5040 ac_cv_prog_cc_g=no
5041 CFLAGS="-g"
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5046 main ()
5050 return 0;
5052 _ACEOF
5053 if ac_fn_c_try_compile "$LINENO"; then :
5054 ac_cv_prog_cc_g=yes
5055 else
5056 CFLAGS=""
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5061 main ()
5065 return 0;
5067 _ACEOF
5068 if ac_fn_c_try_compile "$LINENO"; then :
5070 else
5071 ac_c_werror_flag=$ac_save_c_werror_flag
5072 CFLAGS="-g"
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5077 main ()
5081 return 0;
5083 _ACEOF
5084 if ac_fn_c_try_compile "$LINENO"; then :
5085 ac_cv_prog_cc_g=yes
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 ac_c_werror_flag=$ac_save_c_werror_flag
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5095 $as_echo "$ac_cv_prog_cc_g" >&6; }
5096 if test "$ac_test_CFLAGS" = set; then
5097 CFLAGS=$ac_save_CFLAGS
5098 elif test $ac_cv_prog_cc_g = yes; then
5099 if test "$GCC" = yes; then
5100 CFLAGS="-g -O2"
5101 else
5102 CFLAGS="-g"
5104 else
5105 if test "$GCC" = yes; then
5106 CFLAGS="-O2"
5107 else
5108 CFLAGS=
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5112 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5113 if ${ac_cv_prog_cc_c89+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 ac_cv_prog_cc_c89=no
5117 ac_save_CC=$CC
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 #include <stdarg.h>
5121 #include <stdio.h>
5122 struct stat;
5123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5124 struct buf { int x; };
5125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5126 static char *e (p, i)
5127 char **p;
5128 int i;
5130 return p[i];
5132 static char *f (char * (*g) (char **, int), char **p, ...)
5134 char *s;
5135 va_list v;
5136 va_start (v,p);
5137 s = g (p, va_arg (v,int));
5138 va_end (v);
5139 return s;
5142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5143 function prototypes and stuff, but not '\xHH' hex character constants.
5144 These don't provoke an error unfortunately, instead are silently treated
5145 as 'x'. The following induces an error, until -std is added to get
5146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5147 array size at least. It's necessary to write '\x00'==0 to get something
5148 that's true only with -std. */
5149 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5152 inside strings and character constants. */
5153 #define FOO(x) 'x'
5154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5156 int test (int i, double x);
5157 struct s1 {int (*f) (int a);};
5158 struct s2 {int (*f) (double a);};
5159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5160 int argc;
5161 char **argv;
5163 main ()
5165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5167 return 0;
5169 _ACEOF
5170 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5173 CC="$ac_save_CC $ac_arg"
5174 if ac_fn_c_try_compile "$LINENO"; then :
5175 ac_cv_prog_cc_c89=$ac_arg
5177 rm -f core conftest.err conftest.$ac_objext
5178 test "x$ac_cv_prog_cc_c89" != "xno" && break
5179 done
5180 rm -f conftest.$ac_ext
5181 CC=$ac_save_CC
5184 # AC_CACHE_VAL
5185 case "x$ac_cv_prog_cc_c89" in
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5188 $as_echo "none needed" >&6; } ;;
5189 xno)
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5191 $as_echo "unsupported" >&6; } ;;
5193 CC="$CC $ac_cv_prog_cc_c89"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5195 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5196 esac
5197 if test "x$ac_cv_prog_cc_c89" != xno; then :
5201 ac_ext=c
5202 ac_cpp='$CPP $CPPFLAGS'
5203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5207 ac_ext=c
5208 ac_cpp='$CPP $CPPFLAGS'
5209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5213 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5214 if ${am_cv_prog_cc_c_o+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5221 main ()
5225 return 0;
5227 _ACEOF
5228 # Make sure it works both with $CC and with simple cc.
5229 # Following AC_PROG_CC_C_O, we do the test twice because some
5230 # compilers refuse to overwrite an existing .o file with -o,
5231 # though they will create one.
5232 am_cv_prog_cc_c_o=yes
5233 for am_i in 1 2; do
5234 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5235 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } \
5239 && test -f conftest2.$ac_objext; then
5240 : OK
5241 else
5242 am_cv_prog_cc_c_o=no
5243 break
5245 done
5246 rm -f core conftest*
5247 unset am_i
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5250 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5251 if test "$am_cv_prog_cc_c_o" != yes; then
5252 # Losing compiler, so override with the script.
5253 # FIXME: It is wrong to rewrite CC.
5254 # But if we don't then we get into trouble of one sort or another.
5255 # A longer-term fix would be to have automake use am__CC in this case,
5256 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5257 CC="$am_aux_dir/compile $CC"
5259 ac_ext=c
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5270 if test -n "$ac_tool_prefix"; then
5271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5272 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_prog_RANLIB+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -n "$RANLIB"; then
5279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5298 RANLIB=$ac_cv_prog_RANLIB
5299 if test -n "$RANLIB"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5301 $as_echo "$RANLIB" >&6; }
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5309 if test -z "$ac_cv_prog_RANLIB"; then
5310 ac_ct_RANLIB=$RANLIB
5311 # Extract the first word of "ranlib", so it can be a program name with args.
5312 set dummy ranlib; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$ac_ct_RANLIB"; then
5319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_ac_ct_RANLIB="ranlib"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5339 if test -n "$ac_ct_RANLIB"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5341 $as_echo "$ac_ct_RANLIB" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5347 if test "x$ac_ct_RANLIB" = x; then
5348 RANLIB=":"
5349 else
5350 case $cross_compiling:$ac_tool_warned in
5351 yes:)
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned=yes ;;
5355 esac
5356 RANLIB=$ac_ct_RANLIB
5358 else
5359 RANLIB="$ac_cv_prog_RANLIB"
5363 for ac_prog in gawk mawk nawk awk
5365 # Extract the first word of "$ac_prog", so it can be a program name with args.
5366 set dummy $ac_prog; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_AWK+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$AWK"; then
5373 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_AWK="$ac_prog"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5386 done
5387 done
5388 IFS=$as_save_IFS
5392 AWK=$ac_cv_prog_AWK
5393 if test -n "$AWK"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5395 $as_echo "$AWK" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5402 test -n "$AWK" && break
5403 done
5405 case "$AWK" in
5406 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5407 esac
5409 # Extract the first word of "dwz", so it can be a program name with args.
5410 set dummy dwz; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_DWZ+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$DWZ"; then
5417 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_DWZ="dwz"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5436 DWZ=$ac_cv_prog_DWZ
5437 if test -n "$DWZ"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5439 $as_echo "$DWZ" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5446 if test "$DWZ" != ""; then
5447 HAVE_DWZ_TRUE=
5448 HAVE_DWZ_FALSE='#'
5449 else
5450 HAVE_DWZ_TRUE='#'
5451 HAVE_DWZ_FALSE=
5455 case `pwd` in
5456 *\ * | *\ *)
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5458 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5459 esac
5463 macro_version='2.2.7a'
5464 macro_revision='1.3134'
5478 ltmain="$ac_aux_dir/ltmain.sh"
5480 # Backslashify metacharacters that are still active within
5481 # double-quoted strings.
5482 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5484 # Same as above, but do not quote variable references.
5485 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5487 # Sed substitution to delay expansion of an escaped shell variable in a
5488 # double_quote_subst'ed string.
5489 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5491 # Sed substitution to delay expansion of an escaped single quote.
5492 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5494 # Sed substitution to avoid accidental globbing in evaled expressions
5495 no_glob_subst='s/\*/\\\*/g'
5497 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5498 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5499 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5502 $as_echo_n "checking how to print strings... " >&6; }
5503 # Test print first, because it will be a builtin if present.
5504 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5505 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5506 ECHO='print -r --'
5507 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5508 ECHO='printf %s\n'
5509 else
5510 # Use this function as a fallback that always works.
5511 func_fallback_echo ()
5513 eval 'cat <<_LTECHO_EOF
5515 _LTECHO_EOF'
5517 ECHO='func_fallback_echo'
5520 # func_echo_all arg...
5521 # Invoke $ECHO with all args, space-separated.
5522 func_echo_all ()
5524 $ECHO ""
5527 case "$ECHO" in
5528 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5529 $as_echo "printf" >&6; } ;;
5530 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5531 $as_echo "print -r" >&6; } ;;
5532 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5533 $as_echo "cat" >&6; } ;;
5534 esac
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5550 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5551 if ${ac_cv_path_SED+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5555 for ac_i in 1 2 3 4 5 6 7; do
5556 ac_script="$ac_script$as_nl$ac_script"
5557 done
5558 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5559 { ac_script=; unset ac_script;}
5560 if test -z "$SED"; then
5561 ac_path_SED_found=false
5562 # Loop through the user's path and test for each of PROGNAME-LIST
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_prog in sed gsed; do
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5571 as_fn_executable_p "$ac_path_SED" || continue
5572 # Check for GNU ac_path_SED and select it if it is found.
5573 # Check for GNU $ac_path_SED
5574 case `"$ac_path_SED" --version 2>&1` in
5575 *GNU*)
5576 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5578 ac_count=0
5579 $as_echo_n 0123456789 >"conftest.in"
5580 while :
5582 cat "conftest.in" "conftest.in" >"conftest.tmp"
5583 mv "conftest.tmp" "conftest.in"
5584 cp "conftest.in" "conftest.nl"
5585 $as_echo '' >> "conftest.nl"
5586 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5588 as_fn_arith $ac_count + 1 && ac_count=$as_val
5589 if test $ac_count -gt ${ac_path_SED_max-0}; then
5590 # Best one so far, save it but keep looking for a better one
5591 ac_cv_path_SED="$ac_path_SED"
5592 ac_path_SED_max=$ac_count
5594 # 10*(2^10) chars as input seems more than enough
5595 test $ac_count -gt 10 && break
5596 done
5597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5598 esac
5600 $ac_path_SED_found && break 3
5601 done
5602 done
5603 done
5604 IFS=$as_save_IFS
5605 if test -z "$ac_cv_path_SED"; then
5606 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5608 else
5609 ac_cv_path_SED=$SED
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5614 $as_echo "$ac_cv_path_SED" >&6; }
5615 SED="$ac_cv_path_SED"
5616 rm -f conftest.sed
5618 test -z "$SED" && SED=sed
5619 Xsed="$SED -e 1s/^X//"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5632 $as_echo_n "checking for fgrep... " >&6; }
5633 if ${ac_cv_path_FGREP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5637 then ac_cv_path_FGREP="$GREP -F"
5638 else
5639 if test -z "$FGREP"; then
5640 ac_path_FGREP_found=false
5641 # Loop through the user's path and test for each of PROGNAME-LIST
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_prog in fgrep; do
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5650 as_fn_executable_p "$ac_path_FGREP" || continue
5651 # Check for GNU ac_path_FGREP and select it if it is found.
5652 # Check for GNU $ac_path_FGREP
5653 case `"$ac_path_FGREP" --version 2>&1` in
5654 *GNU*)
5655 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5657 ac_count=0
5658 $as_echo_n 0123456789 >"conftest.in"
5659 while :
5661 cat "conftest.in" "conftest.in" >"conftest.tmp"
5662 mv "conftest.tmp" "conftest.in"
5663 cp "conftest.in" "conftest.nl"
5664 $as_echo 'FGREP' >> "conftest.nl"
5665 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5667 as_fn_arith $ac_count + 1 && ac_count=$as_val
5668 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5669 # Best one so far, save it but keep looking for a better one
5670 ac_cv_path_FGREP="$ac_path_FGREP"
5671 ac_path_FGREP_max=$ac_count
5673 # 10*(2^10) chars as input seems more than enough
5674 test $ac_count -gt 10 && break
5675 done
5676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5677 esac
5679 $ac_path_FGREP_found && break 3
5680 done
5681 done
5682 done
5683 IFS=$as_save_IFS
5684 if test -z "$ac_cv_path_FGREP"; then
5685 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5687 else
5688 ac_cv_path_FGREP=$FGREP
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5694 $as_echo "$ac_cv_path_FGREP" >&6; }
5695 FGREP="$ac_cv_path_FGREP"
5698 test -z "$GREP" && GREP=grep
5718 # Check whether --with-gnu-ld was given.
5719 if test "${with_gnu_ld+set}" = set; then :
5720 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5721 else
5722 with_gnu_ld=no
5725 ac_prog=ld
5726 if test "$GCC" = yes; then
5727 # Check if gcc -print-prog-name=ld gives a path.
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5729 $as_echo_n "checking for ld used by $CC... " >&6; }
5730 case $host in
5731 *-*-mingw*)
5732 # gcc leaves a trailing carriage return which upsets mingw
5733 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5735 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5736 esac
5737 case $ac_prog in
5738 # Accept absolute paths.
5739 [\\/]* | ?:[\\/]*)
5740 re_direlt='/[^/][^/]*/\.\./'
5741 # Canonicalize the pathname of ld
5742 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5743 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5744 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5745 done
5746 test -z "$LD" && LD="$ac_prog"
5749 # If it fails, then pretend we aren't using GCC.
5750 ac_prog=ld
5753 # If it is relative, then search for the first ld in PATH.
5754 with_gnu_ld=unknown
5756 esac
5757 elif test "$with_gnu_ld" = yes; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5759 $as_echo_n "checking for GNU ld... " >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5762 $as_echo_n "checking for non-GNU ld... " >&6; }
5764 if ${lt_cv_path_LD+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -z "$LD"; then
5768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5769 for ac_dir in $PATH; do
5770 IFS="$lt_save_ifs"
5771 test -z "$ac_dir" && ac_dir=.
5772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5773 lt_cv_path_LD="$ac_dir/$ac_prog"
5774 # Check to see if the program is GNU ld. I'd rather use --version,
5775 # but apparently some variants of GNU ld only accept -v.
5776 # Break only if it was the GNU/non-GNU ld that we prefer.
5777 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5778 *GNU* | *'with BFD'*)
5779 test "$with_gnu_ld" != no && break
5782 test "$with_gnu_ld" != yes && break
5784 esac
5786 done
5787 IFS="$lt_save_ifs"
5788 else
5789 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5793 LD="$lt_cv_path_LD"
5794 if test -n "$LD"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5796 $as_echo "$LD" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5801 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5803 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5804 if ${lt_cv_prog_gnu_ld+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5808 case `$LD -v 2>&1 </dev/null` in
5809 *GNU* | *'with BFD'*)
5810 lt_cv_prog_gnu_ld=yes
5813 lt_cv_prog_gnu_ld=no
5815 esac
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5818 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5819 with_gnu_ld=$lt_cv_prog_gnu_ld
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5830 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5831 if ${lt_cv_path_NM+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if test -n "$NM"; then
5835 # Let the user override the nm to test.
5836 lt_nm_to_check="$NM"
5837 else
5838 lt_nm_to_check="${ac_tool_prefix}nm"
5839 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5840 lt_nm_to_check="$lt_nm_to_check nm"
5843 for lt_tmp_nm in "$lt_nm_to_check"; do
5844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5845 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5846 IFS="$lt_save_ifs"
5847 test -z "$ac_dir" && ac_dir=.
5848 # Strip out any user-provided options from the nm to test twice,
5849 # the first time to test to see if nm (rather than its options) has
5850 # an explicit path, the second time to yield a file which can be
5851 # nm'ed itself.
5852 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5853 case "$tmp_nm_path" in
5854 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5855 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5856 esac
5857 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5858 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5859 # Check to see if the nm accepts a BSD-compat flag.
5860 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5861 # nm: unknown option "B" ignored
5862 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5863 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5864 break
5867 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5868 *$tmp_nm*)
5869 lt_cv_path_NM="$tmp_nm -p"
5870 break
5873 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5874 continue # so that we can try to find one that supports BSD flags
5876 esac
5878 esac
5880 done
5881 IFS="$lt_save_ifs"
5882 done
5883 : ${lt_cv_path_NM=no}
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5886 $as_echo "$lt_cv_path_NM" >&6; }
5887 if test "$lt_cv_path_NM" != "no"; then
5888 NM="$lt_cv_path_NM"
5889 else
5890 # Didn't find any BSD compatible name lister, look for dumpbin.
5891 if test -n "$DUMPBIN"; then :
5892 # Let the user override the test.
5893 else
5894 if test -n "$ac_tool_prefix"; then
5895 for ac_prog in dumpbin "link -dump"
5897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_DUMPBIN+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$DUMPBIN"; then
5905 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5918 done
5919 done
5920 IFS=$as_save_IFS
5924 DUMPBIN=$ac_cv_prog_DUMPBIN
5925 if test -n "$DUMPBIN"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5927 $as_echo "$DUMPBIN" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5934 test -n "$DUMPBIN" && break
5935 done
5937 if test -z "$DUMPBIN"; then
5938 ac_ct_DUMPBIN=$DUMPBIN
5939 for ac_prog in dumpbin "link -dump"
5941 # Extract the first word of "$ac_prog", so it can be a program name with args.
5942 set dummy $ac_prog; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if test -n "$ac_ct_DUMPBIN"; then
5949 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5962 done
5963 done
5964 IFS=$as_save_IFS
5968 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5969 if test -n "$ac_ct_DUMPBIN"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5971 $as_echo "$ac_ct_DUMPBIN" >&6; }
5972 else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5978 test -n "$ac_ct_DUMPBIN" && break
5979 done
5981 if test "x$ac_ct_DUMPBIN" = x; then
5982 DUMPBIN=":"
5983 else
5984 case $cross_compiling:$ac_tool_warned in
5985 yes:)
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990 DUMPBIN=$ac_ct_DUMPBIN
5994 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5995 *COFF*)
5996 DUMPBIN="$DUMPBIN -symbols"
5999 DUMPBIN=:
6001 esac
6004 if test "$DUMPBIN" != ":"; then
6005 NM="$DUMPBIN"
6008 test -z "$NM" && NM=nm
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6016 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6017 if ${lt_cv_nm_interface+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 lt_cv_nm_interface="BSD nm"
6021 echo "int some_variable = 0;" > conftest.$ac_ext
6022 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6023 (eval "$ac_compile" 2>conftest.err)
6024 cat conftest.err >&5
6025 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6026 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6027 cat conftest.err >&5
6028 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6029 cat conftest.out >&5
6030 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6031 lt_cv_nm_interface="MS dumpbin"
6033 rm -f conftest*
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6036 $as_echo "$lt_cv_nm_interface" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6039 $as_echo_n "checking whether ln -s works... " >&6; }
6040 LN_S=$as_ln_s
6041 if test "$LN_S" = "ln -s"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6043 $as_echo "yes" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6046 $as_echo "no, using $LN_S" >&6; }
6049 # find the maximum length of command line arguments
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6051 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6052 if ${lt_cv_sys_max_cmd_len+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6056 teststring="ABCD"
6058 case $build_os in
6059 msdosdjgpp*)
6060 # On DJGPP, this test can blow up pretty badly due to problems in libc
6061 # (any single argument exceeding 2000 bytes causes a buffer overrun
6062 # during glob expansion). Even if it were fixed, the result of this
6063 # check would be larger than it should be.
6064 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6067 gnu*)
6068 # Under GNU Hurd, this test is not required because there is
6069 # no limit to the length of command line arguments.
6070 # Libtool will interpret -1 as no limit whatsoever
6071 lt_cv_sys_max_cmd_len=-1;
6074 cygwin* | mingw* | cegcc*)
6075 # On Win9x/ME, this test blows up -- it succeeds, but takes
6076 # about 5 minutes as the teststring grows exponentially.
6077 # Worse, since 9x/ME are not pre-emptively multitasking,
6078 # you end up with a "frozen" computer, even though with patience
6079 # the test eventually succeeds (with a max line length of 256k).
6080 # Instead, let's just punt: use the minimum linelength reported by
6081 # all of the supported platforms: 8192 (on NT/2K/XP).
6082 lt_cv_sys_max_cmd_len=8192;
6085 mint*)
6086 # On MiNT this can take a long time and run out of memory.
6087 lt_cv_sys_max_cmd_len=8192;
6090 amigaos*)
6091 # On AmigaOS with pdksh, this test takes hours, literally.
6092 # So we just punt and use a minimum line length of 8192.
6093 lt_cv_sys_max_cmd_len=8192;
6096 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6097 # This has been around since 386BSD, at least. Likely further.
6098 if test -x /sbin/sysctl; then
6099 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6100 elif test -x /usr/sbin/sysctl; then
6101 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6102 else
6103 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6105 # And add a safety zone
6106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6110 interix*)
6111 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6112 lt_cv_sys_max_cmd_len=196608
6115 osf*)
6116 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6117 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6118 # nice to cause kernel panics so lets avoid the loop below.
6119 # First set a reasonable default.
6120 lt_cv_sys_max_cmd_len=16384
6122 if test -x /sbin/sysconfig; then
6123 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6124 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6125 esac
6128 sco3.2v5*)
6129 lt_cv_sys_max_cmd_len=102400
6131 sysv5* | sco5v6* | sysv4.2uw2*)
6132 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6133 if test -n "$kargmax"; then
6134 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6135 else
6136 lt_cv_sys_max_cmd_len=32768
6140 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6141 if test -n "$lt_cv_sys_max_cmd_len"; then
6142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6144 else
6145 # Make teststring a little bigger before we do anything with it.
6146 # a 1K string should be a reasonable start.
6147 for i in 1 2 3 4 5 6 7 8 ; do
6148 teststring=$teststring$teststring
6149 done
6150 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6151 # If test is not a shell built-in, we'll probably end up computing a
6152 # maximum length that is only half of the actual maximum length, but
6153 # we can't tell.
6154 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6155 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6156 test $i != 17 # 1/2 MB should be enough
6158 i=`expr $i + 1`
6159 teststring=$teststring$teststring
6160 done
6161 # Only check the string length outside the loop.
6162 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6163 teststring=
6164 # Add a significant safety factor because C++ compilers can tack on
6165 # massive amounts of additional arguments before passing them to the
6166 # linker. It appears as though 1/2 is a usable value.
6167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6170 esac
6174 if test -n $lt_cv_sys_max_cmd_len ; then
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6176 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6177 else
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6179 $as_echo "none" >&6; }
6181 max_cmd_len=$lt_cv_sys_max_cmd_len
6188 : ${CP="cp -f"}
6189 : ${MV="mv -f"}
6190 : ${RM="rm -f"}
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6193 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6194 # Try some XSI features
6195 xsi_shell=no
6196 ( _lt_dummy="a/b/c"
6197 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6198 = c,a/b,, \
6199 && eval 'test $(( 1 + 1 )) -eq 2 \
6200 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6201 && xsi_shell=yes
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6203 $as_echo "$xsi_shell" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6207 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6208 lt_shell_append=no
6209 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6210 >/dev/null 2>&1 \
6211 && lt_shell_append=yes
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6213 $as_echo "$lt_shell_append" >&6; }
6216 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6217 lt_unset=unset
6218 else
6219 lt_unset=false
6226 # test EBCDIC or ASCII
6227 case `echo X|tr X '\101'` in
6228 A) # ASCII based system
6229 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6230 lt_SP2NL='tr \040 \012'
6231 lt_NL2SP='tr \015\012 \040\040'
6233 *) # EBCDIC based system
6234 lt_SP2NL='tr \100 \n'
6235 lt_NL2SP='tr \r\n \100\100'
6237 esac
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6248 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6249 if ${lt_cv_ld_reload_flag+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 lt_cv_ld_reload_flag='-r'
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6255 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6256 reload_flag=$lt_cv_ld_reload_flag
6257 case $reload_flag in
6258 "" | " "*) ;;
6259 *) reload_flag=" $reload_flag" ;;
6260 esac
6261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6262 case $host_os in
6263 darwin*)
6264 if test "$GCC" = yes; then
6265 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6266 else
6267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6270 esac
6280 if test -n "$ac_tool_prefix"; then
6281 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6282 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_OBJDUMP+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 if test -n "$OBJDUMP"; then
6289 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6302 done
6303 done
6304 IFS=$as_save_IFS
6308 OBJDUMP=$ac_cv_prog_OBJDUMP
6309 if test -n "$OBJDUMP"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6311 $as_echo "$OBJDUMP" >&6; }
6312 else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6319 if test -z "$ac_cv_prog_OBJDUMP"; then
6320 ac_ct_OBJDUMP=$OBJDUMP
6321 # Extract the first word of "objdump", so it can be a program name with args.
6322 set dummy objdump; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 if test -n "$ac_ct_OBJDUMP"; then
6329 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6342 done
6343 done
6344 IFS=$as_save_IFS
6348 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6349 if test -n "$ac_ct_OBJDUMP"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6351 $as_echo "$ac_ct_OBJDUMP" >&6; }
6352 else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6357 if test "x$ac_ct_OBJDUMP" = x; then
6358 OBJDUMP="false"
6359 else
6360 case $cross_compiling:$ac_tool_warned in
6361 yes:)
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6364 ac_tool_warned=yes ;;
6365 esac
6366 OBJDUMP=$ac_ct_OBJDUMP
6368 else
6369 OBJDUMP="$ac_cv_prog_OBJDUMP"
6372 test -z "$OBJDUMP" && OBJDUMP=objdump
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6383 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6384 if ${lt_cv_deplibs_check_method+:} false; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 lt_cv_file_magic_cmd='$MAGIC_CMD'
6388 lt_cv_file_magic_test_file=
6389 lt_cv_deplibs_check_method='unknown'
6390 # Need to set the preceding variable on all platforms that support
6391 # interlibrary dependencies.
6392 # 'none' -- dependencies not supported.
6393 # `unknown' -- same as none, but documents that we really don't know.
6394 # 'pass_all' -- all dependencies passed with no checks.
6395 # 'test_compile' -- check by making test program.
6396 # 'file_magic [[regex]]' -- check by looking for files in library path
6397 # which responds to the $file_magic_cmd with a given extended regex.
6398 # If you have `file' or equivalent on your system and you're not sure
6399 # whether `pass_all' will *always* work, you probably want this one.
6401 case $host_os in
6402 aix[4-9]*)
6403 lt_cv_deplibs_check_method=pass_all
6406 beos*)
6407 lt_cv_deplibs_check_method=pass_all
6410 bsdi[45]*)
6411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6412 lt_cv_file_magic_cmd='/usr/bin/file -L'
6413 lt_cv_file_magic_test_file=/shlib/libc.so
6416 cygwin*)
6417 # func_win32_libid is a shell function defined in ltmain.sh
6418 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6419 lt_cv_file_magic_cmd='func_win32_libid'
6422 mingw* | pw32*)
6423 # Base MSYS/MinGW do not provide the 'file' command needed by
6424 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6425 # unless we find 'file', for example because we are cross-compiling.
6426 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6427 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6428 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6429 lt_cv_file_magic_cmd='func_win32_libid'
6430 else
6431 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6432 lt_cv_file_magic_cmd='$OBJDUMP -f'
6436 cegcc*)
6437 # use the weaker test based on 'objdump'. See mingw*.
6438 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6439 lt_cv_file_magic_cmd='$OBJDUMP -f'
6442 darwin* | rhapsody*)
6443 lt_cv_deplibs_check_method=pass_all
6446 freebsd* | dragonfly*)
6447 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6448 case $host_cpu in
6449 i*86 )
6450 # Not sure whether the presence of OpenBSD here was a mistake.
6451 # Let's accept both of them until this is cleared up.
6452 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6453 lt_cv_file_magic_cmd=/usr/bin/file
6454 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6456 esac
6457 else
6458 lt_cv_deplibs_check_method=pass_all
6462 gnu*)
6463 lt_cv_deplibs_check_method=pass_all
6466 haiku*)
6467 lt_cv_deplibs_check_method=pass_all
6470 hpux10.20* | hpux11*)
6471 lt_cv_file_magic_cmd=/usr/bin/file
6472 case $host_cpu in
6473 ia64*)
6474 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6475 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6477 hppa*64*)
6478 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]'
6479 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6482 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6483 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6485 esac
6488 interix[3-9]*)
6489 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6493 irix5* | irix6* | nonstopux*)
6494 case $LD in
6495 *-32|*"-32 ") libmagic=32-bit;;
6496 *-n32|*"-n32 ") libmagic=N32;;
6497 *-64|*"-64 ") libmagic=64-bit;;
6498 *) libmagic=never-match;;
6499 esac
6500 lt_cv_deplibs_check_method=pass_all
6503 # This must be Linux ELF.
6504 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6505 lt_cv_deplibs_check_method=pass_all
6508 netbsd*)
6509 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6511 else
6512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6516 newos6*)
6517 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6518 lt_cv_file_magic_cmd=/usr/bin/file
6519 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6522 *nto* | *qnx*)
6523 lt_cv_deplibs_check_method=pass_all
6526 openbsd*)
6527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6528 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6529 else
6530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6534 osf3* | osf4* | osf5*)
6535 lt_cv_deplibs_check_method=pass_all
6538 rdos*)
6539 lt_cv_deplibs_check_method=pass_all
6542 solaris*)
6543 lt_cv_deplibs_check_method=pass_all
6546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6547 lt_cv_deplibs_check_method=pass_all
6550 sysv4 | sysv4.3*)
6551 case $host_vendor in
6552 motorola)
6553 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]'
6554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6556 ncr)
6557 lt_cv_deplibs_check_method=pass_all
6559 sequent)
6560 lt_cv_file_magic_cmd='/bin/file'
6561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6563 sni)
6564 lt_cv_file_magic_cmd='/bin/file'
6565 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6566 lt_cv_file_magic_test_file=/lib/libc.so
6568 siemens)
6569 lt_cv_deplibs_check_method=pass_all
6572 lt_cv_deplibs_check_method=pass_all
6574 esac
6577 tpf*)
6578 lt_cv_deplibs_check_method=pass_all
6580 vxworks*)
6581 # Assume VxWorks cross toolchains are built on Linux, possibly
6582 # as canadian for Windows hosts.
6583 lt_cv_deplibs_check_method=pass_all
6585 esac
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6589 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6590 file_magic_cmd=$lt_cv_file_magic_cmd
6591 deplibs_check_method=$lt_cv_deplibs_check_method
6592 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6605 plugin_option=
6606 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6607 for plugin in $plugin_names; do
6608 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6609 if test x$plugin_so = x$plugin; then
6610 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6612 if test x$plugin_so != x$plugin; then
6613 plugin_option="--plugin $plugin_so"
6614 break
6616 done
6618 if test -n "$ac_tool_prefix"; then
6619 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6620 set dummy ${ac_tool_prefix}ar; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_AR+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$AR"; then
6627 ac_cv_prog_AR="$AR" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_AR="${ac_tool_prefix}ar"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6640 done
6641 done
6642 IFS=$as_save_IFS
6646 AR=$ac_cv_prog_AR
6647 if test -n "$AR"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6649 $as_echo "$AR" >&6; }
6650 else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6657 if test -z "$ac_cv_prog_AR"; then
6658 ac_ct_AR=$AR
6659 # Extract the first word of "ar", so it can be a program name with args.
6660 set dummy ar; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 if test -n "$ac_ct_AR"; then
6667 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_ac_ct_AR="ar"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6680 done
6681 done
6682 IFS=$as_save_IFS
6686 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6687 if test -n "$ac_ct_AR"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6689 $as_echo "$ac_ct_AR" >&6; }
6690 else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6695 if test "x$ac_ct_AR" = x; then
6696 AR="false"
6697 else
6698 case $cross_compiling:$ac_tool_warned in
6699 yes:)
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6702 ac_tool_warned=yes ;;
6703 esac
6704 AR=$ac_ct_AR
6706 else
6707 AR="$ac_cv_prog_AR"
6710 test -z "$AR" && AR=ar
6711 if test -n "$plugin_option"; then
6712 if $AR --help 2>&1 | grep -q "\--plugin"; then
6713 touch conftest.c
6714 $AR $plugin_option rc conftest.a conftest.c
6715 if test "$?" != 0; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6717 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6718 else
6719 AR="$AR $plugin_option"
6721 rm -f conftest.*
6724 test -z "$AR_FLAGS" && AR_FLAGS=cru
6736 if test -n "$ac_tool_prefix"; then
6737 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6738 set dummy ${ac_tool_prefix}strip; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if ${ac_cv_prog_STRIP+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 if test -n "$STRIP"; then
6745 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6754 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6758 done
6759 done
6760 IFS=$as_save_IFS
6764 STRIP=$ac_cv_prog_STRIP
6765 if test -n "$STRIP"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6767 $as_echo "$STRIP" >&6; }
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6775 if test -z "$ac_cv_prog_STRIP"; then
6776 ac_ct_STRIP=$STRIP
6777 # Extract the first word of "strip", so it can be a program name with args.
6778 set dummy strip; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if test -n "$ac_ct_STRIP"; then
6785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794 ac_cv_prog_ac_ct_STRIP="strip"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6805 if test -n "$ac_ct_STRIP"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6807 $as_echo "$ac_ct_STRIP" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6813 if test "x$ac_ct_STRIP" = x; then
6814 STRIP=":"
6815 else
6816 case $cross_compiling:$ac_tool_warned in
6817 yes:)
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820 ac_tool_warned=yes ;;
6821 esac
6822 STRIP=$ac_ct_STRIP
6824 else
6825 STRIP="$ac_cv_prog_STRIP"
6828 test -z "$STRIP" && STRIP=:
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_RANLIB+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test -n "$RANLIB"; then
6844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6857 done
6858 done
6859 IFS=$as_save_IFS
6863 RANLIB=$ac_cv_prog_RANLIB
6864 if test -n "$RANLIB"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6866 $as_echo "$RANLIB" >&6; }
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6874 if test -z "$ac_cv_prog_RANLIB"; then
6875 ac_ct_RANLIB=$RANLIB
6876 # Extract the first word of "ranlib", so it can be a program name with args.
6877 set dummy ranlib; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$ac_ct_RANLIB"; then
6884 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_ac_ct_RANLIB="ranlib"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6897 done
6898 done
6899 IFS=$as_save_IFS
6903 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6904 if test -n "$ac_ct_RANLIB"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6906 $as_echo "$ac_ct_RANLIB" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6912 if test "x$ac_ct_RANLIB" = x; then
6913 RANLIB=":"
6914 else
6915 case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921 RANLIB=$ac_ct_RANLIB
6923 else
6924 RANLIB="$ac_cv_prog_RANLIB"
6927 test -z "$RANLIB" && RANLIB=:
6928 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6929 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6930 RANLIB="$RANLIB $plugin_option"
6939 # Determine commands to create old-style static archives.
6940 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6941 old_postinstall_cmds='chmod 644 $oldlib'
6942 old_postuninstall_cmds=
6944 if test -n "$RANLIB"; then
6945 case $host_os in
6946 openbsd*)
6947 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6952 esac
6953 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6956 case $host_os in
6957 darwin*)
6958 lock_old_archive_extraction=yes ;;
6960 lock_old_archive_extraction=no ;;
6961 esac
7001 # If no C compiler was specified, use CC.
7002 LTCC=${LTCC-"$CC"}
7004 # If no C compiler flags were specified, use CFLAGS.
7005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7007 # Allow CC to be a program name with arguments.
7008 compiler=$CC
7011 # Check for command to grab the raw symbol name followed by C symbol from nm.
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7013 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7014 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7018 # These are sane defaults that work on at least a few old systems.
7019 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7021 # Character class describing NM global symbol codes.
7022 symcode='[BCDEGRST]'
7024 # Regexp to match symbols that can be accessed directly from C.
7025 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7027 # Define system-specific variables.
7028 case $host_os in
7029 aix*)
7030 symcode='[BCDT]'
7032 cygwin* | mingw* | pw32* | cegcc*)
7033 symcode='[ABCDGISTW]'
7035 hpux*)
7036 if test "$host_cpu" = ia64; then
7037 symcode='[ABCDEGRST]'
7040 irix* | nonstopux*)
7041 symcode='[BCDEGRST]'
7043 osf*)
7044 symcode='[BCDEGQRST]'
7046 solaris*)
7047 symcode='[BCDRT]'
7049 sco3.2v5*)
7050 symcode='[DT]'
7052 sysv4.2uw2*)
7053 symcode='[DT]'
7055 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7056 symcode='[ABDT]'
7058 sysv4)
7059 symcode='[DFNSTU]'
7061 esac
7063 # If we're using GNU nm, then use its standard symbol codes.
7064 case `$NM -V 2>&1` in
7065 *GNU* | *'with BFD'*)
7066 symcode='[ABCDGIRSTW]' ;;
7067 esac
7069 # Transform an extracted symbol line into a proper C declaration.
7070 # Some systems (esp. on ia64) link data and code symbols differently,
7071 # so use this general approach.
7072 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7074 # Transform an extracted symbol line into symbol name and symbol address
7075 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7076 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'"
7078 # Handle CRLF in mingw tool chain
7079 opt_cr=
7080 case $build_os in
7081 mingw*)
7082 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7084 esac
7086 # Try without a prefix underscore, then with it.
7087 for ac_symprfx in "" "_"; do
7089 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7090 symxfrm="\\1 $ac_symprfx\\2 \\2"
7092 # Write the raw and C identifiers.
7093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7094 # Fake it for dumpbin and say T for any non-static function
7095 # and D for any global variable.
7096 # Also find C++ and __fastcall symbols from MSVC++,
7097 # which start with @ or ?.
7098 lt_cv_sys_global_symbol_pipe="$AWK '"\
7099 " {last_section=section; section=\$ 3};"\
7100 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7101 " \$ 0!~/External *\|/{next};"\
7102 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7103 " {if(hide[section]) next};"\
7104 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7105 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7106 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7107 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7108 " ' prfx=^$ac_symprfx"
7109 else
7110 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7113 # Check to see that the pipe works correctly.
7114 pipe_works=no
7116 rm -f conftest*
7117 cat > conftest.$ac_ext <<_LT_EOF
7118 #ifdef __cplusplus
7119 extern "C" {
7120 #endif
7121 char nm_test_var;
7122 void nm_test_func(void);
7123 void nm_test_func(void){}
7124 #ifdef __cplusplus
7126 #endif
7127 int main(){nm_test_var='a';nm_test_func();return(0);}
7128 _LT_EOF
7130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7131 (eval $ac_compile) 2>&5
7132 ac_status=$?
7133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7134 test $ac_status = 0; }; then
7135 # Now try to grab the symbols.
7136 nlist=conftest.nm
7137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7138 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7139 ac_status=$?
7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; } && test -s "$nlist"; then
7142 # Try sorting and uniquifying the output.
7143 if sort "$nlist" | uniq > "$nlist"T; then
7144 mv -f "$nlist"T "$nlist"
7145 else
7146 rm -f "$nlist"T
7149 # Make sure that we snagged all the symbols we need.
7150 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7151 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7152 cat <<_LT_EOF > conftest.$ac_ext
7153 #ifdef __cplusplus
7154 extern "C" {
7155 #endif
7157 _LT_EOF
7158 # Now generate the symbol file.
7159 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7161 cat <<_LT_EOF >> conftest.$ac_ext
7163 /* The mapping between symbol names and symbols. */
7164 const struct {
7165 const char *name;
7166 void *address;
7168 lt__PROGRAM__LTX_preloaded_symbols[] =
7170 { "@PROGRAM@", (void *) 0 },
7171 _LT_EOF
7172 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7173 cat <<\_LT_EOF >> conftest.$ac_ext
7174 {0, (void *) 0}
7177 /* This works around a problem in FreeBSD linker */
7178 #ifdef FREEBSD_WORKAROUND
7179 static const void *lt_preloaded_setup() {
7180 return lt__PROGRAM__LTX_preloaded_symbols;
7182 #endif
7184 #ifdef __cplusplus
7186 #endif
7187 _LT_EOF
7188 # Now try linking the two files.
7189 mv conftest.$ac_objext conftstm.$ac_objext
7190 lt_save_LIBS="$LIBS"
7191 lt_save_CFLAGS="$CFLAGS"
7192 LIBS="conftstm.$ac_objext"
7193 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7195 (eval $ac_link) 2>&5
7196 ac_status=$?
7197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7199 pipe_works=yes
7201 LIBS="$lt_save_LIBS"
7202 CFLAGS="$lt_save_CFLAGS"
7203 else
7204 echo "cannot find nm_test_func in $nlist" >&5
7206 else
7207 echo "cannot find nm_test_var in $nlist" >&5
7209 else
7210 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7212 else
7213 echo "$progname: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7216 rm -rf conftest* conftst*
7218 # Do not use the global_symbol_pipe unless it works.
7219 if test "$pipe_works" = yes; then
7220 break
7221 else
7222 lt_cv_sys_global_symbol_pipe=
7224 done
7228 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7229 lt_cv_sys_global_symbol_to_cdecl=
7231 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7233 $as_echo "failed" >&6; }
7234 else
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7236 $as_echo "ok" >&6; }
7260 # Check whether --enable-libtool-lock was given.
7261 if test "${enable_libtool_lock+set}" = set; then :
7262 enableval=$enable_libtool_lock;
7265 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7267 # Some flags need to be propagated to the compiler or linker for good
7268 # libtool support.
7269 case $host in
7270 ia64-*-hpux*)
7271 # Find out which ABI we are using.
7272 echo 'int i;' > conftest.$ac_ext
7273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7274 (eval $ac_compile) 2>&5
7275 ac_status=$?
7276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7277 test $ac_status = 0; }; then
7278 case `/usr/bin/file conftest.$ac_objext` in
7279 *ELF-32*)
7280 HPUX_IA64_MODE="32"
7282 *ELF-64*)
7283 HPUX_IA64_MODE="64"
7285 esac
7287 rm -rf conftest*
7289 *-*-irix6*)
7290 # Find out which ABI we are using.
7291 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7293 (eval $ac_compile) 2>&5
7294 ac_status=$?
7295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7296 test $ac_status = 0; }; then
7297 if test "$lt_cv_prog_gnu_ld" = yes; then
7298 case `/usr/bin/file conftest.$ac_objext` in
7299 *32-bit*)
7300 LD="${LD-ld} -melf32bsmip"
7302 *N32*)
7303 LD="${LD-ld} -melf32bmipn32"
7305 *64-bit*)
7306 LD="${LD-ld} -melf64bmip"
7308 esac
7309 else
7310 case `/usr/bin/file conftest.$ac_objext` in
7311 *32-bit*)
7312 LD="${LD-ld} -32"
7314 *N32*)
7315 LD="${LD-ld} -n32"
7317 *64-bit*)
7318 LD="${LD-ld} -64"
7320 esac
7323 rm -rf conftest*
7326 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7327 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7328 # Find out which ABI we are using.
7329 echo 'int i;' > conftest.$ac_ext
7330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7331 (eval $ac_compile) 2>&5
7332 ac_status=$?
7333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334 test $ac_status = 0; }; then
7335 case `/usr/bin/file conftest.o` in
7336 *32-bit*)
7337 case $host in
7338 x86_64-*kfreebsd*-gnu)
7339 LD="${LD-ld} -m elf_i386_fbsd"
7341 x86_64-*linux*)
7342 case `/usr/bin/file conftest.o` in
7343 *x86-64*)
7344 LD="${LD-ld} -m elf32_x86_64"
7347 LD="${LD-ld} -m elf_i386"
7349 esac
7351 powerpc64le-*linux*)
7352 LD="${LD-ld} -m elf32lppclinux"
7354 powerpc64-*linux*)
7355 LD="${LD-ld} -m elf32ppclinux"
7357 s390x-*linux*)
7358 LD="${LD-ld} -m elf_s390"
7360 sparc64-*linux*)
7361 LD="${LD-ld} -m elf32_sparc"
7363 esac
7365 *64-bit*)
7366 case $host in
7367 x86_64-*kfreebsd*-gnu)
7368 LD="${LD-ld} -m elf_x86_64_fbsd"
7370 x86_64-*linux*)
7371 LD="${LD-ld} -m elf_x86_64"
7373 powerpcle-*linux*)
7374 LD="${LD-ld} -m elf64lppc"
7376 powerpc-*linux*)
7377 LD="${LD-ld} -m elf64ppc"
7379 s390*-*linux*|s390*-*tpf*)
7380 LD="${LD-ld} -m elf64_s390"
7382 sparc*-*linux*)
7383 LD="${LD-ld} -m elf64_sparc"
7385 esac
7387 esac
7389 rm -rf conftest*
7392 *-*-sco3.2v5*)
7393 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7394 SAVE_CFLAGS="$CFLAGS"
7395 CFLAGS="$CFLAGS -belf"
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7397 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7398 if ${lt_cv_cc_needs_belf+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 ac_ext=c
7402 ac_cpp='$CPP $CPPFLAGS'
7403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7411 main ()
7415 return 0;
7417 _ACEOF
7418 if ac_fn_c_try_link "$LINENO"; then :
7419 lt_cv_cc_needs_belf=yes
7420 else
7421 lt_cv_cc_needs_belf=no
7423 rm -f core conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425 ac_ext=c
7426 ac_cpp='$CPP $CPPFLAGS'
7427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7433 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7434 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7435 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7436 CFLAGS="$SAVE_CFLAGS"
7439 sparc*-*solaris*)
7440 # Find out which ABI we are using.
7441 echo 'int i;' > conftest.$ac_ext
7442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7443 (eval $ac_compile) 2>&5
7444 ac_status=$?
7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7447 case `/usr/bin/file conftest.o` in
7448 *64-bit*)
7449 case $lt_cv_prog_gnu_ld in
7450 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7452 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7453 LD="${LD-ld} -64"
7456 esac
7458 esac
7460 rm -rf conftest*
7462 esac
7464 need_locks="$enable_libtool_lock"
7467 case $host_os in
7468 rhapsody* | darwin*)
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 if test -n "$DSYMUTIL"; then
7478 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7491 done
7492 done
7493 IFS=$as_save_IFS
7497 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7498 if test -n "$DSYMUTIL"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7500 $as_echo "$DSYMUTIL" >&6; }
7501 else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7508 if test -z "$ac_cv_prog_DSYMUTIL"; then
7509 ac_ct_DSYMUTIL=$DSYMUTIL
7510 # Extract the first word of "dsymutil", so it can be a program name with args.
7511 set dummy dsymutil; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 if test -n "$ac_ct_DSYMUTIL"; then
7518 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7531 done
7532 done
7533 IFS=$as_save_IFS
7537 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7538 if test -n "$ac_ct_DSYMUTIL"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7540 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7541 else
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7546 if test "x$ac_ct_DSYMUTIL" = x; then
7547 DSYMUTIL=":"
7548 else
7549 case $cross_compiling:$ac_tool_warned in
7550 yes:)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7554 esac
7555 DSYMUTIL=$ac_ct_DSYMUTIL
7557 else
7558 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7561 if test -n "$ac_tool_prefix"; then
7562 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7563 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_NMEDIT+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 if test -n "$NMEDIT"; then
7570 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7583 done
7584 done
7585 IFS=$as_save_IFS
7589 NMEDIT=$ac_cv_prog_NMEDIT
7590 if test -n "$NMEDIT"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7592 $as_echo "$NMEDIT" >&6; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7600 if test -z "$ac_cv_prog_NMEDIT"; then
7601 ac_ct_NMEDIT=$NMEDIT
7602 # Extract the first word of "nmedit", so it can be a program name with args.
7603 set dummy nmedit; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 if test -n "$ac_ct_NMEDIT"; then
7610 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7623 done
7624 done
7625 IFS=$as_save_IFS
7629 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7630 if test -n "$ac_ct_NMEDIT"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7632 $as_echo "$ac_ct_NMEDIT" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7638 if test "x$ac_ct_NMEDIT" = x; then
7639 NMEDIT=":"
7640 else
7641 case $cross_compiling:$ac_tool_warned in
7642 yes:)
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7645 ac_tool_warned=yes ;;
7646 esac
7647 NMEDIT=$ac_ct_NMEDIT
7649 else
7650 NMEDIT="$ac_cv_prog_NMEDIT"
7653 if test -n "$ac_tool_prefix"; then
7654 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7655 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_LIPO+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if test -n "$LIPO"; then
7662 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7675 done
7676 done
7677 IFS=$as_save_IFS
7681 LIPO=$ac_cv_prog_LIPO
7682 if test -n "$LIPO"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7684 $as_echo "$LIPO" >&6; }
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7692 if test -z "$ac_cv_prog_LIPO"; then
7693 ac_ct_LIPO=$LIPO
7694 # Extract the first word of "lipo", so it can be a program name with args.
7695 set dummy lipo; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 if test -n "$ac_ct_LIPO"; then
7702 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711 ac_cv_prog_ac_ct_LIPO="lipo"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7715 done
7716 done
7717 IFS=$as_save_IFS
7721 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7722 if test -n "$ac_ct_LIPO"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7724 $as_echo "$ac_ct_LIPO" >&6; }
7725 else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7730 if test "x$ac_ct_LIPO" = x; then
7731 LIPO=":"
7732 else
7733 case $cross_compiling:$ac_tool_warned in
7734 yes:)
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737 ac_tool_warned=yes ;;
7738 esac
7739 LIPO=$ac_ct_LIPO
7741 else
7742 LIPO="$ac_cv_prog_LIPO"
7745 if test -n "$ac_tool_prefix"; then
7746 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7747 set dummy ${ac_tool_prefix}otool; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if ${ac_cv_prog_OTOOL+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 if test -n "$OTOOL"; then
7754 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7755 else
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7767 done
7768 done
7769 IFS=$as_save_IFS
7773 OTOOL=$ac_cv_prog_OTOOL
7774 if test -n "$OTOOL"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7776 $as_echo "$OTOOL" >&6; }
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7784 if test -z "$ac_cv_prog_OTOOL"; then
7785 ac_ct_OTOOL=$OTOOL
7786 # Extract the first word of "otool", so it can be a program name with args.
7787 set dummy otool; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 if test -n "$ac_ct_OTOOL"; then
7794 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7795 else
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7799 IFS=$as_save_IFS
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 ac_cv_prog_ac_ct_OTOOL="otool"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 break 2
7807 done
7808 done
7809 IFS=$as_save_IFS
7813 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7814 if test -n "$ac_ct_OTOOL"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7816 $as_echo "$ac_ct_OTOOL" >&6; }
7817 else
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7822 if test "x$ac_ct_OTOOL" = x; then
7823 OTOOL=":"
7824 else
7825 case $cross_compiling:$ac_tool_warned in
7826 yes:)
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7829 ac_tool_warned=yes ;;
7830 esac
7831 OTOOL=$ac_ct_OTOOL
7833 else
7834 OTOOL="$ac_cv_prog_OTOOL"
7837 if test -n "$ac_tool_prefix"; then
7838 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7839 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if ${ac_cv_prog_OTOOL64+:} false; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 if test -n "$OTOOL64"; then
7846 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7859 done
7860 done
7861 IFS=$as_save_IFS
7865 OTOOL64=$ac_cv_prog_OTOOL64
7866 if test -n "$OTOOL64"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7868 $as_echo "$OTOOL64" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7876 if test -z "$ac_cv_prog_OTOOL64"; then
7877 ac_ct_OTOOL64=$OTOOL64
7878 # Extract the first word of "otool64", so it can be a program name with args.
7879 set dummy otool64; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 if test -n "$ac_ct_OTOOL64"; then
7886 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_ac_ct_OTOOL64="otool64"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7899 done
7900 done
7901 IFS=$as_save_IFS
7905 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7906 if test -n "$ac_ct_OTOOL64"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7908 $as_echo "$ac_ct_OTOOL64" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7914 if test "x$ac_ct_OTOOL64" = x; then
7915 OTOOL64=":"
7916 else
7917 case $cross_compiling:$ac_tool_warned in
7918 yes:)
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7921 ac_tool_warned=yes ;;
7922 esac
7923 OTOOL64=$ac_ct_OTOOL64
7925 else
7926 OTOOL64="$ac_cv_prog_OTOOL64"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7956 $as_echo_n "checking for -single_module linker flag... " >&6; }
7957 if ${lt_cv_apple_cc_single_mod+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 lt_cv_apple_cc_single_mod=no
7961 if test -z "${LT_MULTI_MODULE}"; then
7962 # By default we will add the -single_module flag. You can override
7963 # by either setting the environment variable LT_MULTI_MODULE
7964 # non-empty at configure time, or by adding -multi_module to the
7965 # link flags.
7966 rm -rf libconftest.dylib*
7967 echo "int foo(void){return 1;}" > conftest.c
7968 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7969 -dynamiclib -Wl,-single_module conftest.c" >&5
7970 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7971 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7972 _lt_result=$?
7973 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7974 lt_cv_apple_cc_single_mod=yes
7975 else
7976 cat conftest.err >&5
7978 rm -rf libconftest.dylib*
7979 rm -f conftest.*
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7983 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7985 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7986 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 lt_cv_ld_exported_symbols_list=no
7990 save_LDFLAGS=$LDFLAGS
7991 echo "_main" > conftest.sym
7992 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7997 main ()
8001 return 0;
8003 _ACEOF
8004 if ac_fn_c_try_link "$LINENO"; then :
8005 lt_cv_ld_exported_symbols_list=yes
8006 else
8007 lt_cv_ld_exported_symbols_list=no
8009 rm -f core conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
8011 LDFLAGS="$save_LDFLAGS"
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8015 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8017 $as_echo_n "checking for -force_load linker flag... " >&6; }
8018 if ${lt_cv_ld_force_load+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 lt_cv_ld_force_load=no
8022 cat > conftest.c << _LT_EOF
8023 int forced_loaded() { return 2;}
8024 _LT_EOF
8025 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8026 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8027 echo "$AR cru libconftest.a conftest.o" >&5
8028 $AR cru libconftest.a conftest.o 2>&5
8029 cat > conftest.c << _LT_EOF
8030 int main() { return 0;}
8031 _LT_EOF
8032 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8033 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8034 _lt_result=$?
8035 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8036 lt_cv_ld_force_load=yes
8037 else
8038 cat conftest.err >&5
8040 rm -f conftest.err libconftest.a conftest conftest.c
8041 rm -rf conftest.dSYM
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8045 $as_echo "$lt_cv_ld_force_load" >&6; }
8046 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8047 # build without first building modern cctools / linker.
8048 case $host_cpu-$host_os in
8049 *-rhapsody* | *-darwin1.[012])
8050 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8051 *-darwin1.*)
8052 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8053 *-darwin*)
8054 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8055 # deployment target is forced to an earlier version.
8056 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8057 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8059 10.[012][,.]*)
8060 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8064 esac
8066 esac
8067 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8068 _lt_dar_single_mod='$single_module'
8070 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8071 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8072 else
8073 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8075 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8076 _lt_dsymutil='~$DSYMUTIL $lib || :'
8077 else
8078 _lt_dsymutil=
8081 esac
8083 for ac_header in dlfcn.h
8084 do :
8085 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8087 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8088 cat >>confdefs.h <<_ACEOF
8089 #define HAVE_DLFCN_H 1
8090 _ACEOF
8094 done
8100 # Set options
8104 enable_dlopen=no
8107 enable_win32_dll=no
8110 # Check whether --enable-shared was given.
8111 if test "${enable_shared+set}" = set; then :
8112 enableval=$enable_shared; p=${PACKAGE-default}
8113 case $enableval in
8114 yes) enable_shared=yes ;;
8115 no) enable_shared=no ;;
8117 enable_shared=no
8118 # Look at the argument we got. We use all the common list separators.
8119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8120 for pkg in $enableval; do
8121 IFS="$lt_save_ifs"
8122 if test "X$pkg" = "X$p"; then
8123 enable_shared=yes
8125 done
8126 IFS="$lt_save_ifs"
8128 esac
8129 else
8130 enable_shared=yes
8141 # Check whether --enable-static was given.
8142 if test "${enable_static+set}" = set; then :
8143 enableval=$enable_static; p=${PACKAGE-default}
8144 case $enableval in
8145 yes) enable_static=yes ;;
8146 no) enable_static=no ;;
8148 enable_static=no
8149 # Look at the argument we got. We use all the common list separators.
8150 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8151 for pkg in $enableval; do
8152 IFS="$lt_save_ifs"
8153 if test "X$pkg" = "X$p"; then
8154 enable_static=yes
8156 done
8157 IFS="$lt_save_ifs"
8159 esac
8160 else
8161 enable_static=yes
8173 # Check whether --with-pic was given.
8174 if test "${with_pic+set}" = set; then :
8175 withval=$with_pic; pic_mode="$withval"
8176 else
8177 pic_mode=default
8181 test -z "$pic_mode" && pic_mode=default
8189 # Check whether --enable-fast-install was given.
8190 if test "${enable_fast_install+set}" = set; then :
8191 enableval=$enable_fast_install; p=${PACKAGE-default}
8192 case $enableval in
8193 yes) enable_fast_install=yes ;;
8194 no) enable_fast_install=no ;;
8196 enable_fast_install=no
8197 # Look at the argument we got. We use all the common list separators.
8198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8199 for pkg in $enableval; do
8200 IFS="$lt_save_ifs"
8201 if test "X$pkg" = "X$p"; then
8202 enable_fast_install=yes
8204 done
8205 IFS="$lt_save_ifs"
8207 esac
8208 else
8209 enable_fast_install=yes
8222 # This can be used to rebuild libtool when needed
8223 LIBTOOL_DEPS="$ltmain"
8225 # Always use our own libtool.
8226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8253 test -z "$LN_S" && LN_S="ln -s"
8268 if test -n "${ZSH_VERSION+set}" ; then
8269 setopt NO_GLOB_SUBST
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8273 $as_echo_n "checking for objdir... " >&6; }
8274 if ${lt_cv_objdir+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 rm -f .libs 2>/dev/null
8278 mkdir .libs 2>/dev/null
8279 if test -d .libs; then
8280 lt_cv_objdir=.libs
8281 else
8282 # MS-DOS does not allow filenames that begin with a dot.
8283 lt_cv_objdir=_libs
8285 rmdir .libs 2>/dev/null
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8288 $as_echo "$lt_cv_objdir" >&6; }
8289 objdir=$lt_cv_objdir
8295 cat >>confdefs.h <<_ACEOF
8296 #define LT_OBJDIR "$lt_cv_objdir/"
8297 _ACEOF
8302 case $host_os in
8303 aix3*)
8304 # AIX sometimes has problems with the GCC collect2 program. For some
8305 # reason, if we set the COLLECT_NAMES environment variable, the problems
8306 # vanish in a puff of smoke.
8307 if test "X${COLLECT_NAMES+set}" != Xset; then
8308 COLLECT_NAMES=
8309 export COLLECT_NAMES
8312 esac
8314 # Global variables:
8315 ofile=libtool
8316 can_build_shared=yes
8318 # All known linkers require a `.a' archive for static linking (except MSVC,
8319 # which needs '.lib').
8320 libext=a
8322 with_gnu_ld="$lt_cv_prog_gnu_ld"
8324 old_CC="$CC"
8325 old_CFLAGS="$CFLAGS"
8327 # Set sane defaults for various variables
8328 test -z "$CC" && CC=cc
8329 test -z "$LTCC" && LTCC=$CC
8330 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8331 test -z "$LD" && LD=ld
8332 test -z "$ac_objext" && ac_objext=o
8334 for cc_temp in $compiler""; do
8335 case $cc_temp in
8336 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8337 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8338 \-*) ;;
8339 *) break;;
8340 esac
8341 done
8342 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8345 # Only perform the check for file, if the check method requires it
8346 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8347 case $deplibs_check_method in
8348 file_magic*)
8349 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8351 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8352 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 case $MAGIC_CMD in
8356 [\\/*] | ?:[\\/]*)
8357 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8360 lt_save_MAGIC_CMD="$MAGIC_CMD"
8361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8362 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8363 for ac_dir in $ac_dummy; do
8364 IFS="$lt_save_ifs"
8365 test -z "$ac_dir" && ac_dir=.
8366 if test -f $ac_dir/${ac_tool_prefix}file; then
8367 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8368 if test -n "$file_magic_test_file"; then
8369 case $deplibs_check_method in
8370 "file_magic "*)
8371 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8374 $EGREP "$file_magic_regex" > /dev/null; then
8376 else
8377 cat <<_LT_EOF 1>&2
8379 *** Warning: the command libtool uses to detect shared libraries,
8380 *** $file_magic_cmd, produces output that libtool cannot recognize.
8381 *** The result is that libtool may fail to recognize shared libraries
8382 *** as such. This will affect the creation of libtool libraries that
8383 *** depend on shared libraries, but programs linked with such libtool
8384 *** libraries will work regardless of this problem. Nevertheless, you
8385 *** may want to report the problem to your system manager and/or to
8386 *** bug-libtool@gnu.org
8388 _LT_EOF
8389 fi ;;
8390 esac
8392 break
8394 done
8395 IFS="$lt_save_ifs"
8396 MAGIC_CMD="$lt_save_MAGIC_CMD"
8398 esac
8401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8402 if test -n "$MAGIC_CMD"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8404 $as_echo "$MAGIC_CMD" >&6; }
8405 else
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8414 if test -z "$lt_cv_path_MAGIC_CMD"; then
8415 if test -n "$ac_tool_prefix"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8417 $as_echo_n "checking for file... " >&6; }
8418 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 case $MAGIC_CMD in
8422 [\\/*] | ?:[\\/]*)
8423 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8426 lt_save_MAGIC_CMD="$MAGIC_CMD"
8427 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8428 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8429 for ac_dir in $ac_dummy; do
8430 IFS="$lt_save_ifs"
8431 test -z "$ac_dir" && ac_dir=.
8432 if test -f $ac_dir/file; then
8433 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8434 if test -n "$file_magic_test_file"; then
8435 case $deplibs_check_method in
8436 "file_magic "*)
8437 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8439 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8440 $EGREP "$file_magic_regex" > /dev/null; then
8442 else
8443 cat <<_LT_EOF 1>&2
8445 *** Warning: the command libtool uses to detect shared libraries,
8446 *** $file_magic_cmd, produces output that libtool cannot recognize.
8447 *** The result is that libtool may fail to recognize shared libraries
8448 *** as such. This will affect the creation of libtool libraries that
8449 *** depend on shared libraries, but programs linked with such libtool
8450 *** libraries will work regardless of this problem. Nevertheless, you
8451 *** may want to report the problem to your system manager and/or to
8452 *** bug-libtool@gnu.org
8454 _LT_EOF
8455 fi ;;
8456 esac
8458 break
8460 done
8461 IFS="$lt_save_ifs"
8462 MAGIC_CMD="$lt_save_MAGIC_CMD"
8464 esac
8467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8468 if test -n "$MAGIC_CMD"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8470 $as_echo "$MAGIC_CMD" >&6; }
8471 else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8477 else
8478 MAGIC_CMD=:
8484 esac
8486 # Use C for the default configuration in the libtool script
8488 lt_save_CC="$CC"
8489 ac_ext=c
8490 ac_cpp='$CPP $CPPFLAGS'
8491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8496 # Source file extension for C test sources.
8497 ac_ext=c
8499 # Object file extension for compiled C test sources.
8500 objext=o
8501 objext=$objext
8503 # Code to be used in simple compile tests
8504 lt_simple_compile_test_code="int some_variable = 0;"
8506 # Code to be used in simple link tests
8507 lt_simple_link_test_code='int main(){return(0);}'
8515 # If no C compiler was specified, use CC.
8516 LTCC=${LTCC-"$CC"}
8518 # If no C compiler flags were specified, use CFLAGS.
8519 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8521 # Allow CC to be a program name with arguments.
8522 compiler=$CC
8524 # Save the default compiler, since it gets overwritten when the other
8525 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8526 compiler_DEFAULT=$CC
8528 # save warnings/boilerplate of simple test code
8529 ac_outfile=conftest.$ac_objext
8530 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8531 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8532 _lt_compiler_boilerplate=`cat conftest.err`
8533 $RM conftest*
8535 ac_outfile=conftest.$ac_objext
8536 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8537 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8538 _lt_linker_boilerplate=`cat conftest.err`
8539 $RM -r conftest*
8542 ## CAVEAT EMPTOR:
8543 ## There is no encapsulation within the following macros, do not change
8544 ## the running order or otherwise move them around unless you know exactly
8545 ## what you are doing...
8546 if test -n "$compiler"; then
8548 lt_prog_compiler_no_builtin_flag=
8550 if test "$GCC" = yes; then
8551 case $cc_basename in
8552 nvcc*)
8553 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8555 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8556 esac
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8559 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8560 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 lt_cv_prog_compiler_rtti_exceptions=no
8564 ac_outfile=conftest.$ac_objext
8565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8566 lt_compiler_flag="-fno-rtti -fno-exceptions"
8567 # Insert the option either (1) after the last *FLAGS variable, or
8568 # (2) before a word containing "conftest.", or (3) at the end.
8569 # Note that $ac_compile itself does not contain backslashes and begins
8570 # with a dollar sign (not a hyphen), so the echo should work correctly.
8571 # The option is referenced via a variable to avoid confusing sed.
8572 lt_compile=`echo "$ac_compile" | $SED \
8573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8575 -e 's:$: $lt_compiler_flag:'`
8576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8577 (eval "$lt_compile" 2>conftest.err)
8578 ac_status=$?
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 if (exit $ac_status) && test -s "$ac_outfile"; then
8582 # The compiler can only warn and ignore the option if not recognized
8583 # So say no if there are warnings other than the usual output.
8584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8586 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8587 lt_cv_prog_compiler_rtti_exceptions=yes
8590 $RM conftest*
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8594 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8596 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8597 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8598 else
8609 lt_prog_compiler_wl=
8610 lt_prog_compiler_pic=
8611 lt_prog_compiler_static=
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8614 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8616 if test "$GCC" = yes; then
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_static='-static'
8620 case $host_os in
8621 aix*)
8622 # All AIX code is PIC.
8623 if test "$host_cpu" = ia64; then
8624 # AIX 5 now supports IA64 processor
8625 lt_prog_compiler_static='-Bstatic'
8627 lt_prog_compiler_pic='-fPIC'
8630 amigaos*)
8631 case $host_cpu in
8632 powerpc)
8633 # see comment about AmigaOS4 .so support
8634 lt_prog_compiler_pic='-fPIC'
8636 m68k)
8637 # FIXME: we need at least 68020 code to build shared libraries, but
8638 # adding the `-m68020' flag to GCC prevents building anything better,
8639 # like `-m68040'.
8640 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8642 esac
8645 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8646 # PIC is the default for these OSes.
8649 mingw* | cygwin* | pw32* | os2* | cegcc*)
8650 # This hack is so that the source file can tell whether it is being
8651 # built for inclusion in a dll (and should export symbols for example).
8652 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8653 # (--disable-auto-import) libraries
8654 lt_prog_compiler_pic='-DDLL_EXPORT'
8657 darwin* | rhapsody*)
8658 # PIC is the default on this platform
8659 # Common symbols not allowed in MH_DYLIB files
8660 lt_prog_compiler_pic='-fno-common'
8663 haiku*)
8664 # PIC is the default for Haiku.
8665 # The "-static" flag exists, but is broken.
8666 lt_prog_compiler_static=
8669 hpux*)
8670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8672 # sets the default TLS model and affects inlining.
8673 case $host_cpu in
8674 hppa*64*)
8675 # +Z the default
8678 lt_prog_compiler_pic='-fPIC'
8680 esac
8683 interix[3-9]*)
8684 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8685 # Instead, we relocate shared libraries at runtime.
8688 msdosdjgpp*)
8689 # Just because we use GCC doesn't mean we suddenly get shared libraries
8690 # on systems that don't support them.
8691 lt_prog_compiler_can_build_shared=no
8692 enable_shared=no
8695 *nto* | *qnx*)
8696 # QNX uses GNU C++, but need to define -shared option too, otherwise
8697 # it will coredump.
8698 lt_prog_compiler_pic='-fPIC -shared'
8701 sysv4*MP*)
8702 if test -d /usr/nec; then
8703 lt_prog_compiler_pic=-Kconform_pic
8708 lt_prog_compiler_pic='-fPIC'
8710 esac
8712 case $cc_basename in
8713 nvcc*) # Cuda Compiler Driver 2.2
8714 lt_prog_compiler_wl='-Xlinker '
8715 lt_prog_compiler_pic='-Xcompiler -fPIC'
8717 esac
8718 else
8719 # PORTME Check for flag to pass linker flags through the system compiler.
8720 case $host_os in
8721 aix*)
8722 lt_prog_compiler_wl='-Wl,'
8723 if test "$host_cpu" = ia64; then
8724 # AIX 5 now supports IA64 processor
8725 lt_prog_compiler_static='-Bstatic'
8726 else
8727 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8731 mingw* | cygwin* | pw32* | os2* | cegcc*)
8732 # This hack is so that the source file can tell whether it is being
8733 # built for inclusion in a dll (and should export symbols for example).
8734 lt_prog_compiler_pic='-DDLL_EXPORT'
8737 hpux9* | hpux10* | hpux11*)
8738 lt_prog_compiler_wl='-Wl,'
8739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8740 # not for PA HP-UX.
8741 case $host_cpu in
8742 hppa*64*|ia64*)
8743 # +Z the default
8746 lt_prog_compiler_pic='+Z'
8748 esac
8749 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8750 lt_prog_compiler_static='${wl}-a ${wl}archive'
8753 irix5* | irix6* | nonstopux*)
8754 lt_prog_compiler_wl='-Wl,'
8755 # PIC (with -KPIC) is the default.
8756 lt_prog_compiler_static='-non_shared'
8759 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8760 case $cc_basename in
8761 # old Intel for x86_64 which still supported -KPIC.
8762 ecc*)
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_pic='-KPIC'
8765 lt_prog_compiler_static='-static'
8767 # icc used to be incompatible with GCC.
8768 # ICC 10 doesn't accept -KPIC any more.
8769 icc* | ifort*)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-fPIC'
8772 lt_prog_compiler_static='-static'
8774 # Lahey Fortran 8.1.
8775 lf95*)
8776 lt_prog_compiler_wl='-Wl,'
8777 lt_prog_compiler_pic='--shared'
8778 lt_prog_compiler_static='--static'
8780 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8781 # Portland Group compilers (*not* the Pentium gcc compiler,
8782 # which looks to be a dead project)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-fpic'
8785 lt_prog_compiler_static='-Bstatic'
8787 ccc*)
8788 lt_prog_compiler_wl='-Wl,'
8789 # All Alpha code is PIC.
8790 lt_prog_compiler_static='-non_shared'
8792 xl* | bgxl* | bgf* | mpixl*)
8793 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='-qpic'
8796 lt_prog_compiler_static='-qstaticlink'
8799 case `$CC -V 2>&1 | sed 5q` in
8800 *Sun\ F* | *Sun*Fortran*)
8801 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8802 lt_prog_compiler_pic='-KPIC'
8803 lt_prog_compiler_static='-Bstatic'
8804 lt_prog_compiler_wl=''
8806 *Sun\ C*)
8807 # Sun C 5.9
8808 lt_prog_compiler_pic='-KPIC'
8809 lt_prog_compiler_static='-Bstatic'
8810 lt_prog_compiler_wl='-Wl,'
8812 esac
8814 esac
8817 newsos6)
8818 lt_prog_compiler_pic='-KPIC'
8819 lt_prog_compiler_static='-Bstatic'
8822 *nto* | *qnx*)
8823 # QNX uses GNU C++, but need to define -shared option too, otherwise
8824 # it will coredump.
8825 lt_prog_compiler_pic='-fPIC -shared'
8828 osf3* | osf4* | osf5*)
8829 lt_prog_compiler_wl='-Wl,'
8830 # All OSF/1 code is PIC.
8831 lt_prog_compiler_static='-non_shared'
8834 rdos*)
8835 lt_prog_compiler_static='-non_shared'
8838 solaris*)
8839 lt_prog_compiler_pic='-KPIC'
8840 lt_prog_compiler_static='-Bstatic'
8841 case $cc_basename in
8842 f77* | f90* | f95*)
8843 lt_prog_compiler_wl='-Qoption ld ';;
8845 lt_prog_compiler_wl='-Wl,';;
8846 esac
8849 sunos4*)
8850 lt_prog_compiler_wl='-Qoption ld '
8851 lt_prog_compiler_pic='-PIC'
8852 lt_prog_compiler_static='-Bstatic'
8855 sysv4 | sysv4.2uw2* | sysv4.3*)
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8861 sysv4*MP*)
8862 if test -d /usr/nec ;then
8863 lt_prog_compiler_pic='-Kconform_pic'
8864 lt_prog_compiler_static='-Bstatic'
8868 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8869 lt_prog_compiler_wl='-Wl,'
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8874 unicos*)
8875 lt_prog_compiler_wl='-Wl,'
8876 lt_prog_compiler_can_build_shared=no
8879 uts4*)
8880 lt_prog_compiler_pic='-pic'
8881 lt_prog_compiler_static='-Bstatic'
8885 lt_prog_compiler_can_build_shared=no
8887 esac
8890 case $host_os in
8891 # For platforms which do not support PIC, -DPIC is meaningless:
8892 *djgpp*)
8893 lt_prog_compiler_pic=
8896 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8898 esac
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8900 $as_echo "$lt_prog_compiler_pic" >&6; }
8908 # Check to make sure the PIC flag actually works.
8910 if test -n "$lt_prog_compiler_pic"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8912 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8913 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 lt_cv_prog_compiler_pic_works=no
8917 ac_outfile=conftest.$ac_objext
8918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8920 # Insert the option either (1) after the last *FLAGS variable, or
8921 # (2) before a word containing "conftest.", or (3) at the end.
8922 # Note that $ac_compile itself does not contain backslashes and begins
8923 # with a dollar sign (not a hyphen), so the echo should work correctly.
8924 # The option is referenced via a variable to avoid confusing sed.
8925 lt_compile=`echo "$ac_compile" | $SED \
8926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8928 -e 's:$: $lt_compiler_flag:'`
8929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8930 (eval "$lt_compile" 2>conftest.err)
8931 ac_status=$?
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 if (exit $ac_status) && test -s "$ac_outfile"; then
8935 # The compiler can only warn and ignore the option if not recognized
8936 # So say no if there are warnings other than the usual output.
8937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8940 lt_cv_prog_compiler_pic_works=yes
8943 $RM conftest*
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8947 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8949 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8950 case $lt_prog_compiler_pic in
8951 "" | " "*) ;;
8952 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8953 esac
8954 else
8955 lt_prog_compiler_pic=
8956 lt_prog_compiler_can_build_shared=no
8967 # Check to make sure the static flag actually works.
8969 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8971 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8972 if ${lt_cv_prog_compiler_static_works+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 lt_cv_prog_compiler_static_works=no
8976 save_LDFLAGS="$LDFLAGS"
8977 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8978 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8979 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8980 # The linker can only warn and ignore the option if not recognized
8981 # So say no if there are warnings
8982 if test -s conftest.err; then
8983 # Append any errors to the config.log.
8984 cat conftest.err 1>&5
8985 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8987 if diff conftest.exp conftest.er2 >/dev/null; then
8988 lt_cv_prog_compiler_static_works=yes
8990 else
8991 lt_cv_prog_compiler_static_works=yes
8994 $RM -r conftest*
8995 LDFLAGS="$save_LDFLAGS"
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8999 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9001 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9003 else
9004 lt_prog_compiler_static=
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9014 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9015 if ${lt_cv_prog_compiler_c_o+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 lt_cv_prog_compiler_c_o=no
9019 $RM -r conftest 2>/dev/null
9020 mkdir conftest
9021 cd conftest
9022 mkdir out
9023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9025 lt_compiler_flag="-o out/conftest2.$ac_objext"
9026 # Insert the option either (1) after the last *FLAGS variable, or
9027 # (2) before a word containing "conftest.", or (3) at the end.
9028 # Note that $ac_compile itself does not contain backslashes and begins
9029 # with a dollar sign (not a hyphen), so the echo should work correctly.
9030 lt_compile=`echo "$ac_compile" | $SED \
9031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9033 -e 's:$: $lt_compiler_flag:'`
9034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9035 (eval "$lt_compile" 2>out/conftest.err)
9036 ac_status=$?
9037 cat out/conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9040 then
9041 # The compiler can only warn and ignore the option if not recognized
9042 # So say no if there are warnings
9043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9046 lt_cv_prog_compiler_c_o=yes
9049 chmod u+w . 2>&5
9050 $RM conftest*
9051 # SGI C++ compiler will create directory out/ii_files/ for
9052 # template instantiation
9053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9054 $RM out/* && rmdir out
9055 cd ..
9056 $RM -r conftest
9057 $RM conftest*
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9061 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9069 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9070 if ${lt_cv_prog_compiler_c_o+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 lt_cv_prog_compiler_c_o=no
9074 $RM -r conftest 2>/dev/null
9075 mkdir conftest
9076 cd conftest
9077 mkdir out
9078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9080 lt_compiler_flag="-o out/conftest2.$ac_objext"
9081 # Insert the option either (1) after the last *FLAGS variable, or
9082 # (2) before a word containing "conftest.", or (3) at the end.
9083 # Note that $ac_compile itself does not contain backslashes and begins
9084 # with a dollar sign (not a hyphen), so the echo should work correctly.
9085 lt_compile=`echo "$ac_compile" | $SED \
9086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9088 -e 's:$: $lt_compiler_flag:'`
9089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9090 (eval "$lt_compile" 2>out/conftest.err)
9091 ac_status=$?
9092 cat out/conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9095 then
9096 # The compiler can only warn and ignore the option if not recognized
9097 # So say no if there are warnings
9098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9101 lt_cv_prog_compiler_c_o=yes
9104 chmod u+w . 2>&5
9105 $RM conftest*
9106 # SGI C++ compiler will create directory out/ii_files/ for
9107 # template instantiation
9108 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9109 $RM out/* && rmdir out
9110 cd ..
9111 $RM -r conftest
9112 $RM conftest*
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9116 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9121 hard_links="nottested"
9122 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9123 # do not overwrite the value of need_locks provided by the user
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9125 $as_echo_n "checking if we can lock with hard links... " >&6; }
9126 hard_links=yes
9127 $RM conftest*
9128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9129 touch conftest.a
9130 ln conftest.a conftest.b 2>&5 || hard_links=no
9131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9133 $as_echo "$hard_links" >&6; }
9134 if test "$hard_links" = no; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9136 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9137 need_locks=warn
9139 else
9140 need_locks=no
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9149 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9151 runpath_var=
9152 allow_undefined_flag=
9153 always_export_symbols=no
9154 archive_cmds=
9155 archive_expsym_cmds=
9156 compiler_needs_object=no
9157 enable_shared_with_static_runtimes=no
9158 export_dynamic_flag_spec=
9159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9160 hardcode_automatic=no
9161 hardcode_direct=no
9162 hardcode_direct_absolute=no
9163 hardcode_libdir_flag_spec=
9164 hardcode_libdir_flag_spec_ld=
9165 hardcode_libdir_separator=
9166 hardcode_minus_L=no
9167 hardcode_shlibpath_var=unsupported
9168 inherit_rpath=no
9169 link_all_deplibs=unknown
9170 module_cmds=
9171 module_expsym_cmds=
9172 old_archive_from_new_cmds=
9173 old_archive_from_expsyms_cmds=
9174 thread_safe_flag_spec=
9175 whole_archive_flag_spec=
9176 # include_expsyms should be a list of space-separated symbols to be *always*
9177 # included in the symbol list
9178 include_expsyms=
9179 # exclude_expsyms can be an extended regexp of symbols to exclude
9180 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9181 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9182 # as well as any symbol that contains `d'.
9183 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9185 # platforms (ab)use it in PIC code, but their linkers get confused if
9186 # the symbol is explicitly referenced. Since portable code cannot
9187 # rely on this symbol name, it's probably fine to never include it in
9188 # preloaded symbol tables.
9189 # Exclude shared library initialization/finalization symbols.
9190 extract_expsyms_cmds=
9192 case $host_os in
9193 cygwin* | mingw* | pw32* | cegcc*)
9194 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9195 # When not using gcc, we currently assume that we are using
9196 # Microsoft Visual C++.
9197 if test "$GCC" != yes; then
9198 with_gnu_ld=no
9201 interix*)
9202 # we just hope/assume this is gcc and not c89 (= MSVC++)
9203 with_gnu_ld=yes
9205 openbsd*)
9206 with_gnu_ld=no
9208 esac
9210 ld_shlibs=yes
9212 # On some targets, GNU ld is compatible enough with the native linker
9213 # that we're better off using the native interface for both.
9214 lt_use_gnu_ld_interface=no
9215 if test "$with_gnu_ld" = yes; then
9216 case $host_os in
9217 aix*)
9218 # The AIX port of GNU ld has always aspired to compatibility
9219 # with the native linker. However, as the warning in the GNU ld
9220 # block says, versions before 2.19.5* couldn't really create working
9221 # shared libraries, regardless of the interface used.
9222 case `$LD -v 2>&1` in
9223 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9224 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9225 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9227 lt_use_gnu_ld_interface=yes
9229 esac
9232 lt_use_gnu_ld_interface=yes
9234 esac
9237 if test "$lt_use_gnu_ld_interface" = yes; then
9238 # If archive_cmds runs LD, not CC, wlarc should be empty
9239 wlarc='${wl}'
9241 # Set some defaults for GNU ld with shared library support. These
9242 # are reset later if shared libraries are not supported. Putting them
9243 # here allows them to be overridden if necessary.
9244 runpath_var=LD_RUN_PATH
9245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246 export_dynamic_flag_spec='${wl}--export-dynamic'
9247 # ancient GNU ld didn't support --whole-archive et. al.
9248 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9249 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9250 else
9251 whole_archive_flag_spec=
9253 supports_anon_versioning=no
9254 case `$LD -v 2>&1` in
9255 *GNU\ gold*) supports_anon_versioning=yes ;;
9256 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9259 *\ 2.11.*) ;; # other 2.11 versions
9260 *) supports_anon_versioning=yes ;;
9261 esac
9263 # See if GNU ld supports shared libraries.
9264 case $host_os in
9265 aix[3-9]*)
9266 # On AIX/PPC, the GNU linker is very broken
9267 if test "$host_cpu" != ia64; then
9268 ld_shlibs=no
9269 cat <<_LT_EOF 1>&2
9271 *** Warning: the GNU linker, at least up to release 2.19, is reported
9272 *** to be unable to reliably create shared libraries on AIX.
9273 *** Therefore, libtool is disabling shared libraries support. If you
9274 *** really care for shared libraries, you may want to install binutils
9275 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9276 *** You will then need to restart the configuration process.
9278 _LT_EOF
9282 amigaos*)
9283 case $host_cpu in
9284 powerpc)
9285 # see comment about AmigaOS4 .so support
9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 archive_expsym_cmds=''
9289 m68k)
9290 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)'
9291 hardcode_libdir_flag_spec='-L$libdir'
9292 hardcode_minus_L=yes
9294 esac
9297 beos*)
9298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9299 allow_undefined_flag=unsupported
9300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9301 # support --undefined. This deserves some investigation. FIXME
9302 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303 else
9304 ld_shlibs=no
9308 cygwin* | mingw* | pw32* | cegcc*)
9309 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9310 # as there is no search path for DLLs.
9311 hardcode_libdir_flag_spec='-L$libdir'
9312 export_dynamic_flag_spec='${wl}--export-all-symbols'
9313 allow_undefined_flag=unsupported
9314 always_export_symbols=no
9315 enable_shared_with_static_runtimes=yes
9316 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9318 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9320 # If the export-symbols file already is a .def file (1st line
9321 # is EXPORTS), use it as is; otherwise, prepend...
9322 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9323 cp $export_symbols $output_objdir/$soname.def;
9324 else
9325 echo EXPORTS > $output_objdir/$soname.def;
9326 cat $export_symbols >> $output_objdir/$soname.def;
9328 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9329 else
9330 ld_shlibs=no
9334 haiku*)
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 link_all_deplibs=yes
9339 interix[3-9]*)
9340 hardcode_direct=no
9341 hardcode_shlibpath_var=no
9342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9343 export_dynamic_flag_spec='${wl}-E'
9344 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9345 # Instead, shared libraries are loaded at an image base (0x10000000 by
9346 # default) and relocated if they conflict, which is a slow very memory
9347 # consuming and fragmenting process. To avoid this, we pick a random,
9348 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9349 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9350 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9351 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'
9354 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9355 tmp_diet=no
9356 if test "$host_os" = linux-dietlibc; then
9357 case $cc_basename in
9358 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9359 esac
9361 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9362 && test "$tmp_diet" = no
9363 then
9364 tmp_addflag=' $pic_flag'
9365 tmp_sharedflag='-shared'
9366 case $cc_basename,$host_cpu in
9367 pgcc*) # Portland Group C compiler
9368 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'
9369 tmp_addflag=' $pic_flag'
9371 pgf77* | pgf90* | pgf95* | pgfortran*)
9372 # Portland Group f77 and f90 compilers
9373 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'
9374 tmp_addflag=' $pic_flag -Mnomain' ;;
9375 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9376 tmp_addflag=' -i_dynamic' ;;
9377 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9378 tmp_addflag=' -i_dynamic -nofor_main' ;;
9379 ifc* | ifort*) # Intel Fortran compiler
9380 tmp_addflag=' -nofor_main' ;;
9381 lf95*) # Lahey Fortran 8.1
9382 whole_archive_flag_spec=
9383 tmp_sharedflag='--shared' ;;
9384 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9385 tmp_sharedflag='-qmkshrobj'
9386 tmp_addflag= ;;
9387 nvcc*) # Cuda Compiler Driver 2.2
9388 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'
9389 compiler_needs_object=yes
9391 esac
9392 case `$CC -V 2>&1 | sed 5q` in
9393 *Sun\ C*) # Sun C 5.9
9394 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'
9395 compiler_needs_object=yes
9396 tmp_sharedflag='-G' ;;
9397 *Sun\ F*) # Sun Fortran 8.3
9398 tmp_sharedflag='-G' ;;
9399 esac
9400 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402 if test "x$supports_anon_versioning" = xyes; then
9403 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9405 echo "local: *; };" >> $output_objdir/$libname.ver~
9406 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9409 case $cc_basename in
9410 xlf* | bgf* | bgxlf* | mpixlf*)
9411 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9412 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9413 hardcode_libdir_flag_spec=
9414 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9415 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9416 if test "x$supports_anon_versioning" = xyes; then
9417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9419 echo "local: *; };" >> $output_objdir/$libname.ver~
9420 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9423 esac
9424 else
9425 ld_shlibs=no
9429 netbsd*)
9430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9431 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9432 wlarc=
9433 else
9434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9439 solaris*)
9440 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9441 ld_shlibs=no
9442 cat <<_LT_EOF 1>&2
9444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9445 *** create shared libraries on Solaris systems. Therefore, libtool
9446 *** is disabling shared libraries support. We urge you to upgrade GNU
9447 *** binutils to release 2.9.1 or newer. Another option is to modify
9448 *** your PATH or compiler configuration so that the native linker is
9449 *** used, and then restart.
9451 _LT_EOF
9452 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9454 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9455 else
9456 ld_shlibs=no
9460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9461 case `$LD -v 2>&1` in
9462 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9463 ld_shlibs=no
9464 cat <<_LT_EOF 1>&2
9466 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9467 *** reliably create shared libraries on SCO systems. Therefore, libtool
9468 *** is disabling shared libraries support. We urge you to upgrade GNU
9469 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9470 *** your PATH or compiler configuration so that the native linker is
9471 *** used, and then restart.
9473 _LT_EOF
9476 # For security reasons, it is highly recommended that you always
9477 # use absolute paths for naming shared libraries, and exclude the
9478 # DT_RUNPATH tag from executables and libraries. But doing so
9479 # requires that you compile everything twice, which is a pain.
9480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9484 else
9485 ld_shlibs=no
9488 esac
9491 sunos4*)
9492 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9493 wlarc=
9494 hardcode_direct=yes
9495 hardcode_shlibpath_var=no
9499 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9502 else
9503 ld_shlibs=no
9506 esac
9508 if test "$ld_shlibs" = no; then
9509 runpath_var=
9510 hardcode_libdir_flag_spec=
9511 export_dynamic_flag_spec=
9512 whole_archive_flag_spec=
9514 else
9515 # PORTME fill in a description of your system's linker (not GNU ld)
9516 case $host_os in
9517 aix3*)
9518 allow_undefined_flag=unsupported
9519 always_export_symbols=yes
9520 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'
9521 # Note: this linker hardcodes the directories in LIBPATH if there
9522 # are no directories specified by -L.
9523 hardcode_minus_L=yes
9524 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9525 # Neither direct hardcoding nor static linking is supported with a
9526 # broken collect2.
9527 hardcode_direct=unsupported
9531 aix[4-9]*)
9532 if test "$host_cpu" = ia64; then
9533 # On IA64, the linker does run time linking by default, so we don't
9534 # have to do anything special.
9535 aix_use_runtimelinking=no
9536 exp_sym_flag='-Bexport'
9537 no_entry_flag=""
9538 else
9539 # If we're using GNU nm, then we don't want the "-C" option.
9540 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9541 # Also, AIX nm treats weak defined symbols like other global
9542 # defined symbols, whereas GNU nm marks them as "W".
9543 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9544 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'
9545 else
9546 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'
9548 aix_use_runtimelinking=no
9550 # Test if we are trying to use run time linking or normal
9551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9552 # need to do runtime linking.
9553 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9554 for ld_flag in $LDFLAGS; do
9555 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9556 aix_use_runtimelinking=yes
9557 break
9559 done
9561 esac
9563 exp_sym_flag='-bexport'
9564 no_entry_flag='-bnoentry'
9567 # When large executables or shared objects are built, AIX ld can
9568 # have problems creating the table of contents. If linking a library
9569 # or program results in "error TOC overflow" add -mminimal-toc to
9570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9573 archive_cmds=''
9574 hardcode_direct=yes
9575 hardcode_direct_absolute=yes
9576 hardcode_libdir_separator=':'
9577 link_all_deplibs=yes
9578 file_list_spec='${wl}-f,'
9580 if test "$GCC" = yes; then
9581 case $host_os in aix4.[012]|aix4.[012].*)
9582 # We only want to do this on AIX 4.2 and lower, the check
9583 # below for broken collect2 doesn't work under 4.3+
9584 collect2name=`${CC} -print-prog-name=collect2`
9585 if test -f "$collect2name" &&
9586 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9587 then
9588 # We have reworked collect2
9590 else
9591 # We have old collect2
9592 hardcode_direct=unsupported
9593 # It fails to find uninstalled libraries when the uninstalled
9594 # path is not listed in the libpath. Setting hardcode_minus_L
9595 # to unsupported forces relinking
9596 hardcode_minus_L=yes
9597 hardcode_libdir_flag_spec='-L$libdir'
9598 hardcode_libdir_separator=
9601 esac
9602 shared_flag='-shared'
9603 if test "$aix_use_runtimelinking" = yes; then
9604 shared_flag="$shared_flag "'${wl}-G'
9606 else
9607 # not using gcc
9608 if test "$host_cpu" = ia64; then
9609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9610 # chokes on -Wl,-G. The following line is correct:
9611 shared_flag='-G'
9612 else
9613 if test "$aix_use_runtimelinking" = yes; then
9614 shared_flag='${wl}-G'
9615 else
9616 shared_flag='${wl}-bM:SRE'
9621 export_dynamic_flag_spec='${wl}-bexpall'
9622 # It seems that -bexpall does not export symbols beginning with
9623 # underscore (_), so it is better to generate a list of symbols to export.
9624 always_export_symbols=yes
9625 if test "$aix_use_runtimelinking" = yes; then
9626 # Warning - without using the other runtime loading flags (-brtl),
9627 # -berok will link without error, but may produce a broken library.
9628 allow_undefined_flag='-berok'
9629 # Determine the default libpath from the value encoded in an
9630 # empty executable.
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9635 main ()
9639 return 0;
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9644 lt_aix_libpath_sed='
9645 /Import File Strings/,/^$/ {
9646 /^0/ {
9647 s/^0 *\(.*\)$/\1/
9651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9652 # Check for a 64-bit object if we didn't find anything.
9653 if test -z "$aix_libpath"; then
9654 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9657 rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9661 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9662 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"
9663 else
9664 if test "$host_cpu" = ia64; then
9665 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9666 allow_undefined_flag="-z nodefs"
9667 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"
9668 else
9669 # Determine the default libpath from the value encoded in an
9670 # empty executable.
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9675 main ()
9679 return 0;
9681 _ACEOF
9682 if ac_fn_c_try_link "$LINENO"; then :
9684 lt_aix_libpath_sed='
9685 /Import File Strings/,/^$/ {
9686 /^0/ {
9687 s/^0 *\(.*\)$/\1/
9691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9692 # Check for a 64-bit object if we didn't find anything.
9693 if test -z "$aix_libpath"; then
9694 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697 rm -f core conftest.err conftest.$ac_objext \
9698 conftest$ac_exeext conftest.$ac_ext
9699 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9701 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9702 # Warning - without using the other run time loading flags,
9703 # -berok will link without error, but may produce a broken library.
9704 no_undefined_flag=' ${wl}-bernotok'
9705 allow_undefined_flag=' ${wl}-berok'
9706 if test "$with_gnu_ld" = yes; then
9707 # We only use this code for GNU lds that support --whole-archive.
9708 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9709 else
9710 # Exported symbols can be pulled into shared objects from archives
9711 whole_archive_flag_spec='$convenience'
9713 archive_cmds_need_lc=yes
9714 # This is similar to how AIX traditionally builds its shared libraries.
9715 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'
9720 amigaos*)
9721 case $host_cpu in
9722 powerpc)
9723 # see comment about AmigaOS4 .so support
9724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9725 archive_expsym_cmds=''
9727 m68k)
9728 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)'
9729 hardcode_libdir_flag_spec='-L$libdir'
9730 hardcode_minus_L=yes
9732 esac
9735 bsdi[45]*)
9736 export_dynamic_flag_spec=-rdynamic
9739 cygwin* | mingw* | pw32* | cegcc*)
9740 # When not using gcc, we currently assume that we are using
9741 # Microsoft Visual C++.
9742 # hardcode_libdir_flag_spec is actually meaningless, as there is
9743 # no search path for DLLs.
9744 hardcode_libdir_flag_spec=' '
9745 allow_undefined_flag=unsupported
9746 # Tell ltmain to make .lib files, not .a files.
9747 libext=lib
9748 # Tell ltmain to make .dll files, not .so files.
9749 shrext_cmds=".dll"
9750 # FIXME: Setting linknames here is a bad hack.
9751 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9752 # The linker will automatically build a .lib file if we build a DLL.
9753 old_archive_from_new_cmds='true'
9754 # FIXME: Should let the user specify the lib program.
9755 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9756 fix_srcfile_path='`cygpath -w "$srcfile"`'
9757 enable_shared_with_static_runtimes=yes
9760 darwin* | rhapsody*)
9764 # Publish an arg to allow the user to select that Darwin host (and target)
9765 # libraries should be given install-names like @rpath/libfoo.dylib. This
9766 # requires that the user of the library then adds an 'rpath' to the DSO that
9767 # needs access.
9768 # NOTE: there are defaults below, for systems that support rpaths. The person
9769 # configuring can override the defaults for any system version that supports
9770 # them - they are, however, forced off for system versions without support.
9771 # Check whether --enable-darwin-at-rpath was given.
9772 if test "${enable_darwin_at_rpath+set}" = set; then :
9773 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9774 # This is not supported before macOS 10.5 / Darwin9.
9775 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9776 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9778 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9779 enable_darwin_at_rpath=no
9781 esac
9783 else
9784 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9785 # As above, before 10.5 / Darwin9 this does not work.
9786 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9787 enable_darwin_at_rpath=no
9790 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9791 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9792 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9793 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9795 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9796 enable_darwin_at_rpath=yes
9798 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9799 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9801 esac
9806 archive_cmds_need_lc=no
9807 hardcode_direct=no
9808 hardcode_automatic=yes
9809 hardcode_shlibpath_var=unsupported
9810 if test "$lt_cv_ld_force_load" = "yes"; then
9811 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\"`'
9812 else
9813 whole_archive_flag_spec=''
9815 link_all_deplibs=yes
9816 allow_undefined_flag="$_lt_dar_allow_undefined"
9817 case $cc_basename in
9818 ifort*) _lt_dar_can_shared=yes ;;
9819 *) _lt_dar_can_shared=$GCC ;;
9820 esac
9821 if test "$_lt_dar_can_shared" = "yes"; then
9822 output_verbose_link_cmd=func_echo_all
9823 _lt_install_name='\$rpath/\$soname'
9824 if test "x$enable_darwin_at_rpath" = "xyes"; then
9825 _lt_install_name='@rpath/\$soname'
9827 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
9828 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9829 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
9830 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}"
9832 else
9833 ld_shlibs=no
9838 dgux*)
9839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9840 hardcode_libdir_flag_spec='-L$libdir'
9841 hardcode_shlibpath_var=no
9844 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9845 # support. Future versions do this automatically, but an explicit c++rt0.o
9846 # does not break anything, and helps significantly (at the cost of a little
9847 # extra space).
9848 freebsd2.2*)
9849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9850 hardcode_libdir_flag_spec='-R$libdir'
9851 hardcode_direct=yes
9852 hardcode_shlibpath_var=no
9855 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9856 freebsd2.*)
9857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_direct=yes
9859 hardcode_minus_L=yes
9860 hardcode_shlibpath_var=no
9863 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9864 freebsd* | dragonfly*)
9865 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9866 hardcode_libdir_flag_spec='-R$libdir'
9867 hardcode_direct=yes
9868 hardcode_shlibpath_var=no
9871 hpux9*)
9872 if test "$GCC" = yes; then
9873 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'
9874 else
9875 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'
9877 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9878 hardcode_libdir_separator=:
9879 hardcode_direct=yes
9881 # hardcode_minus_L: Not really in the search PATH,
9882 # but as the default location of the library.
9883 hardcode_minus_L=yes
9884 export_dynamic_flag_spec='${wl}-E'
9887 hpux10*)
9888 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9889 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9890 else
9891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9893 if test "$with_gnu_ld" = no; then
9894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9895 hardcode_libdir_flag_spec_ld='+b $libdir'
9896 hardcode_libdir_separator=:
9897 hardcode_direct=yes
9898 hardcode_direct_absolute=yes
9899 export_dynamic_flag_spec='${wl}-E'
9900 # hardcode_minus_L: Not really in the search PATH,
9901 # but as the default location of the library.
9902 hardcode_minus_L=yes
9906 hpux11*)
9907 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9908 case $host_cpu in
9909 hppa*64*)
9910 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9912 ia64*)
9913 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9916 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9918 esac
9919 else
9920 case $host_cpu in
9921 hppa*64*)
9922 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9924 ia64*)
9925 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9929 # Older versions of the 11.00 compiler do not understand -b yet
9930 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9932 $as_echo_n "checking if $CC understands -b... " >&6; }
9933 if ${lt_cv_prog_compiler__b+:} false; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 lt_cv_prog_compiler__b=no
9937 save_LDFLAGS="$LDFLAGS"
9938 LDFLAGS="$LDFLAGS -b"
9939 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9941 # The linker can only warn and ignore the option if not recognized
9942 # So say no if there are warnings
9943 if test -s conftest.err; then
9944 # Append any errors to the config.log.
9945 cat conftest.err 1>&5
9946 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9948 if diff conftest.exp conftest.er2 >/dev/null; then
9949 lt_cv_prog_compiler__b=yes
9951 else
9952 lt_cv_prog_compiler__b=yes
9955 $RM -r conftest*
9956 LDFLAGS="$save_LDFLAGS"
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9960 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9962 if test x"$lt_cv_prog_compiler__b" = xyes; then
9963 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9964 else
9965 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9969 esac
9971 if test "$with_gnu_ld" = no; then
9972 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9973 hardcode_libdir_separator=:
9975 case $host_cpu in
9976 hppa*64*|ia64*)
9977 hardcode_direct=no
9978 hardcode_shlibpath_var=no
9981 hardcode_direct=yes
9982 hardcode_direct_absolute=yes
9983 export_dynamic_flag_spec='${wl}-E'
9985 # hardcode_minus_L: Not really in the search PATH,
9986 # but as the default location of the library.
9987 hardcode_minus_L=yes
9989 esac
9993 irix5* | irix6* | nonstopux*)
9994 if test "$GCC" = yes; then
9995 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'
9996 # Try to use the -exported_symbol ld option, if it does not
9997 # work, assume that -exports_file does not work either and
9998 # implicitly export all symbols.
9999 save_LDFLAGS="$LDFLAGS"
10000 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10003 int foo(void) {}
10004 _ACEOF
10005 if ac_fn_c_try_link "$LINENO"; then :
10006 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'
10009 rm -f core conftest.err conftest.$ac_objext \
10010 conftest$ac_exeext conftest.$ac_ext
10011 LDFLAGS="$save_LDFLAGS"
10012 else
10013 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'
10014 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'
10016 archive_cmds_need_lc='no'
10017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10018 hardcode_libdir_separator=:
10019 inherit_rpath=yes
10020 link_all_deplibs=yes
10023 netbsd*)
10024 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10026 else
10027 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10029 hardcode_libdir_flag_spec='-R$libdir'
10030 hardcode_direct=yes
10031 hardcode_shlibpath_var=no
10034 newsos6)
10035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_direct=yes
10037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038 hardcode_libdir_separator=:
10039 hardcode_shlibpath_var=no
10042 *nto* | *qnx*)
10045 openbsd*)
10046 if test -f /usr/libexec/ld.so; then
10047 hardcode_direct=yes
10048 hardcode_shlibpath_var=no
10049 hardcode_direct_absolute=yes
10050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10052 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10053 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10054 export_dynamic_flag_spec='${wl}-E'
10055 else
10056 case $host_os in
10057 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_libdir_flag_spec='-R$libdir'
10062 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10063 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10065 esac
10067 else
10068 ld_shlibs=no
10072 os2*)
10073 hardcode_libdir_flag_spec='-L$libdir'
10074 hardcode_minus_L=yes
10075 allow_undefined_flag=unsupported
10076 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'
10077 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10080 osf3*)
10081 if test "$GCC" = yes; then
10082 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10083 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'
10084 else
10085 allow_undefined_flag=' -expect_unresolved \*'
10086 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'
10088 archive_cmds_need_lc='no'
10089 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10090 hardcode_libdir_separator=:
10093 osf4* | osf5*) # as osf3* with the addition of -msym flag
10094 if test "$GCC" = yes; then
10095 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10096 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'
10097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10098 else
10099 allow_undefined_flag=' -expect_unresolved \*'
10100 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'
10101 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~
10102 $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'
10104 # Both c and cxx compiler support -rpath directly
10105 hardcode_libdir_flag_spec='-rpath $libdir'
10107 archive_cmds_need_lc='no'
10108 hardcode_libdir_separator=:
10111 solaris*)
10112 no_undefined_flag=' -z defs'
10113 if test "$GCC" = yes; then
10114 wlarc='${wl}'
10115 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10117 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10118 else
10119 case `$CC -V 2>&1` in
10120 *"Compilers 5.0"*)
10121 wlarc=''
10122 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10124 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10127 wlarc='${wl}'
10128 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10129 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10130 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10132 esac
10134 hardcode_libdir_flag_spec='-R$libdir'
10135 hardcode_shlibpath_var=no
10136 case $host_os in
10137 solaris2.[0-5] | solaris2.[0-5].*) ;;
10139 # The compiler driver will combine and reorder linker options,
10140 # but understands `-z linker_flag'. GCC discards it without `$wl',
10141 # but is careful enough not to reorder.
10142 # Supported since Solaris 2.6 (maybe 2.5.1?)
10143 if test "$GCC" = yes; then
10144 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10145 else
10146 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10149 esac
10150 link_all_deplibs=yes
10153 sunos4*)
10154 if test "x$host_vendor" = xsequent; then
10155 # Use $CC to link under sequent, because it throws in some extra .o
10156 # files that make .init and .fini sections work.
10157 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10158 else
10159 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_libdir_flag_spec='-L$libdir'
10162 hardcode_direct=yes
10163 hardcode_minus_L=yes
10164 hardcode_shlibpath_var=no
10167 sysv4)
10168 case $host_vendor in
10169 sni)
10170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171 hardcode_direct=yes # is this really true???
10173 siemens)
10174 ## LD is ld it makes a PLAMLIB
10175 ## CC just makes a GrossModule.
10176 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10177 reload_cmds='$CC -r -o $output$reload_objs'
10178 hardcode_direct=no
10180 motorola)
10181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10184 esac
10185 runpath_var='LD_RUN_PATH'
10186 hardcode_shlibpath_var=no
10189 sysv4.3*)
10190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10191 hardcode_shlibpath_var=no
10192 export_dynamic_flag_spec='-Bexport'
10195 sysv4*MP*)
10196 if test -d /usr/nec; then
10197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198 hardcode_shlibpath_var=no
10199 runpath_var=LD_RUN_PATH
10200 hardcode_runpath_var=yes
10201 ld_shlibs=yes
10205 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10206 no_undefined_flag='${wl}-z,text'
10207 archive_cmds_need_lc=no
10208 hardcode_shlibpath_var=no
10209 runpath_var='LD_RUN_PATH'
10211 if test "$GCC" = yes; then
10212 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 else
10215 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 sysv5* | sco3.2v5* | sco5v6*)
10221 # Note: We can NOT use -z defs as we might desire, because we do not
10222 # link with -lc, and that would cause any symbols used from libc to
10223 # always be unresolved, which means just about no library would
10224 # ever link correctly. If we're not using GNU ld we use -z text
10225 # though, which does catch some bad symbols but isn't as heavy-handed
10226 # as -z defs.
10227 no_undefined_flag='${wl}-z,text'
10228 allow_undefined_flag='${wl}-z,nodefs'
10229 archive_cmds_need_lc=no
10230 hardcode_shlibpath_var=no
10231 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10232 hardcode_libdir_separator=':'
10233 link_all_deplibs=yes
10234 export_dynamic_flag_spec='${wl}-Bexport'
10235 runpath_var='LD_RUN_PATH'
10237 if test "$GCC" = yes; then
10238 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 else
10241 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 uts4*)
10247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248 hardcode_libdir_flag_spec='-L$libdir'
10249 hardcode_shlibpath_var=no
10253 ld_shlibs=no
10255 esac
10257 if test x$host_vendor = xsni; then
10258 case $host in
10259 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10260 export_dynamic_flag_spec='${wl}-Blargedynsym'
10262 esac
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10267 $as_echo "$ld_shlibs" >&6; }
10268 test "$ld_shlibs" = no && can_build_shared=no
10270 with_gnu_ld=$with_gnu_ld
10287 # Do we need to explicitly link libc?
10289 case "x$archive_cmds_need_lc" in
10290 x|xyes)
10291 # Assume -lc should be added
10292 archive_cmds_need_lc=yes
10294 if test "$enable_shared" = yes && test "$GCC" = yes; then
10295 case $archive_cmds in
10296 *'~'*)
10297 # FIXME: we may have to deal with multi-command sequences.
10299 '$CC '*)
10300 # Test whether the compiler implicitly links with -lc since on some
10301 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10302 # to ld, don't add -lc before -lgcc.
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10304 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10305 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 $RM conftest*
10309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10312 (eval $ac_compile) 2>&5
10313 ac_status=$?
10314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10315 test $ac_status = 0; } 2>conftest.err; then
10316 soname=conftest
10317 lib=conftest
10318 libobjs=conftest.$ac_objext
10319 deplibs=
10320 wl=$lt_prog_compiler_wl
10321 pic_flag=$lt_prog_compiler_pic
10322 compiler_flags=-v
10323 linker_flags=-v
10324 verstring=
10325 output_objdir=.
10326 libname=conftest
10327 lt_save_allow_undefined_flag=$allow_undefined_flag
10328 allow_undefined_flag=
10329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10330 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10331 ac_status=$?
10332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10333 test $ac_status = 0; }
10334 then
10335 lt_cv_archive_cmds_need_lc=no
10336 else
10337 lt_cv_archive_cmds_need_lc=yes
10339 allow_undefined_flag=$lt_save_allow_undefined_flag
10340 else
10341 cat conftest.err 1>&5
10343 $RM conftest*
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10347 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10348 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10350 esac
10353 esac
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10512 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10514 if test "$GCC" = yes; then
10515 case $host_os in
10516 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10517 *) lt_awk_arg="/^libraries:/" ;;
10518 esac
10519 case $host_os in
10520 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10521 *) lt_sed_strip_eq="s,=/,/,g" ;;
10522 esac
10523 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10524 case $lt_search_path_spec in
10525 *\;*)
10526 # if the path contains ";" then we assume it to be the separator
10527 # otherwise default to the standard path separator (i.e. ":") - it is
10528 # assumed that no part of a normal pathname contains ";" but that should
10529 # okay in the real world where ";" in dirpaths is itself problematic.
10530 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10533 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10535 esac
10536 # Ok, now we have the path, separated by spaces, we can step through it
10537 # and add multilib dir if necessary.
10538 lt_tmp_lt_search_path_spec=
10539 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10540 for lt_sys_path in $lt_search_path_spec; do
10541 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10542 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10543 else
10544 test -d "$lt_sys_path" && \
10545 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10547 done
10548 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10549 BEGIN {RS=" "; FS="/|\n";} {
10550 lt_foo="";
10551 lt_count=0;
10552 for (lt_i = NF; lt_i > 0; lt_i--) {
10553 if ($lt_i != "" && $lt_i != ".") {
10554 if ($lt_i == "..") {
10555 lt_count++;
10556 } else {
10557 if (lt_count == 0) {
10558 lt_foo="/" $lt_i lt_foo;
10559 } else {
10560 lt_count--;
10565 if (lt_foo != "") { lt_freq[lt_foo]++; }
10566 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10568 # AWK program above erroneously prepends '/' to C:/dos/paths
10569 # for these hosts.
10570 case $host_os in
10571 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10572 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10573 esac
10574 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10575 else
10576 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10578 library_names_spec=
10579 libname_spec='lib$name'
10580 soname_spec=
10581 shrext_cmds=".so"
10582 postinstall_cmds=
10583 postuninstall_cmds=
10584 finish_cmds=
10585 finish_eval=
10586 shlibpath_var=
10587 shlibpath_overrides_runpath=unknown
10588 version_type=none
10589 dynamic_linker="$host_os ld.so"
10590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10591 need_lib_prefix=unknown
10592 hardcode_into_libs=no
10594 # when you set need_version to no, make sure it does not cause -set_version
10595 # flags to be left without arguments
10596 need_version=unknown
10598 case $host_os in
10599 aix3*)
10600 version_type=linux
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10602 shlibpath_var=LIBPATH
10604 # AIX 3 has no versioning support, so we append a major version to the name.
10605 soname_spec='${libname}${release}${shared_ext}$major'
10608 aix[4-9]*)
10609 version_type=linux
10610 need_lib_prefix=no
10611 need_version=no
10612 hardcode_into_libs=yes
10613 if test "$host_cpu" = ia64; then
10614 # AIX 5 supports IA64
10615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 else
10618 # With GCC up to 2.95.x, collect2 would create an import file
10619 # for dependence libraries. The import file would start with
10620 # the line `#! .'. This would cause the generated library to
10621 # depend on `.', always an invalid library. This was fixed in
10622 # development snapshots of GCC prior to 3.0.
10623 case $host_os in
10624 aix4 | aix4.[01] | aix4.[01].*)
10625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10626 echo ' yes '
10627 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10629 else
10630 can_build_shared=no
10633 esac
10634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10635 # soname into executable. Probably we can add versioning support to
10636 # collect2, so additional links can be useful in future.
10637 if test "$aix_use_runtimelinking" = yes; then
10638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10639 # instead of lib<name>.a to let people know that these are not
10640 # typical AIX shared libraries.
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 else
10643 # We preserve .a as extension for shared libraries through AIX4.2
10644 # and later when we are not doing run time linking.
10645 library_names_spec='${libname}${release}.a $libname.a'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10648 shlibpath_var=LIBPATH
10652 amigaos*)
10653 case $host_cpu in
10654 powerpc)
10655 # Since July 2007 AmigaOS4 officially supports .so libraries.
10656 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 m68k)
10660 library_names_spec='$libname.ixlibrary $libname.a'
10661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10662 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'
10664 esac
10667 beos*)
10668 library_names_spec='${libname}${shared_ext}'
10669 dynamic_linker="$host_os ld.so"
10670 shlibpath_var=LIBRARY_PATH
10673 bsdi[45]*)
10674 version_type=linux
10675 need_version=no
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10682 # the default ld.so.conf also contains /usr/contrib/lib and
10683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10684 # libtool to hard-code these into programs
10687 cygwin* | mingw* | pw32* | cegcc*)
10688 version_type=windows
10689 shrext_cmds=".dll"
10690 need_version=no
10691 need_lib_prefix=no
10693 case $GCC,$host_os in
10694 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10695 library_names_spec='$libname.dll.a'
10696 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10697 postinstall_cmds='base_file=`basename \${file}`~
10698 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10699 dldir=$destdir/`dirname \$dlpath`~
10700 test -d \$dldir || mkdir -p \$dldir~
10701 $install_prog $dir/$dlname \$dldir/$dlname~
10702 chmod a+x \$dldir/$dlname~
10703 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10704 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10707 dlpath=$dir/\$dldll~
10708 $RM \$dlpath'
10709 shlibpath_overrides_runpath=yes
10711 case $host_os in
10712 cygwin*)
10713 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10714 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10716 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10718 mingw* | cegcc*)
10719 # MinGW DLLs use traditional 'lib' prefix
10720 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10722 pw32*)
10723 # pw32 DLLs use 'pw' prefix rather than 'lib'
10724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10726 esac
10730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10732 esac
10733 dynamic_linker='Win32 ld.exe'
10734 # FIXME: first we should search . and the directory the executable is in
10735 shlibpath_var=PATH
10738 darwin* | rhapsody*)
10739 dynamic_linker="$host_os dyld"
10740 version_type=darwin
10741 need_lib_prefix=no
10742 need_version=no
10743 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10744 soname_spec='${libname}${release}${major}$shared_ext'
10745 shlibpath_overrides_runpath=yes
10746 shlibpath_var=DYLD_LIBRARY_PATH
10747 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10749 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10753 dgux*)
10754 version_type=linux
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10762 freebsd* | dragonfly*)
10763 # DragonFly does not have aout. When/if they implement a new
10764 # versioning mechanism, adjust this.
10765 if test -x /usr/bin/objformat; then
10766 objformat=`/usr/bin/objformat`
10767 else
10768 case $host_os in
10769 freebsd[23].*) objformat=aout ;;
10770 *) objformat=elf ;;
10771 esac
10773 version_type=freebsd-$objformat
10774 case $version_type in
10775 freebsd-elf*)
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10777 need_version=no
10778 need_lib_prefix=no
10780 freebsd-*)
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10782 need_version=yes
10784 esac
10785 shlibpath_var=LD_LIBRARY_PATH
10786 case $host_os in
10787 freebsd2.*)
10788 shlibpath_overrides_runpath=yes
10790 freebsd3.[01]* | freebsdelf3.[01]*)
10791 shlibpath_overrides_runpath=yes
10792 hardcode_into_libs=yes
10794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10796 shlibpath_overrides_runpath=no
10797 hardcode_into_libs=yes
10799 *) # from 4.6 on, and DragonFly
10800 shlibpath_overrides_runpath=yes
10801 hardcode_into_libs=yes
10803 esac
10806 haiku*)
10807 version_type=linux
10808 need_lib_prefix=no
10809 need_version=no
10810 dynamic_linker="$host_os runtime_loader"
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 shlibpath_var=LIBRARY_PATH
10814 shlibpath_overrides_runpath=yes
10815 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10816 hardcode_into_libs=yes
10819 hpux9* | hpux10* | hpux11*)
10820 # Give a soname corresponding to the major version so that dld.sl refuses to
10821 # link against other versions.
10822 version_type=sunos
10823 need_lib_prefix=no
10824 need_version=no
10825 case $host_cpu in
10826 ia64*)
10827 shrext_cmds='.so'
10828 hardcode_into_libs=yes
10829 dynamic_linker="$host_os dld.so"
10830 shlibpath_var=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 if test "X$HPUX_IA64_MODE" = X32; then
10835 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10836 else
10837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10841 hppa*64*)
10842 shrext_cmds='.sl'
10843 hardcode_into_libs=yes
10844 dynamic_linker="$host_os dld.sl"
10845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10853 shrext_cmds='.sl'
10854 dynamic_linker="$host_os dld.sl"
10855 shlibpath_var=SHLIB_PATH
10856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10860 esac
10861 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10862 postinstall_cmds='chmod 555 $lib'
10863 # or fails outright, so override atomically:
10864 install_override_mode=555
10867 interix[3-9]*)
10868 version_type=linux
10869 need_lib_prefix=no
10870 need_version=no
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=no
10876 hardcode_into_libs=yes
10879 irix5* | irix6* | nonstopux*)
10880 case $host_os in
10881 nonstopux*) version_type=nonstopux ;;
10883 if test "$lt_cv_prog_gnu_ld" = yes; then
10884 version_type=linux
10885 else
10886 version_type=irix
10887 fi ;;
10888 esac
10889 need_lib_prefix=no
10890 need_version=no
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10893 case $host_os in
10894 irix5* | nonstopux*)
10895 libsuff= shlibsuff=
10898 case $LD in # libtool.m4 will add one of these switches to LD
10899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10900 libsuff= shlibsuff= libmagic=32-bit;;
10901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10902 libsuff=32 shlibsuff=N32 libmagic=N32;;
10903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10905 *) libsuff= shlibsuff= libmagic=never-match;;
10906 esac
10908 esac
10909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10910 shlibpath_overrides_runpath=no
10911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10913 hardcode_into_libs=yes
10916 # No shared lib support for Linux oldld, aout, or coff.
10917 linux*oldld* | linux*aout* | linux*coff*)
10918 dynamic_linker=no
10921 # This must be Linux ELF.
10923 # uclinux* changes (here and below) have been submitted to the libtool
10924 # project, but have not yet been accepted: they are GCC-local changes
10925 # for the time being. (See
10926 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10927 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10928 version_type=linux
10929 need_lib_prefix=no
10930 need_version=no
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=no
10937 # Some binutils ld are patched to set DT_RUNPATH
10938 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 lt_cv_shlibpath_overrides_runpath=no
10942 save_LDFLAGS=$LDFLAGS
10943 save_libdir=$libdir
10944 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10945 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10950 main ()
10954 return 0;
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10959 lt_cv_shlibpath_overrides_runpath=yes
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LDFLAGS=$save_LDFLAGS
10965 libdir=$save_libdir
10969 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10971 # This implies no fast_install, which is unacceptable.
10972 # Some rework will be needed to allow for fast_install
10973 # before this can be enabled.
10974 hardcode_into_libs=yes
10976 # Append ld.so.conf contents to the search path
10977 if test -f /etc/ld.so.conf; then
10978 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' ' '`
10979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10982 # We used to test for /lib/ld.so.1 and disable shared libraries on
10983 # powerpc, because MkLinux only supported shared libraries with the
10984 # GNU dynamic linker. Since this was broken with cross compilers,
10985 # most powerpc-linux boxes support dynamic linking these days and
10986 # people can always --disable-shared, the test was removed, and we
10987 # assume the GNU/Linux dynamic linker is in use.
10988 dynamic_linker='GNU/Linux ld.so'
10991 netbsd*)
10992 version_type=sunos
10993 need_lib_prefix=no
10994 need_version=no
10995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10998 dynamic_linker='NetBSD (a.out) ld.so'
10999 else
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 dynamic_linker='NetBSD ld.elf_so'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 shlibpath_overrides_runpath=yes
11006 hardcode_into_libs=yes
11009 newsos6)
11010 version_type=linux
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012 shlibpath_var=LD_LIBRARY_PATH
11013 shlibpath_overrides_runpath=yes
11016 *nto* | *qnx*)
11017 version_type=qnx
11018 need_lib_prefix=no
11019 need_version=no
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=no
11024 hardcode_into_libs=yes
11025 dynamic_linker='ldqnx.so'
11028 openbsd*)
11029 version_type=sunos
11030 sys_lib_dlsearch_path_spec="/usr/lib"
11031 need_lib_prefix=no
11032 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11033 case $host_os in
11034 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11035 *) need_version=no ;;
11036 esac
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11041 case $host_os in
11042 openbsd2.[89] | openbsd2.[89].*)
11043 shlibpath_overrides_runpath=no
11046 shlibpath_overrides_runpath=yes
11048 esac
11049 else
11050 shlibpath_overrides_runpath=yes
11054 os2*)
11055 libname_spec='$name'
11056 shrext_cmds=".dll"
11057 need_lib_prefix=no
11058 library_names_spec='$libname${shared_ext} $libname.a'
11059 dynamic_linker='OS/2 ld.exe'
11060 shlibpath_var=LIBPATH
11063 osf3* | osf4* | osf5*)
11064 version_type=osf
11065 need_lib_prefix=no
11066 need_version=no
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11071 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11074 rdos*)
11075 dynamic_linker=no
11078 solaris*)
11079 version_type=linux
11080 need_lib_prefix=no
11081 need_version=no
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11083 soname_spec='${libname}${release}${shared_ext}$major'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 shlibpath_overrides_runpath=yes
11086 hardcode_into_libs=yes
11087 # ldd complains unless libraries are executable
11088 postinstall_cmds='chmod +x $lib'
11091 sunos4*)
11092 version_type=sunos
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11094 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 shlibpath_overrides_runpath=yes
11097 if test "$with_gnu_ld" = yes; then
11098 need_lib_prefix=no
11100 need_version=yes
11103 sysv4 | sysv4.3*)
11104 version_type=linux
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 case $host_vendor in
11109 sni)
11110 shlibpath_overrides_runpath=no
11111 need_lib_prefix=no
11112 runpath_var=LD_RUN_PATH
11114 siemens)
11115 need_lib_prefix=no
11117 motorola)
11118 need_lib_prefix=no
11119 need_version=no
11120 shlibpath_overrides_runpath=no
11121 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11123 esac
11126 sysv4*MP*)
11127 if test -d /usr/nec ;then
11128 version_type=linux
11129 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11130 soname_spec='$libname${shared_ext}.$major'
11131 shlibpath_var=LD_LIBRARY_PATH
11135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11136 version_type=freebsd-elf
11137 need_lib_prefix=no
11138 need_version=no
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11140 soname_spec='${libname}${release}${shared_ext}$major'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 shlibpath_overrides_runpath=yes
11143 hardcode_into_libs=yes
11144 if test "$with_gnu_ld" = yes; then
11145 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11146 else
11147 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11148 case $host_os in
11149 sco3.2v5*)
11150 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11152 esac
11154 sys_lib_dlsearch_path_spec='/usr/lib'
11157 tpf*)
11158 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11159 version_type=linux
11160 need_lib_prefix=no
11161 need_version=no
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=no
11165 hardcode_into_libs=yes
11168 uts4*)
11169 version_type=linux
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 shlibpath_var=LD_LIBRARY_PATH
11175 # Shared libraries for VwWorks, >= 7 only at this stage
11176 # and (fpic) still incompatible with "large" code models
11177 # in a few configurations. Only for RTP mode in any case,
11178 # and upon explicit request at configure time.
11179 vxworks7*)
11180 dynamic_linker=no
11181 case ${with_multisubdir}-${enable_shared} in
11182 *large*)
11184 *mrtp*-yes)
11185 version_type=linux
11186 need_lib_prefix=no
11187 need_version=no
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 soname_spec='${libname}${release}${shared_ext}$major'
11190 dynamic_linker="$host_os module_loader"
11192 esac
11195 dynamic_linker=no
11197 esac
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11199 $as_echo "$dynamic_linker" >&6; }
11200 test "$dynamic_linker" = no && can_build_shared=no
11202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11203 if test "$GCC" = yes; then
11204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11207 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11208 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11210 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11211 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11306 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11307 hardcode_action=
11308 if test -n "$hardcode_libdir_flag_spec" ||
11309 test -n "$runpath_var" ||
11310 test "X$hardcode_automatic" = "Xyes" ; then
11312 # We can hardcode non-existent directories.
11313 if test "$hardcode_direct" != no &&
11314 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11315 # have to relink, otherwise we might link with an installed library
11316 # when we should be linking with a yet-to-be-installed one
11317 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11318 test "$hardcode_minus_L" != no; then
11319 # Linking always hardcodes the temporary library directory.
11320 hardcode_action=relink
11321 else
11322 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11323 hardcode_action=immediate
11325 else
11326 # We cannot hardcode anything, or else we can only hardcode existing
11327 # directories.
11328 hardcode_action=unsupported
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11331 $as_echo "$hardcode_action" >&6; }
11333 if test "$hardcode_action" = relink ||
11334 test "$inherit_rpath" = yes; then
11335 # Fast installation is not supported
11336 enable_fast_install=no
11337 elif test "$shlibpath_overrides_runpath" = yes ||
11338 test "$enable_shared" = no; then
11339 # Fast installation is not necessary
11340 enable_fast_install=needless
11348 if test "x$enable_dlopen" != xyes; then
11349 enable_dlopen=unknown
11350 enable_dlopen_self=unknown
11351 enable_dlopen_self_static=unknown
11352 else
11353 lt_cv_dlopen=no
11354 lt_cv_dlopen_libs=
11356 case $host_os in
11357 beos*)
11358 lt_cv_dlopen="load_add_on"
11359 lt_cv_dlopen_libs=
11360 lt_cv_dlopen_self=yes
11363 mingw* | pw32* | cegcc*)
11364 lt_cv_dlopen="LoadLibrary"
11365 lt_cv_dlopen_libs=
11368 cygwin*)
11369 lt_cv_dlopen="dlopen"
11370 lt_cv_dlopen_libs=
11373 darwin*)
11374 # if libdl is installed we need to link against it
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11376 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11377 if ${ac_cv_lib_dl_dlopen+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-ldl $LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 char dlopen ();
11393 main ()
11395 return dlopen ();
11397 return 0;
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_dl_dlopen=yes
11402 else
11403 ac_cv_lib_dl_dlopen=no
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11410 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11411 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11413 else
11415 lt_cv_dlopen="dyld"
11416 lt_cv_dlopen_libs=
11417 lt_cv_dlopen_self=yes
11424 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11425 if test "x$ac_cv_func_shl_load" = xyes; then :
11426 lt_cv_dlopen="shl_load"
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11429 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11430 if ${ac_cv_lib_dld_shl_load+:} false; then :
11431 $as_echo_n "(cached) " >&6
11432 else
11433 ac_check_lib_save_LIBS=$LIBS
11434 LIBS="-ldld $LIBS"
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441 #ifdef __cplusplus
11442 extern "C"
11443 #endif
11444 char shl_load ();
11446 main ()
11448 return shl_load ();
11450 return 0;
11452 _ACEOF
11453 if ac_fn_c_try_link "$LINENO"; then :
11454 ac_cv_lib_dld_shl_load=yes
11455 else
11456 ac_cv_lib_dld_shl_load=no
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11460 LIBS=$ac_check_lib_save_LIBS
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11463 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11464 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11465 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11466 else
11467 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11468 if test "x$ac_cv_func_dlopen" = xyes; then :
11469 lt_cv_dlopen="dlopen"
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11472 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11473 if ${ac_cv_lib_dl_dlopen+:} false; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 ac_check_lib_save_LIBS=$LIBS
11477 LIBS="-ldl $LIBS"
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char dlopen ();
11489 main ()
11491 return dlopen ();
11493 return 0;
11495 _ACEOF
11496 if ac_fn_c_try_link "$LINENO"; then :
11497 ac_cv_lib_dl_dlopen=yes
11498 else
11499 ac_cv_lib_dl_dlopen=no
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11506 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11507 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11511 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11512 if ${ac_cv_lib_svld_dlopen+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-lsvld $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char dlopen ();
11528 main ()
11530 return dlopen ();
11532 return 0;
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_svld_dlopen=yes
11537 else
11538 ac_cv_lib_svld_dlopen=no
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11545 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11546 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11550 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11551 if ${ac_cv_lib_dld_dld_link+:} false; then :
11552 $as_echo_n "(cached) " >&6
11553 else
11554 ac_check_lib_save_LIBS=$LIBS
11555 LIBS="-ldld $LIBS"
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11559 /* Override any GCC internal prototype to avoid an error.
11560 Use char because int might match the return type of a GCC
11561 builtin and then its argument prototype would still apply. */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 char dld_link ();
11567 main ()
11569 return dld_link ();
11571 return 0;
11573 _ACEOF
11574 if ac_fn_c_try_link "$LINENO"; then :
11575 ac_cv_lib_dld_dld_link=yes
11576 else
11577 ac_cv_lib_dld_dld_link=no
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11584 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11585 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11586 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11605 esac
11607 if test "x$lt_cv_dlopen" != xno; then
11608 enable_dlopen=yes
11609 else
11610 enable_dlopen=no
11613 case $lt_cv_dlopen in
11614 dlopen)
11615 save_CPPFLAGS="$CPPFLAGS"
11616 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11618 save_LDFLAGS="$LDFLAGS"
11619 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11621 save_LIBS="$LIBS"
11622 LIBS="$lt_cv_dlopen_libs $LIBS"
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11625 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11626 if ${lt_cv_dlopen_self+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 if test "$cross_compiling" = yes; then :
11630 lt_cv_dlopen_self=cross
11631 else
11632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11633 lt_status=$lt_dlunknown
11634 cat > conftest.$ac_ext <<_LT_EOF
11635 #line 11635 "configure"
11636 #include "confdefs.h"
11638 #if HAVE_DLFCN_H
11639 #include <dlfcn.h>
11640 #endif
11642 #include <stdio.h>
11644 #ifdef RTLD_GLOBAL
11645 # define LT_DLGLOBAL RTLD_GLOBAL
11646 #else
11647 # ifdef DL_GLOBAL
11648 # define LT_DLGLOBAL DL_GLOBAL
11649 # else
11650 # define LT_DLGLOBAL 0
11651 # endif
11652 #endif
11654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11655 find out it does not work in some platform. */
11656 #ifndef LT_DLLAZY_OR_NOW
11657 # ifdef RTLD_LAZY
11658 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11659 # else
11660 # ifdef DL_LAZY
11661 # define LT_DLLAZY_OR_NOW DL_LAZY
11662 # else
11663 # ifdef RTLD_NOW
11664 # define LT_DLLAZY_OR_NOW RTLD_NOW
11665 # else
11666 # ifdef DL_NOW
11667 # define LT_DLLAZY_OR_NOW DL_NOW
11668 # else
11669 # define LT_DLLAZY_OR_NOW 0
11670 # endif
11671 # endif
11672 # endif
11673 # endif
11674 #endif
11676 /* When -fvisbility=hidden is used, assume the code has been annotated
11677 correspondingly for the symbols needed. */
11678 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11679 void fnord () __attribute__((visibility("default")));
11680 #endif
11682 void fnord () { int i=42; }
11683 int main ()
11685 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11686 int status = $lt_dlunknown;
11688 if (self)
11690 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11691 else
11693 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11694 else puts (dlerror ());
11696 /* dlclose (self); */
11698 else
11699 puts (dlerror ());
11701 return status;
11703 _LT_EOF
11704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11705 (eval $ac_link) 2>&5
11706 ac_status=$?
11707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11708 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11709 (./conftest; exit; ) >&5 2>/dev/null
11710 lt_status=$?
11711 case x$lt_status in
11712 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11713 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11714 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11715 esac
11716 else :
11717 # compilation failed
11718 lt_cv_dlopen_self=no
11721 rm -fr conftest*
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11726 $as_echo "$lt_cv_dlopen_self" >&6; }
11728 if test "x$lt_cv_dlopen_self" = xyes; then
11729 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11731 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11732 if ${lt_cv_dlopen_self_static+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 if test "$cross_compiling" = yes; then :
11736 lt_cv_dlopen_self_static=cross
11737 else
11738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739 lt_status=$lt_dlunknown
11740 cat > conftest.$ac_ext <<_LT_EOF
11741 #line 11741 "configure"
11742 #include "confdefs.h"
11744 #if HAVE_DLFCN_H
11745 #include <dlfcn.h>
11746 #endif
11748 #include <stdio.h>
11750 #ifdef RTLD_GLOBAL
11751 # define LT_DLGLOBAL RTLD_GLOBAL
11752 #else
11753 # ifdef DL_GLOBAL
11754 # define LT_DLGLOBAL DL_GLOBAL
11755 # else
11756 # define LT_DLGLOBAL 0
11757 # endif
11758 #endif
11760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761 find out it does not work in some platform. */
11762 #ifndef LT_DLLAZY_OR_NOW
11763 # ifdef RTLD_LAZY
11764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11765 # else
11766 # ifdef DL_LAZY
11767 # define LT_DLLAZY_OR_NOW DL_LAZY
11768 # else
11769 # ifdef RTLD_NOW
11770 # define LT_DLLAZY_OR_NOW RTLD_NOW
11771 # else
11772 # ifdef DL_NOW
11773 # define LT_DLLAZY_OR_NOW DL_NOW
11774 # else
11775 # define LT_DLLAZY_OR_NOW 0
11776 # endif
11777 # endif
11778 # endif
11779 # endif
11780 #endif
11782 /* When -fvisbility=hidden is used, assume the code has been annotated
11783 correspondingly for the symbols needed. */
11784 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11785 void fnord () __attribute__((visibility("default")));
11786 #endif
11788 void fnord () { int i=42; }
11789 int main ()
11791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11792 int status = $lt_dlunknown;
11794 if (self)
11796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11797 else
11799 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11800 else puts (dlerror ());
11802 /* dlclose (self); */
11804 else
11805 puts (dlerror ());
11807 return status;
11809 _LT_EOF
11810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11811 (eval $ac_link) 2>&5
11812 ac_status=$?
11813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11814 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11815 (./conftest; exit; ) >&5 2>/dev/null
11816 lt_status=$?
11817 case x$lt_status in
11818 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11819 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11820 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11821 esac
11822 else :
11823 # compilation failed
11824 lt_cv_dlopen_self_static=no
11827 rm -fr conftest*
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11832 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11835 CPPFLAGS="$save_CPPFLAGS"
11836 LDFLAGS="$save_LDFLAGS"
11837 LIBS="$save_LIBS"
11839 esac
11841 case $lt_cv_dlopen_self in
11842 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11843 *) enable_dlopen_self=unknown ;;
11844 esac
11846 case $lt_cv_dlopen_self_static in
11847 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11848 *) enable_dlopen_self_static=unknown ;;
11849 esac
11868 striplib=
11869 old_striplib=
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11871 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11872 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11873 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11874 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11876 $as_echo "yes" >&6; }
11877 else
11878 # FIXME - insert some real tests, host_os isn't really good enough
11879 case $host_os in
11880 darwin*)
11881 if test -n "$STRIP" ; then
11882 striplib="$STRIP -x"
11883 old_striplib="$STRIP -S"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11885 $as_echo "yes" >&6; }
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11895 esac
11909 # Report which library types will actually be built
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11911 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11913 $as_echo "$can_build_shared" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11916 $as_echo_n "checking whether to build shared libraries... " >&6; }
11917 test "$can_build_shared" = "no" && enable_shared=no
11919 # On AIX, shared libraries and static libraries use the same namespace, and
11920 # are all built from PIC.
11921 case $host_os in
11922 aix3*)
11923 test "$enable_shared" = yes && enable_static=no
11924 if test -n "$RANLIB"; then
11925 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11926 postinstall_cmds='$RANLIB $lib'
11930 aix[4-9]*)
11931 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11932 test "$enable_shared" = yes && enable_static=no
11935 esac
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11937 $as_echo "$enable_shared" >&6; }
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11940 $as_echo_n "checking whether to build static libraries... " >&6; }
11941 # Make sure either enable_shared or enable_static is yes.
11942 test "$enable_shared" = yes || enable_static=yes
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11944 $as_echo "$enable_static" >&6; }
11950 ac_ext=c
11951 ac_cpp='$CPP $CPPFLAGS'
11952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11956 CC="$lt_save_CC"
11970 ac_config_commands="$ac_config_commands libtool"
11975 # Only expand once:
11980 if test x$enable_darwin_at_rpath = xyes; then
11981 ENABLE_DARWIN_AT_RPATH_TRUE=
11982 ENABLE_DARWIN_AT_RPATH_FALSE='#'
11983 else
11984 ENABLE_DARWIN_AT_RPATH_TRUE='#'
11985 ENABLE_DARWIN_AT_RPATH_FALSE=
11989 # Check whether --enable-largefile was given.
11990 if test "${enable_largefile+set}" = set; then :
11991 enableval=$enable_largefile;
11994 if test "$enable_largefile" != no; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11997 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11998 if ${ac_cv_sys_largefile_CC+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 ac_cv_sys_largefile_CC=no
12002 if test "$GCC" != yes; then
12003 ac_save_CC=$CC
12004 while :; do
12005 # IRIX 6.2 and later do not support large files by default,
12006 # so use the C compiler's -n32 option if that helps.
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12009 #include <sys/types.h>
12010 /* Check that off_t can represent 2**63 - 1 correctly.
12011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12012 since some C++ compilers masquerading as C compilers
12013 incorrectly reject 9223372036854775807. */
12014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12016 && LARGE_OFF_T % 2147483647 == 1)
12017 ? 1 : -1];
12019 main ()
12023 return 0;
12025 _ACEOF
12026 if ac_fn_c_try_compile "$LINENO"; then :
12027 break
12029 rm -f core conftest.err conftest.$ac_objext
12030 CC="$CC -n32"
12031 if ac_fn_c_try_compile "$LINENO"; then :
12032 ac_cv_sys_largefile_CC=' -n32'; break
12034 rm -f core conftest.err conftest.$ac_objext
12035 break
12036 done
12037 CC=$ac_save_CC
12038 rm -f conftest.$ac_ext
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12042 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12043 if test "$ac_cv_sys_largefile_CC" != no; then
12044 CC=$CC$ac_cv_sys_largefile_CC
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12048 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12049 if ${ac_cv_sys_file_offset_bits+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 while :; do
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055 #include <sys/types.h>
12056 /* Check that off_t can represent 2**63 - 1 correctly.
12057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12058 since some C++ compilers masquerading as C compilers
12059 incorrectly reject 9223372036854775807. */
12060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12062 && LARGE_OFF_T % 2147483647 == 1)
12063 ? 1 : -1];
12065 main ()
12069 return 0;
12071 _ACEOF
12072 if ac_fn_c_try_compile "$LINENO"; then :
12073 ac_cv_sys_file_offset_bits=no; break
12075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078 #define _FILE_OFFSET_BITS 64
12079 #include <sys/types.h>
12080 /* Check that off_t can represent 2**63 - 1 correctly.
12081 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12082 since some C++ compilers masquerading as C compilers
12083 incorrectly reject 9223372036854775807. */
12084 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12086 && LARGE_OFF_T % 2147483647 == 1)
12087 ? 1 : -1];
12089 main ()
12093 return 0;
12095 _ACEOF
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097 ac_cv_sys_file_offset_bits=64; break
12099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 ac_cv_sys_file_offset_bits=unknown
12101 break
12102 done
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12105 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12106 case $ac_cv_sys_file_offset_bits in #(
12107 no | unknown) ;;
12109 cat >>confdefs.h <<_ACEOF
12110 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12111 _ACEOF
12113 esac
12114 rm -rf conftest*
12115 if test $ac_cv_sys_file_offset_bits = unknown; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12117 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12118 if ${ac_cv_sys_large_files+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 while :; do
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124 #include <sys/types.h>
12125 /* Check that off_t can represent 2**63 - 1 correctly.
12126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12127 since some C++ compilers masquerading as C compilers
12128 incorrectly reject 9223372036854775807. */
12129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12131 && LARGE_OFF_T % 2147483647 == 1)
12132 ? 1 : -1];
12134 main ()
12138 return 0;
12140 _ACEOF
12141 if ac_fn_c_try_compile "$LINENO"; then :
12142 ac_cv_sys_large_files=no; break
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12147 #define _LARGE_FILES 1
12148 #include <sys/types.h>
12149 /* Check that off_t can represent 2**63 - 1 correctly.
12150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12151 since some C++ compilers masquerading as C compilers
12152 incorrectly reject 9223372036854775807. */
12153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12155 && LARGE_OFF_T % 2147483647 == 1)
12156 ? 1 : -1];
12158 main ()
12162 return 0;
12164 _ACEOF
12165 if ac_fn_c_try_compile "$LINENO"; then :
12166 ac_cv_sys_large_files=1; break
12168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12169 ac_cv_sys_large_files=unknown
12170 break
12171 done
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12174 $as_echo "$ac_cv_sys_large_files" >&6; }
12175 case $ac_cv_sys_large_files in #(
12176 no | unknown) ;;
12178 cat >>confdefs.h <<_ACEOF
12179 #define _LARGE_FILES $ac_cv_sys_large_files
12180 _ACEOF
12182 esac
12183 rm -rf conftest*
12190 backtrace_supported=yes
12192 if test -n "${with_target_subdir}"; then
12193 # We are compiling a GCC library. We can assume that the unwind
12194 # library exists.
12195 BACKTRACE_FILE="backtrace.lo simple.lo"
12196 else
12197 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12198 if test "x$ac_cv_header_unwind_h" = xyes; then :
12199 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12200 if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12201 BACKTRACE_FILE="backtrace.lo simple.lo"
12202 else
12203 BACKTRACE_FILE="nounwind.lo"
12204 backtrace_supported=no
12207 else
12208 BACKTRACE_FILE="nounwind.lo"
12209 backtrace_supported=no
12216 EXTRA_FLAGS=
12217 if test -n "${with_target_subdir}"; then
12218 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12221 $as_echo_n "checking for -funwind-tables option... " >&6; }
12222 if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 CFLAGS_hold="$CFLAGS"
12226 CFLAGS="$CFLAGS -funwind-tables"
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12229 static int f() { return 0; }
12231 main ()
12233 return f();
12235 return 0;
12237 _ACEOF
12238 if ac_fn_c_try_compile "$LINENO"; then :
12239 libbacktrace_cv_c_unwind_tables=yes
12240 else
12241 libbacktrace_cv_c_unwind_tables=no
12243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 CFLAGS="$CFLAGS_hold"
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12247 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12248 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12249 EXTRA_FLAGS=-funwind-tables
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12252 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
12253 if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 CFLAGS_hold="$CFLAGS"
12257 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12262 main ()
12264 return 0;
12266 return 0;
12268 _ACEOF
12269 if ac_fn_c_try_compile "$LINENO"; then :
12270 libbacktrace_cv_c_random_seed_string=yes
12271 else
12272 libbacktrace_cv_c_random_seed_string=no
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 CFLAGS="$CFLAGS_hold"
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12278 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12279 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12280 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12284 if test -n "${with_target_subdir}"; then
12285 # Add CET specific flags is Intel CET is enabled.
12286 # Check whether --enable-cet was given.
12287 if test "${enable_cet+set}" = set; then :
12288 enableval=$enable_cet;
12289 case "$enableval" in
12290 yes|no|auto) ;;
12291 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12292 esac
12294 else
12295 enable_cet=auto
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12300 $as_echo_n "checking for CET support... " >&6; }
12302 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12303 case "$host" in
12304 i[34567]86-*-linux* | x86_64-*-linux*)
12305 case "$enable_cet" in
12306 auto)
12307 # Check if target supports multi-byte NOPs
12308 # and if compiler and assembler support CET insn.
12309 cet_save_CFLAGS="$CFLAGS"
12310 CFLAGS="$CFLAGS -fcf-protection"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12315 main ()
12318 #if !defined(__SSE2__)
12319 #error target does not support multi-byte NOPs
12320 #else
12321 asm ("setssbsy");
12322 #endif
12325 return 0;
12327 _ACEOF
12328 if ac_fn_c_try_compile "$LINENO"; then :
12329 enable_cet=yes
12330 else
12331 enable_cet=no
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 CFLAGS="$cet_save_CFLAGS"
12336 yes)
12337 # Check if assembler supports CET.
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12342 main ()
12344 asm ("setssbsy");
12346 return 0;
12348 _ACEOF
12349 if ac_fn_c_try_compile "$LINENO"; then :
12351 else
12352 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 esac
12359 enable_cet=no
12361 esac
12362 if test x$enable_cet = xyes; then
12363 CET_FLAGS="-fcf-protection -mshstk"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12365 $as_echo "yes" >&6; }
12366 else
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12371 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12375 ac_ext=c
12376 ac_cpp='$CPP $CPPFLAGS'
12377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12381 WARN_FLAGS=
12382 save_CFLAGS="$CFLAGS"
12383 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12384 -Wmissing-prototypes -Wold-style-definition \
12385 -Wmissing-format-attribute -Wcast-qual; do
12386 # Do the check with the no- prefix removed since gcc silently
12387 # accepts any -Wno-* option on purpose
12388 case $real_option in
12389 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12390 *) option=$real_option ;;
12391 esac
12392 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12395 $as_echo_n "checking whether $CC supports $option... " >&6; }
12396 if eval \${$as_acx_Woption+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 CFLAGS="$option"
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12404 main ()
12408 return 0;
12410 _ACEOF
12411 if ac_fn_c_try_compile "$LINENO"; then :
12412 eval "$as_acx_Woption=yes"
12413 else
12414 eval "$as_acx_Woption=no"
12416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 eval ac_res=\$$as_acx_Woption
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12421 $as_echo "$ac_res" >&6; }
12422 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12423 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12425 done
12426 CFLAGS="$save_CFLAGS"
12427 ac_ext=c
12428 ac_cpp='$CPP $CPPFLAGS'
12429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12435 # Check whether --enable-werror was given.
12436 if test "${enable_werror+set}" = set; then :
12437 enableval=$enable_werror;
12440 if test "x$enable_werror" != "xno" && test -n "${with_target_subdir}"; then :
12441 WARN_FLAGS="$WARN_FLAGS -Werror"
12445 if test -n "${with_target_subdir}"; then
12448 # Check whether --with-system-libunwind was given.
12449 if test "${with_system_libunwind+set}" = set; then :
12450 withval=$with_system_libunwind;
12453 # If system-libunwind was not specifically set, pick a default setting.
12454 if test x$with_system_libunwind = x; then
12455 case ${target} in
12456 ia64-*-hpux*) with_system_libunwind=yes ;;
12457 *) with_system_libunwind=no ;;
12458 esac
12460 # Based on system-libunwind and target, do we have ipinfo?
12461 if test x$with_system_libunwind = xyes; then
12462 case ${target} in
12463 ia64-*-*) have_unwind_getipinfo=no ;;
12464 *) have_unwind_getipinfo=yes ;;
12465 esac
12466 else
12467 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12469 case ${target} in
12470 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12471 *) have_unwind_getipinfo=yes ;;
12472 esac
12476 if test x$have_unwind_getipinfo = xyes; then
12478 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12482 else
12483 ac_save_CFFLAGS="$CFLAGS"
12484 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12486 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489 #include "unwind.h"
12490 struct _Unwind_Context *context;
12491 int ip_before_insn = 0;
12493 main ()
12495 return _Unwind_GetIPInfo (context, &ip_before_insn);
12497 return 0;
12499 _ACEOF
12500 if ac_fn_c_try_link "$LINENO"; then :
12501 have_unwind_getipinfo=yes
12502 else
12503 have_unwind_getipinfo=no
12505 rm -f core conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
12507 CFLAGS="$ac_save_CFLAGS"
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12509 $as_echo "$have_unwind_getipinfo" >&6; }
12510 if test "$have_unwind_getipinfo" = "yes"; then
12512 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12517 # Enable --enable-host-shared.
12518 # Check whether --enable-host-shared was given.
12519 if test "${enable_host_shared+set}" = set; then :
12520 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12521 else
12522 PIC_FLAG=
12527 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12528 # Check whether --enable-cet was given.
12529 if test "${enable_cet+set}" = set; then :
12530 enableval=$enable_cet;
12531 case "$enableval" in
12532 yes|no|auto) ;;
12533 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12534 esac
12536 else
12537 enable_cet=auto
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12542 $as_echo_n "checking for CET support... " >&6; }
12544 case "$host" in
12545 i[34567]86-*-linux* | x86_64-*-linux*)
12546 may_have_cet=yes
12547 cet_save_CFLAGS="$CFLAGS"
12548 CFLAGS="$CFLAGS -fcf-protection"
12549 case "$enable_cet" in
12550 auto)
12551 # Check if target supports multi-byte NOPs
12552 # and if compiler and assembler support CET.
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12557 main ()
12560 #if !defined(__SSE2__)
12561 #error target does not support multi-byte NOPs
12562 #else
12563 asm ("setssbsy");
12564 #endif
12567 return 0;
12569 _ACEOF
12570 if ac_fn_c_try_compile "$LINENO"; then :
12571 enable_cet=yes
12572 else
12573 enable_cet=no
12575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 yes)
12578 # Check if compiler and assembler support CET.
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12583 main ()
12585 asm ("setssbsy");
12587 return 0;
12589 _ACEOF
12590 if ac_fn_c_try_compile "$LINENO"; then :
12591 support_cet=yes
12592 else
12593 support_cet=no
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 if test $support_cet = "no"; then
12597 if test x$enable_bootstrap != xno \
12598 && test -z "${with_build_subdir}" \
12599 && (test ! -f ../stage_current \
12600 || test `cat ../stage_current` != "stage1"); then
12601 # Require CET support only for the final GCC build.
12602 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12603 else
12604 # Don't enable CET without CET support for non-bootstrap
12605 # build, in stage1 nor for build support.
12606 enable_cet=no
12610 esac
12611 CFLAGS="$cet_save_CFLAGS"
12614 may_have_cet=no
12615 enable_cet=no
12617 esac
12619 cet_save_CFLAGS="$CFLAGS"
12620 CFLAGS="$CFLAGS -fcf-protection=none"
12621 cet_save_LDFLAGS="$LDFLAGS"
12622 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12623 if test x$may_have_cet = xyes; then
12624 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12629 main ()
12631 return 0;
12633 return 0;
12635 _ACEOF
12636 if ac_fn_c_try_link "$LINENO"; then :
12637 may_have_cet=yes
12638 else
12639 may_have_cet=no
12641 rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12645 if test x$may_have_cet = xyes; then
12646 if test x$cross_compiling = xno; then
12647 if test "$cross_compiling" = yes; then :
12648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12650 as_fn_error $? "cannot run test program while cross compiling
12651 See \`config.log' for more details" "$LINENO" 5; }
12652 else
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12657 main ()
12659 asm ("endbr32");
12660 return 0;
12663 _ACEOF
12664 if ac_fn_c_try_run "$LINENO"; then :
12665 have_multi_byte_nop=yes
12666 else
12667 have_multi_byte_nop=no
12669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12670 conftest.$ac_objext conftest.beam conftest.$ac_ext
12673 have_cet=no
12674 if test x$have_multi_byte_nop = xyes; then
12675 if test "$cross_compiling" = yes; then :
12676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12678 as_fn_error $? "cannot run test program while cross compiling
12679 See \`config.log' for more details" "$LINENO" 5; }
12680 else
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 static void
12685 foo (void)
12689 static void
12690 __attribute__ ((noinline, noclone))
12691 xxx (void (*f) (void))
12693 f ();
12696 static void
12697 __attribute__ ((noinline, noclone))
12698 bar (void)
12700 xxx (foo);
12704 main ()
12706 bar ();
12707 return 0;
12710 _ACEOF
12711 if ac_fn_c_try_run "$LINENO"; then :
12712 have_cet=no
12713 else
12714 have_cet=yes
12716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12717 conftest.$ac_objext conftest.beam conftest.$ac_ext
12721 if test x$enable_cet = xno -a x$have_cet = xyes; then
12722 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12725 else
12726 # Enable CET in cross compiler if possible so that it will run on both
12727 # CET and non-CET hosts.
12728 have_cet=yes
12730 if test x$enable_cet = xyes; then
12731 CET_HOST_FLAGS="-fcf-protection"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12733 $as_echo "yes" >&6; }
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12738 CFLAGS="$cet_save_CFLAGS"
12739 LDFLAGS="$cet_save_LDFLAGS"
12741 case x$enable_languages in
12742 *jit*)
12745 CET_HOST_FLAGS=
12747 esac
12750 # Test for __sync support.
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12752 $as_echo_n "checking __sync extensions... " >&6; }
12753 if ${libbacktrace_cv_sys_sync+:} false; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 if test -n "${with_target_subdir}"; then
12757 case "${host}" in
12758 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12759 *) libbacktrace_cv_sys_sync=yes ;;
12760 esac
12761 else
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764 int i;
12766 main ()
12768 __sync_bool_compare_and_swap (&i, i, i);
12769 __sync_lock_test_and_set (&i, 1);
12770 __sync_lock_release (&i);
12772 return 0;
12774 _ACEOF
12775 if ac_fn_c_try_link "$LINENO"; then :
12776 libbacktrace_cv_sys_sync=yes
12777 else
12778 libbacktrace_cv_sys_sync=no
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12785 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12786 BACKTRACE_SUPPORTS_THREADS=0
12787 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12788 BACKTRACE_SUPPORTS_THREADS=1
12790 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12795 # Test for __atomic support.
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12797 $as_echo_n "checking __atomic extensions... " >&6; }
12798 if ${libbacktrace_cv_sys_atomic+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 if test -n "${with_target_subdir}"; then
12802 libbacktrace_cv_sys_atomic=yes
12803 else
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12806 int i;
12808 main ()
12810 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12811 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12813 return 0;
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"; then :
12817 libbacktrace_cv_sys_atomic=yes
12818 else
12819 libbacktrace_cv_sys_atomic=no
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12826 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12827 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12829 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12833 # The library needs to be able to read the executable itself. Compile
12834 # a file to determine the executable format. The awk script
12835 # filetype.awk prints out the file type.
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12837 $as_echo_n "checking output filetype... " >&6; }
12838 if ${libbacktrace_cv_sys_filetype+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 filetype=
12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h. */
12844 int i;
12846 main ()
12848 int j;
12850 return 0;
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12855 else
12856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12858 as_fn_error $? "compiler failed
12859 See \`config.log' for more details" "$LINENO" 5; }
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 libbacktrace_cv_sys_filetype=$filetype
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12865 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12867 # Match the file type to decide what files to compile.
12868 FORMAT_FILE=
12869 backtrace_supports_data=yes
12870 case "$libbacktrace_cv_sys_filetype" in
12871 elf*) FORMAT_FILE="elf.lo" ;;
12872 macho) FORMAT_FILE="macho.lo" ;;
12873 pecoff) FORMAT_FILE="pecoff.lo"
12874 backtrace_supports_data=no
12876 xcoff*) FORMAT_FILE="xcoff.lo"
12877 backtrace_supports_data=no
12879 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12880 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12881 FORMAT_FILE="unknown.lo"
12882 backtrace_supported=no
12884 esac
12887 # ELF defines.
12888 elfsize=
12889 case "$libbacktrace_cv_sys_filetype" in
12890 elf32) elfsize=32 ;;
12891 elf64) elfsize=64 ;;
12892 *) elfsize=unused
12893 esac
12895 cat >>confdefs.h <<_ACEOF
12896 #define BACKTRACE_ELF_SIZE $elfsize
12897 _ACEOF
12899 if test "$FORMAT_FILE" = "elf.lo"; then
12900 HAVE_ELF_TRUE=
12901 HAVE_ELF_FALSE='#'
12902 else
12903 HAVE_ELF_TRUE='#'
12904 HAVE_ELF_FALSE=
12908 # XCOFF defines.
12909 xcoffsize=
12910 case "$libbacktrace_cv_sys_filetype" in
12911 xcoff32) xcoffsize=32 ;;
12912 xcoff64) xcoffsize=64 ;;
12913 *) xcoffsize=unused
12914 esac
12916 cat >>confdefs.h <<_ACEOF
12917 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12918 _ACEOF
12921 BACKTRACE_SUPPORTED=0
12922 if test "$backtrace_supported" = "yes"; then
12923 BACKTRACE_SUPPORTED=1
12927 BACKTRACE_SUPPORTS_DATA=0
12928 if test "$backtrace_supports_data" = "yes"; then
12929 BACKTRACE_SUPPORTS_DATA=1
12935 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12937 acx_cv_header_stdint=stddef.h
12938 acx_cv_header_stdint_kind="(already complete)"
12939 for i in stdint.h $inttype_headers; do
12940 unset ac_cv_type_uintptr_t
12941 unset ac_cv_type_uintmax_t
12942 unset ac_cv_type_int_least32_t
12943 unset ac_cv_type_int_fast32_t
12944 unset ac_cv_type_uint64_t
12945 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12946 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12947 #include <$i>
12949 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12950 acx_cv_header_stdint=$i
12951 else
12952 continue
12955 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12956 #include <$i>
12958 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12960 else
12961 acx_cv_header_stdint_kind="(mostly complete)"
12964 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12965 #include <$i>
12967 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12969 else
12970 acx_cv_header_stdint_kind="(mostly complete)"
12973 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12974 #include <$i>
12976 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12978 else
12979 acx_cv_header_stdint_kind="(mostly complete)"
12982 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12983 #include <$i>
12985 if test "x$ac_cv_type_uint64_t" = xyes; then :
12987 else
12988 acx_cv_header_stdint_kind="(lacks uint64_t)"
12991 break
12992 done
12993 if test "$acx_cv_header_stdint" = stddef.h; then
12994 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12995 for i in stdint.h $inttype_headers; do
12996 unset ac_cv_type_uintptr_t
12997 unset ac_cv_type_uint32_t
12998 unset ac_cv_type_uint64_t
12999 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13000 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13001 #include <$i>
13003 if test "x$ac_cv_type_uint32_t" = xyes; then :
13004 acx_cv_header_stdint=$i
13005 else
13006 continue
13009 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13010 #include <$i>
13012 if test "x$ac_cv_type_uint64_t" = xyes; then :
13016 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13017 #include <$i>
13019 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13023 break
13024 done
13026 if test "$acx_cv_header_stdint" = stddef.h; then
13027 acx_cv_header_stdint_kind="(u_intXX_t style)"
13028 for i in sys/types.h $inttype_headers; do
13029 unset ac_cv_type_u_int32_t
13030 unset ac_cv_type_u_int64_t
13031 $as_echo_n "looking for u_intXX_t types in $i, " >&6
13032 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13033 #include <$i>
13035 if test "x$ac_cv_type_u_int32_t" = xyes; then :
13036 acx_cv_header_stdint=$i
13037 else
13038 continue
13041 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13042 #include <$i>
13044 if test "x$ac_cv_type_u_int64_t" = xyes; then :
13048 break
13049 done
13051 if test "$acx_cv_header_stdint" = stddef.h; then
13052 acx_cv_header_stdint_kind="(using manual detection)"
13055 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13056 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13057 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13058 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13059 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13061 # ----------------- Summarize what we found so far
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
13064 $as_echo_n "checking what to include in gstdint.h... " >&6; }
13066 case `$as_basename -- gstdint.h ||
13067 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
13068 Xgstdint.h : 'X\(//\)$' \| \
13069 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
13070 $as_echo X/gstdint.h |
13071 sed '/^.*\/\([^/][^/]*\)\/*$/{
13072 s//\1/
13075 /^X\/\(\/\/\)$/{
13076 s//\1/
13079 /^X\/\(\/\).*/{
13080 s//\1/
13083 s/.*/./; q'` in
13084 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13085 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13086 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13087 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13088 *) ;;
13089 esac
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13092 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13094 # ----------------- done included file, check C basic types --------
13096 # Lacking an uintptr_t? Test size of void *
13097 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13098 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13099 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13100 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13101 # This bug is HP SR number 8606223364.
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13103 $as_echo_n "checking size of void *... " >&6; }
13104 if ${ac_cv_sizeof_void_p+:} false; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13109 else
13110 if test "$ac_cv_type_void_p" = yes; then
13111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13113 as_fn_error 77 "cannot compute sizeof (void *)
13114 See \`config.log' for more details" "$LINENO" 5; }
13115 else
13116 ac_cv_sizeof_void_p=0
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13122 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13126 cat >>confdefs.h <<_ACEOF
13127 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13128 _ACEOF
13131 esac
13133 # Lacking an uint64_t? Test size of long
13134 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13135 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13138 # This bug is HP SR number 8606223364.
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13140 $as_echo_n "checking size of long... " >&6; }
13141 if ${ac_cv_sizeof_long+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13146 else
13147 if test "$ac_cv_type_long" = yes; then
13148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13150 as_fn_error 77 "cannot compute sizeof (long)
13151 See \`config.log' for more details" "$LINENO" 5; }
13152 else
13153 ac_cv_sizeof_long=0
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13159 $as_echo "$ac_cv_sizeof_long" >&6; }
13163 cat >>confdefs.h <<_ACEOF
13164 #define SIZEOF_LONG $ac_cv_sizeof_long
13165 _ACEOF
13168 esac
13170 if test $acx_cv_header_stdint = stddef.h; then
13171 # Lacking a good header? Test size of everything and deduce all types.
13172 # The cast to long int works around a bug in the HP C Compiler
13173 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13174 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13175 # This bug is HP SR number 8606223364.
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13177 $as_echo_n "checking size of int... " >&6; }
13178 if ${ac_cv_sizeof_int+:} false; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13183 else
13184 if test "$ac_cv_type_int" = yes; then
13185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13187 as_fn_error 77 "cannot compute sizeof (int)
13188 See \`config.log' for more details" "$LINENO" 5; }
13189 else
13190 ac_cv_sizeof_int=0
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13196 $as_echo "$ac_cv_sizeof_int" >&6; }
13200 cat >>confdefs.h <<_ACEOF
13201 #define SIZEOF_INT $ac_cv_sizeof_int
13202 _ACEOF
13205 # The cast to long int works around a bug in the HP C Compiler
13206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13208 # This bug is HP SR number 8606223364.
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13210 $as_echo_n "checking size of short... " >&6; }
13211 if ${ac_cv_sizeof_short+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13216 else
13217 if test "$ac_cv_type_short" = yes; then
13218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13220 as_fn_error 77 "cannot compute sizeof (short)
13221 See \`config.log' for more details" "$LINENO" 5; }
13222 else
13223 ac_cv_sizeof_short=0
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13229 $as_echo "$ac_cv_sizeof_short" >&6; }
13233 cat >>confdefs.h <<_ACEOF
13234 #define SIZEOF_SHORT $ac_cv_sizeof_short
13235 _ACEOF
13238 # The cast to long int works around a bug in the HP C Compiler
13239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13241 # This bug is HP SR number 8606223364.
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13243 $as_echo_n "checking size of char... " >&6; }
13244 if ${ac_cv_sizeof_char+:} false; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13249 else
13250 if test "$ac_cv_type_char" = yes; then
13251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13253 as_fn_error 77 "cannot compute sizeof (char)
13254 See \`config.log' for more details" "$LINENO" 5; }
13255 else
13256 ac_cv_sizeof_char=0
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13262 $as_echo "$ac_cv_sizeof_char" >&6; }
13266 cat >>confdefs.h <<_ACEOF
13267 #define SIZEOF_CHAR $ac_cv_sizeof_char
13268 _ACEOF
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13273 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13274 case "$ac_cv_sizeof_char" in
13275 1) acx_cv_type_int8_t=char ;;
13276 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13277 esac
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13279 $as_echo "$acx_cv_type_int8_t" >&6; }
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13282 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13283 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13284 2:*) acx_cv_type_int16_t=int ;;
13285 *:2) acx_cv_type_int16_t=short ;;
13286 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13287 esac
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13289 $as_echo "$acx_cv_type_int16_t" >&6; }
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13292 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13293 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13294 4:*) acx_cv_type_int32_t=int ;;
13295 *:4) acx_cv_type_int32_t=long ;;
13296 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13297 esac
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13299 $as_echo "$acx_cv_type_int32_t" >&6; }
13302 # These tests are here to make the output prettier
13304 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13305 case "$ac_cv_sizeof_long" in
13306 8) acx_cv_type_int64_t=long ;;
13307 esac
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13309 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13311 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13314 # Now we can use the above types
13316 if test "$ac_cv_type_uintptr_t" != yes; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13318 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13319 case $ac_cv_sizeof_void_p in
13320 2) acx_cv_type_intptr_t=int16_t ;;
13321 4) acx_cv_type_intptr_t=int32_t ;;
13322 8) acx_cv_type_intptr_t=int64_t ;;
13323 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13324 esac
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13326 $as_echo "$acx_cv_type_intptr_t" >&6; }
13329 # ----------------- done all checks, emit header -------------
13330 ac_config_commands="$ac_config_commands gstdint.h"
13335 for ac_header in sys/mman.h
13336 do :
13337 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13338 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_SYS_MMAN_H 1
13341 _ACEOF
13345 done
13347 if test "$ac_cv_header_sys_mman_h" = "no"; then
13348 have_mmap=no
13349 else
13350 if test -n "${with_target_subdir}"; then
13351 # When built as a GCC target library, we can't do a link test. We
13352 # simply assume that if we have mman.h, we have mmap.
13353 have_mmap=yes
13354 case "${host}" in
13355 *-*-msdosdjgpp)
13356 # DJGPP has sys/man.h, but no mmap
13357 have_mmap=no ;;
13358 esac
13359 else
13360 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13361 if test "x$ac_cv_func_mmap" = xyes; then :
13362 have_mmap=yes
13363 else
13364 have_mmap=no
13369 if test "$have_mmap" = "no"; then
13370 VIEW_FILE=read.lo
13371 ALLOC_FILE=alloc.lo
13372 else
13373 VIEW_FILE=mmapio.lo
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13377 #include <sys/mman.h>
13378 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13379 #error no MAP_ANONYMOUS
13380 #endif
13382 _ACEOF
13383 if ac_fn_c_try_cpp "$LINENO"; then :
13384 ALLOC_FILE=mmap.lo
13385 else
13386 ALLOC_FILE=alloc.lo
13388 rm -f conftest.err conftest.i conftest.$ac_ext
13393 BACKTRACE_USES_MALLOC=0
13394 if test "$ALLOC_FILE" = "alloc.lo"; then
13395 BACKTRACE_USES_MALLOC=1
13399 # Check for dl_iterate_phdr.
13400 for ac_header in link.h sys/link.h
13401 do :
13402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13403 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13405 cat >>confdefs.h <<_ACEOF
13406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13407 _ACEOF
13411 done
13413 if test "$ac_cv_header_link_h" = "no" -a "$ac_cv_header_sys_link_h" = "no"; then
13414 have_dl_iterate_phdr=no
13415 else
13416 if test -n "${with_target_subdir}"; then
13417 link_h=link.h
13418 if test "$ac_cv_header_link_h" = "no"; then
13419 link_h=sys/link.h
13421 # When built as a GCC target library, we can't do a link test.
13422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h. */
13424 #include <$link_h>
13426 _ACEOF
13427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13428 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13429 have_dl_iterate_phdr=yes
13430 else
13431 have_dl_iterate_phdr=no
13433 rm -f conftest*
13435 else
13436 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13437 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13438 have_dl_iterate_phdr=yes
13439 else
13440 have_dl_iterate_phdr=no
13445 if test "$have_dl_iterate_phdr" = "yes"; then
13447 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13451 # Check for header file for Mach-O image functions.
13452 for ac_header in mach-o/dyld.h
13453 do :
13454 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13455 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13456 cat >>confdefs.h <<_ACEOF
13457 #define HAVE_MACH_O_DYLD_H 1
13458 _ACEOF
13462 done
13465 # Check for loadquery.
13466 for ac_header in sys/ldr.h
13467 do :
13468 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13469 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_SYS_LDR_H 1
13472 _ACEOF
13476 done
13478 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13479 have_loadquery=no
13480 else
13481 if test -n "${with_target_subdir}"; then
13482 # When built as a GCC target library, we can't do a link test.
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 #include <sys/ldr.h>
13487 _ACEOF
13488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13489 $EGREP "loadquery" >/dev/null 2>&1; then :
13490 have_loadquery=yes
13491 else
13492 have_loadquery=no
13494 rm -f conftest*
13496 else
13497 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13498 if test "x$ac_cv_func_loadquery" = xyes; then :
13499 have_loadquery=yes
13500 else
13501 have_loadquery=no
13506 if test "$have_loadquery" = "yes"; then
13508 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13512 for ac_header in windows.h
13513 do :
13514 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13515 if test "x$ac_cv_header_windows_h" = xyes; then :
13516 cat >>confdefs.h <<_ACEOF
13517 #define HAVE_WINDOWS_H 1
13518 _ACEOF
13522 done
13525 # Check for the fcntl function.
13526 if test -n "${with_target_subdir}"; then
13527 case "${host}" in
13528 *-*-mingw*) have_fcntl=no ;;
13529 *) have_fcntl=yes ;;
13530 esac
13531 else
13532 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13533 if test "x$ac_cv_func_fcntl" = xyes; then :
13534 have_fcntl=yes
13535 else
13536 have_fcntl=no
13540 if test "$have_fcntl" = "yes"; then
13542 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13546 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13547 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13548 ac_have_decl=1
13549 else
13550 ac_have_decl=0
13553 cat >>confdefs.h <<_ACEOF
13554 #define HAVE_DECL_STRNLEN $ac_have_decl
13555 _ACEOF
13556 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13557 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13558 ac_have_decl=1
13559 else
13560 ac_have_decl=0
13563 cat >>confdefs.h <<_ACEOF
13564 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13565 _ACEOF
13567 for ac_func in lstat readlink
13568 do :
13569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13570 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13571 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13572 cat >>confdefs.h <<_ACEOF
13573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13574 _ACEOF
13577 done
13580 # Check for getexecname function.
13581 if test -n "${with_target_subdir}"; then
13582 case "${host}" in
13583 *-*-solaris2*) have_getexecname=yes ;;
13584 *) have_getexecname=no ;;
13585 esac
13586 else
13587 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13588 if test "x$ac_cv_func_getexecname" = xyes; then :
13589 have_getexecname=yes
13590 else
13591 have_getexecname=no
13595 if test "$have_getexecname" = "yes"; then
13597 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13601 # Check for _pgmptr variable, contains the executable filename on windows
13602 ac_fn_c_check_decl "$LINENO" "_pgmptr" "ac_cv_have_decl__pgmptr" "$ac_includes_default"
13603 if test "x$ac_cv_have_decl__pgmptr" = xyes; then :
13604 ac_have_decl=1
13605 else
13606 ac_have_decl=0
13609 cat >>confdefs.h <<_ACEOF
13610 #define HAVE_DECL__PGMPTR $ac_have_decl
13611 _ACEOF
13614 # Check for sysctl definitions.
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13617 $as_echo_n "checking for KERN_PROC... " >&6; }
13618 if ${libbacktrace_cv_proc+:} false; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13624 #include <sys/types.h>
13625 #include <sys/sysctl.h>
13628 main ()
13630 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13632 return 0;
13634 _ACEOF
13635 if ac_fn_c_try_compile "$LINENO"; then :
13636 libbacktrace_cv_proc=yes
13637 else
13638 libbacktrace_cv_proc=no
13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13643 $as_echo "$libbacktrace_cv_proc" >&6; }
13644 if test "$libbacktrace_cv_proc" = "yes"; then
13646 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13651 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13652 if ${libbacktrace_cv_procargs+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13658 #include <sys/types.h>
13659 #include <sys/sysctl.h>
13662 main ()
13664 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13666 return 0;
13668 _ACEOF
13669 if ac_fn_c_try_compile "$LINENO"; then :
13670 libbacktrace_cv_procargs=yes
13671 else
13672 libbacktrace_cv_procargs=no
13674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13677 $as_echo "$libbacktrace_cv_procargs" >&6; }
13678 if test "$libbacktrace_cv_procargs" = "yes"; then
13680 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13684 # Check for the clock_gettime function.
13685 for ac_func in clock_gettime
13686 do :
13687 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13688 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13689 cat >>confdefs.h <<_ACEOF
13690 #define HAVE_CLOCK_GETTIME 1
13691 _ACEOF
13694 done
13696 clock_gettime_link=
13697 # At least for glibc, clock_gettime is in librt. But don't
13698 # pull that in if it still doesn't give us the function we want. This
13699 # test is copied from libgomp, and modified to not link in -lrt as
13700 # we're using this for test timing only.
13701 if test "$ac_cv_func_clock_gettime" = no; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13703 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13704 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13705 $as_echo_n "(cached) " >&6
13706 else
13707 ac_check_lib_save_LIBS=$LIBS
13708 LIBS="-lrt $LIBS"
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13712 /* Override any GCC internal prototype to avoid an error.
13713 Use char because int might match the return type of a GCC
13714 builtin and then its argument prototype would still apply. */
13715 #ifdef __cplusplus
13716 extern "C"
13717 #endif
13718 char clock_gettime ();
13720 main ()
13722 return clock_gettime ();
13724 return 0;
13726 _ACEOF
13727 if ac_fn_c_try_link "$LINENO"; then :
13728 ac_cv_lib_rt_clock_gettime=yes
13729 else
13730 ac_cv_lib_rt_clock_gettime=no
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13737 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13738 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13739 CLOCK_GETTIME_LINK=-lrt
13741 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13749 $as_echo_n "checking whether -pthread is supported... " >&6; }
13750 if ${libgo_cv_lib_pthread+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 CFLAGS_hold=$CFLAGS
13754 CFLAGS="$CFLAGS -pthread"
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 int i;
13758 _ACEOF
13759 if ac_fn_c_try_compile "$LINENO"; then :
13760 libgo_cv_lib_pthread=yes
13761 else
13762 libgo_cv_lib_pthread=no
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 CFLAGS=$CFLAGS_hold
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13768 $as_echo "$libgo_cv_lib_pthread" >&6; }
13769 PTHREAD_CFLAGS=
13770 if test "$libgo_cv_lib_pthread" = yes; then
13771 PTHREAD_CFLAGS=-pthread
13775 if test "$libgo_cv_lib_pthread" = yes; then
13776 HAVE_PTHREAD_TRUE=
13777 HAVE_PTHREAD_FALSE='#'
13778 else
13779 HAVE_PTHREAD_TRUE='#'
13780 HAVE_PTHREAD_FALSE=
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13785 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13786 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 CFLAGS_hold=$CFLAGS
13790 CFLAGS="$CFLAGS -gdwarf-5"
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793 int i;
13795 main ()
13797 return 0;
13799 return 0;
13801 _ACEOF
13802 if ac_fn_c_try_link "$LINENO"; then :
13803 libbacktrace_cv_lib_dwarf5=yes
13804 else
13805 libbacktrace_cv_lib_dwarf5=no
13807 rm -f core conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13809 CFLAGS=$CFLAGS_hold
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13812 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13813 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13814 HAVE_DWARF5_TRUE=
13815 HAVE_DWARF5_FALSE='#'
13816 else
13817 HAVE_DWARF5_TRUE='#'
13818 HAVE_DWARF5_FALSE=
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13823 $as_echo_n "checking for compress in -lz... " >&6; }
13824 if ${ac_cv_lib_z_compress+:} false; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 ac_check_lib_save_LIBS=$LIBS
13828 LIBS="-lz $LIBS"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13835 #ifdef __cplusplus
13836 extern "C"
13837 #endif
13838 char compress ();
13840 main ()
13842 return compress ();
13844 return 0;
13846 _ACEOF
13847 if ac_fn_c_try_link "$LINENO"; then :
13848 ac_cv_lib_z_compress=yes
13849 else
13850 ac_cv_lib_z_compress=no
13852 rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LIBS=$ac_check_lib_save_LIBS
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13857 $as_echo "$ac_cv_lib_z_compress" >&6; }
13858 if test "x$ac_cv_lib_z_compress" = xyes; then :
13860 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13864 if test "$ac_cv_lib_z_compress" = yes; then
13865 HAVE_ZLIB_TRUE=
13866 HAVE_ZLIB_FALSE='#'
13867 else
13868 HAVE_ZLIB_TRUE='#'
13869 HAVE_ZLIB_FALSE=
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --build-id is supported" >&5
13874 $as_echo_n "checking whether --build-id is supported... " >&6; }
13875 if ${libbacktrace_cv_ld_buildid+:} false; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878 LDFLAGS_hold=$LDFLAGS
13879 LDFLAGS="$LDFLAGS -Wl,--build-id"
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13884 main ()
13888 return 0;
13890 _ACEOF
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 libbacktrace_cv_ld_buildid=yes
13893 else
13894 libbacktrace_cv_ld_buildid=no
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898 LDFLAGS=$LDFLAGS_hold
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_ld_buildid" >&5
13901 $as_echo "$libbacktrace_cv_ld_buildid" >&6; }
13902 if test "$libbacktrace_cv_ld_buildid" = yes; then
13903 HAVE_BUILDID_TRUE=
13904 HAVE_BUILDID_FALSE='#'
13905 else
13906 HAVE_BUILDID_TRUE='#'
13907 HAVE_BUILDID_FALSE=
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13912 $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
13913 if ${libgo_cv_ld_compress+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 LDFLAGS_hold=$LDFLAGS
13917 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13922 main ()
13926 return 0;
13928 _ACEOF
13929 if ac_fn_c_try_link "$LINENO"; then :
13930 libgo_cv_ld_compress=yes
13931 else
13932 libgo_cv_ld_compress=no
13934 rm -f core conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
13936 LDFLAGS=$LDFLAGS_hold
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13939 $as_echo "$libgo_cv_ld_compress" >&6; }
13940 if test "$libgo_cv_ld_compress" = yes; then
13941 HAVE_COMPRESSED_DEBUG_TRUE=
13942 HAVE_COMPRESSED_DEBUG_FALSE='#'
13943 else
13944 HAVE_COMPRESSED_DEBUG_TRUE='#'
13945 HAVE_COMPRESSED_DEBUG_FALSE=
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
13950 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
13951 if ${ac_cv_lib_zstd_ZSTD_compress+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 ac_check_lib_save_LIBS=$LIBS
13955 LIBS="-lzstd $LIBS"
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13959 /* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
13962 #ifdef __cplusplus
13963 extern "C"
13964 #endif
13965 char ZSTD_compress ();
13967 main ()
13969 return ZSTD_compress ();
13971 return 0;
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"; then :
13975 ac_cv_lib_zstd_ZSTD_compress=yes
13976 else
13977 ac_cv_lib_zstd_ZSTD_compress=no
13979 rm -f core conftest.err conftest.$ac_objext \
13980 conftest$ac_exeext conftest.$ac_ext
13981 LIBS=$ac_check_lib_save_LIBS
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
13984 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
13985 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes; then :
13987 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
13991 if test "$ac_cv_lib_zstd_ZSTD_compress" = yes; then
13992 HAVE_ZSTD_TRUE=
13993 HAVE_ZSTD_FALSE='#'
13994 else
13995 HAVE_ZSTD_TRUE='#'
13996 HAVE_ZSTD_FALSE=
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zstd is supported" >&5
14001 $as_echo_n "checking whether --compress-debug-sections=zstd is supported... " >&6; }
14002 if ${libgo_cv_ld_compress_zstd+:} false; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 LDFLAGS_hold=$LDFLAGS
14006 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zstd"
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14011 main ()
14015 return 0;
14017 _ACEOF
14018 if ac_fn_c_try_link "$LINENO"; then :
14019 libgo_cv_ld_compress_zstd=yes
14020 else
14021 libgo_cv_ld_compress_zstd=no
14023 rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025 LDFLAGS=$LDFLAGS_hold
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zstd" >&5
14028 $as_echo "$libgo_cv_ld_compress_zstd" >&6; }
14029 if test "$libgo_cv_ld_compress_zstd" = yes; then
14030 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE=
14031 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE='#'
14032 else
14033 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE='#'
14034 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE=
14039 # Extract the first word of "objcopy", so it can be a program name with args.
14040 set dummy objcopy; ac_word=$2
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14042 $as_echo_n "checking for $ac_word... " >&6; }
14043 if ${ac_cv_prog_OBJCOPY+:} false; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 if test -n "$OBJCOPY"; then
14047 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
14048 else
14049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14052 IFS=$as_save_IFS
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
14055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14056 ac_cv_prog_OBJCOPY="objcopy"
14057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 break 2
14060 done
14061 done
14062 IFS=$as_save_IFS
14066 OBJCOPY=$ac_cv_prog_OBJCOPY
14067 if test -n "$OBJCOPY"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
14069 $as_echo "$OBJCOPY" >&6; }
14070 else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14076 # Extract the first word of "readelf", so it can be a program name with args.
14077 set dummy readelf; ac_word=$2
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14079 $as_echo_n "checking for $ac_word... " >&6; }
14080 if ${ac_cv_prog_READELF+:} false; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 if test -n "$READELF"; then
14084 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14085 else
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14089 IFS=$as_save_IFS
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14093 ac_cv_prog_READELF="readelf"
14094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14095 break 2
14097 done
14098 done
14099 IFS=$as_save_IFS
14103 READELF=$ac_cv_prog_READELF
14104 if test -n "$READELF"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14106 $as_echo "$READELF" >&6; }
14107 else
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
14114 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
14115 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
14116 $as_echo_n "(cached) " >&6
14117 else
14118 if test -n "${with_target_subdir}"; then
14119 libbacktrace_cv_objcopy_debuglink=no
14120 elif ! test -n "${OBJCOPY}"; then
14121 libbacktrace_cv_objcopy_debuglink=no
14122 elif ${OBJCOPY} --help | grep add-gnu-debuglink >/dev/null 2>&1; then
14123 libbacktrace_cv_objcopy_debuglink=yes
14124 else
14125 libbacktrace_cv_objcopy_debuglink=no
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
14129 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
14130 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
14131 HAVE_OBJCOPY_DEBUGLINK_TRUE=
14132 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
14133 else
14134 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
14135 HAVE_OBJCOPY_DEBUGLINK_FALSE=
14140 # Extract the first word of "dsymutil", so it can be a program name with args.
14141 set dummy dsymutil; ac_word=$2
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14143 $as_echo_n "checking for $ac_word... " >&6; }
14144 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14145 $as_echo_n "(cached) " >&6
14146 else
14147 if test -n "$DSYMUTIL"; then
14148 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14149 else
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in $PATH
14153 IFS=$as_save_IFS
14154 test -z "$as_dir" && as_dir=.
14155 for ac_exec_ext in '' $ac_executable_extensions; do
14156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14157 ac_cv_prog_DSYMUTIL="dsymutil"
14158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 break 2
14161 done
14162 done
14163 IFS=$as_save_IFS
14167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14168 if test -n "$DSYMUTIL"; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14170 $as_echo "$DSYMUTIL" >&6; }
14171 else
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14173 $as_echo "no" >&6; }
14177 if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
14178 USE_DSYMUTIL_TRUE=
14179 USE_DSYMUTIL_FALSE='#'
14180 else
14181 USE_DSYMUTIL_TRUE='#'
14182 USE_DSYMUTIL_FALSE=
14187 # Extract the first word of "nm", so it can be a program name with args.
14188 set dummy nm; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if ${ac_cv_prog_NM+:} false; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 if test -n "$NM"; then
14195 ac_cv_prog_NM="$NM" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14200 IFS=$as_save_IFS
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14204 ac_cv_prog_NM="nm"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14206 break 2
14208 done
14209 done
14210 IFS=$as_save_IFS
14214 NM=$ac_cv_prog_NM
14215 if test -n "$NM"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
14217 $as_echo "$NM" >&6; }
14218 else
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14220 $as_echo "no" >&6; }
14225 # Extract the first word of "xz", so it can be a program name with args.
14226 set dummy xz; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228 $as_echo_n "checking for $ac_word... " >&6; }
14229 if ${ac_cv_prog_XZ+:} false; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 if test -n "$XZ"; then
14233 ac_cv_prog_XZ="$XZ" # Let the user override the test.
14234 else
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14238 IFS=$as_save_IFS
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14242 ac_cv_prog_XZ="xz"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 break 2
14246 done
14247 done
14248 IFS=$as_save_IFS
14252 XZ=$ac_cv_prog_XZ
14253 if test -n "$XZ"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
14255 $as_echo "$XZ" >&6; }
14256 else
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14262 if test "$XZ" != ""; then
14263 HAVE_XZ_TRUE=
14264 HAVE_XZ_FALSE='#'
14265 else
14266 HAVE_XZ_TRUE='#'
14267 HAVE_XZ_FALSE=
14270 # Extract the first word of "comm", so it can be a program name with args.
14271 set dummy comm; ac_word=$2
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14273 $as_echo_n "checking for $ac_word... " >&6; }
14274 if ${ac_cv_prog_COMM+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 if test -n "$COMM"; then
14278 ac_cv_prog_COMM="$COMM" # Let the user override the test.
14279 else
14280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281 for as_dir in $PATH
14283 IFS=$as_save_IFS
14284 test -z "$as_dir" && as_dir=.
14285 for ac_exec_ext in '' $ac_executable_extensions; do
14286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14287 ac_cv_prog_COMM="comm"
14288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14289 break 2
14291 done
14292 done
14293 IFS=$as_save_IFS
14297 COMM=$ac_cv_prog_COMM
14298 if test -n "$COMM"; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
14300 $as_echo "$COMM" >&6; }
14301 else
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14303 $as_echo "no" >&6; }
14307 if test "$COMM" != ""; then
14308 HAVE_COMM_TRUE=
14309 HAVE_COMM_FALSE='#'
14310 else
14311 HAVE_COMM_TRUE='#'
14312 HAVE_COMM_FALSE=
14316 if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
14317 HAVE_MINIDEBUG_TRUE=
14318 HAVE_MINIDEBUG_FALSE='#'
14319 else
14320 HAVE_MINIDEBUG_TRUE='#'
14321 HAVE_MINIDEBUG_FALSE=
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
14326 $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
14327 if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
14328 $as_echo_n "(cached) " >&6
14329 else
14330 ac_check_lib_save_LIBS=$LIBS
14331 LIBS="-llzma $LIBS"
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14335 /* Override any GCC internal prototype to avoid an error.
14336 Use char because int might match the return type of a GCC
14337 builtin and then its argument prototype would still apply. */
14338 #ifdef __cplusplus
14339 extern "C"
14340 #endif
14341 char lzma_auto_decoder ();
14343 main ()
14345 return lzma_auto_decoder ();
14347 return 0;
14349 _ACEOF
14350 if ac_fn_c_try_link "$LINENO"; then :
14351 ac_cv_lib_lzma_lzma_auto_decoder=yes
14352 else
14353 ac_cv_lib_lzma_lzma_auto_decoder=no
14355 rm -f core conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
14357 LIBS=$ac_check_lib_save_LIBS
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
14360 $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
14361 if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
14363 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14367 if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
14368 HAVE_LIBLZMA_TRUE=
14369 HAVE_LIBLZMA_FALSE='#'
14370 else
14371 HAVE_LIBLZMA_TRUE='#'
14372 HAVE_LIBLZMA_FALSE=
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
14377 $as_echo_n "checking whether tests can run... " >&6; }
14378 if ${libbacktrace_cv_sys_native+:} false; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 if test "$cross_compiling" = yes; then :
14382 libbacktrace_cv_sys_native=no
14383 else
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14388 main ()
14390 return 0;
14392 return 0;
14394 _ACEOF
14395 if ac_fn_c_try_run "$LINENO"; then :
14396 libbacktrace_cv_sys_native=yes
14397 else
14398 libbacktrace_cv_sys_native=no
14400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14401 conftest.$ac_objext conftest.beam conftest.$ac_ext
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
14406 $as_echo "$libbacktrace_cv_sys_native" >&6; }
14407 if test "$libbacktrace_cv_sys_native" = "yes"; then
14408 NATIVE_TRUE=
14409 NATIVE_FALSE='#'
14410 else
14411 NATIVE_TRUE='#'
14412 NATIVE_FALSE=
14416 if test "${multilib}" = "yes"; then
14417 multilib_arg="--enable-multilib"
14418 else
14419 multilib_arg=
14422 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
14424 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
14427 # We need multilib support, but only if configuring for the target.
14428 ac_config_commands="$ac_config_commands default"
14431 cat >confcache <<\_ACEOF
14432 # This file is a shell script that caches the results of configure
14433 # tests run on this system so they can be shared between configure
14434 # scripts and configure runs, see configure's option --config-cache.
14435 # It is not useful on other systems. If it contains results you don't
14436 # want to keep, you may remove or edit it.
14438 # config.status only pays attention to the cache file if you give it
14439 # the --recheck option to rerun configure.
14441 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14442 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14443 # following values.
14445 _ACEOF
14447 # The following way of writing the cache mishandles newlines in values,
14448 # but we know of no workaround that is simple, portable, and efficient.
14449 # So, we kill variables containing newlines.
14450 # Ultrix sh set writes to stderr and can't be redirected directly,
14451 # and sets the high bit in the cache file unless we assign to the vars.
14453 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14454 eval ac_val=\$$ac_var
14455 case $ac_val in #(
14456 *${as_nl}*)
14457 case $ac_var in #(
14458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14460 esac
14461 case $ac_var in #(
14462 _ | IFS | as_nl) ;; #(
14463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14464 *) { eval $ac_var=; unset $ac_var;} ;;
14465 esac ;;
14466 esac
14467 done
14469 (set) 2>&1 |
14470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14471 *${as_nl}ac_space=\ *)
14472 # `set' does not quote correctly, so add quotes: double-quote
14473 # substitution turns \\\\ into \\, and sed turns \\ into \.
14474 sed -n \
14475 "s/'/'\\\\''/g;
14476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14477 ;; #(
14479 # `set' quotes correctly as required by POSIX, so do not add quotes.
14480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14482 esac |
14483 sort
14485 sed '
14486 /^ac_cv_env_/b end
14487 t clear
14488 :clear
14489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14490 t end
14491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14492 :end' >>confcache
14493 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14494 if test -w "$cache_file"; then
14495 if test "x$cache_file" != "x/dev/null"; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14497 $as_echo "$as_me: updating cache $cache_file" >&6;}
14498 if test ! -f "$cache_file" || test -h "$cache_file"; then
14499 cat confcache >"$cache_file"
14500 else
14501 case $cache_file in #(
14502 */* | ?:*)
14503 mv -f confcache "$cache_file"$$ &&
14504 mv -f "$cache_file"$$ "$cache_file" ;; #(
14506 mv -f confcache "$cache_file" ;;
14507 esac
14510 else
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14512 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14515 rm -f confcache
14517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14518 # Let make expand exec_prefix.
14519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14521 DEFS=-DHAVE_CONFIG_H
14523 ac_libobjs=
14524 ac_ltlibobjs=
14526 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14527 # 1. Remove the extension, and $U if already installed.
14528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14529 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14531 # will be set to the directory where LIBOBJS objects are built.
14532 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14533 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14534 done
14535 LIBOBJS=$ac_libobjs
14537 LTLIBOBJS=$ac_ltlibobjs
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14541 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14542 if test -n "$am_sleep_pid"; then
14543 # Hide warnings about reused PIDs.
14544 wait $am_sleep_pid 2>/dev/null
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14547 $as_echo "done" >&6; }
14548 if test -n "$EXEEXT"; then
14549 am__EXEEXT_TRUE=
14550 am__EXEEXT_FALSE='#'
14551 else
14552 am__EXEEXT_TRUE='#'
14553 am__EXEEXT_FALSE=
14556 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14557 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14560 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14561 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14564 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
14565 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
14566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14568 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14569 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14572 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14573 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14576 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14577 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14580 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14581 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14584 if test -z "${HAVE_BUILDID_TRUE}" && test -z "${HAVE_BUILDID_FALSE}"; then
14585 as_fn_error $? "conditional \"HAVE_BUILDID\" was never defined.
14586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14588 if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
14589 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
14590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14592 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14593 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14596 if test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_FALSE}"; then
14597 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZSTD\" was never defined.
14598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14600 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14601 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14604 if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
14605 as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
14606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14608 if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
14609 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
14610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14612 if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
14613 as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
14614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14616 if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
14617 as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
14618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14620 if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
14621 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
14622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14624 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14625 as_fn_error $? "conditional \"NATIVE\" was never defined.
14626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14629 : "${CONFIG_STATUS=./config.status}"
14630 ac_write_fail=0
14631 ac_clean_files_save=$ac_clean_files
14632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14634 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14635 as_write_fail=0
14636 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14637 #! $SHELL
14638 # Generated by $as_me.
14639 # Run this file to recreate the current configuration.
14640 # Compiler output produced by configure, useful for debugging
14641 # configure, is in config.log if it exists.
14643 debug=false
14644 ac_cs_recheck=false
14645 ac_cs_silent=false
14647 SHELL=\${CONFIG_SHELL-$SHELL}
14648 export SHELL
14649 _ASEOF
14650 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14651 ## -------------------- ##
14652 ## M4sh Initialization. ##
14653 ## -------------------- ##
14655 # Be more Bourne compatible
14656 DUALCASE=1; export DUALCASE # for MKS sh
14657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14658 emulate sh
14659 NULLCMD=:
14660 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14661 # is contrary to our usage. Disable this feature.
14662 alias -g '${1+"$@"}'='"$@"'
14663 setopt NO_GLOB_SUBST
14664 else
14665 case `(set -o) 2>/dev/null` in #(
14666 *posix*) :
14667 set -o posix ;; #(
14668 *) :
14670 esac
14674 as_nl='
14676 export as_nl
14677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14681 # Prefer a ksh shell builtin over an external printf program on Solaris,
14682 # but without wasting forks for bash or zsh.
14683 if test -z "$BASH_VERSION$ZSH_VERSION" \
14684 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14685 as_echo='print -r --'
14686 as_echo_n='print -rn --'
14687 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14688 as_echo='printf %s\n'
14689 as_echo_n='printf %s'
14690 else
14691 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14692 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14693 as_echo_n='/usr/ucb/echo -n'
14694 else
14695 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14696 as_echo_n_body='eval
14697 arg=$1;
14698 case $arg in #(
14699 *"$as_nl"*)
14700 expr "X$arg" : "X\\(.*\\)$as_nl";
14701 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14702 esac;
14703 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14705 export as_echo_n_body
14706 as_echo_n='sh -c $as_echo_n_body as_echo'
14708 export as_echo_body
14709 as_echo='sh -c $as_echo_body as_echo'
14712 # The user is always right.
14713 if test "${PATH_SEPARATOR+set}" != set; then
14714 PATH_SEPARATOR=:
14715 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14716 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14717 PATH_SEPARATOR=';'
14722 # IFS
14723 # We need space, tab and new line, in precisely that order. Quoting is
14724 # there to prevent editors from complaining about space-tab.
14725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14726 # splitting by setting IFS to empty value.)
14727 IFS=" "" $as_nl"
14729 # Find who we are. Look in the path if we contain no directory separator.
14730 as_myself=
14731 case $0 in #((
14732 *[\\/]* ) as_myself=$0 ;;
14733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14734 for as_dir in $PATH
14736 IFS=$as_save_IFS
14737 test -z "$as_dir" && as_dir=.
14738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14739 done
14740 IFS=$as_save_IFS
14743 esac
14744 # We did not find ourselves, most probably we were run as `sh COMMAND'
14745 # in which case we are not to be found in the path.
14746 if test "x$as_myself" = x; then
14747 as_myself=$0
14749 if test ! -f "$as_myself"; then
14750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14751 exit 1
14754 # Unset variables that we do not need and which cause bugs (e.g. in
14755 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14756 # suppresses any "Segmentation fault" message there. '((' could
14757 # trigger a bug in pdksh 5.2.14.
14758 for as_var in BASH_ENV ENV MAIL MAILPATH
14759 do eval test x\${$as_var+set} = xset \
14760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14761 done
14762 PS1='$ '
14763 PS2='> '
14764 PS4='+ '
14766 # NLS nuisances.
14767 LC_ALL=C
14768 export LC_ALL
14769 LANGUAGE=C
14770 export LANGUAGE
14772 # CDPATH.
14773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14776 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14777 # ----------------------------------------
14778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14780 # script with STATUS, using 1 if that was 0.
14781 as_fn_error ()
14783 as_status=$1; test $as_status -eq 0 && as_status=1
14784 if test "$4"; then
14785 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14788 $as_echo "$as_me: error: $2" >&2
14789 as_fn_exit $as_status
14790 } # as_fn_error
14793 # as_fn_set_status STATUS
14794 # -----------------------
14795 # Set $? to STATUS, without forking.
14796 as_fn_set_status ()
14798 return $1
14799 } # as_fn_set_status
14801 # as_fn_exit STATUS
14802 # -----------------
14803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14804 as_fn_exit ()
14806 set +e
14807 as_fn_set_status $1
14808 exit $1
14809 } # as_fn_exit
14811 # as_fn_unset VAR
14812 # ---------------
14813 # Portably unset VAR.
14814 as_fn_unset ()
14816 { eval $1=; unset $1;}
14818 as_unset=as_fn_unset
14819 # as_fn_append VAR VALUE
14820 # ----------------------
14821 # Append the text in VALUE to the end of the definition contained in VAR. Take
14822 # advantage of any shell optimizations that allow amortized linear growth over
14823 # repeated appends, instead of the typical quadratic growth present in naive
14824 # implementations.
14825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14826 eval 'as_fn_append ()
14828 eval $1+=\$2
14830 else
14831 as_fn_append ()
14833 eval $1=\$$1\$2
14835 fi # as_fn_append
14837 # as_fn_arith ARG...
14838 # ------------------
14839 # Perform arithmetic evaluation on the ARGs, and store the result in the
14840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14841 # must be portable across $(()) and expr.
14842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14843 eval 'as_fn_arith ()
14845 as_val=$(( $* ))
14847 else
14848 as_fn_arith ()
14850 as_val=`expr "$@" || test $? -eq 1`
14852 fi # as_fn_arith
14855 if expr a : '\(a\)' >/dev/null 2>&1 &&
14856 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14857 as_expr=expr
14858 else
14859 as_expr=false
14862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14863 as_basename=basename
14864 else
14865 as_basename=false
14868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14869 as_dirname=dirname
14870 else
14871 as_dirname=false
14874 as_me=`$as_basename -- "$0" ||
14875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14876 X"$0" : 'X\(//\)$' \| \
14877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14878 $as_echo X/"$0" |
14879 sed '/^.*\/\([^/][^/]*\)\/*$/{
14880 s//\1/
14883 /^X\/\(\/\/\)$/{
14884 s//\1/
14887 /^X\/\(\/\).*/{
14888 s//\1/
14891 s/.*/./; q'`
14893 # Avoid depending upon Character Ranges.
14894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14897 as_cr_digits='0123456789'
14898 as_cr_alnum=$as_cr_Letters$as_cr_digits
14900 ECHO_C= ECHO_N= ECHO_T=
14901 case `echo -n x` in #(((((
14902 -n*)
14903 case `echo 'xy\c'` in
14904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14905 xy) ECHO_C='\c';;
14906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14907 ECHO_T=' ';;
14908 esac;;
14910 ECHO_N='-n';;
14911 esac
14913 rm -f conf$$ conf$$.exe conf$$.file
14914 if test -d conf$$.dir; then
14915 rm -f conf$$.dir/conf$$.file
14916 else
14917 rm -f conf$$.dir
14918 mkdir conf$$.dir 2>/dev/null
14920 if (echo >conf$$.file) 2>/dev/null; then
14921 if ln -s conf$$.file conf$$ 2>/dev/null; then
14922 as_ln_s='ln -s'
14923 # ... but there are two gotchas:
14924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14926 # In both cases, we have to default to `cp -pR'.
14927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14928 as_ln_s='cp -pR'
14929 elif ln conf$$.file conf$$ 2>/dev/null; then
14930 as_ln_s=ln
14931 else
14932 as_ln_s='cp -pR'
14934 else
14935 as_ln_s='cp -pR'
14937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14938 rmdir conf$$.dir 2>/dev/null
14941 # as_fn_mkdir_p
14942 # -------------
14943 # Create "$as_dir" as a directory, including parents if necessary.
14944 as_fn_mkdir_p ()
14947 case $as_dir in #(
14948 -*) as_dir=./$as_dir;;
14949 esac
14950 test -d "$as_dir" || eval $as_mkdir_p || {
14951 as_dirs=
14952 while :; do
14953 case $as_dir in #(
14954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14955 *) as_qdir=$as_dir;;
14956 esac
14957 as_dirs="'$as_qdir' $as_dirs"
14958 as_dir=`$as_dirname -- "$as_dir" ||
14959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14960 X"$as_dir" : 'X\(//\)[^/]' \| \
14961 X"$as_dir" : 'X\(//\)$' \| \
14962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14963 $as_echo X"$as_dir" |
14964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14965 s//\1/
14968 /^X\(\/\/\)[^/].*/{
14969 s//\1/
14972 /^X\(\/\/\)$/{
14973 s//\1/
14976 /^X\(\/\).*/{
14977 s//\1/
14980 s/.*/./; q'`
14981 test -d "$as_dir" && break
14982 done
14983 test -z "$as_dirs" || eval "mkdir $as_dirs"
14984 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14987 } # as_fn_mkdir_p
14988 if mkdir -p . 2>/dev/null; then
14989 as_mkdir_p='mkdir -p "$as_dir"'
14990 else
14991 test -d ./-p && rmdir ./-p
14992 as_mkdir_p=false
14996 # as_fn_executable_p FILE
14997 # -----------------------
14998 # Test if FILE is an executable regular file.
14999 as_fn_executable_p ()
15001 test -f "$1" && test -x "$1"
15002 } # as_fn_executable_p
15003 as_test_x='test -x'
15004 as_executable_p=as_fn_executable_p
15006 # Sed expression to map a string onto a valid CPP name.
15007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15009 # Sed expression to map a string onto a valid variable name.
15010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15013 exec 6>&1
15014 ## ----------------------------------- ##
15015 ## Main body of $CONFIG_STATUS script. ##
15016 ## ----------------------------------- ##
15017 _ASEOF
15018 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021 # Save the log message, to keep $0 and so on meaningful, and to
15022 # report actual input values of CONFIG_FILES etc. instead of their
15023 # values after options handling.
15024 ac_log="
15025 This file was extended by package-unused $as_me version-unused, which was
15026 generated by GNU Autoconf 2.69. Invocation command line was
15028 CONFIG_FILES = $CONFIG_FILES
15029 CONFIG_HEADERS = $CONFIG_HEADERS
15030 CONFIG_LINKS = $CONFIG_LINKS
15031 CONFIG_COMMANDS = $CONFIG_COMMANDS
15032 $ $0 $@
15034 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15037 _ACEOF
15039 case $ac_config_files in *"
15040 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15041 esac
15043 case $ac_config_headers in *"
15044 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15045 esac
15048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15049 # Files that config.status was made for.
15050 config_files="$ac_config_files"
15051 config_headers="$ac_config_headers"
15052 config_commands="$ac_config_commands"
15054 _ACEOF
15056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15057 ac_cs_usage="\
15058 \`$as_me' instantiates files and other configuration actions
15059 from templates according to the current configuration. Unless the files
15060 and actions are specified as TAGs, all are instantiated by default.
15062 Usage: $0 [OPTION]... [TAG]...
15064 -h, --help print this help, then exit
15065 -V, --version print version number and configuration settings, then exit
15066 --config print configuration, then exit
15067 -q, --quiet, --silent
15068 do not print progress messages
15069 -d, --debug don't remove temporary files
15070 --recheck update $as_me by reconfiguring in the same conditions
15071 --file=FILE[:TEMPLATE]
15072 instantiate the configuration file FILE
15073 --header=FILE[:TEMPLATE]
15074 instantiate the configuration header FILE
15076 Configuration files:
15077 $config_files
15079 Configuration headers:
15080 $config_headers
15082 Configuration commands:
15083 $config_commands
15085 Report bugs to the package provider."
15087 _ACEOF
15088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15089 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15090 ac_cs_version="\\
15091 package-unused config.status version-unused
15092 configured by $0, generated by GNU Autoconf 2.69,
15093 with options \\"\$ac_cs_config\\"
15095 Copyright (C) 2012 Free Software Foundation, Inc.
15096 This config.status script is free software; the Free Software Foundation
15097 gives unlimited permission to copy, distribute and modify it."
15099 ac_pwd='$ac_pwd'
15100 srcdir='$srcdir'
15101 INSTALL='$INSTALL'
15102 MKDIR_P='$MKDIR_P'
15103 AWK='$AWK'
15104 test -n "\$AWK" || AWK=awk
15105 _ACEOF
15107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15108 # The default lists apply if the user does not specify any file.
15109 ac_need_defaults=:
15110 while test $# != 0
15112 case $1 in
15113 --*=?*)
15114 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15115 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15116 ac_shift=:
15118 --*=)
15119 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15120 ac_optarg=
15121 ac_shift=:
15124 ac_option=$1
15125 ac_optarg=$2
15126 ac_shift=shift
15128 esac
15130 case $ac_option in
15131 # Handling of the options.
15132 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15133 ac_cs_recheck=: ;;
15134 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15135 $as_echo "$ac_cs_version"; exit ;;
15136 --config | --confi | --conf | --con | --co | --c )
15137 $as_echo "$ac_cs_config"; exit ;;
15138 --debug | --debu | --deb | --de | --d | -d )
15139 debug=: ;;
15140 --file | --fil | --fi | --f )
15141 $ac_shift
15142 case $ac_optarg in
15143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15144 '') as_fn_error $? "missing file argument" ;;
15145 esac
15146 as_fn_append CONFIG_FILES " '$ac_optarg'"
15147 ac_need_defaults=false;;
15148 --header | --heade | --head | --hea )
15149 $ac_shift
15150 case $ac_optarg in
15151 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15152 esac
15153 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15154 ac_need_defaults=false;;
15155 --he | --h)
15156 # Conflict between --help and --header
15157 as_fn_error $? "ambiguous option: \`$1'
15158 Try \`$0 --help' for more information.";;
15159 --help | --hel | -h )
15160 $as_echo "$ac_cs_usage"; exit ;;
15161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15162 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15163 ac_cs_silent=: ;;
15165 # This is an error.
15166 -*) as_fn_error $? "unrecognized option: \`$1'
15167 Try \`$0 --help' for more information." ;;
15169 *) as_fn_append ac_config_targets " $1"
15170 ac_need_defaults=false ;;
15172 esac
15173 shift
15174 done
15176 ac_configure_extra_args=
15178 if $ac_cs_silent; then
15179 exec 6>/dev/null
15180 ac_configure_extra_args="$ac_configure_extra_args --silent"
15183 _ACEOF
15184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15185 if \$ac_cs_recheck; then
15186 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15187 shift
15188 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15189 CONFIG_SHELL='$SHELL'
15190 export CONFIG_SHELL
15191 exec "\$@"
15194 _ACEOF
15195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15196 exec 5>>config.log
15198 echo
15199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15200 ## Running $as_me. ##
15201 _ASBOX
15202 $as_echo "$ac_log"
15203 } >&5
15205 _ACEOF
15206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15208 # INIT-COMMANDS
15211 srcdir="$srcdir"
15212 host="$host"
15213 target="$target"
15214 with_multisubdir="$with_multisubdir"
15215 with_multisrctop="$with_multisrctop"
15216 with_target_subdir="$with_target_subdir"
15217 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15218 multi_basedir="$multi_basedir"
15219 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15220 CC="$CC"
15221 CXX="$CXX"
15222 GFORTRAN="$GFORTRAN"
15223 GDC="$GDC"
15226 # The HP-UX ksh and POSIX shell print the target directory to stdout
15227 # if CDPATH is set.
15228 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15230 sed_quote_subst='$sed_quote_subst'
15231 double_quote_subst='$double_quote_subst'
15232 delay_variable_subst='$delay_variable_subst'
15233 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15234 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15235 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15236 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15237 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15238 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15239 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15240 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15241 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15242 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15243 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15244 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15245 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15246 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15247 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15248 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15249 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15250 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15251 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15252 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15253 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15254 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15255 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15256 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15257 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15258 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15259 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15260 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15261 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15262 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15263 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15264 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15265 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15266 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15267 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15268 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15269 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15270 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15271 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15272 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15273 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15274 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15275 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15276 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15277 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15278 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15279 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15280 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15281 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"`'
15282 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15283 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15284 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15285 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15286 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15287 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15288 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15289 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15290 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15291 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15292 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15293 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15294 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15295 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15296 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15297 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15298 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15299 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15300 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15301 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15302 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15303 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15304 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15305 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15306 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15307 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15308 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15309 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15310 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15311 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15312 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15313 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15314 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15315 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15316 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15317 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15318 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15319 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15320 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15321 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15322 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15323 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15324 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15325 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15326 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15327 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15328 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15329 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15330 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15331 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15332 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15333 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15334 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15335 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15336 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15337 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15338 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15339 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15340 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15341 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15342 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15343 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15344 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15345 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15346 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15347 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15348 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15349 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15350 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15351 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15352 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15354 LTCC='$LTCC'
15355 LTCFLAGS='$LTCFLAGS'
15356 compiler='$compiler_DEFAULT'
15358 # A function that is used when there is no print builtin or printf.
15359 func_fallback_echo ()
15361 eval 'cat <<_LTECHO_EOF
15363 _LTECHO_EOF'
15366 # Quote evaled strings.
15367 for var in SHELL \
15368 ECHO \
15369 SED \
15370 GREP \
15371 EGREP \
15372 FGREP \
15373 LD \
15374 NM \
15375 LN_S \
15376 lt_SP2NL \
15377 lt_NL2SP \
15378 reload_flag \
15379 OBJDUMP \
15380 deplibs_check_method \
15381 file_magic_cmd \
15382 AR \
15383 AR_FLAGS \
15384 STRIP \
15385 RANLIB \
15386 CC \
15387 CFLAGS \
15388 compiler \
15389 lt_cv_sys_global_symbol_pipe \
15390 lt_cv_sys_global_symbol_to_cdecl \
15391 lt_cv_sys_global_symbol_to_c_name_address \
15392 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15393 lt_prog_compiler_no_builtin_flag \
15394 lt_prog_compiler_wl \
15395 lt_prog_compiler_pic \
15396 lt_prog_compiler_static \
15397 lt_cv_prog_compiler_c_o \
15398 need_locks \
15399 DSYMUTIL \
15400 NMEDIT \
15401 LIPO \
15402 OTOOL \
15403 OTOOL64 \
15404 shrext_cmds \
15405 export_dynamic_flag_spec \
15406 whole_archive_flag_spec \
15407 compiler_needs_object \
15408 with_gnu_ld \
15409 allow_undefined_flag \
15410 no_undefined_flag \
15411 hardcode_libdir_flag_spec \
15412 hardcode_libdir_flag_spec_ld \
15413 hardcode_libdir_separator \
15414 fix_srcfile_path \
15415 exclude_expsyms \
15416 include_expsyms \
15417 file_list_spec \
15418 variables_saved_for_relink \
15419 libname_spec \
15420 library_names_spec \
15421 soname_spec \
15422 install_override_mode \
15423 finish_eval \
15424 old_striplib \
15425 striplib; do
15426 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15427 *[\\\\\\\`\\"\\\$]*)
15428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15433 esac
15434 done
15436 # Double-quote double-evaled strings.
15437 for var in reload_cmds \
15438 old_postinstall_cmds \
15439 old_postuninstall_cmds \
15440 old_archive_cmds \
15441 extract_expsyms_cmds \
15442 old_archive_from_new_cmds \
15443 old_archive_from_expsyms_cmds \
15444 archive_cmds \
15445 archive_expsym_cmds \
15446 module_cmds \
15447 module_expsym_cmds \
15448 export_symbols_cmds \
15449 prelink_cmds \
15450 postinstall_cmds \
15451 postuninstall_cmds \
15452 finish_cmds \
15453 sys_lib_search_path_spec \
15454 sys_lib_dlsearch_path_spec; do
15455 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15456 *[\\\\\\\`\\"\\\$]*)
15457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15462 esac
15463 done
15465 ac_aux_dir='$ac_aux_dir'
15466 xsi_shell='$xsi_shell'
15467 lt_shell_append='$lt_shell_append'
15469 # See if we are running on zsh, and set the options which allow our
15470 # commands through without removal of \ escapes INIT.
15471 if test -n "\${ZSH_VERSION+set}" ; then
15472 setopt NO_GLOB_SUBST
15476 PACKAGE='$PACKAGE'
15477 VERSION='$VERSION'
15478 TIMESTAMP='$TIMESTAMP'
15479 RM='$RM'
15480 ofile='$ofile'
15485 GCC="$GCC"
15486 CC="$CC"
15487 acx_cv_header_stdint="$acx_cv_header_stdint"
15488 acx_cv_type_int8_t="$acx_cv_type_int8_t"
15489 acx_cv_type_int16_t="$acx_cv_type_int16_t"
15490 acx_cv_type_int32_t="$acx_cv_type_int32_t"
15491 acx_cv_type_int64_t="$acx_cv_type_int64_t"
15492 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15493 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15494 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15495 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15496 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15497 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15498 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15499 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15500 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15503 # Variables needed in config.status (file generation) which aren't already
15504 # passed by autoconf.
15505 SUBDIRS="$SUBDIRS"
15508 _ACEOF
15510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15512 # Handling of arguments.
15513 for ac_config_target in $ac_config_targets
15515 case $ac_config_target in
15516 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15517 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15518 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15519 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
15520 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15521 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
15522 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
15523 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15525 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15526 esac
15527 done
15530 # If the user did not use the arguments to specify the items to instantiate,
15531 # then the envvar interface is used. Set only those that are not.
15532 # We use the long form for the default assignment because of an extremely
15533 # bizarre bug on SunOS 4.1.3.
15534 if $ac_need_defaults; then
15535 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15536 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15540 # Have a temporary directory for convenience. Make it in the build tree
15541 # simply because there is no reason against having it here, and in addition,
15542 # creating and moving files from /tmp can sometimes cause problems.
15543 # Hook for its removal unless debugging.
15544 # Note that there is a small window in which the directory will not be cleaned:
15545 # after its creation but before its name has been assigned to `$tmp'.
15546 $debug ||
15548 tmp= ac_tmp=
15549 trap 'exit_status=$?
15550 : "${ac_tmp:=$tmp}"
15551 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15553 trap 'as_fn_exit 1' 1 2 13 15
15555 # Create a (secure) tmp directory for tmp files.
15558 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15559 test -d "$tmp"
15560 } ||
15562 tmp=./conf$$-$RANDOM
15563 (umask 077 && mkdir "$tmp")
15564 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15565 ac_tmp=$tmp
15567 # Set up the scripts for CONFIG_FILES section.
15568 # No need to generate them if there are no CONFIG_FILES.
15569 # This happens for instance with `./config.status config.h'.
15570 if test -n "$CONFIG_FILES"; then
15573 ac_cr=`echo X | tr X '\015'`
15574 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15575 # But we know of no other shell where ac_cr would be empty at this
15576 # point, so we can use a bashism as a fallback.
15577 if test "x$ac_cr" = x; then
15578 eval ac_cr=\$\'\\r\'
15580 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15581 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15582 ac_cs_awk_cr='\\r'
15583 else
15584 ac_cs_awk_cr=$ac_cr
15587 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15588 _ACEOF
15592 echo "cat >conf$$subs.awk <<_ACEOF" &&
15593 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15594 echo "_ACEOF"
15595 } >conf$$subs.sh ||
15596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15597 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15598 ac_delim='%!_!# '
15599 for ac_last_try in false false false false false :; do
15600 . ./conf$$subs.sh ||
15601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15603 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15604 if test $ac_delim_n = $ac_delim_num; then
15605 break
15606 elif $ac_last_try; then
15607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15608 else
15609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15611 done
15612 rm -f conf$$subs.sh
15614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15616 _ACEOF
15617 sed -n '
15619 s/^/S["/; s/!.*/"]=/
15622 s/^[^!]*!//
15623 :repl
15624 t repl
15625 s/'"$ac_delim"'$//
15626 t delim
15629 s/\(.\{148\}\)..*/\1/
15630 t more1
15631 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15634 b repl
15635 :more1
15636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15639 s/.\{148\}//
15640 t nl
15641 :delim
15643 s/\(.\{148\}\)..*/\1/
15644 t more2
15645 s/["\\]/\\&/g; s/^/"/; s/$/"/
15648 :more2
15649 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15652 s/.\{148\}//
15653 t delim
15654 ' <conf$$subs.awk | sed '
15655 /^[^""]/{
15657 s/\n//
15659 ' >>$CONFIG_STATUS || ac_write_fail=1
15660 rm -f conf$$subs.awk
15661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15662 _ACAWK
15663 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15664 for (key in S) S_is_set[key] = 1
15665 FS = "\a"
15669 line = $ 0
15670 nfields = split(line, field, "@")
15671 substed = 0
15672 len = length(field[1])
15673 for (i = 2; i < nfields; i++) {
15674 key = field[i]
15675 keylen = length(key)
15676 if (S_is_set[key]) {
15677 value = S[key]
15678 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15679 len += length(value) + length(field[++i])
15680 substed = 1
15681 } else
15682 len += 1 + keylen
15685 print line
15688 _ACAWK
15689 _ACEOF
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15692 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15693 else
15695 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15696 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15697 _ACEOF
15699 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15700 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15701 # trailing colons and then remove the whole line if VPATH becomes empty
15702 # (actually we leave an empty line to preserve line numbers).
15703 if test "x$srcdir" = x.; then
15704 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15706 s///
15707 s/^/:/
15708 s/[ ]*$/:/
15709 s/:\$(srcdir):/:/g
15710 s/:\${srcdir}:/:/g
15711 s/:@srcdir@:/:/g
15712 s/^:*//
15713 s/:*$//
15715 s/\(=[ ]*\).*/\1/
15717 s/\n//
15718 s/^[^=]*=[ ]*$//
15722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15723 fi # test -n "$CONFIG_FILES"
15725 # Set up the scripts for CONFIG_HEADERS section.
15726 # No need to generate them if there are no CONFIG_HEADERS.
15727 # This happens for instance with `./config.status Makefile'.
15728 if test -n "$CONFIG_HEADERS"; then
15729 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15730 BEGIN {
15731 _ACEOF
15733 # Transform confdefs.h into an awk script `defines.awk', embedded as
15734 # here-document in config.status, that substitutes the proper values into
15735 # config.h.in to produce config.h.
15737 # Create a delimiter string that does not exist in confdefs.h, to ease
15738 # handling of long lines.
15739 ac_delim='%!_!# '
15740 for ac_last_try in false false :; do
15741 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15742 if test -z "$ac_tt"; then
15743 break
15744 elif $ac_last_try; then
15745 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15746 else
15747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15749 done
15751 # For the awk script, D is an array of macro values keyed by name,
15752 # likewise P contains macro parameters if any. Preserve backslash
15753 # newline sequences.
15755 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15756 sed -n '
15757 s/.\{148\}/&'"$ac_delim"'/g
15758 t rset
15759 :rset
15760 s/^[ ]*#[ ]*define[ ][ ]*/ /
15761 t def
15763 :def
15764 s/\\$//
15765 t bsnl
15766 s/["\\]/\\&/g
15767 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15768 D["\1"]=" \3"/p
15769 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15771 :bsnl
15772 s/["\\]/\\&/g
15773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15774 D["\1"]=" \3\\\\\\n"\\/p
15775 t cont
15776 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15777 t cont
15779 :cont
15781 s/.\{148\}/&'"$ac_delim"'/g
15782 t clear
15783 :clear
15784 s/\\$//
15785 t bsnlc
15786 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15788 :bsnlc
15789 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15790 b cont
15791 ' <confdefs.h | sed '
15792 s/'"$ac_delim"'/"\\\
15793 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15796 for (key in D) D_is_set[key] = 1
15797 FS = "\a"
15799 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15800 line = \$ 0
15801 split(line, arg, " ")
15802 if (arg[1] == "#") {
15803 defundef = arg[2]
15804 mac1 = arg[3]
15805 } else {
15806 defundef = substr(arg[1], 2)
15807 mac1 = arg[2]
15809 split(mac1, mac2, "(") #)
15810 macro = mac2[1]
15811 prefix = substr(line, 1, index(line, defundef) - 1)
15812 if (D_is_set[macro]) {
15813 # Preserve the white space surrounding the "#".
15814 print prefix "define", macro P[macro] D[macro]
15815 next
15816 } else {
15817 # Replace #undef with comments. This is necessary, for example,
15818 # in the case of _POSIX_SOURCE, which is predefined and required
15819 # on some systems where configure will not decide to define it.
15820 if (defundef == "undef") {
15821 print "/*", prefix defundef, macro, "*/"
15822 next
15826 { print }
15827 _ACAWK
15828 _ACEOF
15829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15830 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15831 fi # test -n "$CONFIG_HEADERS"
15834 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15835 shift
15836 for ac_tag
15838 case $ac_tag in
15839 :[FHLC]) ac_mode=$ac_tag; continue;;
15840 esac
15841 case $ac_mode$ac_tag in
15842 :[FHL]*:*);;
15843 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15844 :[FH]-) ac_tag=-:-;;
15845 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15846 esac
15847 ac_save_IFS=$IFS
15848 IFS=:
15849 set x $ac_tag
15850 IFS=$ac_save_IFS
15851 shift
15852 ac_file=$1
15853 shift
15855 case $ac_mode in
15856 :L) ac_source=$1;;
15857 :[FH])
15858 ac_file_inputs=
15859 for ac_f
15861 case $ac_f in
15862 -) ac_f="$ac_tmp/stdin";;
15863 *) # Look for the file first in the build tree, then in the source tree
15864 # (if the path is not absolute). The absolute path cannot be DOS-style,
15865 # because $ac_f cannot contain `:'.
15866 test -f "$ac_f" ||
15867 case $ac_f in
15868 [\\/$]*) false;;
15869 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15870 esac ||
15871 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15872 esac
15873 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15874 as_fn_append ac_file_inputs " '$ac_f'"
15875 done
15877 # Let's still pretend it is `configure' which instantiates (i.e., don't
15878 # use $as_me), people would be surprised to read:
15879 # /* config.h. Generated by config.status. */
15880 configure_input='Generated from '`
15881 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15882 `' by configure.'
15883 if test x"$ac_file" != x-; then
15884 configure_input="$ac_file. $configure_input"
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15886 $as_echo "$as_me: creating $ac_file" >&6;}
15888 # Neutralize special characters interpreted by sed in replacement strings.
15889 case $configure_input in #(
15890 *\&* | *\|* | *\\* )
15891 ac_sed_conf_input=`$as_echo "$configure_input" |
15892 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15893 *) ac_sed_conf_input=$configure_input;;
15894 esac
15896 case $ac_tag in
15897 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15898 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15899 esac
15901 esac
15903 ac_dir=`$as_dirname -- "$ac_file" ||
15904 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15905 X"$ac_file" : 'X\(//\)[^/]' \| \
15906 X"$ac_file" : 'X\(//\)$' \| \
15907 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15908 $as_echo X"$ac_file" |
15909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15910 s//\1/
15913 /^X\(\/\/\)[^/].*/{
15914 s//\1/
15917 /^X\(\/\/\)$/{
15918 s//\1/
15921 /^X\(\/\).*/{
15922 s//\1/
15925 s/.*/./; q'`
15926 as_dir="$ac_dir"; as_fn_mkdir_p
15927 ac_builddir=.
15929 case "$ac_dir" in
15930 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15932 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15933 # A ".." for each directory in $ac_dir_suffix.
15934 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15935 case $ac_top_builddir_sub in
15936 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15937 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15938 esac ;;
15939 esac
15940 ac_abs_top_builddir=$ac_pwd
15941 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15942 # for backward compatibility:
15943 ac_top_builddir=$ac_top_build_prefix
15945 case $srcdir in
15946 .) # We are building in place.
15947 ac_srcdir=.
15948 ac_top_srcdir=$ac_top_builddir_sub
15949 ac_abs_top_srcdir=$ac_pwd ;;
15950 [\\/]* | ?:[\\/]* ) # Absolute name.
15951 ac_srcdir=$srcdir$ac_dir_suffix;
15952 ac_top_srcdir=$srcdir
15953 ac_abs_top_srcdir=$srcdir ;;
15954 *) # Relative name.
15955 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15956 ac_top_srcdir=$ac_top_build_prefix$srcdir
15957 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15958 esac
15959 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15962 case $ac_mode in
15965 # CONFIG_FILE
15968 case $INSTALL in
15969 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15970 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15971 esac
15972 ac_MKDIR_P=$MKDIR_P
15973 case $MKDIR_P in
15974 [\\/$]* | ?:[\\/]* ) ;;
15975 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15976 esac
15977 _ACEOF
15979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15980 # If the template does not know about datarootdir, expand it.
15981 # FIXME: This hack should be removed a few years after 2.60.
15982 ac_datarootdir_hack=; ac_datarootdir_seen=
15983 ac_sed_dataroot='
15984 /datarootdir/ {
15988 /@datadir@/p
15989 /@docdir@/p
15990 /@infodir@/p
15991 /@localedir@/p
15992 /@mandir@/p'
15993 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15994 *datarootdir*) ac_datarootdir_seen=yes;;
15995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15997 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15998 _ACEOF
15999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16000 ac_datarootdir_hack='
16001 s&@datadir@&$datadir&g
16002 s&@docdir@&$docdir&g
16003 s&@infodir@&$infodir&g
16004 s&@localedir@&$localedir&g
16005 s&@mandir@&$mandir&g
16006 s&\\\${datarootdir}&$datarootdir&g' ;;
16007 esac
16008 _ACEOF
16010 # Neutralize VPATH when `$srcdir' = `.'.
16011 # Shell code in configure.ac might set extrasub.
16012 # FIXME: do we really want to maintain this feature?
16013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014 ac_sed_extra="$ac_vpsub
16015 $extrasub
16016 _ACEOF
16017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16020 s|@configure_input@|$ac_sed_conf_input|;t t
16021 s&@top_builddir@&$ac_top_builddir_sub&;t t
16022 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16023 s&@srcdir@&$ac_srcdir&;t t
16024 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16025 s&@top_srcdir@&$ac_top_srcdir&;t t
16026 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16027 s&@builddir@&$ac_builddir&;t t
16028 s&@abs_builddir@&$ac_abs_builddir&;t t
16029 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16030 s&@INSTALL@&$ac_INSTALL&;t t
16031 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16032 $ac_datarootdir_hack
16034 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16035 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16037 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16038 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16039 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16040 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16042 which seems to be undefined. Please make sure it is defined" >&5
16043 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16044 which seems to be undefined. Please make sure it is defined" >&2;}
16046 rm -f "$ac_tmp/stdin"
16047 case $ac_file in
16048 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16049 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16050 esac \
16051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16055 # CONFIG_HEADER
16057 if test x"$ac_file" != x-; then
16059 $as_echo "/* $configure_input */" \
16060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16061 } >"$ac_tmp/config.h" \
16062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16063 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16065 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16066 else
16067 rm -f "$ac_file"
16068 mv "$ac_tmp/config.h" "$ac_file" \
16069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16071 else
16072 $as_echo "/* $configure_input */" \
16073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16074 || as_fn_error $? "could not create -" "$LINENO" 5
16076 # Compute "$ac_file"'s index in $config_headers.
16077 _am_arg="$ac_file"
16078 _am_stamp_count=1
16079 for _am_header in $config_headers :; do
16080 case $_am_header in
16081 $_am_arg | $_am_arg:* )
16082 break ;;
16084 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16085 esac
16086 done
16087 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16088 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16089 X"$_am_arg" : 'X\(//\)[^/]' \| \
16090 X"$_am_arg" : 'X\(//\)$' \| \
16091 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16092 $as_echo X"$_am_arg" |
16093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16094 s//\1/
16097 /^X\(\/\/\)[^/].*/{
16098 s//\1/
16101 /^X\(\/\/\)$/{
16102 s//\1/
16105 /^X\(\/\).*/{
16106 s//\1/
16109 s/.*/./; q'`/stamp-h$_am_stamp_count
16112 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16113 $as_echo "$as_me: executing $ac_file commands" >&6;}
16115 esac
16118 case $ac_file$ac_mode in
16119 "default-1":C)
16120 # Only add multilib support code if we just rebuilt the top-level
16121 # Makefile.
16122 case " $CONFIG_FILES " in
16123 *" Makefile "*)
16124 ac_file=Makefile . ${multi_basedir}/config-ml.in
16126 esac ;;
16127 "libtool":C)
16129 # See if we are running on zsh, and set the options which allow our
16130 # commands through without removal of \ escapes.
16131 if test -n "${ZSH_VERSION+set}" ; then
16132 setopt NO_GLOB_SUBST
16135 cfgfile="${ofile}T"
16136 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16137 $RM "$cfgfile"
16139 cat <<_LT_EOF >> "$cfgfile"
16140 #! $SHELL
16142 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16143 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16145 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16147 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16148 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16149 # Written by Gordon Matzigkeit, 1996
16151 # This file is part of GNU Libtool.
16153 # GNU Libtool is free software; you can redistribute it and/or
16154 # modify it under the terms of the GNU General Public License as
16155 # published by the Free Software Foundation; either version 2 of
16156 # the License, or (at your option) any later version.
16158 # As a special exception to the GNU General Public License,
16159 # if you distribute this file as part of a program or library that
16160 # is built using GNU Libtool, you may include this file under the
16161 # same distribution terms that you use for the rest of that program.
16163 # GNU Libtool is distributed in the hope that it will be useful,
16164 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16165 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16166 # GNU General Public License for more details.
16168 # You should have received a copy of the GNU General Public License
16169 # along with GNU Libtool; see the file COPYING. If not, a copy
16170 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16171 # obtained by writing to the Free Software Foundation, Inc.,
16172 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16175 # The names of the tagged configurations supported by this script.
16176 available_tags=""
16178 # ### BEGIN LIBTOOL CONFIG
16180 # Which release of libtool.m4 was used?
16181 macro_version=$macro_version
16182 macro_revision=$macro_revision
16184 # Whether or not to build shared libraries.
16185 build_libtool_libs=$enable_shared
16187 # Whether or not to build static libraries.
16188 build_old_libs=$enable_static
16190 # What type of objects to build.
16191 pic_mode=$pic_mode
16193 # Whether or not to optimize for fast installation.
16194 fast_install=$enable_fast_install
16196 # Shell to use when invoking shell scripts.
16197 SHELL=$lt_SHELL
16199 # An echo program that protects backslashes.
16200 ECHO=$lt_ECHO
16202 # The host system.
16203 host_alias=$host_alias
16204 host=$host
16205 host_os=$host_os
16207 # The build system.
16208 build_alias=$build_alias
16209 build=$build
16210 build_os=$build_os
16212 # A sed program that does not truncate output.
16213 SED=$lt_SED
16215 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16216 Xsed="\$SED -e 1s/^X//"
16218 # A grep program that handles long lines.
16219 GREP=$lt_GREP
16221 # An ERE matcher.
16222 EGREP=$lt_EGREP
16224 # A literal string matcher.
16225 FGREP=$lt_FGREP
16227 # A BSD- or MS-compatible name lister.
16228 NM=$lt_NM
16230 # Whether we need soft or hard links.
16231 LN_S=$lt_LN_S
16233 # What is the maximum length of a command?
16234 max_cmd_len=$max_cmd_len
16236 # Object file suffix (normally "o").
16237 objext=$ac_objext
16239 # Executable file suffix (normally "").
16240 exeext=$exeext
16242 # whether the shell understands "unset".
16243 lt_unset=$lt_unset
16245 # turn spaces into newlines.
16246 SP2NL=$lt_lt_SP2NL
16248 # turn newlines into spaces.
16249 NL2SP=$lt_lt_NL2SP
16251 # An object symbol dumper.
16252 OBJDUMP=$lt_OBJDUMP
16254 # Method to check whether dependent libraries are shared objects.
16255 deplibs_check_method=$lt_deplibs_check_method
16257 # Command to use when deplibs_check_method == "file_magic".
16258 file_magic_cmd=$lt_file_magic_cmd
16260 # The archiver.
16261 AR=$lt_AR
16262 AR_FLAGS=$lt_AR_FLAGS
16264 # A symbol stripping program.
16265 STRIP=$lt_STRIP
16267 # Commands used to install an old-style archive.
16268 RANLIB=$lt_RANLIB
16269 old_postinstall_cmds=$lt_old_postinstall_cmds
16270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16272 # Whether to use a lock for old archive extraction.
16273 lock_old_archive_extraction=$lock_old_archive_extraction
16275 # A C compiler.
16276 LTCC=$lt_CC
16278 # LTCC compiler flags.
16279 LTCFLAGS=$lt_CFLAGS
16281 # Take the output of nm and produce a listing of raw symbols and C names.
16282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16284 # Transform the output of nm in a proper C declaration.
16285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16287 # Transform the output of nm in a C name address pair.
16288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16290 # Transform the output of nm in a C name address pair when lib prefix is needed.
16291 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16293 # The name of the directory that contains temporary libtool files.
16294 objdir=$objdir
16296 # Used to examine libraries when file_magic_cmd begins with "file".
16297 MAGIC_CMD=$MAGIC_CMD
16299 # Must we lock files when doing compilation?
16300 need_locks=$lt_need_locks
16302 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16303 DSYMUTIL=$lt_DSYMUTIL
16305 # Tool to change global to local symbols on Mac OS X.
16306 NMEDIT=$lt_NMEDIT
16308 # Tool to manipulate fat objects and archives on Mac OS X.
16309 LIPO=$lt_LIPO
16311 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16312 OTOOL=$lt_OTOOL
16314 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16315 OTOOL64=$lt_OTOOL64
16317 # Old archive suffix (normally "a").
16318 libext=$libext
16320 # Shared library suffix (normally ".so").
16321 shrext_cmds=$lt_shrext_cmds
16323 # The commands to extract the exported symbol list from a shared archive.
16324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16326 # Variables whose values should be saved in libtool wrapper scripts and
16327 # restored at link time.
16328 variables_saved_for_relink=$lt_variables_saved_for_relink
16330 # Do we need the "lib" prefix for modules?
16331 need_lib_prefix=$need_lib_prefix
16333 # Do we need a version for libraries?
16334 need_version=$need_version
16336 # Library versioning type.
16337 version_type=$version_type
16339 # Shared library runtime path variable.
16340 runpath_var=$runpath_var
16342 # Shared library path variable.
16343 shlibpath_var=$shlibpath_var
16345 # Is shlibpath searched before the hard-coded library search path?
16346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16348 # Format of library name prefix.
16349 libname_spec=$lt_libname_spec
16351 # List of archive names. First name is the real one, the rest are links.
16352 # The last name is the one that the linker finds with -lNAME
16353 library_names_spec=$lt_library_names_spec
16355 # The coded name of the library, if different from the real name.
16356 soname_spec=$lt_soname_spec
16358 # Permission mode override for installation of shared libraries.
16359 install_override_mode=$lt_install_override_mode
16361 # Command to use after installation of a shared archive.
16362 postinstall_cmds=$lt_postinstall_cmds
16364 # Command to use after uninstallation of a shared archive.
16365 postuninstall_cmds=$lt_postuninstall_cmds
16367 # Commands used to finish a libtool library installation in a directory.
16368 finish_cmds=$lt_finish_cmds
16370 # As "finish_cmds", except a single script fragment to be evaled but
16371 # not shown.
16372 finish_eval=$lt_finish_eval
16374 # Whether we should hardcode library paths into libraries.
16375 hardcode_into_libs=$hardcode_into_libs
16377 # Compile-time system search path for libraries.
16378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16380 # Run-time system search path for libraries.
16381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16383 # Whether dlopen is supported.
16384 dlopen_support=$enable_dlopen
16386 # Whether dlopen of programs is supported.
16387 dlopen_self=$enable_dlopen_self
16389 # Whether dlopen of statically linked programs is supported.
16390 dlopen_self_static=$enable_dlopen_self_static
16392 # Commands to strip libraries.
16393 old_striplib=$lt_old_striplib
16394 striplib=$lt_striplib
16397 # The linker used to build libraries.
16398 LD=$lt_LD
16400 # How to create reloadable object files.
16401 reload_flag=$lt_reload_flag
16402 reload_cmds=$lt_reload_cmds
16404 # Commands used to build an old-style archive.
16405 old_archive_cmds=$lt_old_archive_cmds
16407 # A language specific compiler.
16408 CC=$lt_compiler
16410 # Is the compiler the GNU compiler?
16411 with_gcc=$GCC
16413 # Compiler flag to turn off builtin functions.
16414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16416 # How to pass a linker flag through the compiler.
16417 wl=$lt_lt_prog_compiler_wl
16419 # Additional compiler flags for building library objects.
16420 pic_flag=$lt_lt_prog_compiler_pic
16422 # Compiler flag to prevent dynamic linking.
16423 link_static_flag=$lt_lt_prog_compiler_static
16425 # Does compiler simultaneously support -c and -o options?
16426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16428 # Whether or not to add -lc for building shared libraries.
16429 build_libtool_need_lc=$archive_cmds_need_lc
16431 # Whether or not to disallow shared libs when runtime libs are static.
16432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16434 # Compiler flag to allow reflexive dlopens.
16435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16437 # Compiler flag to generate shared objects directly from archives.
16438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16440 # Whether the compiler copes with passing no objects directly.
16441 compiler_needs_object=$lt_compiler_needs_object
16443 # Create an old-style archive from a shared archive.
16444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16446 # Create a temporary old-style archive to link instead of a shared archive.
16447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16449 # Commands used to build a shared archive.
16450 archive_cmds=$lt_archive_cmds
16451 archive_expsym_cmds=$lt_archive_expsym_cmds
16453 # Commands used to build a loadable module if different from building
16454 # a shared archive.
16455 module_cmds=$lt_module_cmds
16456 module_expsym_cmds=$lt_module_expsym_cmds
16458 # Whether we are building with GNU ld or not.
16459 with_gnu_ld=$lt_with_gnu_ld
16461 # Flag that allows shared libraries with undefined symbols to be built.
16462 allow_undefined_flag=$lt_allow_undefined_flag
16464 # Flag that enforces no undefined symbols.
16465 no_undefined_flag=$lt_no_undefined_flag
16467 # Flag to hardcode \$libdir into a binary during linking.
16468 # This must work even if \$libdir does not exist
16469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16471 # If ld is used when linking, flag to hardcode \$libdir into a binary
16472 # during linking. This must work even if \$libdir does not exist.
16473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16475 # Whether we need a single "-rpath" flag with a separated argument.
16476 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16478 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16479 # DIR into the resulting binary.
16480 hardcode_direct=$hardcode_direct
16482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16483 # DIR into the resulting binary and the resulting library dependency is
16484 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16485 # library is relocated.
16486 hardcode_direct_absolute=$hardcode_direct_absolute
16488 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16489 # into the resulting binary.
16490 hardcode_minus_L=$hardcode_minus_L
16492 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16493 # into the resulting binary.
16494 hardcode_shlibpath_var=$hardcode_shlibpath_var
16496 # Set to "yes" if building a shared library automatically hardcodes DIR
16497 # into the library and all subsequent libraries and executables linked
16498 # against it.
16499 hardcode_automatic=$hardcode_automatic
16501 # Set to yes if linker adds runtime paths of dependent libraries
16502 # to runtime path list.
16503 inherit_rpath=$inherit_rpath
16505 # Whether libtool must link a program against all its dependency libraries.
16506 link_all_deplibs=$link_all_deplibs
16508 # Fix the shell variable \$srcfile for the compiler.
16509 fix_srcfile_path=$lt_fix_srcfile_path
16511 # Set to "yes" if exported symbols are required.
16512 always_export_symbols=$always_export_symbols
16514 # The commands to list exported symbols.
16515 export_symbols_cmds=$lt_export_symbols_cmds
16517 # Symbols that should not be listed in the preloaded symbols.
16518 exclude_expsyms=$lt_exclude_expsyms
16520 # Symbols that must always be exported.
16521 include_expsyms=$lt_include_expsyms
16523 # Commands necessary for linking programs (against libraries) with templates.
16524 prelink_cmds=$lt_prelink_cmds
16526 # Specify filename containing input files.
16527 file_list_spec=$lt_file_list_spec
16529 # How to hardcode a shared library path into an executable.
16530 hardcode_action=$hardcode_action
16532 # ### END LIBTOOL CONFIG
16534 _LT_EOF
16536 case $host_os in
16537 aix3*)
16538 cat <<\_LT_EOF >> "$cfgfile"
16539 # AIX sometimes has problems with the GCC collect2 program. For some
16540 # reason, if we set the COLLECT_NAMES environment variable, the problems
16541 # vanish in a puff of smoke.
16542 if test "X${COLLECT_NAMES+set}" != Xset; then
16543 COLLECT_NAMES=
16544 export COLLECT_NAMES
16546 _LT_EOF
16548 esac
16551 ltmain="$ac_aux_dir/ltmain.sh"
16554 # We use sed instead of cat because bash on DJGPP gets confused if
16555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16556 # text mode, it properly converts lines to CR/LF. This bash problem
16557 # is reportedly fixed, but why not run on old versions too?
16558 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16559 || (rm -f "$cfgfile"; exit 1)
16561 case $xsi_shell in
16562 yes)
16563 cat << \_LT_EOF >> "$cfgfile"
16565 # func_dirname file append nondir_replacement
16566 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16567 # otherwise set result to NONDIR_REPLACEMENT.
16568 func_dirname ()
16570 case ${1} in
16571 */*) func_dirname_result="${1%/*}${2}" ;;
16572 * ) func_dirname_result="${3}" ;;
16573 esac
16576 # func_basename file
16577 func_basename ()
16579 func_basename_result="${1##*/}"
16582 # func_dirname_and_basename file append nondir_replacement
16583 # perform func_basename and func_dirname in a single function
16584 # call:
16585 # dirname: Compute the dirname of FILE. If nonempty,
16586 # add APPEND to the result, otherwise set result
16587 # to NONDIR_REPLACEMENT.
16588 # value returned in "$func_dirname_result"
16589 # basename: Compute filename of FILE.
16590 # value retuned in "$func_basename_result"
16591 # Implementation must be kept synchronized with func_dirname
16592 # and func_basename. For efficiency, we do not delegate to
16593 # those functions but instead duplicate the functionality here.
16594 func_dirname_and_basename ()
16596 case ${1} in
16597 */*) func_dirname_result="${1%/*}${2}" ;;
16598 * ) func_dirname_result="${3}" ;;
16599 esac
16600 func_basename_result="${1##*/}"
16603 # func_stripname prefix suffix name
16604 # strip PREFIX and SUFFIX off of NAME.
16605 # PREFIX and SUFFIX must not contain globbing or regex special
16606 # characters, hashes, percent signs, but SUFFIX may contain a leading
16607 # dot (in which case that matches only a dot).
16608 func_stripname ()
16610 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16611 # positional parameters, so assign one to ordinary parameter first.
16612 func_stripname_result=${3}
16613 func_stripname_result=${func_stripname_result#"${1}"}
16614 func_stripname_result=${func_stripname_result%"${2}"}
16617 # func_opt_split
16618 func_opt_split ()
16620 func_opt_split_opt=${1%%=*}
16621 func_opt_split_arg=${1#*=}
16624 # func_lo2o object
16625 func_lo2o ()
16627 case ${1} in
16628 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16629 *) func_lo2o_result=${1} ;;
16630 esac
16633 # func_xform libobj-or-source
16634 func_xform ()
16636 func_xform_result=${1%.*}.lo
16639 # func_arith arithmetic-term...
16640 func_arith ()
16642 func_arith_result=$(( $* ))
16645 # func_len string
16646 # STRING may not start with a hyphen.
16647 func_len ()
16649 func_len_result=${#1}
16652 _LT_EOF
16654 *) # Bourne compatible functions.
16655 cat << \_LT_EOF >> "$cfgfile"
16657 # func_dirname file append nondir_replacement
16658 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16659 # otherwise set result to NONDIR_REPLACEMENT.
16660 func_dirname ()
16662 # Extract subdirectory from the argument.
16663 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16664 if test "X$func_dirname_result" = "X${1}"; then
16665 func_dirname_result="${3}"
16666 else
16667 func_dirname_result="$func_dirname_result${2}"
16671 # func_basename file
16672 func_basename ()
16674 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16678 # func_stripname prefix suffix name
16679 # strip PREFIX and SUFFIX off of NAME.
16680 # PREFIX and SUFFIX must not contain globbing or regex special
16681 # characters, hashes, percent signs, but SUFFIX may contain a leading
16682 # dot (in which case that matches only a dot).
16683 # func_strip_suffix prefix name
16684 func_stripname ()
16686 case ${2} in
16687 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16688 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16689 esac
16692 # sed scripts:
16693 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16694 my_sed_long_arg='1s/^-[^=]*=//'
16696 # func_opt_split
16697 func_opt_split ()
16699 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16700 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16703 # func_lo2o object
16704 func_lo2o ()
16706 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16709 # func_xform libobj-or-source
16710 func_xform ()
16712 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16715 # func_arith arithmetic-term...
16716 func_arith ()
16718 func_arith_result=`expr "$@"`
16721 # func_len string
16722 # STRING may not start with a hyphen.
16723 func_len ()
16725 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16728 _LT_EOF
16729 esac
16731 case $lt_shell_append in
16732 yes)
16733 cat << \_LT_EOF >> "$cfgfile"
16735 # func_append var value
16736 # Append VALUE to the end of shell variable VAR.
16737 func_append ()
16739 eval "$1+=\$2"
16741 _LT_EOF
16744 cat << \_LT_EOF >> "$cfgfile"
16746 # func_append var value
16747 # Append VALUE to the end of shell variable VAR.
16748 func_append ()
16750 eval "$1=\$$1\$2"
16753 _LT_EOF
16755 esac
16758 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16759 || (rm -f "$cfgfile"; exit 1)
16761 mv -f "$cfgfile" "$ofile" ||
16762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16763 chmod +x "$ofile"
16766 "gstdint.h":C)
16767 if test "$GCC" = yes; then
16768 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16769 else
16770 echo "/* generated for $CC */" > tmp-stdint.h
16773 sed 's/^ *//' >> tmp-stdint.h <<EOF
16775 #ifndef GCC_GENERATED_STDINT_H
16776 #define GCC_GENERATED_STDINT_H 1
16778 #include <sys/types.h>
16781 if test "$acx_cv_header_stdint" != stdint.h; then
16782 echo "#include <stddef.h>" >> tmp-stdint.h
16784 if test "$acx_cv_header_stdint" != stddef.h; then
16785 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16788 sed 's/^ *//' >> tmp-stdint.h <<EOF
16789 /* glibc uses these symbols as guards to prevent redefinitions. */
16790 #ifdef __int8_t_defined
16791 #define _INT8_T
16792 #define _INT16_T
16793 #define _INT32_T
16794 #endif
16795 #ifdef __uint32_t_defined
16796 #define _UINT32_T
16797 #endif
16801 # ----------------- done header, emit basic int types -------------
16802 if test "$acx_cv_header_stdint" = stddef.h; then
16803 sed 's/^ *//' >> tmp-stdint.h <<EOF
16805 #ifndef _UINT8_T
16806 #define _UINT8_T
16807 #ifndef __uint8_t_defined
16808 #define __uint8_t_defined
16809 #ifndef uint8_t
16810 typedef unsigned $acx_cv_type_int8_t uint8_t;
16811 #endif
16812 #endif
16813 #endif
16815 #ifndef _UINT16_T
16816 #define _UINT16_T
16817 #ifndef __uint16_t_defined
16818 #define __uint16_t_defined
16819 #ifndef uint16_t
16820 typedef unsigned $acx_cv_type_int16_t uint16_t;
16821 #endif
16822 #endif
16823 #endif
16825 #ifndef _UINT32_T
16826 #define _UINT32_T
16827 #ifndef __uint32_t_defined
16828 #define __uint32_t_defined
16829 #ifndef uint32_t
16830 typedef unsigned $acx_cv_type_int32_t uint32_t;
16831 #endif
16832 #endif
16833 #endif
16835 #ifndef _INT8_T
16836 #define _INT8_T
16837 #ifndef __int8_t_defined
16838 #define __int8_t_defined
16839 #ifndef int8_t
16840 typedef $acx_cv_type_int8_t int8_t;
16841 #endif
16842 #endif
16843 #endif
16845 #ifndef _INT16_T
16846 #define _INT16_T
16847 #ifndef __int16_t_defined
16848 #define __int16_t_defined
16849 #ifndef int16_t
16850 typedef $acx_cv_type_int16_t int16_t;
16851 #endif
16852 #endif
16853 #endif
16855 #ifndef _INT32_T
16856 #define _INT32_T
16857 #ifndef __int32_t_defined
16858 #define __int32_t_defined
16859 #ifndef int32_t
16860 typedef $acx_cv_type_int32_t int32_t;
16861 #endif
16862 #endif
16863 #endif
16865 elif test "$ac_cv_type_u_int32_t" = yes; then
16866 sed 's/^ *//' >> tmp-stdint.h <<EOF
16868 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16869 #ifndef _INT8_T
16870 #define _INT8_T
16871 #endif
16872 #ifndef _INT16_T
16873 #define _INT16_T
16874 #endif
16875 #ifndef _INT32_T
16876 #define _INT32_T
16877 #endif
16879 #ifndef _UINT8_T
16880 #define _UINT8_T
16881 #ifndef __uint8_t_defined
16882 #define __uint8_t_defined
16883 #ifndef uint8_t
16884 typedef u_int8_t uint8_t;
16885 #endif
16886 #endif
16887 #endif
16889 #ifndef _UINT16_T
16890 #define _UINT16_T
16891 #ifndef __uint16_t_defined
16892 #define __uint16_t_defined
16893 #ifndef uint16_t
16894 typedef u_int16_t uint16_t;
16895 #endif
16896 #endif
16897 #endif
16899 #ifndef _UINT32_T
16900 #define _UINT32_T
16901 #ifndef __uint32_t_defined
16902 #define __uint32_t_defined
16903 #ifndef uint32_t
16904 typedef u_int32_t uint32_t;
16905 #endif
16906 #endif
16907 #endif
16909 else
16910 sed 's/^ *//' >> tmp-stdint.h <<EOF
16912 /* Some systems have guard macros to prevent redefinitions, define them. */
16913 #ifndef _INT8_T
16914 #define _INT8_T
16915 #endif
16916 #ifndef _INT16_T
16917 #define _INT16_T
16918 #endif
16919 #ifndef _INT32_T
16920 #define _INT32_T
16921 #endif
16922 #ifndef _UINT8_T
16923 #define _UINT8_T
16924 #endif
16925 #ifndef _UINT16_T
16926 #define _UINT16_T
16927 #endif
16928 #ifndef _UINT32_T
16929 #define _UINT32_T
16930 #endif
16934 # ------------- done basic int types, emit int64_t types ------------
16935 if test "$ac_cv_type_uint64_t" = yes; then
16936 sed 's/^ *//' >> tmp-stdint.h <<EOF
16938 /* system headers have good uint64_t and int64_t */
16939 #ifndef _INT64_T
16940 #define _INT64_T
16941 #endif
16942 #ifndef _UINT64_T
16943 #define _UINT64_T
16944 #endif
16946 elif test "$ac_cv_type_u_int64_t" = yes; then
16947 sed 's/^ *//' >> tmp-stdint.h <<EOF
16949 /* system headers have an u_int64_t (and int64_t) */
16950 #ifndef _INT64_T
16951 #define _INT64_T
16952 #endif
16953 #ifndef _UINT64_T
16954 #define _UINT64_T
16955 #ifndef __uint64_t_defined
16956 #define __uint64_t_defined
16957 #ifndef uint64_t
16958 typedef u_int64_t uint64_t;
16959 #endif
16960 #endif
16961 #endif
16963 elif test -n "$acx_cv_type_int64_t"; then
16964 sed 's/^ *//' >> tmp-stdint.h <<EOF
16966 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16967 #ifndef _INT64_T
16968 #define _INT64_T
16969 #ifndef int64_t
16970 typedef $acx_cv_type_int64_t int64_t;
16971 #endif
16972 #endif
16973 #ifndef _UINT64_T
16974 #define _UINT64_T
16975 #ifndef __uint64_t_defined
16976 #define __uint64_t_defined
16977 #ifndef uint64_t
16978 typedef unsigned $acx_cv_type_int64_t uint64_t;
16979 #endif
16980 #endif
16981 #endif
16983 else
16984 sed 's/^ *//' >> tmp-stdint.h <<EOF
16986 /* some common heuristics for int64_t, using compiler-specific tests */
16987 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16988 #ifndef _INT64_T
16989 #define _INT64_T
16990 #ifndef __int64_t_defined
16991 #ifndef int64_t
16992 typedef long long int64_t;
16993 #endif
16994 #endif
16995 #endif
16996 #ifndef _UINT64_T
16997 #define _UINT64_T
16998 #ifndef uint64_t
16999 typedef unsigned long long uint64_t;
17000 #endif
17001 #endif
17003 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17004 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17005 does not implement __extension__. But that compiler doesn't define
17006 __GNUC_MINOR__. */
17007 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17008 # define __extension__
17009 # endif
17011 # ifndef _INT64_T
17012 # define _INT64_T
17013 # ifndef int64_t
17014 __extension__ typedef long long int64_t;
17015 # endif
17016 # endif
17017 # ifndef _UINT64_T
17018 # define _UINT64_T
17019 # ifndef uint64_t
17020 __extension__ typedef unsigned long long uint64_t;
17021 # endif
17022 # endif
17024 #elif !defined __STRICT_ANSI__
17025 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17027 # ifndef _INT64_T
17028 # define _INT64_T
17029 # ifndef int64_t
17030 typedef __int64 int64_t;
17031 # endif
17032 # endif
17033 # ifndef _UINT64_T
17034 # define _UINT64_T
17035 # ifndef uint64_t
17036 typedef unsigned __int64 uint64_t;
17037 # endif
17038 # endif
17039 # endif /* compiler */
17041 #endif /* ANSI version */
17045 # ------------- done int64_t types, emit intptr types ------------
17046 if test "$ac_cv_type_uintptr_t" != yes; then
17047 sed 's/^ *//' >> tmp-stdint.h <<EOF
17049 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17050 #ifndef __uintptr_t_defined
17051 #ifndef uintptr_t
17052 typedef u$acx_cv_type_intptr_t uintptr_t;
17053 #endif
17054 #endif
17055 #ifndef __intptr_t_defined
17056 #ifndef intptr_t
17057 typedef $acx_cv_type_intptr_t intptr_t;
17058 #endif
17059 #endif
17063 # ------------- done intptr types, emit int_least types ------------
17064 if test "$ac_cv_type_int_least32_t" != yes; then
17065 sed 's/^ *//' >> tmp-stdint.h <<EOF
17067 /* Define int_least types */
17068 typedef int8_t int_least8_t;
17069 typedef int16_t int_least16_t;
17070 typedef int32_t int_least32_t;
17071 #ifdef _INT64_T
17072 typedef int64_t int_least64_t;
17073 #endif
17075 typedef uint8_t uint_least8_t;
17076 typedef uint16_t uint_least16_t;
17077 typedef uint32_t uint_least32_t;
17078 #ifdef _UINT64_T
17079 typedef uint64_t uint_least64_t;
17080 #endif
17084 # ------------- done intptr types, emit int_fast types ------------
17085 if test "$ac_cv_type_int_fast32_t" != yes; then
17086 sed 's/^ *//' >> tmp-stdint.h <<EOF
17088 /* Define int_fast types. short is often slow */
17089 typedef int8_t int_fast8_t;
17090 typedef int int_fast16_t;
17091 typedef int32_t int_fast32_t;
17092 #ifdef _INT64_T
17093 typedef int64_t int_fast64_t;
17094 #endif
17096 typedef uint8_t uint_fast8_t;
17097 typedef unsigned int uint_fast16_t;
17098 typedef uint32_t uint_fast32_t;
17099 #ifdef _UINT64_T
17100 typedef uint64_t uint_fast64_t;
17101 #endif
17105 if test "$ac_cv_type_uintmax_t" != yes; then
17106 sed 's/^ *//' >> tmp-stdint.h <<EOF
17108 /* Define intmax based on what we found */
17109 #ifndef intmax_t
17110 #ifdef _INT64_T
17111 typedef int64_t intmax_t;
17112 #else
17113 typedef long intmax_t;
17114 #endif
17115 #endif
17116 #ifndef uintmax_t
17117 #ifdef _UINT64_T
17118 typedef uint64_t uintmax_t;
17119 #else
17120 typedef unsigned long uintmax_t;
17121 #endif
17122 #endif
17126 sed 's/^ *//' >> tmp-stdint.h <<EOF
17128 #endif /* GCC_GENERATED_STDINT_H */
17131 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
17132 rm -f tmp-stdint.h
17133 else
17134 mv -f tmp-stdint.h gstdint.h
17138 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
17139 "default":C) if test -n "$CONFIG_FILES"; then
17140 if test -n "${with_target_subdir}"; then
17141 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17142 # that multilib installs will end up installed in the correct place.
17143 # The testsuite needs it for multilib-aware ABI baseline files.
17144 # To work around this not being passed down from config-ml.in ->
17145 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17146 # append it here. Only modify Makefiles that have just been created.
17148 # Also, get rid of this simulated-VPATH thing that automake does.
17149 cat > vpsed << \_EOF
17150 s!`test -f '$<' || echo '$(srcdir)/'`!!
17151 _EOF
17152 for i in $SUBDIRS; do
17153 case $CONFIG_FILES in
17154 *${i}/Makefile*)
17155 #echo "Adding MULTISUBDIR to $i/Makefile"
17156 sed -f vpsed $i/Makefile > tmp
17157 grep '^MULTISUBDIR =' Makefile >> tmp
17158 mv tmp $i/Makefile
17160 esac
17161 done
17162 rm vpsed
17167 esac
17168 done # for ac_tag
17171 as_fn_exit 0
17172 _ACEOF
17173 ac_clean_files=$ac_clean_files_save
17175 test $ac_write_fail = 0 ||
17176 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17179 # configure is writing to config.log, and then calls config.status.
17180 # config.status does its own redirection, appending to config.log.
17181 # Unfortunately, on DOS this fails, as config.log is still kept open
17182 # by configure, so config.status won't be able to write to it; its
17183 # output is simply discarded. So we exec the FD to /dev/null,
17184 # effectively closing config.log, so it can be properly (re)opened and
17185 # appended to by config.status. When coming back to configure, we
17186 # need to make the FD available again.
17187 if test "$no_create" != yes; then
17188 ac_cs_success=:
17189 ac_config_status_args=
17190 test "$silent" = yes &&
17191 ac_config_status_args="$ac_config_status_args --quiet"
17192 exec 5>/dev/null
17193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17194 exec 5>>config.log
17195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17196 # would make configure fail if this is the last instruction.
17197 $ac_cs_success || as_fn_exit 1
17199 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17201 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}