2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sim 0.
5 # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev
/null
; then :
215 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 # Try only shells that exist, to save several forks.
229 as_shell
=$as_dir/$as_base
230 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 CONFIG_SHELL
=$as_shell as_have_required
=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
241 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
243 CONFIG_SHELL
=$SHELL as_have_required
=yes
248 if test "x$CONFIG_SHELL" != x
; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
258 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x
$as_have_required = xno
; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x
${ZSH_VERSION+set} = xset
; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL
=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE
= GREP_OPTIONS
=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir
=.
/$as_dir;;
333 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
337 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs
="'$as_qdir' $as_dirs"
341 as_dir
=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
367 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p
()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
410 as_val
=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status
=$1; test $as_status -eq 0 && as_status
=1
424 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit
$as_status
431 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
438 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
450 as_me
=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits
='0123456789'
474 as_cr_alnum
=$as_cr_Letters$as_cr_digits
477 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
478 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x
"$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec
=no
; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C
= ECHO_N
= ECHO_T
=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
525 rm -f conf$$ conf$$.exe conf$$.
file
526 if test -d conf$$.dir
; then
527 rm -f conf$$.dir
/conf$$.
file
530 mkdir conf$$.dir
2>/dev
/null
532 if (echo >conf$$.
file) 2>/dev
/null
; then
533 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
541 elif ln conf$$.
file conf$$
2>/dev
/null
; then
549 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
550 rmdir conf$$.dir
2>/dev
/null
552 if mkdir
-p .
2>/dev
/null
; then
553 as_mkdir_p
='mkdir -p "$as_dir"'
555 test -d .
/-p && rmdir .
/-p
560 as_executable_p
=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL
=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix
=/usr
/local
584 ac_config_libobj_dir
=.
591 # Identity of this package.
593 PACKAGE_TARNAME
='sim'
595 PACKAGE_STRING
='sim 0'
596 PACKAGE_BUGREPORT
='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597 PACKAGE_URL
='https://sourceware.org/gdb/wiki/Sim/'
599 # Factoring default headers for most tests.
600 ac_includes_default
="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
637 ac_subst_vars
='am__EXEEXT_FALSE
641 SIM_RX_CYCLE_ACCURATE_FLAGS
644 sim_ppc_default_model
658 sim_ppc_decode_mechanism
663 SIM_MIPS_GEN_MODE_MULTI_FALSE
664 SIM_MIPS_GEN_MODE_MULTI_TRUE
665 SIM_MIPS_GEN_MODE_M16_FALSE
666 SIM_MIPS_GEN_MODE_M16_TRUE
667 SIM_MIPS_GEN_MODE_SINGLE_FALSE
668 SIM_MIPS_GEN_MODE_SINGLE_TRUE
671 SIM_MIPS_MULTI_IGEN_CONFIGS
672 SIM_MIPS_IGEN_ITABLE_FLAGS
675 SIM_MIPS_SINGLE_FLAGS
679 SIM_FRV_TRAPDUMP_FLAGS
680 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE
681 SIM_CFLAG_WNO_SHADOW_LOCAL
693 SIM_ENABLE_ARCH_examples_FALSE
694 SIM_ENABLE_ARCH_examples_TRUE
695 CC_FOR_TARGET_EXAMPLE_SYNACOR
696 LD_FOR_TARGET_EXAMPLE_SYNACOR
697 AS_FOR_TARGET_EXAMPLE_SYNACOR
698 SIM_ENABLE_ARCH_v850_FALSE
699 SIM_ENABLE_ARCH_v850_TRUE
703 SIM_ENABLE_ARCH_erc32_FALSE
704 SIM_ENABLE_ARCH_erc32_TRUE
708 SIM_ENABLE_ARCH_sh_FALSE
709 SIM_ENABLE_ARCH_sh_TRUE
713 SIM_ENABLE_ARCH_rx_FALSE
714 SIM_ENABLE_ARCH_rx_TRUE
718 SIM_ENABLE_ARCH_rl78_FALSE
719 SIM_ENABLE_ARCH_rl78_TRUE
723 SIM_ENABLE_ARCH_riscv_FALSE
724 SIM_ENABLE_ARCH_riscv_TRUE
728 SIM_ENABLE_ARCH_pru_FALSE
729 SIM_ENABLE_ARCH_pru_TRUE
733 SIM_ENABLE_ARCH_ppc_FALSE
734 SIM_ENABLE_ARCH_ppc_TRUE
738 SIM_ENABLE_ARCH_or1k_FALSE
739 SIM_ENABLE_ARCH_or1k_TRUE
743 SIM_ENABLE_ARCH_msp430_FALSE
744 SIM_ENABLE_ARCH_msp430_TRUE
748 SIM_ENABLE_ARCH_moxie_FALSE
749 SIM_ENABLE_ARCH_moxie_TRUE
753 SIM_ENABLE_ARCH_mn10300_FALSE
754 SIM_ENABLE_ARCH_mn10300_TRUE
755 CC_FOR_TARGET_MN10300
756 LD_FOR_TARGET_MN10300
757 AS_FOR_TARGET_MN10300
758 SIM_ENABLE_ARCH_mips_FALSE
759 SIM_ENABLE_ARCH_mips_TRUE
763 SIM_ENABLE_ARCH_microblaze_FALSE
764 SIM_ENABLE_ARCH_microblaze_TRUE
765 CC_FOR_TARGET_MICROBLAZE
766 LD_FOR_TARGET_MICROBLAZE
767 AS_FOR_TARGET_MICROBLAZE
768 SIM_ENABLE_ARCH_mcore_FALSE
769 SIM_ENABLE_ARCH_mcore_TRUE
773 SIM_ENABLE_ARCH_m68hc11_FALSE
774 SIM_ENABLE_ARCH_m68hc11_TRUE
775 CC_FOR_TARGET_M68HC11
776 LD_FOR_TARGET_M68HC11
777 AS_FOR_TARGET_M68HC11
778 SIM_ENABLE_ARCH_m32r_FALSE
779 SIM_ENABLE_ARCH_m32r_TRUE
783 SIM_ENABLE_ARCH_m32c_FALSE
784 SIM_ENABLE_ARCH_m32c_TRUE
788 SIM_ENABLE_ARCH_lm32_FALSE
789 SIM_ENABLE_ARCH_lm32_TRUE
793 SIM_ENABLE_ARCH_iq2000_FALSE
794 SIM_ENABLE_ARCH_iq2000_TRUE
798 SIM_ENABLE_ARCH_h8300_FALSE
799 SIM_ENABLE_ARCH_h8300_TRUE
803 SIM_ENABLE_ARCH_ft32_FALSE
804 SIM_ENABLE_ARCH_ft32_TRUE
808 SIM_ENABLE_ARCH_frv_FALSE
809 SIM_ENABLE_ARCH_frv_TRUE
813 SIM_ENABLE_ARCH_d10v_FALSE
814 SIM_ENABLE_ARCH_d10v_TRUE
818 SIM_ENABLE_ARCH_cris_FALSE
819 SIM_ENABLE_ARCH_cris_TRUE
823 SIM_ENABLE_ARCH_cr16_FALSE
824 SIM_ENABLE_ARCH_cr16_TRUE
828 SIM_ENABLE_ARCH_bpf_FALSE
829 SIM_ENABLE_ARCH_bpf_TRUE
833 SIM_ENABLE_ARCH_bfin_FALSE
834 SIM_ENABLE_ARCH_bfin_TRUE
838 SIM_ENABLE_ARCH_avr_FALSE
839 SIM_ENABLE_ARCH_avr_TRUE
843 SIM_ENABLE_ARCH_aarch64_FALSE
844 SIM_ENABLE_ARCH_aarch64_TRUE
845 CC_FOR_TARGET_AARCH64
846 LD_FOR_TARGET_AARCH64
847 AS_FOR_TARGET_AARCH64
874 INSTALL_STRIP_PROGRAM
886 MAINTAINER_MODE_FALSE
977 program_transform_name
995 enable_option_checking
1004 enable_maintainer_mode
1005 enable_dependency_tracking
1010 enable_sim_alignment
1015 enable_sim_environment
1019 enable_sim_reserved_bits
1025 enable_build_warnings
1026 enable_sim_build_warnings
1027 enable_sim_frv_trapdump
1028 enable_sim_ppc_bitsize
1029 enable_sim_ppc_decode_mechanism
1030 enable_sim_ppc_default_model
1031 enable_sim_ppc_duplicate
1032 enable_sim_ppc_filter
1033 enable_sim_ppc_float
1034 enable_sim_ppc_hardware
1035 enable_sim_ppc_icache
1037 enable_sim_ppc_line_nr
1038 enable_sim_ppc_model
1039 enable_sim_ppc_model_issue
1040 enable_sim_ppc_monitor
1041 enable_sim_ppc_opcode
1043 enable_sim_ppc_switch
1044 enable_sim_ppc_timebase
1045 enable_sim_ppc_xor_endian
1046 enable_sim_rx_cycle_accurate
1048 ac_precious_vars
='build_alias
1062 AS_FOR_TARGET_AARCH64
1063 LD_FOR_TARGET_AARCH64
1064 CC_FOR_TARGET_AARCH64
1092 AS_FOR_TARGET_IQ2000
1093 LD_FOR_TARGET_IQ2000
1094 CC_FOR_TARGET_IQ2000
1104 AS_FOR_TARGET_M68HC11
1105 LD_FOR_TARGET_M68HC11
1106 CC_FOR_TARGET_M68HC11
1110 AS_FOR_TARGET_MICROBLAZE
1111 LD_FOR_TARGET_MICROBLAZE
1112 CC_FOR_TARGET_MICROBLAZE
1116 AS_FOR_TARGET_MN10300
1117 LD_FOR_TARGET_MN10300
1118 CC_FOR_TARGET_MN10300
1122 AS_FOR_TARGET_MSP430
1123 LD_FOR_TARGET_MSP430
1124 CC_FOR_TARGET_MSP430
1152 AS_FOR_TARGET_EXAMPLE_SYNACOR
1153 LD_FOR_TARGET_EXAMPLE_SYNACOR
1154 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1157 # Initialize some variables set by options.
1159 ac_init_version
=false
1160 ac_unrecognized_opts
=
1161 ac_unrecognized_sep
=
1162 # The variables have the same names as the options, with
1163 # dashes changed to underlines.
1164 cache_file
=/dev
/null
1171 program_transform_name
=s
,x
,x
,
1179 # Installation directory options.
1180 # These are left unexpanded so users can "make install exec_prefix=/foo"
1181 # and all the variables that are supposed to be based on exec_prefix
1182 # by default will actually change.
1183 # Use braces instead of parens because sh, perl, etc. also accept them.
1184 # (The list follows the same order as the GNU Coding Standards.)
1185 bindir
='${exec_prefix}/bin'
1186 sbindir
='${exec_prefix}/sbin'
1187 libexecdir
='${exec_prefix}/libexec'
1188 datarootdir
='${prefix}/share'
1189 datadir
='${datarootdir}'
1190 sysconfdir
='${prefix}/etc'
1191 sharedstatedir
='${prefix}/com'
1192 localstatedir
='${prefix}/var'
1193 includedir
='${prefix}/include'
1194 oldincludedir
='/usr/include'
1195 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1196 infodir
='${datarootdir}/info'
1201 libdir
='${exec_prefix}/lib'
1202 localedir
='${datarootdir}/locale'
1203 mandir
='${datarootdir}/man'
1209 # If the previous option needs an argument, assign it.
1210 if test -n "$ac_prev"; then
1211 eval $ac_prev=\
$ac_option
1217 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1222 # Accept the important Cygnus configure options, so we can diagnose typos.
1224 case $ac_dashdash$ac_option in
1228 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1230 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1231 bindir
=$ac_optarg ;;
1233 -build |
--build |
--buil |
--bui |
--bu)
1234 ac_prev
=build_alias
;;
1235 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1236 build_alias
=$ac_optarg ;;
1238 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1239 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1240 ac_prev
=cache_file
;;
1241 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1242 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1243 cache_file
=$ac_optarg ;;
1245 --config-cache |
-C)
1246 cache_file
=config.cache
;;
1248 -datadir |
--datadir |
--datadi |
--datad)
1250 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1251 datadir
=$ac_optarg ;;
1253 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1254 |
--dataroo |
--dataro |
--datar)
1255 ac_prev
=datarootdir
;;
1256 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1257 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1258 datarootdir
=$ac_optarg ;;
1260 -disable-* |
--disable-*)
1261 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1264 as_fn_error $?
"invalid feature name: $ac_useropt"
1265 ac_useropt_orig
=$ac_useropt
1266 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1269 "enable_
$ac_useropt"
1271 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1272 ac_unrecognized_sep
=', ';;
1274 eval enable_
$ac_useropt=no
;;
1276 -docdir |
--docdir |
--docdi |
--doc |
--do)
1278 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1279 docdir
=$ac_optarg ;;
1281 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1283 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1284 dvidir
=$ac_optarg ;;
1286 -enable-* |
--enable-*)
1287 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1290 as_fn_error $?
"invalid feature name: $ac_useropt"
1291 ac_useropt_orig
=$ac_useropt
1292 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1295 "enable_
$ac_useropt"
1297 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1298 ac_unrecognized_sep
=', ';;
1300 eval enable_
$ac_useropt=\
$ac_optarg ;;
1302 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1303 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1304 |
--exec |
--exe |
--ex)
1305 ac_prev
=exec_prefix
;;
1306 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1307 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1308 |
--exec=* |
--exe=* |
--ex=*)
1309 exec_prefix
=$ac_optarg ;;
1311 -gas |
--gas |
--ga |
--g)
1312 # Obsolete; use --with-gas.
1315 -help |
--help |
--hel |
--he |
-h)
1316 ac_init_help
=long
;;
1317 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1318 ac_init_help
=recursive
;;
1319 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1320 ac_init_help
=short
;;
1322 -host |
--host |
--hos |
--ho)
1323 ac_prev
=host_alias
;;
1324 -host=* |
--host=* |
--hos=* |
--ho=*)
1325 host_alias
=$ac_optarg ;;
1327 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1329 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1331 htmldir
=$ac_optarg ;;
1333 -includedir |
--includedir |
--includedi |
--included |
--include \
1334 |
--includ |
--inclu |
--incl |
--inc)
1335 ac_prev
=includedir
;;
1336 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1337 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1338 includedir
=$ac_optarg ;;
1340 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1342 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1343 infodir
=$ac_optarg ;;
1345 -libdir |
--libdir |
--libdi |
--libd)
1347 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1348 libdir
=$ac_optarg ;;
1350 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1351 |
--libexe |
--libex |
--libe)
1352 ac_prev
=libexecdir
;;
1353 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1354 |
--libexe=* |
--libex=* |
--libe=*)
1355 libexecdir
=$ac_optarg ;;
1357 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1358 ac_prev
=localedir
;;
1359 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1360 localedir
=$ac_optarg ;;
1362 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1363 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1364 ac_prev
=localstatedir
;;
1365 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1366 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1367 localstatedir
=$ac_optarg ;;
1369 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1371 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1372 mandir
=$ac_optarg ;;
1374 -nfp |
--nfp |
--nf)
1375 # Obsolete; use --without-fp.
1378 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1379 |
--no-cr |
--no-c |
-n)
1382 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1383 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1386 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1387 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1388 |
--oldin |
--oldi |
--old |
--ol |
--o)
1389 ac_prev
=oldincludedir
;;
1390 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1391 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1392 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1393 oldincludedir
=$ac_optarg ;;
1395 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1397 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1398 prefix
=$ac_optarg ;;
1400 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1401 |
--program-pre |
--program-pr |
--program-p)
1402 ac_prev
=program_prefix
;;
1403 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1404 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1405 program_prefix
=$ac_optarg ;;
1407 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1408 |
--program-suf |
--program-su |
--program-s)
1409 ac_prev
=program_suffix
;;
1410 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1411 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1412 program_suffix
=$ac_optarg ;;
1414 -program-transform-name |
--program-transform-name \
1415 |
--program-transform-nam |
--program-transform-na \
1416 |
--program-transform-n |
--program-transform- \
1417 |
--program-transform |
--program-transfor \
1418 |
--program-transfo |
--program-transf \
1419 |
--program-trans |
--program-tran \
1420 |
--progr-tra |
--program-tr |
--program-t)
1421 ac_prev
=program_transform_name
;;
1422 -program-transform-name=* |
--program-transform-name=* \
1423 |
--program-transform-nam=* |
--program-transform-na=* \
1424 |
--program-transform-n=* |
--program-transform-=* \
1425 |
--program-transform=* |
--program-transfor=* \
1426 |
--program-transfo=* |
--program-transf=* \
1427 |
--program-trans=* |
--program-tran=* \
1428 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1429 program_transform_name
=$ac_optarg ;;
1431 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1433 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1434 pdfdir
=$ac_optarg ;;
1436 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1438 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1441 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1442 |
-silent |
--silent |
--silen |
--sile |
--sil)
1445 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1447 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1449 sbindir
=$ac_optarg ;;
1451 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1452 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1453 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1455 ac_prev
=sharedstatedir
;;
1456 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1457 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1458 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1460 sharedstatedir
=$ac_optarg ;;
1462 -site |
--site |
--sit)
1464 -site=* |
--site=* |
--sit=*)
1467 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1469 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1470 srcdir
=$ac_optarg ;;
1472 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1473 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1474 ac_prev
=sysconfdir
;;
1475 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1476 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1477 sysconfdir
=$ac_optarg ;;
1479 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1480 ac_prev
=target_alias
;;
1481 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1482 target_alias
=$ac_optarg ;;
1484 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1487 -version |
--version |
--versio |
--versi |
--vers |
-V)
1488 ac_init_version
=: ;;
1491 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1492 # Reject names that are not valid shell variable names.
1493 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1494 as_fn_error $?
"invalid package name: $ac_useropt"
1495 ac_useropt_orig
=$ac_useropt
1496 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1497 case $ac_user_opts in
1501 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1502 ac_unrecognized_sep
=', ';;
1504 eval with_
$ac_useropt=\
$ac_optarg ;;
1506 -without-* |
--without-*)
1507 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1508 # Reject names that are not valid shell variable names.
1509 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1510 as_fn_error $?
"invalid package name: $ac_useropt"
1511 ac_useropt_orig
=$ac_useropt
1512 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513 case $ac_user_opts in
1517 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1518 ac_unrecognized_sep
=', ';;
1520 eval with_
$ac_useropt=no
;;
1523 # Obsolete; use --with-x.
1526 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1527 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1528 ac_prev
=x_includes
;;
1529 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1530 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1531 x_includes
=$ac_optarg ;;
1533 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1534 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1535 ac_prev
=x_libraries
;;
1536 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1537 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1538 x_libraries
=$ac_optarg ;;
1540 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1541 Try \`$0 --help' for more information"
1545 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1546 # Reject names that are not valid shell variable names.
1547 case $ac_envvar in #(
1548 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1549 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1551 eval $ac_envvar=\
$ac_optarg
1552 export $ac_envvar ;;
1555 # FIXME: should be removed in autoconf 3.0.
1556 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1557 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1558 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1559 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1565 if test -n "$ac_prev"; then
1566 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1567 as_fn_error $?
"missing argument to $ac_option"
1570 if test -n "$ac_unrecognized_opts"; then
1571 case $enable_option_checking in
1573 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1574 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1578 # Check all directory arguments for consistency.
1579 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1580 datadir sysconfdir sharedstatedir localstatedir includedir \
1581 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1582 libdir localedir mandir
1584 eval ac_val
=\$
$ac_var
1585 # Remove trailing slashes.
1588 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1589 eval $ac_var=\
$ac_val;;
1591 # Be sure to have absolute directory names.
1593 [\\/$
]* | ?
:[\\/]* ) continue;;
1594 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1596 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1599 # There might be people who depend on the old broken behavior: `$host'
1600 # used to hold the argument of --host etc.
1601 # FIXME: To remove some day.
1604 target
=$target_alias
1606 # FIXME: To remove some day.
1607 if test "x$host_alias" != x
; then
1608 if test "x$build_alias" = x
; then
1609 cross_compiling
=maybe
1610 elif test "x$build_alias" != "x$host_alias"; then
1616 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1618 test "$silent" = yes && exec 6>/dev
/null
1621 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1622 ac_ls_di
=`ls -di .` &&
1623 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1624 as_fn_error $?
"working directory cannot be determined"
1625 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1626 as_fn_error $?
"pwd does not report name of working directory"
1629 # Find the source files, if location was not specified.
1630 if test -z "$srcdir"; then
1631 ac_srcdir_defaulted
=yes
1632 # Try the directory containing this script, then the parent directory.
1633 ac_confdir
=`$as_dirname -- "$as_myself" ||
1634 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1635 X"$as_myself" : 'X\(//\)[^/]' \| \
1636 X"$as_myself" : 'X\(//\)$' \| \
1637 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1638 $as_echo X"$as_myself" |
1639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1657 if test ! -r "$srcdir/$ac_unique_file"; then
1661 ac_srcdir_defaulted
=no
1663 if test ! -r "$srcdir/$ac_unique_file"; then
1664 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1665 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1667 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1669 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1671 # When building in place, set srcdir=.
1672 if test "$ac_abs_confdir" = "$ac_pwd"; then
1675 # Remove unnecessary trailing slashes from srcdir.
1676 # Double slashes in file names in object file debugging info
1677 # mess up M-x gdb in Emacs.
1679 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1681 for ac_var
in $ac_precious_vars; do
1682 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1683 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1684 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1685 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1689 # Report the --help message.
1691 if test "$ac_init_help" = "long"; then
1692 # Omit some internal or obsolete options to make the list less imposing.
1693 # This message is too long to be a string in the A/UX 3.1 sh.
1695 \`configure' configures sim 0 to adapt to many kinds of systems.
1697 Usage: $0 [OPTION]... [VAR=VALUE]...
1699 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1700 VAR=VALUE. See below for descriptions of some of the useful variables.
1702 Defaults for the options are specified in brackets.
1705 -h, --help display this help and exit
1706 --help=short display options specific to this package
1707 --help=recursive display the short help of all the included packages
1708 -V, --version display version information and exit
1709 -q, --quiet, --silent do not print \`checking ...' messages
1710 --cache-file=FILE cache test results in FILE [disabled]
1711 -C, --config-cache alias for \`--cache-file=config.cache'
1712 -n, --no-create do not create output files
1713 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1715 Installation directories:
1716 --prefix=PREFIX install architecture-independent files in PREFIX
1717 [$ac_default_prefix]
1718 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1721 By default, \`make install' will install all the files in
1722 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1723 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1724 for instance \`--prefix=\$HOME'.
1726 For better control, use the options below.
1728 Fine tuning of the installation directories:
1729 --bindir=DIR user executables [EPREFIX/bin]
1730 --sbindir=DIR system admin executables [EPREFIX/sbin]
1731 --libexecdir=DIR program executables [EPREFIX/libexec]
1732 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1733 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1734 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1735 --libdir=DIR object code libraries [EPREFIX/lib]
1736 --includedir=DIR C header files [PREFIX/include]
1737 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1738 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1739 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1740 --infodir=DIR info documentation [DATAROOTDIR/info]
1741 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1742 --mandir=DIR man documentation [DATAROOTDIR/man]
1743 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1744 --htmldir=DIR html documentation [DOCDIR]
1745 --dvidir=DIR dvi documentation [DOCDIR]
1746 --pdfdir=DIR pdf documentation [DOCDIR]
1747 --psdir=DIR ps documentation [DOCDIR]
1753 --program-prefix=PREFIX prepend PREFIX to installed program names
1754 --program-suffix=SUFFIX append SUFFIX to installed program names
1755 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1758 --build=BUILD configure
for building on BUILD
[guessed
]
1759 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1760 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1764 if test -n "$ac_init_help"; then
1765 case $ac_init_help in
1766 short | recursive
) echo "Configuration of sim 0:";;
1771 --disable-option-checking ignore unrecognized
--enable/--with options
1772 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1773 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1774 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1775 --enable-static[=PKGS
] build static libraries
[default
=yes]
1776 --enable-fast-install[=PKGS
]
1777 optimize
for fast installation
[default
=yes]
1778 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1779 --enable-maintainer-mode
1780 enable make rules and dependencies not useful
(and
1781 sometimes confusing
) to the casual installer
1782 --enable-dependency-tracking
1783 do not reject slow dependency extractors
1784 --disable-dependency-tracking
1785 speeds up one-time build
1786 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1787 --disable-silent-rules verbose build output
(undo
: "make V=0")
1788 --enable-sim Enable the GNU simulator
1789 --enable-example-sims enable example GNU simulators
1790 --enable-targets alternative target configurations
1791 --enable-sim-alignment=align
1792 Specify strict
, nonstrict or forced alignment of
1794 --enable-sim-assert Specify whether to perform random assertions
1795 --enable-cgen-maint=DIR build cgen generated files
1796 --enable-sim-debug=opts Enable debugging flags
(for developers of the sim
1798 --enable-sim-endian=endian
1799 Specify target byte endian orientation
1800 --enable-sim-environment=environment
1801 Specify mixed
, user
, virtual or operating
1803 --enable-sim-hardware Whether to
enable hardware
/device simulation
1804 --enable-sim-inline=inlines
1805 Specify
which functions should be inlined
1806 --enable-sim-profile=opts
1807 Enable profiling flags
1808 --enable-sim-reserved-bits
1809 Specify whether to check reserved bits
in
1811 --enable-sim-scache=size
1812 Specify simulator execution cache size
1813 --enable-sim-smp=n Specify number of processors to configure
for
1815 --enable-sim-stdio Specify whether to use stdio
for console
1817 --enable-sim-trace=opts Enable tracing of simulated programs
1818 --enable-werror treat compile warnings as errors
1819 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1820 --enable-sim-build-warnings
1821 enable SIM specific build-time compiler warnings
if
1823 --enable-sim-frv-trapdump
1824 Make unknown traps dump the registers
1825 --enable-sim-ppc-bitsize=n
1826 Specify target bitsize
(32 or
64).
1827 --enable-sim-ppc-decode-mechanism=which
1828 Specify the instruction decode mechanism.
1829 --enable-sim-ppc-default-model=which
1830 Specify default PowerPC to model.
1831 --enable-sim-ppc-duplicate
1832 Expand
(duplicate
) semantic functions.
1833 --enable-sim-ppc-filter=rule
1834 Specify filter rules.
1835 --enable-sim-ppc-float Specify whether the target has hard
, soft
, altivec
1836 or e500 floating point.
1837 --enable-sim-ppc-hardware=list
1838 Specify the hardware to be included
in the build.
1839 --enable-sim-ppc-icache=size
1840 Specify instruction-decode cache size and
type.
1841 --enable-sim-ppc-jump Jump between semantic code
(instead of
call
/return).
1842 --enable-sim-ppc-line-nr=opts
1843 Generate extra CPP code that references
source
1844 rather than generated code
1845 --enable-sim-ppc-model=which
1846 Specify PowerPC to model.
1847 --enable-sim-ppc-model-issue
1848 Specify whether to simulate model specific actions
1849 --enable-sim-ppc-monitor=mon
1850 Specify whether to
enable monitoring events.
1851 --enable-sim-ppc-opcode=which
1852 Override default opcode lookup.
1853 --enable-sim-ppc-smp=n Specify number of processors to configure
for.
1854 --enable-sim-ppc-switch Use a switch instead of a table
for instruction
1856 --enable-sim-ppc-timebase
1857 Specify whether the PPC timebase is supported.
1858 --enable-sim-ppc-xor-endian=n
1859 Specify number bytes involved
in PowerPC XOR
1860 bi-endian mode
(default
8).
1861 --disable-sim-rx-cycle-accurate
1862 Disable cycle accurate simulation
(faster runtime
)
1865 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1866 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1867 --with-pkgversion=PKG Use PKG
in the version string
in place of
"SIM"
1868 --with-bugurl=URL Direct users to URL to report a bug
1869 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1871 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1873 Some influential environment variables
:
1874 CC C compiler
command
1875 CFLAGS C compiler flags
1876 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1877 nonstandard directory
<lib dir
>
1878 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1879 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1880 you have headers
in a nonstandard directory
<include dir
>
1882 PKG_CONFIG path to pkg-config utility
1884 directories to add to pkg-config
's search path
1886 path overriding pkg-config's built-in search path
1887 SDL_CFLAGS C compiler flags
for SDL
, overriding pkg-config
1888 SDL_LIBS linker flags
for SDL
, overriding pkg-config
1889 AS_FOR_TARGET_AARCH64
1890 Assembler
for aarch64 tests
1891 LD_FOR_TARGET_AARCH64
1892 Linker
for aarch64 tests
1893 CC_FOR_TARGET_AARCH64
1894 C compiler
for aarch64 tests
1896 Assembler
for avr tests
1898 Linker
for avr tests
1900 C compiler
for avr tests
1902 Assembler
for bfin tests
1904 Linker
for bfin tests
1906 C compiler
for bfin tests
1908 Assembler
for bpf tests
1910 Linker
for bpf tests
1912 C compiler
for bpf tests
1914 Assembler
for cr16 tests
1916 Linker
for cr16 tests
1918 C compiler
for cr16 tests
1920 Assembler
for cris tests
1922 Linker
for cris tests
1924 C compiler
for cris tests
1926 Assembler
for d10v tests
1928 Linker
for d10v tests
1930 C compiler
for d10v tests
1932 Assembler
for frv tests
1934 Linker
for frv tests
1936 C compiler
for frv tests
1938 Assembler
for ft32 tests
1940 Linker
for ft32 tests
1942 C compiler
for ft32 tests
1944 Assembler
for h8300 tests
1946 Linker
for h8300 tests
1948 C compiler
for h8300 tests
1949 AS_FOR_TARGET_IQ2000
1950 Assembler
for iq2000 tests
1951 LD_FOR_TARGET_IQ2000
1952 Linker
for iq2000 tests
1953 CC_FOR_TARGET_IQ2000
1954 C compiler
for iq2000 tests
1956 Assembler
for lm32 tests
1958 Linker
for lm32 tests
1960 C compiler
for lm32 tests
1962 Assembler
for m32c tests
1964 Linker
for m32c tests
1966 C compiler
for m32c tests
1968 Assembler
for m32r tests
1970 Linker
for m32r tests
1972 C compiler
for m32r tests
1973 AS_FOR_TARGET_M68HC11
1974 Assembler
for m68hc11 tests
1975 LD_FOR_TARGET_M68HC11
1976 Linker
for m68hc11 tests
1977 CC_FOR_TARGET_M68HC11
1978 C compiler
for m68hc11 tests
1980 Assembler
for mcore tests
1982 Linker
for mcore tests
1984 C compiler
for mcore tests
1985 AS_FOR_TARGET_MICROBLAZE
1986 Assembler
for microblaze tests
1987 LD_FOR_TARGET_MICROBLAZE
1988 Linker
for microblaze tests
1989 CC_FOR_TARGET_MICROBLAZE
1990 C compiler
for microblaze tests
1992 Assembler
for mips tests
1994 Linker
for mips tests
1996 C compiler
for mips tests
1997 AS_FOR_TARGET_MN10300
1998 Assembler
for mn10300 tests
1999 LD_FOR_TARGET_MN10300
2000 Linker
for mn10300 tests
2001 CC_FOR_TARGET_MN10300
2002 C compiler
for mn10300 tests
2004 Assembler
for moxie tests
2006 Linker
for moxie tests
2008 C compiler
for moxie tests
2009 AS_FOR_TARGET_MSP430
2010 Assembler
for msp430 tests
2011 LD_FOR_TARGET_MSP430
2012 Linker
for msp430 tests
2013 CC_FOR_TARGET_MSP430
2014 C compiler
for msp430 tests
2016 Assembler
for or1k tests
2018 Linker
for or1k tests
2020 C compiler
for or1k tests
2022 Assembler
for ppc tests
2024 Linker
for ppc tests
2026 C compiler
for ppc tests
2028 Assembler
for pru tests
2030 Linker
for pru tests
2032 C compiler
for pru tests
2034 Assembler
for riscv tests
2036 Linker
for riscv tests
2038 C compiler
for riscv tests
2040 Assembler
for rl78 tests
2042 Linker
for rl78 tests
2044 C compiler
for rl78 tests
2046 Assembler
for rx tests
2050 C compiler
for rx tests
2052 Assembler
for sh tests
2056 C compiler
for sh tests
2058 Assembler
for erc32 tests
2060 Linker
for erc32 tests
2062 C compiler
for erc32 tests
2064 Assembler
for v850 tests
2066 Linker
for v850 tests
2068 C compiler
for v850 tests
2069 AS_FOR_TARGET_EXAMPLE_SYNACOR
2070 Assembler
for example-synacor tests
2071 LD_FOR_TARGET_EXAMPLE_SYNACOR
2072 Linker
for example-synacor tests
2073 CC_FOR_TARGET_EXAMPLE_SYNACOR
2074 C compiler
for example-synacor tests
2076 Use these variables to override the choices made by
`configure' or to help
2077 it to find libraries and programs with nonstandard names/locations.
2079 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2080 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2085 if test "$ac_init_help" = "recursive"; then
2086 # If there are subdirs, report their specific --help.
2087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2088 test -d "$ac_dir" ||
2089 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2096 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2097 # A ".." for each directory in $ac_dir_suffix.
2098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2099 case $ac_top_builddir_sub in
2100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2104 ac_abs_top_builddir=$ac_pwd
2105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2106 # for backward compatibility:
2107 ac_top_builddir=$ac_top_build_prefix
2110 .) # We are building in place.
2112 ac_top_srcdir=$ac_top_builddir_sub
2113 ac_abs_top_srcdir=$ac_pwd ;;
2114 [\\/]* | ?:[\\/]* ) # Absolute name.
2115 ac_srcdir=$srcdir$ac_dir_suffix;
2116 ac_top_srcdir=$srcdir
2117 ac_abs_top_srcdir=$srcdir ;;
2119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2120 ac_top_srcdir=$ac_top_build_prefix$srcdir
2121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2125 cd "$ac_dir" || { ac_status=$?; continue; }
2126 # Check for guested configure.
2127 if test -f "$ac_srcdir/configure.gnu"; then
2129 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2130 elif test -f "$ac_srcdir/configure"; then
2132 $SHELL "$ac_srcdir/configure" --help=recursive
2134 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2136 cd "$ac_pwd" || { ac_status=$?; break; }
2140 test -n "$ac_init_help" && exit $ac_status
2141 if $ac_init_version; then
2144 generated by GNU Autoconf 2.69
2146 Copyright (C) 2012 Free Software Foundation, Inc.
2147 This configure script is free software; the Free Software Foundation
2148 gives unlimited permission to copy, distribute and modify it.
2153 ## ------------------------ ##
2154 ## Autoconf initialization. ##
2155 ## ------------------------ ##
2157 # ac_fn_c_try_compile LINENO
2158 # --------------------------
2159 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2160 ac_fn_c_try_compile ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 rm -f conftest.$ac_objext
2164 if { { ac_try="$ac_compile"
2166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2167 *) ac_try_echo
=$ac_try;;
2169 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170 $as_echo "$ac_try_echo"; } >&5
2171 (eval "$ac_compile") 2>conftest.err
2173 if test -s conftest.err
; then
2174 grep -v '^ *+' conftest.err
>conftest.er1
2175 cat conftest.er1
>&5
2176 mv -f conftest.er1 conftest.err
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179 test $ac_status = 0; } && {
2180 test -z "$ac_c_werror_flag" ||
2181 test ! -s conftest.err
2182 } && test -s conftest.
$ac_objext; then :
2185 $as_echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.
$ac_ext >&5
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 as_fn_set_status
$ac_retval
2193 } # ac_fn_c_try_compile
2195 # ac_fn_c_try_cpp LINENO
2196 # ----------------------
2197 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2200 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2201 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2210 if test -s conftest.err; then
2211 grep -v '^ *+' conftest.err >conftest.er1
2212 cat conftest.er1 >&5
2213 mv -f conftest.er1 conftest.err
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } > conftest.i && {
2217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2218 test ! -s conftest.err
2222 $as_echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 as_fn_set_status $ac_retval
2232 # ac_fn_c_try_run LINENO
2233 # ----------------------
2234 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2235 # that executables *can* be run.
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if { { ac_try="$ac_link"
2241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2242 *) ac_try_echo
=$ac_try;;
2244 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245 $as_echo "$ac_try_echo"; } >&5
2246 (eval "$ac_link") 2>&5
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2250 { { case "(($ac_try" in
2251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255 $as_echo "$ac_try_echo"; } >&5
2256 (eval "$ac_try") 2>&5
2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259 test $ac_status = 0; }; }; then :
2262 $as_echo "$as_me: program exited with status $ac_status" >&5
2263 $as_echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2266 ac_retval=$ac_status
2268 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 as_fn_set_status $ac_retval
2274 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2275 # -------------------------------------------------------
2276 # Tests whether HEADER exists and can be compiled using the include files in
2277 # INCLUDES, setting the cache variable VAR accordingly.
2278 ac_fn_c_check_header_compile ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if eval \${$3+:} false; then :
2284 $as_echo_n "(cached) " >&6
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2291 if ac_fn_c_try_compile "$LINENO"; then :
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 } # ac_fn_c_check_header_compile
2305 # ac_fn_c_try_link LINENO
2306 # -----------------------
2307 # Try to link conftest.$ac_ext, and return whether this succeeded.
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 rm -f conftest.$ac_objext conftest$ac_exeext
2312 if { { ac_try="$ac_link"
2314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2315 *) ac_try_echo
=$ac_try;;
2317 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318 $as_echo "$ac_try_echo"; } >&5
2319 (eval "$ac_link") 2>conftest.err
2321 if test -s conftest.err
; then
2322 grep -v '^ *+' conftest.err
>conftest.er1
2323 cat conftest.er1
>&5
2324 mv -f conftest.er1 conftest.err
2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327 test $ac_status = 0; } && {
2328 test -z "$ac_c_werror_flag" ||
2329 test ! -s conftest.err
2330 } && test -s conftest
$ac_exeext && {
2331 test "$cross_compiling" = yes ||
2332 test -x conftest
$ac_exeext
2336 $as_echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.
$ac_ext >&5
2341 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2342 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2343 # interfere with the next link command; also delete a directory that is
2344 # left behind by Apple's compiler. We do this before executing the actions.
2345 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2346 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347 as_fn_set_status
$ac_retval
2349 } # ac_fn_c_try_link
2351 # ac_fn_c_check_func LINENO FUNC VAR
2352 # ----------------------------------
2353 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2354 ac_fn_c_check_func
()
2356 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2358 $as_echo_n "checking for $2... " >&6; }
2359 if eval \
${$3+:} false
; then :
2360 $as_echo_n "(cached) " >&6
2362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2364 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2366 #define $2 innocuous_$2
2368 /* System header to define __stub macros and hopefully few prototypes,
2369 which can conflict with char $2 (); below.
2370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2371 <limits.h> exists even on freestanding compilers. */
2374 # include <limits.h>
2376 # include <assert.h>
2381 /* Override any GCC internal prototype to avoid an error.
2382 Use char because int might match the return type of a GCC
2383 builtin and then its argument prototype would still apply. */
2388 /* The GNU C library defines this for functions which it implements
2389 to always fail with ENOSYS. Some functions are actually named
2390 something starting with __ and the normal name is an alias. */
2391 #if defined __stub_$2 || defined __stub___$2
2403 if ac_fn_c_try_link
"$LINENO"; then :
2408 rm -f core conftest.err conftest.
$ac_objext \
2409 conftest
$ac_exeext conftest.
$ac_ext
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416 } # ac_fn_c_check_func
2418 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2419 # ----------------------------------------------------
2420 # Tries to find if the field MEMBER exists in type AGGR, after including
2421 # INCLUDES, setting cache variable VAR accordingly.
2422 ac_fn_c_check_member
()
2424 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2426 $as_echo_n "checking for $2.$3... " >&6; }
2427 if eval \
${$4+:} false
; then :
2428 $as_echo_n "(cached) " >&6
2430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2443 if ac_fn_c_try_compile
"$LINENO"; then :
2446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2453 if (sizeof ac_aggr.$3)
2459 if ac_fn_c_try_compile
"$LINENO"; then :
2464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2473 } # ac_fn_c_check_member
2475 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2476 # ---------------------------------------------
2477 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2479 ac_fn_c_check_decl
()
2481 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2482 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2483 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2485 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2486 if eval \
${$3+:} false
; then :
2487 $as_echo_n "(cached) " >&6
2489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2495 #ifndef $as_decl_name
2497 (void) $as_decl_use;
2499 (void) $as_decl_name;
2507 if ac_fn_c_try_compile
"$LINENO"; then :
2512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_c_check_decl
2521 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2522 # -------------------------------------------
2523 # Tests whether TYPE exists after having included INCLUDES, setting cache
2524 # variable VAR accordingly.
2525 ac_fn_c_check_type
()
2527 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if eval \
${$3+:} false
; then :
2531 $as_echo_n "(cached) " >&6
2534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2546 if ac_fn_c_try_compile
"$LINENO"; then :
2547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2559 if ac_fn_c_try_compile
"$LINENO"; then :
2564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 $as_echo "$ac_res" >&6; }
2571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2573 } # ac_fn_c_check_type
2575 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2576 # --------------------------------------------
2577 # Tries to find the compile-time value of EXPR in a program that includes
2578 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2580 ac_fn_c_compute_int
()
2582 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2583 if test "$cross_compiling" = yes; then
2584 # Depending upon the size, compute the lo and hi bounds.
2585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2591 static int test_array [1 - 2 * !(($2) >= 0)];
2593 return test_array [0];
2599 if ac_fn_c_try_compile
"$LINENO"; then :
2602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h. */
2608 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2610 return test_array [0];
2616 if ac_fn_c_try_compile
"$LINENO"; then :
2617 ac_hi
=$ac_mid; break
2619 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2620 if test $ac_lo -le $ac_mid; then
2624 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2635 static int test_array [1 - 2 * !(($2) < 0)];
2637 return test_array [0];
2643 if ac_fn_c_try_compile
"$LINENO"; then :
2646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2652 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2654 return test_array [0];
2660 if ac_fn_c_try_compile
"$LINENO"; then :
2661 ac_lo
=$ac_mid; break
2663 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2664 if test $ac_mid -le $ac_hi; then
2668 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2678 # Binary search between lo and hi bounds.
2679 while test "x$ac_lo" != "x$ac_hi"; do
2680 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2687 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2689 return test_array [0];
2695 if ac_fn_c_try_compile
"$LINENO"; then :
2698 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2703 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2710 static long int longval () { return $2; }
2711 static unsigned long int ulongval () { return $2; }
2718 FILE *f = fopen ("conftest.val", "w");
2723 long int i = longval ();
2726 fprintf (f, "%ld", i);
2730 unsigned long int i = ulongval ();
2733 fprintf (f, "%lu", i);
2735 /* Do not output a trailing newline, as this causes \r\n confusion
2736 on some platforms. */
2737 return ferror (f) || fclose (f) != 0;
2743 if ac_fn_c_try_run
"$LINENO"; then :
2744 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2754 as_fn_set_status
$ac_retval
2756 } # ac_fn_c_compute_int
2757 cat >config.log
<<_ACEOF
2758 This file contains any messages produced by compilers while
2759 running configure, to aid debugging if configure makes a mistake.
2761 It was created by sim $as_me 0, which was
2762 generated by GNU Autoconf 2.69. Invocation command line was
2774 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2775 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2776 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2777 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2778 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2780 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2781 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2783 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2784 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2785 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2786 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2787 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2788 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2789 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir
=.
2798 $as_echo "PATH: $as_dir"
2814 # Keep a trace of the command line.
2815 # Strip out --no-create and --no-recursion so they do not pile up.
2816 # Strip out --silent because we don't want to record it for future runs.
2817 # Also quote any args containing shell meta-characters.
2818 # Make two passes to allow for proper duplicate-argument suppression.
2822 ac_must_keep_next
=false
2828 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2829 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2830 |
-silent |
--silent |
--silen |
--sile |
--sil)
2833 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2836 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2838 as_fn_append ac_configure_args1
" '$ac_arg'"
2839 if test $ac_must_keep_next = true
; then
2840 ac_must_keep_next
=false
# Got value, back to normal.
2843 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2844 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2845 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2846 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2847 case "$ac_configure_args0 " in
2848 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2851 -* ) ac_must_keep_next
=true
;;
2854 as_fn_append ac_configure_args
" '$ac_arg'"
2859 { ac_configure_args0
=; unset ac_configure_args0
;}
2860 { ac_configure_args1
=; unset ac_configure_args1
;}
2862 # When interrupted or exit'd, cleanup temporary files, and complete
2863 # config.log. We remove comments because anyway the quotes in there
2864 # would cause problems or look ugly.
2865 # WARNING: Use '\'' to represent an apostrophe within the trap.
2866 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2867 trap 'exit_status=$?
2868 # Save into config.log some information that might help in debugging.
2872 $as_echo "## ---------------- ##
2873 ## Cache variables. ##
2874 ## ---------------- ##"
2876 # The following way of writing the cache mishandles newlines in values,
2878 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2879 eval ac_val=\$$ac_var
2883 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2887 _ | IFS | as_nl) ;; #(
2888 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2889 *) { eval $ac_var=; unset $ac_var;} ;;
2894 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2895 *${as_nl}ac_space=\ *)
2897 "s/'\''/'\''\\\\'\'''\''/g;
2898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2908 $as_echo "## ----------------- ##
2909 ## Output variables. ##
2910 ## ----------------- ##"
2912 for ac_var in $ac_subst_vars
2914 eval ac_val=\$$ac_var
2916 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2918 $as_echo "$ac_var='\''$ac_val'\''"
2922 if test -n "$ac_subst_files"; then
2923 $as_echo "## ------------------- ##
2924 ## File substitutions. ##
2925 ## ------------------- ##"
2927 for ac_var
in $ac_subst_files
2929 eval ac_val
=\$
$ac_var
2931 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2933 $as_echo "$ac_var='\''$ac_val'\''"
2938 if test -s confdefs.h; then
2939 $as_echo "## ----------- ##
2946 test "$ac_signal" != 0 &&
2947 $as_echo "$as_me: caught signal $ac_signal"
2948 $as_echo "$as_me: exit $exit_status"
2950 rm -f core *.core core.conftest.* &&
2951 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2954 for ac_signal
in 1 2 13 15; do
2955 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2959 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2960 rm -f -r conftest
* confdefs.h
2962 $as_echo "/* confdefs.h */" > confdefs.h
2964 # Predefined preprocessor variables.
2966 cat >>confdefs.h
<<_ACEOF
2967 #define PACKAGE_NAME "$PACKAGE_NAME"
2970 cat >>confdefs.h
<<_ACEOF
2971 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2974 cat >>confdefs.h
<<_ACEOF
2975 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2978 cat >>confdefs.h
<<_ACEOF
2979 #define PACKAGE_STRING "$PACKAGE_STRING"
2982 cat >>confdefs.h
<<_ACEOF
2983 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2986 cat >>confdefs.h
<<_ACEOF
2987 #define PACKAGE_URL "$PACKAGE_URL"
2991 # Let the site file select an alternate cache file if it wants to.
2992 # Prefer an explicitly selected file to automatically selected ones.
2995 if test -n "$CONFIG_SITE"; then
2996 # We do not want a PATH search for config.site.
2997 case $CONFIG_SITE in #((
2998 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2999 */*) ac_site_file1
=$CONFIG_SITE;;
3000 *) ac_site_file1
=.
/$CONFIG_SITE;;
3002 elif test "x$prefix" != xNONE
; then
3003 ac_site_file1
=$prefix/share
/config.site
3004 ac_site_file2
=$prefix/etc
/config.site
3006 ac_site_file1
=$ac_default_prefix/share
/config.site
3007 ac_site_file2
=$ac_default_prefix/etc
/config.site
3009 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3011 test "x$ac_site_file" = xNONE
&& continue
3012 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3014 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3015 sed 's/^/| /' "$ac_site_file" >&5
3017 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $?
"failed to load site script $ac_site_file
3020 See \`config.log' for more details" "$LINENO" 5; }
3024 if test -r "$cache_file"; then
3025 # Some versions of bash will fail to source /dev/null (special files
3026 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3027 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3029 $as_echo "$as_me: loading cache $cache_file" >&6;}
3031 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3032 *) .
"./$cache_file";;
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3037 $as_echo "$as_me: creating cache $cache_file" >&6;}
3041 as_fn_append ac_header_list
" dlfcn.h"
3042 as_fn_append ac_header_list
" fcntl.h"
3043 as_fn_append ac_header_list
" fpu_control.h"
3044 as_fn_append ac_header_list
" termios.h"
3045 as_fn_append ac_header_list
" utime.h"
3046 as_fn_append ac_header_list
" linux/if_tun.h"
3047 as_fn_append ac_header_list
" linux/mii.h"
3048 as_fn_append ac_header_list
" linux/types.h"
3049 as_fn_append ac_header_list
" net/if.h"
3050 as_fn_append ac_header_list
" netinet/in.h"
3051 as_fn_append ac_header_list
" netinet/tcp.h"
3052 as_fn_append ac_header_list
" sys/ioctl.h"
3053 as_fn_append ac_header_list
" sys/mman.h"
3054 as_fn_append ac_header_list
" sys/mount.h"
3055 as_fn_append ac_header_list
" sys/param.h"
3056 as_fn_append ac_header_list
" sys/resource.h"
3057 as_fn_append ac_header_list
" sys/socket.h"
3058 as_fn_append ac_header_list
" sys/statfs.h"
3059 as_fn_append ac_header_list
" sys/termio.h"
3060 as_fn_append ac_header_list
" sys/termios.h"
3061 as_fn_append ac_header_list
" sys/types.h"
3062 as_fn_append ac_header_list
" sys/vfs.h"
3063 as_fn_append ac_func_list
" __setfpucw"
3064 as_fn_append ac_func_list
" access"
3065 as_fn_append ac_func_list
" aint"
3066 as_fn_append ac_func_list
" anint"
3067 as_fn_append ac_func_list
" cfgetispeed"
3068 as_fn_append ac_func_list
" cfgetospeed"
3069 as_fn_append ac_func_list
" cfsetispeed"
3070 as_fn_append ac_func_list
" cfsetospeed"
3071 as_fn_append ac_func_list
" chdir"
3072 as_fn_append ac_func_list
" chmod"
3073 as_fn_append ac_func_list
" dup"
3074 as_fn_append ac_func_list
" dup2"
3075 as_fn_append ac_func_list
" execv"
3076 as_fn_append ac_func_list
" execve"
3077 as_fn_append ac_func_list
" fcntl"
3078 as_fn_append ac_func_list
" fork"
3079 as_fn_append ac_func_list
" fstat"
3080 as_fn_append ac_func_list
" fstatfs"
3081 as_fn_append ac_func_list
" ftruncate"
3082 as_fn_append ac_func_list
" getdirentries"
3083 as_fn_append ac_func_list
" getegid"
3084 as_fn_append ac_func_list
" geteuid"
3085 as_fn_append ac_func_list
" getgid"
3086 as_fn_append ac_func_list
" getpid"
3087 as_fn_append ac_func_list
" getppid"
3088 as_fn_append ac_func_list
" getrusage"
3089 as_fn_append ac_func_list
" gettimeofday"
3090 as_fn_append ac_func_list
" getuid"
3091 as_fn_append ac_func_list
" ioctl"
3092 as_fn_append ac_func_list
" kill"
3093 as_fn_append ac_func_list
" link"
3094 as_fn_append ac_func_list
" lseek"
3095 as_fn_append ac_func_list
" lstat"
3096 as_fn_append ac_func_list
" mkdir"
3097 as_fn_append ac_func_list
" mmap"
3098 as_fn_append ac_func_list
" munmap"
3099 as_fn_append ac_func_list
" pipe"
3100 as_fn_append ac_func_list
" posix_fallocate"
3101 as_fn_append ac_func_list
" pread"
3102 as_fn_append ac_func_list
" rmdir"
3103 as_fn_append ac_func_list
" setregid"
3104 as_fn_append ac_func_list
" setreuid"
3105 as_fn_append ac_func_list
" setgid"
3106 as_fn_append ac_func_list
" setuid"
3107 as_fn_append ac_func_list
" sigaction"
3108 as_fn_append ac_func_list
" sigprocmask"
3109 as_fn_append ac_func_list
" sqrt"
3110 as_fn_append ac_func_list
" stat"
3111 as_fn_append ac_func_list
" strsignal"
3112 as_fn_append ac_func_list
" symlink"
3113 as_fn_append ac_func_list
" tcdrain"
3114 as_fn_append ac_func_list
" tcflow"
3115 as_fn_append ac_func_list
" tcflush"
3116 as_fn_append ac_func_list
" tcgetattr"
3117 as_fn_append ac_func_list
" tcgetpgrp"
3118 as_fn_append ac_func_list
" tcsendbreak"
3119 as_fn_append ac_func_list
" tcsetattr"
3120 as_fn_append ac_func_list
" tcsetpgrp"
3121 as_fn_append ac_func_list
" time"
3122 as_fn_append ac_func_list
" truncate"
3123 as_fn_append ac_func_list
" umask"
3124 as_fn_append ac_func_list
" unlink"
3125 as_fn_append ac_func_list
" utime"
3126 # Check that the precious variables saved in the cache have kept the same
3128 ac_cache_corrupted
=false
3129 for ac_var
in $ac_precious_vars; do
3130 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3131 eval ac_new_set
=\
$ac_env_${ac_var}_set
3132 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3133 eval ac_new_val
=\
$ac_env_${ac_var}_value
3134 case $ac_old_set,$ac_new_set in
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3137 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3138 ac_cache_corrupted
=: ;;
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3141 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3142 ac_cache_corrupted
=: ;;
3145 if test "x$ac_old_val" != "x$ac_new_val"; then
3146 # differences in whitespace do not lead to failure.
3147 ac_old_val_w
=`echo x $ac_old_val`
3148 ac_new_val_w
=`echo x $ac_new_val`
3149 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3151 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3152 ac_cache_corrupted
=:
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3155 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3156 eval $ac_var=\
$ac_old_val
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3159 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3161 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3164 # Pass precious variables to config.status.
3165 if test "$ac_new_set" = set; then
3167 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3168 *) ac_arg
=$ac_var=$ac_new_val ;;
3170 case " $ac_configure_args " in
3171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3172 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3176 if $ac_cache_corrupted; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3180 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3181 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3183 ## -------------------- ##
3184 ## Main body of script. ##
3185 ## -------------------- ##
3188 ac_cpp
='$CPP $CPPFLAGS'
3189 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3200 # Check whether --with-pkgversion was given.
3201 if test "${with_pkgversion+set}" = set; then :
3202 withval
=$with_pkgversion; case "$withval" in
3203 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
3205 *) PKGVERSION
="($withval) " ;;
3215 cat >>confdefs.h
<<_ACEOF
3216 #define PKGVERSION "$PKGVERSION"
3221 # Check whether --with-bugurl was given.
3222 if test "${with_bugurl+set}" = set; then :
3223 withval
=$with_bugurl; case "$withval" in
3224 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
3227 *) BUGURL
="$withval"
3231 BUGURL
="$PACKAGE_BUGREPORT"
3241 REPORT_BUGS_TO
="<$BUGURL>"
3242 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
3249 cat >>confdefs.h
<<_ACEOF
3250 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3254 ac_config_headers
="$ac_config_headers config.h"
3257 .
$srcdir/..
/bfd
/development.sh
3260 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3261 if test -f "$ac_dir/install-sh"; then
3263 ac_install_sh
="$ac_aux_dir/install-sh -c"
3265 elif test -f "$ac_dir/install.sh"; then
3267 ac_install_sh
="$ac_aux_dir/install.sh -c"
3269 elif test -f "$ac_dir/shtool"; then
3271 ac_install_sh
="$ac_aux_dir/shtool install -c"
3275 if test -z "$ac_aux_dir"; then
3276 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3279 # These three variables are undocumented and unsupported,
3280 # and are intended to be withdrawn in a future Autoconf release.
3281 # They can cause serious problems if a builder's source tree is in a directory
3282 # whose full name contains unusual characters.
3283 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3284 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3285 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3288 # Make sure we can run config.sub.
3289 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3290 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3293 $as_echo_n "checking build system type... " >&6; }
3294 if ${ac_cv_build+:} false
; then :
3295 $as_echo_n "(cached) " >&6
3297 ac_build_alias
=$build_alias
3298 test "x$ac_build_alias" = x
&&
3299 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3300 test "x$ac_build_alias" = x
&&
3301 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3302 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3303 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3307 $as_echo "$ac_cv_build" >&6; }
3308 case $ac_cv_build in
3310 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3313 ac_save_IFS
=$IFS; IFS
='-'
3319 # Remember, the first character of IFS is used to create $*,
3320 # except with old shells:
3323 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3327 $as_echo_n "checking host system type... " >&6; }
3328 if ${ac_cv_host+:} false
; then :
3329 $as_echo_n "(cached) " >&6
3331 if test "x$host_alias" = x
; then
3332 ac_cv_host
=$ac_cv_build
3334 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3335 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3340 $as_echo "$ac_cv_host" >&6; }
3343 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3346 ac_save_IFS
=$IFS; IFS
='-'
3352 # Remember, the first character of IFS is used to create $*,
3353 # except with old shells:
3356 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3360 $as_echo_n "checking target system type... " >&6; }
3361 if ${ac_cv_target+:} false
; then :
3362 $as_echo_n "(cached) " >&6
3364 if test "x$target_alias" = x
; then
3365 ac_cv_target
=$ac_cv_host
3367 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3368 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3373 $as_echo "$ac_cv_target" >&6; }
3374 case $ac_cv_target in
3376 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3378 target
=$ac_cv_target
3379 ac_save_IFS
=$IFS; IFS
='-'
3385 # Remember, the first character of IFS is used to create $*,
3386 # except with old shells:
3389 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3392 # The aliases save the names the user supplied, while $host etc.
3393 # will get canonicalized.
3394 test -n "$target_alias" &&
3395 test "$program_prefix$program_suffix$program_transform_name" = \
3397 program_prefix
=${target_alias}-
3398 # Expand $ac_aux_dir to an absolute path.
3399 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3402 ac_cpp
='$CPP $CPPFLAGS'
3403 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3408 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_CC+:} false
; then :
3412 $as_echo_n "(cached) " >&6
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC
="$CC" # Let the user override the test.
3417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir
=.
3422 for ac_exec_ext
in '' $ac_executable_extensions; do
3423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 $as_echo "$CC" >&6; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3445 if test -z "$ac_cv_prog_CC"; then
3447 # Extract the first word of "gcc", so it can be a program name with args.
3448 set dummy gcc
; ac_word
=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3452 $as_echo_n "(cached) " >&6
3454 if test -n "$ac_ct_CC"; then
3455 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3461 test -z "$as_dir" && as_dir
=.
3462 for ac_exec_ext
in '' $ac_executable_extensions; do
3463 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_ac_ct_CC
="gcc"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3475 if test -n "$ac_ct_CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3477 $as_echo "$ac_ct_CC" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3483 if test "x$ac_ct_CC" = x
; then
3486 case $cross_compiling:$ac_tool_warned in
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3490 ac_tool_warned
=yes ;;
3498 if test -z "$CC"; then
3499 if test -n "$ac_tool_prefix"; then
3500 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3501 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_CC+:} false
; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$CC"; then
3508 ac_cv_prog_CC
="$CC" # Let the user override the test.
3510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir
=.
3515 for ac_exec_ext
in '' $ac_executable_extensions; do
3516 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 if test -n "$CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3530 $as_echo "$CC" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3539 if test -z "$CC"; then
3540 # Extract the first word of "cc", so it can be a program name with args.
3541 set dummy cc
; ac_word
=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_CC+:} false
; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC
="$CC" # Let the user override the test.
3551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir
=.
3556 for ac_exec_ext
in '' $ac_executable_extensions; do
3557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3559 ac_prog_rejected
=yes
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 if test $ac_prog_rejected = yes; then
3571 # We found a bogon in the path, so make sure we never use it.
3572 set dummy
$ac_cv_prog_CC
3574 if test $# != 0; then
3575 # We chose a different compiler from the bogus one.
3576 # However, it has the same basename, so the bogon will be chosen
3577 # first if we set CC to just the basename; use the full file name.
3579 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3585 if test -n "$CC"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3587 $as_echo "$CC" >&6; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3595 if test -z "$CC"; then
3596 if test -n "$ac_tool_prefix"; then
3597 for ac_prog
in cl.exe
3599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3600 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if ${ac_cv_prog_CC+:} false
; then :
3604 $as_echo_n "(cached) " >&6
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC
="$CC" # Let the user override the test.
3609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir
=.
3614 for ac_exec_ext
in '' $ac_executable_extensions; do
3615 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629 $as_echo "$CC" >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3636 test -n "$CC" && break
3639 if test -z "$CC"; then
3641 for ac_prog
in cl.exe
3643 # Extract the first word of "$ac_prog", so it can be a program name with args.
3644 set dummy
$ac_prog; ac_word
=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3648 $as_echo_n "(cached) " >&6
3650 if test -n "$ac_ct_CC"; then
3651 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3657 test -z "$as_dir" && as_dir
=.
3658 for ac_exec_ext
in '' $ac_executable_extensions; do
3659 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_ac_ct_CC
="$ac_prog"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3673 $as_echo "$ac_ct_CC" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3680 test -n "$ac_ct_CC" && break
3683 if test "x$ac_ct_CC" = x
; then
3686 case $cross_compiling:$ac_tool_warned in
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3690 ac_tool_warned
=yes ;;
3699 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $?
"no acceptable C compiler found in \$PATH
3702 See \`config.log' for more details" "$LINENO" 5; }
3704 # Provide some information about the compiler.
3705 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3708 for ac_option
in --version -v -V -qversion; do
3709 { { ac_try
="$ac_compiler $ac_option >&5"
3711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 $as_echo "$ac_try_echo"; } >&5
3716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3718 if test -s conftest.err; then
3720 ... rest of stderr output deleted ...
3721 10q' conftest.err >conftest.er1
3722 cat conftest.er1 >&5
3724 rm -f conftest.er1 conftest.err
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3740 ac_clean_files_save=$ac_clean_files
3741 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3742 # Try to create an executable without -o first, disregard a.out.
3743 # It will help us diagnose broken compilers, and finding out an intuition
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3746 $as_echo_n "checking whether the C compiler works... " >&6; }
3747 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3749 # The possible output files:
3750 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3753 for ac_file in $ac_files
3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3757 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3762 if { { ac_try="$ac_link_default"
3764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3765 *) ac_try_echo
=$ac_try;;
3767 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_link_default") 2>&5
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; then :
3773 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3774 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3775 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3776 # so that the user can short-circuit this test for compilers unknown to
3778 for ac_file
in $ac_files ''
3780 test -f "$ac_file" ||
continue
3782 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3785 # We found the default executable, but exeext='' is most
3789 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3791 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793 # We set ac_cv_exeext here because the later test for it is not
3794 # safe: cross compilers may not add the suffix if given an `-o'
3795 # argument, so we may need to know it at that point already.
3796 # Even if this section looks crufty: it has the advantage of
3803 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3808 if test -z "$ac_file"; then :
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3811 $as_echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.
$ac_ext >&5
3814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error
77 "C compiler cannot create executables
3817 See \`config.log' for more details" "$LINENO" 5; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3820 $as_echo "yes" >&6; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3823 $as_echo_n "checking for C compiler default output file name... " >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3825 $as_echo "$ac_file" >&6; }
3826 ac_exeext
=$ac_cv_exeext
3828 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3829 ac_clean_files
=$ac_clean_files_save
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3831 $as_echo_n "checking for suffix of executables... " >&6; }
3832 if { { ac_try
="$ac_link"
3834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838 $as_echo "$ac_try_echo"; } >&5
3839 (eval "$ac_link") 2>&5
3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842 test $ac_status = 0; }; then :
3843 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3844 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3845 # work properly (i.e., refer to `conftest.exe'), while it won't with
3847 for ac_file
in conftest.exe conftest conftest.
*; do
3848 test -f "$ac_file" ||
continue
3850 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3851 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3860 See \`config.log' for more details" "$LINENO" 5; }
3862 rm -f conftest conftest
$ac_cv_exeext
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3864 $as_echo "$ac_cv_exeext" >&6; }
3866 rm -f conftest.
$ac_ext
3867 EXEEXT
=$ac_cv_exeext
3869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3875 FILE *f = fopen ("conftest.out", "w");
3876 return ferror (f) || fclose (f) != 0;
3882 ac_clean_files
="$ac_clean_files conftest.out"
3883 # Check that the compiler produces executables we can run. If not, either
3884 # the compiler is broken, or we cross compile.
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3886 $as_echo_n "checking whether we are cross compiling... " >&6; }
3887 if test "$cross_compiling" != yes; then
3888 { { ac_try
="$ac_link"
3890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_link") 2>&5
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }
3899 if { ac_try='./conftest$ac_cv_exeext'
3900 { { case "(($ac_try" in
3901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3902 *) ac_try_echo
=$ac_try;;
3904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 $as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_try") 2>&5
3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; }; }; then
3912 if test "$cross_compiling" = maybe
; then
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error $?
"cannot run C compiled programs.
3918 If you meant to cross compile, use \`--host'.
3919 See \`config.log' for more details" "$LINENO" 5; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3924 $as_echo "$cross_compiling" >&6; }
3926 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3927 ac_clean_files
=$ac_clean_files_save
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3929 $as_echo_n "checking for suffix of object files... " >&6; }
3930 if ${ac_cv_objext+:} false
; then :
3931 $as_echo_n "(cached) " >&6
3933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3944 rm -f conftest.o conftest.obj
3945 if { { ac_try
="$ac_compile"
3947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951 $as_echo "$ac_try_echo"; } >&5
3952 (eval "$ac_compile") 2>&5
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }; then :
3956 for ac_file in conftest.o conftest.obj conftest.*; do
3957 test -f "$ac_file" || continue;
3959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3960 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3965 $as_echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3971 See \
`config.log' for more details" "$LINENO" 5; }
3973 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3976 $as_echo "$ac_cv_objext" >&6; }
3977 OBJEXT=$ac_cv_objext
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3980 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3981 if ${ac_cv_c_compiler_gnu+:} false; then :
3982 $as_echo_n "(cached) " >&6
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3998 if ac_fn_c_try_compile "$LINENO"; then :
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4008 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4009 if test $ac_compiler_gnu = yes; then
4014 ac_test_CFLAGS=${CFLAGS+set}
4015 ac_save_CFLAGS=$CFLAGS
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4017 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4018 if ${ac_cv_prog_cc_g+:} false; then :
4019 $as_echo_n "(cached) " >&6
4021 ac_save_c_werror_flag=$ac_c_werror_flag
4022 ac_c_werror_flag=yes
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4036 if ac_fn_c_try_compile "$LINENO"; then :
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4051 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_c_werror_flag=$ac_save_c_werror_flag
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4067 if ac_fn_c_try_compile "$LINENO"; then :
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_c_werror_flag=$ac_save_c_werror_flag
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4078 $as_echo "$ac_cv_prog_cc_g" >&6; }
4079 if test "$ac_test_CFLAGS" = set; then
4080 CFLAGS=$ac_save_CFLAGS
4081 elif test $ac_cv_prog_cc_g = yes; then
4082 if test "$GCC" = yes; then
4088 if test "$GCC" = yes; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4095 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4096 if ${ac_cv_prog_cc_c89+:} false; then :
4097 $as_echo_n "(cached) " >&6
4099 ac_cv_prog_cc_c89=no
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4107 struct buf { int x; };
4108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4109 static char *e (p, i)
4115 static char *f (char * (*g) (char **, int), char **p, ...)
4120 s = g (p, va_arg (v,int));
4125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4126 function prototypes and stuff, but not '\xHH' hex character constants.
4127 These don't provoke an error unfortunately, instead are silently treated
4128 as 'x'. The following induces an error, until -std is added to get
4129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4130 array size at least. It's necessary to write '\x00'==0 to get something
4131 that's true only with -std. */
4132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4135 inside strings and character constants. */
4137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4139 int test (int i, double x);
4140 struct s1 {int (*f) (int a);};
4141 struct s2 {int (*f) (double a);};
4142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4156 CC="$ac_save_CC $ac_arg"
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_prog_cc_c89=$ac_arg
4160 rm -f core conftest.err conftest.$ac_objext
4161 test "x$ac_cv_prog_cc_c89" != "xno" && break
4163 rm -f conftest.$ac_ext
4168 case "x$ac_cv_prog_cc_c89" in
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4171 $as_echo "none needed" >&6; } ;;
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4174 $as_echo "unsupported" >&6; } ;;
4176 CC="$CC $ac_cv_prog_cc_c89"
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4178 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4180 if test "x$ac_cv_prog_cc_c89" != xno; then :
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4196 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4197 if ${am_cv_prog_cc_c_o+:} false; then :
4198 $as_echo_n "(cached) " >&6
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4211 # Make sure it works both with $CC and with simple cc.
4212 # Following AC_PROG_CC_C_O, we do the test twice because some
4213 # compilers refuse to overwrite an existing .o file with -o,
4214 # though they will create one.
4215 am_cv_prog_cc_c_o=yes
4217 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4218 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } \
4222 && test -f conftest2.$ac_objext; then
4225 am_cv_prog_cc_c_o=no
4229 rm -f core conftest*
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4233 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4234 if test "$am_cv_prog_cc_c_o" != yes; then
4235 # Losing compiler, so override with the script.
4236 # FIXME: It is wrong to rewrite CC.
4237 # But if we don't then we get into trouble of one sort or another.
4238 # A longer-term fix would be to have automake use am__CC in this case,
4239 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4240 CC="$am_aux_dir/compile $CC"
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4255 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4256 # On Suns, sometimes $CPP names a directory.
4257 if test -n "$CPP" && test -d "$CPP"; then
4260 if test -z "$CPP"; then
4261 if ${ac_cv_prog_CPP+:} false; then :
4262 $as_echo_n "(cached) " >&6
4264 # Double quotes because CPP needs to be expanded
4265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4268 for ac_c_preproc_warn_flag in '' yes
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error" is here to catch this case.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4279 # include <limits.h>
4281 # include <assert.h>
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4288 # Broken: fails on valid input.
4291 rm -f conftest.err conftest.i conftest.$ac_ext
4293 # OK, works on sane cases. Now check whether nonexistent headers
4294 # can be detected and how.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <ac_nonexistent.h>
4299 if ac_fn_c_try_cpp "$LINENO"; then :
4300 # Broken: success on invalid input.
4303 # Passes both tests.
4307 rm -f conftest.err conftest.i conftest.$ac_ext
4310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311 rm -f conftest.i conftest.err conftest.
$ac_ext
4312 if $ac_preproc_ok; then :
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4325 $as_echo "$CPP" >&6; }
4327 for ac_c_preproc_warn_flag
in '' yes
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4338 # include <limits.h>
4340 # include <assert.h>
4344 if ac_fn_c_try_cpp
"$LINENO"; then :
4347 # Broken: fails on valid input.
4350 rm -f conftest.err conftest.i conftest.
$ac_ext
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #include <ac_nonexistent.h>
4358 if ac_fn_c_try_cpp
"$LINENO"; then :
4359 # Broken: success on invalid input.
4362 # Passes both tests.
4366 rm -f conftest.err conftest.i conftest.
$ac_ext
4369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370 rm -f conftest.i conftest.err conftest.
$ac_ext
4371 if $ac_preproc_ok; then :
4374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4376 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4377 See \`config.log' for more details" "$LINENO" 5; }
4381 ac_cpp
='$CPP $CPPFLAGS'
4382 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4389 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4390 if ${ac_cv_path_GREP+:} false
; then :
4391 $as_echo_n "(cached) " >&6
4393 if test -z "$GREP"; then
4394 ac_path_GREP_found
=false
4395 # Loop through the user's path and test for each of PROGNAME-LIST
4396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4397 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4400 test -z "$as_dir" && as_dir
=.
4401 for ac_prog
in grep ggrep
; do
4402 for ac_exec_ext
in '' $ac_executable_extensions; do
4403 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4404 as_fn_executable_p
"$ac_path_GREP" ||
continue
4405 # Check for GNU ac_path_GREP and select it if it is found.
4406 # Check for GNU $ac_path_GREP
4407 case `"$ac_path_GREP" --version 2>&1` in
4409 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4412 $as_echo_n 0123456789 >"conftest.in"
4415 cat "conftest.in" "conftest.in" >"conftest.tmp"
4416 mv "conftest.tmp" "conftest.in"
4417 cp "conftest.in" "conftest.nl"
4418 $as_echo 'GREP' >> "conftest.nl"
4419 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4420 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4421 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4422 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4423 # Best one so far, save it but keep looking for a better one
4424 ac_cv_path_GREP
="$ac_path_GREP"
4425 ac_path_GREP_max
=$ac_count
4427 # 10*(2^10) chars as input seems more than enough
4428 test $ac_count -gt 10 && break
4430 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4433 $ac_path_GREP_found && break 3
4438 if test -z "$ac_cv_path_GREP"; then
4439 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4442 ac_cv_path_GREP
=$GREP
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4447 $as_echo "$ac_cv_path_GREP" >&6; }
4448 GREP
="$ac_cv_path_GREP"
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4452 $as_echo_n "checking for egrep... " >&6; }
4453 if ${ac_cv_path_EGREP+:} false
; then :
4454 $as_echo_n "(cached) " >&6
4456 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4457 then ac_cv_path_EGREP
="$GREP -E"
4459 if test -z "$EGREP"; then
4460 ac_path_EGREP_found
=false
4461 # Loop through the user's path and test for each of PROGNAME-LIST
4462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4463 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4466 test -z "$as_dir" && as_dir
=.
4467 for ac_prog
in egrep; do
4468 for ac_exec_ext
in '' $ac_executable_extensions; do
4469 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4470 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4471 # Check for GNU ac_path_EGREP and select it if it is found.
4472 # Check for GNU $ac_path_EGREP
4473 case `"$ac_path_EGREP" --version 2>&1` in
4475 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4478 $as_echo_n 0123456789 >"conftest.in"
4481 cat "conftest.in" "conftest.in" >"conftest.tmp"
4482 mv "conftest.tmp" "conftest.in"
4483 cp "conftest.in" "conftest.nl"
4484 $as_echo 'EGREP' >> "conftest.nl"
4485 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4486 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4487 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4488 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4489 # Best one so far, save it but keep looking for a better one
4490 ac_cv_path_EGREP
="$ac_path_EGREP"
4491 ac_path_EGREP_max
=$ac_count
4493 # 10*(2^10) chars as input seems more than enough
4494 test $ac_count -gt 10 && break
4496 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4499 $ac_path_EGREP_found && break 3
4504 if test -z "$ac_cv_path_EGREP"; then
4505 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4508 ac_cv_path_EGREP
=$EGREP
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4514 $as_echo "$ac_cv_path_EGREP" >&6; }
4515 EGREP
="$ac_cv_path_EGREP"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4519 $as_echo_n "checking for ANSI C header files... " >&6; }
4520 if ${ac_cv_header_stdc+:} false
; then :
4521 $as_echo_n "(cached) " >&6
4523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4538 if ac_fn_c_try_compile
"$LINENO"; then :
4539 ac_cv_header_stdc
=yes
4541 ac_cv_header_stdc
=no
4543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4545 if test $ac_cv_header_stdc = yes; then
4546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4553 $EGREP "memchr" >/dev
/null
2>&1; then :
4556 ac_cv_header_stdc
=no
4562 if test $ac_cv_header_stdc = yes; then
4563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570 $EGREP "free" >/dev
/null
2>&1; then :
4573 ac_cv_header_stdc
=no
4579 if test $ac_cv_header_stdc = yes; then
4580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4581 if test "$cross_compiling" = yes; then :
4584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 #if ((' ' & 0x0FF) == 0x020)
4589 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4590 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4592 # define ISLOWER(c) \
4593 (('a' <= (c) && (c) <= 'i') \
4594 || ('j' <= (c) && (c) <= 'r') \
4595 || ('s' <= (c) && (c) <= 'z'))
4596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4604 for (i = 0; i < 256; i++)
4605 if (XOR (islower (i), ISLOWER (i))
4606 || toupper (i) != TOUPPER (i))
4611 if ac_fn_c_try_run
"$LINENO"; then :
4614 ac_cv_header_stdc
=no
4616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4623 $as_echo "$ac_cv_header_stdc" >&6; }
4624 if test $ac_cv_header_stdc = yes; then
4626 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4630 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4631 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4632 inttypes.h stdint.h unistd.h
4634 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4635 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4637 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4638 cat >>confdefs.h
<<_ACEOF
4639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4647 test "$program_prefix" != NONE
&&
4648 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4649 # Use a double $ so make ignores it.
4650 test "$program_suffix" != NONE
&&
4651 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4652 # Double any \ or $.
4653 # By default was `s,x,x', remove it if useless.
4654 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4655 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4657 # Find a good install program. We prefer a C program (faster),
4658 # so one script is as good as another. But avoid the broken or
4659 # incompatible versions:
4660 # SysV /etc/install, /usr/sbin/install
4661 # SunOS /usr/etc/install
4662 # IRIX /sbin/install
4664 # AmigaOS /C/install, which installs bootblocks on floppy discs
4665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4668 # OS/2's system install, which has a completely different semantic
4669 # ./install, which can be erroneously created by make from ./install.sh.
4670 # Reject install programs that cannot install multiple files.
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4672 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4673 if test -z "$INSTALL"; then
4674 if ${ac_cv_path_install+:} false
; then :
4675 $as_echo_n "(cached) " >&6
4677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir
=.
4682 # Account for people who put trailing slashes in PATH elements.
4683 case $as_dir/ in #((
4684 .
/ | .
// |
/[cC
]/* | \
4685 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4686 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4689 # OSF1 and SCO ODT 3.0 have their own names for install.
4690 # Don't use installbsd from OSF since it installs stuff as root
4692 for ac_prog
in ginstall scoinst
install; do
4693 for ac_exec_ext
in '' $ac_executable_extensions; do
4694 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4695 if test $ac_prog = install &&
4696 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4697 # AIX install. It has an incompatible calling convention.
4699 elif test $ac_prog = install &&
4700 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4701 # program-specific install script used by HP pwplus--don't use.
4704 rm -rf conftest.one conftest.two conftest.dir
4705 echo one
> conftest.one
4706 echo two
> conftest.two
4708 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4709 test -s conftest.one
&& test -s conftest.two
&&
4710 test -s conftest.dir
/conftest.one
&&
4711 test -s conftest.dir
/conftest.two
4713 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4726 rm -rf conftest.one conftest.two conftest.dir
4729 if test "${ac_cv_path_install+set}" = set; then
4730 INSTALL
=$ac_cv_path_install
4732 # As a last resort, use the slow shell script. Don't cache a
4733 # value for INSTALL within a source directory, because that will
4734 # break other packages using the cache if that directory is
4735 # removed, or if the value is a relative name.
4736 INSTALL
=$ac_install_sh
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4740 $as_echo "$INSTALL" >&6; }
4742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4743 # It thinks the first close brace ends the variable substitution.
4744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4748 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4754 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4755 if ${ac_cv_c_bigendian+:} false
; then :
4756 $as_echo_n "(cached) " >&6
4758 ac_cv_c_bigendian
=unknown
4759 # See if we're dealing with a universal compiler.
4760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 #ifndef __APPLE_CC__
4763 not a universal capable compiler
4768 if ac_fn_c_try_compile
"$LINENO"; then :
4770 # Check for potential -arch flags. It is not universal unless
4771 # there are at least two -arch flags with different values.
4774 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4775 if test -n "$ac_prev"; then
4777 i?
86 | x86_64 | ppc | ppc64
)
4778 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4781 ac_cv_c_bigendian
=universal
4787 elif test "x$ac_word" = "x-arch"; then
4792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4793 if test $ac_cv_c_bigendian = unknown
; then
4794 # See if sys/param.h defines the BYTE_ORDER macro.
4795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <sys/types.h>
4798 #include <sys/param.h>
4803 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4804 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4813 if ac_fn_c_try_compile
"$LINENO"; then :
4814 # It does; now see whether it defined to BIG_ENDIAN or not.
4815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817 #include <sys/types.h>
4818 #include <sys/param.h>
4823 #if BYTE_ORDER != BIG_ENDIAN
4831 if ac_fn_c_try_compile
"$LINENO"; then :
4832 ac_cv_c_bigendian
=yes
4834 ac_cv_c_bigendian
=no
4836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4840 if test $ac_cv_c_bigendian = unknown
; then
4841 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4849 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4857 if ac_fn_c_try_compile
"$LINENO"; then :
4858 # It does; now see whether it defined to _BIG_ENDIAN or not.
4859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4874 if ac_fn_c_try_compile
"$LINENO"; then :
4875 ac_cv_c_bigendian
=yes
4877 ac_cv_c_bigendian
=no
4879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4883 if test $ac_cv_c_bigendian = unknown
; then
4884 # Compile a test program.
4885 if test "$cross_compiling" = yes; then :
4886 # Try to guess by grepping values from an object file.
4887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 short int ascii_mm[] =
4890 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4891 short int ascii_ii[] =
4892 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4893 int use_ascii (int i) {
4894 return ascii_mm[i] + ascii_ii[i];
4896 short int ebcdic_ii[] =
4897 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4898 short int ebcdic_mm[] =
4899 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4900 int use_ebcdic (int i) {
4901 return ebcdic_mm[i] + ebcdic_ii[i];
4908 return use_ascii (foo) == use_ebcdic (foo);
4913 if ac_fn_c_try_compile
"$LINENO"; then :
4914 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4915 ac_cv_c_bigendian
=yes
4917 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4918 if test "$ac_cv_c_bigendian" = unknown
; then
4919 ac_cv_c_bigendian
=no
4921 # finding both strings is unlikely to happen, but who knows?
4922 ac_cv_c_bigendian
=unknown
4926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 $ac_includes_default
4935 /* Are we little or big endian? From Harbison&Steele. */
4939 char c[sizeof (long int)];
4942 return u.c[sizeof (long int) - 1] == 1;
4948 if ac_fn_c_try_run
"$LINENO"; then :
4949 ac_cv_c_bigendian
=no
4951 ac_cv_c_bigendian
=yes
4953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4960 $as_echo "$ac_cv_c_bigendian" >&6; }
4961 case $ac_cv_c_bigendian in #(
4963 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4969 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4973 as_fn_error $?
"unknown endianness
4974 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4982 set dummy
${ac_tool_prefix}dtc
; ac_word
=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_DTC+:} false
; then :
4986 $as_echo_n "(cached) " >&6
4988 if test -n "$DTC"; then
4989 ac_cv_prog_DTC
="$DTC" # Let the user override the test.
4991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4995 test -z "$as_dir" && as_dir
=.
4996 for ac_exec_ext
in '' $ac_executable_extensions; do
4997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_DTC
="${ac_tool_prefix}dtc"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 if test -n "$DTC"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
5011 $as_echo "$DTC" >&6; }
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5019 if test -z "$ac_cv_prog_DTC"; then
5021 # Extract the first word of "dtc", so it can be a program name with args.
5022 set dummy dtc
; ac_word
=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_ac_ct_DTC+:} false
; then :
5026 $as_echo_n "(cached) " >&6
5028 if test -n "$ac_ct_DTC"; then
5029 ac_cv_prog_ac_ct_DTC
="$ac_ct_DTC" # Let the user override the test.
5031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir
=.
5036 for ac_exec_ext
in '' $ac_executable_extensions; do
5037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_ac_ct_DTC
="dtc"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 ac_ct_DTC
=$ac_cv_prog_ac_ct_DTC
5049 if test -n "$ac_ct_DTC"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
5051 $as_echo "$ac_ct_DTC" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5057 if test "x$ac_ct_DTC" = x
; then
5060 case $cross_compiling:$ac_tool_warned in
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5064 ac_tool_warned
=yes ;;
5069 DTC
="$ac_cv_prog_DTC"
5073 if test "x$cross_compiling" = "xno"; then
5074 : "${AR_FOR_BUILD:=\$(AR)}"
5075 : "${CC_FOR_BUILD:=\$(CC)}"
5076 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
5077 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
5078 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
5079 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
5081 : "${AR_FOR_BUILD:=ar}"
5082 : "${CC_FOR_BUILD:=gcc}"
5083 : "${RANLIB_FOR_BUILD:=ranlib}"
5084 : "${CFLAGS_FOR_BUILD:=-g -O}"
5085 : "${CPPFLAGS_FOR_BUILD:=}"
5086 : "${LDLFAGS_FOR_BUILD:=}"
5096 if test -n "$ac_tool_prefix"; then
5097 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5098 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_AR+:} false
; then :
5102 $as_echo_n "(cached) " >&6
5104 if test -n "$AR"; then
5105 ac_cv_prog_AR
="$AR" # Let the user override the test.
5107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir
=.
5112 for ac_exec_ext
in '' $ac_executable_extensions; do
5113 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 if test -n "$AR"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5127 $as_echo "$AR" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5135 if test -z "$ac_cv_prog_AR"; then
5137 # Extract the first word of "ar", so it can be a program name with args.
5138 set dummy
ar; ac_word
=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5142 $as_echo_n "(cached) " >&6
5144 if test -n "$ac_ct_AR"; then
5145 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir
=.
5152 for ac_exec_ext
in '' $ac_executable_extensions; do
5153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_ac_ct_AR
="ar"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5165 if test -n "$ac_ct_AR"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5167 $as_echo "$ac_ct_AR" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5173 if test "x$ac_ct_AR" = x
; then
5176 case $cross_compiling:$ac_tool_warned in
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned
=yes ;;
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5190 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_prog_RANLIB+:} false
; then :
5194 $as_echo_n "(cached) " >&6
5196 if test -n "$RANLIB"; then
5197 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir
=.
5204 for ac_exec_ext
in '' $ac_executable_extensions; do
5205 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5206 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 RANLIB
=$ac_cv_prog_RANLIB
5217 if test -n "$RANLIB"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5219 $as_echo "$RANLIB" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5227 if test -z "$ac_cv_prog_RANLIB"; then
5228 ac_ct_RANLIB
=$RANLIB
5229 # Extract the first word of "ranlib", so it can be a program name with args.
5230 set dummy ranlib
; ac_word
=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5234 $as_echo_n "(cached) " >&6
5236 if test -n "$ac_ct_RANLIB"; then
5237 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir
=.
5244 for ac_exec_ext
in '' $ac_executable_extensions; do
5245 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5246 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5257 if test -n "$ac_ct_RANLIB"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5259 $as_echo "$ac_ct_RANLIB" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5265 if test "x$ac_ct_RANLIB" = x
; then
5268 case $cross_compiling:$ac_tool_warned in
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272 ac_tool_warned
=yes ;;
5274 RANLIB
=$ac_ct_RANLIB
5277 RANLIB
="$ac_cv_prog_RANLIB"
5287 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5288 if test -n "$ac_tool_prefix"; then
5289 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5290 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5294 $as_echo_n "(cached) " >&6
5298 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir
=.
5306 for ac_exec_ext
in '' $ac_executable_extensions; do
5307 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5320 if test -n "$PKG_CONFIG"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5322 $as_echo "$PKG_CONFIG" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5330 if test -z "$ac_cv_path_PKG_CONFIG"; then
5331 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5332 # Extract the first word of "pkg-config", so it can be a program name with args.
5333 set dummy pkg-config
; ac_word
=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5337 $as_echo_n "(cached) " >&6
5339 case $ac_pt_PKG_CONFIG in
5341 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir
=.
5349 for ac_exec_ext
in '' $ac_executable_extensions; do
5350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5363 if test -n "$ac_pt_PKG_CONFIG"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5365 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5371 if test "x$ac_pt_PKG_CONFIG" = x
; then
5374 case $cross_compiling:$ac_tool_warned in
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5378 ac_tool_warned
=yes ;;
5380 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5383 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5387 if test -n "$PKG_CONFIG"; then
5388 _pkg_min_version
=0.9.0
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5390 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5391 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5393 $as_echo "yes" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5401 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5402 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5403 # is C99. So handle it ourselves.
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5407 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5411 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5412 # error "C11 support not found"
5416 if ac_fn_c_try_compile
"$LINENO"; then :
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418 $as_echo "yes" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5424 $as_echo_n "checking for -std=c11 support... " >&6; }
5427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5430 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5431 # error "C11 support not found"
5435 if ac_fn_c_try_compile
"$LINENO"; then :
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5438 $as_echo "yes" >&6; }
5440 C_DIALECT
="-std=c11"
5443 as_fn_error $?
"C11 is required" "$LINENO" 5
5445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5453 for ac_header
in $ac_header_list
5455 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5456 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5458 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5459 cat >>confdefs.h
<<_ACEOF
5460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5514 for ac_func
in $ac_func_list
5516 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5517 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5518 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5519 cat >>confdefs.h
<<_ACEOF
5520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5653 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5654 if ${ac_cv_struct_tm+:} false
; then :
5655 $as_echo_n "(cached) " >&6
5657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5666 int *p = &tm.tm_sec;
5672 if ac_fn_c_try_compile
"$LINENO"; then :
5673 ac_cv_struct_tm
=time.h
5675 ac_cv_struct_tm
=sys
/time.h
5677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5680 $as_echo "$ac_cv_struct_tm" >&6; }
5681 if test $ac_cv_struct_tm = sys
/time.h
; then
5683 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5688 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5689 if ${ac_cv_type_uid_t+:} false
; then :
5690 $as_echo_n "(cached) " >&6
5692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <sys/types.h>
5697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5698 $EGREP "uid_t" >/dev
/null
2>&1; then :
5699 ac_cv_type_uid_t
=yes
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5707 $as_echo "$ac_cv_type_uid_t" >&6; }
5708 if test $ac_cv_type_uid_t = no
; then
5710 $as_echo "#define uid_t int" >>confdefs.h
5713 $as_echo "#define gid_t int" >>confdefs.h
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5720 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5725 macro_version
='2.2.7a'
5726 macro_revision
='1.3134'
5740 ltmain
="$ac_aux_dir/ltmain.sh"
5742 # Backslashify metacharacters that are still active within
5743 # double-quoted strings.
5744 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5746 # Same as above, but do not quote variable references.
5747 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5749 # Sed substitution to delay expansion of an escaped shell variable in a
5750 # double_quote_subst'ed string.
5751 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5753 # Sed substitution to delay expansion of an escaped single quote.
5754 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5756 # Sed substitution to avoid accidental globbing in evaled expressions
5757 no_glob_subst
='s/\*/\\\*/g'
5759 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5760 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5761 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5764 $as_echo_n "checking how to print strings... " >&6; }
5765 # Test print first, because it will be a builtin if present.
5766 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5767 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5769 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5772 # Use this function as a fallback that always works.
5773 func_fallback_echo ()
5775 eval 'cat <<_LTECHO_EOF
5779 ECHO='func_fallback_echo
'
5782 # func_echo_all arg...
5783 # Invoke $ECHO with all args, space-separated.
5790 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5791 $as_echo "printf" >&6; } ;;
5792 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5793 $as_echo "print -r" >&6; } ;;
5794 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5795 $as_echo "cat" >&6; } ;;
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5812 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5813 if ${ac_cv_path_SED+:} false; then :
5814 $as_echo_n "(cached) " >&6
5816 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5817 for ac_i in 1 2 3 4 5 6 7; do
5818 ac_script="$ac_script$as_nl$ac_script"
5820 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5821 { ac_script=; unset ac_script;}
5822 if test -z "$SED"; then
5823 ac_path_SED_found=false
5824 # Loop through the user's path and
test for each of PROGNAME-LIST
5825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir
=.
5830 for ac_prog
in sed gsed
; do
5831 for ac_exec_ext
in '' $ac_executable_extensions; do
5832 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5833 as_fn_executable_p
"$ac_path_SED" ||
continue
5834 # Check for GNU ac_path_SED and select it if it is found.
5835 # Check for GNU $ac_path_SED
5836 case `"$ac_path_SED" --version 2>&1` in
5838 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5841 $as_echo_n 0123456789 >"conftest.in"
5844 cat "conftest.in" "conftest.in" >"conftest.tmp"
5845 mv "conftest.tmp" "conftest.in"
5846 cp "conftest.in" "conftest.nl"
5847 $as_echo '' >> "conftest.nl"
5848 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5849 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5850 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5851 if test $ac_count -gt ${ac_path_SED_max-0}; then
5852 # Best one so far, save it but keep looking for a better one
5853 ac_cv_path_SED
="$ac_path_SED"
5854 ac_path_SED_max
=$ac_count
5856 # 10*(2^10) chars as input seems more than enough
5857 test $ac_count -gt 10 && break
5859 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5862 $ac_path_SED_found && break 3
5867 if test -z "$ac_cv_path_SED"; then
5868 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5876 $as_echo "$ac_cv_path_SED" >&6; }
5877 SED
="$ac_cv_path_SED"
5880 test -z "$SED" && SED
=sed
5881 Xsed
="$SED -e 1s/^X//"
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5894 $as_echo_n "checking for fgrep... " >&6; }
5895 if ${ac_cv_path_FGREP+:} false
; then :
5896 $as_echo_n "(cached) " >&6
5898 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5899 then ac_cv_path_FGREP
="$GREP -F"
5901 if test -z "$FGREP"; then
5902 ac_path_FGREP_found
=false
5903 # Loop through the user's path and test for each of PROGNAME-LIST
5904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5905 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5908 test -z "$as_dir" && as_dir
=.
5909 for ac_prog
in fgrep
; do
5910 for ac_exec_ext
in '' $ac_executable_extensions; do
5911 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5912 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5913 # Check for GNU ac_path_FGREP and select it if it is found.
5914 # Check for GNU $ac_path_FGREP
5915 case `"$ac_path_FGREP" --version 2>&1` in
5917 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5920 $as_echo_n 0123456789 >"conftest.in"
5923 cat "conftest.in" "conftest.in" >"conftest.tmp"
5924 mv "conftest.tmp" "conftest.in"
5925 cp "conftest.in" "conftest.nl"
5926 $as_echo 'FGREP' >> "conftest.nl"
5927 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5928 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5929 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5930 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5931 # Best one so far, save it but keep looking for a better one
5932 ac_cv_path_FGREP
="$ac_path_FGREP"
5933 ac_path_FGREP_max
=$ac_count
5935 # 10*(2^10) chars as input seems more than enough
5936 test $ac_count -gt 10 && break
5938 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5941 $ac_path_FGREP_found && break 3
5946 if test -z "$ac_cv_path_FGREP"; then
5947 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5950 ac_cv_path_FGREP
=$FGREP
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5956 $as_echo "$ac_cv_path_FGREP" >&6; }
5957 FGREP
="$ac_cv_path_FGREP"
5960 test -z "$GREP" && GREP
=grep
5980 # Check whether --with-gnu-ld was given.
5981 if test "${with_gnu_ld+set}" = set; then :
5982 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5988 if test "$GCC" = yes; then
5989 # Check if gcc -print-prog-name=ld gives a path.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5991 $as_echo_n "checking for ld used by $CC... " >&6; }
5994 # gcc leaves a trailing carriage return which upsets mingw
5995 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5997 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6000 # Accept absolute paths.
6002 re_direlt
='/[^/][^/]*/\.\./'
6003 # Canonicalize the pathname of ld
6004 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6005 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6006 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6008 test -z "$LD" && LD
="$ac_prog"
6011 # If it fails, then pretend we aren't using GCC.
6015 # If it is relative, then search for the first ld in PATH.
6019 elif test "$with_gnu_ld" = yes; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6021 $as_echo_n "checking for GNU ld... " >&6; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6024 $as_echo_n "checking for non-GNU ld... " >&6; }
6026 if ${lt_cv_path_LD+:} false
; then :
6027 $as_echo_n "(cached) " >&6
6029 if test -z "$LD"; then
6030 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6031 for ac_dir
in $PATH; do
6033 test -z "$ac_dir" && ac_dir
=.
6034 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6035 lt_cv_path_LD
="$ac_dir/$ac_prog"
6036 # Check to see if the program is GNU ld. I'd rather use --version,
6037 # but apparently some variants of GNU ld only accept -v.
6038 # Break only if it was the GNU/non-GNU ld that we prefer.
6039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6040 *GNU
* |
*'with BFD'*)
6041 test "$with_gnu_ld" != no
&& break
6044 test "$with_gnu_ld" != yes && break
6051 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6056 if test -n "$LD"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6058 $as_echo "$LD" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6063 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6065 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6066 if ${lt_cv_prog_gnu_ld+:} false
; then :
6067 $as_echo_n "(cached) " >&6
6069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6070 case `$LD -v 2>&1 </dev/null` in
6071 *GNU
* |
*'with BFD'*)
6072 lt_cv_prog_gnu_ld
=yes
6075 lt_cv_prog_gnu_ld
=no
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6080 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6081 with_gnu_ld
=$lt_cv_prog_gnu_ld
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6092 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6093 if ${lt_cv_path_NM+:} false
; then :
6094 $as_echo_n "(cached) " >&6
6096 if test -n "$NM"; then
6097 # Let the user override the nm to test.
6098 lt_nm_to_check
="$NM"
6100 lt_nm_to_check
="${ac_tool_prefix}nm"
6101 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6102 lt_nm_to_check
="$lt_nm_to_check nm"
6105 for lt_tmp_nm
in "$lt_nm_to_check"; do
6106 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6107 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6109 test -z "$ac_dir" && ac_dir
=.
6110 # Strip out any user-provided options from the nm to test twice,
6111 # the first time to test to see if nm (rather than its options) has
6112 # an explicit path, the second time to yield a file which can be
6114 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6115 case "$tmp_nm_path" in
6116 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
6117 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
6119 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6120 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
6121 # Check to see if the nm accepts a BSD-compat flag.
6122 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6123 # nm: unknown option "B" ignored
6124 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6125 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
6129 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6131 lt_cv_path_NM
="$tmp_nm -p"
6135 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6136 continue # so that we can try to find one that supports BSD flags
6145 : ${lt_cv_path_NM=no}
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6148 $as_echo "$lt_cv_path_NM" >&6; }
6149 if test "$lt_cv_path_NM" != "no"; then
6152 # Didn't find any BSD compatible name lister, look for dumpbin.
6153 if test -n "$DUMPBIN"; then :
6154 # Let the user override the test.
6156 if test -n "$ac_tool_prefix"; then
6157 for ac_prog
in dumpbin
"link -dump"
6159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6160 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 $as_echo_n "checking for $ac_word... " >&6; }
6163 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6164 $as_echo_n "(cached) " >&6
6166 if test -n "$DUMPBIN"; then
6167 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6173 test -z "$as_dir" && as_dir
=.
6174 for ac_exec_ext
in '' $ac_executable_extensions; do
6175 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6176 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 DUMPBIN
=$ac_cv_prog_DUMPBIN
6187 if test -n "$DUMPBIN"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6189 $as_echo "$DUMPBIN" >&6; }
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 $as_echo "no" >&6; }
6196 test -n "$DUMPBIN" && break
6199 if test -z "$DUMPBIN"; then
6200 ac_ct_DUMPBIN
=$DUMPBIN
6201 for ac_prog
in dumpbin
"link -dump"
6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
6204 set dummy
$ac_prog; ac_word
=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6208 $as_echo_n "(cached) " >&6
6210 if test -n "$ac_ct_DUMPBIN"; then
6211 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir
=.
6218 for ac_exec_ext
in '' $ac_executable_extensions; do
6219 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6231 if test -n "$ac_ct_DUMPBIN"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6233 $as_echo "$ac_ct_DUMPBIN" >&6; }
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6240 test -n "$ac_ct_DUMPBIN" && break
6243 if test "x$ac_ct_DUMPBIN" = x
; then
6246 case $cross_compiling:$ac_tool_warned in
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250 ac_tool_warned
=yes ;;
6252 DUMPBIN
=$ac_ct_DUMPBIN
6256 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6258 DUMPBIN
="$DUMPBIN -symbols"
6266 if test "$DUMPBIN" != ":"; then
6270 test -z "$NM" && NM
=nm
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6278 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6279 if ${lt_cv_nm_interface+:} false
; then :
6280 $as_echo_n "(cached) " >&6
6282 lt_cv_nm_interface
="BSD nm"
6283 echo "int some_variable = 0;" > conftest.
$ac_ext
6284 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6285 (eval "$ac_compile" 2>conftest.err
)
6286 cat conftest.err
>&5
6287 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6288 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6289 cat conftest.err
>&5
6290 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6291 cat conftest.out
>&5
6292 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6293 lt_cv_nm_interface
="MS dumpbin"
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6298 $as_echo "$lt_cv_nm_interface" >&6; }
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6301 $as_echo_n "checking whether ln -s works... " >&6; }
6303 if test "$LN_S" = "ln -s"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6305 $as_echo "yes" >&6; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6308 $as_echo "no, using $LN_S" >&6; }
6311 # find the maximum length of command line arguments
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6313 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6314 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6315 $as_echo_n "(cached) " >&6
6322 # On DJGPP, this test can blow up pretty badly due to problems in libc
6323 # (any single argument exceeding 2000 bytes causes a buffer overrun
6324 # during glob expansion). Even if it were fixed, the result of this
6325 # check would be larger than it should be.
6326 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6330 # Under GNU Hurd, this test is not required because there is
6331 # no limit to the length of command line arguments.
6332 # Libtool will interpret -1 as no limit whatsoever
6333 lt_cv_sys_max_cmd_len
=-1;
6336 cygwin
* | mingw
* | cegcc
*)
6337 # On Win9x/ME, this test blows up -- it succeeds, but takes
6338 # about 5 minutes as the teststring grows exponentially.
6339 # Worse, since 9x/ME are not pre-emptively multitasking,
6340 # you end up with a "frozen" computer, even though with patience
6341 # the test eventually succeeds (with a max line length of 256k).
6342 # Instead, let's just punt: use the minimum linelength reported by
6343 # all of the supported platforms: 8192 (on NT/2K/XP).
6344 lt_cv_sys_max_cmd_len
=8192;
6348 # On MiNT this can take a long time and run out of memory.
6349 lt_cv_sys_max_cmd_len
=8192;
6353 # On AmigaOS with pdksh, this test takes hours, literally.
6354 # So we just punt and use a minimum line length of 8192.
6355 lt_cv_sys_max_cmd_len
=8192;
6358 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6359 # This has been around since 386BSD, at least. Likely further.
6360 if test -x /sbin
/sysctl
; then
6361 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6362 elif test -x /usr
/sbin
/sysctl
; then
6363 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6365 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6367 # And add a safety zone
6368 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6369 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6373 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6374 lt_cv_sys_max_cmd_len
=196608
6378 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6379 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6380 # nice to cause kernel panics so lets avoid the loop below.
6381 # First set a reasonable default.
6382 lt_cv_sys_max_cmd_len
=16384
6384 if test -x /sbin
/sysconfig
; then
6385 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6386 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6391 lt_cv_sys_max_cmd_len
=102400
6393 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6394 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6395 if test -n "$kargmax"; then
6396 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6398 lt_cv_sys_max_cmd_len
=32768
6402 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6403 if test -n "$lt_cv_sys_max_cmd_len"; then
6404 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6405 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6407 # Make teststring a little bigger before we do anything with it.
6408 # a 1K string should be a reasonable start.
6409 for i
in 1 2 3 4 5 6 7 8 ; do
6410 teststring
=$teststring$teststring
6412 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6413 # If test is not a shell built-in, we'll probably end up computing a
6414 # maximum length that is only half of the actual maximum length, but
6416 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6417 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6418 test $i != 17 # 1/2 MB should be enough
6421 teststring
=$teststring$teststring
6423 # Only check the string length outside the loop.
6424 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6426 # Add a significant safety factor because C++ compilers can tack on
6427 # massive amounts of additional arguments before passing them to the
6428 # linker. It appears as though 1/2 is a usable value.
6429 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6436 if test -n $lt_cv_sys_max_cmd_len ; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6438 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6441 $as_echo "none" >&6; }
6443 max_cmd_len
=$lt_cv_sys_max_cmd_len
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6455 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6456 # Try some XSI features
6459 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6461 && eval 'test $(( 1 + 1 )) -eq 2 \
6462 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6465 $as_echo "$xsi_shell" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6469 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6471 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6473 && lt_shell_append=yes
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6475 $as_echo "$lt_shell_append" >&6; }
6478 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6488 # test EBCDIC or ASCII
6489 case `echo X|tr X '\101'` in
6490 A) # ASCII based system
6491 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6492 lt_SP2NL='tr \040 \012'
6493 lt_NL2SP='tr \015\012 \040\040'
6495 *) # EBCDIC based system
6496 lt_SP2NL='tr \100 \n'
6497 lt_NL2SP='tr \r\n \100\100'
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6510 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6511 if ${lt_cv_ld_reload_flag+:} false; then :
6512 $as_echo_n "(cached
) " >&6
6514 lt_cv_ld_reload_flag='-r'
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6517 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6518 reload_flag=$lt_cv_ld_reload_flag
6519 case $reload_flag in
6521 *) reload_flag=" $reload_flag" ;;
6523 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6526 if test "$GCC" = yes; then
6527 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6529 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6546 $as_echo_n "checking
for $ac_word...
" >&6; }
6547 if ${ac_cv_prog_OBJDUMP+:} false; then :
6548 $as_echo_n "(cached
) " >&6
6550 if test -n "$OBJDUMP"; then
6551 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6570 OBJDUMP=$ac_cv_prog_OBJDUMP
6571 if test -n "$OBJDUMP"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6573 $as_echo "$OBJDUMP" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6576 $as_echo "no
" >&6; }
6581 if test -z "$ac_cv_prog_OBJDUMP"; then
6582 ac_ct_OBJDUMP=$OBJDUMP
6583 # Extract the first word of "objdump
", so it can be a program name with args.
6584 set dummy objdump; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6586 $as_echo_n "checking
for $ac_word...
" >&6; }
6587 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6588 $as_echo_n "(cached
) " >&6
6590 if test -n "$ac_ct_OBJDUMP"; then
6591 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6610 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6611 if test -n "$ac_ct_OBJDUMP"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6613 $as_echo "$ac_ct_OBJDUMP" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6616 $as_echo "no
" >&6; }
6619 if test "x
$ac_ct_OBJDUMP" = x; then
6622 case $cross_compiling:$ac_tool_warned in
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6625 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6626 ac_tool_warned=yes ;;
6628 OBJDUMP=$ac_ct_OBJDUMP
6631 OBJDUMP="$ac_cv_prog_OBJDUMP"
6634 test -z "$OBJDUMP" && OBJDUMP=objdump
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6645 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6646 if ${lt_cv_deplibs_check_method+:} false; then :
6647 $as_echo_n "(cached
) " >&6
6649 lt_cv_file_magic_cmd='$MAGIC_CMD'
6650 lt_cv_file_magic_test_file=
6651 lt_cv_deplibs_check_method='unknown'
6652 # Need to set the preceding variable on all platforms that support
6653 # interlibrary dependencies.
6654 # 'none' -- dependencies not supported.
6655 # `unknown' -- same as none, but documents that we really don't know.
6656 # 'pass_all' -- all dependencies passed with no checks.
6657 # 'test_compile' -- check by making test program.
6658 # 'file_magic [[regex]]' -- check by looking for files in library path
6659 # which responds to the $file_magic_cmd with a given extended regex.
6660 # If you have `file' or equivalent on your system and you're not sure
6661 # whether `pass_all' will *always* work, you probably want this one.
6665 lt_cv_deplibs_check_method=pass_all
6669 lt_cv_deplibs_check_method=pass_all
6673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6674 lt_cv_file_magic_cmd='/usr/bin/file -L'
6675 lt_cv_file_magic_test_file=/shlib/libc.so
6679 # func_win32_libid is a shell function defined in ltmain.sh
6680 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6681 lt_cv_file_magic_cmd='func_win32_libid'
6685 # Base MSYS/MinGW do not provide the 'file' command needed by
6686 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6687 # unless we find 'file', for example because we are cross-compiling.
6688 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6689 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6690 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6691 lt_cv_file_magic_cmd='func_win32_libid'
6693 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6694 lt_cv_file_magic_cmd='$OBJDUMP -f'
6699 # use the weaker test based on 'objdump'. See mingw*.
6700 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6701 lt_cv_file_magic_cmd='$OBJDUMP -f'
6704 darwin* | rhapsody*)
6705 lt_cv_deplibs_check_method=pass_all
6708 freebsd* | dragonfly*)
6709 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6712 # Not sure whether the presence of OpenBSD here was a mistake.
6713 # Let's accept both of them until this is cleared up.
6714 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6715 lt_cv_file_magic_cmd=/usr/bin/file
6716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6720 lt_cv_deplibs_check_method=pass_all
6725 lt_cv_deplibs_check_method=pass_all
6729 lt_cv_deplibs_check_method=pass_all
6732 hpux10.20* | hpux11*)
6733 lt_cv_file_magic_cmd=/usr/bin/file
6736 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6737 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6740 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]'
6741 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6744 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6745 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6751 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6755 irix5* | irix6* | nonstopux*)
6757 *-32|*"-32 ") libmagic=32-bit;;
6758 *-n32|*"-n32 ") libmagic=N32;;
6759 *-64|*"-64 ") libmagic=64-bit;;
6760 *) libmagic=never-match;;
6762 lt_cv_deplibs_check_method=pass_all
6765 # This must be Linux ELF.
6766 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6767 lt_cv_deplibs_check_method=pass_all
6771 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6780 lt_cv_file_magic_cmd=/usr/bin/file
6781 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6785 lt_cv_deplibs_check_method=pass_all
6789 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6796 osf3* | osf4* | osf5*)
6797 lt_cv_deplibs_check_method=pass_all
6801 lt_cv_deplibs_check_method=pass_all
6805 lt_cv_deplibs_check_method=pass_all
6808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6809 lt_cv_deplibs_check_method=pass_all
6813 case $host_vendor in
6815 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]'
6816 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6819 lt_cv_deplibs_check_method=pass_all
6822 lt_cv_file_magic_cmd='/bin/file'
6823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6826 lt_cv_file_magic_cmd='/bin/file'
6827 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6828 lt_cv_file_magic_test_file=/lib/libc.so
6831 lt_cv_deplibs_check_method=pass_all
6834 lt_cv_deplibs_check_method=pass_all
6840 lt_cv_deplibs_check_method=pass_all
6843 # Assume VxWorks cross toolchains are built on Linux, possibly
6844 # as canadian for Windows hosts.
6845 lt_cv_deplibs_check_method=pass_all
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6851 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6852 file_magic_cmd=$lt_cv_file_magic_cmd
6853 deplibs_check_method=$lt_cv_deplibs_check_method
6854 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6868 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6869 for plugin in $plugin_names; do
6870 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6871 if test x$plugin_so = x$plugin; then
6872 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6874 if test x$plugin_so != x$plugin; then
6875 plugin_option="--plugin $plugin_so"
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}ar; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6884 $as_echo_n "checking
for $ac_word...
" >&6; }
6885 if ${ac_cv_prog_AR+:} false; then :
6886 $as_echo_n "(cached
) " >&6
6888 if test -n "$AR"; then
6889 ac_cv_prog_AR="$AR" # Let the user override the test.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_AR="${ac_tool_prefix}ar"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6909 if test -n "$AR"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6911 $as_echo "$AR" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6914 $as_echo "no
" >&6; }
6919 if test -z "$ac_cv_prog_AR"; then
6921 # Extract the first word of "ar", so it can be a program name with args.
6922 set dummy ar; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6924 $as_echo_n "checking
for $ac_word...
" >&6; }
6925 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6926 $as_echo_n "(cached
) " >&6
6928 if test -n "$ac_ct_AR"; then
6929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_ac_ct_AR="ar"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6948 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6949 if test -n "$ac_ct_AR"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6951 $as_echo "$ac_ct_AR" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6954 $as_echo "no
" >&6; }
6957 if test "x
$ac_ct_AR" = x; then
6960 case $cross_compiling:$ac_tool_warned in
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6963 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6964 ac_tool_warned=yes ;;
6972 test -z "$AR" && AR=ar
6973 if test -n "$plugin_option"; then
6974 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6976 $AR $plugin_option rc conftest.a conftest.c
6977 if test "$?
" != 0; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6979 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6981 AR="$AR $plugin_option"
6986 test -z "$AR_FLAGS" && AR_FLAGS=cru
6998 if test -n "$ac_tool_prefix"; then
6999 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7000 set dummy ${ac_tool_prefix}strip; ac_word=$2
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7002 $as_echo_n "checking
for $ac_word...
" >&6; }
7003 if ${ac_cv_prog_STRIP+:} false; then :
7004 $as_echo_n "(cached
) " >&6
7006 if test -n "$STRIP"; then
7007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7026 STRIP=$ac_cv_prog_STRIP
7027 if test -n "$STRIP"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7029 $as_echo "$STRIP" >&6; }
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7032 $as_echo "no
" >&6; }
7037 if test -z "$ac_cv_prog_STRIP"; then
7039 # Extract the first word of "strip
", so it can be a program name with args.
7040 set dummy strip; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7042 $as_echo_n "checking
for $ac_word...
" >&6; }
7043 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7044 $as_echo_n "(cached
) " >&6
7046 if test -n "$ac_ct_STRIP"; then
7047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056 ac_cv_prog_ac_ct_STRIP="strip
"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7067 if test -n "$ac_ct_STRIP"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7069 $as_echo "$ac_ct_STRIP" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7072 $as_echo "no
" >&6; }
7075 if test "x
$ac_ct_STRIP" = x; then
7078 case $cross_compiling:$ac_tool_warned in
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7081 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7082 ac_tool_warned=yes ;;
7087 STRIP="$ac_cv_prog_STRIP"
7090 test -z "$STRIP" && STRIP=:
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7101 $as_echo_n "checking
for $ac_word...
" >&6; }
7102 if ${ac_cv_prog_RANLIB+:} false; then :
7103 $as_echo_n "(cached
) " >&6
7105 if test -n "$RANLIB"; then
7106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7125 RANLIB=$ac_cv_prog_RANLIB
7126 if test -n "$RANLIB"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7128 $as_echo "$RANLIB" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7131 $as_echo "no
" >&6; }
7136 if test -z "$ac_cv_prog_RANLIB"; then
7137 ac_ct_RANLIB=$RANLIB
7138 # Extract the first word of "ranlib
", so it can be a program name with args.
7139 set dummy ranlib; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7141 $as_echo_n "checking
for $ac_word...
" >&6; }
7142 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7143 $as_echo_n "(cached
) " >&6
7145 if test -n "$ac_ct_RANLIB"; then
7146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7166 if test -n "$ac_ct_RANLIB"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7168 $as_echo "$ac_ct_RANLIB" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7171 $as_echo "no
" >&6; }
7174 if test "x
$ac_ct_RANLIB" = x; then
7177 case $cross_compiling:$ac_tool_warned in
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7180 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7181 ac_tool_warned=yes ;;
7183 RANLIB=$ac_ct_RANLIB
7186 RANLIB="$ac_cv_prog_RANLIB"
7189 test -z "$RANLIB" && RANLIB=:
7190 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7191 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
7192 RANLIB="$RANLIB $plugin_option"
7201 # Determine commands to create old-style static archives.
7202 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7203 old_postinstall_cmds='chmod 644 $oldlib'
7204 old_postuninstall_cmds=
7206 if test -n "$RANLIB"; then
7209 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7212 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7215 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7220 lock_old_archive_extraction=yes ;;
7222 lock_old_archive_extraction=no ;;
7245 for ac_prog in gawk mawk nawk awk
7247 # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7250 $as_echo_n "checking
for $ac_word...
" >&6; }
7251 if ${ac_cv_prog_AWK+:} false; then :
7252 $as_echo_n "(cached
) " >&6
7254 if test -n "$AWK"; then
7255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 ac_cv_prog_AWK="$ac_prog"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7275 if test -n "$AWK"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
7277 $as_echo "$AWK" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7280 $as_echo "no
" >&6; }
7284 test -n "$AWK" && break
7305 # If no C compiler was specified, use CC.
7308 # If no C compiler flags were specified, use CFLAGS.
7309 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7311 # Allow CC to be a program name with arguments.
7315 # Check for command to grab the raw symbol name followed by C symbol from nm.
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7317 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7318 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7319 $as_echo_n "(cached
) " >&6
7322 # These are sane defaults that work on at least a few old systems.
7323 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7325 # Character class describing NM global symbol codes.
7326 symcode='[BCDEGRST]'
7328 # Regexp to match symbols that can be accessed directly from C.
7329 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7331 # Define system-specific variables.
7336 cygwin* | mingw* | pw32* | cegcc*)
7337 symcode='[ABCDGISTW]'
7340 if test "$host_cpu" = ia64; then
7341 symcode='[ABCDEGRST]'
7345 symcode='[BCDEGRST]'
7348 symcode='[BCDEGQRST]'
7359 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7367 # If we're using GNU nm, then use its standard symbol codes.
7368 case `$NM -V 2>&1` in
7369 *GNU* | *'with BFD'*)
7370 symcode='[ABCDGIRSTW]' ;;
7373 # Transform an extracted symbol line into a proper C declaration.
7374 # Some systems (esp. on ia64) link data and code symbols differently,
7375 # so use this general approach.
7376 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7378 # Transform an extracted symbol line into symbol name and symbol address
7379 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7380 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'"
7382 # Handle CRLF in mingw tool chain
7386 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7390 # Try without a prefix underscore, then with it.
7391 for ac_symprfx in "" "_
"; do
7393 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7394 symxfrm="\\1 $ac_symprfx\\2 \\2"
7396 # Write the raw and C identifiers.
7397 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7398 # Fake it for dumpbin and say T for any non-static function
7399 # and D for any global variable.
7400 # Also find C++ and __fastcall symbols from MSVC++,
7401 # which start with @ or ?.
7402 lt_cv_sys_global_symbol_pipe="$AWK '"\
7403 " {last_section=section; section=\$ 3};"\
7404 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7405 " \$ 0!~/External *\|/{next};"\
7406 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7407 " {if(hide[section]) next};"\
7408 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7409 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7410 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7411 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7412 " ' prfx
=^
$ac_symprfx"
7414 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7417 # Check to see that the pipe works correctly.
7421 cat > conftest.$ac_ext <<_LT_EOF
7426 void nm_test_func(void);
7427 void nm_test_func(void){}
7431 int main(){nm_test_var='a';nm_test_func();return(0);}
7434 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435 (eval $ac_compile) 2>&5
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 # Now try to grab the symbols.
7441 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7442 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7444 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7445 test $ac_status = 0; } && test -s "$nlist"; then
7446 # Try sorting and uniquifying the output.
7447 if sort "$nlist" | uniq > "$nlist"T; then
7448 mv -f "$nlist"T "$nlist"
7453 # Make sure that we snagged all the symbols we need.
7454 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7455 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7456 cat <<_LT_EOF > conftest.$ac_ext
7462 # Now generate the symbol file.
7463 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7465 cat <<_LT_EOF >> conftest.$ac_ext
7467 /* The mapping between symbol names and symbols. */
7472 lt__PROGRAM__LTX_preloaded_symbols[] =
7474 { "@PROGRAM@
", (void *) 0 },
7476 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7477 cat <<\_LT_EOF >> conftest.$ac_ext
7481 /* This works around a problem in FreeBSD linker */
7482 #ifdef FREEBSD_WORKAROUND
7483 static const void *lt_preloaded_setup() {
7484 return lt__PROGRAM__LTX_preloaded_symbols;
7492 # Now try linking the two files.
7493 mv conftest.$ac_objext conftstm.$ac_objext
7494 lt_save_LIBS="$LIBS"
7495 lt_save_CFLAGS="$CFLAGS"
7496 LIBS="conftstm.
$ac_objext"
7497 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7498 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7499 (eval $ac_link) 2>&5
7501 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7502 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7505 LIBS="$lt_save_LIBS"
7506 CFLAGS="$lt_save_CFLAGS"
7508 echo "cannot
find nm_test_func
in $nlist" >&5
7511 echo "cannot
find nm_test_var
in $nlist" >&5
7514 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7517 echo "$progname: failed program was
:" >&5
7518 cat conftest.$ac_ext >&5
7520 rm -rf conftest* conftst*
7522 # Do not use the global_symbol_pipe unless it works.
7523 if test "$pipe_works" = yes; then
7526 lt_cv_sys_global_symbol_pipe=
7532 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7533 lt_cv_sys_global_symbol_to_cdecl=
7535 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7537 $as_echo "failed
" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7540 $as_echo "ok
" >&6; }
7564 # Check whether --enable-libtool-lock was given.
7565 if test "${enable_libtool_lock+set}" = set; then :
7566 enableval=$enable_libtool_lock;
7569 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7571 # Some flags need to be propagated to the compiler or linker for good
7575 # Find out which ABI we are using.
7576 echo 'int i;' > conftest.$ac_ext
7577 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7578 (eval $ac_compile) 2>&5
7580 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7581 test $ac_status = 0; }; then
7582 case `/usr/bin/file conftest.$ac_objext` in
7594 # Find out which ABI we are using.
7595 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7596 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7597 (eval $ac_compile) 2>&5
7599 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7600 test $ac_status = 0; }; then
7601 if test "$lt_cv_prog_gnu_ld" = yes; then
7602 case `/usr/bin/file conftest.$ac_objext` in
7604 LD="${LD-ld} -melf32bsmip"
7607 LD="${LD-ld} -melf32bmipn32"
7610 LD="${LD-ld} -melf64bmip"
7614 case `/usr/bin/file conftest.$ac_objext` in
7630 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7631 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7632 # Find out which ABI we are using.
7633 echo 'int i;' > conftest.$ac_ext
7634 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7635 (eval $ac_compile) 2>&5
7637 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7638 test $ac_status = 0; }; then
7639 case `/usr/bin/file conftest.o` in
7642 x86_64-*kfreebsd*-gnu)
7643 LD="${LD-ld} -m elf_i386_fbsd
"
7646 case `/usr/bin/file conftest.o` in
7648 LD="${LD-ld} -m elf32_x86_64
"
7651 LD="${LD-ld} -m elf_i386
"
7655 powerpc64le-*linux*)
7656 LD="${LD-ld} -m elf32lppclinux
"
7659 LD="${LD-ld} -m elf32ppclinux
"
7662 LD="${LD-ld} -m elf_s390
"
7665 LD="${LD-ld} -m elf32_sparc
"
7671 x86_64-*kfreebsd*-gnu)
7672 LD="${LD-ld} -m elf_x86_64_fbsd
"
7675 LD="${LD-ld} -m elf_x86_64
"
7678 LD="${LD-ld} -m elf64lppc
"
7681 LD="${LD-ld} -m elf64ppc
"
7683 s390*-*linux*|s390*-*tpf*)
7684 LD="${LD-ld} -m elf64_s390
"
7687 LD="${LD-ld} -m elf64_sparc
"
7697 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7698 SAVE_CFLAGS="$CFLAGS"
7699 CFLAGS="$CFLAGS -belf"
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7701 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7702 if ${lt_cv_cc_needs_belf+:} false; then :
7703 $as_echo_n "(cached
) " >&6
7706 ac_cpp='$CPP $CPPFLAGS'
7707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7722 if ac_fn_c_try_link "$LINENO"; then :
7723 lt_cv_cc_needs_belf=yes
7725 lt_cv_cc_needs_belf=no
7727 rm -f core conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
7730 ac_cpp='$CPP $CPPFLAGS'
7731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7737 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7738 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7739 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7740 CFLAGS="$SAVE_CFLAGS"
7744 # Find out which ABI we are using.
7745 echo 'int i;' > conftest.$ac_ext
7746 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7747 (eval $ac_compile) 2>&5
7749 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7750 test $ac_status = 0; }; then
7751 case `/usr/bin/file conftest.o` in
7753 case $lt_cv_prog_gnu_ld in
7754 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7756 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7768 need_locks="$enable_libtool_lock"
7772 rhapsody* | darwin*)
7773 if test -n "$ac_tool_prefix"; then
7774 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7775 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7777 $as_echo_n "checking
for $ac_word...
" >&6; }
7778 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7779 $as_echo_n "(cached
) " >&6
7781 if test -n "$DSYMUTIL"; then
7782 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7792 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7801 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7802 if test -n "$DSYMUTIL"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7804 $as_echo "$DSYMUTIL" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7807 $as_echo "no
" >&6; }
7812 if test -z "$ac_cv_prog_DSYMUTIL"; then
7813 ac_ct_DSYMUTIL=$DSYMUTIL
7814 # Extract the first word of "dsymutil
", so it can be a program name with args.
7815 set dummy dsymutil; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7817 $as_echo_n "checking
for $ac_word...
" >&6; }
7818 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7819 $as_echo_n "(cached
) " >&6
7821 if test -n "$ac_ct_DSYMUTIL"; then
7822 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7841 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7842 if test -n "$ac_ct_DSYMUTIL"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7844 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7847 $as_echo "no
" >&6; }
7850 if test "x
$ac_ct_DSYMUTIL" = x; then
7853 case $cross_compiling:$ac_tool_warned in
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7856 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7857 ac_tool_warned=yes ;;
7859 DSYMUTIL=$ac_ct_DSYMUTIL
7862 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7865 if test -n "$ac_tool_prefix"; then
7866 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7867 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7869 $as_echo_n "checking
for $ac_word...
" >&6; }
7870 if ${ac_cv_prog_NMEDIT+:} false; then :
7871 $as_echo_n "(cached
) " >&6
7873 if test -n "$NMEDIT"; then
7874 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7893 NMEDIT=$ac_cv_prog_NMEDIT
7894 if test -n "$NMEDIT"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7896 $as_echo "$NMEDIT" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7899 $as_echo "no
" >&6; }
7904 if test -z "$ac_cv_prog_NMEDIT"; then
7905 ac_ct_NMEDIT=$NMEDIT
7906 # Extract the first word of "nmedit
", so it can be a program name with args.
7907 set dummy nmedit; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7909 $as_echo_n "checking
for $ac_word...
" >&6; }
7910 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7911 $as_echo_n "(cached
) " >&6
7913 if test -n "$ac_ct_NMEDIT"; then
7914 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7933 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7934 if test -n "$ac_ct_NMEDIT"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7936 $as_echo "$ac_ct_NMEDIT" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7939 $as_echo "no
" >&6; }
7942 if test "x
$ac_ct_NMEDIT" = x; then
7945 case $cross_compiling:$ac_tool_warned in
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7948 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7949 ac_tool_warned=yes ;;
7951 NMEDIT=$ac_ct_NMEDIT
7954 NMEDIT="$ac_cv_prog_NMEDIT"
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7961 $as_echo_n "checking
for $ac_word...
" >&6; }
7962 if ${ac_cv_prog_LIPO+:} false; then :
7963 $as_echo_n "(cached
) " >&6
7965 if test -n "$LIPO"; then
7966 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7985 LIPO=$ac_cv_prog_LIPO
7986 if test -n "$LIPO"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7988 $as_echo "$LIPO" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7991 $as_echo "no
" >&6; }
7996 if test -z "$ac_cv_prog_LIPO"; then
7998 # Extract the first word of "lipo
", so it can be a program name with args.
7999 set dummy lipo; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8001 $as_echo_n "checking
for $ac_word...
" >&6; }
8002 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8003 $as_echo_n "(cached
) " >&6
8005 if test -n "$ac_ct_LIPO"; then
8006 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_ac_ct_LIPO="lipo
"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8025 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8026 if test -n "$ac_ct_LIPO"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8028 $as_echo "$ac_ct_LIPO" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8031 $as_echo "no
" >&6; }
8034 if test "x
$ac_ct_LIPO" = x; then
8037 case $cross_compiling:$ac_tool_warned in
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8040 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8041 ac_tool_warned=yes ;;
8046 LIPO="$ac_cv_prog_LIPO"
8049 if test -n "$ac_tool_prefix"; then
8050 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8051 set dummy ${ac_tool_prefix}otool; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8053 $as_echo_n "checking
for $ac_word...
" >&6; }
8054 if ${ac_cv_prog_OTOOL+:} false; then :
8055 $as_echo_n "(cached
) " >&6
8057 if test -n "$OTOOL"; then
8058 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8077 OTOOL=$ac_cv_prog_OTOOL
8078 if test -n "$OTOOL"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8080 $as_echo "$OTOOL" >&6; }
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8083 $as_echo "no
" >&6; }
8088 if test -z "$ac_cv_prog_OTOOL"; then
8090 # Extract the first word of "otool
", so it can be a program name with args.
8091 set dummy otool; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8093 $as_echo_n "checking
for $ac_word...
" >&6; }
8094 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8095 $as_echo_n "(cached
) " >&6
8097 if test -n "$ac_ct_OTOOL"; then
8098 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_ac_ct_OTOOL="otool
"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8117 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8118 if test -n "$ac_ct_OTOOL"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8120 $as_echo "$ac_ct_OTOOL" >&6; }
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8123 $as_echo "no
" >&6; }
8126 if test "x
$ac_ct_OTOOL" = x; then
8129 case $cross_compiling:$ac_tool_warned in
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8132 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8133 ac_tool_warned=yes ;;
8138 OTOOL="$ac_cv_prog_OTOOL"
8141 if test -n "$ac_tool_prefix"; then
8142 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8143 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8145 $as_echo_n "checking
for $ac_word...
" >&6; }
8146 if ${ac_cv_prog_OTOOL64+:} false; then :
8147 $as_echo_n "(cached
) " >&6
8149 if test -n "$OTOOL64"; then
8150 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8159 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8169 OTOOL64=$ac_cv_prog_OTOOL64
8170 if test -n "$OTOOL64"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8172 $as_echo "$OTOOL64" >&6; }
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8175 $as_echo "no
" >&6; }
8180 if test -z "$ac_cv_prog_OTOOL64"; then
8181 ac_ct_OTOOL64=$OTOOL64
8182 # Extract the first word of "otool64
", so it can be a program name with args.
8183 set dummy otool64; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8185 $as_echo_n "checking
for $ac_word...
" >&6; }
8186 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8187 $as_echo_n "(cached
) " >&6
8189 if test -n "$ac_ct_OTOOL64"; then
8190 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8209 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8210 if test -n "$ac_ct_OTOOL64"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8212 $as_echo "$ac_ct_OTOOL64" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8215 $as_echo "no
" >&6; }
8218 if test "x
$ac_ct_OTOOL64" = x; then
8221 case $cross_compiling:$ac_tool_warned in
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8224 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8225 ac_tool_warned=yes ;;
8227 OTOOL64=$ac_ct_OTOOL64
8230 OTOOL64="$ac_cv_prog_OTOOL64"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8260 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8261 if ${lt_cv_apple_cc_single_mod+:} false; then :
8262 $as_echo_n "(cached
) " >&6
8264 lt_cv_apple_cc_single_mod=no
8265 if test -z "${LT_MULTI_MODULE}"; then
8266 # By default we will add the -single_module flag. You can override
8267 # by either setting the environment variable LT_MULTI_MODULE
8268 # non-empty at configure time, or by adding -multi_module to the
8270 rm -rf libconftest.dylib*
8271 echo "int foo
(void
){return 1;}" > conftest.c
8272 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8273 -dynamiclib -Wl,-single_module conftest.c
" >&5
8274 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8275 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8277 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8278 lt_cv_apple_cc_single_mod=yes
8280 cat conftest.err >&5
8282 rm -rf libconftest.dylib*
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8287 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8289 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8290 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8291 $as_echo_n "(cached
) " >&6
8293 lt_cv_ld_exported_symbols_list=no
8294 save_LDFLAGS=$LDFLAGS
8295 echo "_main
" > conftest.sym
8296 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8308 if ac_fn_c_try_link "$LINENO"; then :
8309 lt_cv_ld_exported_symbols_list=yes
8311 lt_cv_ld_exported_symbols_list=no
8313 rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 LDFLAGS="$save_LDFLAGS"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8319 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8321 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8322 if ${lt_cv_ld_force_load+:} false; then :
8323 $as_echo_n "(cached
) " >&6
8325 lt_cv_ld_force_load=no
8326 cat > conftest.c << _LT_EOF
8327 int forced_loaded() { return 2;}
8329 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8330 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8331 echo "$AR cru libconftest.a conftest.o
" >&5
8332 $AR cru libconftest.a conftest.o 2>&5
8333 cat > conftest.c << _LT_EOF
8334 int main() { return 0;}
8336 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8337 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8339 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8340 lt_cv_ld_force_load=yes
8342 cat conftest.err >&5
8344 rm -f conftest.err libconftest.a conftest conftest.c
8345 rm -rf conftest.dSYM
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8349 $as_echo "$lt_cv_ld_force_load" >&6; }
8350 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8351 # build without first building modern cctools / linker.
8352 case $host_cpu-$host_os in
8353 *-rhapsody* | *-darwin1.[012])
8354 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8356 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8358 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8359 # deployment target is forced to an earlier version.
8360 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8361 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8364 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8371 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8372 _lt_dar_single_mod='$single_module'
8374 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8375 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8377 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8379 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8380 _lt_dsymutil='~$DSYMUTIL $lib || :'
8387 for ac_header in dlfcn.h
8389 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8391 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8392 cat >>confdefs.h <<_ACEOF
8393 #define HAVE_DLFCN_H 1
8402 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8403 as_ac_Header=`$as_echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_hdr that defines DIR
" >&5
8405 $as_echo_n "checking
for $ac_hdr that defines DIR...
" >&6; }
8406 if eval \${$as_ac_Header+:} false; then :
8407 $as_echo_n "(cached
) " >&6
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411 #include <sys/types.h>
8423 if ac_fn_c_try_compile "$LINENO"; then :
8424 eval "$as_ac_Header=yes"
8426 eval "$as_ac_Header=no
"
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 eval ac_res=\$$as_ac_Header
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
8432 $as_echo "$ac_res" >&6; }
8433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8434 cat >>confdefs.h <<_ACEOF
8435 #define `$as_echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8438 ac_header_dirent=$ac_hdr; break
8442 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8443 if test $ac_header_dirent = dirent.h; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for library containing opendir
" >&5
8445 $as_echo_n "checking
for library containing opendir...
" >&6; }
8446 if ${ac_cv_search_opendir+:} false; then :
8447 $as_echo_n "(cached
) " >&6
8449 ac_func_search_save_LIBS=$LIBS
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8453 /* Override any GCC internal prototype to avoid an error.
8454 Use char because int might match the return type of a GCC
8455 builtin and then its argument prototype would still apply. */
8468 for ac_lib in '' dir; do
8469 if test -z "$ac_lib"; then
8470 ac_res="none required
"
8473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8475 if ac_fn_c_try_link "$LINENO"; then :
8476 ac_cv_search_opendir=$ac_res
8478 rm -f core conftest.err conftest.$ac_objext \
8480 if ${ac_cv_search_opendir+:} false; then :
8484 if ${ac_cv_search_opendir+:} false; then :
8487 ac_cv_search_opendir=no
8490 LIBS=$ac_func_search_save_LIBS
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_search_opendir" >&5
8493 $as_echo "$ac_cv_search_opendir" >&6; }
8494 ac_res=$ac_cv_search_opendir
8495 if test "$ac_res" != no; then :
8496 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for library containing opendir
" >&5
8502 $as_echo_n "checking
for library containing opendir...
" >&6; }
8503 if ${ac_cv_search_opendir+:} false; then :
8504 $as_echo_n "(cached
) " >&6
8506 ac_func_search_save_LIBS=$LIBS
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8510 /* Override any GCC internal prototype to avoid an error.
8511 Use char because int might match the return type of a GCC
8512 builtin and then its argument prototype would still apply. */
8525 for ac_lib in '' x; do
8526 if test -z "$ac_lib"; then
8527 ac_res="none required
"
8530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8532 if ac_fn_c_try_link "$LINENO"; then :
8533 ac_cv_search_opendir=$ac_res
8535 rm -f core conftest.err conftest.$ac_objext \
8537 if ${ac_cv_search_opendir+:} false; then :
8541 if ${ac_cv_search_opendir+:} false; then :
8544 ac_cv_search_opendir=no
8547 LIBS=$ac_func_search_save_LIBS
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_search_opendir" >&5
8550 $as_echo "$ac_cv_search_opendir" >&6; }
8551 ac_res=$ac_cv_search_opendir
8552 if test "$ac_res" != no; then :
8553 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8562 ac_fn_c_check_member "$LINENO" "struct tm
" "tm_zone
" "ac_cv_member_struct_tm_tm_zone
" "#include <sys/types.h>
8563 #include <$ac_cv_struct_tm>
8566 if test "x
$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8568 cat >>confdefs.h <<_ACEOF
8569 #define HAVE_STRUCT_TM_TM_ZONE 1
8575 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8577 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8580 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8582 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
8588 cat >>confdefs.h
<<_ACEOF
8589 #define HAVE_DECL_TZNAME $ac_have_decl
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8593 $as_echo_n "checking for tzname... " >&6; }
8594 if ${ac_cv_var_tzname+:} false
; then :
8595 $as_echo_n "(cached) " >&6
8597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8600 #if !HAVE_DECL_TZNAME
8601 extern char *tzname[];
8607 return tzname[0][0];
8612 if ac_fn_c_try_link
"$LINENO"; then :
8613 ac_cv_var_tzname
=yes
8617 rm -f core conftest.err conftest.
$ac_objext \
8618 conftest
$ac_exeext conftest.
$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8621 $as_echo "$ac_cv_var_tzname" >&6; }
8622 if test $ac_cv_var_tzname = yes; then
8624 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8630 ac_fn_c_check_member
"$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8631 #include <sys/types.h>
8633 #include <sys/stat.h>
8635 if test "x$ac_cv_member_struct_stat_st_dev" = xyes
; then :
8637 cat >>confdefs.h
<<_ACEOF
8638 #define HAVE_STRUCT_STAT_ST_DEV 1
8643 ac_fn_c_check_member
"$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8644 #include <sys/types.h>
8646 #include <sys/stat.h>
8648 if test "x$ac_cv_member_struct_stat_st_ino" = xyes
; then :
8650 cat >>confdefs.h
<<_ACEOF
8651 #define HAVE_STRUCT_STAT_ST_INO 1
8656 ac_fn_c_check_member
"$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8657 #include <sys/types.h>
8659 #include <sys/stat.h>
8661 if test "x$ac_cv_member_struct_stat_st_mode" = xyes
; then :
8663 cat >>confdefs.h
<<_ACEOF
8664 #define HAVE_STRUCT_STAT_ST_MODE 1
8669 ac_fn_c_check_member
"$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8670 #include <sys/types.h>
8672 #include <sys/stat.h>
8674 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes
; then :
8676 cat >>confdefs.h
<<_ACEOF
8677 #define HAVE_STRUCT_STAT_ST_NLINK 1
8682 ac_fn_c_check_member
"$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8683 #include <sys/types.h>
8685 #include <sys/stat.h>
8687 if test "x$ac_cv_member_struct_stat_st_uid" = xyes
; then :
8689 cat >>confdefs.h
<<_ACEOF
8690 #define HAVE_STRUCT_STAT_ST_UID 1
8695 ac_fn_c_check_member
"$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8696 #include <sys/types.h>
8698 #include <sys/stat.h>
8700 if test "x$ac_cv_member_struct_stat_st_gid" = xyes
; then :
8702 cat >>confdefs.h
<<_ACEOF
8703 #define HAVE_STRUCT_STAT_ST_GID 1
8708 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8709 #include <sys/types.h>
8711 #include <sys/stat.h>
8713 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
8715 cat >>confdefs.h
<<_ACEOF
8716 #define HAVE_STRUCT_STAT_ST_RDEV 1
8721 ac_fn_c_check_member
"$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8722 #include <sys/types.h>
8724 #include <sys/stat.h>
8726 if test "x$ac_cv_member_struct_stat_st_size" = xyes
; then :
8728 cat >>confdefs.h
<<_ACEOF
8729 #define HAVE_STRUCT_STAT_ST_SIZE 1
8734 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8735 #include <sys/types.h>
8737 #include <sys/stat.h>
8739 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
8741 cat >>confdefs.h
<<_ACEOF
8742 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8747 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8748 #include <sys/types.h>
8750 #include <sys/stat.h>
8752 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8754 cat >>confdefs.h
<<_ACEOF
8755 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8760 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8761 #include <sys/types.h>
8763 #include <sys/stat.h>
8765 if test "x$ac_cv_member_struct_stat_st_atime" = xyes
; then :
8767 cat >>confdefs.h
<<_ACEOF
8768 #define HAVE_STRUCT_STAT_ST_ATIME 1
8773 ac_fn_c_check_member
"$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8774 #include <sys/types.h>
8776 #include <sys/stat.h>
8778 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes
; then :
8780 cat >>confdefs.h
<<_ACEOF
8781 #define HAVE_STRUCT_STAT_ST_MTIME 1
8786 ac_fn_c_check_member
"$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8787 #include <sys/types.h>
8789 #include <sys/stat.h>
8791 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes
; then :
8793 cat >>confdefs.h
<<_ACEOF
8794 #define HAVE_STRUCT_STAT_ST_CTIME 1
8801 ac_fn_c_check_type
"$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8802 if test "x$ac_cv_type___int128" = xyes
; then :
8804 cat >>confdefs.h
<<_ACEOF
8805 #define HAVE___INT128 1
8811 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8812 #include <sys/socket.h>
8815 if test "x$ac_cv_type_socklen_t" = xyes
; then :
8817 cat >>confdefs.h
<<_ACEOF
8818 #define HAVE_SOCKLEN_T 1
8825 # The cast to long int works around a bug in the HP C Compiler
8826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8828 # This bug is HP SR number 8606223364.
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8830 $as_echo_n "checking size of void *... " >&6; }
8831 if ${ac_cv_sizeof_void_p+:} false
; then :
8832 $as_echo_n "(cached) " >&6
8834 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8837 if test "$ac_cv_type_void_p" = yes; then
8838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8840 as_fn_error
77 "cannot compute sizeof (void *)
8841 See \`config.log' for more details" "$LINENO" 5; }
8843 ac_cv_sizeof_void_p
=0
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8849 $as_echo "$ac_cv_sizeof_void_p" >&6; }
8853 cat >>confdefs.h
<<_ACEOF
8854 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
8860 $as_echo_n "checking for struct statfs... " >&6; }
8861 if ${sim_cv_struct_statfs+:} false
; then :
8862 $as_echo_n "(cached) " >&6
8864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8867 #include <sys/types.h>
8868 #ifdef HAVE_SYS_PARAM_H
8869 #include <sys/param.h>
8871 #ifdef HAVE_SYS_MOUNT_H
8872 #include <sys/mount.h>
8874 #ifdef HAVE_SYS_VFS_H
8875 #include <sys/vfs.h>
8877 #ifdef HAVE_SYS_STATFS_H
8878 #include <sys/statfs.h>
8890 if ac_fn_c_try_compile
"$LINENO"; then :
8891 sim_cv_struct_statfs
="yes"
8893 sim_cv_struct_statfs
="no"
8895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_struct_statfs" >&5
8898 $as_echo "$sim_cv_struct_statfs" >&6; }
8899 if test x
"sim_cv_struct_statfs" = x
"yes"; then :
8901 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
8907 $as_echo_n "checking if union semun defined... " >&6; }
8908 if ${sim_cv_has_union_semun+:} false
; then :
8909 $as_echo_n "(cached) " >&6
8911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8914 #include <sys/types.h>
8915 #include <sys/ipc.h>
8916 #include <sys/sem.h>
8927 if ac_fn_c_try_compile
"$LINENO"; then :
8928 sim_cv_has_union_semun
="yes"
8930 sim_cv_has_union_semun
="no"
8932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_has_union_semun" >&5
8935 $as_echo "$sim_cv_has_union_semun" >&6; }
8936 if test x
"$sim_cv_has_union_semun" = x
"yes"; then :
8938 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
8944 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
8945 if ${sim_cv_sysv_sem+:} false
; then :
8946 $as_echo_n "(cached) " >&6
8948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8951 #include <sys/types.h>
8952 #include <sys/ipc.h>
8953 #include <sys/sem.h>
8954 #ifndef HAVE_UNION_SEMUN
8957 struct semid_ds *buf;
8966 int id = semget(IPC_PRIVATE, 1, IPC_CREAT|0400);
8969 arg.val = 0; /* avoid implicit type cast to union */
8970 if (semctl(id, 0, IPC_RMID, arg) == -1)
8977 if ac_fn_c_try_compile
"$LINENO"; then :
8978 sim_cv_sysv_sem
="yes"
8980 sim_cv_sysv_sem
="no"
8982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_sem" >&5
8985 $as_echo "$sim_cv_sysv_sem" >&6; }
8986 if test x
"$sim_cv_sysv_sem" = x
"yes"; then :
8988 $as_echo "#define HAVE_SYSV_SEM 1" >>confdefs.h
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
8994 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
8995 if ${sim_cv_sysv_shm+:} false
; then :
8996 $as_echo_n "(cached) " >&6
8998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9001 #include <sys/types.h>
9002 #include <sys/ipc.h>
9003 #include <sys/shm.h>
9008 int id = shmget(IPC_PRIVATE, 1, IPC_CREAT|0400);
9011 if (shmctl(id, IPC_RMID, 0) == -1)
9018 if ac_fn_c_try_compile
"$LINENO"; then :
9019 sim_cv_sysv_shm
="yes"
9021 sim_cv_sysv_shm
="no"
9023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_shm" >&5
9026 $as_echo "$sim_cv_sysv_shm" >&6; }
9027 if test x
"$sim_cv_sysv_shm" = x
"yes"; then :
9029 $as_echo "#define HAVE_SYSV_SHM 1" >>confdefs.h
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
9035 $as_echo_n "checking for struct termios... " >&6; }
9036 if ${sim_cv_termios_struct+:} false
; then :
9037 $as_echo_n "(cached) " >&6
9039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9042 #include <sys/types.h>
9043 #include <sys/termios.h>
9048 static struct termios x;
9059 if ac_fn_c_try_compile
"$LINENO"; then :
9060 sim_cv_termios_struct
="yes"
9062 sim_cv_termios_struct
="no"
9064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5
9067 $as_echo "$sim_cv_termios_struct" >&6; }
9068 if test $sim_cv_termios_struct = yes; then
9070 $as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h
9074 if test "$sim_cv_termios_struct" = "yes"; then
9075 if ${sim_cv_termios_cline+:} false
; then :
9076 $as_echo_n "(cached) " >&6
9079 ac_fn_c_check_member
"$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
9080 #include <sys/types.h>
9081 #include <sys/termios.h>
9084 if test "x$ac_cv_member_struct_termios_c_line" = xyes
; then :
9085 sim_cv_termios_cline
="yes"
9087 sim_cv_termios_cline
="no"
9090 if test $sim_cv_termios_cline = yes; then
9092 $as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h
9096 sim_cv_termios_cline
=no
9099 if test "$sim_cv_termios_struct" != "yes"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
9101 $as_echo_n "checking for struct termio... " >&6; }
9102 if ${sim_cv_termio_struct+:} false
; then :
9103 $as_echo_n "(cached) " >&6
9105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9108 #include <sys/types.h>
9109 #include <sys/termio.h>
9114 static struct termio x;
9125 if ac_fn_c_try_compile
"$LINENO"; then :
9126 sim_cv_termio_struct
="yes"
9128 sim_cv_termio_struct
="no"
9130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5
9133 $as_echo "$sim_cv_termio_struct" >&6; }
9134 if test $sim_cv_termio_struct = yes; then
9136 $as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h
9140 sim_cv_termio_struct
=no
9143 if test "$sim_cv_termio_struct" = "yes"; then
9144 if ${sim_cv_termio_cline+:} false
; then :
9145 $as_echo_n "(cached) " >&6
9148 ac_fn_c_check_member
"$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
9149 #include <sys/types.h>
9150 #include <sys/termio.h>
9153 if test "x$ac_cv_member_struct_termio_c_line" = xyes
; then :
9154 sim_cv_termio_cline
="yes"
9156 sim_cv_termio_cline
="no"
9159 if test $sim_cv_termio_cline = yes; then
9161 $as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h
9165 sim_cv_termio_cline
=no
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
9169 $as_echo_n "checking type of array argument to getgroups... " >&6; }
9170 if ${ac_cv_type_getgroups+:} false
; then :
9171 $as_echo_n "(cached) " >&6
9173 if test "$cross_compiling" = yes; then :
9174 ac_cv_type_getgroups
=cross
9176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 /* Thanks to Mike Rendell for this test. */
9179 $ac_includes_default
9182 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9189 union { gid_t gval; long int lval; } val;
9192 for (i = 0; i < NGID; i++)
9193 gidset[i] = val.gval;
9194 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9196 /* Exit non-zero if getgroups seems to require an array of ints. This
9197 happens when gid_t is short int but getgroups modifies an array
9199 return n > 0 && gidset[n] != val.gval;
9202 if ac_fn_c_try_run
"$LINENO"; then :
9203 ac_cv_type_getgroups
=gid_t
9205 ac_cv_type_getgroups
=int
9207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9211 if test $ac_cv_type_getgroups = cross
; then
9212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9218 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
9219 ac_cv_type_getgroups
=gid_t
9221 ac_cv_type_getgroups
=int
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
9228 $as_echo "$ac_cv_type_getgroups" >&6; }
9230 cat >>confdefs.h
<<_ACEOF
9231 #define GETGROUPS_T $ac_cv_type_getgroups
9235 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9236 if test "x$ac_cv_type_mode_t" = xyes
; then :
9240 cat >>confdefs.h
<<_ACEOF
9246 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9247 if test "x$ac_cv_type_off_t" = xyes
; then :
9251 cat >>confdefs.h
<<_ACEOF
9252 #define off_t long int
9257 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9258 if test "x$ac_cv_type_pid_t" = xyes
; then :
9262 cat >>confdefs.h
<<_ACEOF
9268 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9269 if test "x$ac_cv_type_size_t" = xyes
; then :
9273 cat >>confdefs.h
<<_ACEOF
9274 #define size_t unsigned int
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9280 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9281 if ${ac_cv_type_uid_t+:} false
; then :
9282 $as_echo_n "(cached) " >&6
9284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 #include <sys/types.h>
9289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9290 $EGREP "uid_t" >/dev
/null
2>&1; then :
9291 ac_cv_type_uid_t
=yes
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9299 $as_echo "$ac_cv_type_uid_t" >&6; }
9300 if test $ac_cv_type_uid_t = no
; then
9302 $as_echo "#define uid_t int" >>confdefs.h
9305 $as_echo "#define gid_t int" >>confdefs.h
9324 # Check whether --enable-shared was given.
9325 if test "${enable_shared+set}" = set; then :
9326 enableval
=$enable_shared; p
=${PACKAGE-default}
9328 yes) enable_shared
=yes ;;
9329 no
) enable_shared
=no
;;
9332 # Look at the argument we got. We use all the common list separators.
9333 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9334 for pkg
in $enableval; do
9336 if test "X$pkg" = "X$p"; then
9355 # Check whether --enable-static was given.
9356 if test "${enable_static+set}" = set; then :
9357 enableval
=$enable_static; p
=${PACKAGE-default}
9359 yes) enable_static
=yes ;;
9360 no
) enable_static
=no
;;
9363 # Look at the argument we got. We use all the common list separators.
9364 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9365 for pkg
in $enableval; do
9367 if test "X$pkg" = "X$p"; then
9387 # Check whether --with-pic was given.
9388 if test "${with_pic+set}" = set; then :
9389 withval
=$with_pic; pic_mode
="$withval"
9395 test -z "$pic_mode" && pic_mode
=default
9403 # Check whether --enable-fast-install was given.
9404 if test "${enable_fast_install+set}" = set; then :
9405 enableval
=$enable_fast_install; p
=${PACKAGE-default}
9407 yes) enable_fast_install
=yes ;;
9408 no
) enable_fast_install
=no
;;
9410 enable_fast_install
=no
9411 # Look at the argument we got. We use all the common list separators.
9412 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9413 for pkg
in $enableval; do
9415 if test "X$pkg" = "X$p"; then
9416 enable_fast_install
=yes
9423 enable_fast_install
=yes
9436 # This can be used to rebuild libtool when needed
9437 LIBTOOL_DEPS
="$ltmain"
9439 # Always use our own libtool.
9440 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
9467 test -z "$LN_S" && LN_S
="ln -s"
9482 if test -n "${ZSH_VERSION+set}" ; then
9483 setopt NO_GLOB_SUBST
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9487 $as_echo_n "checking for objdir... " >&6; }
9488 if ${lt_cv_objdir+:} false
; then :
9489 $as_echo_n "(cached) " >&6
9491 rm -f .libs
2>/dev
/null
9492 mkdir .libs
2>/dev
/null
9493 if test -d .libs
; then
9496 # MS-DOS does not allow filenames that begin with a dot.
9499 rmdir .libs
2>/dev
/null
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9502 $as_echo "$lt_cv_objdir" >&6; }
9503 objdir
=$lt_cv_objdir
9509 cat >>confdefs.h
<<_ACEOF
9510 #define LT_OBJDIR "$lt_cv_objdir/"
9518 # AIX sometimes has problems with the GCC collect2 program. For some
9519 # reason, if we set the COLLECT_NAMES environment variable, the problems
9520 # vanish in a puff of smoke.
9521 if test "X${COLLECT_NAMES+set}" != Xset
; then
9523 export COLLECT_NAMES
9530 can_build_shared
=yes
9532 # All known linkers require a `.a' archive for static linking (except MSVC,
9533 # which needs '.lib').
9536 with_gnu_ld
="$lt_cv_prog_gnu_ld"
9539 old_CFLAGS
="$CFLAGS"
9541 # Set sane defaults for various variables
9542 test -z "$CC" && CC
=cc
9543 test -z "$LTCC" && LTCC
=$CC
9544 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
9545 test -z "$LD" && LD
=ld
9546 test -z "$ac_objext" && ac_objext
=o
9548 for cc_temp
in $compiler""; do
9550 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
9551 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
9556 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9559 # Only perform the check for file, if the check method requires it
9560 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
9561 case $deplibs_check_method in
9563 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9565 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9566 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9567 $as_echo_n "(cached) " >&6
9571 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9574 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9575 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9576 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9577 for ac_dir
in $ac_dummy; do
9579 test -z "$ac_dir" && ac_dir
=.
9580 if test -f $ac_dir/${ac_tool_prefix}file; then
9581 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
9582 if test -n "$file_magic_test_file"; then
9583 case $deplibs_check_method in
9585 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9586 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9587 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9588 $EGREP "$file_magic_regex" > /dev
/null
; then
9593 *** Warning: the command libtool uses to detect shared libraries,
9594 *** $file_magic_cmd, produces output that libtool cannot recognize.
9595 *** The result is that libtool may fail to recognize shared libraries
9596 *** as such. This will affect the creation of libtool libraries that
9597 *** depend on shared libraries, but programs linked with such libtool
9598 *** libraries will work regardless of this problem. Nevertheless, you
9599 *** may want to report the problem to your system manager and/or to
9600 *** bug-libtool@gnu.org
9610 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9615 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9616 if test -n "$MAGIC_CMD"; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9618 $as_echo "$MAGIC_CMD" >&6; }
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621 $as_echo "no" >&6; }
9628 if test -z "$lt_cv_path_MAGIC_CMD"; then
9629 if test -n "$ac_tool_prefix"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9631 $as_echo_n "checking for file... " >&6; }
9632 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9633 $as_echo_n "(cached) " >&6
9637 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9640 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9641 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9642 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9643 for ac_dir
in $ac_dummy; do
9645 test -z "$ac_dir" && ac_dir
=.
9646 if test -f $ac_dir/file; then
9647 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
9648 if test -n "$file_magic_test_file"; then
9649 case $deplibs_check_method in
9651 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9652 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9653 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9654 $EGREP "$file_magic_regex" > /dev
/null
; then
9659 *** Warning: the command libtool uses to detect shared libraries,
9660 *** $file_magic_cmd, produces output that libtool cannot recognize.
9661 *** The result is that libtool may fail to recognize shared libraries
9662 *** as such. This will affect the creation of libtool libraries that
9663 *** depend on shared libraries, but programs linked with such libtool
9664 *** libraries will work regardless of this problem. Nevertheless, you
9665 *** may want to report the problem to your system manager and/or to
9666 *** bug-libtool@gnu.org
9676 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9681 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9682 if test -n "$MAGIC_CMD"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9684 $as_echo "$MAGIC_CMD" >&6; }
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9700 # Use C for the default configuration in the libtool script
9704 ac_cpp
='$CPP $CPPFLAGS'
9705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9710 # Source file extension for C test sources.
9713 # Object file extension for compiled C test sources.
9717 # Code to be used in simple compile tests
9718 lt_simple_compile_test_code
="int some_variable = 0;"
9720 # Code to be used in simple link tests
9721 lt_simple_link_test_code
='int main(){return(0);}'
9729 # If no C compiler was specified, use CC.
9732 # If no C compiler flags were specified, use CFLAGS.
9733 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
9735 # Allow CC to be a program name with arguments.
9738 # Save the default compiler, since it gets overwritten when the other
9739 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9740 compiler_DEFAULT
=$CC
9742 # save warnings/boilerplate of simple test code
9743 ac_outfile
=conftest.
$ac_objext
9744 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
9745 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9746 _lt_compiler_boilerplate
=`cat conftest.err`
9749 ac_outfile
=conftest.
$ac_objext
9750 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
9751 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9752 _lt_linker_boilerplate
=`cat conftest.err`
9757 ## There is no encapsulation within the following macros, do not change
9758 ## the running order or otherwise move them around unless you know exactly
9759 ## what you are doing...
9760 if test -n "$compiler"; then
9762 lt_prog_compiler_no_builtin_flag
=
9764 if test "$GCC" = yes; then
9765 case $cc_basename in
9767 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
9769 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9773 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9774 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
9775 $as_echo_n "(cached) " >&6
9777 lt_cv_prog_compiler_rtti_exceptions
=no
9778 ac_outfile
=conftest.
$ac_objext
9779 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9780 lt_compiler_flag
="-fno-rtti -fno-exceptions"
9781 # Insert the option either (1) after the last *FLAGS variable, or
9782 # (2) before a word containing "conftest.", or (3) at the end.
9783 # Note that $ac_compile itself does not contain backslashes and begins
9784 # with a dollar sign (not a hyphen), so the echo should work correctly.
9785 # The option is referenced via a variable to avoid confusing sed.
9786 lt_compile
=`echo "$ac_compile" | $SED \
9787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9789 -e 's:$: $lt_compiler_flag:'`
9790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9791 (eval "$lt_compile" 2>conftest.err
)
9793 cat conftest.err
>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 if (exit $ac_status) && test -s "$ac_outfile"; then
9796 # The compiler can only warn and ignore the option if not recognized
9797 # So say no if there are warnings other than the usual output.
9798 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9799 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9800 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9801 lt_cv_prog_compiler_rtti_exceptions
=yes
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9808 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9810 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
9811 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9823 lt_prog_compiler_wl
=
9824 lt_prog_compiler_pic
=
9825 lt_prog_compiler_static
=
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9828 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9830 if test "$GCC" = yes; then
9831 lt_prog_compiler_wl
='-Wl,'
9832 lt_prog_compiler_static
='-static'
9836 # All AIX code is PIC.
9837 if test "$host_cpu" = ia64
; then
9838 # AIX 5 now supports IA64 processor
9839 lt_prog_compiler_static
='-Bstatic'
9841 lt_prog_compiler_pic
='-fPIC'
9847 # see comment about AmigaOS4 .so support
9848 lt_prog_compiler_pic
='-fPIC'
9851 # FIXME: we need at least 68020 code to build shared libraries, but
9852 # adding the `-m68020' flag to GCC prevents building anything better,
9854 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9859 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9860 # PIC is the default for these OSes.
9863 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9864 # This hack is so that the source file can tell whether it is being
9865 # built for inclusion in a dll (and should export symbols for example).
9866 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9867 # (--disable-auto-import) libraries
9868 lt_prog_compiler_pic
='-DDLL_EXPORT'
9871 darwin
* | rhapsody
*)
9872 # PIC is the default on this platform
9873 # Common symbols not allowed in MH_DYLIB files
9874 lt_prog_compiler_pic
='-fno-common'
9878 # PIC is the default for Haiku.
9879 # The "-static" flag exists, but is broken.
9880 lt_prog_compiler_static
=
9884 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9885 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9886 # sets the default TLS model and affects inlining.
9892 lt_prog_compiler_pic
='-fPIC'
9898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9899 # Instead, we relocate shared libraries at runtime.
9903 # Just because we use GCC doesn't mean we suddenly get shared libraries
9904 # on systems that don't support them.
9905 lt_prog_compiler_can_build_shared
=no
9910 # QNX uses GNU C++, but need to define -shared option too, otherwise
9912 lt_prog_compiler_pic
='-fPIC -shared'
9916 if test -d /usr
/nec
; then
9917 lt_prog_compiler_pic
=-Kconform_pic
9922 lt_prog_compiler_pic
='-fPIC'
9926 case $cc_basename in
9927 nvcc
*) # Cuda Compiler Driver 2.2
9928 lt_prog_compiler_wl
='-Xlinker '
9929 lt_prog_compiler_pic
='-Xcompiler -fPIC'
9933 # PORTME Check for flag to pass linker flags through the system compiler.
9936 lt_prog_compiler_wl
='-Wl,'
9937 if test "$host_cpu" = ia64
; then
9938 # AIX 5 now supports IA64 processor
9939 lt_prog_compiler_static
='-Bstatic'
9941 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9945 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9946 # This hack is so that the source file can tell whether it is being
9947 # built for inclusion in a dll (and should export symbols for example).
9948 lt_prog_compiler_pic
='-DDLL_EXPORT'
9951 hpux9
* | hpux10
* | hpux11
*)
9952 lt_prog_compiler_wl
='-Wl,'
9953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9960 lt_prog_compiler_pic
='+Z'
9963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9964 lt_prog_compiler_static
='${wl}-a ${wl}archive'
9967 irix5
* | irix6
* | nonstopux
*)
9968 lt_prog_compiler_wl
='-Wl,'
9969 # PIC (with -KPIC) is the default.
9970 lt_prog_compiler_static
='-non_shared'
9973 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9974 case $cc_basename in
9975 # old Intel for x86_64 which still supported -KPIC.
9977 lt_prog_compiler_wl
='-Wl,'
9978 lt_prog_compiler_pic
='-KPIC'
9979 lt_prog_compiler_static
='-static'
9981 # icc used to be incompatible with GCC.
9982 # ICC 10 doesn't accept -KPIC any more.
9984 lt_prog_compiler_wl
='-Wl,'
9985 lt_prog_compiler_pic
='-fPIC'
9986 lt_prog_compiler_static
='-static'
9988 # Lahey Fortran 8.1.
9990 lt_prog_compiler_wl
='-Wl,'
9991 lt_prog_compiler_pic
='--shared'
9992 lt_prog_compiler_static
='--static'
9994 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9995 # Portland Group compilers (*not* the Pentium gcc compiler,
9996 # which looks to be a dead project)
9997 lt_prog_compiler_wl
='-Wl,'
9998 lt_prog_compiler_pic
='-fpic'
9999 lt_prog_compiler_static
='-Bstatic'
10002 lt_prog_compiler_wl
='-Wl,'
10003 # All Alpha code is PIC.
10004 lt_prog_compiler_static
='-non_shared'
10006 xl
* | bgxl
* | bgf
* | mpixl
*)
10007 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10008 lt_prog_compiler_wl
='-Wl,'
10009 lt_prog_compiler_pic
='-qpic'
10010 lt_prog_compiler_static
='-qstaticlink'
10013 case `$CC -V 2>&1 | sed 5q` in
10014 *Sun\ F
* |
*Sun
*Fortran
*)
10015 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10016 lt_prog_compiler_pic
='-KPIC'
10017 lt_prog_compiler_static
='-Bstatic'
10018 lt_prog_compiler_wl
=''
10022 lt_prog_compiler_pic
='-KPIC'
10023 lt_prog_compiler_static
='-Bstatic'
10024 lt_prog_compiler_wl
='-Wl,'
10032 lt_prog_compiler_pic
='-KPIC'
10033 lt_prog_compiler_static
='-Bstatic'
10037 # QNX uses GNU C++, but need to define -shared option too, otherwise
10038 # it will coredump.
10039 lt_prog_compiler_pic
='-fPIC -shared'
10042 osf3
* | osf4
* | osf5
*)
10043 lt_prog_compiler_wl
='-Wl,'
10044 # All OSF/1 code is PIC.
10045 lt_prog_compiler_static
='-non_shared'
10049 lt_prog_compiler_static
='-non_shared'
10053 lt_prog_compiler_pic
='-KPIC'
10054 lt_prog_compiler_static
='-Bstatic'
10055 case $cc_basename in
10056 f77
* | f90
* | f95
*)
10057 lt_prog_compiler_wl
='-Qoption ld ';;
10059 lt_prog_compiler_wl
='-Wl,';;
10064 lt_prog_compiler_wl
='-Qoption ld '
10065 lt_prog_compiler_pic
='-PIC'
10066 lt_prog_compiler_static
='-Bstatic'
10069 sysv4 | sysv4.2uw2
* | sysv4.3
*)
10070 lt_prog_compiler_wl
='-Wl,'
10071 lt_prog_compiler_pic
='-KPIC'
10072 lt_prog_compiler_static
='-Bstatic'
10076 if test -d /usr
/nec
;then
10077 lt_prog_compiler_pic
='-Kconform_pic'
10078 lt_prog_compiler_static
='-Bstatic'
10082 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
10083 lt_prog_compiler_wl
='-Wl,'
10084 lt_prog_compiler_pic
='-KPIC'
10085 lt_prog_compiler_static
='-Bstatic'
10089 lt_prog_compiler_wl
='-Wl,'
10090 lt_prog_compiler_can_build_shared
=no
10094 lt_prog_compiler_pic
='-pic'
10095 lt_prog_compiler_static
='-Bstatic'
10099 lt_prog_compiler_can_build_shared
=no
10105 # For platforms which do not support PIC, -DPIC is meaningless:
10107 lt_prog_compiler_pic
=
10110 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10114 $as_echo "$lt_prog_compiler_pic" >&6; }
10122 # Check to make sure the PIC flag actually works.
10124 if test -n "$lt_prog_compiler_pic"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10126 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10127 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
10128 $as_echo_n "(cached) " >&6
10130 lt_cv_prog_compiler_pic_works
=no
10131 ac_outfile
=conftest.
$ac_objext
10132 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10133 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
10134 # Insert the option either (1) after the last *FLAGS variable, or
10135 # (2) before a word containing "conftest.", or (3) at the end.
10136 # Note that $ac_compile itself does not contain backslashes and begins
10137 # with a dollar sign (not a hyphen), so the echo should work correctly.
10138 # The option is referenced via a variable to avoid confusing sed.
10139 lt_compile
=`echo "$ac_compile" | $SED \
10140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10142 -e 's:$: $lt_compiler_flag:'`
10143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10144 (eval "$lt_compile" 2>conftest.err
)
10146 cat conftest.err
>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 if (exit $ac_status) && test -s "$ac_outfile"; then
10149 # The compiler can only warn and ignore the option if not recognized
10150 # So say no if there are warnings other than the usual output.
10151 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
10152 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10153 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
10154 lt_cv_prog_compiler_pic_works
=yes
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10161 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10163 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
10164 case $lt_prog_compiler_pic in
10166 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
10169 lt_prog_compiler_pic
=
10170 lt_prog_compiler_can_build_shared
=no
10181 # Check to make sure the static flag actually works.
10183 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10185 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10186 if ${lt_cv_prog_compiler_static_works+:} false
; then :
10187 $as_echo_n "(cached) " >&6
10189 lt_cv_prog_compiler_static_works
=no
10190 save_LDFLAGS
="$LDFLAGS"
10191 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
10192 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10193 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10194 # The linker can only warn and ignore the option if not recognized
10195 # So say no if there are warnings
10196 if test -s conftest.err
; then
10197 # Append any errors to the config.log.
10198 cat conftest.err
1>&5
10199 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10200 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10201 if diff conftest.exp conftest.er2
>/dev
/null
; then
10202 lt_cv_prog_compiler_static_works
=yes
10205 lt_cv_prog_compiler_static_works
=yes
10209 LDFLAGS
="$save_LDFLAGS"
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10213 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10215 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
10218 lt_prog_compiler_static
=
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10228 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10229 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10230 $as_echo_n "(cached) " >&6
10232 lt_cv_prog_compiler_c_o
=no
10233 $RM -r conftest
2>/dev
/null
10237 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10239 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10240 # Insert the option either (1) after the last *FLAGS variable, or
10241 # (2) before a word containing "conftest.", or (3) at the end.
10242 # Note that $ac_compile itself does not contain backslashes and begins
10243 # with a dollar sign (not a hyphen), so the echo should work correctly.
10244 lt_compile
=`echo "$ac_compile" | $SED \
10245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10247 -e 's:$: $lt_compiler_flag:'`
10248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10249 (eval "$lt_compile" 2>out
/conftest.err
)
10251 cat out
/conftest.err
>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10255 # The compiler can only warn and ignore the option if not recognized
10256 # So say no if there are warnings
10257 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10258 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10259 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10260 lt_cv_prog_compiler_c_o
=yes
10265 # SGI C++ compiler will create directory out/ii_files/ for
10266 # template instantiation
10267 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10268 $RM out
/* && rmdir out
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10275 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10283 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10284 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10285 $as_echo_n "(cached) " >&6
10287 lt_cv_prog_compiler_c_o
=no
10288 $RM -r conftest
2>/dev
/null
10292 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10294 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10295 # Insert the option either (1) after the last *FLAGS variable, or
10296 # (2) before a word containing "conftest.", or (3) at the end.
10297 # Note that $ac_compile itself does not contain backslashes and begins
10298 # with a dollar sign (not a hyphen), so the echo should work correctly.
10299 lt_compile
=`echo "$ac_compile" | $SED \
10300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10302 -e 's:$: $lt_compiler_flag:'`
10303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10304 (eval "$lt_compile" 2>out
/conftest.err
)
10306 cat out
/conftest.err
>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10310 # The compiler can only warn and ignore the option if not recognized
10311 # So say no if there are warnings
10312 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10313 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10314 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10315 lt_cv_prog_compiler_c_o
=yes
10320 # SGI C++ compiler will create directory out/ii_files/ for
10321 # template instantiation
10322 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10323 $RM out
/* && rmdir out
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10330 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10335 hard_links
="nottested"
10336 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
10337 # do not overwrite the value of need_locks provided by the user
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10339 $as_echo_n "checking if we can lock with hard links... " >&6; }
10342 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10344 ln conftest.a conftest.b
2>&5 || hard_links
=no
10345 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10347 $as_echo "$hard_links" >&6; }
10348 if test "$hard_links" = no
; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10350 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10363 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10366 allow_undefined_flag
=
10367 always_export_symbols
=no
10369 archive_expsym_cmds
=
10370 compiler_needs_object
=no
10371 enable_shared_with_static_runtimes
=no
10372 export_dynamic_flag_spec
=
10373 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10374 hardcode_automatic
=no
10376 hardcode_direct_absolute
=no
10377 hardcode_libdir_flag_spec
=
10378 hardcode_libdir_flag_spec_ld
=
10379 hardcode_libdir_separator
=
10380 hardcode_minus_L
=no
10381 hardcode_shlibpath_var
=unsupported
10383 link_all_deplibs
=unknown
10385 module_expsym_cmds
=
10386 old_archive_from_new_cmds
=
10387 old_archive_from_expsyms_cmds
=
10388 thread_safe_flag_spec
=
10389 whole_archive_flag_spec
=
10390 # include_expsyms should be a list of space-separated symbols to be *always*
10391 # included in the symbol list
10393 # exclude_expsyms can be an extended regexp of symbols to exclude
10394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10396 # as well as any symbol that contains `d'.
10397 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10399 # platforms (ab)use it in PIC code, but their linkers get confused if
10400 # the symbol is explicitly referenced. Since portable code cannot
10401 # rely on this symbol name, it's probably fine to never include it in
10402 # preloaded symbol tables.
10403 # Exclude shared library initialization/finalization symbols.
10404 extract_expsyms_cmds
=
10407 cygwin
* | mingw
* | pw32
* | cegcc
*)
10408 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10409 # When not using gcc, we currently assume that we are using
10410 # Microsoft Visual C++.
10411 if test "$GCC" != yes; then
10416 # we just hope/assume this is gcc and not c89 (= MSVC++)
10426 # On some targets, GNU ld is compatible enough with the native linker
10427 # that we're better off using the native interface for both.
10428 lt_use_gnu_ld_interface
=no
10429 if test "$with_gnu_ld" = yes; then
10432 # The AIX port of GNU ld has always aspired to compatibility
10433 # with the native linker. However, as the warning in the GNU ld
10434 # block says, versions before 2.19.5* couldn't really create working
10435 # shared libraries, regardless of the interface used.
10436 case `$LD -v 2>&1` in
10437 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
10438 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
10439 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
10441 lt_use_gnu_ld_interface
=yes
10446 lt_use_gnu_ld_interface
=yes
10451 if test "$lt_use_gnu_ld_interface" = yes; then
10452 # If archive_cmds runs LD, not CC, wlarc should be empty
10455 # Set some defaults for GNU ld with shared library support. These
10456 # are reset later if shared libraries are not supported. Putting them
10457 # here allows them to be overridden if necessary.
10458 runpath_var
=LD_RUN_PATH
10459 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10460 export_dynamic_flag_spec
='${wl}--export-dynamic'
10461 # ancient GNU ld didn't support --whole-archive et. al.
10462 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
10463 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10465 whole_archive_flag_spec
=
10467 supports_anon_versioning
=no
10468 case `$LD -v 2>&1` in
10469 *GNU\ gold
*) supports_anon_versioning
=yes ;;
10470 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
10471 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
10472 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
10473 *\
2.11.
*) ;; # other 2.11 versions
10474 *) supports_anon_versioning
=yes ;;
10477 # See if GNU ld supports shared libraries.
10480 # On AIX/PPC, the GNU linker is very broken
10481 if test "$host_cpu" != ia64
; then
10485 *** Warning: the GNU linker, at least up to release 2.19, is reported
10486 *** to be unable to reliably create shared libraries on AIX.
10487 *** Therefore, libtool is disabling shared libraries support. If you
10488 *** really care for shared libraries, you may want to install binutils
10489 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10490 *** You will then need to restart the configuration process.
10499 # see comment about AmigaOS4 .so support
10500 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10501 archive_expsym_cmds
=''
10504 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)'
10505 hardcode_libdir_flag_spec
='-L$libdir'
10506 hardcode_minus_L
=yes
10512 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10513 allow_undefined_flag
=unsupported
10514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10515 # support --undefined. This deserves some investigation. FIXME
10516 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10522 cygwin
* | mingw
* | pw32
* | cegcc
*)
10523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10524 # as there is no search path for DLLs.
10525 hardcode_libdir_flag_spec
='-L$libdir'
10526 export_dynamic_flag_spec
='${wl}--export-all-symbols'
10527 allow_undefined_flag
=unsupported
10528 always_export_symbols
=no
10529 enable_shared_with_static_runtimes
=yes
10530 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10532 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
10533 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10534 # If the export-symbols file already is a .def file (1st line
10535 # is EXPORTS), use it as is; otherwise, prepend...
10536 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10537 cp $export_symbols $output_objdir/$soname.def;
10539 echo EXPORTS > $output_objdir/$soname.def;
10540 cat $export_symbols >> $output_objdir/$soname.def;
10542 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10549 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10550 link_all_deplibs
=yes
10555 hardcode_shlibpath_var
=no
10556 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10557 export_dynamic_flag_spec
='${wl}-E'
10558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10559 # Instead, shared libraries are loaded at an image base (0x10000000 by
10560 # default) and relocated if they conflict, which is a slow very memory
10561 # consuming and fragmenting process. To avoid this, we pick a random,
10562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10564 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10565 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'
10568 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
10570 if test "$host_os" = linux-dietlibc
; then
10571 case $cc_basename in
10572 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
10575 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
10576 && test "$tmp_diet" = no
10578 tmp_addflag
=' $pic_flag'
10579 tmp_sharedflag
='-shared'
10580 case $cc_basename,$host_cpu in
10581 pgcc
*) # Portland Group C compiler
10582 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'
10583 tmp_addflag
=' $pic_flag'
10585 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10586 # Portland Group f77 and f90 compilers
10587 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'
10588 tmp_addflag
=' $pic_flag -Mnomain' ;;
10589 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10590 tmp_addflag
=' -i_dynamic' ;;
10591 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10592 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10593 ifc
* | ifort
*) # Intel Fortran compiler
10594 tmp_addflag
=' -nofor_main' ;;
10595 lf95
*) # Lahey Fortran 8.1
10596 whole_archive_flag_spec
=
10597 tmp_sharedflag
='--shared' ;;
10598 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10599 tmp_sharedflag
='-qmkshrobj'
10601 nvcc
*) # Cuda Compiler Driver 2.2
10602 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'
10603 compiler_needs_object
=yes
10606 case `$CC -V 2>&1 | sed 5q` in
10607 *Sun\ C
*) # Sun C 5.9
10608 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'
10609 compiler_needs_object
=yes
10610 tmp_sharedflag
='-G' ;;
10611 *Sun\ F
*) # Sun Fortran 8.3
10612 tmp_sharedflag
='-G' ;;
10614 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10616 if test "x$supports_anon_versioning" = xyes
; then
10617 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10619 echo "local: *; };" >> $output_objdir/$libname.ver~
10620 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10623 case $cc_basename in
10624 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10625 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10626 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10627 hardcode_libdir_flag_spec
=
10628 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
10629 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10630 if test "x$supports_anon_versioning" = xyes
; then
10631 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10633 echo "local: *; };" >> $output_objdir/$libname.ver~
10634 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10644 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10645 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10648 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10654 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10658 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10659 *** create shared libraries on Solaris systems. Therefore, libtool
10660 *** is disabling shared libraries support. We urge you to upgrade GNU
10661 *** binutils to release 2.9.1 or newer. Another option is to modify
10662 *** your PATH or compiler configuration so that the native linker is
10663 *** used, and then restart.
10666 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10667 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10668 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10674 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10675 case `$LD -v 2>&1` in
10676 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10680 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10681 *** reliably create shared libraries on SCO systems. Therefore, libtool
10682 *** is disabling shared libraries support. We urge you to upgrade GNU
10683 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10684 *** your PATH or compiler configuration so that the native linker is
10685 *** used, and then restart.
10690 # For security reasons, it is highly recommended that you always
10691 # use absolute paths for naming shared libraries, and exclude the
10692 # DT_RUNPATH tag from executables and libraries. But doing so
10693 # requires that you compile everything twice, which is a pain.
10694 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10695 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10696 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10697 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10706 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10708 hardcode_direct
=yes
10709 hardcode_shlibpath_var
=no
10713 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10714 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10715 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10722 if test "$ld_shlibs" = no
; then
10724 hardcode_libdir_flag_spec
=
10725 export_dynamic_flag_spec
=
10726 whole_archive_flag_spec
=
10729 # PORTME fill in a description of your system's linker (not GNU ld)
10732 allow_undefined_flag
=unsupported
10733 always_export_symbols
=yes
10734 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'
10735 # Note: this linker hardcodes the directories in LIBPATH if there
10736 # are no directories specified by -L.
10737 hardcode_minus_L
=yes
10738 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10739 # Neither direct hardcoding nor static linking is supported with a
10741 hardcode_direct
=unsupported
10746 if test "$host_cpu" = ia64
; then
10747 # On IA64, the linker does run time linking by default, so we don't
10748 # have to do anything special.
10749 aix_use_runtimelinking
=no
10750 exp_sym_flag
='-Bexport'
10753 # If we're using GNU nm, then we don't want the "-C" option.
10754 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10755 # Also, AIX nm treats weak defined symbols like other global
10756 # defined symbols, whereas GNU nm marks them as "W".
10757 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10758 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'
10760 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'
10762 aix_use_runtimelinking
=no
10764 # Test if we are trying to use run time linking or normal
10765 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10766 # need to do runtime linking.
10767 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10768 for ld_flag
in $LDFLAGS; do
10769 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10770 aix_use_runtimelinking
=yes
10777 exp_sym_flag
='-bexport'
10778 no_entry_flag
='-bnoentry'
10781 # When large executables or shared objects are built, AIX ld can
10782 # have problems creating the table of contents. If linking a library
10783 # or program results in "error TOC overflow" add -mminimal-toc to
10784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10788 hardcode_direct
=yes
10789 hardcode_direct_absolute
=yes
10790 hardcode_libdir_separator
=':'
10791 link_all_deplibs
=yes
10792 file_list_spec
='${wl}-f,'
10794 if test "$GCC" = yes; then
10795 case $host_os in aix4.
[012]|aix4.
[012].
*)
10796 # We only want to do this on AIX 4.2 and lower, the check
10797 # below for broken collect2 doesn't work under 4.3+
10798 collect2name
=`${CC} -print-prog-name=collect2`
10799 if test -f "$collect2name" &&
10800 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10802 # We have reworked collect2
10805 # We have old collect2
10806 hardcode_direct
=unsupported
10807 # It fails to find uninstalled libraries when the uninstalled
10808 # path is not listed in the libpath. Setting hardcode_minus_L
10809 # to unsupported forces relinking
10810 hardcode_minus_L
=yes
10811 hardcode_libdir_flag_spec
='-L$libdir'
10812 hardcode_libdir_separator
=
10816 shared_flag
='-shared'
10817 if test "$aix_use_runtimelinking" = yes; then
10818 shared_flag
="$shared_flag "'${wl}-G'
10822 if test "$host_cpu" = ia64
; then
10823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10824 # chokes on -Wl,-G. The following line is correct:
10827 if test "$aix_use_runtimelinking" = yes; then
10828 shared_flag
='${wl}-G'
10830 shared_flag
='${wl}-bM:SRE'
10835 export_dynamic_flag_spec
='${wl}-bexpall'
10836 # It seems that -bexpall does not export symbols beginning with
10837 # underscore (_), so it is better to generate a list of symbols to export.
10838 always_export_symbols
=yes
10839 if test "$aix_use_runtimelinking" = yes; then
10840 # Warning - without using the other runtime loading flags (-brtl),
10841 # -berok will link without error, but may produce a broken library.
10842 allow_undefined_flag
='-berok'
10843 # Determine the default libpath from the value encoded in an
10844 # empty executable.
10845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10856 if ac_fn_c_try_link
"$LINENO"; then :
10858 lt_aix_libpath_sed
='
10859 /Import File Strings/,/^$/ {
10865 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10866 # Check for a 64-bit object if we didn't find anything.
10867 if test -z "$aix_libpath"; then
10868 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10871 rm -f core conftest.err conftest.
$ac_objext \
10872 conftest
$ac_exeext conftest.
$ac_ext
10873 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10875 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10876 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"
10878 if test "$host_cpu" = ia64
; then
10879 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10880 allow_undefined_flag
="-z nodefs"
10881 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"
10883 # Determine the default libpath from the value encoded in an
10884 # empty executable.
10885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10896 if ac_fn_c_try_link
"$LINENO"; then :
10898 lt_aix_libpath_sed
='
10899 /Import File Strings/,/^$/ {
10905 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10906 # Check for a 64-bit object if we didn't find anything.
10907 if test -z "$aix_libpath"; then
10908 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10911 rm -f core conftest.err conftest.
$ac_objext \
10912 conftest
$ac_exeext conftest.
$ac_ext
10913 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10915 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10916 # Warning - without using the other run time loading flags,
10917 # -berok will link without error, but may produce a broken library.
10918 no_undefined_flag
=' ${wl}-bernotok'
10919 allow_undefined_flag
=' ${wl}-berok'
10920 if test "$with_gnu_ld" = yes; then
10921 # We only use this code for GNU lds that support --whole-archive.
10922 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10924 # Exported symbols can be pulled into shared objects from archives
10925 whole_archive_flag_spec
='$convenience'
10927 archive_cmds_need_lc
=yes
10928 # This is similar to how AIX traditionally builds its shared libraries.
10929 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'
10937 # see comment about AmigaOS4 .so support
10938 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10939 archive_expsym_cmds
=''
10942 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)'
10943 hardcode_libdir_flag_spec
='-L$libdir'
10944 hardcode_minus_L
=yes
10950 export_dynamic_flag_spec
=-rdynamic
10953 cygwin
* | mingw
* | pw32
* | cegcc
*)
10954 # When not using gcc, we currently assume that we are using
10955 # Microsoft Visual C++.
10956 # hardcode_libdir_flag_spec is actually meaningless, as there is
10957 # no search path for DLLs.
10958 hardcode_libdir_flag_spec
=' '
10959 allow_undefined_flag
=unsupported
10960 # Tell ltmain to make .lib files, not .a files.
10962 # Tell ltmain to make .dll files, not .so files.
10964 # FIXME: Setting linknames here is a bad hack.
10965 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10966 # The linker will automatically build a .lib file if we build a DLL.
10967 old_archive_from_new_cmds
='true'
10968 # FIXME: Should let the user specify the lib program.
10969 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10970 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10971 enable_shared_with_static_runtimes
=yes
10974 darwin
* | rhapsody
*)
10977 archive_cmds_need_lc
=no
10979 hardcode_automatic
=yes
10980 hardcode_shlibpath_var
=unsupported
10981 if test "$lt_cv_ld_force_load" = "yes"; then
10982 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\"`'
10984 whole_archive_flag_spec
=''
10986 link_all_deplibs
=yes
10987 allow_undefined_flag
="$_lt_dar_allow_undefined"
10988 case $cc_basename in
10989 ifort
*) _lt_dar_can_shared
=yes ;;
10990 *) _lt_dar_can_shared
=$GCC ;;
10992 if test "$_lt_dar_can_shared" = "yes"; then
10993 output_verbose_link_cmd
=func_echo_all
10994 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10995 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10996 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10997 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}"
11006 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007 hardcode_libdir_flag_spec
='-L$libdir'
11008 hardcode_shlibpath_var
=no
11011 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11012 # support. Future versions do this automatically, but an explicit c++rt0.o
11013 # does not break anything, and helps significantly (at the cost of a little
11016 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11017 hardcode_libdir_flag_spec
='-R$libdir'
11018 hardcode_direct
=yes
11019 hardcode_shlibpath_var
=no
11022 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11024 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11025 hardcode_direct
=yes
11026 hardcode_minus_L
=yes
11027 hardcode_shlibpath_var
=no
11030 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11031 freebsd
* | dragonfly
*)
11032 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11033 hardcode_libdir_flag_spec
='-R$libdir'
11034 hardcode_direct
=yes
11035 hardcode_shlibpath_var
=no
11039 if test "$GCC" = yes; then
11040 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'
11042 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'
11044 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11045 hardcode_libdir_separator
=:
11046 hardcode_direct
=yes
11048 # hardcode_minus_L: Not really in the search PATH,
11049 # but as the default location of the library.
11050 hardcode_minus_L
=yes
11051 export_dynamic_flag_spec
='${wl}-E'
11055 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11056 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11060 if test "$with_gnu_ld" = no
; then
11061 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11062 hardcode_libdir_flag_spec_ld
='+b $libdir'
11063 hardcode_libdir_separator
=:
11064 hardcode_direct
=yes
11065 hardcode_direct_absolute
=yes
11066 export_dynamic_flag_spec
='${wl}-E'
11067 # hardcode_minus_L: Not really in the search PATH,
11068 # but as the default location of the library.
11069 hardcode_minus_L
=yes
11074 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11077 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11083 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11089 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11092 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11096 # Older versions of the 11.00 compiler do not understand -b yet
11097 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11099 $as_echo_n "checking if $CC understands -b... " >&6; }
11100 if ${lt_cv_prog_compiler__b+:} false
; then :
11101 $as_echo_n "(cached) " >&6
11103 lt_cv_prog_compiler__b
=no
11104 save_LDFLAGS
="$LDFLAGS"
11105 LDFLAGS
="$LDFLAGS -b"
11106 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11107 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11108 # The linker can only warn and ignore the option if not recognized
11109 # So say no if there are warnings
11110 if test -s conftest.err
; then
11111 # Append any errors to the config.log.
11112 cat conftest.err
1>&5
11113 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11114 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11115 if diff conftest.exp conftest.er2
>/dev
/null
; then
11116 lt_cv_prog_compiler__b
=yes
11119 lt_cv_prog_compiler__b
=yes
11123 LDFLAGS
="$save_LDFLAGS"
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11127 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11129 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
11130 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11132 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11138 if test "$with_gnu_ld" = no
; then
11139 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11140 hardcode_libdir_separator
=:
11145 hardcode_shlibpath_var
=no
11148 hardcode_direct
=yes
11149 hardcode_direct_absolute
=yes
11150 export_dynamic_flag_spec
='${wl}-E'
11152 # hardcode_minus_L: Not really in the search PATH,
11153 # but as the default location of the library.
11154 hardcode_minus_L
=yes
11160 irix5
* | irix6
* | nonstopux
*)
11161 if test "$GCC" = yes; then
11162 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'
11163 # Try to use the -exported_symbol ld option, if it does not
11164 # work, assume that -exports_file does not work either and
11165 # implicitly export all symbols.
11166 save_LDFLAGS
="$LDFLAGS"
11167 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11172 if ac_fn_c_try_link
"$LINENO"; then :
11173 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'
11176 rm -f core conftest.err conftest.
$ac_objext \
11177 conftest
$ac_exeext conftest.
$ac_ext
11178 LDFLAGS
="$save_LDFLAGS"
11180 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'
11181 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'
11183 archive_cmds_need_lc
='no'
11184 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11185 hardcode_libdir_separator
=:
11187 link_all_deplibs
=yes
11191 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11192 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11194 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11196 hardcode_libdir_flag_spec
='-R$libdir'
11197 hardcode_direct
=yes
11198 hardcode_shlibpath_var
=no
11202 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11203 hardcode_direct
=yes
11204 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11205 hardcode_libdir_separator
=:
11206 hardcode_shlibpath_var
=no
11213 if test -f /usr
/libexec
/ld.so
; then
11214 hardcode_direct
=yes
11215 hardcode_shlibpath_var
=no
11216 hardcode_direct_absolute
=yes
11217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11218 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11219 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11220 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11221 export_dynamic_flag_spec
='${wl}-E'
11224 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11225 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11226 hardcode_libdir_flag_spec
='-R$libdir'
11229 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11230 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11240 hardcode_libdir_flag_spec
='-L$libdir'
11241 hardcode_minus_L
=yes
11242 allow_undefined_flag
=unsupported
11243 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'
11244 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11248 if test "$GCC" = yes; then
11249 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11250 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'
11252 allow_undefined_flag
=' -expect_unresolved \*'
11253 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'
11255 archive_cmds_need_lc
='no'
11256 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11257 hardcode_libdir_separator
=:
11260 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11261 if test "$GCC" = yes; then
11262 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11263 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'
11264 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11266 allow_undefined_flag
=' -expect_unresolved \*'
11267 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'
11268 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~
11269 $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'
11271 # Both c and cxx compiler support -rpath directly
11272 hardcode_libdir_flag_spec
='-rpath $libdir'
11274 archive_cmds_need_lc
='no'
11275 hardcode_libdir_separator
=:
11279 no_undefined_flag
=' -z defs'
11280 if test "$GCC" = yes; then
11282 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11283 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11284 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11286 case `$CC -V 2>&1` in
11289 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11290 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11295 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11296 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11297 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11301 hardcode_libdir_flag_spec
='-R$libdir'
11302 hardcode_shlibpath_var
=no
11304 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11306 # The compiler driver will combine and reorder linker options,
11307 # but understands `-z linker_flag'. GCC discards it without `$wl',
11308 # but is careful enough not to reorder.
11309 # Supported since Solaris 2.6 (maybe 2.5.1?)
11310 if test "$GCC" = yes; then
11311 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11313 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11317 link_all_deplibs
=yes
11321 if test "x$host_vendor" = xsequent
; then
11322 # Use $CC to link under sequent, because it throws in some extra .o
11323 # files that make .init and .fini sections work.
11324 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11326 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11328 hardcode_libdir_flag_spec
='-L$libdir'
11329 hardcode_direct
=yes
11330 hardcode_minus_L
=yes
11331 hardcode_shlibpath_var
=no
11335 case $host_vendor in
11337 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11338 hardcode_direct
=yes # is this really true???
11341 ## LD is ld it makes a PLAMLIB
11342 ## CC just makes a GrossModule.
11343 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11344 reload_cmds
='$CC -r -o $output$reload_objs'
11348 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11349 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11352 runpath_var
='LD_RUN_PATH'
11353 hardcode_shlibpath_var
=no
11357 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11358 hardcode_shlibpath_var
=no
11359 export_dynamic_flag_spec
='-Bexport'
11363 if test -d /usr
/nec
; then
11364 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11365 hardcode_shlibpath_var
=no
11366 runpath_var
=LD_RUN_PATH
11367 hardcode_runpath_var
=yes
11372 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11373 no_undefined_flag
='${wl}-z,text'
11374 archive_cmds_need_lc
=no
11375 hardcode_shlibpath_var
=no
11376 runpath_var
='LD_RUN_PATH'
11378 if test "$GCC" = yes; then
11379 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11382 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11383 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387 sysv5
* | sco3.2v5
* | sco5v6
*)
11388 # Note: We can NOT use -z defs as we might desire, because we do not
11389 # link with -lc, and that would cause any symbols used from libc to
11390 # always be unresolved, which means just about no library would
11391 # ever link correctly. If we're not using GNU ld we use -z text
11392 # though, which does catch some bad symbols but isn't as heavy-handed
11394 no_undefined_flag
='${wl}-z,text'
11395 allow_undefined_flag
='${wl}-z,nodefs'
11396 archive_cmds_need_lc
=no
11397 hardcode_shlibpath_var
=no
11398 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
11399 hardcode_libdir_separator
=':'
11400 link_all_deplibs
=yes
11401 export_dynamic_flag_spec
='${wl}-Bexport'
11402 runpath_var
='LD_RUN_PATH'
11404 if test "$GCC" = yes; then
11405 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11409 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11414 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11415 hardcode_libdir_flag_spec
='-L$libdir'
11416 hardcode_shlibpath_var
=no
11424 if test x
$host_vendor = xsni
; then
11426 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11427 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11434 $as_echo "$ld_shlibs" >&6; }
11435 test "$ld_shlibs" = no
&& can_build_shared
=no
11437 with_gnu_ld
=$with_gnu_ld
11454 # Do we need to explicitly link libc?
11456 case "x$archive_cmds_need_lc" in
11458 # Assume -lc should be added
11459 archive_cmds_need_lc
=yes
11461 if test "$enable_shared" = yes && test "$GCC" = yes; then
11462 case $archive_cmds in
11464 # FIXME: we may have to deal with multi-command sequences.
11467 # Test whether the compiler implicitly links with -lc since on some
11468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11469 # to ld, don't add -lc before -lgcc.
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11471 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11472 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
11473 $as_echo_n "(cached) " >&6
11476 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11479 (eval $ac_compile) 2>&5
11481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11482 test $ac_status = 0; } 2>conftest.err
; then
11485 libobjs
=conftest.
$ac_objext
11487 wl
=$lt_prog_compiler_wl
11488 pic_flag
=$lt_prog_compiler_pic
11494 lt_save_allow_undefined_flag
=$allow_undefined_flag
11495 allow_undefined_flag
=
11496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11497 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500 test $ac_status = 0; }
11502 lt_cv_archive_cmds_need_lc
=no
11504 lt_cv_archive_cmds_need_lc
=yes
11506 allow_undefined_flag
=$lt_save_allow_undefined_flag
11508 cat conftest.err
1>&5
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11514 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11515 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11679 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11681 if test "$GCC" = yes; then
11683 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11684 *) lt_awk_arg
="/^libraries:/" ;;
11687 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11688 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11690 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11691 case $lt_search_path_spec in
11693 # if the path contains ";" then we assume it to be the separator
11694 # otherwise default to the standard path separator (i.e. ":") - it is
11695 # assumed that no part of a normal pathname contains ";" but that should
11696 # okay in the real world where ";" in dirpaths is itself problematic.
11697 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11700 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11703 # Ok, now we have the path, separated by spaces, we can step through it
11704 # and add multilib dir if necessary.
11705 lt_tmp_lt_search_path_spec
=
11706 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11707 for lt_sys_path
in $lt_search_path_spec; do
11708 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11709 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11711 test -d "$lt_sys_path" && \
11712 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11715 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11716 BEGIN {RS=" "; FS="/|\n";} {
11719 for (lt_i = NF; lt_i > 0; lt_i--) {
11720 if ($lt_i != "" && $lt_i != ".") {
11721 if ($lt_i == "..") {
11724 if (lt_count == 0) {
11725 lt_foo="/" $lt_i lt_foo;
11732 if (lt_foo != "") { lt_freq[lt_foo]++; }
11733 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11735 # AWK program above erroneously prepends '/' to C:/dos/paths
11738 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11739 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11741 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11743 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11745 library_names_spec
=
11746 libname_spec
='lib$name'
11750 postuninstall_cmds
=
11754 shlibpath_overrides_runpath
=unknown
11756 dynamic_linker
="$host_os ld.so"
11757 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11758 need_lib_prefix
=unknown
11759 hardcode_into_libs
=no
11761 # when you set need_version to no, make sure it does not cause -set_version
11762 # flags to be left without arguments
11763 need_version
=unknown
11768 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11769 shlibpath_var
=LIBPATH
11771 # AIX 3 has no versioning support, so we append a major version to the name.
11772 soname_spec
='${libname}${release}${shared_ext}$major'
11779 hardcode_into_libs
=yes
11780 if test "$host_cpu" = ia64
; then
11781 # AIX 5 supports IA64
11782 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11783 shlibpath_var
=LD_LIBRARY_PATH
11785 # With GCC up to 2.95.x, collect2 would create an import file
11786 # for dependence libraries. The import file would start with
11787 # the line `#! .'. This would cause the generated library to
11788 # depend on `.', always an invalid library. This was fixed in
11789 # development snapshots of GCC prior to 3.0.
11791 aix4 | aix4.
[01] | aix4.
[01].
*)
11792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11794 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11797 can_build_shared
=no
11801 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11802 # soname into executable. Probably we can add versioning support to
11803 # collect2, so additional links can be useful in future.
11804 if test "$aix_use_runtimelinking" = yes; then
11805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11806 # instead of lib<name>.a to let people know that these are not
11807 # typical AIX shared libraries.
11808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 # We preserve .a as extension for shared libraries through AIX4.2
11811 # and later when we are not doing run time linking.
11812 library_names_spec
='${libname}${release}.a $libname.a'
11813 soname_spec
='${libname}${release}${shared_ext}$major'
11815 shlibpath_var
=LIBPATH
11822 # Since July 2007 AmigaOS4 officially supports .so libraries.
11823 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827 library_names_spec
='$libname.ixlibrary $libname.a'
11828 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11829 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'
11835 library_names_spec
='${libname}${shared_ext}'
11836 dynamic_linker
="$host_os ld.so"
11837 shlibpath_var
=LIBRARY_PATH
11843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 soname_spec
='${libname}${release}${shared_ext}$major'
11845 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11846 shlibpath_var
=LD_LIBRARY_PATH
11847 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11848 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11849 # the default ld.so.conf also contains /usr/contrib/lib and
11850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11851 # libtool to hard-code these into programs
11854 cygwin
* | mingw
* | pw32
* | cegcc
*)
11855 version_type
=windows
11860 case $GCC,$host_os in
11861 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11862 library_names_spec
='$libname.dll.a'
11863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11864 postinstall_cmds
='base_file=`basename \${file}`~
11865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11866 dldir=$destdir/`dirname \$dlpath`~
11867 test -d \$dldir || mkdir -p \$dldir~
11868 $install_prog $dir/$dlname \$dldir/$dlname~
11869 chmod a+x \$dldir/$dlname~
11870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11873 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11874 dlpath=$dir/\$dldll~
11876 shlibpath_overrides_runpath
=yes
11880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11881 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11883 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11886 # MinGW DLLs use traditional 'lib' prefix
11887 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11890 # pw32 DLLs use 'pw' prefix rather than 'lib'
11891 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11897 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11900 dynamic_linker
='Win32 ld.exe'
11901 # FIXME: first we should search . and the directory the executable is in
11905 darwin
* | rhapsody
*)
11906 dynamic_linker
="$host_os dyld"
11907 version_type
=darwin
11910 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11911 soname_spec
='${libname}${release}${major}$shared_ext'
11912 shlibpath_overrides_runpath
=yes
11913 shlibpath_var
=DYLD_LIBRARY_PATH
11914 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11916 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11917 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11925 soname_spec
='${libname}${release}${shared_ext}$major'
11926 shlibpath_var
=LD_LIBRARY_PATH
11929 freebsd
* | dragonfly
*)
11930 # DragonFly does not have aout. When/if they implement a new
11931 # versioning mechanism, adjust this.
11932 if test -x /usr
/bin
/objformat
; then
11933 objformat
=`/usr/bin/objformat`
11936 freebsd
[23].
*) objformat
=aout
;;
11937 *) objformat
=elf
;;
11940 version_type
=freebsd-
$objformat
11941 case $version_type in
11943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11948 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11952 shlibpath_var
=LD_LIBRARY_PATH
11955 shlibpath_overrides_runpath
=yes
11957 freebsd3.
[01]* | freebsdelf3.
[01]*)
11958 shlibpath_overrides_runpath
=yes
11959 hardcode_into_libs
=yes
11961 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11962 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11963 shlibpath_overrides_runpath
=no
11964 hardcode_into_libs
=yes
11966 *) # from 4.6 on, and DragonFly
11967 shlibpath_overrides_runpath
=yes
11968 hardcode_into_libs
=yes
11977 dynamic_linker
="$host_os runtime_loader"
11978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11979 soname_spec
='${libname}${release}${shared_ext}$major'
11980 shlibpath_var
=LIBRARY_PATH
11981 shlibpath_overrides_runpath
=yes
11982 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11983 hardcode_into_libs
=yes
11986 hpux9
* | hpux10
* | hpux11
*)
11987 # Give a soname corresponding to the major version so that dld.sl refuses to
11988 # link against other versions.
11995 hardcode_into_libs
=yes
11996 dynamic_linker
="$host_os dld.so"
11997 shlibpath_var
=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000 soname_spec
='${libname}${release}${shared_ext}$major'
12001 if test "X$HPUX_IA64_MODE" = X32
; then
12002 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12004 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12006 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12010 hardcode_into_libs
=yes
12011 dynamic_linker
="$host_os dld.sl"
12012 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12013 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12015 soname_spec
='${libname}${release}${shared_ext}$major'
12016 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12017 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12021 dynamic_linker
="$host_os dld.sl"
12022 shlibpath_var
=SHLIB_PATH
12023 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 soname_spec
='${libname}${release}${shared_ext}$major'
12028 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12029 postinstall_cmds
='chmod 555 $lib'
12030 # or fails outright, so override atomically:
12031 install_override_mode
=555
12038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12039 soname_spec
='${libname}${release}${shared_ext}$major'
12040 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12041 shlibpath_var
=LD_LIBRARY_PATH
12042 shlibpath_overrides_runpath
=no
12043 hardcode_into_libs
=yes
12046 irix5
* | irix6
* | nonstopux
*)
12048 nonstopux
*) version_type
=nonstopux
;;
12050 if test "$lt_cv_prog_gnu_ld" = yes; then
12058 soname_spec
='${libname}${release}${shared_ext}$major'
12059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12061 irix5
* | nonstopux
*)
12062 libsuff
= shlibsuff
=
12065 case $LD in # libtool.m4 will add one of these switches to LD
12066 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12067 libsuff
= shlibsuff
= libmagic
=32-bit;;
12068 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12069 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12070 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12071 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12072 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12076 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12077 shlibpath_overrides_runpath
=no
12078 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12079 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12080 hardcode_into_libs
=yes
12083 # No shared lib support for Linux oldld, aout, or coff.
12084 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12088 # This must be Linux ELF.
12090 # uclinux* changes (here and below) have been submitted to the libtool
12091 # project, but have not yet been accepted: they are GCC-local changes
12092 # for the time being. (See
12093 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12094 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
12098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12099 soname_spec
='${libname}${release}${shared_ext}$major'
12100 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12101 shlibpath_var
=LD_LIBRARY_PATH
12102 shlibpath_overrides_runpath
=no
12104 # Some binutils ld are patched to set DT_RUNPATH
12105 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
12106 $as_echo_n "(cached) " >&6
12108 lt_cv_shlibpath_overrides_runpath
=no
12109 save_LDFLAGS
=$LDFLAGS
12110 save_libdir
=$libdir
12111 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12112 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12124 if ac_fn_c_try_link
"$LINENO"; then :
12125 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
12126 lt_cv_shlibpath_overrides_runpath
=yes
12129 rm -f core conftest.err conftest.
$ac_objext \
12130 conftest
$ac_exeext conftest.
$ac_ext
12131 LDFLAGS
=$save_LDFLAGS
12132 libdir
=$save_libdir
12136 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
12138 # This implies no fast_install, which is unacceptable.
12139 # Some rework will be needed to allow for fast_install
12140 # before this can be enabled.
12141 hardcode_into_libs
=yes
12143 # Append ld.so.conf contents to the search path
12144 if test -f /etc
/ld.so.conf
; then
12145 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' ' '`
12146 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12149 # We used to test for /lib/ld.so.1 and disable shared libraries on
12150 # powerpc, because MkLinux only supported shared libraries with the
12151 # GNU dynamic linker. Since this was broken with cross compilers,
12152 # most powerpc-linux boxes support dynamic linking these days and
12153 # people can always --disable-shared, the test was removed, and we
12154 # assume the GNU/Linux dynamic linker is in use.
12155 dynamic_linker
='GNU/Linux ld.so'
12162 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12164 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12165 dynamic_linker
='NetBSD (a.out) ld.so'
12167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12168 soname_spec
='${libname}${release}${shared_ext}$major'
12169 dynamic_linker
='NetBSD ld.elf_so'
12171 shlibpath_var
=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath
=yes
12173 hardcode_into_libs
=yes
12178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179 shlibpath_var
=LD_LIBRARY_PATH
12180 shlibpath_overrides_runpath
=yes
12187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 soname_spec
='${libname}${release}${shared_ext}$major'
12189 shlibpath_var
=LD_LIBRARY_PATH
12190 shlibpath_overrides_runpath
=no
12191 hardcode_into_libs
=yes
12192 dynamic_linker
='ldqnx.so'
12197 sys_lib_dlsearch_path_spec
="/usr/lib"
12199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12201 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12202 *) need_version
=no
;;
12204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12205 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12206 shlibpath_var
=LD_LIBRARY_PATH
12207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12209 openbsd2.
[89] | openbsd2.
[89].
*)
12210 shlibpath_overrides_runpath
=no
12213 shlibpath_overrides_runpath
=yes
12217 shlibpath_overrides_runpath
=yes
12222 libname_spec
='$name'
12225 library_names_spec
='$libname${shared_ext} $libname.a'
12226 dynamic_linker
='OS/2 ld.exe'
12227 shlibpath_var
=LIBPATH
12230 osf3
* | osf4
* | osf5
*)
12234 soname_spec
='${libname}${release}${shared_ext}$major'
12235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12236 shlibpath_var
=LD_LIBRARY_PATH
12237 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12238 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250 soname_spec
='${libname}${release}${shared_ext}$major'
12251 shlibpath_var
=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath
=yes
12253 hardcode_into_libs
=yes
12254 # ldd complains unless libraries are executable
12255 postinstall_cmds
='chmod +x $lib'
12260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12261 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12262 shlibpath_var
=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath
=yes
12264 if test "$with_gnu_ld" = yes; then
12272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273 soname_spec
='${libname}${release}${shared_ext}$major'
12274 shlibpath_var
=LD_LIBRARY_PATH
12275 case $host_vendor in
12277 shlibpath_overrides_runpath
=no
12279 runpath_var
=LD_RUN_PATH
12287 shlibpath_overrides_runpath
=no
12288 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12294 if test -d /usr
/nec
;then
12296 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12297 soname_spec
='$libname${shared_ext}.$major'
12298 shlibpath_var
=LD_LIBRARY_PATH
12302 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12303 version_type
=freebsd-elf
12306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12307 soname_spec
='${libname}${release}${shared_ext}$major'
12308 shlibpath_var
=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath
=yes
12310 hardcode_into_libs
=yes
12311 if test "$with_gnu_ld" = yes; then
12312 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12314 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12317 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12321 sys_lib_dlsearch_path_spec
='/usr/lib'
12325 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330 shlibpath_var
=LD_LIBRARY_PATH
12331 shlibpath_overrides_runpath
=no
12332 hardcode_into_libs
=yes
12337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338 soname_spec
='${libname}${release}${shared_ext}$major'
12339 shlibpath_var
=LD_LIBRARY_PATH
12342 # Shared libraries for VwWorks, >= 7 only at this stage
12343 # and (fpic) still incompatible with "large" code models
12344 # in a few configurations. Only for RTP mode in any case,
12345 # and upon explicit request at configure time.
12348 case ${with_multisubdir}-${enable_shared} in
12355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356 soname_spec
='${libname}${release}${shared_ext}$major'
12357 dynamic_linker
="$host_os module_loader"
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12366 $as_echo "$dynamic_linker" >&6; }
12367 test "$dynamic_linker" = no
&& can_build_shared
=no
12369 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12370 if test "$GCC" = yes; then
12371 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12374 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12375 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12377 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12378 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12473 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12475 if test -n "$hardcode_libdir_flag_spec" ||
12476 test -n "$runpath_var" ||
12477 test "X$hardcode_automatic" = "Xyes" ; then
12479 # We can hardcode non-existent directories.
12480 if test "$hardcode_direct" != no
&&
12481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12482 # have to relink, otherwise we might link with an installed library
12483 # when we should be linking with a yet-to-be-installed one
12484 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12485 test "$hardcode_minus_L" != no
; then
12486 # Linking always hardcodes the temporary library directory.
12487 hardcode_action
=relink
12489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12490 hardcode_action
=immediate
12493 # We cannot hardcode anything, or else we can only hardcode existing
12495 hardcode_action
=unsupported
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12498 $as_echo "$hardcode_action" >&6; }
12500 if test "$hardcode_action" = relink ||
12501 test "$inherit_rpath" = yes; then
12502 # Fast installation is not supported
12503 enable_fast_install
=no
12504 elif test "$shlibpath_overrides_runpath" = yes ||
12505 test "$enable_shared" = no
; then
12506 # Fast installation is not necessary
12507 enable_fast_install
=needless
12515 if test "x$enable_dlopen" != xyes
; then
12516 enable_dlopen
=unknown
12517 enable_dlopen_self
=unknown
12518 enable_dlopen_self_static
=unknown
12525 lt_cv_dlopen
="load_add_on"
12527 lt_cv_dlopen_self
=yes
12530 mingw
* | pw32
* | cegcc
*)
12531 lt_cv_dlopen
="LoadLibrary"
12536 lt_cv_dlopen
="dlopen"
12541 # if libdl is installed we need to link against it
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12543 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12544 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12545 $as_echo_n "(cached) " >&6
12547 ac_check_lib_save_LIBS
=$LIBS
12549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12552 /* Override any GCC internal prototype to avoid an error.
12553 Use char because int might match the return type of a GCC
12554 builtin and then its argument prototype would still apply. */
12567 if ac_fn_c_try_link
"$LINENO"; then :
12568 ac_cv_lib_dl_dlopen
=yes
12570 ac_cv_lib_dl_dlopen
=no
12572 rm -f core conftest.err conftest.
$ac_objext \
12573 conftest
$ac_exeext conftest.
$ac_ext
12574 LIBS
=$ac_check_lib_save_LIBS
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12577 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12578 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12579 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12582 lt_cv_dlopen
="dyld"
12584 lt_cv_dlopen_self
=yes
12591 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12592 if test "x$ac_cv_func_shl_load" = xyes
; then :
12593 lt_cv_dlopen
="shl_load"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12596 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12597 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12598 $as_echo_n "(cached) " >&6
12600 ac_check_lib_save_LIBS
=$LIBS
12602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12615 return shl_load ();
12620 if ac_fn_c_try_link
"$LINENO"; then :
12621 ac_cv_lib_dld_shl_load
=yes
12623 ac_cv_lib_dld_shl_load
=no
12625 rm -f core conftest.err conftest.
$ac_objext \
12626 conftest
$ac_exeext conftest.
$ac_ext
12627 LIBS
=$ac_check_lib_save_LIBS
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12630 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12631 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12632 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
12634 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12635 if test "x$ac_cv_func_dlopen" = xyes
; then :
12636 lt_cv_dlopen
="dlopen"
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12639 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12640 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12641 $as_echo_n "(cached) " >&6
12643 ac_check_lib_save_LIBS
=$LIBS
12645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12648 /* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12663 if ac_fn_c_try_link
"$LINENO"; then :
12664 ac_cv_lib_dl_dlopen
=yes
12666 ac_cv_lib_dl_dlopen
=no
12668 rm -f core conftest.err conftest.
$ac_objext \
12669 conftest
$ac_exeext conftest.
$ac_ext
12670 LIBS
=$ac_check_lib_save_LIBS
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12673 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12674 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12675 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12678 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12679 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12680 $as_echo_n "(cached) " >&6
12682 ac_check_lib_save_LIBS
=$LIBS
12683 LIBS
="-lsvld $LIBS"
12684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12702 if ac_fn_c_try_link
"$LINENO"; then :
12703 ac_cv_lib_svld_dlopen
=yes
12705 ac_cv_lib_svld_dlopen
=no
12707 rm -f core conftest.err conftest.
$ac_objext \
12708 conftest
$ac_exeext conftest.
$ac_ext
12709 LIBS
=$ac_check_lib_save_LIBS
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12712 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12713 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12714 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12717 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12718 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12719 $as_echo_n "(cached) " >&6
12721 ac_check_lib_save_LIBS
=$LIBS
12723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12736 return dld_link ();
12741 if ac_fn_c_try_link
"$LINENO"; then :
12742 ac_cv_lib_dld_dld_link
=yes
12744 ac_cv_lib_dld_dld_link
=no
12746 rm -f core conftest.err conftest.
$ac_objext \
12747 conftest
$ac_exeext conftest.
$ac_ext
12748 LIBS
=$ac_check_lib_save_LIBS
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12751 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12752 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12753 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12774 if test "x$lt_cv_dlopen" != xno
; then
12780 case $lt_cv_dlopen in
12782 save_CPPFLAGS
="$CPPFLAGS"
12783 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12785 save_LDFLAGS
="$LDFLAGS"
12786 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12789 LIBS
="$lt_cv_dlopen_libs $LIBS"
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12792 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12793 if ${lt_cv_dlopen_self+:} false
; then :
12794 $as_echo_n "(cached) " >&6
12796 if test "$cross_compiling" = yes; then :
12797 lt_cv_dlopen_self
=cross
12799 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12800 lt_status
=$lt_dlunknown
12801 cat > conftest.
$ac_ext <<_LT_EOF
12802 #line 12802 "configure"
12803 #include "confdefs.h"
12812 # define LT_DLGLOBAL RTLD_GLOBAL
12815 # define LT_DLGLOBAL DL_GLOBAL
12817 # define LT_DLGLOBAL 0
12821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12822 find out it does not work in some platform. */
12823 #ifndef LT_DLLAZY_OR_NOW
12825 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12828 # define LT_DLLAZY_OR_NOW DL_LAZY
12831 # define LT_DLLAZY_OR_NOW RTLD_NOW
12834 # define LT_DLLAZY_OR_NOW DL_NOW
12836 # define LT_DLLAZY_OR_NOW 0
12843 /* When -fvisbility=hidden is used, assume the code has been annotated
12844 correspondingly for the symbols needed. */
12845 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12846 void fnord () __attribute__((visibility("default")));
12849 void fnord () { int i=42; }
12852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12853 int status = $lt_dlunknown;
12857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12860 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12861 else puts (dlerror ());
12863 /* dlclose (self); */
12871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12872 (eval $ac_link) 2>&5
12874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12876 (.
/conftest
; exit; ) >&5 2>/dev
/null
12878 case x
$lt_status in
12879 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12880 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12881 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12884 # compilation failed
12885 lt_cv_dlopen_self
=no
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12893 $as_echo "$lt_cv_dlopen_self" >&6; }
12895 if test "x$lt_cv_dlopen_self" = xyes
; then
12896 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12898 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12899 if ${lt_cv_dlopen_self_static+:} false
; then :
12900 $as_echo_n "(cached) " >&6
12902 if test "$cross_compiling" = yes; then :
12903 lt_cv_dlopen_self_static
=cross
12905 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12906 lt_status
=$lt_dlunknown
12907 cat > conftest.
$ac_ext <<_LT_EOF
12908 #line 12908 "configure"
12909 #include "confdefs.h"
12918 # define LT_DLGLOBAL RTLD_GLOBAL
12921 # define LT_DLGLOBAL DL_GLOBAL
12923 # define LT_DLGLOBAL 0
12927 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12928 find out it does not work in some platform. */
12929 #ifndef LT_DLLAZY_OR_NOW
12931 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12934 # define LT_DLLAZY_OR_NOW DL_LAZY
12937 # define LT_DLLAZY_OR_NOW RTLD_NOW
12940 # define LT_DLLAZY_OR_NOW DL_NOW
12942 # define LT_DLLAZY_OR_NOW 0
12949 /* When -fvisbility=hidden is used, assume the code has been annotated
12950 correspondingly for the symbols needed. */
12951 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12952 void fnord () __attribute__((visibility("default")));
12955 void fnord () { int i=42; }
12958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12959 int status = $lt_dlunknown;
12963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12966 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12967 else puts (dlerror ());
12969 /* dlclose (self); */
12977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12978 (eval $ac_link) 2>&5
12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12982 (.
/conftest
; exit; ) >&5 2>/dev
/null
12984 case x
$lt_status in
12985 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12986 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12987 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12990 # compilation failed
12991 lt_cv_dlopen_self_static
=no
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12999 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13002 CPPFLAGS
="$save_CPPFLAGS"
13003 LDFLAGS
="$save_LDFLAGS"
13008 case $lt_cv_dlopen_self in
13009 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13010 *) enable_dlopen_self
=unknown
;;
13013 case $lt_cv_dlopen_self_static in
13014 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13015 *) enable_dlopen_self_static
=unknown
;;
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13038 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13039 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
13040 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13041 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13043 $as_echo "yes" >&6; }
13045 # FIXME - insert some real tests, host_os isn't really good enough
13048 if test -n "$STRIP" ; then
13049 striplib
="$STRIP -x"
13050 old_striplib
="$STRIP -S"
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052 $as_echo "yes" >&6; }
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13076 # Report which library types will actually be built
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13078 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13080 $as_echo "$can_build_shared" >&6; }
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13083 $as_echo_n "checking whether to build shared libraries... " >&6; }
13084 test "$can_build_shared" = "no" && enable_shared
=no
13086 # On AIX, shared libraries and static libraries use the same namespace, and
13087 # are all built from PIC.
13090 test "$enable_shared" = yes && enable_static
=no
13091 if test -n "$RANLIB"; then
13092 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13093 postinstall_cmds
='$RANLIB $lib'
13098 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13099 test "$enable_shared" = yes && enable_static
=no
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13104 $as_echo "$enable_shared" >&6; }
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13107 $as_echo_n "checking whether to build static libraries... " >&6; }
13108 # Make sure either enable_shared or enable_static is yes.
13109 test "$enable_shared" = yes || enable_static
=yes
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13111 $as_echo "$enable_static" >&6; }
13118 ac_cpp
='$CPP $CPPFLAGS'
13119 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13120 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13121 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13137 ac_config_commands
="$ac_config_commands libtool"
13142 # Only expand once:
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
13147 $as_echo_n "checking for library containing bind... " >&6; }
13148 if ${ac_cv_search_bind+:} false
; then :
13149 $as_echo_n "(cached) " >&6
13151 ac_func_search_save_LIBS
=$LIBS
13152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13155 /* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13170 for ac_lib
in '' socket
; do
13171 if test -z "$ac_lib"; then
13172 ac_res
="none required"
13175 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13177 if ac_fn_c_try_link
"$LINENO"; then :
13178 ac_cv_search_bind
=$ac_res
13180 rm -f core conftest.err conftest.
$ac_objext \
13182 if ${ac_cv_search_bind+:} false
; then :
13186 if ${ac_cv_search_bind+:} false
; then :
13189 ac_cv_search_bind
=no
13191 rm conftest.
$ac_ext
13192 LIBS
=$ac_func_search_save_LIBS
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
13195 $as_echo "$ac_cv_search_bind" >&6; }
13196 ac_res
=$ac_cv_search_bind
13197 if test "$ac_res" != no
; then :
13198 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13203 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13204 if ${ac_cv_search_gethostbyname+:} false
; then :
13205 $as_echo_n "(cached) " >&6
13207 ac_func_search_save_LIBS
=$LIBS
13208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13217 char gethostbyname ();
13221 return gethostbyname ();
13226 for ac_lib
in '' nsl
; do
13227 if test -z "$ac_lib"; then
13228 ac_res
="none required"
13231 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13233 if ac_fn_c_try_link
"$LINENO"; then :
13234 ac_cv_search_gethostbyname
=$ac_res
13236 rm -f core conftest.err conftest.
$ac_objext \
13238 if ${ac_cv_search_gethostbyname+:} false
; then :
13242 if ${ac_cv_search_gethostbyname+:} false
; then :
13245 ac_cv_search_gethostbyname
=no
13247 rm conftest.
$ac_ext
13248 LIBS
=$ac_func_search_save_LIBS
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13251 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13252 ac_res
=$ac_cv_search_gethostbyname
13253 if test "$ac_res" != no
; then :
13254 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
13259 $as_echo_n "checking for library containing fabs... " >&6; }
13260 if ${ac_cv_search_fabs+:} false
; then :
13261 $as_echo_n "(cached) " >&6
13263 ac_func_search_save_LIBS
=$LIBS
13264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h. */
13267 /* Override any GCC internal prototype to avoid an error.
13268 Use char because int might match the return type of a GCC
13269 builtin and then its argument prototype would still apply. */
13282 for ac_lib
in '' m
; do
13283 if test -z "$ac_lib"; then
13284 ac_res
="none required"
13287 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13289 if ac_fn_c_try_link
"$LINENO"; then :
13290 ac_cv_search_fabs
=$ac_res
13292 rm -f core conftest.err conftest.
$ac_objext \
13294 if ${ac_cv_search_fabs+:} false
; then :
13298 if ${ac_cv_search_fabs+:} false
; then :
13301 ac_cv_search_fabs
=no
13303 rm conftest.
$ac_ext
13304 LIBS
=$ac_func_search_save_LIBS
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
13307 $as_echo "$ac_cv_search_fabs" >&6; }
13308 ac_res
=$ac_cv_search_fabs
13309 if test "$ac_res" != no
; then :
13310 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
13315 $as_echo_n "checking for library containing log2... " >&6; }
13316 if ${ac_cv_search_log2+:} false
; then :
13317 $as_echo_n "(cached) " >&6
13319 ac_func_search_save_LIBS
=$LIBS
13320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13323 /* Override any GCC internal prototype to avoid an error.
13324 Use char because int might match the return type of a GCC
13325 builtin and then its argument prototype would still apply. */
13338 for ac_lib
in '' m
; do
13339 if test -z "$ac_lib"; then
13340 ac_res
="none required"
13343 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13345 if ac_fn_c_try_link
"$LINENO"; then :
13346 ac_cv_search_log2
=$ac_res
13348 rm -f core conftest.err conftest.
$ac_objext \
13350 if ${ac_cv_search_log2+:} false
; then :
13354 if ${ac_cv_search_log2+:} false
; then :
13357 ac_cv_search_log2
=no
13359 rm conftest.
$ac_ext
13360 LIBS
=$ac_func_search_save_LIBS
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
13363 $as_echo "$ac_cv_search_log2" >&6; }
13364 ac_res
=$ac_cv_search_log2
13365 if test "$ac_res" != no
; then :
13366 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13372 $as_echo_n "checking for library containing dlopen... " >&6; }
13373 if ${ac_cv_search_dlopen+:} false
; then :
13374 $as_echo_n "(cached) " >&6
13376 ac_func_search_save_LIBS
=$LIBS
13377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13380 /* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13395 for ac_lib
in '' dl
; do
13396 if test -z "$ac_lib"; then
13397 ac_res
="none required"
13400 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13402 if ac_fn_c_try_link
"$LINENO"; then :
13403 ac_cv_search_dlopen
=$ac_res
13405 rm -f core conftest.err conftest.
$ac_objext \
13407 if ${ac_cv_search_dlopen+:} false
; then :
13411 if ${ac_cv_search_dlopen+:} false
; then :
13414 ac_cv_search_dlopen
=no
13416 rm conftest.
$ac_ext
13417 LIBS
=$ac_func_search_save_LIBS
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13420 $as_echo "$ac_cv_search_dlopen" >&6; }
13421 ac_res
=$ac_cv_search_dlopen
13422 if test "$ac_res" != no
; then :
13423 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13427 if test "${ac_cv_search_dlopen}" = "none required" ||
test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13431 $as_echo_n "checking for sdl2... " >&6; }
13433 if test -n "$SDL_CFLAGS"; then
13434 pkg_cv_SDL_CFLAGS
="$SDL_CFLAGS"
13435 elif test -n "$PKG_CONFIG"; then
13436 if test -n "$PKG_CONFIG" && \
13437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13438 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441 test $ac_status = 0; }; then
13442 pkg_cv_SDL_CFLAGS
=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13443 test "x$?" != "x0" && pkg_failed
=yes
13450 if test -n "$SDL_LIBS"; then
13451 pkg_cv_SDL_LIBS
="$SDL_LIBS"
13452 elif test -n "$PKG_CONFIG"; then
13453 if test -n "$PKG_CONFIG" && \
13454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13455 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13458 test $ac_status = 0; }; then
13459 pkg_cv_SDL_LIBS
=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13460 test "x$?" != "x0" && pkg_failed
=yes
13468 if test $pkg_failed = no
; then
13469 pkg_save_LDFLAGS
="$LDFLAGS"
13470 LDFLAGS
="$LDFLAGS $pkg_cv_SDL_LIBS"
13471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13482 if ac_fn_c_try_link
"$LINENO"; then :
13487 rm -f core conftest.err conftest.
$ac_objext \
13488 conftest
$ac_exeext conftest.
$ac_ext
13489 LDFLAGS
=$pkg_save_LDFLAGS
13494 if test $pkg_failed = yes; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13498 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13499 _pkg_short_errors_supported
=yes
13501 _pkg_short_errors_supported
=no
13503 if test $_pkg_short_errors_supported = yes; then
13504 SDL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13506 SDL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13508 # Put the nasty error message in config.log where it belongs
13509 echo "$SDL_PKG_ERRORS" >&5
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13515 $as_echo_n "checking for sdl... " >&6; }
13517 if test -n "$SDL_CFLAGS"; then
13518 pkg_cv_SDL_CFLAGS
="$SDL_CFLAGS"
13519 elif test -n "$PKG_CONFIG"; then
13520 if test -n "$PKG_CONFIG" && \
13521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13522 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13525 test $ac_status = 0; }; then
13526 pkg_cv_SDL_CFLAGS
=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13527 test "x$?" != "x0" && pkg_failed
=yes
13534 if test -n "$SDL_LIBS"; then
13535 pkg_cv_SDL_LIBS
="$SDL_LIBS"
13536 elif test -n "$PKG_CONFIG"; then
13537 if test -n "$PKG_CONFIG" && \
13538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13539 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13542 test $ac_status = 0; }; then
13543 pkg_cv_SDL_LIBS
=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13544 test "x$?" != "x0" && pkg_failed
=yes
13552 if test $pkg_failed = no
; then
13553 pkg_save_LDFLAGS
="$LDFLAGS"
13554 LDFLAGS
="$LDFLAGS $pkg_cv_SDL_LIBS"
13555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13566 if ac_fn_c_try_link
"$LINENO"; then :
13571 rm -f core conftest.err conftest.
$ac_objext \
13572 conftest
$ac_exeext conftest.
$ac_ext
13573 LDFLAGS
=$pkg_save_LDFLAGS
13578 if test $pkg_failed = yes; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580 $as_echo "no" >&6; }
13582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13583 _pkg_short_errors_supported
=yes
13585 _pkg_short_errors_supported
=no
13587 if test $_pkg_short_errors_supported = yes; then
13588 SDL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13590 SDL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13592 # Put the nasty error message in config.log where it belongs
13593 echo "$SDL_PKG_ERRORS" >&5
13596 elif test $pkg_failed = untried
; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598 $as_echo "no" >&6; }
13601 SDL_CFLAGS
=$pkg_cv_SDL_CFLAGS
13602 SDL_LIBS
=$pkg_cv_SDL_LIBS
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13604 $as_echo "yes" >&6; }
13605 SDL_CFLAGS
="${SDL_CFLAGS} -DHAVE_SDL=1"
13609 elif test $pkg_failed = untried
; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13616 $as_echo_n "checking for sdl... " >&6; }
13618 if test -n "$SDL_CFLAGS"; then
13619 pkg_cv_SDL_CFLAGS
="$SDL_CFLAGS"
13620 elif test -n "$PKG_CONFIG"; then
13621 if test -n "$PKG_CONFIG" && \
13622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13623 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 pkg_cv_SDL_CFLAGS
=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13628 test "x$?" != "x0" && pkg_failed
=yes
13635 if test -n "$SDL_LIBS"; then
13636 pkg_cv_SDL_LIBS
="$SDL_LIBS"
13637 elif test -n "$PKG_CONFIG"; then
13638 if test -n "$PKG_CONFIG" && \
13639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13640 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13643 test $ac_status = 0; }; then
13644 pkg_cv_SDL_LIBS
=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13645 test "x$?" != "x0" && pkg_failed
=yes
13653 if test $pkg_failed = no
; then
13654 pkg_save_LDFLAGS
="$LDFLAGS"
13655 LDFLAGS
="$LDFLAGS $pkg_cv_SDL_LIBS"
13656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13667 if ac_fn_c_try_link
"$LINENO"; then :
13672 rm -f core conftest.err conftest.
$ac_objext \
13673 conftest
$ac_exeext conftest.
$ac_ext
13674 LDFLAGS
=$pkg_save_LDFLAGS
13679 if test $pkg_failed = yes; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681 $as_echo "no" >&6; }
13683 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13684 _pkg_short_errors_supported
=yes
13686 _pkg_short_errors_supported
=no
13688 if test $_pkg_short_errors_supported = yes; then
13689 SDL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13691 SDL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13693 # Put the nasty error message in config.log where it belongs
13694 echo "$SDL_PKG_ERRORS" >&5
13697 elif test $pkg_failed = untried
; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13702 SDL_CFLAGS
=$pkg_cv_SDL_CFLAGS
13703 SDL_LIBS
=$pkg_cv_SDL_LIBS
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13705 $as_echo "yes" >&6; }
13706 SDL_CFLAGS
="${SDL_CFLAGS} -DHAVE_SDL=1"
13711 SDL_CFLAGS
=$pkg_cv_SDL_CFLAGS
13712 SDL_LIBS
=$pkg_cv_SDL_LIBS
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13714 $as_echo "yes" >&6; }
13715 SDL_CFLAGS
="${SDL_CFLAGS} -DHAVE_SDL=2"
13718 if test -n "$SDL_CFLAGS"; then :
13719 if test "$ac_cv_search_dlopen" = no
; then :
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13721 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13733 $as_echo_n "checking for cygwin... " >&6; }
13734 if ${sim_cv_os_cygwin+:} false
; then :
13735 $as_echo_n "(cached) " >&6
13737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13745 $EGREP "lose" >/dev
/null
2>&1; then :
13746 sim_cv_os_cygwin
=yes
13748 sim_cv_os_cygwin
=no
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13754 $as_echo "$sim_cv_os_cygwin" >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13757 $as_echo_n "checking for library containing tgetent... " >&6; }
13758 if ${ac_cv_search_tgetent+:} false
; then :
13759 $as_echo_n "(cached) " >&6
13761 ac_func_search_save_LIBS
=$LIBS
13762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13765 /* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13780 for ac_lib
in '' termcap tinfo curses ncurses
; do
13781 if test -z "$ac_lib"; then
13782 ac_res
="none required"
13785 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13787 if ac_fn_c_try_link
"$LINENO"; then :
13788 ac_cv_search_tgetent
=$ac_res
13790 rm -f core conftest.err conftest.
$ac_objext \
13792 if ${ac_cv_search_tgetent+:} false
; then :
13796 if ${ac_cv_search_tgetent+:} false
; then :
13799 ac_cv_search_tgetent
=no
13801 rm conftest.
$ac_ext
13802 LIBS
=$ac_func_search_save_LIBS
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13805 $as_echo "$ac_cv_search_tgetent" >&6; }
13806 ac_res
=$ac_cv_search_tgetent
13807 if test "$ac_res" != no
; then :
13808 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13809 TERMCAP_LIB
=$ac_cv_search_tgetent
13814 if test x
$sim_cv_os_cygwin = xyes
; then
13815 TERMCAP_LIB
="${TERMCAP_LIB} -luser32"
13819 if test -r ..
/readline
/Makefile
; then
13820 READLINE_LIB
=..
/readline
/readline
/libreadline.a
13821 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13824 $as_echo_n "checking for readline in -lreadline... " >&6; }
13825 if ${ac_cv_lib_readline_readline+:} false
; then :
13826 $as_echo_n "(cached) " >&6
13828 ac_check_lib_save_LIBS
=$LIBS
13829 LIBS
="-lreadline $TERMCAP_LIB $LIBS"
13830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13833 /* Override any GCC internal prototype to avoid an error.
13834 Use char because int might match the return type of a GCC
13835 builtin and then its argument prototype would still apply. */
13843 return readline ();
13848 if ac_fn_c_try_link
"$LINENO"; then :
13849 ac_cv_lib_readline_readline
=yes
13851 ac_cv_lib_readline_readline
=no
13853 rm -f core conftest.err conftest.
$ac_objext \
13854 conftest
$ac_exeext conftest.
$ac_ext
13855 LIBS
=$ac_check_lib_save_LIBS
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13858 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13859 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
13860 READLINE_LIB
=-lreadline
13862 as_fn_error $?
"the required \"readline\" library is missing" "$LINENO" 5
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13871 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13872 if ${sim_cv_decl_getopt_unistd_h+:} false
; then :
13873 $as_echo_n "(cached) " >&6
13875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 #include <unistd.h>
13881 extern int getopt (int, char *const*, const char *);
13886 if ac_fn_c_try_compile
"$LINENO"; then :
13887 sim_cv_decl_getopt_unistd_h
=yes
13889 sim_cv_decl_getopt_unistd_h
=no
13891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13895 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13896 if test $sim_cv_decl_getopt_unistd_h = yes; then
13898 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13905 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13906 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
13912 cat >>confdefs.h
<<_ACEOF
13913 #define HAVE_DECL_FFS $ac_have_decl
13916 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13917 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
13923 cat >>confdefs.h
<<_ACEOF
13924 #define HAVE_DECL_ASPRINTF $ac_have_decl
13927 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
13928 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
13934 cat >>confdefs.h
<<_ACEOF
13935 #define HAVE_DECL_VASPRINTF $ac_have_decl
13938 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13939 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
13945 cat >>confdefs.h
<<_ACEOF
13946 #define HAVE_DECL_SNPRINTF $ac_have_decl
13949 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13950 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
13956 cat >>confdefs.h
<<_ACEOF
13957 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13960 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
13961 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
13967 cat >>confdefs.h
<<_ACEOF
13968 #define HAVE_DECL_STRTOL $ac_have_decl
13971 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
13972 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
13978 cat >>confdefs.h
<<_ACEOF
13979 #define HAVE_DECL_STRTOUL $ac_have_decl
13982 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
13983 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
13989 cat >>confdefs.h
<<_ACEOF
13990 #define HAVE_DECL_STRTOLL $ac_have_decl
13993 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
13994 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
14000 cat >>confdefs.h
<<_ACEOF
14001 #define HAVE_DECL_STRTOULL $ac_have_decl
14004 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
14005 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
14011 cat >>confdefs.h
<<_ACEOF
14012 #define HAVE_DECL_STRVERSCMP $ac_have_decl
14015 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14016 if test "x$ac_cv_type_long_long" = xyes
; then :
14018 cat >>confdefs.h
<<_ACEOF
14019 #define HAVE_LONG_LONG 1
14022 # The cast to long int works around a bug in the HP C Compiler
14023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14025 # This bug is HP SR number 8606223364.
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14027 $as_echo_n "checking size of long long... " >&6; }
14028 if ${ac_cv_sizeof_long_long+:} false
; then :
14029 $as_echo_n "(cached) " >&6
14031 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14034 if test "$ac_cv_type_long_long" = yes; then
14035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14037 as_fn_error
77 "cannot compute sizeof (long long)
14038 See \`config.log' for more details" "$LINENO" 5; }
14040 ac_cv_sizeof_long_long
=0
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14046 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14050 cat >>confdefs.h
<<_ACEOF
14051 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14058 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
14059 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
14060 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
14066 cat >>confdefs.h
<<_ACEOF
14067 #define HAVE_DECL_BASENAME $ac_have_decl
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14077 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14078 # Check whether --enable-maintainer-mode was given.
14079 if test "${enable_maintainer_mode+set}" = set; then :
14080 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
14082 USE_MAINTAINER_MODE
=no
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14086 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14087 if test $USE_MAINTAINER_MODE = yes; then
14088 MAINTAINER_MODE_TRUE
=
14089 MAINTAINER_MODE_FALSE
='#'
14091 MAINTAINER_MODE_TRUE
='#'
14092 MAINTAINER_MODE_FALSE
=
14095 MAINT
=$MAINTAINER_MODE_TRUE
14098 am__api_version
='1.15'
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14101 $as_echo_n "checking whether build environment is sane... " >&6; }
14102 # Reject unsafe characters in $srcdir or the absolute working directory
14103 # name. Accept space and tab only in the latter.
14107 *[\\\"\
#\$\&\'\`$am_lf]*)
14108 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
14111 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
14112 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
14115 # Do 'set' in a subshell so we don't clobber the current shell's
14116 # arguments. Must try -L first in case configure is actually a
14117 # symlink; some systems play weird games with the mod time of symlinks
14118 # (eg FreeBSD returns the mod time of the symlink's containing
14122 for am_try
in 1 2; do
14123 echo "timestamp, slept: $am_has_slept" > conftest.
file
14124 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14125 if test "$*" = "X"; then
14127 set X
`ls -t "$srcdir/configure" conftest.file`
14129 if test "$*" != "X $srcdir/configure conftest.file" \
14130 && test "$*" != "X conftest.file $srcdir/configure"; then
14132 # If neither matched, then we have a broken ls. This can happen
14133 # if, for instance, CONFIG_SHELL is bash and it inherits a
14134 # broken ls alias from the environment. This has actually
14135 # happened. Such a system could not be considered "sane".
14136 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
14137 alias in your environment" "$LINENO" 5
14139 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
14146 test "$2" = conftest.
file
14152 as_fn_error $?
"newly created file is older than distributed files!
14153 Check your system clock" "$LINENO" 5
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14156 $as_echo "yes" >&6; }
14157 # If we didn't sleep, we still need to ensure time stamps of config.status and
14158 # generated files are strictly newer.
14160 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
14165 rm -f conftest.
file
14167 if test x
"${MISSING+set}" != xset
; then
14168 case $am_aux_dir in
14170 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
14172 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
14175 # Use eval to expand $SHELL
14176 if eval "$MISSING --is-lightweight"; then
14177 am_missing_run
="$MISSING "
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
14181 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
14184 if test x
"${install_sh+set}" != xset
; then
14185 case $am_aux_dir in
14187 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
14189 install_sh
="\${SHELL} $am_aux_dir/install-sh"
14193 # Installed binaries are usually stripped using 'strip' when the user
14194 # run "make install-strip". However 'strip' might not be the right
14195 # tool to use in cross-compilation environments, therefore Automake
14196 # will honor the 'STRIP' environment variable to overrule this program.
14197 if test "$cross_compiling" != no
; then
14198 if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14200 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202 $as_echo_n "checking for $ac_word... " >&6; }
14203 if ${ac_cv_prog_STRIP+:} false
; then :
14204 $as_echo_n "(cached) " >&6
14206 if test -n "$STRIP"; then
14207 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
14209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14210 for as_dir
in $PATH
14213 test -z "$as_dir" && as_dir
=.
14214 for ac_exec_ext
in '' $ac_executable_extensions; do
14215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
14217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14226 STRIP
=$ac_cv_prog_STRIP
14227 if test -n "$STRIP"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14229 $as_echo "$STRIP" >&6; }
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14237 if test -z "$ac_cv_prog_STRIP"; then
14239 # Extract the first word of "strip", so it can be a program name with args.
14240 set dummy strip
; ac_word
=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
14244 $as_echo_n "(cached) " >&6
14246 if test -n "$ac_ct_STRIP"; then
14247 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
14249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14250 for as_dir
in $PATH
14253 test -z "$as_dir" && as_dir
=.
14254 for ac_exec_ext
in '' $ac_executable_extensions; do
14255 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_ac_ct_STRIP
="strip"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
14267 if test -n "$ac_ct_STRIP"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14269 $as_echo "$ac_ct_STRIP" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14275 if test "x$ac_ct_STRIP" = x
; then
14278 case $cross_compiling:$ac_tool_warned in
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14282 ac_tool_warned
=yes ;;
14287 STRIP
="$ac_cv_prog_STRIP"
14291 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14294 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14295 if test -z "$MKDIR_P"; then
14296 if ${ac_cv_path_mkdir+:} false
; then :
14297 $as_echo_n "(cached) " >&6
14299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14300 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
14303 test -z "$as_dir" && as_dir
=.
14304 for ac_prog
in mkdir gmkdir
; do
14305 for ac_exec_ext
in '' $ac_executable_extensions; do
14306 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
14307 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14308 'mkdir (GNU coreutils) '* | \
14309 'mkdir (coreutils) '* | \
14310 'mkdir (fileutils) '4.1*)
14311 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
14321 test -d .
/--version && rmdir .
/--version
14322 if test "${ac_cv_path_mkdir+set}" = set; then
14323 MKDIR_P
="$ac_cv_path_mkdir -p"
14325 # As a last resort, use the slow shell script. Don't cache a
14326 # value for MKDIR_P within a source directory, because that will
14327 # break other packages using the cache if that directory is
14328 # removed, or if the value is a relative name.
14329 MKDIR_P
="$ac_install_sh -d"
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
14333 $as_echo "$MKDIR_P" >&6; }
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14336 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14338 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14339 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
14340 $as_echo_n "(cached) " >&6
14342 cat >conftest.
make <<\_ACEOF
14345 @
echo '@@@%%%=$(MAKE)=@@@%%%'
14347 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14348 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14349 *@@@
%%%=?
*=@@@
%%%*)
14350 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
14352 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
14354 rm -f conftest.
make
14356 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14358 $as_echo "yes" >&6; }
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14362 $as_echo "no" >&6; }
14363 SET_MAKE
="MAKE=${MAKE-make}"
14366 rm -rf .tst
2>/dev
/null
14367 mkdir .tst
2>/dev
/null
14368 if test -d .tst
; then
14373 rmdir .tst
2>/dev
/null
14375 DEPDIR
="${am__leading_dot}deps"
14377 ac_config_commands
="$ac_config_commands depfiles"
14380 am_make
=${MAKE-make}
14381 cat > confinc
<< 'END'
14383 @
echo this is the am__doit target
14386 # If we don't find an include directive, just comment out the code.
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14388 $as_echo_n "checking for style of include used by $am_make... " >&6; }
14392 # First try GNU make style include.
14393 echo "include confinc" > confmf
14394 # Ignore all kinds of additional output from 'make'.
14395 case `$am_make -s -f confmf 2> /dev/null` in #(
14396 *the\ am__doit\ target
*)
14397 am__include
=include
14402 # Now try BSD make style include.
14403 if test "$am__include" = "#"; then
14404 echo '.include "confinc"' > confmf
14405 case `$am_make -s -f confmf 2> /dev/null` in #(
14406 *the\ am__doit\ target
*)
14407 am__include
=.include
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14416 $as_echo "$_am_result" >&6; }
14417 rm -f confinc confmf
14419 # Check whether --enable-dependency-tracking was given.
14420 if test "${enable_dependency_tracking+set}" = set; then :
14421 enableval
=$enable_dependency_tracking;
14424 if test "x$enable_dependency_tracking" != xno
; then
14425 am_depcomp
="$ac_aux_dir/depcomp"
14429 if test "x$enable_dependency_tracking" != xno; then
14438 # Check whether --enable-silent-rules was given.
14439 if test "${enable_silent_rules+set}" = set; then :
14440 enableval
=$enable_silent_rules;
14443 case $enable_silent_rules in # (((
14444 yes) AM_DEFAULT_VERBOSITY
=0;;
14445 no
) AM_DEFAULT_VERBOSITY
=1;;
14446 *) AM_DEFAULT_VERBOSITY
=1;;
14448 am_make
=${MAKE-make}
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14450 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14451 if ${am_cv_make_support_nested_variables+:} false
; then :
14452 $as_echo_n "(cached) " >&6
14454 if $as_echo 'TRUE=$(BAR$(V))
14460 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
14461 am_cv_make_support_nested_variables
=yes
14463 am_cv_make_support_nested_variables
=no
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14467 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14468 if test $am_cv_make_support_nested_variables = yes; then
14470 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
14472 AM_V
=$AM_DEFAULT_VERBOSITY
14473 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
14477 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14478 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14479 # is not polluted with repeated "-I."
14480 am__isrc
=' -I$(srcdir)'
14481 # test to see if srcdir already configured
14482 if test -f $srcdir/config.status
; then
14483 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14487 # test whether we have cygpath
14488 if test -z "$CYGPATH_W"; then
14489 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
14490 CYGPATH_W
='cygpath -w'
14497 # Define the identity of the package.
14502 cat >>confdefs.h
<<_ACEOF
14503 #define PACKAGE "$PACKAGE"
14507 cat >>confdefs.h
<<_ACEOF
14508 #define VERSION "$VERSION"
14511 # Some tools Automake needs.
14513 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14516 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
14519 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14522 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
14525 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
14527 # For better backward compatibility. To be removed once Automake 1.9.x
14528 # dies out for good. For more background, see:
14529 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14530 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14531 mkdir_p
='$(MKDIR_P)'
14533 # We need awk for the "check" target (and possibly the TAP driver). The
14534 # system "awk" is bad on some platforms.
14535 # Always define AMTAR for backward compatibility. Yes, it's still used
14536 # in the wild :-( We should find a proper way to deprecate it ...
14537 AMTAR
='$${TAR-tar}'
14540 # We'll loop over all known methods to create a tar archive until one works.
14541 _am_tools
='gnutar pax cpio none'
14543 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
14549 depcc
="$CC" am_compiler_list
=
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14552 $as_echo_n "checking dependency style of $depcc... " >&6; }
14553 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
14554 $as_echo_n "(cached) " >&6
14556 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14557 # We make a subdir and do the tests there. Otherwise we can end up
14558 # making bogus files that we don't know about and never remove. For
14559 # instance it was reported that on HP-UX the gcc test will end up
14560 # making a dummy file named 'D' -- because '-MD' means "put the output
14562 rm -rf conftest.dir
14564 # Copy depcomp to subdir because otherwise we won't find it if we're
14565 # using a relative directory.
14566 cp "$am_depcomp" conftest.dir
14568 # We will build objects and dependencies in a subdirectory because
14569 # it helps to detect inapplicable dependency modes. For instance
14570 # both Tru64's cc and ICC support -MD to output dependencies as a
14571 # side effect of compilation, but ICC will put the dependencies in
14572 # the current directory while Tru64 will put them in the object
14576 am_cv_CC_dependencies_compiler_type
=none
14577 if test "$am_compiler_list" = ""; then
14578 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14580 am__universal
=false
14581 case " $depcc " in #(
14582 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
14585 for depmode
in $am_compiler_list; do
14586 # Setup a source with many dependencies, because some compilers
14587 # like to wrap large dependency lists on column 80 (with \), and
14588 # we should not choose a depcomp mode which is confused by this.
14590 # We need to recreate these files for each test, as the compiler may
14591 # overwrite some of them when testing with obscure command lines.
14592 # This happens at least with the AIX C compiler.
14594 for i
in 1 2 3 4 5 6; do
14595 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
14596 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14597 # Solaris 10 /bin/sh.
14598 echo '/* dummy */' > sub
/conftst
$i.h
14600 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14602 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14603 # mode. It turns out that the SunPro C++ compiler does not properly
14604 # handle '-M -o', and we need to detect this. Also, some Intel
14605 # versions had trouble with output in subdirs.
14606 am__obj
=sub
/conftest.
${OBJEXT-o}
14607 am__minus_obj
="-o $am__obj"
14610 # This depmode causes a compiler race in universal mode.
14611 test "$am__universal" = false ||
continue
14614 # After this tag, mechanisms are not by side-effect, so they'll
14615 # only be used when explicitly requested.
14616 if test "x$enable_dependency_tracking" = xyes
; then
14622 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
14623 # This compiler won't grok '-c -o', but also, the minuso test has
14624 # not run yet. These depmodes are late enough in the game, and
14625 # so weak that their functioning should not be impacted.
14626 am__obj
=conftest.
${OBJEXT-o}
14631 if depmode
=$depmode \
14632 source=sub
/conftest.c object
=$am__obj \
14633 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
14634 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
14635 >/dev
/null
2>conftest.err
&&
14636 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14637 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14638 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
14639 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
14640 # icc doesn't choke on unknown options, it will just issue warnings
14641 # or remarks (even with -Werror). So we grep stderr for any message
14642 # that says an option was ignored or not supported.
14643 # When given -MP, icc 7.0 and 7.1 complain thusly:
14644 # icc: Command line warning: ignoring option '-M'; no argument required
14645 # The diagnosis changed in icc 8.0:
14646 # icc: Command line remark: option '-MP' not supported
14647 if (grep 'ignoring option' conftest.err ||
14648 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
14649 am_cv_CC_dependencies_compiler_type
=$depmode
14656 rm -rf conftest.dir
14658 am_cv_CC_dependencies_compiler_type
=none
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14663 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14664 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
14667 test "x$enable_dependency_tracking" != xno \
14668 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
14669 am__fastdepCC_TRUE
=
14670 am__fastdepCC_FALSE
='#'
14672 am__fastdepCC_TRUE
='#'
14673 am__fastdepCC_FALSE
=
14678 # POSIX will say in a future version that running "rm -f" with no argument
14679 # is OK; and we want to be able to make that assumption in our Makefile
14680 # recipes. So use an aggressive probe to check that the usage we want is
14681 # actually supported "in the wild" to an acceptable degree.
14682 # See automake bug#10828.
14683 # To make any issue more visible, cause the running configure to be aborted
14684 # by default if the 'rm' program in use doesn't match our expectations; the
14685 # user can still override this though.
14686 if rm -f && rm -fr && rm -rf; then : OK
; else
14690 Your 'rm' program seems unable to run without file operands specified
14691 on the command line, even when the '-f' option is present. This is contrary
14692 to the behaviour of most rm programs out there, and not conforming with
14693 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14695 Please tell bug-automake@gnu.org about your system, including the value
14696 of your $PATH and any error possibly output before this message. This
14697 can help us improve future automake versions.
14700 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
14701 echo 'Configuration will proceed anyway, since you have set the' >&2
14702 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14706 Aborting the configuration process, to ensure you take notice of the issue.
14708 You can download and install GNU coreutils to get an 'rm' implementation
14709 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14711 If you want to complete the configuration process using your problematic
14712 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14713 to "yes", and re-run configure.
14716 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
14720 # Check whether --enable-silent-rules was given.
14721 if test "${enable_silent_rules+set}" = set; then :
14722 enableval
=$enable_silent_rules;
14725 case $enable_silent_rules in # (((
14726 yes) AM_DEFAULT_VERBOSITY
=0;;
14727 no
) AM_DEFAULT_VERBOSITY
=1;;
14728 *) AM_DEFAULT_VERBOSITY
=0;;
14730 am_make
=${MAKE-make}
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14732 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14733 if ${am_cv_make_support_nested_variables+:} false
; then :
14734 $as_echo_n "(cached) " >&6
14736 if $as_echo 'TRUE=$(BAR$(V))
14742 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
14743 am_cv_make_support_nested_variables
=yes
14745 am_cv_make_support_nested_variables
=no
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14749 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14750 if test $am_cv_make_support_nested_variables = yes; then
14752 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
14754 AM_V
=$AM_DEFAULT_VERBOSITY
14755 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
14760 # If a cpu ever has more than one simulator to choose from, use
14761 # --enable-sim=... to choose.
14762 # Check whether --enable-sim was given.
14763 if test "${enable_sim+set}" = set; then :
14764 enableval=$enable_sim; case "${enableval}" in
14766 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14771 # Check whether --enable-example-sims was given.
14772 if test "${enable_example_sims+set}" = set; then :
14773 enableval=$enable_example_sims;
14777 # Check whether --enable-targets was given.
14778 if test "${enable_targets+set}" = set; then :
14779 enableval=$enable_targets; case "${enableval}" in
14780 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all
'" "$LINENO" 5
14782 no) enable_targets= ;;
14783 *) enable_targets=$enableval ;;
14788 SIM_PRIMARY_TARGET=
14791 SIM_ENABLED_ARCHES=
14798 if test "${enable_sim}" != no; then
14799 for targ in `echo $target $enable_targets | sed 's
/,/ /g
'`
14801 sim_enable_arch_aarch64=false
14804 if test "${targ}" = "${target}"; then
14805 SIM_PRIMARY_TARGET=aarch64
14808 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14809 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14812 sim_enable_arch_aarch64=true
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14816 $as_echo_n "checking where to find the target cc... " >&6; }
14817 if test "x${build}" != "x${host}" ; then
14818 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14819 # We already found the complete path
14820 ac_dir=`dirname $CC_FOR_TARGET`
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14822 $as_echo "pre-installed in $ac_dir" >&6; }
14824 # Canadian cross, just use what we found
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14826 $as_echo "pre-installed" >&6; }
14830 case " ${configdirs} " in
14831 *" ${target_alias}-gcc "*) ;;
14835 if test $ok = yes; then
14836 # An in-tree tool is available and we can use it
14837 CC_FOR_TARGET='$
$r/$
(HOST_SUBDIR
)/${target_alias}-gcc'
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14839 $as_echo "just compiled" >&6; }
14840 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14841 # We already found the complete path
14842 ac_dir=`dirname $CC_FOR_TARGET`
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14844 $as_echo "pre-installed in $ac_dir" >&6; }
14845 elif test "x$target" = "x$host"; then
14846 # We can use an host tool
14847 CC_FOR_TARGET='$
(CC
)'
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14849 $as_echo "host tool" >&6; }
14851 # We need a cross tool
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14853 $as_echo "pre-installed" >&6; }
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14858 $as_echo_n "checking where to find the target as... " >&6; }
14859 if test "x${build}" != "x${host}" ; then
14860 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14861 # We already found the complete path
14862 ac_dir=`dirname $AS_FOR_TARGET`
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14864 $as_echo "pre-installed in $ac_dir" >&6; }
14866 # Canadian cross, just use what we found
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14868 $as_echo "pre-installed" >&6; }
14872 case " ${configdirs} " in
14873 *" \$(abs_builddir) "*) ;;
14877 if test $ok = yes; then
14878 # An in-tree tool is available and we can use it
14879 AS_FOR_TARGET='$
$r/$
(HOST_SUBDIR
)/\$
(abs_builddir
)/..
/gas
/as-new
'
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14881 $as_echo "just compiled" >&6; }
14882 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14883 # We already found the complete path
14884 ac_dir=`dirname $AS_FOR_TARGET`
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14886 $as_echo "pre-installed in $ac_dir" >&6; }
14887 elif test "x$target" = "x$host"; then
14888 # We can use an host tool
14889 AS_FOR_TARGET='$
(AS
)'
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14891 $as_echo "host tool" >&6; }
14893 # We need a cross tool
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14895 $as_echo "pre-installed" >&6; }
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14900 $as_echo_n "checking where to find the target ld... " >&6; }
14901 if test "x${build}" != "x${host}" ; then
14902 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14903 # We already found the complete path
14904 ac_dir=`dirname $LD_FOR_TARGET`
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14906 $as_echo "pre-installed in $ac_dir" >&6; }
14908 # Canadian cross, just use what we found
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14910 $as_echo "pre-installed" >&6; }
14914 case " ${configdirs} " in
14915 *" \$(abs_builddir) "*) ;;
14919 if test $ok = yes; then
14920 # An in-tree tool is available and we can use it
14921 LD_FOR_TARGET='$
$r/$
(HOST_SUBDIR
)/\$
(abs_builddir
)/..
/ld
/ld-new
'
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14923 $as_echo "just compiled" >&6; }
14924 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14925 # We already found the complete path
14926 ac_dir=`dirname $LD_FOR_TARGET`
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14928 $as_echo "pre-installed in $ac_dir" >&6; }
14929 elif test "x$target" = "x$host"; then
14930 # We can use an host tool
14931 LD_FOR_TARGET='$
(LD
)'
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14933 $as_echo "host tool" >&6; }
14935 # We need a cross tool
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14937 $as_echo "pre-installed" >&6; }
14946 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14947 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14948 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14949 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14953 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14955 if ${sim_enable_arch_aarch64}; then
14956 SIM_ENABLE_ARCH_aarch64_TRUE=
14957 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14959 SIM_ENABLE_ARCH_aarch64_TRUE
='#'
14960 SIM_ENABLE_ARCH_aarch64_FALSE
=
14963 sim_enable_arch_avr
=false
14966 if test "${targ}" = "${target}"; then
14967 SIM_PRIMARY_TARGET
=avr
14970 as_fn_append SIM_ENABLED_ARCHES
" avr"
14971 ac_config_files
="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14974 sim_enable_arch_avr
=true
14981 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14982 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14983 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14984 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14988 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14990 if ${sim_enable_arch_avr}; then
14991 SIM_ENABLE_ARCH_avr_TRUE
=
14992 SIM_ENABLE_ARCH_avr_FALSE
='#'
14994 SIM_ENABLE_ARCH_avr_TRUE
='#'
14995 SIM_ENABLE_ARCH_avr_FALSE
=
14998 sim_enable_arch_bfin
=false
15001 if test "${targ}" = "${target}"; then
15002 SIM_PRIMARY_TARGET
=bfin
15005 as_fn_append SIM_ENABLED_ARCHES
" bfin"
15006 ac_config_files
="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
15009 sim_enable_arch_bfin
=true
15016 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
15017 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
15018 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
15019 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
15023 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
15025 if ${sim_enable_arch_bfin}; then
15026 SIM_ENABLE_ARCH_bfin_TRUE
=
15027 SIM_ENABLE_ARCH_bfin_FALSE
='#'
15029 SIM_ENABLE_ARCH_bfin_TRUE
='#'
15030 SIM_ENABLE_ARCH_bfin_FALSE
=
15033 sim_enable_arch_bpf
=false
15036 if test "${targ}" = "${target}"; then
15037 SIM_PRIMARY_TARGET
=bpf
15040 as_fn_append SIM_ENABLED_ARCHES
" bpf"
15041 ac_config_files
="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
15044 sim_enable_arch_bpf
=true
15051 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
15052 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
15053 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
15054 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
15058 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
15060 if ${sim_enable_arch_bpf}; then
15061 SIM_ENABLE_ARCH_bpf_TRUE
=
15062 SIM_ENABLE_ARCH_bpf_FALSE
='#'
15064 SIM_ENABLE_ARCH_bpf_TRUE
='#'
15065 SIM_ENABLE_ARCH_bpf_FALSE
=
15068 sim_enable_arch_cr16
=false
15071 if test "${targ}" = "${target}"; then
15072 SIM_PRIMARY_TARGET
=cr16
15075 as_fn_append SIM_ENABLED_ARCHES
" cr16"
15076 ac_config_files
="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
15079 sim_enable_arch_cr16
=true
15086 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
15087 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
15088 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
15089 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
15093 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
15095 if ${sim_enable_arch_cr16}; then
15096 SIM_ENABLE_ARCH_cr16_TRUE
=
15097 SIM_ENABLE_ARCH_cr16_FALSE
='#'
15099 SIM_ENABLE_ARCH_cr16_TRUE
='#'
15100 SIM_ENABLE_ARCH_cr16_FALSE
=
15103 sim_enable_arch_cris
=false
15105 all|cris-
*-* | crisv32-
*-*)
15106 if test "${targ}" = "${target}"; then
15107 SIM_PRIMARY_TARGET
=cris
15110 as_fn_append SIM_ENABLED_ARCHES
" cris"
15111 ac_config_files
="$ac_config_files cris/.gdbinit:common/gdbinit.in"
15114 sim_enable_arch_cris
=true
15121 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
15122 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
15123 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
15124 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
15128 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
15130 if ${sim_enable_arch_cris}; then
15131 SIM_ENABLE_ARCH_cris_TRUE
=
15132 SIM_ENABLE_ARCH_cris_FALSE
='#'
15134 SIM_ENABLE_ARCH_cris_TRUE
='#'
15135 SIM_ENABLE_ARCH_cris_FALSE
=
15138 sim_enable_arch_d10v
=false
15141 if test "${targ}" = "${target}"; then
15142 SIM_PRIMARY_TARGET
=d10v
15145 as_fn_append SIM_ENABLED_ARCHES
" d10v"
15146 ac_config_files
="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
15149 sim_enable_arch_d10v
=true
15156 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
15157 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
15158 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
15159 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
15163 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
15165 if ${sim_enable_arch_d10v}; then
15166 SIM_ENABLE_ARCH_d10v_TRUE
=
15167 SIM_ENABLE_ARCH_d10v_FALSE
='#'
15169 SIM_ENABLE_ARCH_d10v_TRUE
='#'
15170 SIM_ENABLE_ARCH_d10v_FALSE
=
15173 sim_enable_arch_frv
=false
15176 if test "${targ}" = "${target}"; then
15177 SIM_PRIMARY_TARGET
=frv
15180 as_fn_append SIM_ENABLED_ARCHES
" frv"
15181 ac_config_files
="$ac_config_files frv/.gdbinit:common/gdbinit.in"
15184 sim_enable_arch_frv
=true
15191 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
15192 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
15193 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
15194 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
15198 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
15200 if ${sim_enable_arch_frv}; then
15201 SIM_ENABLE_ARCH_frv_TRUE
=
15202 SIM_ENABLE_ARCH_frv_FALSE
='#'
15204 SIM_ENABLE_ARCH_frv_TRUE
='#'
15205 SIM_ENABLE_ARCH_frv_FALSE
=
15208 sim_enable_arch_ft32
=false
15211 if test "${targ}" = "${target}"; then
15212 SIM_PRIMARY_TARGET
=ft32
15215 as_fn_append SIM_ENABLED_ARCHES
" ft32"
15216 ac_config_files
="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
15219 sim_enable_arch_ft32
=true
15226 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
15227 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
15228 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
15229 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
15233 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
15235 if ${sim_enable_arch_ft32}; then
15236 SIM_ENABLE_ARCH_ft32_TRUE
=
15237 SIM_ENABLE_ARCH_ft32_FALSE
='#'
15239 SIM_ENABLE_ARCH_ft32_TRUE
='#'
15240 SIM_ENABLE_ARCH_ft32_FALSE
=
15243 sim_enable_arch_h8300
=false
15246 if test "${targ}" = "${target}"; then
15247 SIM_PRIMARY_TARGET
=h8300
15250 as_fn_append SIM_ENABLED_ARCHES
" h8300"
15251 ac_config_files
="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
15254 sim_enable_arch_h8300
=true
15261 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
15262 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
15263 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
15264 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
15268 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
15270 if ${sim_enable_arch_h8300}; then
15271 SIM_ENABLE_ARCH_h8300_TRUE
=
15272 SIM_ENABLE_ARCH_h8300_FALSE
='#'
15274 SIM_ENABLE_ARCH_h8300_TRUE
='#'
15275 SIM_ENABLE_ARCH_h8300_FALSE
=
15278 sim_enable_arch_iq2000
=false
15281 if test "${targ}" = "${target}"; then
15282 SIM_PRIMARY_TARGET
=iq2000
15285 as_fn_append SIM_ENABLED_ARCHES
" iq2000"
15286 ac_config_files
="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
15289 sim_enable_arch_iq2000
=true
15296 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
15297 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
15298 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
15299 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
15303 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
15305 if ${sim_enable_arch_iq2000}; then
15306 SIM_ENABLE_ARCH_iq2000_TRUE
=
15307 SIM_ENABLE_ARCH_iq2000_FALSE
='#'
15309 SIM_ENABLE_ARCH_iq2000_TRUE
='#'
15310 SIM_ENABLE_ARCH_iq2000_FALSE
=
15313 sim_enable_arch_lm32
=false
15316 if test "${targ}" = "${target}"; then
15317 SIM_PRIMARY_TARGET
=lm32
15320 as_fn_append SIM_ENABLED_ARCHES
" lm32"
15321 ac_config_files
="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
15324 sim_enable_arch_lm32
=true
15331 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
15332 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
15333 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
15334 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
15338 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
15340 if ${sim_enable_arch_lm32}; then
15341 SIM_ENABLE_ARCH_lm32_TRUE
=
15342 SIM_ENABLE_ARCH_lm32_FALSE
='#'
15344 SIM_ENABLE_ARCH_lm32_TRUE
='#'
15345 SIM_ENABLE_ARCH_lm32_FALSE
=
15348 sim_enable_arch_m32c
=false
15351 if test "${targ}" = "${target}"; then
15352 SIM_PRIMARY_TARGET
=m32c
15355 as_fn_append SIM_ENABLED_ARCHES
" m32c"
15356 ac_config_files
="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
15359 sim_enable_arch_m32c
=true
15366 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
15367 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
15368 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
15369 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
15373 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
15375 if ${sim_enable_arch_m32c}; then
15376 SIM_ENABLE_ARCH_m32c_TRUE
=
15377 SIM_ENABLE_ARCH_m32c_FALSE
='#'
15379 SIM_ENABLE_ARCH_m32c_TRUE
='#'
15380 SIM_ENABLE_ARCH_m32c_FALSE
=
15383 sim_enable_arch_m32r
=false
15386 if test "${targ}" = "${target}"; then
15387 SIM_PRIMARY_TARGET
=m32r
15390 as_fn_append SIM_ENABLED_ARCHES
" m32r"
15391 ac_config_files
="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
15394 sim_enable_arch_m32r
=true
15401 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15402 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15403 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15404 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15408 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15410 if ${sim_enable_arch_m32r}; then
15411 SIM_ENABLE_ARCH_m32r_TRUE
=
15412 SIM_ENABLE_ARCH_m32r_FALSE
='#'
15414 SIM_ENABLE_ARCH_m32r_TRUE
='#'
15415 SIM_ENABLE_ARCH_m32r_FALSE
=
15418 sim_enable_arch_m68hc11
=false
15420 all|m68hc11-
*-*|m6811-
*-*)
15421 if test "${targ}" = "${target}"; then
15422 SIM_PRIMARY_TARGET
=m68hc11
15425 as_fn_append SIM_ENABLED_ARCHES
" m68hc11"
15426 ac_config_files
="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15429 sim_enable_arch_m68hc11
=true
15436 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15437 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15438 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15439 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15443 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15445 if ${sim_enable_arch_m68hc11}; then
15446 SIM_ENABLE_ARCH_m68hc11_TRUE
=
15447 SIM_ENABLE_ARCH_m68hc11_FALSE
='#'
15449 SIM_ENABLE_ARCH_m68hc11_TRUE
='#'
15450 SIM_ENABLE_ARCH_m68hc11_FALSE
=
15453 sim_enable_arch_mcore
=false
15456 if test "${targ}" = "${target}"; then
15457 SIM_PRIMARY_TARGET
=mcore
15460 as_fn_append SIM_ENABLED_ARCHES
" mcore"
15461 ac_config_files
="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15464 sim_enable_arch_mcore
=true
15471 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15472 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15473 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15474 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15478 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15480 if ${sim_enable_arch_mcore}; then
15481 SIM_ENABLE_ARCH_mcore_TRUE
=
15482 SIM_ENABLE_ARCH_mcore_FALSE
='#'
15484 SIM_ENABLE_ARCH_mcore_TRUE
='#'
15485 SIM_ENABLE_ARCH_mcore_FALSE
=
15488 sim_enable_arch_microblaze
=false
15490 all|microblaze
*-*-*)
15491 if test "${targ}" = "${target}"; then
15492 SIM_PRIMARY_TARGET
=microblaze
15495 as_fn_append SIM_ENABLED_ARCHES
" microblaze"
15496 ac_config_files
="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15499 sim_enable_arch_microblaze
=true
15506 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15507 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15508 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15509 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15513 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15515 if ${sim_enable_arch_microblaze}; then
15516 SIM_ENABLE_ARCH_microblaze_TRUE
=
15517 SIM_ENABLE_ARCH_microblaze_FALSE
='#'
15519 SIM_ENABLE_ARCH_microblaze_TRUE
='#'
15520 SIM_ENABLE_ARCH_microblaze_FALSE
=
15523 sim_enable_arch_mips
=false
15526 if test "${targ}" = "${target}"; then
15527 SIM_PRIMARY_TARGET
=mips
15530 as_fn_append SIM_ENABLED_ARCHES
" mips"
15531 ac_config_files
="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15534 sim_enable_arch_mips
=true
15541 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15542 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15543 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15544 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15548 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15550 if ${sim_enable_arch_mips}; then
15551 SIM_ENABLE_ARCH_mips_TRUE
=
15552 SIM_ENABLE_ARCH_mips_FALSE
='#'
15554 SIM_ENABLE_ARCH_mips_TRUE
='#'
15555 SIM_ENABLE_ARCH_mips_FALSE
=
15558 sim_enable_arch_mn10300
=false
15561 if test "${targ}" = "${target}"; then
15562 SIM_PRIMARY_TARGET
=mn10300
15565 as_fn_append SIM_ENABLED_ARCHES
" mn10300"
15566 ac_config_files
="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15569 sim_enable_arch_mn10300
=true
15576 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15577 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15578 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15579 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15583 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15585 if ${sim_enable_arch_mn10300}; then
15586 SIM_ENABLE_ARCH_mn10300_TRUE
=
15587 SIM_ENABLE_ARCH_mn10300_FALSE
='#'
15589 SIM_ENABLE_ARCH_mn10300_TRUE
='#'
15590 SIM_ENABLE_ARCH_mn10300_FALSE
=
15593 sim_enable_arch_moxie
=false
15596 if test "${targ}" = "${target}"; then
15597 SIM_PRIMARY_TARGET
=moxie
15600 as_fn_append SIM_ENABLED_ARCHES
" moxie"
15601 ac_config_files
="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15604 sim_enable_arch_moxie
=true
15611 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15612 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15613 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15614 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15618 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15620 if ${sim_enable_arch_moxie}; then
15621 SIM_ENABLE_ARCH_moxie_TRUE
=
15622 SIM_ENABLE_ARCH_moxie_FALSE
='#'
15624 SIM_ENABLE_ARCH_moxie_TRUE
='#'
15625 SIM_ENABLE_ARCH_moxie_FALSE
=
15628 sim_enable_arch_msp430
=false
15631 if test "${targ}" = "${target}"; then
15632 SIM_PRIMARY_TARGET
=msp430
15635 as_fn_append SIM_ENABLED_ARCHES
" msp430"
15636 ac_config_files
="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15639 sim_enable_arch_msp430
=true
15646 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15647 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15648 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15649 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15653 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15655 if ${sim_enable_arch_msp430}; then
15656 SIM_ENABLE_ARCH_msp430_TRUE
=
15657 SIM_ENABLE_ARCH_msp430_FALSE
='#'
15659 SIM_ENABLE_ARCH_msp430_TRUE
='#'
15660 SIM_ENABLE_ARCH_msp430_FALSE
=
15663 sim_enable_arch_or1k
=false
15666 if test "${targ}" = "${target}"; then
15667 SIM_PRIMARY_TARGET
=or1k
15670 as_fn_append SIM_ENABLED_ARCHES
" or1k"
15671 ac_config_files
="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15674 sim_enable_arch_or1k
=true
15681 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15682 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15683 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15684 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15688 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15690 if ${sim_enable_arch_or1k}; then
15691 SIM_ENABLE_ARCH_or1k_TRUE
=
15692 SIM_ENABLE_ARCH_or1k_FALSE
='#'
15694 SIM_ENABLE_ARCH_or1k_TRUE
='#'
15695 SIM_ENABLE_ARCH_or1k_FALSE
=
15698 sim_enable_arch_ppc
=false
15701 if test "${targ}" = "${target}"; then
15702 SIM_PRIMARY_TARGET
=ppc
15705 as_fn_append SIM_ENABLED_ARCHES
" ppc"
15706 ac_config_files
="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15709 sim_enable_arch_ppc
=true
15716 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15717 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15718 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15719 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15723 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15725 if ${sim_enable_arch_ppc}; then
15726 SIM_ENABLE_ARCH_ppc_TRUE
=
15727 SIM_ENABLE_ARCH_ppc_FALSE
='#'
15729 SIM_ENABLE_ARCH_ppc_TRUE
='#'
15730 SIM_ENABLE_ARCH_ppc_FALSE
=
15733 sim_enable_arch_pru
=false
15736 if test "${targ}" = "${target}"; then
15737 SIM_PRIMARY_TARGET
=pru
15740 as_fn_append SIM_ENABLED_ARCHES
" pru"
15741 ac_config_files
="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15744 sim_enable_arch_pru
=true
15751 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15752 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15753 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15754 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15758 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15760 if ${sim_enable_arch_pru}; then
15761 SIM_ENABLE_ARCH_pru_TRUE
=
15762 SIM_ENABLE_ARCH_pru_FALSE
='#'
15764 SIM_ENABLE_ARCH_pru_TRUE
='#'
15765 SIM_ENABLE_ARCH_pru_FALSE
=
15768 sim_enable_arch_riscv
=false
15771 if test "${targ}" = "${target}"; then
15772 SIM_PRIMARY_TARGET
=riscv
15775 as_fn_append SIM_ENABLED_ARCHES
" riscv"
15776 ac_config_files
="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15779 sim_enable_arch_riscv
=true
15786 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15787 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15788 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15789 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15793 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15795 if ${sim_enable_arch_riscv}; then
15796 SIM_ENABLE_ARCH_riscv_TRUE
=
15797 SIM_ENABLE_ARCH_riscv_FALSE
='#'
15799 SIM_ENABLE_ARCH_riscv_TRUE
='#'
15800 SIM_ENABLE_ARCH_riscv_FALSE
=
15803 sim_enable_arch_rl78
=false
15806 if test "${targ}" = "${target}"; then
15807 SIM_PRIMARY_TARGET
=rl78
15810 as_fn_append SIM_ENABLED_ARCHES
" rl78"
15811 ac_config_files
="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15814 sim_enable_arch_rl78
=true
15821 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15822 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15823 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15824 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15828 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15830 if ${sim_enable_arch_rl78}; then
15831 SIM_ENABLE_ARCH_rl78_TRUE
=
15832 SIM_ENABLE_ARCH_rl78_FALSE
='#'
15834 SIM_ENABLE_ARCH_rl78_TRUE
='#'
15835 SIM_ENABLE_ARCH_rl78_FALSE
=
15838 sim_enable_arch_rx
=false
15841 if test "${targ}" = "${target}"; then
15842 SIM_PRIMARY_TARGET
=rx
15845 as_fn_append SIM_ENABLED_ARCHES
" rx"
15846 ac_config_files
="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15849 sim_enable_arch_rx
=true
15856 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15857 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15858 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15859 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15863 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15865 if ${sim_enable_arch_rx}; then
15866 SIM_ENABLE_ARCH_rx_TRUE
=
15867 SIM_ENABLE_ARCH_rx_FALSE
='#'
15869 SIM_ENABLE_ARCH_rx_TRUE
='#'
15870 SIM_ENABLE_ARCH_rx_FALSE
=
15873 sim_enable_arch_sh
=false
15876 if test "${targ}" = "${target}"; then
15877 SIM_PRIMARY_TARGET
=sh
15880 as_fn_append SIM_ENABLED_ARCHES
" sh"
15881 ac_config_files
="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15884 sim_enable_arch_sh
=true
15891 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15892 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15893 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15894 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15898 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15900 if ${sim_enable_arch_sh}; then
15901 SIM_ENABLE_ARCH_sh_TRUE
=
15902 SIM_ENABLE_ARCH_sh_FALSE
='#'
15904 SIM_ENABLE_ARCH_sh_TRUE
='#'
15905 SIM_ENABLE_ARCH_sh_FALSE
=
15908 sim_enable_arch_erc32
=false
15911 if test "${targ}" = "${target}"; then
15912 SIM_PRIMARY_TARGET
=erc32
15915 as_fn_append SIM_ENABLED_ARCHES
" erc32"
15916 ac_config_files
="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15919 sim_enable_arch_erc32
=true
15926 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15927 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15928 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15929 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15933 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15935 if ${sim_enable_arch_erc32}; then
15936 SIM_ENABLE_ARCH_erc32_TRUE
=
15937 SIM_ENABLE_ARCH_erc32_FALSE
='#'
15939 SIM_ENABLE_ARCH_erc32_TRUE
='#'
15940 SIM_ENABLE_ARCH_erc32_FALSE
=
15943 sim_enable_arch_v850
=false
15946 if test "${targ}" = "${target}"; then
15947 SIM_PRIMARY_TARGET
=v850
15950 as_fn_append SIM_ENABLED_ARCHES
" v850"
15951 ac_config_files
="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15954 sim_enable_arch_v850
=true
15961 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15962 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15963 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15964 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15968 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15970 if ${sim_enable_arch_v850}; then
15971 SIM_ENABLE_ARCH_v850_TRUE
=
15972 SIM_ENABLE_ARCH_v850_FALSE
='#'
15974 SIM_ENABLE_ARCH_v850_TRUE
='#'
15975 SIM_ENABLE_ARCH_v850_FALSE
=
15981 if test "x${enable_example_sims}" = xyes
; then
15986 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15987 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15988 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15990 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15993 as_fn_append SIM_ENABLED_ARCHES
" example-synacor"
15994 ac_config_files
="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15998 if test "${enable_example_sims}" = "yes"; then
15999 SIM_ENABLE_ARCH_examples_TRUE
=
16000 SIM_ENABLE_ARCH_examples_FALSE
='#'
16002 SIM_ENABLE_ARCH_examples_TRUE
='#'
16003 SIM_ENABLE_ARCH_examples_FALSE
=
16007 if test "$ENABLE_SIM" = "yes"; then
16009 ENABLE_SIM_FALSE
='#'
16011 ENABLE_SIM_TRUE
='#'
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
16017 $as_echo_n "checking whether to force sim alignment... " >&6; }
16019 # Check whether --enable-sim-alignment was given.
16020 if test "${enable_sim_alignment+set}" = set; then :
16021 enableval
=$enable_sim_alignment; case "${enableval}" in
16022 yes | strict | STRICT
) sim_alignment
="STRICT_ALIGNMENT";;
16023 no | nonstrict | NONSTRICT
) sim_alignment
="NONSTRICT_ALIGNMENT";;
16024 forced | FORCED
) sim_alignment
="FORCED_ALIGNMENT";;
16025 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
16029 cat >>confdefs.h
<<_ACEOF
16030 #define WITH_ALIGNMENT ${sim_alignment:-0}
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16034 $as_echo "${sim_alignment:-no}" >&6; }
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
16038 $as_echo_n "checking whether to enable sim asserts... " >&6; }
16040 # Check whether --enable-sim-assert was given.
16041 if test "${enable_sim_assert+set}" = set; then :
16042 enableval
=$enable_sim_assert; case "${enableval}" in
16043 yes) sim_assert
="1";;
16044 no
) sim_assert
="0";;
16045 *) as_fn_error $?
"--enable-sim-assert does not take a value" "$LINENO" 5;;
16049 cat >>confdefs.h
<<_ACEOF
16050 #define WITH_ASSERT $sim_assert
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
16054 $as_echo "$sim_assert" >&6; }
16059 cgendir
='$(srcdir)/../../cgen'
16060 if test -r ${srcdir}/..
/cgen
/iformat.scm
; then
16061 cgendir
='$(srcdir)/../cgen'
16063 # Check whether --enable-cgen-maint was given.
16064 if test "${enable_cgen_maint+set}" = set; then :
16065 enableval
=$enable_cgen_maint; case "${enableval}" in
16066 yes) cgen_maint
=yes ;;
16067 no
) cgen_maint
=no
;;
16069 # Argument is a directory where cgen can be found. In some
16070 # future world cgen could be installable, but right now this
16071 # is not the case. Instead we assume the directory is a path
16072 # to the cgen source tree.
16074 if test -r ${enableval}/iformat.scm
; then
16075 # This looks like a cgen source tree.
16076 cgendir
=${enableval}
16078 as_fn_error $?
"${enableval} doesn't look like a cgen source tree" "$LINENO" 5
16083 if test x
${cgen_maint} != xno
; then
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
16093 $as_echo_n "checking for sim debug setting... " >&6; }
16095 # Check whether --enable-sim-debug was given.
16096 if test "${enable_sim_debug+set}" = set; then :
16097 enableval
=$enable_sim_debug; case "${enableval}" in
16098 yes) sim_debug
="7";;
16099 no
) sim_debug
="0";;
16100 *) sim_debug
="($enableval)";;
16103 if test "$sim_debug" != "0"; then
16105 cat >>confdefs.h
<<_ACEOF
16106 #define DEBUG $sim_debug
16111 cat >>confdefs.h
<<_ACEOF
16112 #define WITH_DEBUG $sim_debug
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
16116 $as_echo "$sim_debug" >&6; }
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
16119 $as_echo_n "checking whether to force sim endianness... " >&6; }
16121 # Check whether --enable-sim-endian was given.
16122 if test "${enable_sim_endian+set}" = set; then :
16123 enableval
=$enable_sim_endian; case "${enableval}" in
16124 b
*|B
*) sim_endian
="BFD_ENDIAN_BIG";;
16125 l
*|L
*) sim_endian
="BFD_ENDIAN_LITTLE";;
16127 *) as_fn_error $?
"\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
16131 cat >>confdefs.h
<<_ACEOF
16132 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16136 $as_echo "${sim_alignment:-no}" >&6; }
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
16140 $as_echo_n "checking default sim environment setting... " >&6; }
16141 sim_environment
="ALL_ENVIRONMENT"
16142 # Check whether --enable-sim-environment was given.
16143 if test "${enable_sim_environment+set}" = set; then :
16144 enableval
=$enable_sim_environment; case "${enableval}" in
16145 all | ALL
) sim_environment
="ALL_ENVIRONMENT";;
16146 user | USER
) sim_environment
="USER_ENVIRONMENT";;
16147 virtual | VIRTUAL
) sim_environment
="VIRTUAL_ENVIRONMENT";;
16148 operating | OPERATING
) sim_environment
="OPERATING_ENVIRONMENT";;
16149 *) as_fn_error $?
"Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16153 cat >>confdefs.h
<<_ACEOF
16154 #define WITH_ENVIRONMENT $sim_environment
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
16158 $as_echo "$sim_environment" >&6; }
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
16161 $as_echo_n "checking for sim hardware settings... " >&6; }
16162 # Check whether --enable-sim-hardware was given.
16163 if test "${enable_sim_hardware+set}" = set; then :
16164 enableval
=$enable_sim_hardware;
16166 enable_sim_hardware
="yes"
16170 if test "$enable_sim_hardware" = no
; then
16171 sim_hw_cflags
="-DWITH_HW=0"
16172 elif test "$enable_sim_hardware" = yes; then
16173 sim_hw_cflags
="-DWITH_HW=1"
16174 sim_hw_sockser
="dv-sockser.o"
16175 sim_hw_cflags
="$sim_hw_cflags -DHAVE_DV_SOCKSER"
16177 as_fn_error $?
"unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
16179 if test "$enable_sim_hardware" = "yes"; then
16180 SIM_ENABLE_HW_TRUE
=
16181 SIM_ENABLE_HW_FALSE
='#'
16183 SIM_ENABLE_HW_TRUE
='#'
16184 SIM_ENABLE_HW_FALSE
=
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
16188 $as_echo "${enable_sim_hardware}" >&6; }
16189 SIM_HW_CFLAGS
=$sim_hw_cflags
16191 SIM_HW_SOCKSER
=$sim_hw_sockser
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
16195 $as_echo_n "checking sim inline settings... " >&6; }
16196 sim_inline
="-DDEFAULT_INLINE=0"
16197 # Check whether --enable-sim-inline was given.
16198 if test "${enable_sim_inline+set}" = set; then :
16199 enableval
=$enable_sim_inline; sim_inline
=""
16200 case "$enableval" in
16201 no
) sim_inline
="-DDEFAULT_INLINE=0";;
16202 0) sim_inline
="-DDEFAULT_INLINE=0";;
16203 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
16204 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
16205 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
16208 *_INLINE
=*) new_flag
="-D$x";;
16209 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
16210 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
16211 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
16213 if test x
"$sim_inline" = x
""; then
16214 sim_inline
="$new_flag"
16216 sim_inline
="$sim_inline $new_flag"
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
16223 $as_echo "$sim_inline" >&6; }
16224 SIM_INLINE
=$sim_inline
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
16228 $as_echo_n "checking for sim profile settings... " >&6; }
16231 # Check whether --enable-sim-profile was given.
16232 if test "${enable_sim_profile+set}" = set; then :
16233 enableval
=$enable_sim_profile; case "${enableval}" in
16234 yes) profile
="1" sim_profile
="-1";;
16235 no
) profile
="0" sim_profile
="0";;
16237 profile
="(${enableval})" sim_profile
="(${enableval})";;
16241 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
16242 if test x
"$sim_profile" = x
; then
16243 sim_profile
="(PROFILE_$x"
16245 sim_profile
="${sim_profile}|PROFILE_$x"
16248 sim_profile
="$sim_profile)" ;;
16252 cat >>confdefs.h
<<_ACEOF
16253 #define PROFILE $profile
16257 cat >>confdefs.h
<<_ACEOF
16258 #define WITH_PROFILE $sim_profile
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16262 $as_echo "$sim_profile" >&6; }
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16265 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16266 # Check whether --enable-sim-reserved-bits was given.
16267 if test "${enable_sim_reserved_bits+set}" = set; then :
16268 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
16270 *) as_fn_error $?
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16274 if test "x${enable_sim_reserved_bits}" != xno
; then
16275 sim_reserved_bits
=1
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16277 $as_echo "yes" >&6; }
16279 sim_reserved_bits
=0
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281 $as_echo "no" >&6; }
16284 cat >>confdefs.h
<<_ACEOF
16285 #define WITH_RESERVED_BITS $sim_reserved_bits
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16290 $as_echo_n "checking for sim cache size... " >&6; }
16292 # Check whether --enable-sim-scache was given.
16293 if test "${enable_sim_scache+set}" = set; then :
16294 enableval
=$enable_sim_scache; case "${enableval}" in
16296 no
) sim_scache
="0";;
16297 [0-9]*) sim_scache
="${enableval}";;
16298 *) as_fn_error $?
"\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16303 cat >>confdefs.h
<<_ACEOF
16304 #define WITH_SCACHE $sim_scache
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16308 $as_echo "$sim_scache" >&6; }
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
16311 $as_echo_n "checking number of sim cpus to support... " >&6; }
16312 default_sim_smp
="0"
16313 sim_smp
="$default_sim_smp"
16314 # Check whether --enable-sim-smp was given.
16315 if test "${enable_sim_smp+set}" = set; then :
16316 enableval
=$enable_sim_smp; case "${enableval}" in
16319 *) sim_smp
="$enableval";;
16322 IGEN_FLAGS_SMP
="-N ${sim_smp}"
16324 if test "x$sim_smp" = x0
; then :
16328 cat >>confdefs.h
<<_ACEOF
16329 #define WITH_SMP $sim_smp
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
16334 $as_echo "$sim_smp" >&6; }
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16337 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16339 # Check whether --enable-sim-stdio was given.
16340 if test "${enable_sim_stdio+set}" = set; then :
16341 enableval
=$enable_sim_stdio; case "${enableval}" in
16342 yes) sim_stdio
="DO_USE_STDIO";;
16343 no
) sim_stdio
="DONT_USE_STDIO";;
16344 *) as_fn_error $?
"Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16348 cat >>confdefs.h
<<_ACEOF
16349 #define WITH_STDIO $sim_stdio
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16353 $as_echo "$sim_stdio" >&6; }
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16356 $as_echo_n "checking for sim trace settings... " >&6; }
16357 sim_trace
="~TRACE_debug"
16358 # Check whether --enable-sim-trace was given.
16359 if test "${enable_sim_trace+set}" = set; then :
16360 enableval
=$enable_sim_trace; case "${enableval}" in
16361 yes) sim_trace
="-1";;
16362 no
) sim_trace
="0";;
16364 sim_trace
="'(${enableval})'";;
16367 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
16368 if test x
"$sim_trace" = x
; then
16369 sim_trace
="(TRACE_$x"
16371 sim_trace
="${sim_trace}|TRACE_$x"
16374 sim_trace
="$sim_trace)" ;;
16378 cat >>confdefs.h
<<_ACEOF
16379 #define WITH_TRACE $sim_trace
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16383 $as_echo "$sim_trace" >&6; }
16385 # Check whether --enable-werror was given.
16386 if test "${enable_werror+set}" = set; then :
16387 enableval
=$enable_werror; case "${enableval}" in
16388 yes | y
) ERROR_ON_WARNING
="yes" ;;
16389 no | n
) ERROR_ON_WARNING
="no" ;;
16390 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16395 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16396 ERROR_ON_WARNING
=yes
16400 if test "${ERROR_ON_WARNING}" = yes ; then
16401 WERROR_CFLAGS
="-Werror"
16404 build_warnings
="-Wall -Wpointer-arith
16405 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function
16406 -Wno-switch -Wno-char-subscripts
16407 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
16408 -Wno-sign-compare -Wno-error=maybe-uninitialized
16409 -Wno-error=deprecated-register
16410 -Wimplicit-fallthrough=5
16413 -Wmissing-declarations
16415 build_warnings
="$build_warnings
16416 -Wdeclaration-after-statement
16417 -Wdeprecated-non-prototype
16418 -Wimplicit-function-declaration
16420 -Wincompatible-function-pointer-types
16421 -Wincompatible-pointer-types
16423 -Wmisleading-indentation
16424 -Wmissing-parameter-type
16425 -Wmissing-prototypes
16426 -Wold-style-declaration
16427 -Wold-style-definition
16431 -Wshift-negative-value
16432 -Wstrict-prototypes
16433 -Wno-enum-conversion
16435 build_build_warnings
="
16436 -Wno-stringop-truncation
16437 -Wno-implicit-fallthrough
16443 # Enable -Wno-format by default when using gcc on mingw since many
16444 # GCC versions complain about %I64.
16445 build_warnings
="$build_warnings -Wno-format" ;;
16447 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16448 # doesn't understand.
16449 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16450 # Solaris 11 <unistd.h> marks vfork deprecated.
16451 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16453 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16454 # but there's a special case for this below.
16455 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16458 # Check whether --enable-build-warnings was given.
16459 if test "${enable_build_warnings+set}" = set; then :
16460 enableval
=$enable_build_warnings; case "${enableval}" in
16462 no
) build_warnings
="-w";;
16463 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16464 build_warnings
="${build_warnings} ${t}";;
16465 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16466 build_warnings
="${t} ${build_warnings}";;
16467 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16469 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16470 echo "Setting compiler warning flags = $build_warnings" 6>&1
16473 # Check whether --enable-sim-build-warnings was given.
16474 if test "${enable_sim_build_warnings+set}" = set; then :
16475 enableval
=$enable_sim_build_warnings; case "${enableval}" in
16477 no
) build_warnings
="-w";;
16478 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16479 build_warnings
="${build_warnings} ${t}";;
16480 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16481 build_warnings
="${t} ${build_warnings}";;
16482 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16484 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16485 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16489 BUILD_WARN_CFLAGS
=""
16490 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16495 $as_echo_n "checking compiler warning flags... " >&6; }
16496 # Separate out the -Werror flag as some files just cannot be
16497 # compiled with it enabled.
16498 for w
in ${build_warnings}; do
16500 -Werr*) WERROR_CFLAGS
=-Werror ;;
16504 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16505 -Wformat-nonliteral)
16513 saved_CFLAGS
="$CFLAGS"
16514 CFLAGS
="$CFLAGS -Werror $wtest"
16515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16516 /* end confdefs.h. */
16526 if ac_fn_c_try_compile
"$LINENO"; then :
16527 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16530 CFLAGS
="$saved_CFLAGS"
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16535 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16538 if test "x
$cross_compiling" = "xno
"; then :
16539 SAVE_WARN_CFLAGS=$WARN_CFLAGS
16540 build_warnings=$build_build_warnings
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags
" >&5
16542 $as_echo_n "checking compiler warning flags...
" >&6; }
16543 # Separate out the -Werror flag as some files just cannot be
16544 # compiled with it enabled.
16545 for w in ${build_warnings}; do
16547 -Werr*) WERROR_CFLAGS=-Werror ;;
16551 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16552 -Wformat-nonliteral)
16560 saved_CFLAGS="$CFLAGS"
16561 CFLAGS="$CFLAGS -Werror $wtest"
16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16573 if ac_fn_c_try_compile "$LINENO"; then :
16574 WARN_CFLAGS="${WARN_CFLAGS} $w"
16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577 CFLAGS="$saved_CFLAGS"
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16582 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16584 BUILD_WARN_CFLAGS
=$WARN_CFLAGS
16585 WARN_CFLAGS
=$SAVE_WARN_CFLAGS
16586 BUILD_WERROR_CFLAGS
=$WERROR_CFLAGS
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-shadow=local is supported" >&5
16591 $as_echo_n "checking whether -Wno-shadow=local is supported... " >&6; }
16592 w
="-Wno-shadow=local"
16595 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16596 -Wformat-nonliteral)
16604 saved_CFLAGS
="$CFLAGS"
16605 CFLAGS
="$CFLAGS -Werror $wtest"
16606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16617 if ac_fn_c_try_compile
"$LINENO"; then :
16618 SIM_CFLAG_WNO_SHADOW_LOCAL
=-Wno-shadow=local
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622 $as_echo "yes" >&6; }
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16626 $as_echo "no" >&6; }
16628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16629 CFLAGS
="$saved_CFLAGS"
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-unused-but-set-variable is supported" >&5
16632 $as_echo_n "checking whether -Wno-unused-but-set-variable is supported... " >&6; }
16633 w
="-Wno-unused-but-set-variable"
16636 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16637 -Wformat-nonliteral)
16645 saved_CFLAGS
="$CFLAGS"
16646 CFLAGS
="$CFLAGS -Werror $wtest"
16647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16658 if ac_fn_c_try_compile
"$LINENO"; then :
16659 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16663 $as_echo "yes" >&6; }
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16667 $as_echo "no" >&6; }
16669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16670 CFLAGS
="$saved_CFLAGS"
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16676 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16677 # Check whether --enable-sim-frv-trapdump was given.
16678 if test "${enable_sim_frv_trapdump+set}" = set; then :
16679 enableval
=$enable_sim_frv_trapdump; case "${enableval}" in
16681 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16685 if test "x${enable_sim_frv_trapdump}" = xyes
; then
16686 SIM_FRV_TRAPDUMP_FLAGS
="-DTRAPDUMP=1"
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16688 $as_echo "yes" >&6; }
16690 SIM_FRV_TRAPDUMP_FLAGS
="-DTRAPDUMP=0"
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692 $as_echo "no" >&6; }
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
16698 $as_echo_n "checking mips subtarget... " >&6; }
16699 SIM_MIPS_SUBTARGET
=
16700 case ${target} in #(
16702 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16704 SIM_MIPS_SUBTARGET
="-DSUBTARGET_R3900=1" ;; #(
16706 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16708 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16710 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16712 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
16717 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
16721 $as_echo_n "checking mips bitsize... " >&6; }
16722 SIM_MIPS_BITSIZE
=64
16723 case ${target} in #(
16725 SIM_MIPS_BITSIZE
=64 ;; #(
16727 SIM_MIPS_BITSIZE
=64 ;; #(
16729 SIM_MIPS_BITSIZE
=64 ;; #(
16731 SIM_MIPS_BITSIZE
=64 ;; #(
16733 SIM_MIPS_BITSIZE
=32 ;; #(
16735 SIM_MIPS_BITSIZE
=64 ;; #(
16737 SIM_MIPS_BITSIZE
=32 ;; #(
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
16742 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
16746 $as_echo_n "checking mips fpu bitsize... " >&6; }
16747 SIM_MIPS_FPU_BITSIZE
=64
16748 case ${target} in #(
16750 SIM_MIPS_FPU_BITSIZE
=32 ;; #(
16752 SIM_MIPS_FPU_BITSIZE
=64 ;; #(
16754 SIM_MIPS_FPU_BITSIZE
=64 ;; #(
16756 SIM_MIPS_FPU_BITSIZE
=64 ;; #(
16758 SIM_MIPS_FPU_BITSIZE
=64 ;; #(
16760 SIM_MIPS_FPU_BITSIZE
=32 ;; #(
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
16765 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16768 SIM_MIPS_GEN
=SINGLE
16769 sim_mips_single_machine
="-M mipsIV"
16770 sim_mips_m16_machine
="-M mips16,mipsIII"
16771 sim_mips_single_filter
="32,64,f"
16772 sim_mips_m16_filter
="16"
16773 case ${target} in #(
16775 SIM_MIPS_GEN
=SINGLE
16776 sim_mips_single_filter
="32,f"
16777 sim_mips_single_machine
="-M r3900" ;; #(
16780 sim_mips_single_machine
="-M vr4100"
16781 sim_mips_m16_machine
="-M vr4100" ;; #(
16784 sim_mips_multi_configs
="\
16785 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16786 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16787 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16788 vr5400:mipsIV,vr5400:32,64,f:mips5400\
16789 vr5500:mipsIV,vr5500:32,64,f:mips5500"
16790 sim_mips_multi_default
=mips5000
;; #(
16791 mips
*-sde-elf* | mips
*-mti-elf*) :
16793 sim_mips_multi_configs
="\
16794 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16795 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16796 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16797 sim_mips_multi_default
=mipsisa64r2
;; #(
16799 SIM_MIPS_GEN
=M16
;; #(
16802 sim_mips_multi_configs
="\
16803 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16804 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16805 sim_mips_multi_default
=mipsisa32r2
;; #(
16807 SIM_MIPS_GEN
=SINGLE
16808 sim_mips_single_machine
="-M mips32r6"
16809 sim_mips_single_filter
="32,f" ;; #(
16812 sim_mips_single_machine
="-M mips32,mips16,mips16e,smartmips"
16813 sim_mips_m16_machine
="-M mips16,mips16e,mips32"
16814 sim_mips_single_filter
="32,f" ;; #(
16817 sim_mips_single_machine
="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16818 sim_mips_m16_machine
="-M mips16,mips16e,mips64r2" ;; #(
16820 SIM_MIPS_GEN
=SINGLE
16821 sim_mips_single_machine
="-M mips64r6" ;; #(
16823 SIM_MIPS_GEN
=SINGLE
16824 sim_mips_single_machine
="-M mips64,mips3d,sb1" ;; #(
16827 sim_mips_single_machine
="-M mips64,mips3d,mips16,mips16e,mdmx"
16828 sim_mips_m16_machine
="-M mips16,mips16e,mips64" ;; #(
16831 sim_mips_single_machine
="-M mipsIII,mips16"
16832 sim_mips_m16_machine
="-M mips16,mipsIII"
16833 sim_mips_single_filter
="32,f" ;; #(
16835 SIM_MIPS_GEN
=SINGLE
16836 sim_mips_single_filter
="32,f" ;; #(
16841 SIM_MIPS_IGEN_ITABLE_FLAGS
=
16842 SIM_MIPS_MULTI_SRC
=
16843 SIM_MIPS_MULTI_OBJ
=
16844 SIM_MIPS_MULTI_IGEN_CONFIGS
=
16845 if test "x$SIM_MIPS_GEN" = x
"MULTI"; then :
16846 if test -z "${sim_mips_multi_configs}" ||
test -z "${sim_mips_multi_default}"; then :
16847 as_fn_error $?
"Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16850 as_dir
=mips
; as_fn_mkdir_p
16851 rm -f mips
/multi-include.h mips
/multi-run.c
16852 sim_mips_seen_default
=no
16854 cat << __EOF__ > mips/multi-run.c
16855 /* Main entry point for MULTI simulators.
16856 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16858 This program is free software; you can redistribute it and/or modify
16859 it under the terms of the GNU General Public License as published by
16860 the Free Software Foundation; either version 3 of the License, or
16861 (at your option) any later version.
16863 This program is distributed in the hope that it will be useful,
16864 but WITHOUT ANY WARRANTY; without even the implied warranty of
16865 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16866 GNU General Public License for more details.
16868 You should have received a copy of the GNU General Public License
16869 along with this program. If not, see <http://www.gnu.org/licenses/>.
16873 This file was generated by sim/mips/configure. */
16875 #include "sim-main.h"
16876 #include "multi-include.h"
16877 #include "bfd/elf-bfd.h"
16878 #include "bfd/elfxx-mips.h"
16879 #include "elf/mips.h"
16885 sim_engine_run (SIM_DESC sd,
16888 int signal) /* ignore */
16892 if (STATE_ARCHITECTURE (sd) == NULL)
16893 mach = bfd_mach_${sim_mips_multi_default};
16894 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16895 & EF_MIPS_ARCH_ASE_MICROMIPS)
16896 mach = bfd_mach_mips_micromips;
16899 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16901 mach = STATE_ARCHITECTURE (SD)->mach;
16908 for fc in ${sim_mips_multi_configs}; do
16910 c
=`echo ${fc} | sed 's/:[^:]*$//'`
16911 bfdmachs
=`echo ${fc} | sed 's/.*://'`
16912 name
=`echo ${c} | sed 's/:.*//'`
16913 machine
=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16914 filter
=`echo ${c} | sed 's/.*://'`
16916 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
" -F ${filter} -M ${machine}"
16922 as_fn_append SIM_MIPS_MULTI_SRC
" mips/m16${name}_run.c"
16923 as_fn_append SIM_MIPS_MULTI_OBJ
" mips/m16${name}_run.o"
16924 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
" -F 16"
16926 *:*micromips32
*:*) :
16927 ws
="micromips_m32 micromips16 micromips32"
16929 as_fn_append SIM_MIPS_MULTI_SRC
" mips/micromips${name}_run.c"
16930 as_fn_append SIM_MIPS_MULTI_OBJ
" mips/micromips${name}_run.o"
16931 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
" -F 16,32"
16933 *:*micromips64
*:*) :
16934 ws
="micromips_m64 micromips16 micromips64"
16936 as_fn_append SIM_MIPS_MULTI_SRC
" mips/micromips${name}_run.c"
16937 as_fn_append SIM_MIPS_MULTI_OBJ
" mips/micromips${name}_run.o"
16938 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
" -F 16,32,64"
16945 for base
in engine icache idecode model semantics support
; do
16946 as_fn_append SIM_MIPS_MULTI_SRC
" mips/${w}${name}_${base}.c"
16947 as_fn_append SIM_MIPS_MULTI_SRC
" mips/${w}${name}_${base}.h"
16948 as_fn_append SIM_MIPS_MULTI_OBJ
" mips/${w}${name}_${base}.o"
16950 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS
" ${w}${c}"
16953 echo "#include \"${w}${name}_engine.h\"" >> mips
/multi-include.h
16955 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16956 echo " case bfd_mach_${mach}:" >> mips
/multi-run.c
16957 if test "x$mach" = x
"${sim_mips_multi_default}"; then :
16958 echo " default:" >> mips
/multi-run.c
16959 sim_mips_seen_default
=yes
16963 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16964 >> mips
/multi-run.c
16965 echo " break;" >> mips
/multi-run.c
16968 if test "x$sim_mips_seen_default" = xno
; then :
16969 as_fn_error $?
"Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16972 cat << __EOF__ >> mips/multi-run.c
16978 SIM_MIPS_IGEN_ITABLE_FLAGS
='$(SIM_MIPS_SINGLE_FLAGS)'
16979 if test "x$SIM_MIPS_GEN" = x
"M16"; then :
16980 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
' $(SIM_MIPS_M16_FLAGS)'
16984 SIM_MIPS_SINGLE_FLAGS
="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
16985 SIM_MIPS_M16_FLAGS
="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
16993 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16994 SIM_MIPS_GEN_MODE_SINGLE_TRUE
=
16995 SIM_MIPS_GEN_MODE_SINGLE_FALSE
='#'
16997 SIM_MIPS_GEN_MODE_SINGLE_TRUE
='#'
16998 SIM_MIPS_GEN_MODE_SINGLE_FALSE
=
17001 if test "$SIM_MIPS_GEN" = "M16"; then
17002 SIM_MIPS_GEN_MODE_M16_TRUE
=
17003 SIM_MIPS_GEN_MODE_M16_FALSE
='#'
17005 SIM_MIPS_GEN_MODE_M16_TRUE
='#'
17006 SIM_MIPS_GEN_MODE_M16_FALSE
=
17009 if test "$SIM_MIPS_GEN" = "MULTI"; then
17010 SIM_MIPS_GEN_MODE_MULTI_TRUE
=
17011 SIM_MIPS_GEN_MODE_MULTI_FALSE
='#'
17013 SIM_MIPS_GEN_MODE_MULTI_TRUE
='#'
17014 SIM_MIPS_GEN_MODE_MULTI_FALSE
=
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc bitsize settings" >&5
17019 $as_echo_n "checking for sim ppc bitsize settings... " >&6; }
17020 # Check whether --enable-sim-ppc-bitsize was given.
17021 if test "${enable_sim_ppc_bitsize+set}" = set; then :
17022 enableval
=$enable_sim_ppc_bitsize; case "${enableval}" in
17023 32|
64) sim_ppc_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
17024 *) as_fn_error $?
"\"--enable-sim-ppc-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5;;
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_bitsize" >&5
17031 $as_echo "$sim_ppc_bitsize" >&6; }
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc decode mechanism" >&5
17034 $as_echo_n "checking for sim ppc decode mechanism... " >&6; }
17035 # Check whether --enable-sim-ppc-decode-mechanism was given.
17036 if test "${enable_sim_ppc_decode_mechanism+set}" = set; then :
17037 enableval
=$enable_sim_ppc_decode_mechanism; case "${enableval}" in
17038 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-ppc-decode-mechanism=file\"" "$LINENO" 5;;
17039 array|switch|padded-switch|goto-switch
) sim_ppc_decode_mechanism
="-T ${enableval}";;
17040 *) as_fn_error $?
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;;
17043 sim_ppc_decode_mechanism
=""
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_decode_mechanism" >&5
17047 $as_echo "$sim_ppc_decode_mechanism" >&6; }
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc default model" >&5
17050 $as_echo_n "checking for sim ppc default model... " >&6; }
17051 # Check whether --enable-sim-ppc-default-model was given.
17052 if test "${enable_sim_ppc_default_model+set}" = set; then :
17053 enableval
=$enable_sim_ppc_default_model; case "${enableval}" in
17054 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-ppc-default-model=model\"" "$LINENO" 5;;
17055 *) sim_ppc_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
17058 sim_ppc_default_model
=""
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_default_model" >&5
17062 $as_echo "$sim_ppc_default_model" >&6; }
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc duplicate settings" >&5
17065 $as_echo_n "checking for sim ppc duplicate settings... " >&6; }
17066 # Check whether --enable-sim-ppc-duplicate was given.
17067 if test "${enable_sim_ppc_duplicate+set}" = set; then :
17068 enableval
=$enable_sim_ppc_duplicate; case "${enableval}" in
17069 yes) sim_ppc_dup
="-E";;
17070 no
) sim_ppc_dup
="";;
17071 *) as_fn_error $?
"\"--enable-sim-ppc-duplicate does not take a value\"" "$LINENO" 5;;
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_dup" >&5
17078 $as_echo "$sim_ppc_dup" >&6; }
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc filter rules" >&5
17081 $as_echo_n "checking for sim ppc filter rules... " >&6; }
17082 # Check whether --enable-sim-ppc-filter was given.
17083 if test "${enable_sim_ppc_filter+set}" = set; then :
17084 enableval
=$enable_sim_ppc_filter; case "${enableval}" in
17085 yes) as_fn_error $?
"\"--enable-sim-ppc-filter must be specified with a rule to filter or no\"" "$LINENO" 5;;
17086 no
) sim_ppc_filter
="";;
17087 *) sim_ppc_filter
="-F $enableval";;
17090 sim_ppc_filter
="-F 32,f,o"
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_filter" >&5
17094 $as_echo "$sim_ppc_filter" >&6; }
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc float settings" >&5
17097 $as_echo_n "checking for sim ppc float settings... " >&6; }
17098 # Check whether --enable-sim-ppc-float was given.
17099 if test "${enable_sim_ppc_float+set}" = set; then :
17100 enableval
=$enable_sim_ppc_float; case "${enableval}" in
17101 yes | hard
) sim_ppc_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
17102 no | soft
) sim_ppc_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
17103 altivec
) sim_ppc_float
="-DWITH_ALTIVEC" ; sim_ppc_filter
="${sim_ppc_filter},av" ;;
17104 *spe
*|
*simd
*) sim_ppc_float
="-DWITH_E500" ; sim_ppc_filter
="${sim_ppc_filter},e500" ;;
17105 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-ppc-float\"" "$LINENO" 5;;
17108 case "${target}" in
17109 *altivec
*) sim_ppc_float
="-DWITH_ALTIVEC" ; sim_ppc_filter
="${sim_ppc_filter},av" ;;
17110 *spe
*|
*simd
*) sim_ppc_float
="-DWITH_E500" ; sim_ppc_filter
="${sim_ppc_filter},e500" ;;
17111 *) sim_ppc_float
=""
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_float" >&5
17116 $as_echo "$sim_ppc_float" >&6; }
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc hardware settings" >&5
17119 $as_echo_n "checking for sim ppc hardware settings... " >&6; }
17120 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide,sem,shm"
17121 # Check whether --enable-sim-ppc-hardware was given.
17122 if test "${enable_sim_ppc_hardware+set}" = set; then :
17123 enableval
=$enable_sim_ppc_hardware; case "${enableval}" in
17125 no
) as_fn_error $?
"\"List of hardware must be specified for --enable-sim-ppc-hardware\"" "$LINENO" 5;;
17126 ,*) hardware
="${hardware}${enableval}";;
17127 *,) hardware
="${enableval}${hardware}";;
17128 *) hardware
="${enableval}"'';;
17132 sim_ppc_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
17133 sim_ppc_hw_obj
=`echo $sim_ppc_hw_src | sed -e 's/\.c/.o/g'`
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardware" >&5
17135 $as_echo "$hardware" >&6; }
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc icache settings" >&5
17138 $as_echo_n "checking for sim ppc icache settings... " >&6; }
17139 # Check whether --enable-sim-ppc-icache was given.
17140 if test "${enable_sim_ppc_icache+set}" = set; then :
17141 enableval
=$enable_sim_ppc_icache; icache
="-R"
17142 case "${enableval}" in
17143 yes) icache
="1024"; sim_ppc_icache
="-I $icache";;
17144 no
) sim_ppc_icache
="-R";;
17147 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
17149 define
) sim_ppc_icache
="${sim_ppc_icache}R";;
17150 semantic
) sim_ppc_icache
="${sim_ppc_icache}C";;
17151 insn
) sim_ppc_icache
="${sim_ppc_icache}S";;
17152 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
17153 *) as_fn_error $?
"\"Unknown value $x for --enable-sim-ppc-icache\"" "$LINENO" 5;;
17156 sim_ppc_icache
="${sim_ppc_icache}I $icache";;
17159 sim_ppc_icache
="-CSRI 1024"
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_icache" >&5
17163 $as_echo "$sim_ppc_icache" >&6; }
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc jump settings" >&5
17166 $as_echo_n "checking for sim ppc jump settings... " >&6; }
17167 # Check whether --enable-sim-ppc-jump was given.
17168 if test "${enable_sim_ppc_jump+set}" = set; then :
17169 enableval
=$enable_sim_ppc_jump; case "${enableval}" in
17170 yes) sim_ppc_jump
="-J";;
17171 no
) sim_ppc_jump
="";;
17172 *) as_fn_error $?
"\"--enable-sim-ppc-jump does not take a value\"" "$LINENO" 5;;
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_jump" >&5
17179 $as_echo "$sim_ppc_jump" >&6; }
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc source debug line numbers" >&5
17182 $as_echo_n "checking for sim ppc source debug line numbers... " >&6; }
17183 # Check whether --enable-sim-ppc-line-nr was given.
17184 if test "${enable_sim_ppc_line_nr+set}" = set; then :
17185 enableval
=$enable_sim_ppc_line_nr; case "${enableval}" in
17186 yes) sim_ppc_line_nr
="";;
17187 no
) sim_ppc_line_nr
="-L";;
17188 *) as_fn_error $?
"\"--enable-sim-ppc-line-nr does not take a value\"" "$LINENO" 5;;
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_line_nr" >&5
17195 $as_echo "$sim_ppc_line_nr" >&6; }
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model" >&5
17198 $as_echo_n "checking for sim ppc model... " >&6; }
17199 # Check whether --enable-sim-ppc-model was given.
17200 if test "${enable_sim_ppc_model+set}" = set; then :
17201 enableval
=$enable_sim_ppc_model; case "${enableval}" in
17202 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-ppc-model=model\"" "$LINENO" 5;;
17203 *) sim_ppc_model
="-DWITH_MODEL=${enableval}";;
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model" >&5
17210 $as_echo "$sim_ppc_model" >&6; }
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model issue" >&5
17213 $as_echo_n "checking for sim ppc model issue... " >&6; }
17214 # Check whether --enable-sim-ppc-model-issue was given.
17215 if test "${enable_sim_ppc_model_issue+set}" = set; then :
17216 enableval
=$enable_sim_ppc_model_issue; case "${enableval}" in
17217 yes) sim_ppc_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
17218 no
) sim_ppc_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
17219 *) as_fn_error $?
"\"--enable-sim-ppc-model-issue does not take a value\"" "$LINENO" 5;;
17222 sim_ppc_model_issue
=""
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model_issue" >&5
17226 $as_echo "$sim_ppc_model_issue" >&6; }
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc event monitoring" >&5
17229 $as_echo_n "checking for sim ppc event monitoring... " >&6; }
17230 # Check whether --enable-sim-ppc-monitor was given.
17231 if test "${enable_sim_ppc_monitor+set}" = set; then :
17232 enableval
=$enable_sim_ppc_monitor; case "${enableval}" in
17233 yes) sim_ppc_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
17234 no
) sim_ppc_monitor
="-DWITH_MON=0";;
17235 instruction
) sim_ppc_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
17236 memory
) sim_ppc_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
17237 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-ppc-mon\"" "$LINENO" 5;;
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_monitor" >&5
17244 $as_echo "$sim_ppc_monitor" >&6; }
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc opcode lookup settings" >&5
17247 $as_echo_n "checking for sim ppc opcode lookup settings... " >&6; }
17248 # Check whether --enable-sim-ppc-opcode was given.
17249 if test "${enable_sim_ppc_opcode+set}" = set; then :
17250 enableval
=$enable_sim_ppc_opcode; case "${enableval}" in
17251 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-ppc-opcode=file\"" "$LINENO" 5;;
17252 *) if test -f "${srcdir}/${enableval}"; then
17253 sim_ppc_opcode
="${enableval}"
17254 elif test -f "${srcdir}/dc-${enableval}"; then
17255 sim_ppc_opcode
="dc-${enableval}"
17257 as_fn_error $?
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5
17261 sim_ppc_opcode
="dc-complex"
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_opcode" >&5
17265 $as_echo "$sim_ppc_opcode" >&6; }
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc smp settings" >&5
17268 $as_echo_n "checking for sim ppc smp settings... " >&6; }
17269 # Check whether --enable-sim-ppc-smp was given.
17270 if test "${enable_sim_ppc_smp+set}" = set; then :
17271 enableval
=$enable_sim_ppc_smp; case "${enableval}" in
17272 yes) sim_ppc_smp
="-DWITH_SMP=5" ; sim_ppc_igen_smp
="-N 5";;
17273 no
) sim_ppc_smp
="-DWITH_SMP=0" ; sim_ppc_igen_smp
="-N 0";;
17274 *) sim_ppc_smp
="-DWITH_SMP=$enableval" ; sim_ppc_igen_smp
="-N $enableval";;
17277 sim_ppc_smp
="-DWITH_SMP=5" ; sim_ppc_igen_smp
="-N 5"
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_smp" >&5
17281 $as_echo "$sim_ppc_smp" >&6; }
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc switch table settings" >&5
17284 $as_echo_n "checking for sim ppc switch table settings... " >&6; }
17285 # Check whether --enable-sim-ppc-switch was given.
17286 if test "${enable_sim_ppc_switch+set}" = set; then :
17287 enableval
=$enable_sim_ppc_switch; case "${enableval}" in
17288 yes) sim_ppc_switch
="-DWITH_SPREG_SWITCH_TABLE";;
17289 no
) sim_ppc_switch
="";;
17290 *) as_fn_error $?
"\"--enable-sim-ppc-switch does not take a value\"" "$LINENO" 5;;
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_switch" >&5
17297 $as_echo "$sim_ppc_switch" >&6; }
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc timebase" >&5
17300 $as_echo_n "checking for sim ppc timebase... " >&6; }
17301 # Check whether --enable-sim-ppc-timebase was given.
17302 if test "${enable_sim_ppc_timebase+set}" = set; then :
17303 enableval
=$enable_sim_ppc_timebase; case "${enableval}" in
17304 yes) sim_ppc_timebase
="-DWITH_TIME_BASE=1";;
17305 no
) sim_ppc_timebase
="-DWITH_TIME_BASE=0";;
17306 *) as_fn_error $?
"\"--enable-sim-ppc-timebase does not take a value\"" "$LINENO" 5;;
17309 sim_ppc_timebase
=""
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_timebase" >&5
17313 $as_echo "$sim_ppc_timebase" >&6; }
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc xor endian settings" >&5
17316 $as_echo_n "checking for sim ppc xor endian settings... " >&6; }
17317 # Check whether --enable-sim-ppc-xor-endian was given.
17318 if test "${enable_sim_ppc_xor_endian+set}" = set; then :
17319 enableval
=$enable_sim_ppc_xor_endian; case "${enableval}" in
17320 yes) sim_ppc_xor_endian
="-DWITH_XOR_ENDIAN=8";;
17321 no
) sim_ppc_xor_endian
="-DWITH_XOR_ENDIAN=0";;
17322 *) sim_ppc_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
17325 sim_ppc_xor_endian
=""
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_xor_endian" >&5
17329 $as_echo "$sim_ppc_xor_endian" >&6; }
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
17353 $as_echo_n "checking riscv bitsize... " >&6; }
17354 SIM_RISCV_BITSIZE
=64
17357 SIM_RISCV_BITSIZE
=32 ;; #(
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
17362 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
17366 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
17367 # Check whether --enable-sim-rx-cycle-accurate was given.
17368 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
17369 enableval
=$enable_sim_rx_cycle_accurate; case "${enableval}" in
17371 *) as_fn_error $?
"bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
17375 if test "x${enable_sim_rx_cycle_accurate}" != xno
; then
17376 SIM_RX_CYCLE_ACCURATE_FLAGS
="-DCYCLE_ACCURATE"
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17378 $as_echo "yes" >&6; }
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17381 $as_echo "no" >&6; }
17386 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in"
17388 cat >confcache
<<\_ACEOF
17389 # This file is a shell script that caches the results of configure
17390 # tests run on this system so they can be shared between configure
17391 # scripts and configure runs, see configure's option --config-cache.
17392 # It is not useful on other systems. If it contains results you don't
17393 # want to keep, you may remove or edit it.
17395 # config.status only pays attention to the cache file if you give it
17396 # the --recheck option to rerun configure.
17398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17400 # following values.
17404 # The following way of writing the cache mishandles newlines in values,
17405 # but we know of no workaround that is simple, portable, and efficient.
17406 # So, we kill variables containing newlines.
17407 # Ultrix sh set writes to stderr and can't be redirected directly,
17408 # and sets the high bit in the cache file unless we assign to the vars.
17410 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17411 eval ac_val
=\$
$ac_var
17415 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17419 _ | IFS | as_nl
) ;; #(
17420 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17421 *) { eval $ac_var=; unset $ac_var;} ;;
17427 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17428 *${as_nl}ac_space
=\
*)
17429 # `set' does not quote correctly, so add quotes: double-quote
17430 # substitution turns \\\\ into \\, and sed turns \\ into \.
17433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17436 # `set' quotes correctly as required by POSIX, so do not add quotes.
17437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17450 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17451 if test -w "$cache_file"; then
17452 if test "x$cache_file" != "x/dev/null"; then
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17454 $as_echo "$as_me: updating cache $cache_file" >&6;}
17455 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17456 cat confcache
>"$cache_file"
17458 case $cache_file in #(
17460 mv -f confcache
"$cache_file"$$
&&
17461 mv -f "$cache_file"$$
"$cache_file" ;; #(
17463 mv -f confcache
"$cache_file" ;;
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17469 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17474 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17475 # Let make expand exec_prefix.
17476 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17478 DEFS
=-DHAVE_CONFIG_H
17483 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17484 # 1. Remove the extension, and $U if already installed.
17485 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17486 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17487 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17488 # will be set to the directory where LIBOBJS objects are built.
17489 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17490 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17492 LIBOBJS
=$ac_libobjs
17494 LTLIBOBJS
=$ac_ltlibobjs
17498 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17499 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17503 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17504 if test -n "$am_sleep_pid"; then
17505 # Hide warnings about reused PIDs.
17506 wait $am_sleep_pid 2>/dev
/null
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17509 $as_echo "done" >&6; }
17510 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17511 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17514 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17515 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17518 if test -n "$EXEEXT"; then
17520 am__EXEEXT_FALSE
='#'
17522 am__EXEEXT_TRUE
='#'
17526 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
17527 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
17528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17530 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
17531 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
17532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17534 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
17535 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
17536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17538 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
17539 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
17540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17542 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
17543 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
17544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17546 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
17547 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
17548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17550 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
17551 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
17552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17554 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
17555 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
17556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17558 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
17559 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
17560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17562 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
17563 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
17564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17566 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
17567 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
17568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17570 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
17571 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
17572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17574 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
17575 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
17576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17578 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
17579 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
17580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17582 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
17583 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
17584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17586 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
17587 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
17588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17590 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
17591 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
17592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17594 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
17595 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
17596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17598 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
17599 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
17600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17602 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
17603 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
17604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17606 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
17607 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
17608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17610 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
17611 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
17612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17614 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
17615 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
17616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17618 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
17619 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
17620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17622 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
17623 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
17624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17626 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
17627 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
17628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17630 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
17631 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
17632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17634 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
17635 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
17636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17638 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
17639 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
17640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17642 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
17643 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
17644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17646 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
17647 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
17648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17650 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
17651 as_fn_error $?
"conditional \"ENABLE_SIM\" was never defined.
17652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17654 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
17655 as_fn_error $?
"conditional \"SIM_ENABLE_HW\" was never defined.
17656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17658 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
17659 as_fn_error $?
"conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
17660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17662 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
17663 as_fn_error $?
"conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
17664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17666 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
17667 as_fn_error $?
"conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
17668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17671 : "${CONFIG_STATUS=./config.status}"
17673 ac_clean_files_save
=$ac_clean_files
17674 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17676 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17678 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17680 # Generated by $as_me.
17681 # Run this file to recreate the current configuration.
17682 # Compiler output produced by configure, useful for debugging
17683 # configure, is in config.log if it exists.
17686 ac_cs_recheck=false
17689 SHELL=\${CONFIG_SHELL-$SHELL}
17692 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17693 ## -------------------- ##
17694 ## M4sh Initialization. ##
17695 ## -------------------- ##
17697 # Be more Bourne compatible
17698 DUALCASE
=1; export DUALCASE
# for MKS sh
17699 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17702 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17703 # is contrary to our usage. Disable this feature.
17704 alias -g '${1+"$@"}'='"$@"'
17705 setopt NO_GLOB_SUBST
17707 case `(set -o) 2>/dev/null` in #(
17719 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17720 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17723 # Prefer a ksh shell builtin over an external printf program on Solaris,
17724 # but without wasting forks for bash or zsh.
17725 if test -z "$BASH_VERSION$ZSH_VERSION" \
17726 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17727 as_echo='print
-r --'
17728 as_echo_n='print
-rn --'
17729 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17730 as_echo='printf %s
\n'
17731 as_echo_n='printf %s
'
17733 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17734 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17735 as_echo_n='/usr
/ucb
/echo -n'
17737 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17738 as_echo_n_body='eval
17742 expr "X$arg" : "X\\(.*\\)$as_nl";
17743 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17745 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17747 export as_echo_n_body
17748 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17750 export as_echo_body
17751 as_echo='sh
-c $as_echo_body as_echo
'
17754 # The user is always right.
17755 if test "${PATH_SEPARATOR+set}" != set; then
17757 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17758 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17765 # We need space, tab and new line, in precisely that order. Quoting is
17766 # there to prevent editors from complaining about space-tab.
17767 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17768 # splitting by setting IFS to empty value.)
17771 # Find who we are. Look in the path if we contain no directory separator.
17774 *[\\/]* ) as_myself=$0 ;;
17775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17776 for as_dir in $PATH
17779 test -z "$as_dir" && as_dir=.
17780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17786 # We did not find ourselves, most probably we were run as `sh COMMAND'
17787 # in which case we are not to be found in the path.
17788 if test "x$as_myself" = x
; then
17791 if test ! -f "$as_myself"; then
17792 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17796 # Unset variables that we do not need and which cause bugs (e.g. in
17797 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17798 # suppresses any "Segmentation fault" message there. '((' could
17799 # trigger a bug in pdksh 5.2.14.
17800 for as_var
in BASH_ENV ENV MAIL MAILPATH
17801 do eval test x\
${$as_var+set} = xset \
17802 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17815 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17818 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17819 # ----------------------------------------
17820 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17821 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17822 # script with STATUS, using 1 if that was 0.
17825 as_status
=$1; test $as_status -eq 0 && as_status
=1
17827 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17828 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17830 $as_echo "$as_me: error: $2" >&2
17831 as_fn_exit
$as_status
17835 # as_fn_set_status STATUS
17836 # -----------------------
17837 # Set $? to STATUS, without forking.
17838 as_fn_set_status
()
17841 } # as_fn_set_status
17843 # as_fn_exit STATUS
17844 # -----------------
17845 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17849 as_fn_set_status
$1
17855 # Portably unset VAR.
17858 { eval $1=; unset $1;}
17860 as_unset
=as_fn_unset
17861 # as_fn_append VAR VALUE
17862 # ----------------------
17863 # Append the text in VALUE to the end of the definition contained in VAR. Take
17864 # advantage of any shell optimizations that allow amortized linear growth over
17865 # repeated appends, instead of the typical quadratic growth present in naive
17867 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17868 eval 'as_fn_append ()
17879 # as_fn_arith ARG...
17880 # ------------------
17881 # Perform arithmetic evaluation on the ARGs, and store the result in the
17882 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17883 # must be portable across $(()) and expr.
17884 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17885 eval 'as_fn_arith ()
17892 as_val
=`expr "$@" || test $? -eq 1`
17897 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17898 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17904 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17905 as_basename
=basename
17910 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17916 as_me
=`$as_basename -- "$0" ||
17917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17918 X"$0" : 'X\(//\)$' \| \
17919 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17921 sed '/^.*\/\([^/][^/]*\)\/*$/{
17935 # Avoid depending upon Character Ranges.
17936 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17937 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17938 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17939 as_cr_digits
='0123456789'
17940 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17942 ECHO_C
= ECHO_N
= ECHO_T
=
17943 case `echo -n x` in #(((((
17945 case `echo 'xy\c'` in
17946 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17948 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17955 rm -f conf$$ conf$$.exe conf$$.
file
17956 if test -d conf$$.dir
; then
17957 rm -f conf$$.dir
/conf$$.
file
17960 mkdir conf$$.dir
2>/dev
/null
17962 if (echo >conf$$.
file) 2>/dev
/null
; then
17963 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17965 # ... but there are two gotchas:
17966 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17967 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17968 # In both cases, we have to default to `cp -pR'.
17969 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17971 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17979 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17980 rmdir conf$$.dir
2>/dev
/null
17985 # Create "$as_dir" as a directory, including parents if necessary.
17990 -*) as_dir
=.
/$as_dir;;
17992 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17996 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17997 *) as_qdir
=$as_dir;;
17999 as_dirs
="'$as_qdir' $as_dirs"
18000 as_dir
=`$as_dirname -- "$as_dir" ||
18001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18002 X"$as_dir" : 'X\(//\)[^/]' \| \
18003 X"$as_dir" : 'X\(//\)$' \| \
18004 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18005 $as_echo X"$as_dir" |
18006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18010 /^X\(\/\/\)[^/].*/{
18023 test -d "$as_dir" && break
18025 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18026 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18030 if mkdir
-p .
2>/dev
/null
; then
18031 as_mkdir_p
='mkdir -p "$as_dir"'
18033 test -d .
/-p && rmdir .
/-p
18038 # as_fn_executable_p FILE
18039 # -----------------------
18040 # Test if FILE is an executable regular file.
18041 as_fn_executable_p
()
18043 test -f "$1" && test -x "$1"
18044 } # as_fn_executable_p
18045 as_test_x
='test -x'
18046 as_executable_p
=as_fn_executable_p
18048 # Sed expression to map a string onto a valid CPP name.
18049 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18051 # Sed expression to map a string onto a valid variable name.
18052 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18056 ## ----------------------------------- ##
18057 ## Main body of $CONFIG_STATUS script. ##
18058 ## ----------------------------------- ##
18060 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18063 # Save the log message, to keep $0 and so on meaningful, and to
18064 # report actual input values of CONFIG_FILES etc. instead of their
18065 # values after options handling.
18067 This file was extended by sim $as_me 0, which was
18068 generated by GNU Autoconf 2.69. Invocation command line was
18070 CONFIG_FILES = $CONFIG_FILES
18071 CONFIG_HEADERS = $CONFIG_HEADERS
18072 CONFIG_LINKS = $CONFIG_LINKS
18073 CONFIG_COMMANDS = $CONFIG_COMMANDS
18076 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18081 case $ac_config_files in *"
18082 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18085 case $ac_config_headers in *"
18086 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18091 # Files that config.status was made for.
18092 config_files="$ac_config_files"
18093 config_headers="$ac_config_headers"
18094 config_commands="$ac_config_commands"
18098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18100 \`$as_me' instantiates files and other configuration actions
18101 from templates according to the current configuration. Unless the files
18102 and actions are specified as TAGs, all are instantiated by default.
18104 Usage: $0 [OPTION]... [TAG]...
18106 -h, --help print this help, then exit
18107 -V, --version print version number and configuration settings, then exit
18108 --config print configuration, then exit
18109 -q, --quiet, --silent
18110 do not print progress messages
18111 -d, --debug don't remove temporary files
18112 --recheck update $as_me by reconfiguring in the same conditions
18113 --file=FILE[:TEMPLATE]
18114 instantiate the configuration file FILE
18115 --header=FILE[:TEMPLATE]
18116 instantiate the configuration header FILE
18118 Configuration files:
18121 Configuration headers:
18124 Configuration commands:
18127 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
18128 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
18131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18132 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18134 sim config.status 0
18135 configured by $0, generated by GNU Autoconf 2.69,
18136 with options \\"\$ac_cs_config\\"
18138 Copyright (C) 2012 Free Software Foundation, Inc.
18139 This config.status script is free software; the Free Software Foundation
18140 gives unlimited permission to copy, distribute and modify it."
18147 test -n "\$AWK" || AWK=awk
18150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18151 # The default lists apply if the user does not specify any file.
18157 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18158 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18162 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18174 # Handling of the options.
18175 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18177 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18178 $as_echo "$ac_cs_version"; exit ;;
18179 --config |
--confi |
--conf |
--con |
--co |
--c )
18180 $as_echo "$ac_cs_config"; exit ;;
18181 --debug |
--debu |
--deb |
--de |
--d |
-d )
18183 --file |
--fil |
--fi |
--f )
18186 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18187 '') as_fn_error $?
"missing file argument" ;;
18189 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18190 ac_need_defaults
=false
;;
18191 --header |
--heade |
--head |
--hea )
18194 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18196 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18197 ac_need_defaults
=false
;;
18199 # Conflict between --help and --header
18200 as_fn_error $?
"ambiguous option: \`$1'
18201 Try \`$0 --help' for more information.";;
18202 --help |
--hel |
-h )
18203 $as_echo "$ac_cs_usage"; exit ;;
18204 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18205 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18208 # This is an error.
18209 -*) as_fn_error $?
"unrecognized option: \`$1'
18210 Try \`$0 --help' for more information." ;;
18212 *) as_fn_append ac_config_targets
" $1"
18213 ac_need_defaults
=false
;;
18219 ac_configure_extra_args
=
18221 if $ac_cs_silent; then
18223 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18228 if \$ac_cs_recheck; then
18229 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18231 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18232 CONFIG_SHELL='$SHELL'
18233 export CONFIG_SHELL
18238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18243 ## Running $as_me. ##
18249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18255 # The HP-UX ksh and POSIX shell print the target directory to stdout
18256 # if CDPATH is set.
18257 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18259 sed_quote_subst='$sed_quote_subst'
18260 double_quote_subst='$double_quote_subst'
18261 delay_variable_subst='$delay_variable_subst'
18262 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18263 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18264 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18265 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18266 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18267 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18268 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18269 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18270 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18271 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18272 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18273 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18274 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18275 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18276 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18277 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18278 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18279 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18280 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18281 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18282 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18283 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18284 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18285 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18286 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18287 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18288 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18289 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18290 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18291 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18292 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18293 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18294 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18295 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18296 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18297 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18298 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18299 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18300 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18301 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18302 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18303 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18304 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18305 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18306 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18307 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18308 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18309 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18310 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"`'
18311 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18312 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18313 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18314 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18315 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18316 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18317 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18318 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18319 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18320 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18321 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18322 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18323 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18324 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18325 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18326 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18327 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18328 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18329 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18330 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18331 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18332 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18333 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18334 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18335 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18336 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18337 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18338 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18339 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18340 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18341 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18342 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18343 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18344 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18345 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18346 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18347 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18348 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18349 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18350 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18351 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18352 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18353 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18354 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18355 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18356 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18357 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18358 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18359 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18360 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18361 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18362 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18363 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18364 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18365 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18366 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18367 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18368 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18369 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18370 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18371 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18372 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18373 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18374 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18375 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18376 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18377 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18378 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18379 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18380 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18381 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18384 LTCFLAGS='$LTCFLAGS'
18385 compiler='$compiler_DEFAULT'
18387 # A function that is used when there is no print builtin or printf.
18388 func_fallback_echo ()
18390 eval 'cat <<_LTECHO_EOF
18395 # Quote evaled strings.
18409 deplibs_check_method \
18418 lt_cv_sys_global_symbol_pipe \
18419 lt_cv_sys_global_symbol_to_cdecl \
18420 lt_cv_sys_global_symbol_to_c_name_address \
18421 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18422 lt_prog_compiler_no_builtin_flag \
18423 lt_prog_compiler_wl \
18424 lt_prog_compiler_pic \
18425 lt_prog_compiler_static \
18426 lt_cv_prog_compiler_c_o \
18434 export_dynamic_flag_spec \
18435 whole_archive_flag_spec \
18436 compiler_needs_object \
18438 allow_undefined_flag \
18439 no_undefined_flag \
18440 hardcode_libdir_flag_spec \
18441 hardcode_libdir_flag_spec_ld \
18442 hardcode_libdir_separator \
18447 variables_saved_for_relink \
18449 library_names_spec \
18451 install_override_mode \
18455 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18456 *[\\\\\\\`\\"\\\$]*)
18457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18465 # Double-quote double-evaled strings.
18466 for var in reload_cmds \
18467 old_postinstall_cmds \
18468 old_postuninstall_cmds \
18470 extract_expsyms_cmds \
18471 old_archive_from_new_cmds \
18472 old_archive_from_expsyms_cmds \
18474 archive_expsym_cmds \
18476 module_expsym_cmds \
18477 export_symbols_cmds \
18480 postuninstall_cmds \
18482 sys_lib_search_path_spec \
18483 sys_lib_dlsearch_path_spec; do
18484 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18485 *[\\\\\\\`\\"\\\$]*)
18486 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18489 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18494 ac_aux_dir='$ac_aux_dir'
18495 xsi_shell='$xsi_shell'
18496 lt_shell_append='$lt_shell_append'
18498 # See if we are running on zsh, and set the options which allow our
18499 # commands through without removal of \ escapes INIT.
18500 if test -n "\${ZSH_VERSION+set}" ; then
18501 setopt NO_GLOB_SUBST
18507 TIMESTAMP='$TIMESTAMP'
18513 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18519 # Handling of arguments.
18520 for ac_config_target
in $ac_config_targets
18522 case $ac_config_target in
18523 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18524 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18525 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18526 "aarch64/.gdbinit") CONFIG_FILES
="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
18527 "avr/.gdbinit") CONFIG_FILES
="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
18528 "bfin/.gdbinit") CONFIG_FILES
="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
18529 "bpf/.gdbinit") CONFIG_FILES
="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
18530 "cr16/.gdbinit") CONFIG_FILES
="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
18531 "cris/.gdbinit") CONFIG_FILES
="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
18532 "d10v/.gdbinit") CONFIG_FILES
="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
18533 "frv/.gdbinit") CONFIG_FILES
="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
18534 "ft32/.gdbinit") CONFIG_FILES
="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
18535 "h8300/.gdbinit") CONFIG_FILES
="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
18536 "iq2000/.gdbinit") CONFIG_FILES
="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
18537 "lm32/.gdbinit") CONFIG_FILES
="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
18538 "m32c/.gdbinit") CONFIG_FILES
="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
18539 "m32r/.gdbinit") CONFIG_FILES
="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
18540 "m68hc11/.gdbinit") CONFIG_FILES
="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
18541 "mcore/.gdbinit") CONFIG_FILES
="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
18542 "microblaze/.gdbinit") CONFIG_FILES
="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
18543 "mips/.gdbinit") CONFIG_FILES
="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
18544 "mn10300/.gdbinit") CONFIG_FILES
="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
18545 "moxie/.gdbinit") CONFIG_FILES
="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
18546 "msp430/.gdbinit") CONFIG_FILES
="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
18547 "or1k/.gdbinit") CONFIG_FILES
="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
18548 "ppc/.gdbinit") CONFIG_FILES
="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
18549 "pru/.gdbinit") CONFIG_FILES
="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
18550 "riscv/.gdbinit") CONFIG_FILES
="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
18551 "rl78/.gdbinit") CONFIG_FILES
="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
18552 "rx/.gdbinit") CONFIG_FILES
="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
18553 "sh/.gdbinit") CONFIG_FILES
="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
18554 "erc32/.gdbinit") CONFIG_FILES
="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
18555 "v850/.gdbinit") CONFIG_FILES
="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
18556 "example-synacor/.gdbinit") CONFIG_FILES
="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
18557 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18558 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
18560 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18565 # If the user did not use the arguments to specify the items to instantiate,
18566 # then the envvar interface is used. Set only those that are not.
18567 # We use the long form for the default assignment because of an extremely
18568 # bizarre bug on SunOS 4.1.3.
18569 if $ac_need_defaults; then
18570 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18571 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18572 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18575 # Have a temporary directory for convenience. Make it in the build tree
18576 # simply because there is no reason against having it here, and in addition,
18577 # creating and moving files from /tmp can sometimes cause problems.
18578 # Hook for its removal unless debugging.
18579 # Note that there is a small window in which the directory will not be cleaned:
18580 # after its creation but before its name has been assigned to `$tmp'.
18584 trap 'exit_status=$?
18585 : "${ac_tmp:=$tmp}"
18586 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18588 trap 'as_fn_exit 1' 1 2 13 15
18590 # Create a (secure) tmp directory for tmp files.
18593 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18597 tmp
=.
/conf$$
-$RANDOM
18598 (umask 077 && mkdir
"$tmp")
18599 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18602 # Set up the scripts for CONFIG_FILES section.
18603 # No need to generate them if there are no CONFIG_FILES.
18604 # This happens for instance with `./config.status config.h'.
18605 if test -n "$CONFIG_FILES"; then
18608 ac_cr
=`echo X | tr X '\015'`
18609 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18610 # But we know of no other shell where ac_cr would be empty at this
18611 # point, so we can use a bashism as a fallback.
18612 if test "x$ac_cr" = x
; then
18613 eval ac_cr
=\$
\'\\r
\'
18615 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18616 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18619 ac_cs_awk_cr
=$ac_cr
18622 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18627 echo "cat >conf$$subs.awk <<_ACEOF" &&
18628 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18630 } >conf$$subs.sh ||
18631 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18632 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18634 for ac_last_try in false false false false false :; do
18635 . ./conf$$subs.sh ||
18636 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18638 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18639 if test $ac_delim_n = $ac_delim_num; then
18641 elif $ac_last_try; then
18642 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18644 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18647 rm -f conf$$subs.sh
18649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18650 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18654 s/^/S["/; s
/!.
*/"]=/
18664 s/\(.\{148\}\)..*/\1/
18666 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18671 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18678 s/\(.\{148\}\)..*/\1/
18680 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18684 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18689 ' <conf$$subs.awk | sed '
18694 ' >>$CONFIG_STATUS || ac_write_fail=1
18695 rm -f conf$$subs.awk
18696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18698 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18699 for (key in S) S_is_set[key] = 1
18705 nfields = split(line, field, "@
")
18707 len = length(field[1])
18708 for (i = 2; i < nfields; i++) {
18710 keylen = length(key)
18711 if (S_is_set[key]) {
18713 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18714 len += length(value) + length(field[++i])
18725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18726 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18727 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18730 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18731 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18734 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18735 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18736 # trailing colons and then remove the whole line if VPATH becomes empty
18737 # (actually we leave an empty line to preserve line numbers).
18738 if test "x
$srcdir" = x.; then
18739 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18758 fi # test -n "$CONFIG_FILES"
18760 # Set up the scripts for CONFIG_HEADERS section.
18761 # No need to generate them if there are no CONFIG_HEADERS.
18762 # This happens for instance with `./config.status Makefile'.
18763 if test -n "$CONFIG_HEADERS"; then
18764 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18768 # Transform confdefs.h into an awk script `defines.awk', embedded as
18769 # here-document in config.status, that substitutes the proper values into
18770 # config.h.in to produce config.h.
18772 # Create a delimiter string that does not exist in confdefs.h, to ease
18773 # handling of long lines.
18775 for ac_last_try in false false :; do
18776 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18777 if test -z "$ac_tt"; then
18779 elif $ac_last_try; then
18780 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18782 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18786 # For the awk script, D is an array of macro values keyed by name,
18787 # likewise P contains macro parameters if any. Preserve backslash
18788 # newline sequences.
18790 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18792 s/.\{148\}/&'"$ac_delim"'/g
18795 s/^[ ]*#[ ]*define[ ][ ]*/ /
18802 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18804 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18809 D["\
1"]=" \
3\\\\\\n
"\\/p
18811 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18816 s/.\{148\}/&'"$ac_delim"'/g
18821 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18824 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18826 ' <confdefs.h | sed '
18827 s/'"$ac_delim"'/"\\\
18828 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18831 for (key in D) D_is_set[key] = 1
18834 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18836 split(line, arg, " ")
18837 if (arg[1] == "#") {
18841 defundef
= substr
(arg
[1], 2)
18844 split(mac1
, mac2
, "(") #)
18846 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18847 if (D_is_set
[macro
]) {
18848 # Preserve the white space surrounding the "#".
18849 print prefix
"define", macro P
[macro
] D
[macro
]
18852 # Replace #undef with comments. This is necessary, for example,
18853 # in the case of _POSIX_SOURCE, which is predefined and required
18854 # on some systems where configure will not decide to define it.
18855 if (defundef
== "undef") {
18856 print
"/*", prefix defundef
, macro
, "*/"
18864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18865 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18866 fi # test -n "$CONFIG_HEADERS"
18869 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18874 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18876 case $ac_mode$ac_tag in
18878 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18879 :[FH
]-) ac_tag
=-:-;;
18880 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18897 -) ac_f
="$ac_tmp/stdin";;
18898 *) # Look for the file first in the build tree, then in the source tree
18899 # (if the path is not absolute). The absolute path cannot be DOS-style,
18900 # because $ac_f cannot contain `:'.
18904 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18906 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18908 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18909 as_fn_append ac_file_inputs
" '$ac_f'"
18912 # Let's still pretend it is `configure' which instantiates (i.e., don't
18913 # use $as_me), people would be surprised to read:
18914 # /* config.h. Generated by config.status. */
18915 configure_input
='Generated from '`
18916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18918 if test x
"$ac_file" != x-
; then
18919 configure_input
="$ac_file. $configure_input"
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18921 $as_echo "$as_me: creating $ac_file" >&6;}
18923 # Neutralize special characters interpreted by sed in replacement strings.
18924 case $configure_input in #(
18925 *\
&* |
*\|
* |
*\\* )
18926 ac_sed_conf_input
=`$as_echo "$configure_input" |
18927 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18928 *) ac_sed_conf_input
=$configure_input;;
18932 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18933 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18938 ac_dir
=`$as_dirname -- "$ac_file" ||
18939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18940 X"$ac_file" : 'X\(//\)[^/]' \| \
18941 X"$ac_file" : 'X\(//\)$' \| \
18942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18943 $as_echo X"$ac_file" |
18944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18948 /^X\(\/\/\)[^/].*/{
18961 as_dir
="$ac_dir"; as_fn_mkdir_p
18965 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18967 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18968 # A ".." for each directory in $ac_dir_suffix.
18969 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18970 case $ac_top_builddir_sub in
18971 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18972 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18975 ac_abs_top_builddir
=$ac_pwd
18976 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18977 # for backward compatibility:
18978 ac_top_builddir
=$ac_top_build_prefix
18981 .
) # We are building in place.
18983 ac_top_srcdir
=$ac_top_builddir_sub
18984 ac_abs_top_srcdir
=$ac_pwd ;;
18985 [\\/]* | ?
:[\\/]* ) # Absolute name.
18986 ac_srcdir
=$srcdir$ac_dir_suffix;
18987 ac_top_srcdir
=$srcdir
18988 ac_abs_top_srcdir
=$srcdir ;;
18989 *) # Relative name.
18990 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18991 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18992 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18994 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19004 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19005 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19007 ac_MKDIR_P
=$MKDIR_P
19009 [\\/$
]* | ?
:[\\/]* ) ;;
19010 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
19014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19015 # If the template does not know about datarootdir, expand it.
19016 # FIXME: This hack should be removed a few years after 2.60.
19017 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19028 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19029 *datarootdir
*) ac_datarootdir_seen
=yes;;
19030 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19032 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19035 ac_datarootdir_hack='
19036 s&@datadir@&$datadir&g
19037 s&@docdir@&$docdir&g
19038 s&@infodir@&$infodir&g
19039 s&@localedir@&$localedir&g
19040 s&@mandir@&$mandir&g
19041 s&\\\${datarootdir}&$datarootdir&g' ;;
19045 # Neutralize VPATH when `$srcdir' = `.'.
19046 # Shell code in configure.ac might set extrasub.
19047 # FIXME: do we really want to maintain this feature?
19048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19049 ac_sed_extra="$ac_vpsub
19052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19054 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19055 s|@configure_input@|
$ac_sed_conf_input|
;t t
19056 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19057 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19058 s
&@srcdir@
&$ac_srcdir&;t t
19059 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19060 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19061 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19062 s
&@builddir@
&$ac_builddir&;t t
19063 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19064 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19065 s
&@INSTALL@
&$ac_INSTALL&;t t
19066 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19067 $ac_datarootdir_hack
19069 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
19070 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19072 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19073 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19074 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19075 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19077 which seems to be undefined. Please make sure it is defined" >&5
19078 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19079 which seems to be undefined. Please make sure it is defined" >&2;}
19081 rm -f "$ac_tmp/stdin"
19083 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19084 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19092 if test x"$ac_file" != x-; then
19094 $as_echo "/* $configure_input */" \
19095 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19096 } >"$ac_tmp/config.h" \
19097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19098 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19100 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19103 mv "$ac_tmp/config.h" "$ac_file" \
19104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19107 $as_echo "/* $configure_input */" \
19108 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19109 || as_fn_error $? "could not create -" "$LINENO" 5
19111 # Compute "$ac_file"'s index
in $config_headers.
19114 for _am_header
in $config_headers :; do
19115 case $_am_header in
19116 $_am_arg |
$_am_arg:* )
19119 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19122 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19123 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19124 X"$_am_arg" : 'X\(//\)[^/]' \| \
19125 X"$_am_arg" : 'X\(//\)$' \| \
19126 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19127 $as_echo X"$_am_arg" |
19128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19132 /^X\(\/\/\)[^/].*/{
19144 s/.*/./; q'`/stamp-h
$_am_stamp_count
19147 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19148 $as_echo "$as_me: executing $ac_file commands" >&6;}
19153 case $ac_file$ac_mode in
19156 # See if we are running on zsh, and set the options which allow our
19157 # commands through without removal of \ escapes.
19158 if test -n "${ZSH_VERSION+set}" ; then
19159 setopt NO_GLOB_SUBST
19162 cfgfile
="${ofile}T"
19163 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19166 cat <<_LT_EOF >> "$cfgfile"
19169 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19170 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19172 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19174 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19175 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19176 # Written by Gordon Matzigkeit, 1996
19178 # This file is part of GNU Libtool.
19180 # GNU Libtool is free software; you can redistribute it and/or
19181 # modify it under the terms of the GNU General Public License as
19182 # published by the Free Software Foundation; either version 2 of
19183 # the License, or (at your option) any later version.
19185 # As a special exception to the GNU General Public License,
19186 # if you distribute this file as part of a program or library that
19187 # is built using GNU Libtool, you may include this file under the
19188 # same distribution terms that you use for the rest of that program.
19190 # GNU Libtool is distributed in the hope that it will be useful,
19191 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19192 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19193 # GNU General Public License for more details.
19195 # You should have received a copy of the GNU General Public License
19196 # along with GNU Libtool; see the file COPYING. If not, a copy
19197 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19198 # obtained by writing to the Free Software Foundation, Inc.,
19199 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19202 # The names of the tagged configurations supported by this script.
19205 # ### BEGIN LIBTOOL CONFIG
19207 # Which release of libtool.m4 was used?
19208 macro_version=$macro_version
19209 macro_revision=$macro_revision
19211 # Whether or not to build shared libraries.
19212 build_libtool_libs=$enable_shared
19214 # Whether or not to build static libraries.
19215 build_old_libs=$enable_static
19217 # What type of objects to build.
19220 # Whether or not to optimize for fast installation.
19221 fast_install=$enable_fast_install
19223 # Shell to use when invoking shell scripts.
19226 # An echo program that protects backslashes.
19230 host_alias=$host_alias
19234 # The build system.
19235 build_alias=$build_alias
19239 # A sed program that does not truncate output.
19242 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19243 Xsed="\$SED -e 1s/^X//"
19245 # A grep program that handles long lines.
19251 # A literal string matcher.
19254 # A BSD- or MS-compatible name lister.
19257 # Whether we need soft or hard links.
19260 # What is the maximum length of a command?
19261 max_cmd_len=$max_cmd_len
19263 # Object file suffix (normally "o").
19266 # Executable file suffix (normally "").
19269 # whether the shell understands "unset".
19272 # turn spaces into newlines.
19275 # turn newlines into spaces.
19278 # An object symbol dumper.
19279 OBJDUMP=$lt_OBJDUMP
19281 # Method to check whether dependent libraries are shared objects.
19282 deplibs_check_method=$lt_deplibs_check_method
19284 # Command to use when deplibs_check_method == "file_magic".
19285 file_magic_cmd=$lt_file_magic_cmd
19289 AR_FLAGS=$lt_AR_FLAGS
19291 # A symbol stripping program.
19294 # Commands used to install an old-style archive.
19296 old_postinstall_cmds=$lt_old_postinstall_cmds
19297 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19299 # Whether to use a lock for old archive extraction.
19300 lock_old_archive_extraction=$lock_old_archive_extraction
19305 # LTCC compiler flags.
19306 LTCFLAGS=$lt_CFLAGS
19308 # Take the output of nm and produce a listing of raw symbols and C names.
19309 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19311 # Transform the output of nm in a proper C declaration.
19312 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19314 # Transform the output of nm in a C name address pair.
19315 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19317 # Transform the output of nm in a C name address pair when lib prefix is needed.
19318 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19320 # The name of the directory that contains temporary libtool files.
19323 # Used to examine libraries when file_magic_cmd begins with "file".
19324 MAGIC_CMD=$MAGIC_CMD
19326 # Must we lock files when doing compilation?
19327 need_locks=$lt_need_locks
19329 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19330 DSYMUTIL=$lt_DSYMUTIL
19332 # Tool to change global to local symbols on Mac OS X.
19335 # Tool to manipulate fat objects and archives on Mac OS X.
19338 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19341 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19342 OTOOL64=$lt_OTOOL64
19344 # Old archive suffix (normally "a").
19347 # Shared library suffix (normally ".so").
19348 shrext_cmds=$lt_shrext_cmds
19350 # The commands to extract the exported symbol list from a shared archive.
19351 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19353 # Variables whose values should be saved in libtool wrapper scripts and
19354 # restored at link time.
19355 variables_saved_for_relink=$lt_variables_saved_for_relink
19357 # Do we need the "lib" prefix for modules?
19358 need_lib_prefix=$need_lib_prefix
19360 # Do we need a version for libraries?
19361 need_version=$need_version
19363 # Library versioning type.
19364 version_type=$version_type
19366 # Shared library runtime path variable.
19367 runpath_var=$runpath_var
19369 # Shared library path variable.
19370 shlibpath_var=$shlibpath_var
19372 # Is shlibpath searched before the hard-coded library search path?
19373 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19375 # Format of library name prefix.
19376 libname_spec=$lt_libname_spec
19378 # List of archive names. First name is the real one, the rest are links.
19379 # The last name is the one that the linker finds with -lNAME
19380 library_names_spec=$lt_library_names_spec
19382 # The coded name of the library, if different from the real name.
19383 soname_spec=$lt_soname_spec
19385 # Permission mode override for installation of shared libraries.
19386 install_override_mode=$lt_install_override_mode
19388 # Command to use after installation of a shared archive.
19389 postinstall_cmds=$lt_postinstall_cmds
19391 # Command to use after uninstallation of a shared archive.
19392 postuninstall_cmds=$lt_postuninstall_cmds
19394 # Commands used to finish a libtool library installation in a directory.
19395 finish_cmds=$lt_finish_cmds
19397 # As "finish_cmds", except a single script fragment to be evaled but
19399 finish_eval=$lt_finish_eval
19401 # Whether we should hardcode library paths into libraries.
19402 hardcode_into_libs=$hardcode_into_libs
19404 # Compile-time system search path for libraries.
19405 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19407 # Run-time system search path for libraries.
19408 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19410 # Whether dlopen is supported.
19411 dlopen_support=$enable_dlopen
19413 # Whether dlopen of programs is supported.
19414 dlopen_self=$enable_dlopen_self
19416 # Whether dlopen of statically linked programs is supported.
19417 dlopen_self_static=$enable_dlopen_self_static
19419 # Commands to strip libraries.
19420 old_striplib=$lt_old_striplib
19421 striplib=$lt_striplib
19424 # The linker used to build libraries.
19427 # How to create reloadable object files.
19428 reload_flag=$lt_reload_flag
19429 reload_cmds=$lt_reload_cmds
19431 # Commands used to build an old-style archive.
19432 old_archive_cmds=$lt_old_archive_cmds
19434 # A language specific compiler.
19437 # Is the compiler the GNU compiler?
19440 # Compiler flag to turn off builtin functions.
19441 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19443 # How to pass a linker flag through the compiler.
19444 wl=$lt_lt_prog_compiler_wl
19446 # Additional compiler flags for building library objects.
19447 pic_flag=$lt_lt_prog_compiler_pic
19449 # Compiler flag to prevent dynamic linking.
19450 link_static_flag=$lt_lt_prog_compiler_static
19452 # Does compiler simultaneously support -c and -o options?
19453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19455 # Whether or not to add -lc for building shared libraries.
19456 build_libtool_need_lc=$archive_cmds_need_lc
19458 # Whether or not to disallow shared libs when runtime libs are static.
19459 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19461 # Compiler flag to allow reflexive dlopens.
19462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19464 # Compiler flag to generate shared objects directly from archives.
19465 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19467 # Whether the compiler copes with passing no objects directly.
19468 compiler_needs_object=$lt_compiler_needs_object
19470 # Create an old-style archive from a shared archive.
19471 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19473 # Create a temporary old-style archive to link instead of a shared archive.
19474 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19476 # Commands used to build a shared archive.
19477 archive_cmds=$lt_archive_cmds
19478 archive_expsym_cmds=$lt_archive_expsym_cmds
19480 # Commands used to build a loadable module if different from building
19481 # a shared archive.
19482 module_cmds=$lt_module_cmds
19483 module_expsym_cmds=$lt_module_expsym_cmds
19485 # Whether we are building with GNU ld or not.
19486 with_gnu_ld=$lt_with_gnu_ld
19488 # Flag that allows shared libraries with undefined symbols to be built.
19489 allow_undefined_flag=$lt_allow_undefined_flag
19491 # Flag that enforces no undefined symbols.
19492 no_undefined_flag=$lt_no_undefined_flag
19494 # Flag to hardcode \$libdir into a binary during linking.
19495 # This must work even if \$libdir does not exist
19496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19498 # If ld is used when linking, flag to hardcode \$libdir into a binary
19499 # during linking. This must work even if \$libdir does not exist.
19500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19502 # Whether we need a single "-rpath" flag with a separated argument.
19503 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19505 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19506 # DIR into the resulting binary.
19507 hardcode_direct=$hardcode_direct
19509 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19510 # DIR into the resulting binary and the resulting library dependency is
19511 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19512 # library is relocated.
19513 hardcode_direct_absolute=$hardcode_direct_absolute
19515 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19516 # into the resulting binary.
19517 hardcode_minus_L=$hardcode_minus_L
19519 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19520 # into the resulting binary.
19521 hardcode_shlibpath_var=$hardcode_shlibpath_var
19523 # Set to "yes" if building a shared library automatically hardcodes DIR
19524 # into the library and all subsequent libraries and executables linked
19526 hardcode_automatic=$hardcode_automatic
19528 # Set to yes if linker adds runtime paths of dependent libraries
19529 # to runtime path list.
19530 inherit_rpath=$inherit_rpath
19532 # Whether libtool must link a program against all its dependency libraries.
19533 link_all_deplibs=$link_all_deplibs
19535 # Fix the shell variable \$srcfile for the compiler.
19536 fix_srcfile_path=$lt_fix_srcfile_path
19538 # Set to "yes" if exported symbols are required.
19539 always_export_symbols=$always_export_symbols
19541 # The commands to list exported symbols.
19542 export_symbols_cmds=$lt_export_symbols_cmds
19544 # Symbols that should not be listed in the preloaded symbols.
19545 exclude_expsyms=$lt_exclude_expsyms
19547 # Symbols that must always be exported.
19548 include_expsyms=$lt_include_expsyms
19550 # Commands necessary for linking programs (against libraries) with templates.
19551 prelink_cmds=$lt_prelink_cmds
19553 # Specify filename containing input files.
19554 file_list_spec=$lt_file_list_spec
19556 # How to hardcode a shared library path into an executable.
19557 hardcode_action=$hardcode_action
19559 # ### END LIBTOOL CONFIG
19565 cat <<\_LT_EOF
>> "$cfgfile"
19566 # AIX sometimes has problems with the GCC collect2 program. For some
19567 # reason, if we set the COLLECT_NAMES environment variable, the problems
19568 # vanish in a puff of smoke.
19569 if test "X${COLLECT_NAMES+set}" != Xset
; then
19571 export COLLECT_NAMES
19578 ltmain
="$ac_aux_dir/ltmain.sh"
19581 # We use sed instead of cat because bash on DJGPP gets confused if
19582 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19583 # text mode, it properly converts lines to CR/LF. This bash problem
19584 # is reportedly fixed, but why not run on old versions too?
19585 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19586 ||
(rm -f "$cfgfile"; exit 1)
19590 cat << \_LT_EOF
>> "$cfgfile"
19592 # func_dirname file append nondir_replacement
19593 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19594 # otherwise set result to NONDIR_REPLACEMENT.
19598 */*) func_dirname_result
="${1%/*}${2}" ;;
19599 * ) func_dirname_result
="${3}" ;;
19603 # func_basename file
19606 func_basename_result
="${1##*/}"
19609 # func_dirname_and_basename file append nondir_replacement
19610 # perform func_basename and func_dirname in a single function
19612 # dirname: Compute the dirname of FILE. If nonempty,
19613 # add APPEND to the result, otherwise set result
19614 # to NONDIR_REPLACEMENT.
19615 # value returned in "$func_dirname_result"
19616 # basename: Compute filename of FILE.
19617 # value retuned in "$func_basename_result"
19618 # Implementation must be kept synchronized with func_dirname
19619 # and func_basename. For efficiency, we do not delegate to
19620 # those functions but instead duplicate the functionality here.
19621 func_dirname_and_basename
()
19624 */*) func_dirname_result
="${1%/*}${2}" ;;
19625 * ) func_dirname_result
="${3}" ;;
19627 func_basename_result
="${1##*/}"
19630 # func_stripname prefix suffix name
19631 # strip PREFIX and SUFFIX off of NAME.
19632 # PREFIX and SUFFIX must not contain globbing or regex special
19633 # characters, hashes, percent signs, but SUFFIX may contain a leading
19634 # dot (in which case that matches only a dot).
19637 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19638 # positional parameters, so assign one to ordinary parameter first.
19639 func_stripname_result
=${3}
19640 func_stripname_result
=${func_stripname_result#"${1}"}
19641 func_stripname_result
=${func_stripname_result%"${2}"}
19647 func_opt_split_opt
=${1%%=*}
19648 func_opt_split_arg
=${1#*=}
19655 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19656 *) func_lo2o_result
=${1} ;;
19660 # func_xform libobj-or-source
19663 func_xform_result
=${1%.*}.lo
19666 # func_arith arithmetic-term...
19669 func_arith_result
=$
(( $
* ))
19673 # STRING may not start with a hyphen.
19676 func_len_result
=${#1}
19681 *) # Bourne compatible functions.
19682 cat << \_LT_EOF
>> "$cfgfile"
19684 # func_dirname file append nondir_replacement
19685 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19686 # otherwise set result to NONDIR_REPLACEMENT.
19689 # Extract subdirectory from the argument.
19690 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19691 if test "X$func_dirname_result" = "X${1}"; then
19692 func_dirname_result
="${3}"
19694 func_dirname_result
="$func_dirname_result${2}"
19698 # func_basename file
19701 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19705 # func_stripname prefix suffix name
19706 # strip PREFIX and SUFFIX off of NAME.
19707 # PREFIX and SUFFIX must not contain globbing or regex special
19708 # characters, hashes, percent signs, but SUFFIX may contain a leading
19709 # dot (in which case that matches only a dot).
19710 # func_strip_suffix prefix name
19714 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19715 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19720 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19721 my_sed_long_arg
='1s/^-[^=]*=//'
19726 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19727 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19733 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19736 # func_xform libobj-or-source
19739 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19742 # func_arith arithmetic-term...
19745 func_arith_result
=`expr "$@"`
19749 # STRING may not start with a hyphen.
19752 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19758 case $lt_shell_append in
19760 cat << \_LT_EOF
>> "$cfgfile"
19762 # func_append var value
19763 # Append VALUE to the end of shell variable VAR.
19771 cat << \_LT_EOF
>> "$cfgfile"
19773 # func_append var value
19774 # Append VALUE to the end of shell variable VAR.
19785 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19786 ||
(rm -f "$cfgfile"; exit 1)
19788 mv -f "$cfgfile" "$ofile" ||
19789 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19793 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19794 # Older Autoconf quotes --file arguments for eval, but not when files
19795 # are listed without --file. Let's play safe and only enable the eval
19796 # if we detect the quoting.
19797 case $CONFIG_FILES in
19798 *\'*) eval set x
"$CONFIG_FILES" ;;
19799 *) set x
$CONFIG_FILES ;;
19804 # Strip MF so we end up with the name of the file.
19805 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19806 # Check whether this is an Automake generated Makefile or not.
19807 # We used to match only the files named 'Makefile.in', but
19808 # some people rename them; so instead we look at the file content.
19809 # Grep'ing the first line is not enough: some people post-process
19810 # each Makefile.in and add a new line on top of each file to say so.
19811 # Grep'ing the whole file is not good either: AIX grep has a line
19812 # limit of 2048, but all sed's we know have understand at least 4000.
19813 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19814 dirpart
=`$as_dirname -- "$mf" ||
19815 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19816 X"$mf" : 'X\(//\)[^/]' \| \
19817 X"$mf" : 'X\(//\)$' \| \
19818 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19824 /^X\(\/\/\)[^/].*/{
19840 # Extract the definition of DEPDIR, am__include, and am__quote
19841 # from the Makefile without running 'make'.
19842 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19843 test -z "$DEPDIR" && continue
19844 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19845 test -z "$am__include" && continue
19846 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19847 # Find all dependency output files, they are included files with
19848 # $(DEPDIR) in their names. We invoke sed twice because it is the
19849 # simplest approach to changing $(DEPDIR) to its actual value in the
19851 for file in `sed -n "
19852 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19853 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19854 # Make sure the directory exists.
19855 test -f "$dirpart/$file" && continue
19856 fdir
=`$as_dirname -- "$file" ||
19857 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19858 X"$file" : 'X\(//\)[^/]' \| \
19859 X"$file" : 'X\(//\)$' \| \
19860 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19861 $as_echo X"$file" |
19862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19866 /^X\(\/\/\)[^/].*/{
19879 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19880 # echo "creating $dirpart/$file"
19881 echo '# dummy' > "$dirpart/$file"
19893 ac_clean_files
=$ac_clean_files_save
19895 test $ac_write_fail = 0 ||
19896 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19899 # configure is writing to config.log, and then calls config.status.
19900 # config.status does its own redirection, appending to config.log.
19901 # Unfortunately, on DOS this fails, as config.log is still kept open
19902 # by configure, so config.status won't be able to write to it; its
19903 # output is simply discarded. So we exec the FD to /dev/null,
19904 # effectively closing config.log, so it can be properly (re)opened and
19905 # appended to by config.status. When coming back to configure, we
19906 # need to make the FD available again.
19907 if test "$no_create" != yes; then
19909 ac_config_status_args
=
19910 test "$silent" = yes &&
19911 ac_config_status_args
="$ac_config_status_args --quiet"
19913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19916 # would make configure fail if this is the last instruction.
19917 $ac_cs_success || as_fn_exit
1
19919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19921 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}