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 enable_option_checking
=no
638 ac_subst_vars
='am__EXEEXT_FALSE
641 SIM_RX_CYCLE_ACCURATE_FLAGS
643 SIM_MIPS_GEN_MODE_MULTI_FALSE
644 SIM_MIPS_GEN_MODE_MULTI_TRUE
645 SIM_MIPS_GEN_MODE_M16_FALSE
646 SIM_MIPS_GEN_MODE_M16_TRUE
647 SIM_MIPS_GEN_MODE_SINGLE_FALSE
648 SIM_MIPS_GEN_MODE_SINGLE_TRUE
651 SIM_MIPS_MULTI_IGEN_CONFIGS
652 SIM_MIPS_IGEN_ITABLE_FLAGS
655 SIM_MIPS_SINGLE_FLAGS
659 SIM_FRV_TRAPDUMP_FLAGS
660 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE
661 SIM_CFLAG_WNO_SHADOW_LOCAL
673 SIM_ENABLE_ARCH_examples_FALSE
674 SIM_ENABLE_ARCH_examples_TRUE
675 CC_FOR_TARGET_EXAMPLE_SYNACOR
676 LD_FOR_TARGET_EXAMPLE_SYNACOR
677 AS_FOR_TARGET_EXAMPLE_SYNACOR
678 SIM_ENABLE_ARCH_v850_FALSE
679 SIM_ENABLE_ARCH_v850_TRUE
683 SIM_ENABLE_ARCH_erc32_FALSE
684 SIM_ENABLE_ARCH_erc32_TRUE
688 SIM_ENABLE_ARCH_sh_FALSE
689 SIM_ENABLE_ARCH_sh_TRUE
693 SIM_ENABLE_ARCH_rx_FALSE
694 SIM_ENABLE_ARCH_rx_TRUE
698 SIM_ENABLE_ARCH_rl78_FALSE
699 SIM_ENABLE_ARCH_rl78_TRUE
703 SIM_ENABLE_ARCH_riscv_FALSE
704 SIM_ENABLE_ARCH_riscv_TRUE
708 SIM_ENABLE_ARCH_pru_FALSE
709 SIM_ENABLE_ARCH_pru_TRUE
713 SIM_ENABLE_ARCH_ppc_FALSE
714 SIM_ENABLE_ARCH_ppc_TRUE
719 SIM_ENABLE_ARCH_or1k_FALSE
720 SIM_ENABLE_ARCH_or1k_TRUE
724 SIM_ENABLE_ARCH_msp430_FALSE
725 SIM_ENABLE_ARCH_msp430_TRUE
729 SIM_ENABLE_ARCH_moxie_FALSE
730 SIM_ENABLE_ARCH_moxie_TRUE
734 SIM_ENABLE_ARCH_mn10300_FALSE
735 SIM_ENABLE_ARCH_mn10300_TRUE
736 CC_FOR_TARGET_MN10300
737 LD_FOR_TARGET_MN10300
738 AS_FOR_TARGET_MN10300
739 SIM_ENABLE_ARCH_mips_FALSE
740 SIM_ENABLE_ARCH_mips_TRUE
744 SIM_ENABLE_ARCH_microblaze_FALSE
745 SIM_ENABLE_ARCH_microblaze_TRUE
746 CC_FOR_TARGET_MICROBLAZE
747 LD_FOR_TARGET_MICROBLAZE
748 AS_FOR_TARGET_MICROBLAZE
749 SIM_ENABLE_ARCH_mcore_FALSE
750 SIM_ENABLE_ARCH_mcore_TRUE
754 SIM_ENABLE_ARCH_m68hc11_FALSE
755 SIM_ENABLE_ARCH_m68hc11_TRUE
756 CC_FOR_TARGET_M68HC11
757 LD_FOR_TARGET_M68HC11
758 AS_FOR_TARGET_M68HC11
759 SIM_ENABLE_ARCH_m32r_FALSE
760 SIM_ENABLE_ARCH_m32r_TRUE
764 SIM_ENABLE_ARCH_m32c_FALSE
765 SIM_ENABLE_ARCH_m32c_TRUE
769 SIM_ENABLE_ARCH_lm32_FALSE
770 SIM_ENABLE_ARCH_lm32_TRUE
774 SIM_ENABLE_ARCH_iq2000_FALSE
775 SIM_ENABLE_ARCH_iq2000_TRUE
779 SIM_ENABLE_ARCH_h8300_FALSE
780 SIM_ENABLE_ARCH_h8300_TRUE
784 SIM_ENABLE_ARCH_ft32_FALSE
785 SIM_ENABLE_ARCH_ft32_TRUE
789 SIM_ENABLE_ARCH_frv_FALSE
790 SIM_ENABLE_ARCH_frv_TRUE
794 SIM_ENABLE_ARCH_d10v_FALSE
795 SIM_ENABLE_ARCH_d10v_TRUE
799 SIM_ENABLE_ARCH_cris_FALSE
800 SIM_ENABLE_ARCH_cris_TRUE
804 SIM_ENABLE_ARCH_cr16_FALSE
805 SIM_ENABLE_ARCH_cr16_TRUE
809 SIM_ENABLE_ARCH_bpf_FALSE
810 SIM_ENABLE_ARCH_bpf_TRUE
814 SIM_ENABLE_ARCH_bfin_FALSE
815 SIM_ENABLE_ARCH_bfin_TRUE
819 SIM_ENABLE_ARCH_avr_FALSE
820 SIM_ENABLE_ARCH_avr_TRUE
824 SIM_ENABLE_ARCH_arm_FALSE
825 SIM_ENABLE_ARCH_arm_TRUE
829 SIM_ENABLE_ARCH_aarch64_FALSE
830 SIM_ENABLE_ARCH_aarch64_TRUE
831 CC_FOR_TARGET_AARCH64
832 LD_FOR_TARGET_AARCH64
833 AS_FOR_TARGET_AARCH64
860 INSTALL_STRIP_PROGRAM
872 MAINTAINER_MODE_FALSE
964 program_transform_name
980 enable_option_checking
989 enable_maintainer_mode
990 enable_dependency_tracking
1000 enable_sim_environment
1004 enable_sim_reserved_bits
1010 enable_build_warnings
1011 enable_sim_build_warnings
1012 enable_sim_frv_trapdump
1013 enable_sim_rx_cycle_accurate
1015 ac_precious_vars
='build_alias
1029 AS_FOR_TARGET_AARCH64
1030 LD_FOR_TARGET_AARCH64
1031 CC_FOR_TARGET_AARCH64
1062 AS_FOR_TARGET_IQ2000
1063 LD_FOR_TARGET_IQ2000
1064 CC_FOR_TARGET_IQ2000
1074 AS_FOR_TARGET_M68HC11
1075 LD_FOR_TARGET_M68HC11
1076 CC_FOR_TARGET_M68HC11
1080 AS_FOR_TARGET_MICROBLAZE
1081 LD_FOR_TARGET_MICROBLAZE
1082 CC_FOR_TARGET_MICROBLAZE
1086 AS_FOR_TARGET_MN10300
1087 LD_FOR_TARGET_MN10300
1088 CC_FOR_TARGET_MN10300
1092 AS_FOR_TARGET_MSP430
1093 LD_FOR_TARGET_MSP430
1094 CC_FOR_TARGET_MSP430
1122 AS_FOR_TARGET_EXAMPLE_SYNACOR
1123 LD_FOR_TARGET_EXAMPLE_SYNACOR
1124 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1125 ac_subdirs_all
='ppc'
1127 # Initialize some variables set by options.
1129 ac_init_version
=false
1130 ac_unrecognized_opts
=
1131 ac_unrecognized_sep
=
1132 # The variables have the same names as the options, with
1133 # dashes changed to underlines.
1134 cache_file
=/dev
/null
1141 program_transform_name
=s
,x
,x
,
1149 # Installation directory options.
1150 # These are left unexpanded so users can "make install exec_prefix=/foo"
1151 # and all the variables that are supposed to be based on exec_prefix
1152 # by default will actually change.
1153 # Use braces instead of parens because sh, perl, etc. also accept them.
1154 # (The list follows the same order as the GNU Coding Standards.)
1155 bindir
='${exec_prefix}/bin'
1156 sbindir
='${exec_prefix}/sbin'
1157 libexecdir
='${exec_prefix}/libexec'
1158 datarootdir
='${prefix}/share'
1159 datadir
='${datarootdir}'
1160 sysconfdir
='${prefix}/etc'
1161 sharedstatedir
='${prefix}/com'
1162 localstatedir
='${prefix}/var'
1163 includedir
='${prefix}/include'
1164 oldincludedir
='/usr/include'
1165 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1166 infodir
='${datarootdir}/info'
1171 libdir
='${exec_prefix}/lib'
1172 localedir
='${datarootdir}/locale'
1173 mandir
='${datarootdir}/man'
1179 # If the previous option needs an argument, assign it.
1180 if test -n "$ac_prev"; then
1181 eval $ac_prev=\
$ac_option
1187 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1192 # Accept the important Cygnus configure options, so we can diagnose typos.
1194 case $ac_dashdash$ac_option in
1198 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1200 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1201 bindir
=$ac_optarg ;;
1203 -build |
--build |
--buil |
--bui |
--bu)
1204 ac_prev
=build_alias
;;
1205 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1206 build_alias
=$ac_optarg ;;
1208 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1209 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1210 ac_prev
=cache_file
;;
1211 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1212 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1213 cache_file
=$ac_optarg ;;
1215 --config-cache |
-C)
1216 cache_file
=config.cache
;;
1218 -datadir |
--datadir |
--datadi |
--datad)
1220 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1221 datadir
=$ac_optarg ;;
1223 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1224 |
--dataroo |
--dataro |
--datar)
1225 ac_prev
=datarootdir
;;
1226 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1227 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1228 datarootdir
=$ac_optarg ;;
1230 -disable-* |
--disable-*)
1231 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1234 as_fn_error $?
"invalid feature name: $ac_useropt"
1235 ac_useropt_orig
=$ac_useropt
1236 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1239 "enable_
$ac_useropt"
1241 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1242 ac_unrecognized_sep
=', ';;
1244 eval enable_
$ac_useropt=no
;;
1246 -docdir |
--docdir |
--docdi |
--doc |
--do)
1248 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1249 docdir
=$ac_optarg ;;
1251 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1253 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1254 dvidir
=$ac_optarg ;;
1256 -enable-* |
--enable-*)
1257 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1260 as_fn_error $?
"invalid feature name: $ac_useropt"
1261 ac_useropt_orig
=$ac_useropt
1262 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1265 "enable_
$ac_useropt"
1267 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1268 ac_unrecognized_sep
=', ';;
1270 eval enable_
$ac_useropt=\
$ac_optarg ;;
1272 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1273 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1274 |
--exec |
--exe |
--ex)
1275 ac_prev
=exec_prefix
;;
1276 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1277 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1278 |
--exec=* |
--exe=* |
--ex=*)
1279 exec_prefix
=$ac_optarg ;;
1281 -gas |
--gas |
--ga |
--g)
1282 # Obsolete; use --with-gas.
1285 -help |
--help |
--hel |
--he |
-h)
1286 ac_init_help
=long
;;
1287 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1288 ac_init_help
=recursive
;;
1289 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1290 ac_init_help
=short
;;
1292 -host |
--host |
--hos |
--ho)
1293 ac_prev
=host_alias
;;
1294 -host=* |
--host=* |
--hos=* |
--ho=*)
1295 host_alias
=$ac_optarg ;;
1297 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1299 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1301 htmldir
=$ac_optarg ;;
1303 -includedir |
--includedir |
--includedi |
--included |
--include \
1304 |
--includ |
--inclu |
--incl |
--inc)
1305 ac_prev
=includedir
;;
1306 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1307 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1308 includedir
=$ac_optarg ;;
1310 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1312 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1313 infodir
=$ac_optarg ;;
1315 -libdir |
--libdir |
--libdi |
--libd)
1317 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1318 libdir
=$ac_optarg ;;
1320 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1321 |
--libexe |
--libex |
--libe)
1322 ac_prev
=libexecdir
;;
1323 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1324 |
--libexe=* |
--libex=* |
--libe=*)
1325 libexecdir
=$ac_optarg ;;
1327 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1328 ac_prev
=localedir
;;
1329 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1330 localedir
=$ac_optarg ;;
1332 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1333 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1334 ac_prev
=localstatedir
;;
1335 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1336 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1337 localstatedir
=$ac_optarg ;;
1339 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1341 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1342 mandir
=$ac_optarg ;;
1344 -nfp |
--nfp |
--nf)
1345 # Obsolete; use --without-fp.
1348 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1349 |
--no-cr |
--no-c |
-n)
1352 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1353 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1356 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1357 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1358 |
--oldin |
--oldi |
--old |
--ol |
--o)
1359 ac_prev
=oldincludedir
;;
1360 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1361 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1362 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1363 oldincludedir
=$ac_optarg ;;
1365 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1367 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1368 prefix
=$ac_optarg ;;
1370 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1371 |
--program-pre |
--program-pr |
--program-p)
1372 ac_prev
=program_prefix
;;
1373 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1374 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1375 program_prefix
=$ac_optarg ;;
1377 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1378 |
--program-suf |
--program-su |
--program-s)
1379 ac_prev
=program_suffix
;;
1380 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1381 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1382 program_suffix
=$ac_optarg ;;
1384 -program-transform-name |
--program-transform-name \
1385 |
--program-transform-nam |
--program-transform-na \
1386 |
--program-transform-n |
--program-transform- \
1387 |
--program-transform |
--program-transfor \
1388 |
--program-transfo |
--program-transf \
1389 |
--program-trans |
--program-tran \
1390 |
--progr-tra |
--program-tr |
--program-t)
1391 ac_prev
=program_transform_name
;;
1392 -program-transform-name=* |
--program-transform-name=* \
1393 |
--program-transform-nam=* |
--program-transform-na=* \
1394 |
--program-transform-n=* |
--program-transform-=* \
1395 |
--program-transform=* |
--program-transfor=* \
1396 |
--program-transfo=* |
--program-transf=* \
1397 |
--program-trans=* |
--program-tran=* \
1398 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1399 program_transform_name
=$ac_optarg ;;
1401 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1403 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1404 pdfdir
=$ac_optarg ;;
1406 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1408 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1411 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1412 |
-silent |
--silent |
--silen |
--sile |
--sil)
1415 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1417 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1419 sbindir
=$ac_optarg ;;
1421 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1422 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1423 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1425 ac_prev
=sharedstatedir
;;
1426 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1427 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1428 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1430 sharedstatedir
=$ac_optarg ;;
1432 -site |
--site |
--sit)
1434 -site=* |
--site=* |
--sit=*)
1437 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1439 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1440 srcdir
=$ac_optarg ;;
1442 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1443 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1444 ac_prev
=sysconfdir
;;
1445 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1446 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1447 sysconfdir
=$ac_optarg ;;
1449 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1450 ac_prev
=target_alias
;;
1451 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1452 target_alias
=$ac_optarg ;;
1454 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1457 -version |
--version |
--versio |
--versi |
--vers |
-V)
1458 ac_init_version
=: ;;
1461 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1462 # Reject names that are not valid shell variable names.
1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1464 as_fn_error $?
"invalid package name: $ac_useropt"
1465 ac_useropt_orig
=$ac_useropt
1466 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467 case $ac_user_opts in
1471 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1472 ac_unrecognized_sep
=', ';;
1474 eval with_
$ac_useropt=\
$ac_optarg ;;
1476 -without-* |
--without-*)
1477 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1478 # Reject names that are not valid shell variable names.
1479 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1480 as_fn_error $?
"invalid package name: $ac_useropt"
1481 ac_useropt_orig
=$ac_useropt
1482 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1483 case $ac_user_opts in
1487 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1488 ac_unrecognized_sep
=', ';;
1490 eval with_
$ac_useropt=no
;;
1493 # Obsolete; use --with-x.
1496 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1497 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1498 ac_prev
=x_includes
;;
1499 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1500 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1501 x_includes
=$ac_optarg ;;
1503 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1504 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1505 ac_prev
=x_libraries
;;
1506 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1507 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1508 x_libraries
=$ac_optarg ;;
1510 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1511 Try \`$0 --help' for more information"
1515 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1516 # Reject names that are not valid shell variable names.
1517 case $ac_envvar in #(
1518 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1519 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1521 eval $ac_envvar=\
$ac_optarg
1522 export $ac_envvar ;;
1525 # FIXME: should be removed in autoconf 3.0.
1526 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1527 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1528 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1529 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1535 if test -n "$ac_prev"; then
1536 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1537 as_fn_error $?
"missing argument to $ac_option"
1540 if test -n "$ac_unrecognized_opts"; then
1541 case $enable_option_checking in
1543 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1544 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1548 # Check all directory arguments for consistency.
1549 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1550 datadir sysconfdir sharedstatedir localstatedir includedir \
1551 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1552 libdir localedir mandir
1554 eval ac_val
=\$
$ac_var
1555 # Remove trailing slashes.
1558 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1559 eval $ac_var=\
$ac_val;;
1561 # Be sure to have absolute directory names.
1563 [\\/$
]* | ?
:[\\/]* ) continue;;
1564 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1566 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1569 # There might be people who depend on the old broken behavior: `$host'
1570 # used to hold the argument of --host etc.
1571 # FIXME: To remove some day.
1574 target
=$target_alias
1576 # FIXME: To remove some day.
1577 if test "x$host_alias" != x
; then
1578 if test "x$build_alias" = x
; then
1579 cross_compiling
=maybe
1580 elif test "x$build_alias" != "x$host_alias"; then
1586 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1588 test "$silent" = yes && exec 6>/dev
/null
1591 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1592 ac_ls_di
=`ls -di .` &&
1593 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1594 as_fn_error $?
"working directory cannot be determined"
1595 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1596 as_fn_error $?
"pwd does not report name of working directory"
1599 # Find the source files, if location was not specified.
1600 if test -z "$srcdir"; then
1601 ac_srcdir_defaulted
=yes
1602 # Try the directory containing this script, then the parent directory.
1603 ac_confdir
=`$as_dirname -- "$as_myself" ||
1604 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1605 X"$as_myself" : 'X\(//\)[^/]' \| \
1606 X"$as_myself" : 'X\(//\)$' \| \
1607 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1608 $as_echo X"$as_myself" |
1609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1627 if test ! -r "$srcdir/$ac_unique_file"; then
1631 ac_srcdir_defaulted
=no
1633 if test ! -r "$srcdir/$ac_unique_file"; then
1634 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1635 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1637 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1639 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1641 # When building in place, set srcdir=.
1642 if test "$ac_abs_confdir" = "$ac_pwd"; then
1645 # Remove unnecessary trailing slashes from srcdir.
1646 # Double slashes in file names in object file debugging info
1647 # mess up M-x gdb in Emacs.
1649 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1651 for ac_var
in $ac_precious_vars; do
1652 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1653 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1654 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1655 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1659 # Report the --help message.
1661 if test "$ac_init_help" = "long"; then
1662 # Omit some internal or obsolete options to make the list less imposing.
1663 # This message is too long to be a string in the A/UX 3.1 sh.
1665 \`configure' configures sim 0 to adapt to many kinds of systems.
1667 Usage: $0 [OPTION]... [VAR=VALUE]...
1669 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1670 VAR=VALUE. See below for descriptions of some of the useful variables.
1672 Defaults for the options are specified in brackets.
1675 -h, --help display this help and exit
1676 --help=short display options specific to this package
1677 --help=recursive display the short help of all the included packages
1678 -V, --version display version information and exit
1679 -q, --quiet, --silent do not print \`checking ...' messages
1680 --cache-file=FILE cache test results in FILE [disabled]
1681 -C, --config-cache alias for \`--cache-file=config.cache'
1682 -n, --no-create do not create output files
1683 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1685 Installation directories:
1686 --prefix=PREFIX install architecture-independent files in PREFIX
1687 [$ac_default_prefix]
1688 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1691 By default, \`make install' will install all the files in
1692 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1693 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1694 for instance \`--prefix=\$HOME'.
1696 For better control, use the options below.
1698 Fine tuning of the installation directories:
1699 --bindir=DIR user executables [EPREFIX/bin]
1700 --sbindir=DIR system admin executables [EPREFIX/sbin]
1701 --libexecdir=DIR program executables [EPREFIX/libexec]
1702 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1703 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1704 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1705 --libdir=DIR object code libraries [EPREFIX/lib]
1706 --includedir=DIR C header files [PREFIX/include]
1707 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1708 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1709 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1710 --infodir=DIR info documentation [DATAROOTDIR/info]
1711 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1712 --mandir=DIR man documentation [DATAROOTDIR/man]
1713 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1714 --htmldir=DIR html documentation [DOCDIR]
1715 --dvidir=DIR dvi documentation [DOCDIR]
1716 --pdfdir=DIR pdf documentation [DOCDIR]
1717 --psdir=DIR ps documentation [DOCDIR]
1723 --program-prefix=PREFIX prepend PREFIX to installed program names
1724 --program-suffix=SUFFIX append SUFFIX to installed program names
1725 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1728 --build=BUILD configure
for building on BUILD
[guessed
]
1729 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1730 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1734 if test -n "$ac_init_help"; then
1735 case $ac_init_help in
1736 short | recursive
) echo "Configuration of sim 0:";;
1741 --disable-option-checking ignore unrecognized
--enable/--with options
1742 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1743 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1744 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1745 --enable-static[=PKGS
] build static libraries
[default
=yes]
1746 --enable-fast-install[=PKGS
]
1747 optimize
for fast installation
[default
=yes]
1748 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1749 --enable-maintainer-mode
1750 enable make rules and dependencies not useful
(and
1751 sometimes confusing
) to the casual installer
1752 --enable-dependency-tracking
1753 do not reject slow dependency extractors
1754 --disable-dependency-tracking
1755 speeds up one-time build
1756 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1757 --disable-silent-rules verbose build output
(undo
: "make V=0")
1758 --enable-sim Enable the GNU simulator
1759 --enable-example-sims enable example GNU simulators
1760 --enable-targets alternative target configurations
1761 --enable-sim-alignment=align
1762 Specify strict
, nonstrict or forced alignment of
1764 --enable-sim-assert Specify whether to perform random assertions
1765 --enable-cgen-maint=DIR build cgen generated files
1766 --enable-sim-debug=opts Enable debugging flags
(for developers of the sim
1768 --enable-sim-endian=endian
1769 Specify target byte endian orientation
1770 --enable-sim-environment=environment
1771 Specify mixed
, user
, virtual or operating
1773 --enable-sim-hardware Whether to
enable hardware
/device simulation
1774 --enable-sim-inline=inlines
1775 Specify
which functions should be inlined
1776 --enable-sim-profile=opts
1777 Enable profiling flags
1778 --enable-sim-reserved-bits
1779 Specify whether to check reserved bits
in
1781 --enable-sim-scache=size
1782 Specify simulator execution cache size
1783 --enable-sim-smp=n Specify number of processors to configure
for
1785 --enable-sim-stdio Specify whether to use stdio
for console
1787 --enable-sim-trace=opts Enable tracing of simulated programs
1788 --enable-werror treat compile warnings as errors
1789 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1790 --enable-sim-build-warnings
1791 enable SIM specific build-time compiler warnings
if
1793 --enable-sim-frv-trapdump
1794 Make unknown traps dump the registers
1795 --disable-sim-rx-cycle-accurate
1796 Disable cycle accurate simulation
(faster runtime
)
1799 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1800 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1801 --with-pkgversion=PKG Use PKG
in the version string
in place of
"SIM"
1802 --with-bugurl=URL Direct users to URL to report a bug
1803 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1805 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1807 Some influential environment variables
:
1808 CC C compiler
command
1809 CFLAGS C compiler flags
1810 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1811 nonstandard directory
<lib dir
>
1812 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1813 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1814 you have headers
in a nonstandard directory
<include dir
>
1816 PKG_CONFIG path to pkg-config utility
1818 directories to add to pkg-config
's search path
1820 path overriding pkg-config's built-in search path
1821 SDL_CFLAGS C compiler flags
for SDL
, overriding pkg-config
1822 SDL_LIBS linker flags
for SDL
, overriding pkg-config
1823 AS_FOR_TARGET_AARCH64
1824 Assembler
for aarch64 tests
1825 LD_FOR_TARGET_AARCH64
1826 Linker
for aarch64 tests
1827 CC_FOR_TARGET_AARCH64
1828 C compiler
for aarch64 tests
1830 Assembler
for arm tests
1832 Linker
for arm tests
1834 C compiler
for arm tests
1836 Assembler
for avr tests
1838 Linker
for avr tests
1840 C compiler
for avr tests
1842 Assembler
for bfin tests
1844 Linker
for bfin tests
1846 C compiler
for bfin tests
1848 Assembler
for bpf tests
1850 Linker
for bpf tests
1852 C compiler
for bpf tests
1854 Assembler
for cr16 tests
1856 Linker
for cr16 tests
1858 C compiler
for cr16 tests
1860 Assembler
for cris tests
1862 Linker
for cris tests
1864 C compiler
for cris tests
1866 Assembler
for d10v tests
1868 Linker
for d10v tests
1870 C compiler
for d10v tests
1872 Assembler
for frv tests
1874 Linker
for frv tests
1876 C compiler
for frv tests
1878 Assembler
for ft32 tests
1880 Linker
for ft32 tests
1882 C compiler
for ft32 tests
1884 Assembler
for h8300 tests
1886 Linker
for h8300 tests
1888 C compiler
for h8300 tests
1889 AS_FOR_TARGET_IQ2000
1890 Assembler
for iq2000 tests
1891 LD_FOR_TARGET_IQ2000
1892 Linker
for iq2000 tests
1893 CC_FOR_TARGET_IQ2000
1894 C compiler
for iq2000 tests
1896 Assembler
for lm32 tests
1898 Linker
for lm32 tests
1900 C compiler
for lm32 tests
1902 Assembler
for m32c tests
1904 Linker
for m32c tests
1906 C compiler
for m32c tests
1908 Assembler
for m32r tests
1910 Linker
for m32r tests
1912 C compiler
for m32r tests
1913 AS_FOR_TARGET_M68HC11
1914 Assembler
for m68hc11 tests
1915 LD_FOR_TARGET_M68HC11
1916 Linker
for m68hc11 tests
1917 CC_FOR_TARGET_M68HC11
1918 C compiler
for m68hc11 tests
1920 Assembler
for mcore tests
1922 Linker
for mcore tests
1924 C compiler
for mcore tests
1925 AS_FOR_TARGET_MICROBLAZE
1926 Assembler
for microblaze tests
1927 LD_FOR_TARGET_MICROBLAZE
1928 Linker
for microblaze tests
1929 CC_FOR_TARGET_MICROBLAZE
1930 C compiler
for microblaze tests
1932 Assembler
for mips tests
1934 Linker
for mips tests
1936 C compiler
for mips tests
1937 AS_FOR_TARGET_MN10300
1938 Assembler
for mn10300 tests
1939 LD_FOR_TARGET_MN10300
1940 Linker
for mn10300 tests
1941 CC_FOR_TARGET_MN10300
1942 C compiler
for mn10300 tests
1944 Assembler
for moxie tests
1946 Linker
for moxie tests
1948 C compiler
for moxie tests
1949 AS_FOR_TARGET_MSP430
1950 Assembler
for msp430 tests
1951 LD_FOR_TARGET_MSP430
1952 Linker
for msp430 tests
1953 CC_FOR_TARGET_MSP430
1954 C compiler
for msp430 tests
1956 Assembler
for or1k tests
1958 Linker
for or1k tests
1960 C compiler
for or1k tests
1962 Assembler
for ppc tests
1964 Linker
for ppc tests
1966 C compiler
for ppc tests
1968 Assembler
for pru tests
1970 Linker
for pru tests
1972 C compiler
for pru tests
1974 Assembler
for riscv tests
1976 Linker
for riscv tests
1978 C compiler
for riscv tests
1980 Assembler
for rl78 tests
1982 Linker
for rl78 tests
1984 C compiler
for rl78 tests
1986 Assembler
for rx tests
1990 C compiler
for rx tests
1992 Assembler
for sh tests
1996 C compiler
for sh tests
1998 Assembler
for erc32 tests
2000 Linker
for erc32 tests
2002 C compiler
for erc32 tests
2004 Assembler
for v850 tests
2006 Linker
for v850 tests
2008 C compiler
for v850 tests
2009 AS_FOR_TARGET_EXAMPLE_SYNACOR
2010 Assembler
for example-synacor tests
2011 LD_FOR_TARGET_EXAMPLE_SYNACOR
2012 Linker
for example-synacor tests
2013 CC_FOR_TARGET_EXAMPLE_SYNACOR
2014 C compiler
for example-synacor tests
2016 Use these variables to override the choices made by
`configure' or to help
2017 it to find libraries and programs with nonstandard names/locations.
2019 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2020 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2025 if test "$ac_init_help" = "recursive"; then
2026 # If there are subdirs, report their specific --help.
2027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2028 test -d "$ac_dir" ||
2029 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2034 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2036 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2037 # A ".." for each directory in $ac_dir_suffix.
2038 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2039 case $ac_top_builddir_sub in
2040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2044 ac_abs_top_builddir=$ac_pwd
2045 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2046 # for backward compatibility:
2047 ac_top_builddir=$ac_top_build_prefix
2050 .) # We are building in place.
2052 ac_top_srcdir=$ac_top_builddir_sub
2053 ac_abs_top_srcdir=$ac_pwd ;;
2054 [\\/]* | ?:[\\/]* ) # Absolute name.
2055 ac_srcdir=$srcdir$ac_dir_suffix;
2056 ac_top_srcdir=$srcdir
2057 ac_abs_top_srcdir=$srcdir ;;
2059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2060 ac_top_srcdir=$ac_top_build_prefix$srcdir
2061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2063 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2065 cd "$ac_dir" || { ac_status=$?; continue; }
2066 # Check for guested configure.
2067 if test -f "$ac_srcdir/configure.gnu"; then
2069 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2070 elif test -f "$ac_srcdir/configure"; then
2072 $SHELL "$ac_srcdir/configure" --help=recursive
2074 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2076 cd "$ac_pwd" || { ac_status=$?; break; }
2080 test -n "$ac_init_help" && exit $ac_status
2081 if $ac_init_version; then
2084 generated by GNU Autoconf 2.69
2086 Copyright (C) 2012 Free Software Foundation, Inc.
2087 This configure script is free software; the Free Software Foundation
2088 gives unlimited permission to copy, distribute and modify it.
2093 ## ------------------------ ##
2094 ## Autoconf initialization. ##
2095 ## ------------------------ ##
2097 # ac_fn_c_try_compile LINENO
2098 # --------------------------
2099 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_c_try_compile ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 rm -f conftest.$ac_objext
2104 if { { ac_try="$ac_compile"
2106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2107 *) ac_try_echo
=$ac_try;;
2109 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_compile") 2>conftest.err
2113 if test -s conftest.err
; then
2114 grep -v '^ *+' conftest.err
>conftest.er1
2115 cat conftest.er1
>&5
2116 mv -f conftest.er1 conftest.err
2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 test $ac_status = 0; } && {
2120 test -z "$ac_c_werror_flag" ||
2121 test ! -s conftest.err
2122 } && test -s conftest.
$ac_objext; then :
2125 $as_echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.
$ac_ext >&5
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 as_fn_set_status
$ac_retval
2133 } # ac_fn_c_try_compile
2135 # ac_fn_c_try_cpp LINENO
2136 # ----------------------
2137 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2140 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2141 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } > conftest.i && {
2157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2158 test ! -s conftest.err
2162 $as_echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 as_fn_set_status $ac_retval
2172 # ac_fn_c_try_run LINENO
2173 # ----------------------
2174 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2175 # that executables *can* be run.
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if { { ac_try="$ac_link"
2181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2182 *) ac_try_echo
=$ac_try;;
2184 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_link") 2>&5
2188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2190 { { case "(($ac_try" in
2191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_try") 2>&5
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; }; }; then :
2202 $as_echo "$as_me: program exited with status $ac_status" >&5
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 ac_retval=$ac_status
2208 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 as_fn_set_status $ac_retval
2214 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2215 # -------------------------------------------------------
2216 # Tests whether HEADER exists and can be compiled using the include files in
2217 # INCLUDES, setting the cache variable VAR accordingly.
2218 ac_fn_c_check_header_compile ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222 $as_echo_n "checking for $2... " >&6; }
2223 if eval \${$3+:} false; then :
2224 $as_echo_n "(cached) " >&6
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2231 if ac_fn_c_try_compile "$LINENO"; then :
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 } # ac_fn_c_check_header_compile
2245 # ac_fn_c_try_link LINENO
2246 # -----------------------
2247 # Try to link conftest.$ac_ext, and return whether this succeeded.
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 rm -f conftest.$ac_objext conftest$ac_exeext
2252 if { { ac_try="$ac_link"
2254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2255 *) ac_try_echo
=$ac_try;;
2257 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 $as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>conftest.err
2261 if test -s conftest.err
; then
2262 grep -v '^ *+' conftest.err
>conftest.er1
2263 cat conftest.er1
>&5
2264 mv -f conftest.er1 conftest.err
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; } && {
2268 test -z "$ac_c_werror_flag" ||
2269 test ! -s conftest.err
2270 } && test -s conftest
$ac_exeext && {
2271 test "$cross_compiling" = yes ||
2272 test -x conftest
$ac_exeext
2276 $as_echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.
$ac_ext >&5
2281 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2282 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2283 # interfere with the next link command; also delete a directory that is
2284 # left behind by Apple's compiler. We do this before executing the actions.
2285 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status
$ac_retval
2289 } # ac_fn_c_try_link
2291 # ac_fn_c_check_func LINENO FUNC VAR
2292 # ----------------------------------
2293 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2294 ac_fn_c_check_func
()
2296 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2298 $as_echo_n "checking for $2... " >&6; }
2299 if eval \
${$3+:} false
; then :
2300 $as_echo_n "(cached) " >&6
2302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2306 #define $2 innocuous_$2
2308 /* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char $2 (); below.
2310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2311 <limits.h> exists even on freestanding compilers. */
2314 # include <limits.h>
2316 # include <assert.h>
2321 /* Override any GCC internal prototype to avoid an error.
2322 Use char because int might match the return type of a GCC
2323 builtin and then its argument prototype would still apply. */
2328 /* The GNU C library defines this for functions which it implements
2329 to always fail with ENOSYS. Some functions are actually named
2330 something starting with __ and the normal name is an alias. */
2331 #if defined __stub_$2 || defined __stub___$2
2343 if ac_fn_c_try_link
"$LINENO"; then :
2348 rm -f core conftest.err conftest.
$ac_objext \
2349 conftest
$ac_exeext conftest.
$ac_ext
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356 } # ac_fn_c_check_func
2358 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2359 # ----------------------------------------------------
2360 # Tries to find if the field MEMBER exists in type AGGR, after including
2361 # INCLUDES, setting cache variable VAR accordingly.
2362 ac_fn_c_check_member
()
2364 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2366 $as_echo_n "checking for $2.$3... " >&6; }
2367 if eval \
${$4+:} false
; then :
2368 $as_echo_n "(cached) " >&6
2370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2383 if ac_fn_c_try_compile
"$LINENO"; then :
2386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2393 if (sizeof ac_aggr.$3)
2399 if ac_fn_c_try_compile
"$LINENO"; then :
2404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413 } # ac_fn_c_check_member
2415 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2416 # ---------------------------------------------
2417 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2419 ac_fn_c_check_decl
()
2421 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2422 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2423 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2425 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2426 if eval \
${$3+:} false
; then :
2427 $as_echo_n "(cached) " >&6
2429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 #ifndef $as_decl_name
2437 (void) $as_decl_use;
2439 (void) $as_decl_name;
2447 if ac_fn_c_try_compile
"$LINENO"; then :
2452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 } # ac_fn_c_check_decl
2461 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2462 # -------------------------------------------
2463 # Tests whether TYPE exists after having included INCLUDES, setting cache
2464 # variable VAR accordingly.
2465 ac_fn_c_check_type
()
2467 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2469 $as_echo_n "checking for $2... " >&6; }
2470 if eval \
${$3+:} false
; then :
2471 $as_echo_n "(cached) " >&6
2474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2486 if ac_fn_c_try_compile
"$LINENO"; then :
2487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2499 if ac_fn_c_try_compile
"$LINENO"; then :
2504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510 $as_echo "$ac_res" >&6; }
2511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2513 } # ac_fn_c_check_type
2514 cat >config.log
<<_ACEOF
2515 This file contains any messages produced by compilers while
2516 running configure, to aid debugging if configure makes a mistake.
2518 It was created by sim $as_me 0, which was
2519 generated by GNU Autoconf 2.69. Invocation command line was
2531 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2532 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2533 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2534 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2535 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2537 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2538 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2540 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2541 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2542 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2543 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2544 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2545 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2546 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir
=.
2555 $as_echo "PATH: $as_dir"
2571 # Keep a trace of the command line.
2572 # Strip out --no-create and --no-recursion so they do not pile up.
2573 # Strip out --silent because we don't want to record it for future runs.
2574 # Also quote any args containing shell meta-characters.
2575 # Make two passes to allow for proper duplicate-argument suppression.
2579 ac_must_keep_next
=false
2585 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2586 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2587 |
-silent |
--silent |
--silen |
--sile |
--sil)
2590 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2593 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2595 as_fn_append ac_configure_args1
" '$ac_arg'"
2596 if test $ac_must_keep_next = true
; then
2597 ac_must_keep_next
=false
# Got value, back to normal.
2600 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2601 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2602 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2603 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2604 case "$ac_configure_args0 " in
2605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2608 -* ) ac_must_keep_next
=true
;;
2611 as_fn_append ac_configure_args
" '$ac_arg'"
2616 { ac_configure_args0
=; unset ac_configure_args0
;}
2617 { ac_configure_args1
=; unset ac_configure_args1
;}
2619 # When interrupted or exit'd, cleanup temporary files, and complete
2620 # config.log. We remove comments because anyway the quotes in there
2621 # would cause problems or look ugly.
2622 # WARNING: Use '\'' to represent an apostrophe within the trap.
2623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2624 trap 'exit_status=$?
2625 # Save into config.log some information that might help in debugging.
2629 $as_echo "## ---------------- ##
2630 ## Cache variables. ##
2631 ## ---------------- ##"
2633 # The following way of writing the cache mishandles newlines in values,
2635 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2636 eval ac_val=\$$ac_var
2640 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2641 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2644 _ | IFS | as_nl) ;; #(
2645 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2646 *) { eval $ac_var=; unset $ac_var;} ;;
2651 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2652 *${as_nl}ac_space=\ *)
2654 "s/'\''/'\''\\\\'\'''\''/g;
2655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2665 $as_echo "## ----------------- ##
2666 ## Output variables. ##
2667 ## ----------------- ##"
2669 for ac_var in $ac_subst_vars
2671 eval ac_val=\$$ac_var
2673 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2675 $as_echo "$ac_var='\''$ac_val'\''"
2679 if test -n "$ac_subst_files"; then
2680 $as_echo "## ------------------- ##
2681 ## File substitutions. ##
2682 ## ------------------- ##"
2684 for ac_var
in $ac_subst_files
2686 eval ac_val
=\$
$ac_var
2688 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2690 $as_echo "$ac_var='\''$ac_val'\''"
2695 if test -s confdefs.h; then
2696 $as_echo "## ----------- ##
2703 test "$ac_signal" != 0 &&
2704 $as_echo "$as_me: caught signal $ac_signal"
2705 $as_echo "$as_me: exit $exit_status"
2707 rm -f core *.core core.conftest.* &&
2708 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2711 for ac_signal
in 1 2 13 15; do
2712 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2717 rm -f -r conftest
* confdefs.h
2719 $as_echo "/* confdefs.h */" > confdefs.h
2721 # Predefined preprocessor variables.
2723 cat >>confdefs.h
<<_ACEOF
2724 #define PACKAGE_NAME "$PACKAGE_NAME"
2727 cat >>confdefs.h
<<_ACEOF
2728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2731 cat >>confdefs.h
<<_ACEOF
2732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2735 cat >>confdefs.h
<<_ACEOF
2736 #define PACKAGE_STRING "$PACKAGE_STRING"
2739 cat >>confdefs.h
<<_ACEOF
2740 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2743 cat >>confdefs.h
<<_ACEOF
2744 #define PACKAGE_URL "$PACKAGE_URL"
2748 # Let the site file select an alternate cache file if it wants to.
2749 # Prefer an explicitly selected file to automatically selected ones.
2752 if test -n "$CONFIG_SITE"; then
2753 # We do not want a PATH search for config.site.
2754 case $CONFIG_SITE in #((
2755 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2756 */*) ac_site_file1
=$CONFIG_SITE;;
2757 *) ac_site_file1
=.
/$CONFIG_SITE;;
2759 elif test "x$prefix" != xNONE
; then
2760 ac_site_file1
=$prefix/share
/config.site
2761 ac_site_file2
=$prefix/etc
/config.site
2763 ac_site_file1
=$ac_default_prefix/share
/config.site
2764 ac_site_file2
=$ac_default_prefix/etc
/config.site
2766 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2768 test "x$ac_site_file" = xNONE
&& continue
2769 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2771 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2772 sed 's/^/| /' "$ac_site_file" >&5
2774 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 as_fn_error $?
"failed to load site script $ac_site_file
2777 See \`config.log' for more details" "$LINENO" 5; }
2781 if test -r "$cache_file"; then
2782 # Some versions of bash will fail to source /dev/null (special files
2783 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2784 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2786 $as_echo "$as_me: loading cache $cache_file" >&6;}
2788 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2789 *) .
"./$cache_file";;
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2794 $as_echo "$as_me: creating cache $cache_file" >&6;}
2798 as_fn_append ac_header_list
" dlfcn.h"
2799 as_fn_append ac_header_list
" fcntl.h"
2800 as_fn_append ac_header_list
" fpu_control.h"
2801 as_fn_append ac_header_list
" termios.h"
2802 as_fn_append ac_header_list
" utime.h"
2803 as_fn_append ac_header_list
" linux/if_tun.h"
2804 as_fn_append ac_header_list
" linux/mii.h"
2805 as_fn_append ac_header_list
" linux/types.h"
2806 as_fn_append ac_header_list
" net/if.h"
2807 as_fn_append ac_header_list
" netinet/in.h"
2808 as_fn_append ac_header_list
" netinet/tcp.h"
2809 as_fn_append ac_header_list
" sys/ioctl.h"
2810 as_fn_append ac_header_list
" sys/mman.h"
2811 as_fn_append ac_header_list
" sys/mount.h"
2812 as_fn_append ac_header_list
" sys/param.h"
2813 as_fn_append ac_header_list
" sys/resource.h"
2814 as_fn_append ac_header_list
" sys/socket.h"
2815 as_fn_append ac_header_list
" sys/statfs.h"
2816 as_fn_append ac_header_list
" sys/termio.h"
2817 as_fn_append ac_header_list
" sys/termios.h"
2818 as_fn_append ac_header_list
" sys/types.h"
2819 as_fn_append ac_header_list
" sys/vfs.h"
2820 as_fn_append ac_func_list
" __setfpucw"
2821 as_fn_append ac_func_list
" access"
2822 as_fn_append ac_func_list
" aint"
2823 as_fn_append ac_func_list
" anint"
2824 as_fn_append ac_func_list
" cfgetispeed"
2825 as_fn_append ac_func_list
" cfgetospeed"
2826 as_fn_append ac_func_list
" cfsetispeed"
2827 as_fn_append ac_func_list
" cfsetospeed"
2828 as_fn_append ac_func_list
" chdir"
2829 as_fn_append ac_func_list
" chmod"
2830 as_fn_append ac_func_list
" dup"
2831 as_fn_append ac_func_list
" dup2"
2832 as_fn_append ac_func_list
" execv"
2833 as_fn_append ac_func_list
" execve"
2834 as_fn_append ac_func_list
" fcntl"
2835 as_fn_append ac_func_list
" fork"
2836 as_fn_append ac_func_list
" fstat"
2837 as_fn_append ac_func_list
" fstatfs"
2838 as_fn_append ac_func_list
" ftruncate"
2839 as_fn_append ac_func_list
" getdirentries"
2840 as_fn_append ac_func_list
" getegid"
2841 as_fn_append ac_func_list
" geteuid"
2842 as_fn_append ac_func_list
" getgid"
2843 as_fn_append ac_func_list
" getpid"
2844 as_fn_append ac_func_list
" getppid"
2845 as_fn_append ac_func_list
" getrusage"
2846 as_fn_append ac_func_list
" gettimeofday"
2847 as_fn_append ac_func_list
" getuid"
2848 as_fn_append ac_func_list
" ioctl"
2849 as_fn_append ac_func_list
" kill"
2850 as_fn_append ac_func_list
" link"
2851 as_fn_append ac_func_list
" lseek"
2852 as_fn_append ac_func_list
" lstat"
2853 as_fn_append ac_func_list
" mkdir"
2854 as_fn_append ac_func_list
" mmap"
2855 as_fn_append ac_func_list
" munmap"
2856 as_fn_append ac_func_list
" pipe"
2857 as_fn_append ac_func_list
" posix_fallocate"
2858 as_fn_append ac_func_list
" pread"
2859 as_fn_append ac_func_list
" rmdir"
2860 as_fn_append ac_func_list
" setregid"
2861 as_fn_append ac_func_list
" setreuid"
2862 as_fn_append ac_func_list
" setgid"
2863 as_fn_append ac_func_list
" setuid"
2864 as_fn_append ac_func_list
" sigaction"
2865 as_fn_append ac_func_list
" sigprocmask"
2866 as_fn_append ac_func_list
" sqrt"
2867 as_fn_append ac_func_list
" stat"
2868 as_fn_append ac_func_list
" strsignal"
2869 as_fn_append ac_func_list
" symlink"
2870 as_fn_append ac_func_list
" tcdrain"
2871 as_fn_append ac_func_list
" tcflow"
2872 as_fn_append ac_func_list
" tcflush"
2873 as_fn_append ac_func_list
" tcgetattr"
2874 as_fn_append ac_func_list
" tcgetpgrp"
2875 as_fn_append ac_func_list
" tcsendbreak"
2876 as_fn_append ac_func_list
" tcsetattr"
2877 as_fn_append ac_func_list
" tcsetpgrp"
2878 as_fn_append ac_func_list
" time"
2879 as_fn_append ac_func_list
" truncate"
2880 as_fn_append ac_func_list
" umask"
2881 as_fn_append ac_func_list
" unlink"
2882 as_fn_append ac_func_list
" utime"
2883 # Check that the precious variables saved in the cache have kept the same
2885 ac_cache_corrupted
=false
2886 for ac_var
in $ac_precious_vars; do
2887 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2888 eval ac_new_set
=\
$ac_env_${ac_var}_set
2889 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2890 eval ac_new_val
=\
$ac_env_${ac_var}_value
2891 case $ac_old_set,$ac_new_set in
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2894 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2895 ac_cache_corrupted
=: ;;
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2898 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2899 ac_cache_corrupted
=: ;;
2902 if test "x$ac_old_val" != "x$ac_new_val"; then
2903 # differences in whitespace do not lead to failure.
2904 ac_old_val_w
=`echo x $ac_old_val`
2905 ac_new_val_w
=`echo x $ac_new_val`
2906 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2908 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2909 ac_cache_corrupted
=:
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2912 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2913 eval $ac_var=\
$ac_old_val
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2916 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2918 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2921 # Pass precious variables to config.status.
2922 if test "$ac_new_set" = set; then
2924 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2925 *) ac_arg
=$ac_var=$ac_new_val ;;
2927 case " $ac_configure_args " in
2928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2929 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2933 if $ac_cache_corrupted; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2937 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2938 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2940 ## -------------------- ##
2941 ## Main body of script. ##
2942 ## -------------------- ##
2945 ac_cpp
='$CPP $CPPFLAGS'
2946 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2957 # Check whether --with-pkgversion was given.
2958 if test "${with_pkgversion+set}" = set; then :
2959 withval
=$with_pkgversion; case "$withval" in
2960 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
2962 *) PKGVERSION
="($withval) " ;;
2972 cat >>confdefs.h
<<_ACEOF
2973 #define PKGVERSION "$PKGVERSION"
2978 # Check whether --with-bugurl was given.
2979 if test "${with_bugurl+set}" = set; then :
2980 withval
=$with_bugurl; case "$withval" in
2981 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
2984 *) BUGURL
="$withval"
2988 BUGURL
="$PACKAGE_BUGREPORT"
2998 REPORT_BUGS_TO
="<$BUGURL>"
2999 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
3006 cat >>confdefs.h
<<_ACEOF
3007 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3011 ac_config_headers
="$ac_config_headers config.h"
3014 .
$srcdir/..
/bfd
/development.sh
3017 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 if test -f "$ac_dir/install-sh"; then
3020 ac_install_sh
="$ac_aux_dir/install-sh -c"
3022 elif test -f "$ac_dir/install.sh"; then
3024 ac_install_sh
="$ac_aux_dir/install.sh -c"
3026 elif test -f "$ac_dir/shtool"; then
3028 ac_install_sh
="$ac_aux_dir/shtool install -c"
3032 if test -z "$ac_aux_dir"; then
3033 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3036 # These three variables are undocumented and unsupported,
3037 # and are intended to be withdrawn in a future Autoconf release.
3038 # They can cause serious problems if a builder's source tree is in a directory
3039 # whose full name contains unusual characters.
3040 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3041 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3042 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3045 # Make sure we can run config.sub.
3046 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3047 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3050 $as_echo_n "checking build system type... " >&6; }
3051 if ${ac_cv_build+:} false
; then :
3052 $as_echo_n "(cached) " >&6
3054 ac_build_alias
=$build_alias
3055 test "x$ac_build_alias" = x
&&
3056 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3057 test "x$ac_build_alias" = x
&&
3058 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3059 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3060 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3064 $as_echo "$ac_cv_build" >&6; }
3065 case $ac_cv_build in
3067 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3070 ac_save_IFS
=$IFS; IFS
='-'
3076 # Remember, the first character of IFS is used to create $*,
3077 # except with old shells:
3080 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3084 $as_echo_n "checking host system type... " >&6; }
3085 if ${ac_cv_host+:} false
; then :
3086 $as_echo_n "(cached) " >&6
3088 if test "x$host_alias" = x
; then
3089 ac_cv_host
=$ac_cv_build
3091 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3092 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3097 $as_echo "$ac_cv_host" >&6; }
3100 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3103 ac_save_IFS
=$IFS; IFS
='-'
3109 # Remember, the first character of IFS is used to create $*,
3110 # except with old shells:
3113 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3117 $as_echo_n "checking target system type... " >&6; }
3118 if ${ac_cv_target+:} false
; then :
3119 $as_echo_n "(cached) " >&6
3121 if test "x$target_alias" = x
; then
3122 ac_cv_target
=$ac_cv_host
3124 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3125 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3130 $as_echo "$ac_cv_target" >&6; }
3131 case $ac_cv_target in
3133 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3135 target
=$ac_cv_target
3136 ac_save_IFS
=$IFS; IFS
='-'
3142 # Remember, the first character of IFS is used to create $*,
3143 # except with old shells:
3146 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3149 # The aliases save the names the user supplied, while $host etc.
3150 # will get canonicalized.
3151 test -n "$target_alias" &&
3152 test "$program_prefix$program_suffix$program_transform_name" = \
3154 program_prefix
=${target_alias}-
3155 # Expand $ac_aux_dir to an absolute path.
3156 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3159 ac_cpp
='$CPP $CPPFLAGS'
3160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3165 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false
; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC
="$CC" # Let the user override the test.
3174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir
=.
3179 for ac_exec_ext
in '' $ac_executable_extensions; do
3180 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3202 if test -z "$ac_cv_prog_CC"; then
3204 # Extract the first word of "gcc", so it can be a program name with args.
3205 set dummy gcc
; ac_word
=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3209 $as_echo_n "(cached) " >&6
3211 if test -n "$ac_ct_CC"; then
3212 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3218 test -z "$as_dir" && as_dir
=.
3219 for ac_exec_ext
in '' $ac_executable_extensions; do
3220 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_ac_ct_CC
="gcc"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3232 if test -n "$ac_ct_CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234 $as_echo "$ac_ct_CC" >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3240 if test "x$ac_ct_CC" = x
; then
3243 case $cross_compiling:$ac_tool_warned in
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned
=yes ;;
3255 if test -z "$CC"; then
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3258 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false
; then :
3262 $as_echo_n "(cached) " >&6
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC
="$CC" # Let the user override the test.
3267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir
=.
3272 for ac_exec_ext
in '' $ac_executable_extensions; do
3273 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3296 if test -z "$CC"; then
3297 # Extract the first word of "cc", so it can be a program name with args.
3298 set dummy cc
; ac_word
=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_CC+:} false
; then :
3302 $as_echo_n "(cached) " >&6
3304 if test -n "$CC"; then
3305 ac_cv_prog_CC
="$CC" # Let the user override the test.
3308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir
=.
3313 for ac_exec_ext
in '' $ac_executable_extensions; do
3314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3315 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3316 ac_prog_rejected
=yes
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 if test $ac_prog_rejected = yes; then
3328 # We found a bogon in the path, so make sure we never use it.
3329 set dummy
$ac_cv_prog_CC
3331 if test $# != 0; then
3332 # We chose a different compiler from the bogus one.
3333 # However, it has the same basename, so the bogon will be chosen
3334 # first if we set CC to just the basename; use the full file name.
3336 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3342 if test -n "$CC"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3344 $as_echo "$CC" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 for ac_prog
in cl.exe
3356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3357 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_CC+:} false
; then :
3361 $as_echo_n "(cached) " >&6
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC
="$CC" # Let the user override the test.
3366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir
=.
3371 for ac_exec_ext
in '' $ac_executable_extensions; do
3372 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 if test -n "$CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 $as_echo "$CC" >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3393 test -n "$CC" && break
3396 if test -z "$CC"; then
3398 for ac_prog
in cl.exe
3400 # Extract the first word of "$ac_prog", so it can be a program name with args.
3401 set dummy
$ac_prog; ac_word
=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3405 $as_echo_n "(cached) " >&6
3407 if test -n "$ac_ct_CC"; then
3408 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir
=.
3415 for ac_exec_ext
in '' $ac_executable_extensions; do
3416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_ac_ct_CC
="$ac_prog"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3428 if test -n "$ac_ct_CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3430 $as_echo "$ac_ct_CC" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3437 test -n "$ac_ct_CC" && break
3440 if test "x$ac_ct_CC" = x
; then
3443 case $cross_compiling:$ac_tool_warned in
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3447 ac_tool_warned
=yes ;;
3456 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error $?
"no acceptable C compiler found in \$PATH
3459 See \`config.log' for more details" "$LINENO" 5; }
3461 # Provide some information about the compiler.
3462 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3465 for ac_option
in --version -v -V -qversion; do
3466 { { ac_try
="$ac_compiler $ac_option >&5"
3468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3475 if test -s conftest.err; then
3477 ... rest of stderr output deleted ...
3478 10q' conftest.err >conftest.er1
3479 cat conftest.er1 >&5
3481 rm -f conftest.er1 conftest.err
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3497 ac_clean_files_save=$ac_clean_files
3498 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3499 # Try to create an executable without -o first, disregard a.out.
3500 # It will help us diagnose broken compilers, and finding out an intuition
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3503 $as_echo_n "checking whether the C compiler works... " >&6; }
3504 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3506 # The possible output files:
3507 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3510 for ac_file in $ac_files
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3514 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519 if { { ac_try="$ac_link_default"
3521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3522 *) ac_try_echo
=$ac_try;;
3524 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_link_default") 2>&5
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; then :
3530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3531 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3532 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3533 # so that the user can short-circuit this test for compilers unknown to
3535 for ac_file
in $ac_files ''
3537 test -f "$ac_file" ||
continue
3539 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3542 # We found the default executable, but exeext='' is most
3546 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3548 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550 # We set ac_cv_exeext here because the later test for it is not
3551 # safe: cross compilers may not add the suffix if given an `-o'
3552 # argument, so we may need to know it at that point already.
3553 # Even if this section looks crufty: it has the advantage of
3560 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3565 if test -z "$ac_file"; then :
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.
$ac_ext >&5
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error
77 "C compiler cannot create executables
3574 See \`config.log' for more details" "$LINENO" 5; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3577 $as_echo "yes" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3580 $as_echo_n "checking for C compiler default output file name... " >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3582 $as_echo "$ac_file" >&6; }
3583 ac_exeext
=$ac_cv_exeext
3585 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3586 ac_clean_files
=$ac_clean_files_save
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3588 $as_echo_n "checking for suffix of executables... " >&6; }
3589 if { { ac_try
="$ac_link"
3591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link") 2>&5
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; then :
3600 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3601 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3602 # work properly (i.e., refer to `conftest.exe'), while it won't with
3604 for ac_file
in conftest.exe conftest conftest.
*; do
3605 test -f "$ac_file" ||
continue
3607 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3608 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3617 See \`config.log' for more details" "$LINENO" 5; }
3619 rm -f conftest conftest
$ac_cv_exeext
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3621 $as_echo "$ac_cv_exeext" >&6; }
3623 rm -f conftest.
$ac_ext
3624 EXEEXT
=$ac_cv_exeext
3626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3632 FILE *f = fopen ("conftest.out", "w");
3633 return ferror (f) || fclose (f) != 0;
3639 ac_clean_files
="$ac_clean_files conftest.out"
3640 # Check that the compiler produces executables we can run. If not, either
3641 # the compiler is broken, or we cross compile.
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3643 $as_echo_n "checking whether we are cross compiling... " >&6; }
3644 if test "$cross_compiling" != yes; then
3645 { { ac_try
="$ac_link"
3647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_link") 2>&5
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }
3656 if { ac_try='./conftest$ac_cv_exeext'
3657 { { case "(($ac_try" in
3658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3659 *) ac_try_echo
=$ac_try;;
3661 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_try") 2>&5
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; }; then
3669 if test "$cross_compiling" = maybe
; then
3672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error $?
"cannot run C compiled programs.
3675 If you meant to cross compile, use \`--host'.
3676 See \`config.log' for more details" "$LINENO" 5; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3681 $as_echo "$cross_compiling" >&6; }
3683 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3684 ac_clean_files
=$ac_clean_files_save
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3686 $as_echo_n "checking for suffix of object files... " >&6; }
3687 if ${ac_cv_objext+:} false
; then :
3688 $as_echo_n "(cached) " >&6
3690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3701 rm -f conftest.o conftest.obj
3702 if { { ac_try
="$ac_compile"
3704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709 (eval "$ac_compile") 2>&5
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }; then :
3713 for ac_file in conftest.o conftest.obj conftest.*; do
3714 test -f "$ac_file" || continue;
3716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3717 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3728 See \
`config.log' for more details" "$LINENO" 5; }
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3733 $as_echo "$ac_cv_objext" >&6; }
3734 OBJEXT=$ac_cv_objext
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3737 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3738 if ${ac_cv_c_compiler_gnu+:} false; then :
3739 $as_echo_n "(cached) " >&6
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3755 if ac_fn_c_try_compile "$LINENO"; then :
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3765 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3766 if test $ac_compiler_gnu = yes; then
3771 ac_test_CFLAGS=${CFLAGS+set}
3772 ac_save_CFLAGS=$CFLAGS
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3774 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3775 if ${ac_cv_prog_cc_g+:} false; then :
3776 $as_echo_n "(cached) " >&6
3778 ac_save_c_werror_flag=$ac_c_werror_flag
3779 ac_c_werror_flag=yes
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3793 if ac_fn_c_try_compile "$LINENO"; then :
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3808 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_c_werror_flag=$ac_save_c_werror_flag
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3824 if ac_fn_c_try_compile "$LINENO"; then :
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_c_werror_flag=$ac_save_c_werror_flag
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3835 $as_echo "$ac_cv_prog_cc_g" >&6; }
3836 if test "$ac_test_CFLAGS" = set; then
3837 CFLAGS=$ac_save_CFLAGS
3838 elif test $ac_cv_prog_cc_g = yes; then
3839 if test "$GCC" = yes; then
3845 if test "$GCC" = yes; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3852 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3853 if ${ac_cv_prog_cc_c89+:} false; then :
3854 $as_echo_n "(cached) " >&6
3856 ac_cv_prog_cc_c89=no
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3863 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3864 struct buf { int x; };
3865 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3866 static char *e (p, i)
3872 static char *f (char * (*g) (char **, int), char **p, ...)
3877 s = g (p, va_arg (v,int));
3882 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3883 function prototypes and stuff, but not '\xHH' hex character constants.
3884 These don't provoke an error unfortunately, instead are silently treated
3885 as 'x'. The following induces an error, until -std is added to get
3886 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3887 array size at least. It's necessary to write '\x00'==0 to get something
3888 that's true only with -std. */
3889 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3891 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3892 inside strings and character constants. */
3894 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3896 int test (int i, double x);
3897 struct s1 {int (*f) (int a);};
3898 struct s2 {int (*f) (double a);};
3899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3910 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3911 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3913 CC="$ac_save_CC $ac_arg"
3914 if ac_fn_c_try_compile "$LINENO"; then :
3915 ac_cv_prog_cc_c89=$ac_arg
3917 rm -f core conftest.err conftest.$ac_objext
3918 test "x$ac_cv_prog_cc_c89" != "xno" && break
3920 rm -f conftest.$ac_ext
3925 case "x$ac_cv_prog_cc_c89" in
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3928 $as_echo "none needed" >&6; } ;;
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3931 $as_echo "unsupported" >&6; } ;;
3933 CC="$CC $ac_cv_prog_cc_c89"
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3935 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3937 if test "x$ac_cv_prog_cc_c89" != xno; then :
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3953 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3954 if ${am_cv_prog_cc_c_o+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3968 # Make sure it works both with $CC and with simple cc.
3969 # Following AC_PROG_CC_C_O, we do the test twice because some
3970 # compilers refuse to overwrite an existing .o file with -o,
3971 # though they will create one.
3972 am_cv_prog_cc_c_o=yes
3974 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3975 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } \
3979 && test -f conftest2.$ac_objext; then
3982 am_cv_prog_cc_c_o=no
3986 rm -f core conftest*
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3990 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3991 if test "$am_cv_prog_cc_c_o" != yes; then
3992 # Losing compiler, so override with the script.
3993 # FIXME: It is wrong to rewrite CC.
3994 # But if we don't then we get into trouble of one sort or another.
3995 # A longer-term fix would be to have automake use am__CC in this case,
3996 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3997 CC="$am_aux_dir/compile $CC"
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4013 # On Suns, sometimes $CPP names a directory.
4014 if test -n "$CPP" && test -d "$CPP"; then
4017 if test -z "$CPP"; then
4018 if ${ac_cv_prog_CPP+:} false; then :
4019 $as_echo_n "(cached) " >&6
4021 # Double quotes because CPP needs to be expanded
4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4025 for ac_c_preproc_warn_flag in '' yes
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4036 # include <limits.h>
4038 # include <assert.h>
4042 if ac_fn_c_try_cpp "$LINENO"; then :
4045 # Broken: fails on valid input.
4048 rm -f conftest.err conftest.i conftest.$ac_ext
4050 # OK, works on sane cases. Now check whether nonexistent headers
4051 # can be detected and how.
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <ac_nonexistent.h>
4056 if ac_fn_c_try_cpp "$LINENO"; then :
4057 # Broken: success on invalid input.
4060 # Passes both tests.
4064 rm -f conftest.err conftest.i conftest.$ac_ext
4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 rm -f conftest.i conftest.err conftest.
$ac_ext
4069 if $ac_preproc_ok; then :
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4082 $as_echo "$CPP" >&6; }
4084 for ac_c_preproc_warn_flag
in '' yes
4086 # Use a header file that comes with gcc, so configuring glibc
4087 # with a fresh cross-compiler works.
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 # <limits.h> exists even on freestanding compilers.
4090 # On the NeXT, cc -E runs the code through the compiler's parser,
4091 # not just through cpp. "Syntax error" is here to catch this case.
4092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4095 # include <limits.h>
4097 # include <assert.h>
4101 if ac_fn_c_try_cpp
"$LINENO"; then :
4104 # Broken: fails on valid input.
4107 rm -f conftest.err conftest.i conftest.
$ac_ext
4109 # OK, works on sane cases. Now check whether nonexistent headers
4110 # can be detected and how.
4111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <ac_nonexistent.h>
4115 if ac_fn_c_try_cpp
"$LINENO"; then :
4116 # Broken: success on invalid input.
4119 # Passes both tests.
4123 rm -f conftest.err conftest.i conftest.
$ac_ext
4126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127 rm -f conftest.i conftest.err conftest.
$ac_ext
4128 if $ac_preproc_ok; then :
4131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4133 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4134 See \`config.log' for more details" "$LINENO" 5; }
4138 ac_cpp
='$CPP $CPPFLAGS'
4139 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4146 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4147 if ${ac_cv_path_GREP+:} false
; then :
4148 $as_echo_n "(cached) " >&6
4150 if test -z "$GREP"; then
4151 ac_path_GREP_found
=false
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4154 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4157 test -z "$as_dir" && as_dir
=.
4158 for ac_prog
in grep ggrep
; do
4159 for ac_exec_ext
in '' $ac_executable_extensions; do
4160 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4161 as_fn_executable_p
"$ac_path_GREP" ||
continue
4162 # Check for GNU ac_path_GREP and select it if it is found.
4163 # Check for GNU $ac_path_GREP
4164 case `"$ac_path_GREP" --version 2>&1` in
4166 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4169 $as_echo_n 0123456789 >"conftest.in"
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
4175 $as_echo 'GREP' >> "conftest.nl"
4176 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4177 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4178 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4179 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_GREP
="$ac_path_GREP"
4182 ac_path_GREP_max
=$ac_count
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4187 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4190 $ac_path_GREP_found && break 3
4195 if test -z "$ac_cv_path_GREP"; then
4196 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199 ac_cv_path_GREP
=$GREP
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4204 $as_echo "$ac_cv_path_GREP" >&6; }
4205 GREP
="$ac_cv_path_GREP"
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4209 $as_echo_n "checking for egrep... " >&6; }
4210 if ${ac_cv_path_EGREP+:} false
; then :
4211 $as_echo_n "(cached) " >&6
4213 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4214 then ac_cv_path_EGREP
="$GREP -E"
4216 if test -z "$EGREP"; then
4217 ac_path_EGREP_found
=false
4218 # Loop through the user's path and test for each of PROGNAME-LIST
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4220 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_prog
in egrep; do
4225 for ac_exec_ext
in '' $ac_executable_extensions; do
4226 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4227 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4228 # Check for GNU ac_path_EGREP and select it if it is found.
4229 # Check for GNU $ac_path_EGREP
4230 case `"$ac_path_EGREP" --version 2>&1` in
4232 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4235 $as_echo_n 0123456789 >"conftest.in"
4238 cat "conftest.in" "conftest.in" >"conftest.tmp"
4239 mv "conftest.tmp" "conftest.in"
4240 cp "conftest.in" "conftest.nl"
4241 $as_echo 'EGREP' >> "conftest.nl"
4242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4243 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4244 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4246 # Best one so far, save it but keep looking for a better one
4247 ac_cv_path_EGREP
="$ac_path_EGREP"
4248 ac_path_EGREP_max
=$ac_count
4250 # 10*(2^10) chars as input seems more than enough
4251 test $ac_count -gt 10 && break
4253 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4256 $ac_path_EGREP_found && break 3
4261 if test -z "$ac_cv_path_EGREP"; then
4262 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 ac_cv_path_EGREP
=$EGREP
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4271 $as_echo "$ac_cv_path_EGREP" >&6; }
4272 EGREP
="$ac_cv_path_EGREP"
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4276 $as_echo_n "checking for ANSI C header files... " >&6; }
4277 if ${ac_cv_header_stdc+:} false
; then :
4278 $as_echo_n "(cached) " >&6
4280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4295 if ac_fn_c_try_compile
"$LINENO"; then :
4296 ac_cv_header_stdc
=yes
4298 ac_cv_header_stdc
=no
4300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4302 if test $ac_cv_header_stdc = yes; then
4303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310 $EGREP "memchr" >/dev
/null
2>&1; then :
4313 ac_cv_header_stdc
=no
4319 if test $ac_cv_header_stdc = yes; then
4320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327 $EGREP "free" >/dev
/null
2>&1; then :
4330 ac_cv_header_stdc
=no
4336 if test $ac_cv_header_stdc = yes; then
4337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4338 if test "$cross_compiling" = yes; then :
4341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4345 #if ((' ' & 0x0FF) == 0x020)
4346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4349 # define ISLOWER(c) \
4350 (('a' <= (c) && (c) <= 'i') \
4351 || ('j' <= (c) && (c) <= 'r') \
4352 || ('s' <= (c) && (c) <= 'z'))
4353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4361 for (i = 0; i < 256; i++)
4362 if (XOR (islower (i), ISLOWER (i))
4363 || toupper (i) != TOUPPER (i))
4368 if ac_fn_c_try_run
"$LINENO"; then :
4371 ac_cv_header_stdc
=no
4373 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4374 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4380 $as_echo "$ac_cv_header_stdc" >&6; }
4381 if test $ac_cv_header_stdc = yes; then
4383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4388 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4389 inttypes.h stdint.h unistd.h
4391 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4392 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4394 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4395 cat >>confdefs.h
<<_ACEOF
4396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4404 test "$program_prefix" != NONE
&&
4405 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4406 # Use a double $ so make ignores it.
4407 test "$program_suffix" != NONE
&&
4408 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4409 # Double any \ or $.
4410 # By default was `s,x,x', remove it if useless.
4411 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4412 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4414 # Find a good install program. We prefer a C program (faster),
4415 # so one script is as good as another. But avoid the broken or
4416 # incompatible versions:
4417 # SysV /etc/install, /usr/sbin/install
4418 # SunOS /usr/etc/install
4419 # IRIX /sbin/install
4421 # AmigaOS /C/install, which installs bootblocks on floppy discs
4422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4425 # OS/2's system install, which has a completely different semantic
4426 # ./install, which can be erroneously created by make from ./install.sh.
4427 # Reject install programs that cannot install multiple files.
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4429 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4430 if test -z "$INSTALL"; then
4431 if ${ac_cv_path_install+:} false
; then :
4432 $as_echo_n "(cached) " >&6
4434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir
=.
4439 # Account for people who put trailing slashes in PATH elements.
4440 case $as_dir/ in #((
4441 .
/ | .
// |
/[cC
]/* | \
4442 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4443 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4446 # OSF1 and SCO ODT 3.0 have their own names for install.
4447 # Don't use installbsd from OSF since it installs stuff as root
4449 for ac_prog
in ginstall scoinst
install; do
4450 for ac_exec_ext
in '' $ac_executable_extensions; do
4451 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4452 if test $ac_prog = install &&
4453 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4454 # AIX install. It has an incompatible calling convention.
4456 elif test $ac_prog = install &&
4457 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4458 # program-specific install script used by HP pwplus--don't use.
4461 rm -rf conftest.one conftest.two conftest.dir
4462 echo one
> conftest.one
4463 echo two
> conftest.two
4465 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4466 test -s conftest.one
&& test -s conftest.two
&&
4467 test -s conftest.dir
/conftest.one
&&
4468 test -s conftest.dir
/conftest.two
4470 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4483 rm -rf conftest.one conftest.two conftest.dir
4486 if test "${ac_cv_path_install+set}" = set; then
4487 INSTALL
=$ac_cv_path_install
4489 # As a last resort, use the slow shell script. Don't cache a
4490 # value for INSTALL within a source directory, because that will
4491 # break other packages using the cache if that directory is
4492 # removed, or if the value is a relative name.
4493 INSTALL
=$ac_install_sh
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4497 $as_echo "$INSTALL" >&6; }
4499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4500 # It thinks the first close brace ends the variable substitution.
4501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4505 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4511 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4512 if ${ac_cv_c_bigendian+:} false
; then :
4513 $as_echo_n "(cached) " >&6
4515 ac_cv_c_bigendian
=unknown
4516 # See if we're dealing with a universal compiler.
4517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #ifndef __APPLE_CC__
4520 not a universal capable compiler
4525 if ac_fn_c_try_compile
"$LINENO"; then :
4527 # Check for potential -arch flags. It is not universal unless
4528 # there are at least two -arch flags with different values.
4531 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4532 if test -n "$ac_prev"; then
4534 i?
86 | x86_64 | ppc | ppc64
)
4535 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4538 ac_cv_c_bigendian
=universal
4544 elif test "x$ac_word" = "x-arch"; then
4549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4550 if test $ac_cv_c_bigendian = unknown
; then
4551 # See if sys/param.h defines the BYTE_ORDER macro.
4552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #include <sys/types.h>
4555 #include <sys/param.h>
4560 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4561 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4570 if ac_fn_c_try_compile
"$LINENO"; then :
4571 # It does; now see whether it defined to BIG_ENDIAN or not.
4572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #include <sys/types.h>
4575 #include <sys/param.h>
4580 #if BYTE_ORDER != BIG_ENDIAN
4588 if ac_fn_c_try_compile
"$LINENO"; then :
4589 ac_cv_c_bigendian
=yes
4591 ac_cv_c_bigendian
=no
4593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4597 if test $ac_cv_c_bigendian = unknown
; then
4598 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4606 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4614 if ac_fn_c_try_compile
"$LINENO"; then :
4615 # It does; now see whether it defined to _BIG_ENDIAN or not.
4616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4631 if ac_fn_c_try_compile
"$LINENO"; then :
4632 ac_cv_c_bigendian
=yes
4634 ac_cv_c_bigendian
=no
4636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4640 if test $ac_cv_c_bigendian = unknown
; then
4641 # Compile a test program.
4642 if test "$cross_compiling" = yes; then :
4643 # Try to guess by grepping values from an object file.
4644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646 short int ascii_mm[] =
4647 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4648 short int ascii_ii[] =
4649 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4650 int use_ascii (int i) {
4651 return ascii_mm[i] + ascii_ii[i];
4653 short int ebcdic_ii[] =
4654 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4655 short int ebcdic_mm[] =
4656 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4657 int use_ebcdic (int i) {
4658 return ebcdic_mm[i] + ebcdic_ii[i];
4665 return use_ascii (foo) == use_ebcdic (foo);
4670 if ac_fn_c_try_compile
"$LINENO"; then :
4671 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4672 ac_cv_c_bigendian
=yes
4674 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4675 if test "$ac_cv_c_bigendian" = unknown
; then
4676 ac_cv_c_bigendian
=no
4678 # finding both strings is unlikely to happen, but who knows?
4679 ac_cv_c_bigendian
=unknown
4683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 $ac_includes_default
4692 /* Are we little or big endian? From Harbison&Steele. */
4696 char c[sizeof (long int)];
4699 return u.c[sizeof (long int) - 1] == 1;
4705 if ac_fn_c_try_run
"$LINENO"; then :
4706 ac_cv_c_bigendian
=no
4708 ac_cv_c_bigendian
=yes
4710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4717 $as_echo "$ac_cv_c_bigendian" >&6; }
4718 case $ac_cv_c_bigendian in #(
4720 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4726 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4730 as_fn_error $?
"unknown endianness
4731 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4737 if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4739 set dummy
${ac_tool_prefix}dtc
; ac_word
=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_prog_DTC+:} false
; then :
4743 $as_echo_n "(cached) " >&6
4745 if test -n "$DTC"; then
4746 ac_cv_prog_DTC
="$DTC" # Let the user override the test.
4748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir
=.
4753 for ac_exec_ext
in '' $ac_executable_extensions; do
4754 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4755 ac_cv_prog_DTC
="${ac_tool_prefix}dtc"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 if test -n "$DTC"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4768 $as_echo "$DTC" >&6; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4776 if test -z "$ac_cv_prog_DTC"; then
4778 # Extract the first word of "dtc", so it can be a program name with args.
4779 set dummy dtc
; ac_word
=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_ac_ct_DTC+:} false
; then :
4783 $as_echo_n "(cached) " >&6
4785 if test -n "$ac_ct_DTC"; then
4786 ac_cv_prog_ac_ct_DTC
="$ac_ct_DTC" # Let the user override the test.
4788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir
=.
4793 for ac_exec_ext
in '' $ac_executable_extensions; do
4794 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4795 ac_cv_prog_ac_ct_DTC
="dtc"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 ac_ct_DTC
=$ac_cv_prog_ac_ct_DTC
4806 if test -n "$ac_ct_DTC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4808 $as_echo "$ac_ct_DTC" >&6; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4814 if test "x$ac_ct_DTC" = x
; then
4817 case $cross_compiling:$ac_tool_warned in
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821 ac_tool_warned
=yes ;;
4826 DTC
="$ac_cv_prog_DTC"
4830 if test "x$cross_compiling" = "xno"; then
4831 : "${AR_FOR_BUILD:=\$(AR)}"
4832 : "${CC_FOR_BUILD:=\$(CC)}"
4833 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4834 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4835 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4836 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4838 : "${AR_FOR_BUILD:=ar}"
4839 : "${CC_FOR_BUILD:=gcc}"
4840 : "${RANLIB_FOR_BUILD:=ranlib}"
4841 : "${CFLAGS_FOR_BUILD:=-g -O}"
4842 : "${CPPFLAGS_FOR_BUILD:=}"
4843 : "${LDLFAGS_FOR_BUILD:=}"
4853 if test -n "$ac_tool_prefix"; then
4854 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4855 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_AR+:} false
; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -n "$AR"; then
4862 ac_cv_prog_AR
="$AR" # Let the user override the test.
4864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir
=.
4869 for ac_exec_ext
in '' $ac_executable_extensions; do
4870 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 if test -n "$AR"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4884 $as_echo "$AR" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4892 if test -z "$ac_cv_prog_AR"; then
4894 # Extract the first word of "ar", so it can be a program name with args.
4895 set dummy
ar; ac_word
=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4899 $as_echo_n "(cached) " >&6
4901 if test -n "$ac_ct_AR"; then
4902 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir
=.
4909 for ac_exec_ext
in '' $ac_executable_extensions; do
4910 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_ac_ct_AR
="ar"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4922 if test -n "$ac_ct_AR"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4924 $as_echo "$ac_ct_AR" >&6; }
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4930 if test "x$ac_ct_AR" = x
; then
4933 case $cross_compiling:$ac_tool_warned in
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4937 ac_tool_warned
=yes ;;
4945 if test -n "$ac_tool_prefix"; then
4946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4947 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_prog_RANLIB+:} false
; then :
4951 $as_echo_n "(cached) " >&6
4953 if test -n "$RANLIB"; then
4954 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir
=.
4961 for ac_exec_ext
in '' $ac_executable_extensions; do
4962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4963 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 RANLIB
=$ac_cv_prog_RANLIB
4974 if test -n "$RANLIB"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4976 $as_echo "$RANLIB" >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4984 if test -z "$ac_cv_prog_RANLIB"; then
4985 ac_ct_RANLIB
=$RANLIB
4986 # Extract the first word of "ranlib", so it can be a program name with args.
4987 set dummy ranlib
; ac_word
=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4991 $as_echo_n "(cached) " >&6
4993 if test -n "$ac_ct_RANLIB"; then
4994 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir
=.
5001 for ac_exec_ext
in '' $ac_executable_extensions; do
5002 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5014 if test -n "$ac_ct_RANLIB"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5016 $as_echo "$ac_ct_RANLIB" >&6; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5022 if test "x$ac_ct_RANLIB" = x
; then
5025 case $cross_compiling:$ac_tool_warned in
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5029 ac_tool_warned
=yes ;;
5031 RANLIB
=$ac_ct_RANLIB
5034 RANLIB
="$ac_cv_prog_RANLIB"
5044 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5047 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5051 $as_echo_n "(cached) " >&6
5055 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir
=.
5063 for ac_exec_ext
in '' $ac_executable_extensions; do
5064 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5077 if test -n "$PKG_CONFIG"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5079 $as_echo "$PKG_CONFIG" >&6; }
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5087 if test -z "$ac_cv_path_PKG_CONFIG"; then
5088 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5089 # Extract the first word of "pkg-config", so it can be a program name with args.
5090 set dummy pkg-config
; ac_word
=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5094 $as_echo_n "(cached) " >&6
5096 case $ac_pt_PKG_CONFIG in
5098 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir
=.
5106 for ac_exec_ext
in '' $ac_executable_extensions; do
5107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5120 if test -n "$ac_pt_PKG_CONFIG"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5122 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5128 if test "x$ac_pt_PKG_CONFIG" = x
; then
5131 case $cross_compiling:$ac_tool_warned in
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135 ac_tool_warned
=yes ;;
5137 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5140 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5144 if test -n "$PKG_CONFIG"; then
5145 _pkg_min_version
=0.9.0
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5147 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5148 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150 $as_echo "yes" >&6; }
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5158 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5159 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5160 # is C99. So handle it ourselves.
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5164 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5168 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5169 # error "C11 support not found"
5173 if ac_fn_c_try_compile
"$LINENO"; then :
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175 $as_echo "yes" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5181 $as_echo_n "checking for -std=c11 support... " >&6; }
5184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5187 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5188 # error "C11 support not found"
5192 if ac_fn_c_try_compile
"$LINENO"; then :
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5195 $as_echo "yes" >&6; }
5197 C_DIALECT
="-std=c11"
5200 as_fn_error $?
"C11 is required" "$LINENO" 5
5202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5210 for ac_header
in $ac_header_list
5212 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5213 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5215 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5216 cat >>confdefs.h
<<_ACEOF
5217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5271 for ac_func
in $ac_func_list
5273 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5274 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5275 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5276 cat >>confdefs.h
<<_ACEOF
5277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5410 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5411 if ${ac_cv_struct_tm+:} false
; then :
5412 $as_echo_n "(cached) " >&6
5414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 #include <sys/types.h>
5423 int *p = &tm.tm_sec;
5429 if ac_fn_c_try_compile
"$LINENO"; then :
5430 ac_cv_struct_tm
=time.h
5432 ac_cv_struct_tm
=sys
/time.h
5434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5437 $as_echo "$ac_cv_struct_tm" >&6; }
5438 if test $ac_cv_struct_tm = sys
/time.h
; then
5440 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5445 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5446 if ${ac_cv_type_uid_t+:} false
; then :
5447 $as_echo_n "(cached) " >&6
5449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 #include <sys/types.h>
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 $EGREP "uid_t" >/dev
/null
2>&1; then :
5456 ac_cv_type_uid_t
=yes
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5464 $as_echo "$ac_cv_type_uid_t" >&6; }
5465 if test $ac_cv_type_uid_t = no
; then
5467 $as_echo "#define uid_t int" >>confdefs.h
5470 $as_echo "#define gid_t int" >>confdefs.h
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5477 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5482 macro_version
='2.2.7a'
5483 macro_revision
='1.3134'
5497 ltmain
="$ac_aux_dir/ltmain.sh"
5499 # Backslashify metacharacters that are still active within
5500 # double-quoted strings.
5501 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5503 # Same as above, but do not quote variable references.
5504 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5506 # Sed substitution to delay expansion of an escaped shell variable in a
5507 # double_quote_subst'ed string.
5508 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5510 # Sed substitution to delay expansion of an escaped single quote.
5511 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5513 # Sed substitution to avoid accidental globbing in evaled expressions
5514 no_glob_subst
='s/\*/\\\*/g'
5516 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5517 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5518 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5521 $as_echo_n "checking how to print strings... " >&6; }
5522 # Test print first, because it will be a builtin if present.
5523 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5524 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5526 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5529 # Use this function as a fallback that always works.
5530 func_fallback_echo ()
5532 eval 'cat <<_LTECHO_EOF
5536 ECHO='func_fallback_echo
'
5539 # func_echo_all arg...
5540 # Invoke $ECHO with all args, space-separated.
5547 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5548 $as_echo "printf" >&6; } ;;
5549 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5550 $as_echo "print -r" >&6; } ;;
5551 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5552 $as_echo "cat" >&6; } ;;
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5569 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5570 if ${ac_cv_path_SED+:} false; then :
5571 $as_echo_n "(cached) " >&6
5573 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5574 for ac_i in 1 2 3 4 5 6 7; do
5575 ac_script="$ac_script$as_nl$ac_script"
5577 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5578 { ac_script=; unset ac_script;}
5579 if test -z "$SED"; then
5580 ac_path_SED_found=false
5581 # Loop through the user's path and
test for each of PROGNAME-LIST
5582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5586 test -z "$as_dir" && as_dir
=.
5587 for ac_prog
in sed gsed
; do
5588 for ac_exec_ext
in '' $ac_executable_extensions; do
5589 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5590 as_fn_executable_p
"$ac_path_SED" ||
continue
5591 # Check for GNU ac_path_SED and select it if it is found.
5592 # Check for GNU $ac_path_SED
5593 case `"$ac_path_SED" --version 2>&1` in
5595 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5598 $as_echo_n 0123456789 >"conftest.in"
5601 cat "conftest.in" "conftest.in" >"conftest.tmp"
5602 mv "conftest.tmp" "conftest.in"
5603 cp "conftest.in" "conftest.nl"
5604 $as_echo '' >> "conftest.nl"
5605 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5606 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5607 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5608 if test $ac_count -gt ${ac_path_SED_max-0}; then
5609 # Best one so far, save it but keep looking for a better one
5610 ac_cv_path_SED
="$ac_path_SED"
5611 ac_path_SED_max
=$ac_count
5613 # 10*(2^10) chars as input seems more than enough
5614 test $ac_count -gt 10 && break
5616 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5619 $ac_path_SED_found && break 3
5624 if test -z "$ac_cv_path_SED"; then
5625 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5633 $as_echo "$ac_cv_path_SED" >&6; }
5634 SED
="$ac_cv_path_SED"
5637 test -z "$SED" && SED
=sed
5638 Xsed
="$SED -e 1s/^X//"
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5651 $as_echo_n "checking for fgrep... " >&6; }
5652 if ${ac_cv_path_FGREP+:} false
; then :
5653 $as_echo_n "(cached) " >&6
5655 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5656 then ac_cv_path_FGREP
="$GREP -F"
5658 if test -z "$FGREP"; then
5659 ac_path_FGREP_found
=false
5660 # Loop through the user's path and test for each of PROGNAME-LIST
5661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5662 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5665 test -z "$as_dir" && as_dir
=.
5666 for ac_prog
in fgrep
; do
5667 for ac_exec_ext
in '' $ac_executable_extensions; do
5668 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5669 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5670 # Check for GNU ac_path_FGREP and select it if it is found.
5671 # Check for GNU $ac_path_FGREP
5672 case `"$ac_path_FGREP" --version 2>&1` in
5674 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5677 $as_echo_n 0123456789 >"conftest.in"
5680 cat "conftest.in" "conftest.in" >"conftest.tmp"
5681 mv "conftest.tmp" "conftest.in"
5682 cp "conftest.in" "conftest.nl"
5683 $as_echo 'FGREP' >> "conftest.nl"
5684 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5685 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5686 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5687 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5688 # Best one so far, save it but keep looking for a better one
5689 ac_cv_path_FGREP
="$ac_path_FGREP"
5690 ac_path_FGREP_max
=$ac_count
5692 # 10*(2^10) chars as input seems more than enough
5693 test $ac_count -gt 10 && break
5695 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5698 $ac_path_FGREP_found && break 3
5703 if test -z "$ac_cv_path_FGREP"; then
5704 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5707 ac_cv_path_FGREP
=$FGREP
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5713 $as_echo "$ac_cv_path_FGREP" >&6; }
5714 FGREP
="$ac_cv_path_FGREP"
5717 test -z "$GREP" && GREP
=grep
5737 # Check whether --with-gnu-ld was given.
5738 if test "${with_gnu_ld+set}" = set; then :
5739 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5745 if test "$GCC" = yes; then
5746 # Check if gcc -print-prog-name=ld gives a path.
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5748 $as_echo_n "checking for ld used by $CC... " >&6; }
5751 # gcc leaves a trailing carriage return which upsets mingw
5752 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5754 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5757 # Accept absolute paths.
5759 re_direlt
='/[^/][^/]*/\.\./'
5760 # Canonicalize the pathname of ld
5761 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5762 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5763 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5765 test -z "$LD" && LD
="$ac_prog"
5768 # If it fails, then pretend we aren't using GCC.
5772 # If it is relative, then search for the first ld in PATH.
5776 elif test "$with_gnu_ld" = yes; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5778 $as_echo_n "checking for GNU ld... " >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5781 $as_echo_n "checking for non-GNU ld... " >&6; }
5783 if ${lt_cv_path_LD+:} false
; then :
5784 $as_echo_n "(cached) " >&6
5786 if test -z "$LD"; then
5787 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5788 for ac_dir
in $PATH; do
5790 test -z "$ac_dir" && ac_dir
=.
5791 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5792 lt_cv_path_LD
="$ac_dir/$ac_prog"
5793 # Check to see if the program is GNU ld. I'd rather use --version,
5794 # but apparently some variants of GNU ld only accept -v.
5795 # Break only if it was the GNU/non-GNU ld that we prefer.
5796 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5797 *GNU
* |
*'with BFD'*)
5798 test "$with_gnu_ld" != no
&& break
5801 test "$with_gnu_ld" != yes && break
5808 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5813 if test -n "$LD"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5815 $as_echo "$LD" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5820 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5822 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5823 if ${lt_cv_prog_gnu_ld+:} false
; then :
5824 $as_echo_n "(cached) " >&6
5826 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5827 case `$LD -v 2>&1 </dev/null` in
5828 *GNU
* |
*'with BFD'*)
5829 lt_cv_prog_gnu_ld
=yes
5832 lt_cv_prog_gnu_ld
=no
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5837 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5838 with_gnu_ld
=$lt_cv_prog_gnu_ld
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5849 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5850 if ${lt_cv_path_NM+:} false
; then :
5851 $as_echo_n "(cached) " >&6
5853 if test -n "$NM"; then
5854 # Let the user override the nm to test.
5855 lt_nm_to_check
="$NM"
5857 lt_nm_to_check
="${ac_tool_prefix}nm"
5858 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5859 lt_nm_to_check
="$lt_nm_to_check nm"
5862 for lt_tmp_nm
in "$lt_nm_to_check"; do
5863 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5864 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5866 test -z "$ac_dir" && ac_dir
=.
5867 # Strip out any user-provided options from the nm to test twice,
5868 # the first time to test to see if nm (rather than its options) has
5869 # an explicit path, the second time to yield a file which can be
5871 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5872 case "$tmp_nm_path" in
5873 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
5874 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
5876 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5877 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
5878 # Check to see if the nm accepts a BSD-compat flag.
5879 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5880 # nm: unknown option "B" ignored
5881 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5882 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
5886 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5888 lt_cv_path_NM
="$tmp_nm -p"
5892 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5893 continue # so that we can try to find one that supports BSD flags
5902 : ${lt_cv_path_NM=no}
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5905 $as_echo "$lt_cv_path_NM" >&6; }
5906 if test "$lt_cv_path_NM" != "no"; then
5909 # Didn't find any BSD compatible name lister, look for dumpbin.
5910 if test -n "$DUMPBIN"; then :
5911 # Let the user override the test.
5913 if test -n "$ac_tool_prefix"; then
5914 for ac_prog
in dumpbin
"link -dump"
5916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5917 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5921 $as_echo_n "(cached) " >&6
5923 if test -n "$DUMPBIN"; then
5924 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir
=.
5931 for ac_exec_ext
in '' $ac_executable_extensions; do
5932 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 DUMPBIN
=$ac_cv_prog_DUMPBIN
5944 if test -n "$DUMPBIN"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5946 $as_echo "$DUMPBIN" >&6; }
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5953 test -n "$DUMPBIN" && break
5956 if test -z "$DUMPBIN"; then
5957 ac_ct_DUMPBIN
=$DUMPBIN
5958 for ac_prog
in dumpbin
"link -dump"
5960 # Extract the first word of "$ac_prog", so it can be a program name with args.
5961 set dummy
$ac_prog; ac_word
=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5965 $as_echo_n "(cached) " >&6
5967 if test -n "$ac_ct_DUMPBIN"; then
5968 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5974 test -z "$as_dir" && as_dir
=.
5975 for ac_exec_ext
in '' $ac_executable_extensions; do
5976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5977 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5988 if test -n "$ac_ct_DUMPBIN"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5990 $as_echo "$ac_ct_DUMPBIN" >&6; }
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5997 test -n "$ac_ct_DUMPBIN" && break
6000 if test "x$ac_ct_DUMPBIN" = x
; then
6003 case $cross_compiling:$ac_tool_warned in
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned
=yes ;;
6009 DUMPBIN
=$ac_ct_DUMPBIN
6013 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6015 DUMPBIN
="$DUMPBIN -symbols"
6023 if test "$DUMPBIN" != ":"; then
6027 test -z "$NM" && NM
=nm
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6035 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6036 if ${lt_cv_nm_interface+:} false
; then :
6037 $as_echo_n "(cached) " >&6
6039 lt_cv_nm_interface
="BSD nm"
6040 echo "int some_variable = 0;" > conftest.
$ac_ext
6041 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6042 (eval "$ac_compile" 2>conftest.err
)
6043 cat conftest.err
>&5
6044 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6045 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6046 cat conftest.err
>&5
6047 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6048 cat conftest.out
>&5
6049 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6050 lt_cv_nm_interface
="MS dumpbin"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6055 $as_echo "$lt_cv_nm_interface" >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6058 $as_echo_n "checking whether ln -s works... " >&6; }
6060 if test "$LN_S" = "ln -s"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6062 $as_echo "yes" >&6; }
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6065 $as_echo "no, using $LN_S" >&6; }
6068 # find the maximum length of command line arguments
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6070 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6071 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6072 $as_echo_n "(cached) " >&6
6079 # On DJGPP, this test can blow up pretty badly due to problems in libc
6080 # (any single argument exceeding 2000 bytes causes a buffer overrun
6081 # during glob expansion). Even if it were fixed, the result of this
6082 # check would be larger than it should be.
6083 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6087 # Under GNU Hurd, this test is not required because there is
6088 # no limit to the length of command line arguments.
6089 # Libtool will interpret -1 as no limit whatsoever
6090 lt_cv_sys_max_cmd_len
=-1;
6093 cygwin
* | mingw
* | cegcc
*)
6094 # On Win9x/ME, this test blows up -- it succeeds, but takes
6095 # about 5 minutes as the teststring grows exponentially.
6096 # Worse, since 9x/ME are not pre-emptively multitasking,
6097 # you end up with a "frozen" computer, even though with patience
6098 # the test eventually succeeds (with a max line length of 256k).
6099 # Instead, let's just punt: use the minimum linelength reported by
6100 # all of the supported platforms: 8192 (on NT/2K/XP).
6101 lt_cv_sys_max_cmd_len
=8192;
6105 # On MiNT this can take a long time and run out of memory.
6106 lt_cv_sys_max_cmd_len
=8192;
6110 # On AmigaOS with pdksh, this test takes hours, literally.
6111 # So we just punt and use a minimum line length of 8192.
6112 lt_cv_sys_max_cmd_len
=8192;
6115 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6116 # This has been around since 386BSD, at least. Likely further.
6117 if test -x /sbin
/sysctl
; then
6118 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6119 elif test -x /usr
/sbin
/sysctl
; then
6120 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6122 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6124 # And add a safety zone
6125 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6126 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6130 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6131 lt_cv_sys_max_cmd_len
=196608
6135 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6136 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6137 # nice to cause kernel panics so lets avoid the loop below.
6138 # First set a reasonable default.
6139 lt_cv_sys_max_cmd_len
=16384
6141 if test -x /sbin
/sysconfig
; then
6142 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6143 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6148 lt_cv_sys_max_cmd_len
=102400
6150 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6151 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6152 if test -n "$kargmax"; then
6153 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6155 lt_cv_sys_max_cmd_len
=32768
6159 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6160 if test -n "$lt_cv_sys_max_cmd_len"; then
6161 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6162 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6164 # Make teststring a little bigger before we do anything with it.
6165 # a 1K string should be a reasonable start.
6166 for i
in 1 2 3 4 5 6 7 8 ; do
6167 teststring
=$teststring$teststring
6169 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6170 # If test is not a shell built-in, we'll probably end up computing a
6171 # maximum length that is only half of the actual maximum length, but
6173 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6174 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6175 test $i != 17 # 1/2 MB should be enough
6178 teststring
=$teststring$teststring
6180 # Only check the string length outside the loop.
6181 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6183 # Add a significant safety factor because C++ compilers can tack on
6184 # massive amounts of additional arguments before passing them to the
6185 # linker. It appears as though 1/2 is a usable value.
6186 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6193 if test -n $lt_cv_sys_max_cmd_len ; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6195 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6198 $as_echo "none" >&6; }
6200 max_cmd_len
=$lt_cv_sys_max_cmd_len
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6212 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6213 # Try some XSI features
6216 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6218 && eval 'test $(( 1 + 1 )) -eq 2 \
6219 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6222 $as_echo "$xsi_shell" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6226 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6228 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6230 && lt_shell_append=yes
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6232 $as_echo "$lt_shell_append" >&6; }
6235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6245 # test EBCDIC or ASCII
6246 case `echo X|tr X '\101'` in
6247 A) # ASCII based system
6248 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6249 lt_SP2NL='tr \040 \012'
6250 lt_NL2SP='tr \015\012 \040\040'
6252 *) # EBCDIC based system
6253 lt_SP2NL='tr \100 \n'
6254 lt_NL2SP='tr \r\n \100\100'
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6267 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6268 if ${lt_cv_ld_reload_flag+:} false; then :
6269 $as_echo_n "(cached
) " >&6
6271 lt_cv_ld_reload_flag='-r'
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6274 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6275 reload_flag=$lt_cv_ld_reload_flag
6276 case $reload_flag in
6278 *) reload_flag=" $reload_flag" ;;
6280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6283 if test "$GCC" = yes; then
6284 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6303 $as_echo_n "checking
for $ac_word...
" >&6; }
6304 if ${ac_cv_prog_OBJDUMP+:} false; then :
6305 $as_echo_n "(cached
) " >&6
6307 if test -n "$OBJDUMP"; then
6308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6327 OBJDUMP=$ac_cv_prog_OBJDUMP
6328 if test -n "$OBJDUMP"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6330 $as_echo "$OBJDUMP" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6333 $as_echo "no
" >&6; }
6338 if test -z "$ac_cv_prog_OBJDUMP"; then
6339 ac_ct_OBJDUMP=$OBJDUMP
6340 # Extract the first word of "objdump
", so it can be a program name with args.
6341 set dummy objdump; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6343 $as_echo_n "checking
for $ac_word...
" >&6; }
6344 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6345 $as_echo_n "(cached
) " >&6
6347 if test -n "$ac_ct_OBJDUMP"; then
6348 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6367 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6368 if test -n "$ac_ct_OBJDUMP"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6370 $as_echo "$ac_ct_OBJDUMP" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6373 $as_echo "no
" >&6; }
6376 if test "x
$ac_ct_OBJDUMP" = x; then
6379 case $cross_compiling:$ac_tool_warned in
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6382 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6383 ac_tool_warned=yes ;;
6385 OBJDUMP=$ac_ct_OBJDUMP
6388 OBJDUMP="$ac_cv_prog_OBJDUMP"
6391 test -z "$OBJDUMP" && OBJDUMP=objdump
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6402 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6403 if ${lt_cv_deplibs_check_method+:} false; then :
6404 $as_echo_n "(cached
) " >&6
6406 lt_cv_file_magic_cmd='$MAGIC_CMD'
6407 lt_cv_file_magic_test_file=
6408 lt_cv_deplibs_check_method='unknown'
6409 # Need to set the preceding variable on all platforms that support
6410 # interlibrary dependencies.
6411 # 'none' -- dependencies not supported.
6412 # `unknown' -- same as none, but documents that we really don't know.
6413 # 'pass_all' -- all dependencies passed with no checks.
6414 # 'test_compile' -- check by making test program.
6415 # 'file_magic [[regex]]' -- check by looking for files in library path
6416 # which responds to the $file_magic_cmd with a given extended regex.
6417 # If you have `file' or equivalent on your system and you're not sure
6418 # whether `pass_all' will *always* work, you probably want this one.
6422 lt_cv_deplibs_check_method=pass_all
6426 lt_cv_deplibs_check_method=pass_all
6430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6431 lt_cv_file_magic_cmd='/usr/bin/file -L'
6432 lt_cv_file_magic_test_file=/shlib/libc.so
6436 # func_win32_libid is a shell function defined in ltmain.sh
6437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6438 lt_cv_file_magic_cmd='func_win32_libid'
6442 # Base MSYS/MinGW do not provide the 'file' command needed by
6443 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6444 # unless we find 'file', for example because we are cross-compiling.
6445 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6446 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6448 lt_cv_file_magic_cmd='func_win32_libid'
6450 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6451 lt_cv_file_magic_cmd='$OBJDUMP -f'
6456 # use the weaker test based on 'objdump'. See mingw*.
6457 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6458 lt_cv_file_magic_cmd='$OBJDUMP -f'
6461 darwin* | rhapsody*)
6462 lt_cv_deplibs_check_method=pass_all
6465 freebsd* | dragonfly*)
6466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6469 # Not sure whether the presence of OpenBSD here was a mistake.
6470 # Let's accept both of them until this is cleared up.
6471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6472 lt_cv_file_magic_cmd=/usr/bin/file
6473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6477 lt_cv_deplibs_check_method=pass_all
6482 lt_cv_deplibs_check_method=pass_all
6486 lt_cv_deplibs_check_method=pass_all
6489 hpux10.20* | hpux11*)
6490 lt_cv_file_magic_cmd=/usr/bin/file
6493 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6494 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6497 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]'
6498 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6501 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6502 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6508 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6512 irix5* | irix6* | nonstopux*)
6514 *-32|*"-32 ") libmagic=32-bit;;
6515 *-n32|*"-n32 ") libmagic=N32;;
6516 *-64|*"-64 ") libmagic=64-bit;;
6517 *) libmagic=never-match;;
6519 lt_cv_deplibs_check_method=pass_all
6522 # This must be Linux ELF.
6523 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6524 lt_cv_deplibs_check_method=pass_all
6528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6537 lt_cv_file_magic_cmd=/usr/bin/file
6538 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6542 lt_cv_deplibs_check_method=pass_all
6546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6553 osf3* | osf4* | osf5*)
6554 lt_cv_deplibs_check_method=pass_all
6558 lt_cv_deplibs_check_method=pass_all
6562 lt_cv_deplibs_check_method=pass_all
6565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6566 lt_cv_deplibs_check_method=pass_all
6570 case $host_vendor in
6572 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]'
6573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6576 lt_cv_deplibs_check_method=pass_all
6579 lt_cv_file_magic_cmd='/bin/file'
6580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6583 lt_cv_file_magic_cmd='/bin/file'
6584 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6585 lt_cv_file_magic_test_file=/lib/libc.so
6588 lt_cv_deplibs_check_method=pass_all
6591 lt_cv_deplibs_check_method=pass_all
6597 lt_cv_deplibs_check_method=pass_all
6600 # Assume VxWorks cross toolchains are built on Linux, possibly
6601 # as canadian for Windows hosts.
6602 lt_cv_deplibs_check_method=pass_all
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6608 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6609 file_magic_cmd=$lt_cv_file_magic_cmd
6610 deplibs_check_method=$lt_cv_deplibs_check_method
6611 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6625 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6626 for plugin in $plugin_names; do
6627 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6628 if test x$plugin_so = x$plugin; then
6629 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6631 if test x$plugin_so != x$plugin; then
6632 plugin_option="--plugin $plugin_so"
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}ar; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6641 $as_echo_n "checking
for $ac_word...
" >&6; }
6642 if ${ac_cv_prog_AR+:} false; then :
6643 $as_echo_n "(cached
) " >&6
6645 if test -n "$AR"; then
6646 ac_cv_prog_AR="$AR" # Let the user override the test.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655 ac_cv_prog_AR="${ac_tool_prefix}ar"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6666 if test -n "$AR"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6668 $as_echo "$AR" >&6; }
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6671 $as_echo "no
" >&6; }
6676 if test -z "$ac_cv_prog_AR"; then
6678 # Extract the first word of "ar", so it can be a program name with args.
6679 set dummy ar; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6681 $as_echo_n "checking
for $ac_word...
" >&6; }
6682 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6683 $as_echo_n "(cached
) " >&6
6685 if test -n "$ac_ct_AR"; then
6686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_ac_ct_AR="ar"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6706 if test -n "$ac_ct_AR"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6708 $as_echo "$ac_ct_AR" >&6; }
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6711 $as_echo "no
" >&6; }
6714 if test "x
$ac_ct_AR" = x; then
6717 case $cross_compiling:$ac_tool_warned in
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6720 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6721 ac_tool_warned=yes ;;
6729 test -z "$AR" && AR=ar
6730 if test -n "$plugin_option"; then
6731 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6733 $AR $plugin_option rc conftest.a conftest.c
6734 if test "$?
" != 0; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6736 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6738 AR="$AR $plugin_option"
6743 test -z "$AR_FLAGS" && AR_FLAGS=cru
6755 if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}strip; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6759 $as_echo_n "checking
for $ac_word...
" >&6; }
6760 if ${ac_cv_prog_STRIP+:} false; then :
6761 $as_echo_n "(cached
) " >&6
6763 if test -n "$STRIP"; then
6764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6783 STRIP=$ac_cv_prog_STRIP
6784 if test -n "$STRIP"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6786 $as_echo "$STRIP" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6789 $as_echo "no
" >&6; }
6794 if test -z "$ac_cv_prog_STRIP"; then
6796 # Extract the first word of "strip
", so it can be a program name with args.
6797 set dummy strip; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6799 $as_echo_n "checking
for $ac_word...
" >&6; }
6800 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6801 $as_echo_n "(cached
) " >&6
6803 if test -n "$ac_ct_STRIP"; then
6804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_STRIP="strip
"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6824 if test -n "$ac_ct_STRIP"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6826 $as_echo "$ac_ct_STRIP" >&6; }
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6829 $as_echo "no
" >&6; }
6832 if test "x
$ac_ct_STRIP" = x; then
6835 case $cross_compiling:$ac_tool_warned in
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6838 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6839 ac_tool_warned=yes ;;
6844 STRIP="$ac_cv_prog_STRIP"
6847 test -z "$STRIP" && STRIP=:
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6858 $as_echo_n "checking
for $ac_word...
" >&6; }
6859 if ${ac_cv_prog_RANLIB+:} false; then :
6860 $as_echo_n "(cached
) " >&6
6862 if test -n "$RANLIB"; then
6863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6882 RANLIB=$ac_cv_prog_RANLIB
6883 if test -n "$RANLIB"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6885 $as_echo "$RANLIB" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6888 $as_echo "no
" >&6; }
6893 if test -z "$ac_cv_prog_RANLIB"; then
6894 ac_ct_RANLIB=$RANLIB
6895 # Extract the first word of "ranlib
", so it can be a program name with args.
6896 set dummy ranlib; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6898 $as_echo_n "checking
for $ac_word...
" >&6; }
6899 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6900 $as_echo_n "(cached
) " >&6
6902 if test -n "$ac_ct_RANLIB"; then
6903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6923 if test -n "$ac_ct_RANLIB"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6925 $as_echo "$ac_ct_RANLIB" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6928 $as_echo "no
" >&6; }
6931 if test "x
$ac_ct_RANLIB" = x; then
6934 case $cross_compiling:$ac_tool_warned in
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6937 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6938 ac_tool_warned=yes ;;
6940 RANLIB=$ac_ct_RANLIB
6943 RANLIB="$ac_cv_prog_RANLIB"
6946 test -z "$RANLIB" && RANLIB=:
6947 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6948 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
6949 RANLIB="$RANLIB $plugin_option"
6958 # Determine commands to create old-style static archives.
6959 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6960 old_postinstall_cmds='chmod 644 $oldlib'
6961 old_postuninstall_cmds=
6963 if test -n "$RANLIB"; then
6966 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6969 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6972 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6977 lock_old_archive_extraction=yes ;;
6979 lock_old_archive_extraction=no ;;
7002 for ac_prog in gawk mawk nawk awk
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7007 $as_echo_n "checking
for $ac_word...
" >&6; }
7008 if ${ac_cv_prog_AWK+:} false; then :
7009 $as_echo_n "(cached
) " >&6
7011 if test -n "$AWK"; then
7012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021 ac_cv_prog_AWK="$ac_prog"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7032 if test -n "$AWK"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
7034 $as_echo "$AWK" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7037 $as_echo "no
" >&6; }
7041 test -n "$AWK" && break
7062 # If no C compiler was specified, use CC.
7065 # If no C compiler flags were specified, use CFLAGS.
7066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7068 # Allow CC to be a program name with arguments.
7072 # Check for command to grab the raw symbol name followed by C symbol from nm.
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7074 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7075 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7076 $as_echo_n "(cached
) " >&6
7079 # These are sane defaults that work on at least a few old systems.
7080 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7082 # Character class describing NM global symbol codes.
7083 symcode='[BCDEGRST]'
7085 # Regexp to match symbols that can be accessed directly from C.
7086 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7088 # Define system-specific variables.
7093 cygwin* | mingw* | pw32* | cegcc*)
7094 symcode='[ABCDGISTW]'
7097 if test "$host_cpu" = ia64; then
7098 symcode='[ABCDEGRST]'
7102 symcode='[BCDEGRST]'
7105 symcode='[BCDEGQRST]'
7116 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7124 # If we're using GNU nm, then use its standard symbol codes.
7125 case `$NM -V 2>&1` in
7126 *GNU* | *'with BFD'*)
7127 symcode='[ABCDGIRSTW]' ;;
7130 # Transform an extracted symbol line into a proper C declaration.
7131 # Some systems (esp. on ia64) link data and code symbols differently,
7132 # so use this general approach.
7133 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7135 # Transform an extracted symbol line into symbol name and symbol address
7136 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7137 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'"
7139 # Handle CRLF in mingw tool chain
7143 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7147 # Try without a prefix underscore, then with it.
7148 for ac_symprfx in "" "_
"; do
7150 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7151 symxfrm="\\1 $ac_symprfx\\2 \\2"
7153 # Write the raw and C identifiers.
7154 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7155 # Fake it for dumpbin and say T for any non-static function
7156 # and D for any global variable.
7157 # Also find C++ and __fastcall symbols from MSVC++,
7158 # which start with @ or ?.
7159 lt_cv_sys_global_symbol_pipe="$AWK '"\
7160 " {last_section=section; section=\$ 3};"\
7161 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7162 " \$ 0!~/External *\|/{next};"\
7163 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7164 " {if(hide[section]) next};"\
7165 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7166 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7167 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7168 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7169 " ' prfx
=^
$ac_symprfx"
7171 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7174 # Check to see that the pipe works correctly.
7178 cat > conftest.$ac_ext <<_LT_EOF
7183 void nm_test_func(void);
7184 void nm_test_func(void){}
7188 int main(){nm_test_var='a';nm_test_func();return(0);}
7191 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7192 (eval $ac_compile) 2>&5
7194 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7195 test $ac_status = 0; }; then
7196 # Now try to grab the symbols.
7198 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7199 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7202 test $ac_status = 0; } && test -s "$nlist"; then
7203 # Try sorting and uniquifying the output.
7204 if sort "$nlist" | uniq > "$nlist"T; then
7205 mv -f "$nlist"T "$nlist"
7210 # Make sure that we snagged all the symbols we need.
7211 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7212 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7213 cat <<_LT_EOF > conftest.$ac_ext
7219 # Now generate the symbol file.
7220 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7222 cat <<_LT_EOF >> conftest.$ac_ext
7224 /* The mapping between symbol names and symbols. */
7229 lt__PROGRAM__LTX_preloaded_symbols[] =
7231 { "@PROGRAM@
", (void *) 0 },
7233 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7234 cat <<\_LT_EOF >> conftest.$ac_ext
7238 /* This works around a problem in FreeBSD linker */
7239 #ifdef FREEBSD_WORKAROUND
7240 static const void *lt_preloaded_setup() {
7241 return lt__PROGRAM__LTX_preloaded_symbols;
7249 # Now try linking the two files.
7250 mv conftest.$ac_objext conftstm.$ac_objext
7251 lt_save_LIBS="$LIBS"
7252 lt_save_CFLAGS="$CFLAGS"
7253 LIBS="conftstm.
$ac_objext"
7254 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7255 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7256 (eval $ac_link) 2>&5
7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7259 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7262 LIBS="$lt_save_LIBS"
7263 CFLAGS="$lt_save_CFLAGS"
7265 echo "cannot
find nm_test_func
in $nlist" >&5
7268 echo "cannot
find nm_test_var
in $nlist" >&5
7271 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7274 echo "$progname: failed program was
:" >&5
7275 cat conftest.$ac_ext >&5
7277 rm -rf conftest* conftst*
7279 # Do not use the global_symbol_pipe unless it works.
7280 if test "$pipe_works" = yes; then
7283 lt_cv_sys_global_symbol_pipe=
7289 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7290 lt_cv_sys_global_symbol_to_cdecl=
7292 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7294 $as_echo "failed
" >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7297 $as_echo "ok
" >&6; }
7321 # Check whether --enable-libtool-lock was given.
7322 if test "${enable_libtool_lock+set}" = set; then :
7323 enableval=$enable_libtool_lock;
7326 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7328 # Some flags need to be propagated to the compiler or linker for good
7332 # Find out which ABI we are using.
7333 echo 'int i;' > conftest.$ac_ext
7334 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335 (eval $ac_compile) 2>&5
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7338 test $ac_status = 0; }; then
7339 case `/usr/bin/file conftest.$ac_objext` in
7351 # Find out which ABI we are using.
7352 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7353 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7354 (eval $ac_compile) 2>&5
7356 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7357 test $ac_status = 0; }; then
7358 if test "$lt_cv_prog_gnu_ld" = yes; then
7359 case `/usr/bin/file conftest.$ac_objext` in
7361 LD="${LD-ld} -melf32bsmip"
7364 LD="${LD-ld} -melf32bmipn32"
7367 LD="${LD-ld} -melf64bmip"
7371 case `/usr/bin/file conftest.$ac_objext` in
7387 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7388 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7389 # Find out which ABI we are using.
7390 echo 'int i;' > conftest.$ac_ext
7391 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7392 (eval $ac_compile) 2>&5
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7395 test $ac_status = 0; }; then
7396 case `/usr/bin/file conftest.o` in
7399 x86_64-*kfreebsd*-gnu)
7400 LD="${LD-ld} -m elf_i386_fbsd
"
7403 case `/usr/bin/file conftest.o` in
7405 LD="${LD-ld} -m elf32_x86_64
"
7408 LD="${LD-ld} -m elf_i386
"
7412 powerpc64le-*linux*)
7413 LD="${LD-ld} -m elf32lppclinux
"
7416 LD="${LD-ld} -m elf32ppclinux
"
7419 LD="${LD-ld} -m elf_s390
"
7422 LD="${LD-ld} -m elf32_sparc
"
7428 x86_64-*kfreebsd*-gnu)
7429 LD="${LD-ld} -m elf_x86_64_fbsd
"
7432 LD="${LD-ld} -m elf_x86_64
"
7435 LD="${LD-ld} -m elf64lppc
"
7438 LD="${LD-ld} -m elf64ppc
"
7440 s390*-*linux*|s390*-*tpf*)
7441 LD="${LD-ld} -m elf64_s390
"
7444 LD="${LD-ld} -m elf64_sparc
"
7454 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7455 SAVE_CFLAGS="$CFLAGS"
7456 CFLAGS="$CFLAGS -belf"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7458 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7459 if ${lt_cv_cc_needs_belf+:} false; then :
7460 $as_echo_n "(cached
) " >&6
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7479 if ac_fn_c_try_link "$LINENO"; then :
7480 lt_cv_cc_needs_belf=yes
7482 lt_cv_cc_needs_belf=no
7484 rm -f core conftest.err conftest.$ac_objext \
7485 conftest$ac_exeext conftest.$ac_ext
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7494 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7495 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7496 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7497 CFLAGS="$SAVE_CFLAGS"
7501 # Find out which ABI we are using.
7502 echo 'int i;' > conftest.$ac_ext
7503 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7504 (eval $ac_compile) 2>&5
7506 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7507 test $ac_status = 0; }; then
7508 case `/usr/bin/file conftest.o` in
7510 case $lt_cv_prog_gnu_ld in
7511 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7513 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7525 need_locks="$enable_libtool_lock"
7529 rhapsody* | darwin*)
7530 if test -n "$ac_tool_prefix"; then
7531 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7532 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7534 $as_echo_n "checking
for $ac_word...
" >&6; }
7535 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7536 $as_echo_n "(cached
) " >&6
7538 if test -n "$DSYMUTIL"; then
7539 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7558 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7559 if test -n "$DSYMUTIL"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7561 $as_echo "$DSYMUTIL" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7564 $as_echo "no
" >&6; }
7569 if test -z "$ac_cv_prog_DSYMUTIL"; then
7570 ac_ct_DSYMUTIL=$DSYMUTIL
7571 # Extract the first word of "dsymutil
", so it can be a program name with args.
7572 set dummy dsymutil; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7574 $as_echo_n "checking
for $ac_word...
" >&6; }
7575 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7576 $as_echo_n "(cached
) " >&6
7578 if test -n "$ac_ct_DSYMUTIL"; then
7579 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7598 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7599 if test -n "$ac_ct_DSYMUTIL"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7601 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7604 $as_echo "no
" >&6; }
7607 if test "x
$ac_ct_DSYMUTIL" = x; then
7610 case $cross_compiling:$ac_tool_warned in
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7613 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7614 ac_tool_warned=yes ;;
7616 DSYMUTIL=$ac_ct_DSYMUTIL
7619 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7622 if test -n "$ac_tool_prefix"; then
7623 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7624 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7626 $as_echo_n "checking
for $ac_word...
" >&6; }
7627 if ${ac_cv_prog_NMEDIT+:} false; then :
7628 $as_echo_n "(cached
) " >&6
7630 if test -n "$NMEDIT"; then
7631 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7650 NMEDIT=$ac_cv_prog_NMEDIT
7651 if test -n "$NMEDIT"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7653 $as_echo "$NMEDIT" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7656 $as_echo "no
" >&6; }
7661 if test -z "$ac_cv_prog_NMEDIT"; then
7662 ac_ct_NMEDIT=$NMEDIT
7663 # Extract the first word of "nmedit
", so it can be a program name with args.
7664 set dummy nmedit; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7666 $as_echo_n "checking
for $ac_word...
" >&6; }
7667 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7668 $as_echo_n "(cached
) " >&6
7670 if test -n "$ac_ct_NMEDIT"; then
7671 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7690 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7691 if test -n "$ac_ct_NMEDIT"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7693 $as_echo "$ac_ct_NMEDIT" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7696 $as_echo "no
" >&6; }
7699 if test "x
$ac_ct_NMEDIT" = x; then
7702 case $cross_compiling:$ac_tool_warned in
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7705 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7706 ac_tool_warned=yes ;;
7708 NMEDIT=$ac_ct_NMEDIT
7711 NMEDIT="$ac_cv_prog_NMEDIT"
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7718 $as_echo_n "checking
for $ac_word...
" >&6; }
7719 if ${ac_cv_prog_LIPO+:} false; then :
7720 $as_echo_n "(cached
) " >&6
7722 if test -n "$LIPO"; then
7723 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7742 LIPO=$ac_cv_prog_LIPO
7743 if test -n "$LIPO"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7745 $as_echo "$LIPO" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7748 $as_echo "no
" >&6; }
7753 if test -z "$ac_cv_prog_LIPO"; then
7755 # Extract the first word of "lipo
", so it can be a program name with args.
7756 set dummy lipo; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7758 $as_echo_n "checking
for $ac_word...
" >&6; }
7759 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7760 $as_echo_n "(cached
) " >&6
7762 if test -n "$ac_ct_LIPO"; then
7763 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_ac_ct_LIPO="lipo
"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7782 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7783 if test -n "$ac_ct_LIPO"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7785 $as_echo "$ac_ct_LIPO" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7788 $as_echo "no
" >&6; }
7791 if test "x
$ac_ct_LIPO" = x; then
7794 case $cross_compiling:$ac_tool_warned in
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7797 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7798 ac_tool_warned=yes ;;
7803 LIPO="$ac_cv_prog_LIPO"
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}otool; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7810 $as_echo_n "checking
for $ac_word...
" >&6; }
7811 if ${ac_cv_prog_OTOOL+:} false; then :
7812 $as_echo_n "(cached
) " >&6
7814 if test -n "$OTOOL"; then
7815 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7825 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7834 OTOOL=$ac_cv_prog_OTOOL
7835 if test -n "$OTOOL"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7837 $as_echo "$OTOOL" >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7840 $as_echo "no
" >&6; }
7845 if test -z "$ac_cv_prog_OTOOL"; then
7847 # Extract the first word of "otool
", so it can be a program name with args.
7848 set dummy otool; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7850 $as_echo_n "checking
for $ac_word...
" >&6; }
7851 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7852 $as_echo_n "(cached
) " >&6
7854 if test -n "$ac_ct_OTOOL"; then
7855 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_ac_ct_OTOOL="otool
"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7874 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7875 if test -n "$ac_ct_OTOOL"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7877 $as_echo "$ac_ct_OTOOL" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7880 $as_echo "no
" >&6; }
7883 if test "x
$ac_ct_OTOOL" = x; then
7886 case $cross_compiling:$ac_tool_warned in
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7889 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7890 ac_tool_warned=yes ;;
7895 OTOOL="$ac_cv_prog_OTOOL"
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7902 $as_echo_n "checking
for $ac_word...
" >&6; }
7903 if ${ac_cv_prog_OTOOL64+:} false; then :
7904 $as_echo_n "(cached
) " >&6
7906 if test -n "$OTOOL64"; then
7907 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7926 OTOOL64=$ac_cv_prog_OTOOL64
7927 if test -n "$OTOOL64"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7929 $as_echo "$OTOOL64" >&6; }
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7932 $as_echo "no
" >&6; }
7937 if test -z "$ac_cv_prog_OTOOL64"; then
7938 ac_ct_OTOOL64=$OTOOL64
7939 # Extract the first word of "otool64
", so it can be a program name with args.
7940 set dummy otool64; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7942 $as_echo_n "checking
for $ac_word...
" >&6; }
7943 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7944 $as_echo_n "(cached
) " >&6
7946 if test -n "$ac_ct_OTOOL64"; then
7947 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7966 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7967 if test -n "$ac_ct_OTOOL64"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7969 $as_echo "$ac_ct_OTOOL64" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7972 $as_echo "no
" >&6; }
7975 if test "x
$ac_ct_OTOOL64" = x; then
7978 case $cross_compiling:$ac_tool_warned in
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7981 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7982 ac_tool_warned=yes ;;
7984 OTOOL64=$ac_ct_OTOOL64
7987 OTOOL64="$ac_cv_prog_OTOOL64"
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8017 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8018 if ${lt_cv_apple_cc_single_mod+:} false; then :
8019 $as_echo_n "(cached
) " >&6
8021 lt_cv_apple_cc_single_mod=no
8022 if test -z "${LT_MULTI_MODULE}"; then
8023 # By default we will add the -single_module flag. You can override
8024 # by either setting the environment variable LT_MULTI_MODULE
8025 # non-empty at configure time, or by adding -multi_module to the
8027 rm -rf libconftest.dylib*
8028 echo "int foo
(void
){return 1;}" > conftest.c
8029 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8030 -dynamiclib -Wl,-single_module conftest.c
" >&5
8031 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8032 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8034 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8035 lt_cv_apple_cc_single_mod=yes
8037 cat conftest.err >&5
8039 rm -rf libconftest.dylib*
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8044 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8046 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8047 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8048 $as_echo_n "(cached
) " >&6
8050 lt_cv_ld_exported_symbols_list=no
8051 save_LDFLAGS=$LDFLAGS
8052 echo "_main
" > conftest.sym
8053 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8065 if ac_fn_c_try_link "$LINENO"; then :
8066 lt_cv_ld_exported_symbols_list=yes
8068 lt_cv_ld_exported_symbols_list=no
8070 rm -f core conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072 LDFLAGS="$save_LDFLAGS"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8076 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8078 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8079 if ${lt_cv_ld_force_load+:} false; then :
8080 $as_echo_n "(cached
) " >&6
8082 lt_cv_ld_force_load=no
8083 cat > conftest.c << _LT_EOF
8084 int forced_loaded() { return 2;}
8086 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8087 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8088 echo "$AR cru libconftest.a conftest.o
" >&5
8089 $AR cru libconftest.a conftest.o 2>&5
8090 cat > conftest.c << _LT_EOF
8091 int main() { return 0;}
8093 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8094 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8096 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8097 lt_cv_ld_force_load=yes
8099 cat conftest.err >&5
8101 rm -f conftest.err libconftest.a conftest conftest.c
8102 rm -rf conftest.dSYM
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8106 $as_echo "$lt_cv_ld_force_load" >&6; }
8107 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8108 # build without first building modern cctools / linker.
8109 case $host_cpu-$host_os in
8110 *-rhapsody* | *-darwin1.[012])
8111 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8113 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8115 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8116 # deployment target is forced to an earlier version.
8117 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8118 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8128 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8129 _lt_dar_single_mod='$single_module'
8131 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8132 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8134 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8136 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8137 _lt_dsymutil='~$DSYMUTIL $lib || :'
8144 for ac_header in dlfcn.h
8146 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8148 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8149 cat >>confdefs.h <<_ACEOF
8150 #define HAVE_DLFCN_H 1
8159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8160 as_ac_Header=`$as_echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_hdr that defines DIR
" >&5
8162 $as_echo_n "checking
for $ac_hdr that defines DIR...
" >&6; }
8163 if eval \${$as_ac_Header+:} false; then :
8164 $as_echo_n "(cached
) " >&6
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 #include <sys/types.h>
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 eval "$as_ac_Header=yes"
8183 eval "$as_ac_Header=no
"
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 eval ac_res=\$$as_ac_Header
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
8189 $as_echo "$ac_res" >&6; }
8190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8191 cat >>confdefs.h <<_ACEOF
8192 #define `$as_echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8195 ac_header_dirent=$ac_hdr; break
8199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8200 if test $ac_header_dirent = dirent.h; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for library containing opendir
" >&5
8202 $as_echo_n "checking
for library containing opendir...
" >&6; }
8203 if ${ac_cv_search_opendir+:} false; then :
8204 $as_echo_n "(cached
) " >&6
8206 ac_func_search_save_LIBS=$LIBS
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8210 /* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8225 for ac_lib in '' dir; do
8226 if test -z "$ac_lib"; then
8227 ac_res="none required
"
8230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 ac_cv_search_opendir=$ac_res
8235 rm -f core conftest.err conftest.$ac_objext \
8237 if ${ac_cv_search_opendir+:} false; then :
8241 if ${ac_cv_search_opendir+:} false; then :
8244 ac_cv_search_opendir=no
8247 LIBS=$ac_func_search_save_LIBS
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_search_opendir" >&5
8250 $as_echo "$ac_cv_search_opendir" >&6; }
8251 ac_res=$ac_cv_search_opendir
8252 if test "$ac_res" != no; then :
8253 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for library containing opendir
" >&5
8259 $as_echo_n "checking
for library containing opendir...
" >&6; }
8260 if ${ac_cv_search_opendir+:} false; then :
8261 $as_echo_n "(cached
) " >&6
8263 ac_func_search_save_LIBS=$LIBS
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8267 /* Override any GCC internal prototype to avoid an error.
8268 Use char because int might match the return type of a GCC
8269 builtin and then its argument prototype would still apply. */
8282 for ac_lib in '' x; do
8283 if test -z "$ac_lib"; then
8284 ac_res="none required
"
8287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8289 if ac_fn_c_try_link "$LINENO"; then :
8290 ac_cv_search_opendir=$ac_res
8292 rm -f core conftest.err conftest.$ac_objext \
8294 if ${ac_cv_search_opendir+:} false; then :
8298 if ${ac_cv_search_opendir+:} false; then :
8301 ac_cv_search_opendir=no
8304 LIBS=$ac_func_search_save_LIBS
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_search_opendir" >&5
8307 $as_echo "$ac_cv_search_opendir" >&6; }
8308 ac_res=$ac_cv_search_opendir
8309 if test "$ac_res" != no; then :
8310 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8319 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
8320 if test "x
$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8322 cat >>confdefs.h <<_ACEOF
8323 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8327 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8332 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8333 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8335 cat >>confdefs.h
<<_ACEOF
8336 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8340 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8343 case " $LIBOBJS " in
8344 *" fileblocks.$ac_objext "* ) ;;
8345 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
8352 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8353 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
8355 cat >>confdefs.h
<<_ACEOF
8356 #define HAVE_STRUCT_STAT_ST_RDEV 1
8360 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8365 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8366 #include <$ac_cv_struct_tm>
8369 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
8371 cat >>confdefs.h
<<_ACEOF
8372 #define HAVE_STRUCT_TM_TM_ZONE 1
8378 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8380 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8383 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8385 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
8391 cat >>confdefs.h
<<_ACEOF
8392 #define HAVE_DECL_TZNAME $ac_have_decl
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8396 $as_echo_n "checking for tzname... " >&6; }
8397 if ${ac_cv_var_tzname+:} false
; then :
8398 $as_echo_n "(cached) " >&6
8400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8403 #if !HAVE_DECL_TZNAME
8404 extern char *tzname[];
8410 return tzname[0][0];
8415 if ac_fn_c_try_link
"$LINENO"; then :
8416 ac_cv_var_tzname
=yes
8420 rm -f core conftest.err conftest.
$ac_objext \
8421 conftest
$ac_exeext conftest.
$ac_ext
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8424 $as_echo "$ac_cv_var_tzname" >&6; }
8425 if test $ac_cv_var_tzname = yes; then
8427 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8433 ac_fn_c_check_member
"$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8434 #include <sys/types.h>
8436 #include <sys/stat.h>
8438 if test "x$ac_cv_member_struct_stat_st_dev" = xyes
; then :
8440 cat >>confdefs.h
<<_ACEOF
8441 #define HAVE_STRUCT_STAT_ST_DEV 1
8446 ac_fn_c_check_member
"$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8447 #include <sys/types.h>
8449 #include <sys/stat.h>
8451 if test "x$ac_cv_member_struct_stat_st_ino" = xyes
; then :
8453 cat >>confdefs.h
<<_ACEOF
8454 #define HAVE_STRUCT_STAT_ST_INO 1
8459 ac_fn_c_check_member
"$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8460 #include <sys/types.h>
8462 #include <sys/stat.h>
8464 if test "x$ac_cv_member_struct_stat_st_mode" = xyes
; then :
8466 cat >>confdefs.h
<<_ACEOF
8467 #define HAVE_STRUCT_STAT_ST_MODE 1
8472 ac_fn_c_check_member
"$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8473 #include <sys/types.h>
8475 #include <sys/stat.h>
8477 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes
; then :
8479 cat >>confdefs.h
<<_ACEOF
8480 #define HAVE_STRUCT_STAT_ST_NLINK 1
8485 ac_fn_c_check_member
"$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8486 #include <sys/types.h>
8488 #include <sys/stat.h>
8490 if test "x$ac_cv_member_struct_stat_st_uid" = xyes
; then :
8492 cat >>confdefs.h
<<_ACEOF
8493 #define HAVE_STRUCT_STAT_ST_UID 1
8498 ac_fn_c_check_member
"$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8499 #include <sys/types.h>
8501 #include <sys/stat.h>
8503 if test "x$ac_cv_member_struct_stat_st_gid" = xyes
; then :
8505 cat >>confdefs.h
<<_ACEOF
8506 #define HAVE_STRUCT_STAT_ST_GID 1
8511 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8512 #include <sys/types.h>
8514 #include <sys/stat.h>
8516 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
8518 cat >>confdefs.h
<<_ACEOF
8519 #define HAVE_STRUCT_STAT_ST_RDEV 1
8524 ac_fn_c_check_member
"$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8525 #include <sys/types.h>
8527 #include <sys/stat.h>
8529 if test "x$ac_cv_member_struct_stat_st_size" = xyes
; then :
8531 cat >>confdefs.h
<<_ACEOF
8532 #define HAVE_STRUCT_STAT_ST_SIZE 1
8537 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8538 #include <sys/types.h>
8540 #include <sys/stat.h>
8542 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
8544 cat >>confdefs.h
<<_ACEOF
8545 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8550 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8551 #include <sys/types.h>
8553 #include <sys/stat.h>
8555 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8557 cat >>confdefs.h
<<_ACEOF
8558 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8563 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8564 #include <sys/types.h>
8566 #include <sys/stat.h>
8568 if test "x$ac_cv_member_struct_stat_st_atime" = xyes
; then :
8570 cat >>confdefs.h
<<_ACEOF
8571 #define HAVE_STRUCT_STAT_ST_ATIME 1
8576 ac_fn_c_check_member
"$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8577 #include <sys/types.h>
8579 #include <sys/stat.h>
8581 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes
; then :
8583 cat >>confdefs.h
<<_ACEOF
8584 #define HAVE_STRUCT_STAT_ST_MTIME 1
8589 ac_fn_c_check_member
"$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8590 #include <sys/types.h>
8592 #include <sys/stat.h>
8594 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes
; then :
8596 cat >>confdefs.h
<<_ACEOF
8597 #define HAVE_STRUCT_STAT_ST_CTIME 1
8604 ac_fn_c_check_type
"$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8605 if test "x$ac_cv_type___int128" = xyes
; then :
8607 cat >>confdefs.h
<<_ACEOF
8608 #define HAVE___INT128 1
8614 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8615 #include <sys/socket.h>
8618 if test "x$ac_cv_type_socklen_t" = xyes
; then :
8620 cat >>confdefs.h
<<_ACEOF
8621 #define HAVE_SOCKLEN_T 1
8627 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
8628 if test "x$ac_cv_type_long_long" = xyes
; then :
8630 cat >>confdefs.h
<<_ACEOF
8631 #define HAVE_LONG_LONG 1
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
8639 $as_echo_n "checking for struct statfs... " >&6; }
8640 if ${sim_cv_struct_statfs+:} false
; then :
8641 $as_echo_n "(cached) " >&6
8643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8646 #include <sys/types.h>
8647 #ifdef HAVE_SYS_PARAM_H
8648 #include <sys/param.h>
8650 #ifdef HAVE_SYS_MOUNT_H
8651 #include <sys/mount.h>
8653 #ifdef HAVE_SYS_VFS_H
8654 #include <sys/vfs.h>
8656 #ifdef HAVE_SYS_STATFS_H
8657 #include <sys/statfs.h>
8669 if ac_fn_c_try_compile
"$LINENO"; then :
8670 sim_cv_struct_statfs
="yes"
8672 sim_cv_struct_statfs
="no"
8674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_struct_statfs" >&5
8677 $as_echo "$sim_cv_struct_statfs" >&6; }
8678 if test x
"sim_cv_struct_statfs" = x
"yes"; then :
8680 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
8686 $as_echo_n "checking if union semun defined... " >&6; }
8687 if ${sim_cv_has_union_semun+:} false
; then :
8688 $as_echo_n "(cached) " >&6
8690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8693 #include <sys/types.h>
8694 #include <sys/ipc.h>
8695 #include <sys/sem.h>
8706 if ac_fn_c_try_compile
"$LINENO"; then :
8707 sim_cv_has_union_semun
="yes"
8709 sim_cv_has_union_semun
="no"
8711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_has_union_semun" >&5
8714 $as_echo "$sim_cv_has_union_semun" >&6; }
8715 if test x
"$sim_cv_has_union_semun" = x
"yes"; then :
8717 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
8723 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
8724 if ${sim_cv_sysv_sem+:} false
; then :
8725 $as_echo_n "(cached) " >&6
8727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8730 #include <sys/types.h>
8731 #include <sys/ipc.h>
8732 #include <sys/sem.h>
8733 #ifndef HAVE_UNION_SEMUN
8736 struct semid_ds *buf;
8745 int id = semget(IPC_PRIVATE, 1, IPC_CREAT|0400);
8748 arg.val = 0; /* avoid implicit type cast to union */
8749 if (semctl(id, 0, IPC_RMID, arg) == -1)
8756 if ac_fn_c_try_compile
"$LINENO"; then :
8757 sim_cv_sysv_sem
="yes"
8759 sim_cv_sysv_sem
="no"
8761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_sem" >&5
8764 $as_echo "$sim_cv_sysv_sem" >&6; }
8765 if test x
"$sim_cv_sysv_sem" = x
"yes"; then :
8767 $as_echo "#define HAVE_SYSV_SEM 1" >>confdefs.h
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
8773 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
8774 if ${sim_cv_sysv_shm+:} false
; then :
8775 $as_echo_n "(cached) " >&6
8777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8780 #include <sys/types.h>
8781 #include <sys/ipc.h>
8782 #include <sys/shm.h>
8787 int id = shmget(IPC_PRIVATE, 1, IPC_CREAT|0400);
8790 if (shmctl(id, IPC_RMID, 0) == -1)
8797 if ac_fn_c_try_compile
"$LINENO"; then :
8798 sim_cv_sysv_shm
="yes"
8800 sim_cv_sysv_shm
="no"
8802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_shm" >&5
8805 $as_echo "$sim_cv_sysv_shm" >&6; }
8806 if test x
"$sim_cv_sysv_shm" = x
"yes"; then :
8808 $as_echo "#define HAVE_SYSV_SHM 1" >>confdefs.h
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
8814 $as_echo_n "checking for struct termios... " >&6; }
8815 if ${sim_cv_termios_struct+:} false
; then :
8816 $as_echo_n "(cached) " >&6
8818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8821 #include <sys/types.h>
8822 #include <sys/termios.h>
8827 static struct termios x;
8838 if ac_fn_c_try_compile
"$LINENO"; then :
8839 sim_cv_termios_struct
="yes"
8841 sim_cv_termios_struct
="no"
8843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5
8846 $as_echo "$sim_cv_termios_struct" >&6; }
8847 if test $sim_cv_termios_struct = yes; then
8849 $as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h
8853 if test "$sim_cv_termios_struct" = "yes"; then
8854 if ${sim_cv_termios_cline+:} false
; then :
8855 $as_echo_n "(cached) " >&6
8858 ac_fn_c_check_member
"$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
8859 #include <sys/types.h>
8860 #include <sys/termios.h>
8863 if test "x$ac_cv_member_struct_termios_c_line" = xyes
; then :
8864 sim_cv_termios_cline
="yes"
8866 sim_cv_termios_cline
="no"
8869 if test $sim_cv_termios_cline = yes; then
8871 $as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h
8875 sim_cv_termios_cline
=no
8878 if test "$sim_cv_termios_struct" != "yes"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
8880 $as_echo_n "checking for struct termio... " >&6; }
8881 if ${sim_cv_termio_struct+:} false
; then :
8882 $as_echo_n "(cached) " >&6
8884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8887 #include <sys/types.h>
8888 #include <sys/termio.h>
8893 static struct termio x;
8904 if ac_fn_c_try_compile
"$LINENO"; then :
8905 sim_cv_termio_struct
="yes"
8907 sim_cv_termio_struct
="no"
8909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5
8912 $as_echo "$sim_cv_termio_struct" >&6; }
8913 if test $sim_cv_termio_struct = yes; then
8915 $as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h
8919 sim_cv_termio_struct
=no
8922 if test "$sim_cv_termio_struct" = "yes"; then
8923 if ${sim_cv_termio_cline+:} false
; then :
8924 $as_echo_n "(cached) " >&6
8927 ac_fn_c_check_member
"$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
8928 #include <sys/types.h>
8929 #include <sys/termio.h>
8932 if test "x$ac_cv_member_struct_termio_c_line" = xyes
; then :
8933 sim_cv_termio_cline
="yes"
8935 sim_cv_termio_cline
="no"
8938 if test $sim_cv_termio_cline = yes; then
8940 $as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h
8944 sim_cv_termio_cline
=no
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8948 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8949 if ${ac_cv_type_getgroups+:} false
; then :
8950 $as_echo_n "(cached) " >&6
8952 if test "$cross_compiling" = yes; then :
8953 ac_cv_type_getgroups
=cross
8955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 /* Thanks to Mike Rendell for this test. */
8958 $ac_includes_default
8961 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8968 union { gid_t gval; long int lval; } val;
8971 for (i = 0; i < NGID; i++)
8972 gidset[i] = val.gval;
8973 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8975 /* Exit non-zero if getgroups seems to require an array of ints. This
8976 happens when gid_t is short int but getgroups modifies an array
8978 return n > 0 && gidset[n] != val.gval;
8981 if ac_fn_c_try_run
"$LINENO"; then :
8982 ac_cv_type_getgroups
=gid_t
8984 ac_cv_type_getgroups
=int
8986 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8987 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8990 if test $ac_cv_type_getgroups = cross
; then
8991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8997 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
8998 ac_cv_type_getgroups
=gid_t
9000 ac_cv_type_getgroups
=int
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
9007 $as_echo "$ac_cv_type_getgroups" >&6; }
9009 cat >>confdefs.h
<<_ACEOF
9010 #define GETGROUPS_T $ac_cv_type_getgroups
9014 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9015 if test "x$ac_cv_type_mode_t" = xyes
; then :
9019 cat >>confdefs.h
<<_ACEOF
9025 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9026 if test "x$ac_cv_type_off_t" = xyes
; then :
9030 cat >>confdefs.h
<<_ACEOF
9031 #define off_t long int
9036 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9037 if test "x$ac_cv_type_pid_t" = xyes
; then :
9041 cat >>confdefs.h
<<_ACEOF
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9048 $as_echo_n "checking return type of signal handlers... " >&6; }
9049 if ${ac_cv_type_signal+:} false
; then :
9050 $as_echo_n "(cached) " >&6
9052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 #include <sys/types.h>
9060 return *(signal (0, 0)) (0) == 1;
9065 if ac_fn_c_try_compile
"$LINENO"; then :
9066 ac_cv_type_signal
=int
9068 ac_cv_type_signal
=void
9070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9073 $as_echo "$ac_cv_type_signal" >&6; }
9075 cat >>confdefs.h
<<_ACEOF
9076 #define RETSIGTYPE $ac_cv_type_signal
9080 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9081 if test "x$ac_cv_type_size_t" = xyes
; then :
9085 cat >>confdefs.h
<<_ACEOF
9086 #define size_t unsigned int
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9092 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9093 if ${ac_cv_type_uid_t+:} false
; then :
9094 $as_echo_n "(cached) " >&6
9096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 #include <sys/types.h>
9101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9102 $EGREP "uid_t" >/dev
/null
2>&1; then :
9103 ac_cv_type_uid_t
=yes
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9111 $as_echo "$ac_cv_type_uid_t" >&6; }
9112 if test $ac_cv_type_uid_t = no
; then
9114 $as_echo "#define uid_t int" >>confdefs.h
9117 $as_echo "#define gid_t int" >>confdefs.h
9136 # Check whether --enable-shared was given.
9137 if test "${enable_shared+set}" = set; then :
9138 enableval
=$enable_shared; p
=${PACKAGE-default}
9140 yes) enable_shared
=yes ;;
9141 no
) enable_shared
=no
;;
9144 # Look at the argument we got. We use all the common list separators.
9145 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9146 for pkg
in $enableval; do
9148 if test "X$pkg" = "X$p"; then
9167 # Check whether --enable-static was given.
9168 if test "${enable_static+set}" = set; then :
9169 enableval
=$enable_static; p
=${PACKAGE-default}
9171 yes) enable_static
=yes ;;
9172 no
) enable_static
=no
;;
9175 # Look at the argument we got. We use all the common list separators.
9176 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9177 for pkg
in $enableval; do
9179 if test "X$pkg" = "X$p"; then
9199 # Check whether --with-pic was given.
9200 if test "${with_pic+set}" = set; then :
9201 withval
=$with_pic; pic_mode
="$withval"
9207 test -z "$pic_mode" && pic_mode
=default
9215 # Check whether --enable-fast-install was given.
9216 if test "${enable_fast_install+set}" = set; then :
9217 enableval
=$enable_fast_install; p
=${PACKAGE-default}
9219 yes) enable_fast_install
=yes ;;
9220 no
) enable_fast_install
=no
;;
9222 enable_fast_install
=no
9223 # Look at the argument we got. We use all the common list separators.
9224 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9225 for pkg
in $enableval; do
9227 if test "X$pkg" = "X$p"; then
9228 enable_fast_install
=yes
9235 enable_fast_install
=yes
9248 # This can be used to rebuild libtool when needed
9249 LIBTOOL_DEPS
="$ltmain"
9251 # Always use our own libtool.
9252 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
9279 test -z "$LN_S" && LN_S
="ln -s"
9294 if test -n "${ZSH_VERSION+set}" ; then
9295 setopt NO_GLOB_SUBST
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9299 $as_echo_n "checking for objdir... " >&6; }
9300 if ${lt_cv_objdir+:} false
; then :
9301 $as_echo_n "(cached) " >&6
9303 rm -f .libs
2>/dev
/null
9304 mkdir .libs
2>/dev
/null
9305 if test -d .libs
; then
9308 # MS-DOS does not allow filenames that begin with a dot.
9311 rmdir .libs
2>/dev
/null
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9314 $as_echo "$lt_cv_objdir" >&6; }
9315 objdir
=$lt_cv_objdir
9321 cat >>confdefs.h
<<_ACEOF
9322 #define LT_OBJDIR "$lt_cv_objdir/"
9330 # AIX sometimes has problems with the GCC collect2 program. For some
9331 # reason, if we set the COLLECT_NAMES environment variable, the problems
9332 # vanish in a puff of smoke.
9333 if test "X${COLLECT_NAMES+set}" != Xset
; then
9335 export COLLECT_NAMES
9342 can_build_shared
=yes
9344 # All known linkers require a `.a' archive for static linking (except MSVC,
9345 # which needs '.lib').
9348 with_gnu_ld
="$lt_cv_prog_gnu_ld"
9351 old_CFLAGS
="$CFLAGS"
9353 # Set sane defaults for various variables
9354 test -z "$CC" && CC
=cc
9355 test -z "$LTCC" && LTCC
=$CC
9356 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
9357 test -z "$LD" && LD
=ld
9358 test -z "$ac_objext" && ac_objext
=o
9360 for cc_temp
in $compiler""; do
9362 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
9363 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
9368 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9371 # Only perform the check for file, if the check method requires it
9372 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
9373 case $deplibs_check_method in
9375 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9377 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9378 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9379 $as_echo_n "(cached) " >&6
9383 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9386 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9387 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9388 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9389 for ac_dir
in $ac_dummy; do
9391 test -z "$ac_dir" && ac_dir
=.
9392 if test -f $ac_dir/${ac_tool_prefix}file; then
9393 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
9394 if test -n "$file_magic_test_file"; then
9395 case $deplibs_check_method in
9397 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9398 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9399 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9400 $EGREP "$file_magic_regex" > /dev
/null
; then
9405 *** Warning: the command libtool uses to detect shared libraries,
9406 *** $file_magic_cmd, produces output that libtool cannot recognize.
9407 *** The result is that libtool may fail to recognize shared libraries
9408 *** as such. This will affect the creation of libtool libraries that
9409 *** depend on shared libraries, but programs linked with such libtool
9410 *** libraries will work regardless of this problem. Nevertheless, you
9411 *** may want to report the problem to your system manager and/or to
9412 *** bug-libtool@gnu.org
9422 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9427 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9428 if test -n "$MAGIC_CMD"; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9430 $as_echo "$MAGIC_CMD" >&6; }
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9440 if test -z "$lt_cv_path_MAGIC_CMD"; then
9441 if test -n "$ac_tool_prefix"; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9443 $as_echo_n "checking for file... " >&6; }
9444 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9445 $as_echo_n "(cached) " >&6
9449 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9452 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9453 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9454 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9455 for ac_dir
in $ac_dummy; do
9457 test -z "$ac_dir" && ac_dir
=.
9458 if test -f $ac_dir/file; then
9459 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
9460 if test -n "$file_magic_test_file"; then
9461 case $deplibs_check_method in
9463 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9464 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9465 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9466 $EGREP "$file_magic_regex" > /dev
/null
; then
9471 *** Warning: the command libtool uses to detect shared libraries,
9472 *** $file_magic_cmd, produces output that libtool cannot recognize.
9473 *** The result is that libtool may fail to recognize shared libraries
9474 *** as such. This will affect the creation of libtool libraries that
9475 *** depend on shared libraries, but programs linked with such libtool
9476 *** libraries will work regardless of this problem. Nevertheless, you
9477 *** may want to report the problem to your system manager and/or to
9478 *** bug-libtool@gnu.org
9488 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9493 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9494 if test -n "$MAGIC_CMD"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9496 $as_echo "$MAGIC_CMD" >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9512 # Use C for the default configuration in the libtool script
9516 ac_cpp
='$CPP $CPPFLAGS'
9517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9522 # Source file extension for C test sources.
9525 # Object file extension for compiled C test sources.
9529 # Code to be used in simple compile tests
9530 lt_simple_compile_test_code
="int some_variable = 0;"
9532 # Code to be used in simple link tests
9533 lt_simple_link_test_code
='int main(){return(0);}'
9541 # If no C compiler was specified, use CC.
9544 # If no C compiler flags were specified, use CFLAGS.
9545 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
9547 # Allow CC to be a program name with arguments.
9550 # Save the default compiler, since it gets overwritten when the other
9551 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9552 compiler_DEFAULT
=$CC
9554 # save warnings/boilerplate of simple test code
9555 ac_outfile
=conftest.
$ac_objext
9556 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
9557 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9558 _lt_compiler_boilerplate
=`cat conftest.err`
9561 ac_outfile
=conftest.
$ac_objext
9562 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
9563 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9564 _lt_linker_boilerplate
=`cat conftest.err`
9569 ## There is no encapsulation within the following macros, do not change
9570 ## the running order or otherwise move them around unless you know exactly
9571 ## what you are doing...
9572 if test -n "$compiler"; then
9574 lt_prog_compiler_no_builtin_flag
=
9576 if test "$GCC" = yes; then
9577 case $cc_basename in
9579 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
9581 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9585 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9586 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
9587 $as_echo_n "(cached) " >&6
9589 lt_cv_prog_compiler_rtti_exceptions
=no
9590 ac_outfile
=conftest.
$ac_objext
9591 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9592 lt_compiler_flag
="-fno-rtti -fno-exceptions"
9593 # Insert the option either (1) after the last *FLAGS variable, or
9594 # (2) before a word containing "conftest.", or (3) at the end.
9595 # Note that $ac_compile itself does not contain backslashes and begins
9596 # with a dollar sign (not a hyphen), so the echo should work correctly.
9597 # The option is referenced via a variable to avoid confusing sed.
9598 lt_compile
=`echo "$ac_compile" | $SED \
9599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9601 -e 's:$: $lt_compiler_flag:'`
9602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9603 (eval "$lt_compile" 2>conftest.err
)
9605 cat conftest.err
>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 if (exit $ac_status) && test -s "$ac_outfile"; then
9608 # The compiler can only warn and ignore the option if not recognized
9609 # So say no if there are warnings other than the usual output.
9610 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9611 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9612 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9613 lt_cv_prog_compiler_rtti_exceptions
=yes
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9620 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9622 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
9623 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9635 lt_prog_compiler_wl
=
9636 lt_prog_compiler_pic
=
9637 lt_prog_compiler_static
=
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9640 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9642 if test "$GCC" = yes; then
9643 lt_prog_compiler_wl
='-Wl,'
9644 lt_prog_compiler_static
='-static'
9648 # All AIX code is PIC.
9649 if test "$host_cpu" = ia64
; then
9650 # AIX 5 now supports IA64 processor
9651 lt_prog_compiler_static
='-Bstatic'
9653 lt_prog_compiler_pic
='-fPIC'
9659 # see comment about AmigaOS4 .so support
9660 lt_prog_compiler_pic
='-fPIC'
9663 # FIXME: we need at least 68020 code to build shared libraries, but
9664 # adding the `-m68020' flag to GCC prevents building anything better,
9666 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9671 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9672 # PIC is the default for these OSes.
9675 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9676 # This hack is so that the source file can tell whether it is being
9677 # built for inclusion in a dll (and should export symbols for example).
9678 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9679 # (--disable-auto-import) libraries
9680 lt_prog_compiler_pic
='-DDLL_EXPORT'
9683 darwin
* | rhapsody
*)
9684 # PIC is the default on this platform
9685 # Common symbols not allowed in MH_DYLIB files
9686 lt_prog_compiler_pic
='-fno-common'
9690 # PIC is the default for Haiku.
9691 # The "-static" flag exists, but is broken.
9692 lt_prog_compiler_static
=
9696 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9697 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9698 # sets the default TLS model and affects inlining.
9704 lt_prog_compiler_pic
='-fPIC'
9710 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9711 # Instead, we relocate shared libraries at runtime.
9715 # Just because we use GCC doesn't mean we suddenly get shared libraries
9716 # on systems that don't support them.
9717 lt_prog_compiler_can_build_shared
=no
9722 # QNX uses GNU C++, but need to define -shared option too, otherwise
9724 lt_prog_compiler_pic
='-fPIC -shared'
9728 if test -d /usr
/nec
; then
9729 lt_prog_compiler_pic
=-Kconform_pic
9734 lt_prog_compiler_pic
='-fPIC'
9738 case $cc_basename in
9739 nvcc
*) # Cuda Compiler Driver 2.2
9740 lt_prog_compiler_wl
='-Xlinker '
9741 lt_prog_compiler_pic
='-Xcompiler -fPIC'
9745 # PORTME Check for flag to pass linker flags through the system compiler.
9748 lt_prog_compiler_wl
='-Wl,'
9749 if test "$host_cpu" = ia64
; then
9750 # AIX 5 now supports IA64 processor
9751 lt_prog_compiler_static
='-Bstatic'
9753 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9757 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9758 # This hack is so that the source file can tell whether it is being
9759 # built for inclusion in a dll (and should export symbols for example).
9760 lt_prog_compiler_pic
='-DDLL_EXPORT'
9763 hpux9
* | hpux10
* | hpux11
*)
9764 lt_prog_compiler_wl
='-Wl,'
9765 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9772 lt_prog_compiler_pic
='+Z'
9775 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9776 lt_prog_compiler_static
='${wl}-a ${wl}archive'
9779 irix5
* | irix6
* | nonstopux
*)
9780 lt_prog_compiler_wl
='-Wl,'
9781 # PIC (with -KPIC) is the default.
9782 lt_prog_compiler_static
='-non_shared'
9785 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9786 case $cc_basename in
9787 # old Intel for x86_64 which still supported -KPIC.
9789 lt_prog_compiler_wl
='-Wl,'
9790 lt_prog_compiler_pic
='-KPIC'
9791 lt_prog_compiler_static
='-static'
9793 # icc used to be incompatible with GCC.
9794 # ICC 10 doesn't accept -KPIC any more.
9796 lt_prog_compiler_wl
='-Wl,'
9797 lt_prog_compiler_pic
='-fPIC'
9798 lt_prog_compiler_static
='-static'
9800 # Lahey Fortran 8.1.
9802 lt_prog_compiler_wl
='-Wl,'
9803 lt_prog_compiler_pic
='--shared'
9804 lt_prog_compiler_static
='--static'
9806 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9807 # Portland Group compilers (*not* the Pentium gcc compiler,
9808 # which looks to be a dead project)
9809 lt_prog_compiler_wl
='-Wl,'
9810 lt_prog_compiler_pic
='-fpic'
9811 lt_prog_compiler_static
='-Bstatic'
9814 lt_prog_compiler_wl
='-Wl,'
9815 # All Alpha code is PIC.
9816 lt_prog_compiler_static
='-non_shared'
9818 xl
* | bgxl
* | bgf
* | mpixl
*)
9819 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9820 lt_prog_compiler_wl
='-Wl,'
9821 lt_prog_compiler_pic
='-qpic'
9822 lt_prog_compiler_static
='-qstaticlink'
9825 case `$CC -V 2>&1 | sed 5q` in
9826 *Sun\ F
* |
*Sun
*Fortran
*)
9827 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9828 lt_prog_compiler_pic
='-KPIC'
9829 lt_prog_compiler_static
='-Bstatic'
9830 lt_prog_compiler_wl
=''
9834 lt_prog_compiler_pic
='-KPIC'
9835 lt_prog_compiler_static
='-Bstatic'
9836 lt_prog_compiler_wl
='-Wl,'
9844 lt_prog_compiler_pic
='-KPIC'
9845 lt_prog_compiler_static
='-Bstatic'
9849 # QNX uses GNU C++, but need to define -shared option too, otherwise
9851 lt_prog_compiler_pic
='-fPIC -shared'
9854 osf3
* | osf4
* | osf5
*)
9855 lt_prog_compiler_wl
='-Wl,'
9856 # All OSF/1 code is PIC.
9857 lt_prog_compiler_static
='-non_shared'
9861 lt_prog_compiler_static
='-non_shared'
9865 lt_prog_compiler_pic
='-KPIC'
9866 lt_prog_compiler_static
='-Bstatic'
9867 case $cc_basename in
9869 lt_prog_compiler_wl
='-Qoption ld ';;
9871 lt_prog_compiler_wl
='-Wl,';;
9876 lt_prog_compiler_wl
='-Qoption ld '
9877 lt_prog_compiler_pic
='-PIC'
9878 lt_prog_compiler_static
='-Bstatic'
9881 sysv4 | sysv4.2uw2
* | sysv4.3
*)
9882 lt_prog_compiler_wl
='-Wl,'
9883 lt_prog_compiler_pic
='-KPIC'
9884 lt_prog_compiler_static
='-Bstatic'
9888 if test -d /usr
/nec
;then
9889 lt_prog_compiler_pic
='-Kconform_pic'
9890 lt_prog_compiler_static
='-Bstatic'
9894 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
9895 lt_prog_compiler_wl
='-Wl,'
9896 lt_prog_compiler_pic
='-KPIC'
9897 lt_prog_compiler_static
='-Bstatic'
9901 lt_prog_compiler_wl
='-Wl,'
9902 lt_prog_compiler_can_build_shared
=no
9906 lt_prog_compiler_pic
='-pic'
9907 lt_prog_compiler_static
='-Bstatic'
9911 lt_prog_compiler_can_build_shared
=no
9917 # For platforms which do not support PIC, -DPIC is meaningless:
9919 lt_prog_compiler_pic
=
9922 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9926 $as_echo "$lt_prog_compiler_pic" >&6; }
9934 # Check to make sure the PIC flag actually works.
9936 if test -n "$lt_prog_compiler_pic"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9938 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9939 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
9940 $as_echo_n "(cached) " >&6
9942 lt_cv_prog_compiler_pic_works
=no
9943 ac_outfile
=conftest.
$ac_objext
9944 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9945 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
9946 # Insert the option either (1) after the last *FLAGS variable, or
9947 # (2) before a word containing "conftest.", or (3) at the end.
9948 # Note that $ac_compile itself does not contain backslashes and begins
9949 # with a dollar sign (not a hyphen), so the echo should work correctly.
9950 # The option is referenced via a variable to avoid confusing sed.
9951 lt_compile
=`echo "$ac_compile" | $SED \
9952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9954 -e 's:$: $lt_compiler_flag:'`
9955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9956 (eval "$lt_compile" 2>conftest.err
)
9958 cat conftest.err
>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 if (exit $ac_status) && test -s "$ac_outfile"; then
9961 # The compiler can only warn and ignore the option if not recognized
9962 # So say no if there are warnings other than the usual output.
9963 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9964 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9965 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9966 lt_cv_prog_compiler_pic_works
=yes
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9973 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9975 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
9976 case $lt_prog_compiler_pic in
9978 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9981 lt_prog_compiler_pic
=
9982 lt_prog_compiler_can_build_shared
=no
9993 # Check to make sure the static flag actually works.
9995 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9997 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9998 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9999 $as_echo_n "(cached) " >&6
10001 lt_cv_prog_compiler_static_works
=no
10002 save_LDFLAGS
="$LDFLAGS"
10003 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
10004 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10005 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10006 # The linker can only warn and ignore the option if not recognized
10007 # So say no if there are warnings
10008 if test -s conftest.err
; then
10009 # Append any errors to the config.log.
10010 cat conftest.err
1>&5
10011 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10012 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10013 if diff conftest.exp conftest.er2
>/dev
/null
; then
10014 lt_cv_prog_compiler_static_works
=yes
10017 lt_cv_prog_compiler_static_works
=yes
10021 LDFLAGS
="$save_LDFLAGS"
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10025 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10027 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
10030 lt_prog_compiler_static
=
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10040 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10041 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10042 $as_echo_n "(cached) " >&6
10044 lt_cv_prog_compiler_c_o
=no
10045 $RM -r conftest
2>/dev
/null
10049 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10051 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10052 # Insert the option either (1) after the last *FLAGS variable, or
10053 # (2) before a word containing "conftest.", or (3) at the end.
10054 # Note that $ac_compile itself does not contain backslashes and begins
10055 # with a dollar sign (not a hyphen), so the echo should work correctly.
10056 lt_compile
=`echo "$ac_compile" | $SED \
10057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10059 -e 's:$: $lt_compiler_flag:'`
10060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10061 (eval "$lt_compile" 2>out
/conftest.err
)
10063 cat out
/conftest.err
>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10067 # The compiler can only warn and ignore the option if not recognized
10068 # So say no if there are warnings
10069 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10070 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10071 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10072 lt_cv_prog_compiler_c_o
=yes
10077 # SGI C++ compiler will create directory out/ii_files/ for
10078 # template instantiation
10079 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10080 $RM out
/* && rmdir out
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10087 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10095 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10096 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10097 $as_echo_n "(cached) " >&6
10099 lt_cv_prog_compiler_c_o
=no
10100 $RM -r conftest
2>/dev
/null
10104 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10106 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10107 # Insert the option either (1) after the last *FLAGS variable, or
10108 # (2) before a word containing "conftest.", or (3) at the end.
10109 # Note that $ac_compile itself does not contain backslashes and begins
10110 # with a dollar sign (not a hyphen), so the echo should work correctly.
10111 lt_compile
=`echo "$ac_compile" | $SED \
10112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10114 -e 's:$: $lt_compiler_flag:'`
10115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10116 (eval "$lt_compile" 2>out
/conftest.err
)
10118 cat out
/conftest.err
>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10122 # The compiler can only warn and ignore the option if not recognized
10123 # So say no if there are warnings
10124 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10125 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10126 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10127 lt_cv_prog_compiler_c_o
=yes
10132 # SGI C++ compiler will create directory out/ii_files/ for
10133 # template instantiation
10134 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10135 $RM out
/* && rmdir out
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10142 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10147 hard_links
="nottested"
10148 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
10149 # do not overwrite the value of need_locks provided by the user
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10151 $as_echo_n "checking if we can lock with hard links... " >&6; }
10154 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10156 ln conftest.a conftest.b
2>&5 || hard_links
=no
10157 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10159 $as_echo "$hard_links" >&6; }
10160 if test "$hard_links" = no
; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10162 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10175 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10178 allow_undefined_flag
=
10179 always_export_symbols
=no
10181 archive_expsym_cmds
=
10182 compiler_needs_object
=no
10183 enable_shared_with_static_runtimes
=no
10184 export_dynamic_flag_spec
=
10185 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10186 hardcode_automatic
=no
10188 hardcode_direct_absolute
=no
10189 hardcode_libdir_flag_spec
=
10190 hardcode_libdir_flag_spec_ld
=
10191 hardcode_libdir_separator
=
10192 hardcode_minus_L
=no
10193 hardcode_shlibpath_var
=unsupported
10195 link_all_deplibs
=unknown
10197 module_expsym_cmds
=
10198 old_archive_from_new_cmds
=
10199 old_archive_from_expsyms_cmds
=
10200 thread_safe_flag_spec
=
10201 whole_archive_flag_spec
=
10202 # include_expsyms should be a list of space-separated symbols to be *always*
10203 # included in the symbol list
10205 # exclude_expsyms can be an extended regexp of symbols to exclude
10206 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10207 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10208 # as well as any symbol that contains `d'.
10209 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10210 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10211 # platforms (ab)use it in PIC code, but their linkers get confused if
10212 # the symbol is explicitly referenced. Since portable code cannot
10213 # rely on this symbol name, it's probably fine to never include it in
10214 # preloaded symbol tables.
10215 # Exclude shared library initialization/finalization symbols.
10216 extract_expsyms_cmds
=
10219 cygwin
* | mingw
* | pw32
* | cegcc
*)
10220 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10221 # When not using gcc, we currently assume that we are using
10222 # Microsoft Visual C++.
10223 if test "$GCC" != yes; then
10228 # we just hope/assume this is gcc and not c89 (= MSVC++)
10238 # On some targets, GNU ld is compatible enough with the native linker
10239 # that we're better off using the native interface for both.
10240 lt_use_gnu_ld_interface
=no
10241 if test "$with_gnu_ld" = yes; then
10244 # The AIX port of GNU ld has always aspired to compatibility
10245 # with the native linker. However, as the warning in the GNU ld
10246 # block says, versions before 2.19.5* couldn't really create working
10247 # shared libraries, regardless of the interface used.
10248 case `$LD -v 2>&1` in
10249 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
10250 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
10251 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
10253 lt_use_gnu_ld_interface
=yes
10258 lt_use_gnu_ld_interface
=yes
10263 if test "$lt_use_gnu_ld_interface" = yes; then
10264 # If archive_cmds runs LD, not CC, wlarc should be empty
10267 # Set some defaults for GNU ld with shared library support. These
10268 # are reset later if shared libraries are not supported. Putting them
10269 # here allows them to be overridden if necessary.
10270 runpath_var
=LD_RUN_PATH
10271 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10272 export_dynamic_flag_spec
='${wl}--export-dynamic'
10273 # ancient GNU ld didn't support --whole-archive et. al.
10274 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
10275 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10277 whole_archive_flag_spec
=
10279 supports_anon_versioning
=no
10280 case `$LD -v 2>&1` in
10281 *GNU\ gold
*) supports_anon_versioning
=yes ;;
10282 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
10283 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
10284 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
10285 *\
2.11.
*) ;; # other 2.11 versions
10286 *) supports_anon_versioning
=yes ;;
10289 # See if GNU ld supports shared libraries.
10292 # On AIX/PPC, the GNU linker is very broken
10293 if test "$host_cpu" != ia64
; then
10297 *** Warning: the GNU linker, at least up to release 2.19, is reported
10298 *** to be unable to reliably create shared libraries on AIX.
10299 *** Therefore, libtool is disabling shared libraries support. If you
10300 *** really care for shared libraries, you may want to install binutils
10301 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10302 *** You will then need to restart the configuration process.
10311 # see comment about AmigaOS4 .so support
10312 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10313 archive_expsym_cmds
=''
10316 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)'
10317 hardcode_libdir_flag_spec
='-L$libdir'
10318 hardcode_minus_L
=yes
10324 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10325 allow_undefined_flag
=unsupported
10326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10327 # support --undefined. This deserves some investigation. FIXME
10328 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10334 cygwin
* | mingw
* | pw32
* | cegcc
*)
10335 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10336 # as there is no search path for DLLs.
10337 hardcode_libdir_flag_spec
='-L$libdir'
10338 export_dynamic_flag_spec
='${wl}--export-all-symbols'
10339 allow_undefined_flag
=unsupported
10340 always_export_symbols
=no
10341 enable_shared_with_static_runtimes
=yes
10342 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10344 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
10345 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10346 # If the export-symbols file already is a .def file (1st line
10347 # is EXPORTS), use it as is; otherwise, prepend...
10348 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10349 cp $export_symbols $output_objdir/$soname.def;
10351 echo EXPORTS > $output_objdir/$soname.def;
10352 cat $export_symbols >> $output_objdir/$soname.def;
10354 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10361 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10362 link_all_deplibs
=yes
10367 hardcode_shlibpath_var
=no
10368 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10369 export_dynamic_flag_spec
='${wl}-E'
10370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10371 # Instead, shared libraries are loaded at an image base (0x10000000 by
10372 # default) and relocated if they conflict, which is a slow very memory
10373 # consuming and fragmenting process. To avoid this, we pick a random,
10374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10376 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10377 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'
10380 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
10382 if test "$host_os" = linux-dietlibc
; then
10383 case $cc_basename in
10384 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
10387 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
10388 && test "$tmp_diet" = no
10390 tmp_addflag
=' $pic_flag'
10391 tmp_sharedflag
='-shared'
10392 case $cc_basename,$host_cpu in
10393 pgcc
*) # Portland Group C compiler
10394 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'
10395 tmp_addflag
=' $pic_flag'
10397 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10398 # Portland Group f77 and f90 compilers
10399 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'
10400 tmp_addflag
=' $pic_flag -Mnomain' ;;
10401 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10402 tmp_addflag
=' -i_dynamic' ;;
10403 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10404 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10405 ifc
* | ifort
*) # Intel Fortran compiler
10406 tmp_addflag
=' -nofor_main' ;;
10407 lf95
*) # Lahey Fortran 8.1
10408 whole_archive_flag_spec
=
10409 tmp_sharedflag
='--shared' ;;
10410 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10411 tmp_sharedflag
='-qmkshrobj'
10413 nvcc
*) # Cuda Compiler Driver 2.2
10414 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'
10415 compiler_needs_object
=yes
10418 case `$CC -V 2>&1 | sed 5q` in
10419 *Sun\ C
*) # Sun C 5.9
10420 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'
10421 compiler_needs_object
=yes
10422 tmp_sharedflag
='-G' ;;
10423 *Sun\ F
*) # Sun Fortran 8.3
10424 tmp_sharedflag
='-G' ;;
10426 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10428 if test "x$supports_anon_versioning" = xyes
; then
10429 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10431 echo "local: *; };" >> $output_objdir/$libname.ver~
10432 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10435 case $cc_basename in
10436 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10437 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10438 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10439 hardcode_libdir_flag_spec
=
10440 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
10441 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10442 if test "x$supports_anon_versioning" = xyes
; then
10443 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10445 echo "local: *; };" >> $output_objdir/$libname.ver~
10446 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10456 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10457 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10460 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10461 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10466 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10471 *** create shared libraries on Solaris systems. Therefore, libtool
10472 *** is disabling shared libraries support. We urge you to upgrade GNU
10473 *** binutils to release 2.9.1 or newer. Another option is to modify
10474 *** your PATH or compiler configuration so that the native linker is
10475 *** used, and then restart.
10478 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10479 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10480 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10486 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10487 case `$LD -v 2>&1` in
10488 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10492 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10493 *** reliably create shared libraries on SCO systems. Therefore, libtool
10494 *** is disabling shared libraries support. We urge you to upgrade GNU
10495 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10496 *** your PATH or compiler configuration so that the native linker is
10497 *** used, and then restart.
10502 # For security reasons, it is highly recommended that you always
10503 # use absolute paths for naming shared libraries, and exclude the
10504 # DT_RUNPATH tag from executables and libraries. But doing so
10505 # requires that you compile everything twice, which is a pain.
10506 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10507 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10508 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10509 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10518 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10520 hardcode_direct
=yes
10521 hardcode_shlibpath_var
=no
10525 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10526 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10527 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10534 if test "$ld_shlibs" = no
; then
10536 hardcode_libdir_flag_spec
=
10537 export_dynamic_flag_spec
=
10538 whole_archive_flag_spec
=
10541 # PORTME fill in a description of your system's linker (not GNU ld)
10544 allow_undefined_flag
=unsupported
10545 always_export_symbols
=yes
10546 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'
10547 # Note: this linker hardcodes the directories in LIBPATH if there
10548 # are no directories specified by -L.
10549 hardcode_minus_L
=yes
10550 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10551 # Neither direct hardcoding nor static linking is supported with a
10553 hardcode_direct
=unsupported
10558 if test "$host_cpu" = ia64
; then
10559 # On IA64, the linker does run time linking by default, so we don't
10560 # have to do anything special.
10561 aix_use_runtimelinking
=no
10562 exp_sym_flag
='-Bexport'
10565 # If we're using GNU nm, then we don't want the "-C" option.
10566 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10567 # Also, AIX nm treats weak defined symbols like other global
10568 # defined symbols, whereas GNU nm marks them as "W".
10569 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10570 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'
10572 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'
10574 aix_use_runtimelinking
=no
10576 # Test if we are trying to use run time linking or normal
10577 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10578 # need to do runtime linking.
10579 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10580 for ld_flag
in $LDFLAGS; do
10581 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10582 aix_use_runtimelinking
=yes
10589 exp_sym_flag
='-bexport'
10590 no_entry_flag
='-bnoentry'
10593 # When large executables or shared objects are built, AIX ld can
10594 # have problems creating the table of contents. If linking a library
10595 # or program results in "error TOC overflow" add -mminimal-toc to
10596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10600 hardcode_direct
=yes
10601 hardcode_direct_absolute
=yes
10602 hardcode_libdir_separator
=':'
10603 link_all_deplibs
=yes
10604 file_list_spec
='${wl}-f,'
10606 if test "$GCC" = yes; then
10607 case $host_os in aix4.
[012]|aix4.
[012].
*)
10608 # We only want to do this on AIX 4.2 and lower, the check
10609 # below for broken collect2 doesn't work under 4.3+
10610 collect2name
=`${CC} -print-prog-name=collect2`
10611 if test -f "$collect2name" &&
10612 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10614 # We have reworked collect2
10617 # We have old collect2
10618 hardcode_direct
=unsupported
10619 # It fails to find uninstalled libraries when the uninstalled
10620 # path is not listed in the libpath. Setting hardcode_minus_L
10621 # to unsupported forces relinking
10622 hardcode_minus_L
=yes
10623 hardcode_libdir_flag_spec
='-L$libdir'
10624 hardcode_libdir_separator
=
10628 shared_flag
='-shared'
10629 if test "$aix_use_runtimelinking" = yes; then
10630 shared_flag
="$shared_flag "'${wl}-G'
10634 if test "$host_cpu" = ia64
; then
10635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10636 # chokes on -Wl,-G. The following line is correct:
10639 if test "$aix_use_runtimelinking" = yes; then
10640 shared_flag
='${wl}-G'
10642 shared_flag
='${wl}-bM:SRE'
10647 export_dynamic_flag_spec
='${wl}-bexpall'
10648 # It seems that -bexpall does not export symbols beginning with
10649 # underscore (_), so it is better to generate a list of symbols to export.
10650 always_export_symbols
=yes
10651 if test "$aix_use_runtimelinking" = yes; then
10652 # Warning - without using the other runtime loading flags (-brtl),
10653 # -berok will link without error, but may produce a broken library.
10654 allow_undefined_flag
='-berok'
10655 # Determine the default libpath from the value encoded in an
10656 # empty executable.
10657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10668 if ac_fn_c_try_link
"$LINENO"; then :
10670 lt_aix_libpath_sed
='
10671 /Import File Strings/,/^$/ {
10677 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10678 # Check for a 64-bit object if we didn't find anything.
10679 if test -z "$aix_libpath"; then
10680 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10683 rm -f core conftest.err conftest.
$ac_objext \
10684 conftest
$ac_exeext conftest.
$ac_ext
10685 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10687 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10688 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"
10690 if test "$host_cpu" = ia64
; then
10691 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10692 allow_undefined_flag
="-z nodefs"
10693 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"
10695 # Determine the default libpath from the value encoded in an
10696 # empty executable.
10697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10708 if ac_fn_c_try_link
"$LINENO"; then :
10710 lt_aix_libpath_sed
='
10711 /Import File Strings/,/^$/ {
10717 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10718 # Check for a 64-bit object if we didn't find anything.
10719 if test -z "$aix_libpath"; then
10720 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10723 rm -f core conftest.err conftest.
$ac_objext \
10724 conftest
$ac_exeext conftest.
$ac_ext
10725 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10727 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10728 # Warning - without using the other run time loading flags,
10729 # -berok will link without error, but may produce a broken library.
10730 no_undefined_flag
=' ${wl}-bernotok'
10731 allow_undefined_flag
=' ${wl}-berok'
10732 if test "$with_gnu_ld" = yes; then
10733 # We only use this code for GNU lds that support --whole-archive.
10734 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10736 # Exported symbols can be pulled into shared objects from archives
10737 whole_archive_flag_spec
='$convenience'
10739 archive_cmds_need_lc
=yes
10740 # This is similar to how AIX traditionally builds its shared libraries.
10741 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'
10749 # see comment about AmigaOS4 .so support
10750 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10751 archive_expsym_cmds
=''
10754 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)'
10755 hardcode_libdir_flag_spec
='-L$libdir'
10756 hardcode_minus_L
=yes
10762 export_dynamic_flag_spec
=-rdynamic
10765 cygwin
* | mingw
* | pw32
* | cegcc
*)
10766 # When not using gcc, we currently assume that we are using
10767 # Microsoft Visual C++.
10768 # hardcode_libdir_flag_spec is actually meaningless, as there is
10769 # no search path for DLLs.
10770 hardcode_libdir_flag_spec
=' '
10771 allow_undefined_flag
=unsupported
10772 # Tell ltmain to make .lib files, not .a files.
10774 # Tell ltmain to make .dll files, not .so files.
10776 # FIXME: Setting linknames here is a bad hack.
10777 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10778 # The linker will automatically build a .lib file if we build a DLL.
10779 old_archive_from_new_cmds
='true'
10780 # FIXME: Should let the user specify the lib program.
10781 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10782 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10783 enable_shared_with_static_runtimes
=yes
10786 darwin
* | rhapsody
*)
10789 archive_cmds_need_lc
=no
10791 hardcode_automatic
=yes
10792 hardcode_shlibpath_var
=unsupported
10793 if test "$lt_cv_ld_force_load" = "yes"; then
10794 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\"`'
10796 whole_archive_flag_spec
=''
10798 link_all_deplibs
=yes
10799 allow_undefined_flag
="$_lt_dar_allow_undefined"
10800 case $cc_basename in
10801 ifort
*) _lt_dar_can_shared
=yes ;;
10802 *) _lt_dar_can_shared
=$GCC ;;
10804 if test "$_lt_dar_can_shared" = "yes"; then
10805 output_verbose_link_cmd
=func_echo_all
10806 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10807 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10808 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}"
10809 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}"
10818 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10819 hardcode_libdir_flag_spec
='-L$libdir'
10820 hardcode_shlibpath_var
=no
10823 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10824 # support. Future versions do this automatically, but an explicit c++rt0.o
10825 # does not break anything, and helps significantly (at the cost of a little
10828 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10829 hardcode_libdir_flag_spec
='-R$libdir'
10830 hardcode_direct
=yes
10831 hardcode_shlibpath_var
=no
10834 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10836 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10837 hardcode_direct
=yes
10838 hardcode_minus_L
=yes
10839 hardcode_shlibpath_var
=no
10842 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10843 freebsd
* | dragonfly
*)
10844 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10845 hardcode_libdir_flag_spec
='-R$libdir'
10846 hardcode_direct
=yes
10847 hardcode_shlibpath_var
=no
10851 if test "$GCC" = yes; then
10852 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'
10854 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'
10856 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10857 hardcode_libdir_separator
=:
10858 hardcode_direct
=yes
10860 # hardcode_minus_L: Not really in the search PATH,
10861 # but as the default location of the library.
10862 hardcode_minus_L
=yes
10863 export_dynamic_flag_spec
='${wl}-E'
10867 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10868 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10870 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10872 if test "$with_gnu_ld" = no
; then
10873 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10874 hardcode_libdir_flag_spec_ld
='+b $libdir'
10875 hardcode_libdir_separator
=:
10876 hardcode_direct
=yes
10877 hardcode_direct_absolute
=yes
10878 export_dynamic_flag_spec
='${wl}-E'
10879 # hardcode_minus_L: Not really in the search PATH,
10880 # but as the default location of the library.
10881 hardcode_minus_L
=yes
10886 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10889 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10892 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10895 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10901 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10904 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10908 # Older versions of the 11.00 compiler do not understand -b yet
10909 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10911 $as_echo_n "checking if $CC understands -b... " >&6; }
10912 if ${lt_cv_prog_compiler__b+:} false
; then :
10913 $as_echo_n "(cached) " >&6
10915 lt_cv_prog_compiler__b
=no
10916 save_LDFLAGS
="$LDFLAGS"
10917 LDFLAGS
="$LDFLAGS -b"
10918 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10919 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10920 # The linker can only warn and ignore the option if not recognized
10921 # So say no if there are warnings
10922 if test -s conftest.err
; then
10923 # Append any errors to the config.log.
10924 cat conftest.err
1>&5
10925 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10926 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10927 if diff conftest.exp conftest.er2
>/dev
/null
; then
10928 lt_cv_prog_compiler__b
=yes
10931 lt_cv_prog_compiler__b
=yes
10935 LDFLAGS
="$save_LDFLAGS"
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10939 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10941 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10942 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10944 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10950 if test "$with_gnu_ld" = no
; then
10951 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10952 hardcode_libdir_separator
=:
10957 hardcode_shlibpath_var
=no
10960 hardcode_direct
=yes
10961 hardcode_direct_absolute
=yes
10962 export_dynamic_flag_spec
='${wl}-E'
10964 # hardcode_minus_L: Not really in the search PATH,
10965 # but as the default location of the library.
10966 hardcode_minus_L
=yes
10972 irix5
* | irix6
* | nonstopux
*)
10973 if test "$GCC" = yes; then
10974 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'
10975 # Try to use the -exported_symbol ld option, if it does not
10976 # work, assume that -exports_file does not work either and
10977 # implicitly export all symbols.
10978 save_LDFLAGS
="$LDFLAGS"
10979 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10984 if ac_fn_c_try_link
"$LINENO"; then :
10985 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'
10988 rm -f core conftest.err conftest.
$ac_objext \
10989 conftest
$ac_exeext conftest.
$ac_ext
10990 LDFLAGS
="$save_LDFLAGS"
10992 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'
10993 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'
10995 archive_cmds_need_lc
='no'
10996 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10997 hardcode_libdir_separator
=:
10999 link_all_deplibs
=yes
11003 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11004 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11006 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11008 hardcode_libdir_flag_spec
='-R$libdir'
11009 hardcode_direct
=yes
11010 hardcode_shlibpath_var
=no
11014 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11015 hardcode_direct
=yes
11016 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11017 hardcode_libdir_separator
=:
11018 hardcode_shlibpath_var
=no
11025 if test -f /usr
/libexec
/ld.so
; then
11026 hardcode_direct
=yes
11027 hardcode_shlibpath_var
=no
11028 hardcode_direct_absolute
=yes
11029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11030 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11032 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11033 export_dynamic_flag_spec
='${wl}-E'
11036 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11037 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11038 hardcode_libdir_flag_spec
='-R$libdir'
11041 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11042 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11052 hardcode_libdir_flag_spec
='-L$libdir'
11053 hardcode_minus_L
=yes
11054 allow_undefined_flag
=unsupported
11055 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'
11056 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11060 if test "$GCC" = yes; then
11061 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11062 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'
11064 allow_undefined_flag
=' -expect_unresolved \*'
11065 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'
11067 archive_cmds_need_lc
='no'
11068 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11069 hardcode_libdir_separator
=:
11072 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11073 if test "$GCC" = yes; then
11074 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11075 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'
11076 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11078 allow_undefined_flag
=' -expect_unresolved \*'
11079 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'
11080 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~
11081 $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'
11083 # Both c and cxx compiler support -rpath directly
11084 hardcode_libdir_flag_spec
='-rpath $libdir'
11086 archive_cmds_need_lc
='no'
11087 hardcode_libdir_separator
=:
11091 no_undefined_flag
=' -z defs'
11092 if test "$GCC" = yes; then
11094 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11095 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11096 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11098 case `$CC -V 2>&1` in
11101 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11102 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11107 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11108 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11109 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11113 hardcode_libdir_flag_spec
='-R$libdir'
11114 hardcode_shlibpath_var
=no
11116 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11118 # The compiler driver will combine and reorder linker options,
11119 # but understands `-z linker_flag'. GCC discards it without `$wl',
11120 # but is careful enough not to reorder.
11121 # Supported since Solaris 2.6 (maybe 2.5.1?)
11122 if test "$GCC" = yes; then
11123 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11125 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11129 link_all_deplibs
=yes
11133 if test "x$host_vendor" = xsequent
; then
11134 # Use $CC to link under sequent, because it throws in some extra .o
11135 # files that make .init and .fini sections work.
11136 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11138 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11140 hardcode_libdir_flag_spec
='-L$libdir'
11141 hardcode_direct
=yes
11142 hardcode_minus_L
=yes
11143 hardcode_shlibpath_var
=no
11147 case $host_vendor in
11149 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11150 hardcode_direct
=yes # is this really true???
11153 ## LD is ld it makes a PLAMLIB
11154 ## CC just makes a GrossModule.
11155 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11156 reload_cmds
='$CC -r -o $output$reload_objs'
11160 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11161 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11164 runpath_var
='LD_RUN_PATH'
11165 hardcode_shlibpath_var
=no
11169 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11170 hardcode_shlibpath_var
=no
11171 export_dynamic_flag_spec
='-Bexport'
11175 if test -d /usr
/nec
; then
11176 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11177 hardcode_shlibpath_var
=no
11178 runpath_var
=LD_RUN_PATH
11179 hardcode_runpath_var
=yes
11184 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11185 no_undefined_flag
='${wl}-z,text'
11186 archive_cmds_need_lc
=no
11187 hardcode_shlibpath_var
=no
11188 runpath_var
='LD_RUN_PATH'
11190 if test "$GCC" = yes; then
11191 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11192 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11194 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11195 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11199 sysv5
* | sco3.2v5
* | sco5v6
*)
11200 # Note: We can NOT use -z defs as we might desire, because we do not
11201 # link with -lc, and that would cause any symbols used from libc to
11202 # always be unresolved, which means just about no library would
11203 # ever link correctly. If we're not using GNU ld we use -z text
11204 # though, which does catch some bad symbols but isn't as heavy-handed
11206 no_undefined_flag
='${wl}-z,text'
11207 allow_undefined_flag
='${wl}-z,nodefs'
11208 archive_cmds_need_lc
=no
11209 hardcode_shlibpath_var
=no
11210 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
11211 hardcode_libdir_separator
=':'
11212 link_all_deplibs
=yes
11213 export_dynamic_flag_spec
='${wl}-Bexport'
11214 runpath_var
='LD_RUN_PATH'
11216 if test "$GCC" = yes; then
11217 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11218 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11220 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11221 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11226 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11227 hardcode_libdir_flag_spec
='-L$libdir'
11228 hardcode_shlibpath_var
=no
11236 if test x
$host_vendor = xsni
; then
11238 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11239 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11246 $as_echo "$ld_shlibs" >&6; }
11247 test "$ld_shlibs" = no
&& can_build_shared
=no
11249 with_gnu_ld
=$with_gnu_ld
11266 # Do we need to explicitly link libc?
11268 case "x$archive_cmds_need_lc" in
11270 # Assume -lc should be added
11271 archive_cmds_need_lc
=yes
11273 if test "$enable_shared" = yes && test "$GCC" = yes; then
11274 case $archive_cmds in
11276 # FIXME: we may have to deal with multi-command sequences.
11279 # Test whether the compiler implicitly links with -lc since on some
11280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11281 # to ld, don't add -lc before -lgcc.
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11283 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11284 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
11285 $as_echo_n "(cached) " >&6
11288 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11291 (eval $ac_compile) 2>&5
11293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11294 test $ac_status = 0; } 2>conftest.err
; then
11297 libobjs
=conftest.
$ac_objext
11299 wl
=$lt_prog_compiler_wl
11300 pic_flag
=$lt_prog_compiler_pic
11306 lt_save_allow_undefined_flag
=$allow_undefined_flag
11307 allow_undefined_flag
=
11308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11309 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11312 test $ac_status = 0; }
11314 lt_cv_archive_cmds_need_lc
=no
11316 lt_cv_archive_cmds_need_lc
=yes
11318 allow_undefined_flag
=$lt_save_allow_undefined_flag
11320 cat conftest.err
1>&5
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11326 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11327 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11491 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11493 if test "$GCC" = yes; then
11495 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11496 *) lt_awk_arg
="/^libraries:/" ;;
11499 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11500 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11502 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11503 case $lt_search_path_spec in
11505 # if the path contains ";" then we assume it to be the separator
11506 # otherwise default to the standard path separator (i.e. ":") - it is
11507 # assumed that no part of a normal pathname contains ";" but that should
11508 # okay in the real world where ";" in dirpaths is itself problematic.
11509 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11512 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11515 # Ok, now we have the path, separated by spaces, we can step through it
11516 # and add multilib dir if necessary.
11517 lt_tmp_lt_search_path_spec
=
11518 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11519 for lt_sys_path
in $lt_search_path_spec; do
11520 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11521 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11523 test -d "$lt_sys_path" && \
11524 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11527 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11528 BEGIN {RS=" "; FS="/|\n";} {
11531 for (lt_i = NF; lt_i > 0; lt_i--) {
11532 if ($lt_i != "" && $lt_i != ".") {
11533 if ($lt_i == "..") {
11536 if (lt_count == 0) {
11537 lt_foo="/" $lt_i lt_foo;
11544 if (lt_foo != "") { lt_freq[lt_foo]++; }
11545 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11547 # AWK program above erroneously prepends '/' to C:/dos/paths
11550 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11551 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11553 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11555 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11557 library_names_spec
=
11558 libname_spec
='lib$name'
11562 postuninstall_cmds
=
11566 shlibpath_overrides_runpath
=unknown
11568 dynamic_linker
="$host_os ld.so"
11569 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11570 need_lib_prefix
=unknown
11571 hardcode_into_libs
=no
11573 # when you set need_version to no, make sure it does not cause -set_version
11574 # flags to be left without arguments
11575 need_version
=unknown
11580 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11581 shlibpath_var
=LIBPATH
11583 # AIX 3 has no versioning support, so we append a major version to the name.
11584 soname_spec
='${libname}${release}${shared_ext}$major'
11591 hardcode_into_libs
=yes
11592 if test "$host_cpu" = ia64
; then
11593 # AIX 5 supports IA64
11594 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11595 shlibpath_var
=LD_LIBRARY_PATH
11597 # With GCC up to 2.95.x, collect2 would create an import file
11598 # for dependence libraries. The import file would start with
11599 # the line `#! .'. This would cause the generated library to
11600 # depend on `.', always an invalid library. This was fixed in
11601 # development snapshots of GCC prior to 3.0.
11603 aix4 | aix4.
[01] | aix4.
[01].
*)
11604 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11606 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11609 can_build_shared
=no
11613 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11614 # soname into executable. Probably we can add versioning support to
11615 # collect2, so additional links can be useful in future.
11616 if test "$aix_use_runtimelinking" = yes; then
11617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11618 # instead of lib<name>.a to let people know that these are not
11619 # typical AIX shared libraries.
11620 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11622 # We preserve .a as extension for shared libraries through AIX4.2
11623 # and later when we are not doing run time linking.
11624 library_names_spec
='${libname}${release}.a $libname.a'
11625 soname_spec
='${libname}${release}${shared_ext}$major'
11627 shlibpath_var
=LIBPATH
11634 # Since July 2007 AmigaOS4 officially supports .so libraries.
11635 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 library_names_spec
='$libname.ixlibrary $libname.a'
11640 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11641 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'
11647 library_names_spec
='${libname}${shared_ext}'
11648 dynamic_linker
="$host_os ld.so"
11649 shlibpath_var
=LIBRARY_PATH
11655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656 soname_spec
='${libname}${release}${shared_ext}$major'
11657 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11658 shlibpath_var
=LD_LIBRARY_PATH
11659 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11660 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11661 # the default ld.so.conf also contains /usr/contrib/lib and
11662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11663 # libtool to hard-code these into programs
11666 cygwin
* | mingw
* | pw32
* | cegcc
*)
11667 version_type
=windows
11672 case $GCC,$host_os in
11673 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11674 library_names_spec
='$libname.dll.a'
11675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11676 postinstall_cmds
='base_file=`basename \${file}`~
11677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11678 dldir=$destdir/`dirname \$dlpath`~
11679 test -d \$dldir || mkdir -p \$dldir~
11680 $install_prog $dir/$dlname \$dldir/$dlname~
11681 chmod a+x \$dldir/$dlname~
11682 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11683 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11685 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11686 dlpath=$dir/\$dldll~
11688 shlibpath_overrides_runpath
=yes
11692 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11693 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11695 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11698 # MinGW DLLs use traditional 'lib' prefix
11699 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11702 # pw32 DLLs use 'pw' prefix rather than 'lib'
11703 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11709 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11712 dynamic_linker
='Win32 ld.exe'
11713 # FIXME: first we should search . and the directory the executable is in
11717 darwin
* | rhapsody
*)
11718 dynamic_linker
="$host_os dyld"
11719 version_type
=darwin
11722 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11723 soname_spec
='${libname}${release}${major}$shared_ext'
11724 shlibpath_overrides_runpath
=yes
11725 shlibpath_var
=DYLD_LIBRARY_PATH
11726 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11728 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11729 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11737 soname_spec
='${libname}${release}${shared_ext}$major'
11738 shlibpath_var
=LD_LIBRARY_PATH
11741 freebsd
* | dragonfly
*)
11742 # DragonFly does not have aout. When/if they implement a new
11743 # versioning mechanism, adjust this.
11744 if test -x /usr
/bin
/objformat
; then
11745 objformat
=`/usr/bin/objformat`
11748 freebsd
[23].
*) objformat
=aout
;;
11749 *) objformat
=elf
;;
11752 version_type
=freebsd-
$objformat
11753 case $version_type in
11755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11760 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11764 shlibpath_var
=LD_LIBRARY_PATH
11767 shlibpath_overrides_runpath
=yes
11769 freebsd3.
[01]* | freebsdelf3.
[01]*)
11770 shlibpath_overrides_runpath
=yes
11771 hardcode_into_libs
=yes
11773 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11774 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11775 shlibpath_overrides_runpath
=no
11776 hardcode_into_libs
=yes
11778 *) # from 4.6 on, and DragonFly
11779 shlibpath_overrides_runpath
=yes
11780 hardcode_into_libs
=yes
11789 dynamic_linker
="$host_os runtime_loader"
11790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11791 soname_spec
='${libname}${release}${shared_ext}$major'
11792 shlibpath_var
=LIBRARY_PATH
11793 shlibpath_overrides_runpath
=yes
11794 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11795 hardcode_into_libs
=yes
11798 hpux9
* | hpux10
* | hpux11
*)
11799 # Give a soname corresponding to the major version so that dld.sl refuses to
11800 # link against other versions.
11807 hardcode_into_libs
=yes
11808 dynamic_linker
="$host_os dld.so"
11809 shlibpath_var
=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec
='${libname}${release}${shared_ext}$major'
11813 if test "X$HPUX_IA64_MODE" = X32
; then
11814 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11816 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11818 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11822 hardcode_into_libs
=yes
11823 dynamic_linker
="$host_os dld.sl"
11824 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11825 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827 soname_spec
='${libname}${release}${shared_ext}$major'
11828 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11829 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11833 dynamic_linker
="$host_os dld.sl"
11834 shlibpath_var
=SHLIB_PATH
11835 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837 soname_spec
='${libname}${release}${shared_ext}$major'
11840 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11841 postinstall_cmds
='chmod 555 $lib'
11842 # or fails outright, so override atomically:
11843 install_override_mode
=555
11850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11851 soname_spec
='${libname}${release}${shared_ext}$major'
11852 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11853 shlibpath_var
=LD_LIBRARY_PATH
11854 shlibpath_overrides_runpath
=no
11855 hardcode_into_libs
=yes
11858 irix5
* | irix6
* | nonstopux
*)
11860 nonstopux
*) version_type
=nonstopux
;;
11862 if test "$lt_cv_prog_gnu_ld" = yes; then
11870 soname_spec
='${libname}${release}${shared_ext}$major'
11871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11873 irix5
* | nonstopux
*)
11874 libsuff
= shlibsuff
=
11877 case $LD in # libtool.m4 will add one of these switches to LD
11878 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11879 libsuff
= shlibsuff
= libmagic
=32-bit;;
11880 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11881 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11882 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11883 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11884 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11888 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11889 shlibpath_overrides_runpath
=no
11890 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11891 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11892 hardcode_into_libs
=yes
11895 # No shared lib support for Linux oldld, aout, or coff.
11896 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11900 # This must be Linux ELF.
11902 # uclinux* changes (here and below) have been submitted to the libtool
11903 # project, but have not yet been accepted: they are GCC-local changes
11904 # for the time being. (See
11905 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11906 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
11910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911 soname_spec
='${libname}${release}${shared_ext}$major'
11912 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11913 shlibpath_var
=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath
=no
11916 # Some binutils ld are patched to set DT_RUNPATH
11917 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11918 $as_echo_n "(cached) " >&6
11920 lt_cv_shlibpath_overrides_runpath
=no
11921 save_LDFLAGS
=$LDFLAGS
11922 save_libdir
=$libdir
11923 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11924 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11936 if ac_fn_c_try_link
"$LINENO"; then :
11937 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11938 lt_cv_shlibpath_overrides_runpath
=yes
11941 rm -f core conftest.err conftest.
$ac_objext \
11942 conftest
$ac_exeext conftest.
$ac_ext
11943 LDFLAGS
=$save_LDFLAGS
11944 libdir
=$save_libdir
11948 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11950 # This implies no fast_install, which is unacceptable.
11951 # Some rework will be needed to allow for fast_install
11952 # before this can be enabled.
11953 hardcode_into_libs
=yes
11955 # Append ld.so.conf contents to the search path
11956 if test -f /etc
/ld.so.conf
; then
11957 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' ' '`
11958 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11961 # We used to test for /lib/ld.so.1 and disable shared libraries on
11962 # powerpc, because MkLinux only supported shared libraries with the
11963 # GNU dynamic linker. Since this was broken with cross compilers,
11964 # most powerpc-linux boxes support dynamic linking these days and
11965 # people can always --disable-shared, the test was removed, and we
11966 # assume the GNU/Linux dynamic linker is in use.
11967 dynamic_linker
='GNU/Linux ld.so'
11974 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11976 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11977 dynamic_linker
='NetBSD (a.out) ld.so'
11979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11980 soname_spec
='${libname}${release}${shared_ext}$major'
11981 dynamic_linker
='NetBSD ld.elf_so'
11983 shlibpath_var
=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath
=yes
11985 hardcode_into_libs
=yes
11990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991 shlibpath_var
=LD_LIBRARY_PATH
11992 shlibpath_overrides_runpath
=yes
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 shlibpath_var
=LD_LIBRARY_PATH
12002 shlibpath_overrides_runpath
=no
12003 hardcode_into_libs
=yes
12004 dynamic_linker
='ldqnx.so'
12009 sys_lib_dlsearch_path_spec
="/usr/lib"
12011 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12013 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12014 *) need_version
=no
;;
12016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12017 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12018 shlibpath_var
=LD_LIBRARY_PATH
12019 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12021 openbsd2.
[89] | openbsd2.
[89].
*)
12022 shlibpath_overrides_runpath
=no
12025 shlibpath_overrides_runpath
=yes
12029 shlibpath_overrides_runpath
=yes
12034 libname_spec
='$name'
12037 library_names_spec
='$libname${shared_ext} $libname.a'
12038 dynamic_linker
='OS/2 ld.exe'
12039 shlibpath_var
=LIBPATH
12042 osf3
* | osf4
* | osf5
*)
12046 soname_spec
='${libname}${release}${shared_ext}$major'
12047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048 shlibpath_var
=LD_LIBRARY_PATH
12049 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12050 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec
='${libname}${release}${shared_ext}$major'
12063 shlibpath_var
=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath
=yes
12065 hardcode_into_libs
=yes
12066 # ldd complains unless libraries are executable
12067 postinstall_cmds
='chmod +x $lib'
12072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12073 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12074 shlibpath_var
=LD_LIBRARY_PATH
12075 shlibpath_overrides_runpath
=yes
12076 if test "$with_gnu_ld" = yes; then
12084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12085 soname_spec
='${libname}${release}${shared_ext}$major'
12086 shlibpath_var
=LD_LIBRARY_PATH
12087 case $host_vendor in
12089 shlibpath_overrides_runpath
=no
12091 runpath_var
=LD_RUN_PATH
12099 shlibpath_overrides_runpath
=no
12100 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12106 if test -d /usr
/nec
;then
12108 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12109 soname_spec
='$libname${shared_ext}.$major'
12110 shlibpath_var
=LD_LIBRARY_PATH
12114 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12115 version_type
=freebsd-elf
12118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12119 soname_spec
='${libname}${release}${shared_ext}$major'
12120 shlibpath_var
=LD_LIBRARY_PATH
12121 shlibpath_overrides_runpath
=yes
12122 hardcode_into_libs
=yes
12123 if test "$with_gnu_ld" = yes; then
12124 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12126 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12129 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12133 sys_lib_dlsearch_path_spec
='/usr/lib'
12137 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142 shlibpath_var
=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath
=no
12144 hardcode_into_libs
=yes
12149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150 soname_spec
='${libname}${release}${shared_ext}$major'
12151 shlibpath_var
=LD_LIBRARY_PATH
12154 # Shared libraries for VwWorks, >= 7 only at this stage
12155 # and (fpic) still incompatible with "large" code models
12156 # in a few configurations. Only for RTP mode in any case,
12157 # and upon explicit request at configure time.
12160 case ${with_multisubdir}-${enable_shared} in
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
="$host_os module_loader"
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12178 $as_echo "$dynamic_linker" >&6; }
12179 test "$dynamic_linker" = no
&& can_build_shared
=no
12181 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12182 if test "$GCC" = yes; then
12183 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12187 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12189 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12190 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12285 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12287 if test -n "$hardcode_libdir_flag_spec" ||
12288 test -n "$runpath_var" ||
12289 test "X$hardcode_automatic" = "Xyes" ; then
12291 # We can hardcode non-existent directories.
12292 if test "$hardcode_direct" != no
&&
12293 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12294 # have to relink, otherwise we might link with an installed library
12295 # when we should be linking with a yet-to-be-installed one
12296 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12297 test "$hardcode_minus_L" != no
; then
12298 # Linking always hardcodes the temporary library directory.
12299 hardcode_action
=relink
12301 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12302 hardcode_action
=immediate
12305 # We cannot hardcode anything, or else we can only hardcode existing
12307 hardcode_action
=unsupported
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12310 $as_echo "$hardcode_action" >&6; }
12312 if test "$hardcode_action" = relink ||
12313 test "$inherit_rpath" = yes; then
12314 # Fast installation is not supported
12315 enable_fast_install
=no
12316 elif test "$shlibpath_overrides_runpath" = yes ||
12317 test "$enable_shared" = no
; then
12318 # Fast installation is not necessary
12319 enable_fast_install
=needless
12327 if test "x$enable_dlopen" != xyes
; then
12328 enable_dlopen
=unknown
12329 enable_dlopen_self
=unknown
12330 enable_dlopen_self_static
=unknown
12337 lt_cv_dlopen
="load_add_on"
12339 lt_cv_dlopen_self
=yes
12342 mingw
* | pw32
* | cegcc
*)
12343 lt_cv_dlopen
="LoadLibrary"
12348 lt_cv_dlopen
="dlopen"
12353 # if libdl is installed we need to link against it
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12355 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12356 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12357 $as_echo_n "(cached) " >&6
12359 ac_check_lib_save_LIBS
=$LIBS
12361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12379 if ac_fn_c_try_link
"$LINENO"; then :
12380 ac_cv_lib_dl_dlopen
=yes
12382 ac_cv_lib_dl_dlopen
=no
12384 rm -f core conftest.err conftest.
$ac_objext \
12385 conftest
$ac_exeext conftest.
$ac_ext
12386 LIBS
=$ac_check_lib_save_LIBS
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12389 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12390 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12391 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12394 lt_cv_dlopen
="dyld"
12396 lt_cv_dlopen_self
=yes
12403 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12404 if test "x$ac_cv_func_shl_load" = xyes
; then :
12405 lt_cv_dlopen
="shl_load"
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12408 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12409 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12410 $as_echo_n "(cached) " >&6
12412 ac_check_lib_save_LIBS
=$LIBS
12414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12417 /* Override any GCC internal prototype to avoid an error.
12418 Use char because int might match the return type of a GCC
12419 builtin and then its argument prototype would still apply. */
12427 return shl_load ();
12432 if ac_fn_c_try_link
"$LINENO"; then :
12433 ac_cv_lib_dld_shl_load
=yes
12435 ac_cv_lib_dld_shl_load
=no
12437 rm -f core conftest.err conftest.
$ac_objext \
12438 conftest
$ac_exeext conftest.
$ac_ext
12439 LIBS
=$ac_check_lib_save_LIBS
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12442 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12443 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12444 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
12446 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12447 if test "x$ac_cv_func_dlopen" = xyes
; then :
12448 lt_cv_dlopen
="dlopen"
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12451 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12452 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12453 $as_echo_n "(cached) " >&6
12455 ac_check_lib_save_LIBS
=$LIBS
12457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
12475 if ac_fn_c_try_link
"$LINENO"; then :
12476 ac_cv_lib_dl_dlopen
=yes
12478 ac_cv_lib_dl_dlopen
=no
12480 rm -f core conftest.err conftest.
$ac_objext \
12481 conftest
$ac_exeext conftest.
$ac_ext
12482 LIBS
=$ac_check_lib_save_LIBS
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12485 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12486 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12487 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12490 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12491 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12492 $as_echo_n "(cached) " >&6
12494 ac_check_lib_save_LIBS
=$LIBS
12495 LIBS
="-lsvld $LIBS"
12496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12499 /* Override any GCC internal prototype to avoid an error.
12500 Use char because int might match the return type of a GCC
12501 builtin and then its argument prototype would still apply. */
12514 if ac_fn_c_try_link
"$LINENO"; then :
12515 ac_cv_lib_svld_dlopen
=yes
12517 ac_cv_lib_svld_dlopen
=no
12519 rm -f core conftest.err conftest.
$ac_objext \
12520 conftest
$ac_exeext conftest.
$ac_ext
12521 LIBS
=$ac_check_lib_save_LIBS
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12524 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12525 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12526 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12529 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12530 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12531 $as_echo_n "(cached) " >&6
12533 ac_check_lib_save_LIBS
=$LIBS
12535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12548 return dld_link ();
12553 if ac_fn_c_try_link
"$LINENO"; then :
12554 ac_cv_lib_dld_dld_link
=yes
12556 ac_cv_lib_dld_dld_link
=no
12558 rm -f core conftest.err conftest.
$ac_objext \
12559 conftest
$ac_exeext conftest.
$ac_ext
12560 LIBS
=$ac_check_lib_save_LIBS
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12563 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12564 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12565 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12586 if test "x$lt_cv_dlopen" != xno
; then
12592 case $lt_cv_dlopen in
12594 save_CPPFLAGS
="$CPPFLAGS"
12595 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12597 save_LDFLAGS
="$LDFLAGS"
12598 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12601 LIBS
="$lt_cv_dlopen_libs $LIBS"
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12604 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12605 if ${lt_cv_dlopen_self+:} false
; then :
12606 $as_echo_n "(cached) " >&6
12608 if test "$cross_compiling" = yes; then :
12609 lt_cv_dlopen_self
=cross
12611 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12612 lt_status
=$lt_dlunknown
12613 cat > conftest.
$ac_ext <<_LT_EOF
12614 #line 12614 "configure"
12615 #include "confdefs.h"
12624 # define LT_DLGLOBAL RTLD_GLOBAL
12627 # define LT_DLGLOBAL DL_GLOBAL
12629 # define LT_DLGLOBAL 0
12633 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12634 find out it does not work in some platform. */
12635 #ifndef LT_DLLAZY_OR_NOW
12637 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12640 # define LT_DLLAZY_OR_NOW DL_LAZY
12643 # define LT_DLLAZY_OR_NOW RTLD_NOW
12646 # define LT_DLLAZY_OR_NOW DL_NOW
12648 # define LT_DLLAZY_OR_NOW 0
12655 /* When -fvisbility=hidden is used, assume the code has been annotated
12656 correspondingly for the symbols needed. */
12657 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12658 void fnord () __attribute__((visibility("default")));
12661 void fnord () { int i=42; }
12664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12665 int status = $lt_dlunknown;
12669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12672 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12673 else puts (dlerror ());
12675 /* dlclose (self); */
12683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12684 (eval $ac_link) 2>&5
12686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12687 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12688 (.
/conftest
; exit; ) >&5 2>/dev
/null
12690 case x
$lt_status in
12691 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12692 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12693 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12696 # compilation failed
12697 lt_cv_dlopen_self
=no
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12705 $as_echo "$lt_cv_dlopen_self" >&6; }
12707 if test "x$lt_cv_dlopen_self" = xyes
; then
12708 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12710 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12711 if ${lt_cv_dlopen_self_static+:} false
; then :
12712 $as_echo_n "(cached) " >&6
12714 if test "$cross_compiling" = yes; then :
12715 lt_cv_dlopen_self_static
=cross
12717 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12718 lt_status
=$lt_dlunknown
12719 cat > conftest.
$ac_ext <<_LT_EOF
12720 #line 12720 "configure"
12721 #include "confdefs.h"
12730 # define LT_DLGLOBAL RTLD_GLOBAL
12733 # define LT_DLGLOBAL DL_GLOBAL
12735 # define LT_DLGLOBAL 0
12739 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12740 find out it does not work in some platform. */
12741 #ifndef LT_DLLAZY_OR_NOW
12743 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12746 # define LT_DLLAZY_OR_NOW DL_LAZY
12749 # define LT_DLLAZY_OR_NOW RTLD_NOW
12752 # define LT_DLLAZY_OR_NOW DL_NOW
12754 # define LT_DLLAZY_OR_NOW 0
12761 /* When -fvisbility=hidden is used, assume the code has been annotated
12762 correspondingly for the symbols needed. */
12763 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12764 void fnord () __attribute__((visibility("default")));
12767 void fnord () { int i=42; }
12770 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12771 int status = $lt_dlunknown;
12775 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12778 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12779 else puts (dlerror ());
12781 /* dlclose (self); */
12789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12790 (eval $ac_link) 2>&5
12792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12793 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12794 (.
/conftest
; exit; ) >&5 2>/dev
/null
12796 case x
$lt_status in
12797 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12798 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12799 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12802 # compilation failed
12803 lt_cv_dlopen_self_static
=no
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12811 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12814 CPPFLAGS
="$save_CPPFLAGS"
12815 LDFLAGS
="$save_LDFLAGS"
12820 case $lt_cv_dlopen_self in
12821 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12822 *) enable_dlopen_self
=unknown
;;
12825 case $lt_cv_dlopen_self_static in
12826 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12827 *) enable_dlopen_self_static
=unknown
;;
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12850 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12851 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12852 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12853 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 $as_echo "yes" >&6; }
12857 # FIXME - insert some real tests, host_os isn't really good enough
12860 if test -n "$STRIP" ; then
12861 striplib
="$STRIP -x"
12862 old_striplib
="$STRIP -S"
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864 $as_echo "yes" >&6; }
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12888 # Report which library types will actually be built
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12890 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12892 $as_echo "$can_build_shared" >&6; }
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12895 $as_echo_n "checking whether to build shared libraries... " >&6; }
12896 test "$can_build_shared" = "no" && enable_shared
=no
12898 # On AIX, shared libraries and static libraries use the same namespace, and
12899 # are all built from PIC.
12902 test "$enable_shared" = yes && enable_static
=no
12903 if test -n "$RANLIB"; then
12904 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12905 postinstall_cmds
='$RANLIB $lib'
12910 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12911 test "$enable_shared" = yes && enable_static
=no
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12916 $as_echo "$enable_shared" >&6; }
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12919 $as_echo_n "checking whether to build static libraries... " >&6; }
12920 # Make sure either enable_shared or enable_static is yes.
12921 test "$enable_shared" = yes || enable_static
=yes
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12923 $as_echo "$enable_static" >&6; }
12930 ac_cpp
='$CPP $CPPFLAGS'
12931 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12949 ac_config_commands
="$ac_config_commands libtool"
12954 # Only expand once:
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12959 $as_echo_n "checking for library containing bind... " >&6; }
12960 if ${ac_cv_search_bind+:} false
; then :
12961 $as_echo_n "(cached) " >&6
12963 ac_func_search_save_LIBS
=$LIBS
12964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12967 /* Override any GCC internal prototype to avoid an error.
12968 Use char because int might match the return type of a GCC
12969 builtin and then its argument prototype would still apply. */
12982 for ac_lib
in '' socket
; do
12983 if test -z "$ac_lib"; then
12984 ac_res
="none required"
12987 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12989 if ac_fn_c_try_link
"$LINENO"; then :
12990 ac_cv_search_bind
=$ac_res
12992 rm -f core conftest.err conftest.
$ac_objext \
12994 if ${ac_cv_search_bind+:} false
; then :
12998 if ${ac_cv_search_bind+:} false
; then :
13001 ac_cv_search_bind
=no
13003 rm conftest.
$ac_ext
13004 LIBS
=$ac_func_search_save_LIBS
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
13007 $as_echo "$ac_cv_search_bind" >&6; }
13008 ac_res
=$ac_cv_search_bind
13009 if test "$ac_res" != no
; then :
13010 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13015 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13016 if ${ac_cv_search_gethostbyname+:} false
; then :
13017 $as_echo_n "(cached) " >&6
13019 ac_func_search_save_LIBS
=$LIBS
13020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13023 /* Override any GCC internal prototype to avoid an error.
13024 Use char because int might match the return type of a GCC
13025 builtin and then its argument prototype would still apply. */
13029 char gethostbyname ();
13033 return gethostbyname ();
13038 for ac_lib
in '' nsl
; do
13039 if test -z "$ac_lib"; then
13040 ac_res
="none required"
13043 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13045 if ac_fn_c_try_link
"$LINENO"; then :
13046 ac_cv_search_gethostbyname
=$ac_res
13048 rm -f core conftest.err conftest.
$ac_objext \
13050 if ${ac_cv_search_gethostbyname+:} false
; then :
13054 if ${ac_cv_search_gethostbyname+:} false
; then :
13057 ac_cv_search_gethostbyname
=no
13059 rm conftest.
$ac_ext
13060 LIBS
=$ac_func_search_save_LIBS
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13063 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13064 ac_res
=$ac_cv_search_gethostbyname
13065 if test "$ac_res" != no
; then :
13066 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
13071 $as_echo_n "checking for library containing fabs... " >&6; }
13072 if ${ac_cv_search_fabs+:} false
; then :
13073 $as_echo_n "(cached) " >&6
13075 ac_func_search_save_LIBS
=$LIBS
13076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13094 for ac_lib
in '' m
; do
13095 if test -z "$ac_lib"; then
13096 ac_res
="none required"
13099 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13101 if ac_fn_c_try_link
"$LINENO"; then :
13102 ac_cv_search_fabs
=$ac_res
13104 rm -f core conftest.err conftest.
$ac_objext \
13106 if ${ac_cv_search_fabs+:} false
; then :
13110 if ${ac_cv_search_fabs+:} false
; then :
13113 ac_cv_search_fabs
=no
13115 rm conftest.
$ac_ext
13116 LIBS
=$ac_func_search_save_LIBS
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
13119 $as_echo "$ac_cv_search_fabs" >&6; }
13120 ac_res
=$ac_cv_search_fabs
13121 if test "$ac_res" != no
; then :
13122 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
13127 $as_echo_n "checking for library containing log2... " >&6; }
13128 if ${ac_cv_search_log2+:} false
; then :
13129 $as_echo_n "(cached) " >&6
13131 ac_func_search_save_LIBS
=$LIBS
13132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13150 for ac_lib
in '' m
; do
13151 if test -z "$ac_lib"; then
13152 ac_res
="none required"
13155 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13157 if ac_fn_c_try_link
"$LINENO"; then :
13158 ac_cv_search_log2
=$ac_res
13160 rm -f core conftest.err conftest.
$ac_objext \
13162 if ${ac_cv_search_log2+:} false
; then :
13166 if ${ac_cv_search_log2+:} false
; then :
13169 ac_cv_search_log2
=no
13171 rm conftest.
$ac_ext
13172 LIBS
=$ac_func_search_save_LIBS
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
13175 $as_echo "$ac_cv_search_log2" >&6; }
13176 ac_res
=$ac_cv_search_log2
13177 if test "$ac_res" != no
; then :
13178 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13184 $as_echo_n "checking for library containing dlopen... " >&6; }
13185 if ${ac_cv_search_dlopen+:} false
; then :
13186 $as_echo_n "(cached) " >&6
13188 ac_func_search_save_LIBS
=$LIBS
13189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13207 for ac_lib
in '' dl
; do
13208 if test -z "$ac_lib"; then
13209 ac_res
="none required"
13212 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13214 if ac_fn_c_try_link
"$LINENO"; then :
13215 ac_cv_search_dlopen
=$ac_res
13217 rm -f core conftest.err conftest.
$ac_objext \
13219 if ${ac_cv_search_dlopen+:} false
; then :
13223 if ${ac_cv_search_dlopen+:} false
; then :
13226 ac_cv_search_dlopen
=no
13228 rm conftest.
$ac_ext
13229 LIBS
=$ac_func_search_save_LIBS
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13232 $as_echo "$ac_cv_search_dlopen" >&6; }
13233 ac_res
=$ac_cv_search_dlopen
13234 if test "$ac_res" != no
; then :
13235 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13239 if test "${ac_cv_search_dlopen}" = "none required" ||
test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13243 $as_echo_n "checking for sdl2... " >&6; }
13245 if test -n "$SDL_CFLAGS"; then
13246 pkg_cv_SDL_CFLAGS
="$SDL_CFLAGS"
13247 elif test -n "$PKG_CONFIG"; then
13248 if test -n "$PKG_CONFIG" && \
13249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13250 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13253 test $ac_status = 0; }; then
13254 pkg_cv_SDL_CFLAGS
=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13255 test "x$?" != "x0" && pkg_failed
=yes
13262 if test -n "$SDL_LIBS"; then
13263 pkg_cv_SDL_LIBS
="$SDL_LIBS"
13264 elif test -n "$PKG_CONFIG"; then
13265 if test -n "$PKG_CONFIG" && \
13266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13267 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13270 test $ac_status = 0; }; then
13271 pkg_cv_SDL_LIBS
=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13272 test "x$?" != "x0" && pkg_failed
=yes
13280 if test $pkg_failed = no
; then
13281 pkg_save_LDFLAGS
="$LDFLAGS"
13282 LDFLAGS
="$LDFLAGS $pkg_cv_SDL_LIBS"
13283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13294 if ac_fn_c_try_link
"$LINENO"; then :
13299 rm -f core conftest.err conftest.
$ac_objext \
13300 conftest
$ac_exeext conftest.
$ac_ext
13301 LDFLAGS
=$pkg_save_LDFLAGS
13306 if test $pkg_failed = yes; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13311 _pkg_short_errors_supported
=yes
13313 _pkg_short_errors_supported
=no
13315 if test $_pkg_short_errors_supported = yes; then
13316 SDL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13318 SDL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13320 # Put the nasty error message in config.log where it belongs
13321 echo "$SDL_PKG_ERRORS" >&5
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13327 $as_echo_n "checking for sdl... " >&6; }
13329 if test -n "$SDL_CFLAGS"; then
13330 pkg_cv_SDL_CFLAGS
="$SDL_CFLAGS"
13331 elif test -n "$PKG_CONFIG"; then
13332 if test -n "$PKG_CONFIG" && \
13333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13334 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13337 test $ac_status = 0; }; then
13338 pkg_cv_SDL_CFLAGS
=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13339 test "x$?" != "x0" && pkg_failed
=yes
13346 if test -n "$SDL_LIBS"; then
13347 pkg_cv_SDL_LIBS
="$SDL_LIBS"
13348 elif test -n "$PKG_CONFIG"; then
13349 if test -n "$PKG_CONFIG" && \
13350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13351 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13354 test $ac_status = 0; }; then
13355 pkg_cv_SDL_LIBS
=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13356 test "x$?" != "x0" && pkg_failed
=yes
13364 if test $pkg_failed = no
; then
13365 pkg_save_LDFLAGS
="$LDFLAGS"
13366 LDFLAGS
="$LDFLAGS $pkg_cv_SDL_LIBS"
13367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13378 if ac_fn_c_try_link
"$LINENO"; then :
13383 rm -f core conftest.err conftest.
$ac_objext \
13384 conftest
$ac_exeext conftest.
$ac_ext
13385 LDFLAGS
=$pkg_save_LDFLAGS
13390 if test $pkg_failed = yes; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392 $as_echo "no" >&6; }
13394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13395 _pkg_short_errors_supported
=yes
13397 _pkg_short_errors_supported
=no
13399 if test $_pkg_short_errors_supported = yes; then
13400 SDL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13402 SDL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13404 # Put the nasty error message in config.log where it belongs
13405 echo "$SDL_PKG_ERRORS" >&5
13408 elif test $pkg_failed = untried
; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13413 SDL_CFLAGS
=$pkg_cv_SDL_CFLAGS
13414 SDL_LIBS
=$pkg_cv_SDL_LIBS
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416 $as_echo "yes" >&6; }
13417 SDL_CFLAGS
="${SDL_CFLAGS} -DHAVE_SDL=1"
13421 elif test $pkg_failed = untried
; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13428 $as_echo_n "checking for sdl... " >&6; }
13430 if test -n "$SDL_CFLAGS"; then
13431 pkg_cv_SDL_CFLAGS
="$SDL_CFLAGS"
13432 elif test -n "$PKG_CONFIG"; then
13433 if test -n "$PKG_CONFIG" && \
13434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13435 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13438 test $ac_status = 0; }; then
13439 pkg_cv_SDL_CFLAGS
=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13440 test "x$?" != "x0" && pkg_failed
=yes
13447 if test -n "$SDL_LIBS"; then
13448 pkg_cv_SDL_LIBS
="$SDL_LIBS"
13449 elif test -n "$PKG_CONFIG"; then
13450 if test -n "$PKG_CONFIG" && \
13451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13452 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13455 test $ac_status = 0; }; then
13456 pkg_cv_SDL_LIBS
=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13457 test "x$?" != "x0" && pkg_failed
=yes
13465 if test $pkg_failed = no
; then
13466 pkg_save_LDFLAGS
="$LDFLAGS"
13467 LDFLAGS
="$LDFLAGS $pkg_cv_SDL_LIBS"
13468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13479 if ac_fn_c_try_link
"$LINENO"; then :
13484 rm -f core conftest.err conftest.
$ac_objext \
13485 conftest
$ac_exeext conftest.
$ac_ext
13486 LDFLAGS
=$pkg_save_LDFLAGS
13491 if test $pkg_failed = yes; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13496 _pkg_short_errors_supported
=yes
13498 _pkg_short_errors_supported
=no
13500 if test $_pkg_short_errors_supported = yes; then
13501 SDL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13503 SDL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13505 # Put the nasty error message in config.log where it belongs
13506 echo "$SDL_PKG_ERRORS" >&5
13509 elif test $pkg_failed = untried
; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13514 SDL_CFLAGS
=$pkg_cv_SDL_CFLAGS
13515 SDL_LIBS
=$pkg_cv_SDL_LIBS
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13517 $as_echo "yes" >&6; }
13518 SDL_CFLAGS
="${SDL_CFLAGS} -DHAVE_SDL=1"
13523 SDL_CFLAGS
=$pkg_cv_SDL_CFLAGS
13524 SDL_LIBS
=$pkg_cv_SDL_LIBS
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13526 $as_echo "yes" >&6; }
13527 SDL_CFLAGS
="${SDL_CFLAGS} -DHAVE_SDL=2"
13530 if test -n "$SDL_CFLAGS"; then :
13531 if test "$ac_cv_search_dlopen" = no
; then :
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13533 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13545 $as_echo_n "checking for cygwin... " >&6; }
13546 if ${sim_cv_os_cygwin+:} false
; then :
13547 $as_echo_n "(cached) " >&6
13549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13557 $EGREP "lose" >/dev
/null
2>&1; then :
13558 sim_cv_os_cygwin
=yes
13560 sim_cv_os_cygwin
=no
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13566 $as_echo "$sim_cv_os_cygwin" >&6; }
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13569 $as_echo_n "checking for library containing tgetent... " >&6; }
13570 if ${ac_cv_search_tgetent+:} false
; then :
13571 $as_echo_n "(cached) " >&6
13573 ac_func_search_save_LIBS
=$LIBS
13574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13592 for ac_lib
in '' termcap tinfo curses ncurses
; do
13593 if test -z "$ac_lib"; then
13594 ac_res
="none required"
13597 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13599 if ac_fn_c_try_link
"$LINENO"; then :
13600 ac_cv_search_tgetent
=$ac_res
13602 rm -f core conftest.err conftest.
$ac_objext \
13604 if ${ac_cv_search_tgetent+:} false
; then :
13608 if ${ac_cv_search_tgetent+:} false
; then :
13611 ac_cv_search_tgetent
=no
13613 rm conftest.
$ac_ext
13614 LIBS
=$ac_func_search_save_LIBS
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13617 $as_echo "$ac_cv_search_tgetent" >&6; }
13618 ac_res
=$ac_cv_search_tgetent
13619 if test "$ac_res" != no
; then :
13620 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13621 TERMCAP_LIB
=$ac_cv_search_tgetent
13626 if test x
$sim_cv_os_cygwin = xyes
; then
13627 TERMCAP_LIB
="${TERMCAP_LIB} -luser32"
13631 if test -r ..
/readline
/Makefile
; then
13632 READLINE_LIB
=..
/readline
/readline
/libreadline.a
13633 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13636 $as_echo_n "checking for readline in -lreadline... " >&6; }
13637 if ${ac_cv_lib_readline_readline+:} false
; then :
13638 $as_echo_n "(cached) " >&6
13640 ac_check_lib_save_LIBS
=$LIBS
13641 LIBS
="-lreadline $TERMCAP_LIB $LIBS"
13642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13645 /* Override any GCC internal prototype to avoid an error.
13646 Use char because int might match the return type of a GCC
13647 builtin and then its argument prototype would still apply. */
13655 return readline ();
13660 if ac_fn_c_try_link
"$LINENO"; then :
13661 ac_cv_lib_readline_readline
=yes
13663 ac_cv_lib_readline_readline
=no
13665 rm -f core conftest.err conftest.
$ac_objext \
13666 conftest
$ac_exeext conftest.
$ac_ext
13667 LIBS
=$ac_check_lib_save_LIBS
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13670 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13671 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
13672 READLINE_LIB
=-lreadline
13674 as_fn_error $?
"the required \"readline\" library is missing" "$LINENO" 5
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13683 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13684 if ${sim_cv_decl_getopt_unistd_h+:} false
; then :
13685 $as_echo_n "(cached) " >&6
13687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 #include <unistd.h>
13693 extern int getopt (int, char *const*, const char *);
13698 if ac_fn_c_try_compile
"$LINENO"; then :
13699 sim_cv_decl_getopt_unistd_h
=yes
13701 sim_cv_decl_getopt_unistd_h
=no
13703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13707 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13708 if test $sim_cv_decl_getopt_unistd_h = yes; then
13710 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13717 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13718 # Check whether --enable-maintainer-mode was given.
13719 if test "${enable_maintainer_mode+set}" = set; then :
13720 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
13722 USE_MAINTAINER_MODE
=no
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13726 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13727 if test $USE_MAINTAINER_MODE = yes; then
13728 MAINTAINER_MODE_TRUE
=
13729 MAINTAINER_MODE_FALSE
='#'
13731 MAINTAINER_MODE_TRUE
='#'
13732 MAINTAINER_MODE_FALSE
=
13735 MAINT
=$MAINTAINER_MODE_TRUE
13738 am__api_version
='1.15'
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13741 $as_echo_n "checking whether build environment is sane... " >&6; }
13742 # Reject unsafe characters in $srcdir or the absolute working directory
13743 # name. Accept space and tab only in the latter.
13747 *[\\\"\
#\$\&\'\`$am_lf]*)
13748 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
13751 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
13752 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13755 # Do 'set' in a subshell so we don't clobber the current shell's
13756 # arguments. Must try -L first in case configure is actually a
13757 # symlink; some systems play weird games with the mod time of symlinks
13758 # (eg FreeBSD returns the mod time of the symlink's containing
13762 for am_try
in 1 2; do
13763 echo "timestamp, slept: $am_has_slept" > conftest.
file
13764 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13765 if test "$*" = "X"; then
13767 set X
`ls -t "$srcdir/configure" conftest.file`
13769 if test "$*" != "X $srcdir/configure conftest.file" \
13770 && test "$*" != "X conftest.file $srcdir/configure"; then
13772 # If neither matched, then we have a broken ls. This can happen
13773 # if, for instance, CONFIG_SHELL is bash and it inherits a
13774 # broken ls alias from the environment. This has actually
13775 # happened. Such a system could not be considered "sane".
13776 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
13777 alias in your environment" "$LINENO" 5
13779 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
13786 test "$2" = conftest.
file
13792 as_fn_error $?
"newly created file is older than distributed files!
13793 Check your system clock" "$LINENO" 5
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796 $as_echo "yes" >&6; }
13797 # If we didn't sleep, we still need to ensure time stamps of config.status and
13798 # generated files are strictly newer.
13800 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
13805 rm -f conftest.
file
13807 if test x
"${MISSING+set}" != xset
; then
13808 case $am_aux_dir in
13810 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
13812 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
13815 # Use eval to expand $SHELL
13816 if eval "$MISSING --is-lightweight"; then
13817 am_missing_run
="$MISSING "
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13821 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13824 if test x
"${install_sh+set}" != xset
; then
13825 case $am_aux_dir in
13827 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
13829 install_sh
="\${SHELL} $am_aux_dir/install-sh"
13833 # Installed binaries are usually stripped using 'strip' when the user
13834 # run "make install-strip". However 'strip' might not be the right
13835 # tool to use in cross-compilation environments, therefore Automake
13836 # will honor the 'STRIP' environment variable to overrule this program.
13837 if test "$cross_compiling" != no
; then
13838 if test -n "$ac_tool_prefix"; then
13839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13840 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842 $as_echo_n "checking for $ac_word... " >&6; }
13843 if ${ac_cv_prog_STRIP+:} false
; then :
13844 $as_echo_n "(cached) " >&6
13846 if test -n "$STRIP"; then
13847 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
13849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13850 for as_dir
in $PATH
13853 test -z "$as_dir" && as_dir
=.
13854 for ac_exec_ext
in '' $ac_executable_extensions; do
13855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13856 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13866 STRIP
=$ac_cv_prog_STRIP
13867 if test -n "$STRIP"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13869 $as_echo "$STRIP" >&6; }
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872 $as_echo "no" >&6; }
13877 if test -z "$ac_cv_prog_STRIP"; then
13879 # Extract the first word of "strip", so it can be a program name with args.
13880 set dummy strip
; ac_word
=$2
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 $as_echo_n "checking for $ac_word... " >&6; }
13883 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
13884 $as_echo_n "(cached) " >&6
13886 if test -n "$ac_ct_STRIP"; then
13887 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
13889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13890 for as_dir
in $PATH
13893 test -z "$as_dir" && as_dir
=.
13894 for ac_exec_ext
in '' $ac_executable_extensions; do
13895 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13896 ac_cv_prog_ac_ct_STRIP
="strip"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13906 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
13907 if test -n "$ac_ct_STRIP"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13909 $as_echo "$ac_ct_STRIP" >&6; }
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13915 if test "x$ac_ct_STRIP" = x
; then
13918 case $cross_compiling:$ac_tool_warned in
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13922 ac_tool_warned
=yes ;;
13927 STRIP
="$ac_cv_prog_STRIP"
13931 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13934 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13935 if test -z "$MKDIR_P"; then
13936 if ${ac_cv_path_mkdir+:} false
; then :
13937 $as_echo_n "(cached) " >&6
13939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13940 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
13943 test -z "$as_dir" && as_dir
=.
13944 for ac_prog
in mkdir gmkdir
; do
13945 for ac_exec_ext
in '' $ac_executable_extensions; do
13946 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
13947 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13948 'mkdir (GNU coreutils) '* | \
13949 'mkdir (coreutils) '* | \
13950 'mkdir (fileutils) '4.1*)
13951 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
13961 test -d .
/--version && rmdir .
/--version
13962 if test "${ac_cv_path_mkdir+set}" = set; then
13963 MKDIR_P
="$ac_cv_path_mkdir -p"
13965 # As a last resort, use the slow shell script. Don't cache a
13966 # value for MKDIR_P within a source directory, because that will
13967 # break other packages using the cache if that directory is
13968 # removed, or if the value is a relative name.
13969 MKDIR_P
="$ac_install_sh -d"
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13973 $as_echo "$MKDIR_P" >&6; }
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13978 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13979 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
13980 $as_echo_n "(cached) " >&6
13982 cat >conftest.
make <<\_ACEOF
13985 @
echo '@@@%%%=$(MAKE)=@@@%%%'
13987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13989 *@@@
%%%=?
*=@@@
%%%*)
13990 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
13992 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
13994 rm -f conftest.
make
13996 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13998 $as_echo "yes" >&6; }
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14003 SET_MAKE
="MAKE=${MAKE-make}"
14006 rm -rf .tst
2>/dev
/null
14007 mkdir .tst
2>/dev
/null
14008 if test -d .tst
; then
14013 rmdir .tst
2>/dev
/null
14015 DEPDIR
="${am__leading_dot}deps"
14017 ac_config_commands
="$ac_config_commands depfiles"
14020 am_make
=${MAKE-make}
14021 cat > confinc
<< 'END'
14023 @
echo this is the am__doit target
14026 # If we don't find an include directive, just comment out the code.
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14028 $as_echo_n "checking for style of include used by $am_make... " >&6; }
14032 # First try GNU make style include.
14033 echo "include confinc" > confmf
14034 # Ignore all kinds of additional output from 'make'.
14035 case `$am_make -s -f confmf 2> /dev/null` in #(
14036 *the\ am__doit\ target
*)
14037 am__include
=include
14042 # Now try BSD make style include.
14043 if test "$am__include" = "#"; then
14044 echo '.include "confinc"' > confmf
14045 case `$am_make -s -f confmf 2> /dev/null` in #(
14046 *the\ am__doit\ target
*)
14047 am__include
=.include
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14056 $as_echo "$_am_result" >&6; }
14057 rm -f confinc confmf
14059 # Check whether --enable-dependency-tracking was given.
14060 if test "${enable_dependency_tracking+set}" = set; then :
14061 enableval
=$enable_dependency_tracking;
14064 if test "x$enable_dependency_tracking" != xno
; then
14065 am_depcomp
="$ac_aux_dir/depcomp"
14069 if test "x$enable_dependency_tracking" != xno; then
14078 # Check whether --enable-silent-rules was given.
14079 if test "${enable_silent_rules+set}" = set; then :
14080 enableval
=$enable_silent_rules;
14083 case $enable_silent_rules in # (((
14084 yes) AM_DEFAULT_VERBOSITY
=0;;
14085 no
) AM_DEFAULT_VERBOSITY
=1;;
14086 *) AM_DEFAULT_VERBOSITY
=1;;
14088 am_make
=${MAKE-make}
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14090 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14091 if ${am_cv_make_support_nested_variables+:} false
; then :
14092 $as_echo_n "(cached) " >&6
14094 if $as_echo 'TRUE=$(BAR$(V))
14100 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
14101 am_cv_make_support_nested_variables
=yes
14103 am_cv_make_support_nested_variables
=no
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14107 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14108 if test $am_cv_make_support_nested_variables = yes; then
14110 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
14112 AM_V
=$AM_DEFAULT_VERBOSITY
14113 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
14117 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14119 # is not polluted with repeated "-I."
14120 am__isrc
=' -I$(srcdir)'
14121 # test to see if srcdir already configured
14122 if test -f $srcdir/config.status
; then
14123 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14127 # test whether we have cygpath
14128 if test -z "$CYGPATH_W"; then
14129 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
14130 CYGPATH_W
='cygpath -w'
14137 # Define the identity of the package.
14142 cat >>confdefs.h
<<_ACEOF
14143 #define PACKAGE "$PACKAGE"
14147 cat >>confdefs.h
<<_ACEOF
14148 #define VERSION "$VERSION"
14151 # Some tools Automake needs.
14153 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14156 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
14159 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14162 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
14165 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
14167 # For better backward compatibility. To be removed once Automake 1.9.x
14168 # dies out for good. For more background, see:
14169 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14170 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14171 mkdir_p
='$(MKDIR_P)'
14173 # We need awk for the "check" target (and possibly the TAP driver). The
14174 # system "awk" is bad on some platforms.
14175 # Always define AMTAR for backward compatibility. Yes, it's still used
14176 # in the wild :-( We should find a proper way to deprecate it ...
14177 AMTAR
='$${TAR-tar}'
14180 # We'll loop over all known methods to create a tar archive until one works.
14181 _am_tools
='gnutar pax cpio none'
14183 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
14189 depcc
="$CC" am_compiler_list
=
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14192 $as_echo_n "checking dependency style of $depcc... " >&6; }
14193 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
14194 $as_echo_n "(cached) " >&6
14196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14197 # We make a subdir and do the tests there. Otherwise we can end up
14198 # making bogus files that we don't know about and never remove. For
14199 # instance it was reported that on HP-UX the gcc test will end up
14200 # making a dummy file named 'D' -- because '-MD' means "put the output
14202 rm -rf conftest.dir
14204 # Copy depcomp to subdir because otherwise we won't find it if we're
14205 # using a relative directory.
14206 cp "$am_depcomp" conftest.dir
14208 # We will build objects and dependencies in a subdirectory because
14209 # it helps to detect inapplicable dependency modes. For instance
14210 # both Tru64's cc and ICC support -MD to output dependencies as a
14211 # side effect of compilation, but ICC will put the dependencies in
14212 # the current directory while Tru64 will put them in the object
14216 am_cv_CC_dependencies_compiler_type
=none
14217 if test "$am_compiler_list" = ""; then
14218 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14220 am__universal
=false
14221 case " $depcc " in #(
14222 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
14225 for depmode
in $am_compiler_list; do
14226 # Setup a source with many dependencies, because some compilers
14227 # like to wrap large dependency lists on column 80 (with \), and
14228 # we should not choose a depcomp mode which is confused by this.
14230 # We need to recreate these files for each test, as the compiler may
14231 # overwrite some of them when testing with obscure command lines.
14232 # This happens at least with the AIX C compiler.
14234 for i
in 1 2 3 4 5 6; do
14235 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
14236 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14237 # Solaris 10 /bin/sh.
14238 echo '/* dummy */' > sub
/conftst
$i.h
14240 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14242 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14243 # mode. It turns out that the SunPro C++ compiler does not properly
14244 # handle '-M -o', and we need to detect this. Also, some Intel
14245 # versions had trouble with output in subdirs.
14246 am__obj
=sub
/conftest.
${OBJEXT-o}
14247 am__minus_obj
="-o $am__obj"
14250 # This depmode causes a compiler race in universal mode.
14251 test "$am__universal" = false ||
continue
14254 # After this tag, mechanisms are not by side-effect, so they'll
14255 # only be used when explicitly requested.
14256 if test "x$enable_dependency_tracking" = xyes
; then
14262 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
14263 # This compiler won't grok '-c -o', but also, the minuso test has
14264 # not run yet. These depmodes are late enough in the game, and
14265 # so weak that their functioning should not be impacted.
14266 am__obj
=conftest.
${OBJEXT-o}
14271 if depmode
=$depmode \
14272 source=sub
/conftest.c object
=$am__obj \
14273 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
14274 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
14275 >/dev
/null
2>conftest.err
&&
14276 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14277 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14278 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
14279 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
14280 # icc doesn't choke on unknown options, it will just issue warnings
14281 # or remarks (even with -Werror). So we grep stderr for any message
14282 # that says an option was ignored or not supported.
14283 # When given -MP, icc 7.0 and 7.1 complain thusly:
14284 # icc: Command line warning: ignoring option '-M'; no argument required
14285 # The diagnosis changed in icc 8.0:
14286 # icc: Command line remark: option '-MP' not supported
14287 if (grep 'ignoring option' conftest.err ||
14288 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
14289 am_cv_CC_dependencies_compiler_type
=$depmode
14296 rm -rf conftest.dir
14298 am_cv_CC_dependencies_compiler_type
=none
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14303 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14304 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
14307 test "x$enable_dependency_tracking" != xno \
14308 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
14309 am__fastdepCC_TRUE
=
14310 am__fastdepCC_FALSE
='#'
14312 am__fastdepCC_TRUE
='#'
14313 am__fastdepCC_FALSE
=
14318 # POSIX will say in a future version that running "rm -f" with no argument
14319 # is OK; and we want to be able to make that assumption in our Makefile
14320 # recipes. So use an aggressive probe to check that the usage we want is
14321 # actually supported "in the wild" to an acceptable degree.
14322 # See automake bug#10828.
14323 # To make any issue more visible, cause the running configure to be aborted
14324 # by default if the 'rm' program in use doesn't match our expectations; the
14325 # user can still override this though.
14326 if rm -f && rm -fr && rm -rf; then : OK
; else
14330 Your 'rm' program seems unable to run without file operands specified
14331 on the command line, even when the '-f' option is present. This is contrary
14332 to the behaviour of most rm programs out there, and not conforming with
14333 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14335 Please tell bug-automake@gnu.org about your system, including the value
14336 of your $PATH and any error possibly output before this message. This
14337 can help us improve future automake versions.
14340 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
14341 echo 'Configuration will proceed anyway, since you have set the' >&2
14342 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14346 Aborting the configuration process, to ensure you take notice of the issue.
14348 You can download and install GNU coreutils to get an 'rm' implementation
14349 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14351 If you want to complete the configuration process using your problematic
14352 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14353 to "yes", and re-run configure.
14356 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
14360 # Check whether --enable-silent-rules was given.
14361 if test "${enable_silent_rules+set}" = set; then :
14362 enableval
=$enable_silent_rules;
14365 case $enable_silent_rules in # (((
14366 yes) AM_DEFAULT_VERBOSITY
=0;;
14367 no
) AM_DEFAULT_VERBOSITY
=1;;
14368 *) AM_DEFAULT_VERBOSITY
=0;;
14370 am_make
=${MAKE-make}
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14372 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14373 if ${am_cv_make_support_nested_variables+:} false
; then :
14374 $as_echo_n "(cached) " >&6
14376 if $as_echo 'TRUE=$(BAR$(V))
14382 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
14383 am_cv_make_support_nested_variables
=yes
14385 am_cv_make_support_nested_variables
=no
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14389 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14390 if test $am_cv_make_support_nested_variables = yes; then
14392 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
14394 AM_V
=$AM_DEFAULT_VERBOSITY
14395 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
14400 # If a cpu ever has more than one simulator to choose from, use
14401 # --enable-sim=... to choose.
14402 # Check whether --enable-sim was given.
14403 if test "${enable_sim+set}" = set; then :
14404 enableval=$enable_sim; case "${enableval}" in
14406 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14411 # Check whether --enable-example-sims was given.
14412 if test "${enable_example_sims+set}" = set; then :
14413 enableval=$enable_example_sims;
14417 # Check whether --enable-targets was given.
14418 if test "${enable_targets+set}" = set; then :
14419 enableval=$enable_targets; case "${enableval}" in
14420 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all
'" "$LINENO" 5
14422 no) enable_targets= ;;
14423 *) enable_targets=$enableval ;;
14428 SIM_PRIMARY_TARGET=
14431 SIM_ENABLED_ARCHES=
14438 if test "${enable_sim}" != no; then
14439 for targ in `echo $target $enable_targets | sed 's
/,/ /g
'`
14441 sim_enable_arch_aarch64=false
14444 if test "${targ}" = "${target}"; then
14445 SIM_PRIMARY_TARGET=aarch64
14448 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14450 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14453 sim_enable_arch_aarch64=true
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14457 $as_echo_n "checking where to find the target cc... " >&6; }
14458 if test "x${build}" != "x${host}" ; then
14459 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14460 # We already found the complete path
14461 ac_dir=`dirname $CC_FOR_TARGET`
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14463 $as_echo "pre-installed in $ac_dir" >&6; }
14465 # Canadian cross, just use what we found
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14467 $as_echo "pre-installed" >&6; }
14471 case " ${configdirs} " in
14472 *" ${target_alias}-gcc "*) ;;
14476 if test $ok = yes; then
14477 # An in-tree tool is available and we can use it
14478 CC_FOR_TARGET='$
$r/$
(HOST_SUBDIR
)/${target_alias}-gcc'
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14480 $as_echo "just compiled" >&6; }
14481 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14482 # We already found the complete path
14483 ac_dir=`dirname $CC_FOR_TARGET`
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14485 $as_echo "pre-installed in $ac_dir" >&6; }
14486 elif test "x$target" = "x$host"; then
14487 # We can use an host tool
14488 CC_FOR_TARGET='$
(CC
)'
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14490 $as_echo "host tool" >&6; }
14492 # We need a cross tool
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14494 $as_echo "pre-installed" >&6; }
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14499 $as_echo_n "checking where to find the target as... " >&6; }
14500 if test "x${build}" != "x${host}" ; then
14501 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14502 # We already found the complete path
14503 ac_dir=`dirname $AS_FOR_TARGET`
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14505 $as_echo "pre-installed in $ac_dir" >&6; }
14507 # Canadian cross, just use what we found
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14509 $as_echo "pre-installed" >&6; }
14513 case " ${configdirs} " in
14514 *" \$(abs_builddir) "*) ;;
14518 if test $ok = yes; then
14519 # An in-tree tool is available and we can use it
14520 AS_FOR_TARGET='$
$r/$
(HOST_SUBDIR
)/\$
(abs_builddir
)/..
/gas
/as-new
'
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14522 $as_echo "just compiled" >&6; }
14523 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14524 # We already found the complete path
14525 ac_dir=`dirname $AS_FOR_TARGET`
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14527 $as_echo "pre-installed in $ac_dir" >&6; }
14528 elif test "x$target" = "x$host"; then
14529 # We can use an host tool
14530 AS_FOR_TARGET='$
(AS
)'
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14532 $as_echo "host tool" >&6; }
14534 # We need a cross tool
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14536 $as_echo "pre-installed" >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14541 $as_echo_n "checking where to find the target ld... " >&6; }
14542 if test "x${build}" != "x${host}" ; then
14543 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14544 # We already found the complete path
14545 ac_dir=`dirname $LD_FOR_TARGET`
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14547 $as_echo "pre-installed in $ac_dir" >&6; }
14549 # Canadian cross, just use what we found
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14551 $as_echo "pre-installed" >&6; }
14555 case " ${configdirs} " in
14556 *" \$(abs_builddir) "*) ;;
14560 if test $ok = yes; then
14561 # An in-tree tool is available and we can use it
14562 LD_FOR_TARGET='$
$r/$
(HOST_SUBDIR
)/\$
(abs_builddir
)/..
/ld
/ld-new
'
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14564 $as_echo "just compiled" >&6; }
14565 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14566 # We already found the complete path
14567 ac_dir=`dirname $LD_FOR_TARGET`
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14569 $as_echo "pre-installed in $ac_dir" >&6; }
14570 elif test "x$target" = "x$host"; then
14571 # We can use an host tool
14572 LD_FOR_TARGET='$
(LD
)'
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14574 $as_echo "host tool" >&6; }
14576 # We need a cross tool
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14578 $as_echo "pre-installed" >&6; }
14587 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14588 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14589 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14590 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14594 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14596 if ${sim_enable_arch_aarch64}; then
14597 SIM_ENABLE_ARCH_aarch64_TRUE=
14598 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14600 SIM_ENABLE_ARCH_aarch64_TRUE
='#'
14601 SIM_ENABLE_ARCH_aarch64_FALSE
=
14605 sim_enable_arch_arm
=false
14608 if test "${targ}" = "${target}"; then
14609 SIM_PRIMARY_TARGET
=arm
14612 as_fn_append SIM_ENABLED_ARCHES
" arm"
14614 ac_config_files
="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14617 sim_enable_arch_arm
=true
14624 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14625 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14626 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14627 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14631 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14633 if ${sim_enable_arch_arm}; then
14634 SIM_ENABLE_ARCH_arm_TRUE
=
14635 SIM_ENABLE_ARCH_arm_FALSE
='#'
14637 SIM_ENABLE_ARCH_arm_TRUE
='#'
14638 SIM_ENABLE_ARCH_arm_FALSE
=
14642 sim_enable_arch_avr
=false
14645 if test "${targ}" = "${target}"; then
14646 SIM_PRIMARY_TARGET
=avr
14649 as_fn_append SIM_ENABLED_ARCHES
" avr"
14651 ac_config_files
="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14654 sim_enable_arch_avr
=true
14661 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14662 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14663 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14664 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14668 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14670 if ${sim_enable_arch_avr}; then
14671 SIM_ENABLE_ARCH_avr_TRUE
=
14672 SIM_ENABLE_ARCH_avr_FALSE
='#'
14674 SIM_ENABLE_ARCH_avr_TRUE
='#'
14675 SIM_ENABLE_ARCH_avr_FALSE
=
14679 sim_enable_arch_bfin
=false
14682 if test "${targ}" = "${target}"; then
14683 SIM_PRIMARY_TARGET
=bfin
14686 as_fn_append SIM_ENABLED_ARCHES
" bfin"
14688 ac_config_files
="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14691 sim_enable_arch_bfin
=true
14698 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14699 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14700 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14701 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14705 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14707 if ${sim_enable_arch_bfin}; then
14708 SIM_ENABLE_ARCH_bfin_TRUE
=
14709 SIM_ENABLE_ARCH_bfin_FALSE
='#'
14711 SIM_ENABLE_ARCH_bfin_TRUE
='#'
14712 SIM_ENABLE_ARCH_bfin_FALSE
=
14716 sim_enable_arch_bpf
=false
14719 if test "${targ}" = "${target}"; then
14720 SIM_PRIMARY_TARGET
=bpf
14723 as_fn_append SIM_ENABLED_ARCHES
" bpf"
14725 ac_config_files
="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14728 sim_enable_arch_bpf
=true
14735 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14736 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14737 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14738 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14742 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14744 if ${sim_enable_arch_bpf}; then
14745 SIM_ENABLE_ARCH_bpf_TRUE
=
14746 SIM_ENABLE_ARCH_bpf_FALSE
='#'
14748 SIM_ENABLE_ARCH_bpf_TRUE
='#'
14749 SIM_ENABLE_ARCH_bpf_FALSE
=
14753 sim_enable_arch_cr16
=false
14756 if test "${targ}" = "${target}"; then
14757 SIM_PRIMARY_TARGET
=cr16
14760 as_fn_append SIM_ENABLED_ARCHES
" cr16"
14762 ac_config_files
="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14765 sim_enable_arch_cr16
=true
14772 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14773 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14774 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14775 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14779 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14781 if ${sim_enable_arch_cr16}; then
14782 SIM_ENABLE_ARCH_cr16_TRUE
=
14783 SIM_ENABLE_ARCH_cr16_FALSE
='#'
14785 SIM_ENABLE_ARCH_cr16_TRUE
='#'
14786 SIM_ENABLE_ARCH_cr16_FALSE
=
14790 sim_enable_arch_cris
=false
14792 all|cris-
*-* | crisv32-
*-*)
14793 if test "${targ}" = "${target}"; then
14794 SIM_PRIMARY_TARGET
=cris
14797 as_fn_append SIM_ENABLED_ARCHES
" cris"
14799 ac_config_files
="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14802 sim_enable_arch_cris
=true
14809 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14810 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14811 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14812 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14816 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14818 if ${sim_enable_arch_cris}; then
14819 SIM_ENABLE_ARCH_cris_TRUE
=
14820 SIM_ENABLE_ARCH_cris_FALSE
='#'
14822 SIM_ENABLE_ARCH_cris_TRUE
='#'
14823 SIM_ENABLE_ARCH_cris_FALSE
=
14827 sim_enable_arch_d10v
=false
14830 if test "${targ}" = "${target}"; then
14831 SIM_PRIMARY_TARGET
=d10v
14834 as_fn_append SIM_ENABLED_ARCHES
" d10v"
14836 ac_config_files
="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14839 sim_enable_arch_d10v
=true
14846 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14847 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14848 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14849 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14853 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14855 if ${sim_enable_arch_d10v}; then
14856 SIM_ENABLE_ARCH_d10v_TRUE
=
14857 SIM_ENABLE_ARCH_d10v_FALSE
='#'
14859 SIM_ENABLE_ARCH_d10v_TRUE
='#'
14860 SIM_ENABLE_ARCH_d10v_FALSE
=
14864 sim_enable_arch_frv
=false
14867 if test "${targ}" = "${target}"; then
14868 SIM_PRIMARY_TARGET
=frv
14871 as_fn_append SIM_ENABLED_ARCHES
" frv"
14873 ac_config_files
="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14876 sim_enable_arch_frv
=true
14883 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14884 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14885 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14886 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14890 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14892 if ${sim_enable_arch_frv}; then
14893 SIM_ENABLE_ARCH_frv_TRUE
=
14894 SIM_ENABLE_ARCH_frv_FALSE
='#'
14896 SIM_ENABLE_ARCH_frv_TRUE
='#'
14897 SIM_ENABLE_ARCH_frv_FALSE
=
14901 sim_enable_arch_ft32
=false
14904 if test "${targ}" = "${target}"; then
14905 SIM_PRIMARY_TARGET
=ft32
14908 as_fn_append SIM_ENABLED_ARCHES
" ft32"
14910 ac_config_files
="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14913 sim_enable_arch_ft32
=true
14920 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14921 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14922 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14923 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14927 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14929 if ${sim_enable_arch_ft32}; then
14930 SIM_ENABLE_ARCH_ft32_TRUE
=
14931 SIM_ENABLE_ARCH_ft32_FALSE
='#'
14933 SIM_ENABLE_ARCH_ft32_TRUE
='#'
14934 SIM_ENABLE_ARCH_ft32_FALSE
=
14938 sim_enable_arch_h8300
=false
14941 if test "${targ}" = "${target}"; then
14942 SIM_PRIMARY_TARGET
=h8300
14945 as_fn_append SIM_ENABLED_ARCHES
" h8300"
14947 ac_config_files
="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14950 sim_enable_arch_h8300
=true
14957 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14958 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14959 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14960 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14964 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14966 if ${sim_enable_arch_h8300}; then
14967 SIM_ENABLE_ARCH_h8300_TRUE
=
14968 SIM_ENABLE_ARCH_h8300_FALSE
='#'
14970 SIM_ENABLE_ARCH_h8300_TRUE
='#'
14971 SIM_ENABLE_ARCH_h8300_FALSE
=
14975 sim_enable_arch_iq2000
=false
14978 if test "${targ}" = "${target}"; then
14979 SIM_PRIMARY_TARGET
=iq2000
14982 as_fn_append SIM_ENABLED_ARCHES
" iq2000"
14984 ac_config_files
="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14987 sim_enable_arch_iq2000
=true
14994 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14995 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14996 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14997 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
15001 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
15003 if ${sim_enable_arch_iq2000}; then
15004 SIM_ENABLE_ARCH_iq2000_TRUE
=
15005 SIM_ENABLE_ARCH_iq2000_FALSE
='#'
15007 SIM_ENABLE_ARCH_iq2000_TRUE
='#'
15008 SIM_ENABLE_ARCH_iq2000_FALSE
=
15012 sim_enable_arch_lm32
=false
15015 if test "${targ}" = "${target}"; then
15016 SIM_PRIMARY_TARGET
=lm32
15019 as_fn_append SIM_ENABLED_ARCHES
" lm32"
15021 ac_config_files
="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
15024 sim_enable_arch_lm32
=true
15031 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
15032 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
15033 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
15034 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
15038 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
15040 if ${sim_enable_arch_lm32}; then
15041 SIM_ENABLE_ARCH_lm32_TRUE
=
15042 SIM_ENABLE_ARCH_lm32_FALSE
='#'
15044 SIM_ENABLE_ARCH_lm32_TRUE
='#'
15045 SIM_ENABLE_ARCH_lm32_FALSE
=
15049 sim_enable_arch_m32c
=false
15052 if test "${targ}" = "${target}"; then
15053 SIM_PRIMARY_TARGET
=m32c
15056 as_fn_append SIM_ENABLED_ARCHES
" m32c"
15058 ac_config_files
="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
15061 sim_enable_arch_m32c
=true
15068 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
15069 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
15070 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
15071 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
15075 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
15077 if ${sim_enable_arch_m32c}; then
15078 SIM_ENABLE_ARCH_m32c_TRUE
=
15079 SIM_ENABLE_ARCH_m32c_FALSE
='#'
15081 SIM_ENABLE_ARCH_m32c_TRUE
='#'
15082 SIM_ENABLE_ARCH_m32c_FALSE
=
15086 sim_enable_arch_m32r
=false
15089 if test "${targ}" = "${target}"; then
15090 SIM_PRIMARY_TARGET
=m32r
15093 as_fn_append SIM_ENABLED_ARCHES
" m32r"
15095 ac_config_files
="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
15098 sim_enable_arch_m32r
=true
15105 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15106 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15107 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15108 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15112 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15114 if ${sim_enable_arch_m32r}; then
15115 SIM_ENABLE_ARCH_m32r_TRUE
=
15116 SIM_ENABLE_ARCH_m32r_FALSE
='#'
15118 SIM_ENABLE_ARCH_m32r_TRUE
='#'
15119 SIM_ENABLE_ARCH_m32r_FALSE
=
15123 sim_enable_arch_m68hc11
=false
15125 all|m68hc11-
*-*|m6811-
*-*)
15126 if test "${targ}" = "${target}"; then
15127 SIM_PRIMARY_TARGET
=m68hc11
15130 as_fn_append SIM_ENABLED_ARCHES
" m68hc11"
15132 ac_config_files
="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15135 sim_enable_arch_m68hc11
=true
15142 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15143 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15144 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15145 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15149 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15151 if ${sim_enable_arch_m68hc11}; then
15152 SIM_ENABLE_ARCH_m68hc11_TRUE
=
15153 SIM_ENABLE_ARCH_m68hc11_FALSE
='#'
15155 SIM_ENABLE_ARCH_m68hc11_TRUE
='#'
15156 SIM_ENABLE_ARCH_m68hc11_FALSE
=
15160 sim_enable_arch_mcore
=false
15163 if test "${targ}" = "${target}"; then
15164 SIM_PRIMARY_TARGET
=mcore
15167 as_fn_append SIM_ENABLED_ARCHES
" mcore"
15169 ac_config_files
="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15172 sim_enable_arch_mcore
=true
15179 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15180 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15181 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15182 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15186 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15188 if ${sim_enable_arch_mcore}; then
15189 SIM_ENABLE_ARCH_mcore_TRUE
=
15190 SIM_ENABLE_ARCH_mcore_FALSE
='#'
15192 SIM_ENABLE_ARCH_mcore_TRUE
='#'
15193 SIM_ENABLE_ARCH_mcore_FALSE
=
15197 sim_enable_arch_microblaze
=false
15199 all|microblaze
*-*-*)
15200 if test "${targ}" = "${target}"; then
15201 SIM_PRIMARY_TARGET
=microblaze
15204 as_fn_append SIM_ENABLED_ARCHES
" microblaze"
15206 ac_config_files
="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15209 sim_enable_arch_microblaze
=true
15216 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15217 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15218 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15219 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15223 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15225 if ${sim_enable_arch_microblaze}; then
15226 SIM_ENABLE_ARCH_microblaze_TRUE
=
15227 SIM_ENABLE_ARCH_microblaze_FALSE
='#'
15229 SIM_ENABLE_ARCH_microblaze_TRUE
='#'
15230 SIM_ENABLE_ARCH_microblaze_FALSE
=
15234 sim_enable_arch_mips
=false
15237 if test "${targ}" = "${target}"; then
15238 SIM_PRIMARY_TARGET
=mips
15241 as_fn_append SIM_ENABLED_ARCHES
" mips"
15243 ac_config_files
="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15246 sim_enable_arch_mips
=true
15253 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15254 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15255 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15256 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15260 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15262 if ${sim_enable_arch_mips}; then
15263 SIM_ENABLE_ARCH_mips_TRUE
=
15264 SIM_ENABLE_ARCH_mips_FALSE
='#'
15266 SIM_ENABLE_ARCH_mips_TRUE
='#'
15267 SIM_ENABLE_ARCH_mips_FALSE
=
15271 sim_enable_arch_mn10300
=false
15274 if test "${targ}" = "${target}"; then
15275 SIM_PRIMARY_TARGET
=mn10300
15278 as_fn_append SIM_ENABLED_ARCHES
" mn10300"
15280 ac_config_files
="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15283 sim_enable_arch_mn10300
=true
15290 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15291 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15292 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15293 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15297 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15299 if ${sim_enable_arch_mn10300}; then
15300 SIM_ENABLE_ARCH_mn10300_TRUE
=
15301 SIM_ENABLE_ARCH_mn10300_FALSE
='#'
15303 SIM_ENABLE_ARCH_mn10300_TRUE
='#'
15304 SIM_ENABLE_ARCH_mn10300_FALSE
=
15308 sim_enable_arch_moxie
=false
15311 if test "${targ}" = "${target}"; then
15312 SIM_PRIMARY_TARGET
=moxie
15315 as_fn_append SIM_ENABLED_ARCHES
" moxie"
15317 ac_config_files
="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15320 sim_enable_arch_moxie
=true
15327 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15328 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15329 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15330 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15334 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15336 if ${sim_enable_arch_moxie}; then
15337 SIM_ENABLE_ARCH_moxie_TRUE
=
15338 SIM_ENABLE_ARCH_moxie_FALSE
='#'
15340 SIM_ENABLE_ARCH_moxie_TRUE
='#'
15341 SIM_ENABLE_ARCH_moxie_FALSE
=
15345 sim_enable_arch_msp430
=false
15348 if test "${targ}" = "${target}"; then
15349 SIM_PRIMARY_TARGET
=msp430
15352 as_fn_append SIM_ENABLED_ARCHES
" msp430"
15354 ac_config_files
="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15357 sim_enable_arch_msp430
=true
15364 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15365 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15366 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15367 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15371 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15373 if ${sim_enable_arch_msp430}; then
15374 SIM_ENABLE_ARCH_msp430_TRUE
=
15375 SIM_ENABLE_ARCH_msp430_FALSE
='#'
15377 SIM_ENABLE_ARCH_msp430_TRUE
='#'
15378 SIM_ENABLE_ARCH_msp430_FALSE
=
15382 sim_enable_arch_or1k
=false
15385 if test "${targ}" = "${target}"; then
15386 SIM_PRIMARY_TARGET
=or1k
15389 as_fn_append SIM_ENABLED_ARCHES
" or1k"
15391 ac_config_files
="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15394 sim_enable_arch_or1k
=true
15401 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15402 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15403 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15404 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15408 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15410 if ${sim_enable_arch_or1k}; then
15411 SIM_ENABLE_ARCH_or1k_TRUE
=
15412 SIM_ENABLE_ARCH_or1k_FALSE
='#'
15414 SIM_ENABLE_ARCH_or1k_TRUE
='#'
15415 SIM_ENABLE_ARCH_or1k_FALSE
=
15419 sim_enable_arch_ppc
=false
15422 if test "${targ}" = "${target}"; then
15423 SIM_PRIMARY_TARGET
=ppc
15426 as_fn_append SIM_ENABLED_ARCHES
" ppc"
15429 subdirs
="$subdirs ppc"
15432 ac_config_files
="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15435 sim_enable_arch_ppc
=true
15442 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15443 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15444 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15445 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15449 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15451 if ${sim_enable_arch_ppc}; then
15452 SIM_ENABLE_ARCH_ppc_TRUE
=
15453 SIM_ENABLE_ARCH_ppc_FALSE
='#'
15455 SIM_ENABLE_ARCH_ppc_TRUE
='#'
15456 SIM_ENABLE_ARCH_ppc_FALSE
=
15460 sim_enable_arch_pru
=false
15463 if test "${targ}" = "${target}"; then
15464 SIM_PRIMARY_TARGET
=pru
15467 as_fn_append SIM_ENABLED_ARCHES
" pru"
15469 ac_config_files
="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15472 sim_enable_arch_pru
=true
15479 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15480 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15481 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15482 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15486 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15488 if ${sim_enable_arch_pru}; then
15489 SIM_ENABLE_ARCH_pru_TRUE
=
15490 SIM_ENABLE_ARCH_pru_FALSE
='#'
15492 SIM_ENABLE_ARCH_pru_TRUE
='#'
15493 SIM_ENABLE_ARCH_pru_FALSE
=
15497 sim_enable_arch_riscv
=false
15500 if test "${targ}" = "${target}"; then
15501 SIM_PRIMARY_TARGET
=riscv
15504 as_fn_append SIM_ENABLED_ARCHES
" riscv"
15506 ac_config_files
="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15509 sim_enable_arch_riscv
=true
15516 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15517 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15518 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15519 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15523 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15525 if ${sim_enable_arch_riscv}; then
15526 SIM_ENABLE_ARCH_riscv_TRUE
=
15527 SIM_ENABLE_ARCH_riscv_FALSE
='#'
15529 SIM_ENABLE_ARCH_riscv_TRUE
='#'
15530 SIM_ENABLE_ARCH_riscv_FALSE
=
15534 sim_enable_arch_rl78
=false
15537 if test "${targ}" = "${target}"; then
15538 SIM_PRIMARY_TARGET
=rl78
15541 as_fn_append SIM_ENABLED_ARCHES
" rl78"
15543 ac_config_files
="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15546 sim_enable_arch_rl78
=true
15553 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15554 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15555 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15556 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15560 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15562 if ${sim_enable_arch_rl78}; then
15563 SIM_ENABLE_ARCH_rl78_TRUE
=
15564 SIM_ENABLE_ARCH_rl78_FALSE
='#'
15566 SIM_ENABLE_ARCH_rl78_TRUE
='#'
15567 SIM_ENABLE_ARCH_rl78_FALSE
=
15571 sim_enable_arch_rx
=false
15574 if test "${targ}" = "${target}"; then
15575 SIM_PRIMARY_TARGET
=rx
15578 as_fn_append SIM_ENABLED_ARCHES
" rx"
15580 ac_config_files
="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15583 sim_enable_arch_rx
=true
15590 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15591 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15592 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15593 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15597 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15599 if ${sim_enable_arch_rx}; then
15600 SIM_ENABLE_ARCH_rx_TRUE
=
15601 SIM_ENABLE_ARCH_rx_FALSE
='#'
15603 SIM_ENABLE_ARCH_rx_TRUE
='#'
15604 SIM_ENABLE_ARCH_rx_FALSE
=
15608 sim_enable_arch_sh
=false
15611 if test "${targ}" = "${target}"; then
15612 SIM_PRIMARY_TARGET
=sh
15615 as_fn_append SIM_ENABLED_ARCHES
" sh"
15617 ac_config_files
="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15620 sim_enable_arch_sh
=true
15627 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15628 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15629 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15630 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15634 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15636 if ${sim_enable_arch_sh}; then
15637 SIM_ENABLE_ARCH_sh_TRUE
=
15638 SIM_ENABLE_ARCH_sh_FALSE
='#'
15640 SIM_ENABLE_ARCH_sh_TRUE
='#'
15641 SIM_ENABLE_ARCH_sh_FALSE
=
15645 sim_enable_arch_erc32
=false
15648 if test "${targ}" = "${target}"; then
15649 SIM_PRIMARY_TARGET
=erc32
15652 as_fn_append SIM_ENABLED_ARCHES
" erc32"
15654 ac_config_files
="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15657 sim_enable_arch_erc32
=true
15664 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15665 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15666 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15667 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15671 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15673 if ${sim_enable_arch_erc32}; then
15674 SIM_ENABLE_ARCH_erc32_TRUE
=
15675 SIM_ENABLE_ARCH_erc32_FALSE
='#'
15677 SIM_ENABLE_ARCH_erc32_TRUE
='#'
15678 SIM_ENABLE_ARCH_erc32_FALSE
=
15682 sim_enable_arch_v850
=false
15685 if test "${targ}" = "${target}"; then
15686 SIM_PRIMARY_TARGET
=v850
15689 as_fn_append SIM_ENABLED_ARCHES
" v850"
15691 ac_config_files
="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15694 sim_enable_arch_v850
=true
15701 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15702 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15703 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15704 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15708 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15710 if ${sim_enable_arch_v850}; then
15711 SIM_ENABLE_ARCH_v850_TRUE
=
15712 SIM_ENABLE_ARCH_v850_FALSE
='#'
15714 SIM_ENABLE_ARCH_v850_TRUE
='#'
15715 SIM_ENABLE_ARCH_v850_FALSE
=
15721 if test "x${enable_example_sims}" = xyes
; then
15726 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15727 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15728 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15730 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15733 as_fn_append SIM_ENABLED_ARCHES
" example-synacor"
15735 ac_config_files
="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15739 if test "${enable_example_sims}" = "yes"; then
15740 SIM_ENABLE_ARCH_examples_TRUE
=
15741 SIM_ENABLE_ARCH_examples_FALSE
='#'
15743 SIM_ENABLE_ARCH_examples_TRUE
='#'
15744 SIM_ENABLE_ARCH_examples_FALSE
=
15748 if test "$ENABLE_SIM" = "yes"; then
15750 ENABLE_SIM_FALSE
='#'
15752 ENABLE_SIM_TRUE
='#'
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15758 $as_echo_n "checking whether to force sim alignment... " >&6; }
15760 # Check whether --enable-sim-alignment was given.
15761 if test "${enable_sim_alignment+set}" = set; then :
15762 enableval
=$enable_sim_alignment; case "${enableval}" in
15763 yes | strict | STRICT
) sim_alignment
="STRICT_ALIGNMENT";;
15764 no | nonstrict | NONSTRICT
) sim_alignment
="NONSTRICT_ALIGNMENT";;
15765 forced | FORCED
) sim_alignment
="FORCED_ALIGNMENT";;
15766 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15770 cat >>confdefs.h
<<_ACEOF
15771 #define WITH_ALIGNMENT ${sim_alignment:-0}
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15775 $as_echo "${sim_alignment:-no}" >&6; }
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15779 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15781 # Check whether --enable-sim-assert was given.
15782 if test "${enable_sim_assert+set}" = set; then :
15783 enableval
=$enable_sim_assert; case "${enableval}" in
15784 yes) sim_assert
="1";;
15785 no
) sim_assert
="0";;
15786 *) as_fn_error $?
"--enable-sim-assert does not take a value" "$LINENO" 5;;
15790 cat >>confdefs.h
<<_ACEOF
15791 #define WITH_ASSERT $sim_assert
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15795 $as_echo "$sim_assert" >&6; }
15800 cgendir
='$(srcdir)/../../cgen'
15801 if test -r ${srcdir}/..
/cgen
/iformat.scm
; then
15802 cgendir
='$(srcdir)/../cgen'
15804 # Check whether --enable-cgen-maint was given.
15805 if test "${enable_cgen_maint+set}" = set; then :
15806 enableval
=$enable_cgen_maint; case "${enableval}" in
15807 yes) cgen_maint
=yes ;;
15808 no
) cgen_maint
=no
;;
15810 # Argument is a directory where cgen can be found. In some
15811 # future world cgen could be installable, but right now this
15812 # is not the case. Instead we assume the directory is a path
15813 # to the cgen source tree.
15815 if test -r ${enableval}/iformat.scm
; then
15816 # This looks like a cgen source tree.
15817 cgendir
=${enableval}
15819 as_fn_error $?
"${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15824 if test x
${cgen_maint} != xno
; then
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15834 $as_echo_n "checking for sim debug setting... " >&6; }
15836 # Check whether --enable-sim-debug was given.
15837 if test "${enable_sim_debug+set}" = set; then :
15838 enableval
=$enable_sim_debug; case "${enableval}" in
15839 yes) sim_debug
="7";;
15840 no
) sim_debug
="0";;
15841 *) sim_debug
="($enableval)";;
15844 if test "$sim_debug" != "0"; then
15846 cat >>confdefs.h
<<_ACEOF
15847 #define DEBUG $sim_debug
15852 cat >>confdefs.h
<<_ACEOF
15853 #define WITH_DEBUG $sim_debug
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15857 $as_echo "$sim_debug" >&6; }
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15860 $as_echo_n "checking whether to force sim endianness... " >&6; }
15862 # Check whether --enable-sim-endian was given.
15863 if test "${enable_sim_endian+set}" = set; then :
15864 enableval
=$enable_sim_endian; case "${enableval}" in
15865 b
*|B
*) sim_endian
="BFD_ENDIAN_BIG";;
15866 l
*|L
*) sim_endian
="BFD_ENDIAN_LITTLE";;
15868 *) as_fn_error $?
"\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15872 cat >>confdefs.h
<<_ACEOF
15873 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15877 $as_echo "${sim_alignment:-no}" >&6; }
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15881 $as_echo_n "checking default sim environment setting... " >&6; }
15882 sim_environment
="ALL_ENVIRONMENT"
15883 # Check whether --enable-sim-environment was given.
15884 if test "${enable_sim_environment+set}" = set; then :
15885 enableval
=$enable_sim_environment; case "${enableval}" in
15886 all | ALL
) sim_environment
="ALL_ENVIRONMENT";;
15887 user | USER
) sim_environment
="USER_ENVIRONMENT";;
15888 virtual | VIRTUAL
) sim_environment
="VIRTUAL_ENVIRONMENT";;
15889 operating | OPERATING
) sim_environment
="OPERATING_ENVIRONMENT";;
15890 *) as_fn_error $?
"Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15894 cat >>confdefs.h
<<_ACEOF
15895 #define WITH_ENVIRONMENT $sim_environment
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15899 $as_echo "$sim_environment" >&6; }
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15902 $as_echo_n "checking for sim hardware settings... " >&6; }
15903 # Check whether --enable-sim-hardware was given.
15904 if test "${enable_sim_hardware+set}" = set; then :
15905 enableval
=$enable_sim_hardware;
15907 enable_sim_hardware
="yes"
15911 if test "$enable_sim_hardware" = no
; then
15912 sim_hw_cflags
="-DWITH_HW=0"
15913 elif test "$enable_sim_hardware" = yes; then
15914 sim_hw_cflags
="-DWITH_HW=1"
15915 sim_hw_sockser
="dv-sockser.o"
15916 sim_hw_cflags
="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15918 as_fn_error $?
"unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15920 if test "$enable_sim_hardware" = "yes"; then
15921 SIM_ENABLE_HW_TRUE
=
15922 SIM_ENABLE_HW_FALSE
='#'
15924 SIM_ENABLE_HW_TRUE
='#'
15925 SIM_ENABLE_HW_FALSE
=
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15929 $as_echo "${enable_sim_hardware}" >&6; }
15930 SIM_HW_CFLAGS
=$sim_hw_cflags
15932 SIM_HW_SOCKSER
=$sim_hw_sockser
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15936 $as_echo_n "checking sim inline settings... " >&6; }
15937 sim_inline
="-DDEFAULT_INLINE=0"
15938 # Check whether --enable-sim-inline was given.
15939 if test "${enable_sim_inline+set}" = set; then :
15940 enableval
=$enable_sim_inline; sim_inline
=""
15941 case "$enableval" in
15942 no
) sim_inline
="-DDEFAULT_INLINE=0";;
15943 0) sim_inline
="-DDEFAULT_INLINE=0";;
15944 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
15945 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
15946 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
15949 *_INLINE
=*) new_flag
="-D$x";;
15950 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15951 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
15952 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
15954 if test x
"$sim_inline" = x
""; then
15955 sim_inline
="$new_flag"
15957 sim_inline
="$sim_inline $new_flag"
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15964 $as_echo "$sim_inline" >&6; }
15965 SIM_INLINE
=$sim_inline
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15969 $as_echo_n "checking for sim profile settings... " >&6; }
15972 # Check whether --enable-sim-profile was given.
15973 if test "${enable_sim_profile+set}" = set; then :
15974 enableval
=$enable_sim_profile; case "${enableval}" in
15975 yes) profile
="1" sim_profile
="-1";;
15976 no
) profile
="0" sim_profile
="0";;
15978 profile
="(${enableval})" sim_profile
="(${enableval})";;
15982 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
15983 if test x
"$sim_profile" = x
; then
15984 sim_profile
="(PROFILE_$x"
15986 sim_profile
="${sim_profile}|PROFILE_$x"
15989 sim_profile
="$sim_profile)" ;;
15993 cat >>confdefs.h
<<_ACEOF
15994 #define PROFILE $profile
15998 cat >>confdefs.h
<<_ACEOF
15999 #define WITH_PROFILE $sim_profile
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16003 $as_echo "$sim_profile" >&6; }
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16006 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16007 # Check whether --enable-sim-reserved-bits was given.
16008 if test "${enable_sim_reserved_bits+set}" = set; then :
16009 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
16011 *) as_fn_error $?
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16015 if test "x${enable_sim_reserved_bits}" != xno
; then
16016 sim_reserved_bits
=1
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018 $as_echo "yes" >&6; }
16020 sim_reserved_bits
=0
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16022 $as_echo "no" >&6; }
16025 cat >>confdefs.h
<<_ACEOF
16026 #define WITH_RESERVED_BITS $sim_reserved_bits
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16031 $as_echo_n "checking for sim cache size... " >&6; }
16033 # Check whether --enable-sim-scache was given.
16034 if test "${enable_sim_scache+set}" = set; then :
16035 enableval
=$enable_sim_scache; case "${enableval}" in
16037 no
) sim_scache
="0";;
16038 [0-9]*) sim_scache
="${enableval}";;
16039 *) as_fn_error $?
"\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16044 cat >>confdefs.h
<<_ACEOF
16045 #define WITH_SCACHE $sim_scache
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16049 $as_echo "$sim_scache" >&6; }
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
16052 $as_echo_n "checking number of sim cpus to support... " >&6; }
16053 default_sim_smp
="0"
16054 sim_smp
="$default_sim_smp"
16055 # Check whether --enable-sim-smp was given.
16056 if test "${enable_sim_smp+set}" = set; then :
16057 enableval
=$enable_sim_smp; case "${enableval}" in
16060 *) sim_smp
="$enableval";;
16063 IGEN_FLAGS_SMP
="-N ${sim_smp}"
16065 if test "x$sim_smp" = x0
; then :
16069 cat >>confdefs.h
<<_ACEOF
16070 #define WITH_SMP $sim_smp
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
16075 $as_echo "$sim_smp" >&6; }
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16078 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16080 # Check whether --enable-sim-stdio was given.
16081 if test "${enable_sim_stdio+set}" = set; then :
16082 enableval
=$enable_sim_stdio; case "${enableval}" in
16083 yes) sim_stdio
="DO_USE_STDIO";;
16084 no
) sim_stdio
="DONT_USE_STDIO";;
16085 *) as_fn_error $?
"Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16089 cat >>confdefs.h
<<_ACEOF
16090 #define WITH_STDIO $sim_stdio
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16094 $as_echo "$sim_stdio" >&6; }
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16097 $as_echo_n "checking for sim trace settings... " >&6; }
16098 sim_trace
="~TRACE_debug"
16099 # Check whether --enable-sim-trace was given.
16100 if test "${enable_sim_trace+set}" = set; then :
16101 enableval
=$enable_sim_trace; case "${enableval}" in
16102 yes) sim_trace
="-1";;
16103 no
) sim_trace
="0";;
16105 sim_trace
="'(${enableval})'";;
16108 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
16109 if test x
"$sim_trace" = x
; then
16110 sim_trace
="(TRACE_$x"
16112 sim_trace
="${sim_trace}|TRACE_$x"
16115 sim_trace
="$sim_trace)" ;;
16119 cat >>confdefs.h
<<_ACEOF
16120 #define WITH_TRACE $sim_trace
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16124 $as_echo "$sim_trace" >&6; }
16126 # Check whether --enable-werror was given.
16127 if test "${enable_werror+set}" = set; then :
16128 enableval
=$enable_werror; case "${enableval}" in
16129 yes | y
) ERROR_ON_WARNING
="yes" ;;
16130 no | n
) ERROR_ON_WARNING
="no" ;;
16131 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16136 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16137 ERROR_ON_WARNING
=yes
16141 if test "${ERROR_ON_WARNING}" = yes ; then
16142 WERROR_CFLAGS
="-Werror"
16145 build_warnings
="-Wall -Wpointer-arith
16146 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function
16147 -Wno-switch -Wno-char-subscripts
16148 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
16149 -Wno-sign-compare -Wno-error=maybe-uninitialized
16150 -Wno-error=deprecated-register
16151 -Wimplicit-fallthrough=5
16153 -Wmissing-declarations
16155 build_warnings
="$build_warnings
16156 -Wdeclaration-after-statement
16157 -Wdeprecated-non-prototype
16158 -Wimplicit-function-declaration
16160 -Wincompatible-function-pointer-types
16161 -Wincompatible-pointer-types
16163 -Wmisleading-indentation
16164 -Wmissing-parameter-type
16165 -Wmissing-prototypes
16166 -Wold-style-declaration
16167 -Wold-style-definition
16171 -Wstrict-prototypes
16172 -Wno-enum-conversion
16177 # Enable -Wno-format by default when using gcc on mingw since many
16178 # GCC versions complain about %I64.
16179 build_warnings
="$build_warnings -Wno-format" ;;
16181 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16182 # doesn't understand.
16183 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16184 # Solaris 11 <unistd.h> marks vfork deprecated.
16185 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16187 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16188 # but there's a special case for this below.
16189 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16192 # Check whether --enable-build-warnings was given.
16193 if test "${enable_build_warnings+set}" = set; then :
16194 enableval
=$enable_build_warnings; case "${enableval}" in
16196 no
) build_warnings
="-w";;
16197 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16198 build_warnings
="${build_warnings} ${t}";;
16199 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16200 build_warnings
="${t} ${build_warnings}";;
16201 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16203 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16204 echo "Setting compiler warning flags = $build_warnings" 6>&1
16207 # Check whether --enable-sim-build-warnings was given.
16208 if test "${enable_sim_build_warnings+set}" = set; then :
16209 enableval
=$enable_sim_build_warnings; case "${enableval}" in
16211 no
) build_warnings
="-w";;
16212 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16213 build_warnings
="${build_warnings} ${t}";;
16214 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16215 build_warnings
="${t} ${build_warnings}";;
16216 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16218 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16219 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16223 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16226 $as_echo_n "checking compiler warning flags... " >&6; }
16227 # Separate out the -Werror flag as some files just cannot be
16228 # compiled with it enabled.
16229 for w
in ${build_warnings}; do
16231 -Werr*) WERROR_CFLAGS
=-Werror ;;
16235 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16236 -Wformat-nonliteral)
16244 saved_CFLAGS
="$CFLAGS"
16245 CFLAGS
="$CFLAGS -Werror $wtest"
16246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16257 if ac_fn_c_try_compile
"$LINENO"; then :
16258 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16261 CFLAGS
="$saved_CFLAGS"
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16266 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-Wno-shadow=local is supported
" >&5
16269 $as_echo_n "checking whether
-Wno-shadow=local is supported...
" >&6; }
16270 w="-Wno-shadow=local"
16273 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16274 -Wformat-nonliteral)
16282 saved_CFLAGS="$CFLAGS"
16283 CFLAGS="$CFLAGS -Werror $wtest"
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16295 if ac_fn_c_try_compile "$LINENO"; then :
16296 SIM_CFLAG_WNO_SHADOW_LOCAL=-Wno-shadow=local
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16300 $as_echo "yes" >&6; }
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16304 $as_echo "no
" >&6; }
16306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307 CFLAGS="$saved_CFLAGS"
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-Wno-unused-but-set-variable is supported
" >&5
16310 $as_echo_n "checking whether
-Wno-unused-but-set-variable is supported...
" >&6; }
16311 w="-Wno-unused-but-set-variable"
16314 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16315 -Wformat-nonliteral)
16323 saved_CFLAGS="$CFLAGS"
16324 CFLAGS="$CFLAGS -Werror $wtest"
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16336 if ac_fn_c_try_compile "$LINENO"; then :
16337 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16341 $as_echo "yes" >&6; }
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16345 $as_echo "no
" >&6; }
16347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16348 CFLAGS="$saved_CFLAGS"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps
" >&5
16354 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps...
" >&6; }
16355 # Check whether --enable-sim-frv-trapdump was given.
16356 if test "${enable_sim_frv_trapdump+set}" = set; then :
16357 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16359 *) as_fn_error $? "\"Unknown value
$enableval passed to
--enable-sim-trapdump\"" "$LINENO" 5;;
16363 if test "x
${enable_sim_frv_trapdump}" = xyes; then
16364 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16366 $as_echo "yes" >&6; }
16368 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16370 $as_echo "no
" >&6; }
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget
" >&5
16376 $as_echo_n "checking mips subtarget...
" >&6; }
16377 SIM_MIPS_SUBTARGET=
16378 case ${target} in #(
16380 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16382 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
16384 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16386 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16388 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16390 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${SIM_MIPS_SUBTARGET:-none}" >&5
16395 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize
" >&5
16399 $as_echo_n "checking mips bitsize...
" >&6; }
16400 SIM_MIPS_BITSIZE=64
16401 case ${target} in #(
16403 SIM_MIPS_BITSIZE=64 ;; #(
16405 SIM_MIPS_BITSIZE=64 ;; #(
16407 SIM_MIPS_BITSIZE=64 ;; #(
16409 SIM_MIPS_BITSIZE=64 ;; #(
16411 SIM_MIPS_BITSIZE=32 ;; #(
16413 SIM_MIPS_BITSIZE=64 ;; #(
16415 SIM_MIPS_BITSIZE=32 ;; #(
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $SIM_MIPS_BITSIZE" >&5
16420 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize
" >&5
16424 $as_echo_n "checking mips fpu bitsize...
" >&6; }
16425 SIM_MIPS_FPU_BITSIZE=64
16426 case ${target} in #(
16428 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16430 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16432 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16434 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16436 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16438 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $SIM_MIPS_FPU_BITSIZE" >&5
16443 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16446 SIM_MIPS_GEN=SINGLE
16447 sim_mips_single_machine="-M mipsIV
"
16448 sim_mips_m16_machine="-M mips16
,mipsIII
"
16449 sim_mips_single_filter="32,64,f
"
16450 sim_mips_m16_filter="16"
16451 case ${target} in #(
16453 SIM_MIPS_GEN=SINGLE
16454 sim_mips_single_filter="32,f
"
16455 sim_mips_single_machine="-M r3900
" ;; #(
16458 sim_mips_single_machine="-M vr4100
"
16459 sim_mips_m16_machine="-M vr4100
" ;; #(
16462 sim_mips_multi_configs="\
16463 vr4100
:mipsIII
,mips16
,vr4100
:32,64:mips4100
,mips4111\
16464 vr4120
:mipsIII
,mips16
,vr4120
:32,64:mips4120\
16465 vr5000
:mipsIV
:32,64,f
:mips4300
,mips5000
,mips8000\
16466 vr5400
:mipsIV
,vr5400
:32,64,f
:mips5400\
16467 vr5500
:mipsIV
,vr5500
:32,64,f
:mips5500
"
16468 sim_mips_multi_default=mips5000 ;; #(
16469 mips*-sde-elf* | mips*-mti-elf*) :
16471 sim_mips_multi_configs="\
16472 micromips
:micromips64
,micromipsdsp
:32,64,f
:mips_micromips\
16473 mipsisa64r2
:mips64r2
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,mips3d
,smartmips
:32,64,f
:mipsisa32r2
,mipsisa64r2
,mipsisa32r5
,mipsisa64r5\
16474 mipsisa64r6
:mips64r6
:32,64,f
:mipsisa32r6
,mipsisa64r6
"
16475 sim_mips_multi_default=mipsisa64r2 ;; #(
16477 SIM_MIPS_GEN=M16 ;; #(
16480 sim_mips_multi_configs="\
16481 micromips
:micromips32
,micromipsdsp
:32,f
:mips_micromips\
16482 mips32r2
:mips32r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
:32,f
:mipsisa32r2
"
16483 sim_mips_multi_default=mipsisa32r2 ;; #(
16485 SIM_MIPS_GEN=SINGLE
16486 sim_mips_single_machine="-M mips32r6
"
16487 sim_mips_single_filter="32,f
" ;; #(
16490 sim_mips_single_machine="-M mips32
,mips16
,mips16e
,smartmips
"
16491 sim_mips_m16_machine="-M mips16
,mips16e
,mips32
"
16492 sim_mips_single_filter="32,f
" ;; #(
16495 sim_mips_single_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
"
16496 sim_mips_m16_machine="-M mips16
,mips16e
,mips64r2
" ;; #(
16498 SIM_MIPS_GEN=SINGLE
16499 sim_mips_single_machine="-M mips64r6
" ;; #(
16501 SIM_MIPS_GEN=SINGLE
16502 sim_mips_single_machine="-M mips64
,mips3d
,sb1
" ;; #(
16505 sim_mips_single_machine="-M mips64
,mips3d
,mips16
,mips16e
,mdmx
"
16506 sim_mips_m16_machine="-M mips16
,mips16e
,mips64
" ;; #(
16509 sim_mips_single_machine="-M mipsIII
,mips16
"
16510 sim_mips_m16_machine="-M mips16
,mipsIII
"
16511 sim_mips_single_filter="32,f
" ;; #(
16513 SIM_MIPS_GEN=SINGLE
16514 sim_mips_single_filter="32,f
" ;; #(
16519 SIM_MIPS_IGEN_ITABLE_FLAGS=
16520 SIM_MIPS_MULTI_SRC=
16521 SIM_MIPS_MULTI_OBJ=
16522 SIM_MIPS_MULTI_IGEN_CONFIGS=
16523 if test "x
$SIM_MIPS_GEN" = x"MULTI
"; then :
16524 if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16525 as_fn_error $? "Error
in configure.ac
: MULTI simulator not
set up correctly
" "$LINENO" 5
16528 as_dir=mips; as_fn_mkdir_p
16529 rm -f mips/multi-include.h mips/multi-run.c
16530 sim_mips_seen_default=no
16532 cat << __EOF__ > mips/multi-run.c
16533 /* Main entry point for MULTI simulators.
16534 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16536 This program is free software; you can redistribute it and/or modify
16537 it under the terms of the GNU General Public License as published by
16538 the Free Software Foundation; either version 3 of the License, or
16539 (at your option) any later version.
16541 This program is distributed in the hope that it will be useful,
16542 but WITHOUT ANY WARRANTY; without even the implied warranty of
16543 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16544 GNU General Public License for more details.
16546 You should have received a copy of the GNU General Public License
16547 along with this program. If not, see <http://www.gnu.org/licenses/>.
16551 This file was generated by sim/mips/configure. */
16553 #include "sim-main.h
"
16554 #include "multi-include.h
"
16555 #include "bfd
/elf-bfd.h
"
16556 #include "bfd
/elfxx-mips.h
"
16557 #include "elf
/mips.h
"
16563 sim_engine_run (SIM_DESC sd,
16566 int signal) /* ignore */
16570 if (STATE_ARCHITECTURE (sd) == NULL)
16571 mach = bfd_mach_${sim_mips_multi_default};
16572 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16573 & EF_MIPS_ARCH_ASE_MICROMIPS)
16574 mach = bfd_mach_mips_micromips;
16577 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16579 mach = STATE_ARCHITECTURE (SD)->mach;
16586 for fc in ${sim_mips_multi_configs}; do
16588 c=`echo ${fc} | sed 's/:[^:]*$//'`
16589 bfdmachs=`echo ${fc} | sed 's/.*://'`
16590 name=`echo ${c} | sed 's/:.*//'`
16591 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16592 filter=`echo ${c} | sed 's/.*://'`
16594 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
16600 as_fn_append SIM_MIPS_MULTI_SRC " mips
/m16
${name}_run.c
"
16601 as_fn_append SIM_MIPS_MULTI_OBJ " mips
/m16
${name}_run.o
"
16602 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
16604 *:*micromips32*:*) :
16605 ws="micromips_m32 micromips16 micromips32
"
16607 as_fn_append SIM_MIPS_MULTI_SRC " mips
/micromips
${name}_run.c
"
16608 as_fn_append SIM_MIPS_MULTI_OBJ " mips
/micromips
${name}_run.o
"
16609 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
16611 *:*micromips64*:*) :
16612 ws="micromips_m64 micromips16 micromips64
"
16614 as_fn_append SIM_MIPS_MULTI_SRC " mips
/micromips
${name}_run.c
"
16615 as_fn_append SIM_MIPS_MULTI_OBJ " mips
/micromips
${name}_run.o
"
16616 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
16623 for base in engine icache idecode model semantics support; do
16624 as_fn_append SIM_MIPS_MULTI_SRC " mips
/${w}${name}_${base}.c
"
16625 as_fn_append SIM_MIPS_MULTI_SRC " mips
/${w}${name}_${base}.h
"
16626 as_fn_append SIM_MIPS_MULTI_OBJ " mips
/${w}${name}_${base}.o
"
16628 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
16631 echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
16633 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16634 echo " case bfd_mach_${mach}:" >> mips
/multi-run.c
16635 if test "x$mach" = x
"${sim_mips_multi_default}"; then :
16636 echo " default:" >> mips
/multi-run.c
16637 sim_mips_seen_default
=yes
16641 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16642 >> mips
/multi-run.c
16643 echo " break;" >> mips
/multi-run.c
16646 if test "x$sim_mips_seen_default" = xno
; then :
16647 as_fn_error $?
"Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16650 cat << __EOF__ >> mips/multi-run.c
16656 SIM_MIPS_MULTI_SRC
=mips
/doesnt-exist.c
16657 SIM_MIPS_IGEN_ITABLE_FLAGS
='$(SIM_MIPS_SINGLE_FLAGS)'
16658 if test "x$SIM_MIPS_GEN" = x
"M16"; then :
16659 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
' $(SIM_MIPS_M16_FLAGS)'
16663 SIM_MIPS_SINGLE_FLAGS
="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
16664 SIM_MIPS_M16_FLAGS
="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
16672 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16673 SIM_MIPS_GEN_MODE_SINGLE_TRUE
=
16674 SIM_MIPS_GEN_MODE_SINGLE_FALSE
='#'
16676 SIM_MIPS_GEN_MODE_SINGLE_TRUE
='#'
16677 SIM_MIPS_GEN_MODE_SINGLE_FALSE
=
16680 if test "$SIM_MIPS_GEN" = "M16"; then
16681 SIM_MIPS_GEN_MODE_M16_TRUE
=
16682 SIM_MIPS_GEN_MODE_M16_FALSE
='#'
16684 SIM_MIPS_GEN_MODE_M16_TRUE
='#'
16685 SIM_MIPS_GEN_MODE_M16_FALSE
=
16688 if test "$SIM_MIPS_GEN" = "MULTI"; then
16689 SIM_MIPS_GEN_MODE_MULTI_TRUE
=
16690 SIM_MIPS_GEN_MODE_MULTI_FALSE
='#'
16692 SIM_MIPS_GEN_MODE_MULTI_TRUE
='#'
16693 SIM_MIPS_GEN_MODE_MULTI_FALSE
=
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16698 $as_echo_n "checking riscv bitsize... " >&6; }
16699 SIM_RISCV_BITSIZE
=64
16702 SIM_RISCV_BITSIZE
=32 ;; #(
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
16707 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16711 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16712 # Check whether --enable-sim-rx-cycle-accurate was given.
16713 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16714 enableval
=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16716 *) as_fn_error $?
"bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16720 if test "x${enable_sim_rx_cycle_accurate}" != xno
; then
16721 SIM_RX_CYCLE_ACCURATE_FLAGS
="-DCYCLE_ACCURATE"
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16723 $as_echo "yes" >&6; }
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16726 $as_echo "no" >&6; }
16731 ac_config_files
="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16733 cat >confcache
<<\_ACEOF
16734 # This file is a shell script that caches the results of configure
16735 # tests run on this system so they can be shared between configure
16736 # scripts and configure runs, see configure's option --config-cache.
16737 # It is not useful on other systems. If it contains results you don't
16738 # want to keep, you may remove or edit it.
16740 # config.status only pays attention to the cache file if you give it
16741 # the --recheck option to rerun configure.
16743 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16744 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16745 # following values.
16749 # The following way of writing the cache mishandles newlines in values,
16750 # but we know of no workaround that is simple, portable, and efficient.
16751 # So, we kill variables containing newlines.
16752 # Ultrix sh set writes to stderr and can't be redirected directly,
16753 # and sets the high bit in the cache file unless we assign to the vars.
16755 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16756 eval ac_val
=\$
$ac_var
16760 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16764 _ | IFS | as_nl
) ;; #(
16765 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16766 *) { eval $ac_var=; unset $ac_var;} ;;
16772 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16773 *${as_nl}ac_space
=\
*)
16774 # `set' does not quote correctly, so add quotes: double-quote
16775 # substitution turns \\\\ into \\, and sed turns \\ into \.
16778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16781 # `set' quotes correctly as required by POSIX, so do not add quotes.
16782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16793 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16795 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16796 if test -w "$cache_file"; then
16797 if test "x$cache_file" != "x/dev/null"; then
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16799 $as_echo "$as_me: updating cache $cache_file" >&6;}
16800 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16801 cat confcache
>"$cache_file"
16803 case $cache_file in #(
16805 mv -f confcache
"$cache_file"$$
&&
16806 mv -f "$cache_file"$$
"$cache_file" ;; #(
16808 mv -f confcache
"$cache_file" ;;
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16814 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16819 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16820 # Let make expand exec_prefix.
16821 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16823 DEFS
=-DHAVE_CONFIG_H
16828 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16829 # 1. Remove the extension, and $U if already installed.
16830 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16831 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16833 # will be set to the directory where LIBOBJS objects are built.
16834 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16835 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16837 LIBOBJS
=$ac_libobjs
16839 LTLIBOBJS
=$ac_ltlibobjs
16843 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16844 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16848 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16849 if test -n "$am_sleep_pid"; then
16850 # Hide warnings about reused PIDs.
16851 wait $am_sleep_pid 2>/dev
/null
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16854 $as_echo "done" >&6; }
16855 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16856 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16859 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16860 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16863 if test -n "$EXEEXT"; then
16865 am__EXEEXT_FALSE
='#'
16867 am__EXEEXT_TRUE
='#'
16871 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16872 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16875 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16876 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16879 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16880 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16883 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16884 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16887 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16888 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16891 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16892 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16895 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16896 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16899 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16900 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16903 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16904 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16907 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16908 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16911 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16912 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16915 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16916 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16919 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16920 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16923 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16924 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16927 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16928 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16931 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16932 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16935 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16936 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16939 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16940 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16943 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16944 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16947 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16948 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16951 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16952 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16955 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16956 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16959 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16960 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16963 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16964 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16967 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16968 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16971 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16972 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16975 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16976 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16979 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16980 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16983 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16984 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16987 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16988 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16991 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16992 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16995 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16996 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16999 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
17000 as_fn_error $?
"conditional \"ENABLE_SIM\" was never defined.
17001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17003 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
17004 as_fn_error $?
"conditional \"SIM_ENABLE_HW\" was never defined.
17005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17007 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
17008 as_fn_error $?
"conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
17009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17011 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
17012 as_fn_error $?
"conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
17013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17015 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
17016 as_fn_error $?
"conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
17017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17020 : "${CONFIG_STATUS=./config.status}"
17022 ac_clean_files_save
=$ac_clean_files
17023 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17025 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17027 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17029 # Generated by $as_me.
17030 # Run this file to recreate the current configuration.
17031 # Compiler output produced by configure, useful for debugging
17032 # configure, is in config.log if it exists.
17035 ac_cs_recheck=false
17038 SHELL=\${CONFIG_SHELL-$SHELL}
17041 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17042 ## -------------------- ##
17043 ## M4sh Initialization. ##
17044 ## -------------------- ##
17046 # Be more Bourne compatible
17047 DUALCASE
=1; export DUALCASE
# for MKS sh
17048 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17052 # is contrary to our usage. Disable this feature.
17053 alias -g '${1+"$@"}'='"$@"'
17054 setopt NO_GLOB_SUBST
17056 case `(set -o) 2>/dev/null` in #(
17068 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17069 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17070 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17072 # Prefer a ksh shell builtin over an external printf program on Solaris,
17073 # but without wasting forks for bash or zsh.
17074 if test -z "$BASH_VERSION$ZSH_VERSION" \
17075 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17076 as_echo='print
-r --'
17077 as_echo_n='print
-rn --'
17078 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17079 as_echo='printf %s
\n'
17080 as_echo_n='printf %s
'
17082 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17083 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17084 as_echo_n='/usr
/ucb
/echo -n'
17086 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17087 as_echo_n_body='eval
17091 expr "X$arg" : "X\\(.*\\)$as_nl";
17092 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17094 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17096 export as_echo_n_body
17097 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17099 export as_echo_body
17100 as_echo='sh
-c $as_echo_body as_echo
'
17103 # The user is always right.
17104 if test "${PATH_SEPARATOR+set}" != set; then
17106 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17107 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17114 # We need space, tab and new line, in precisely that order. Quoting is
17115 # there to prevent editors from complaining about space-tab.
17116 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17117 # splitting by setting IFS to empty value.)
17120 # Find who we are. Look in the path if we contain no directory separator.
17123 *[\\/]* ) as_myself=$0 ;;
17124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17125 for as_dir in $PATH
17128 test -z "$as_dir" && as_dir=.
17129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17135 # We did not find ourselves, most probably we were run as `sh COMMAND'
17136 # in which case we are not to be found in the path.
17137 if test "x$as_myself" = x
; then
17140 if test ! -f "$as_myself"; then
17141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17145 # Unset variables that we do not need and which cause bugs (e.g. in
17146 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17147 # suppresses any "Segmentation fault" message there. '((' could
17148 # trigger a bug in pdksh 5.2.14.
17149 for as_var
in BASH_ENV ENV MAIL MAILPATH
17150 do eval test x\
${$as_var+set} = xset \
17151 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17164 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17167 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17168 # ----------------------------------------
17169 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17170 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17171 # script with STATUS, using 1 if that was 0.
17174 as_status
=$1; test $as_status -eq 0 && as_status
=1
17176 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17179 $as_echo "$as_me: error: $2" >&2
17180 as_fn_exit
$as_status
17184 # as_fn_set_status STATUS
17185 # -----------------------
17186 # Set $? to STATUS, without forking.
17187 as_fn_set_status
()
17190 } # as_fn_set_status
17192 # as_fn_exit STATUS
17193 # -----------------
17194 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17198 as_fn_set_status
$1
17204 # Portably unset VAR.
17207 { eval $1=; unset $1;}
17209 as_unset
=as_fn_unset
17210 # as_fn_append VAR VALUE
17211 # ----------------------
17212 # Append the text in VALUE to the end of the definition contained in VAR. Take
17213 # advantage of any shell optimizations that allow amortized linear growth over
17214 # repeated appends, instead of the typical quadratic growth present in naive
17216 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17217 eval 'as_fn_append ()
17228 # as_fn_arith ARG...
17229 # ------------------
17230 # Perform arithmetic evaluation on the ARGs, and store the result in the
17231 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17232 # must be portable across $(()) and expr.
17233 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17234 eval 'as_fn_arith ()
17241 as_val
=`expr "$@" || test $? -eq 1`
17246 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17247 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17253 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17254 as_basename
=basename
17259 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17265 as_me
=`$as_basename -- "$0" ||
17266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17267 X"$0" : 'X\(//\)$' \| \
17268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17270 sed '/^.*\/\([^/][^/]*\)\/*$/{
17284 # Avoid depending upon Character Ranges.
17285 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17286 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17287 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17288 as_cr_digits
='0123456789'
17289 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17291 ECHO_C
= ECHO_N
= ECHO_T
=
17292 case `echo -n x` in #(((((
17294 case `echo 'xy\c'` in
17295 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17297 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17304 rm -f conf$$ conf$$.exe conf$$.
file
17305 if test -d conf$$.dir
; then
17306 rm -f conf$$.dir
/conf$$.
file
17309 mkdir conf$$.dir
2>/dev
/null
17311 if (echo >conf$$.
file) 2>/dev
/null
; then
17312 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17314 # ... but there are two gotchas:
17315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17317 # In both cases, we have to default to `cp -pR'.
17318 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17320 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17328 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17329 rmdir conf$$.dir
2>/dev
/null
17334 # Create "$as_dir" as a directory, including parents if necessary.
17339 -*) as_dir
=.
/$as_dir;;
17341 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17345 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17346 *) as_qdir
=$as_dir;;
17348 as_dirs
="'$as_qdir' $as_dirs"
17349 as_dir
=`$as_dirname -- "$as_dir" ||
17350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17351 X"$as_dir" : 'X\(//\)[^/]' \| \
17352 X"$as_dir" : 'X\(//\)$' \| \
17353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17354 $as_echo X"$as_dir" |
17355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17359 /^X\(\/\/\)[^/].*/{
17372 test -d "$as_dir" && break
17374 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17375 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17379 if mkdir
-p .
2>/dev
/null
; then
17380 as_mkdir_p
='mkdir -p "$as_dir"'
17382 test -d .
/-p && rmdir .
/-p
17387 # as_fn_executable_p FILE
17388 # -----------------------
17389 # Test if FILE is an executable regular file.
17390 as_fn_executable_p
()
17392 test -f "$1" && test -x "$1"
17393 } # as_fn_executable_p
17394 as_test_x
='test -x'
17395 as_executable_p
=as_fn_executable_p
17397 # Sed expression to map a string onto a valid CPP name.
17398 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17400 # Sed expression to map a string onto a valid variable name.
17401 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17405 ## ----------------------------------- ##
17406 ## Main body of $CONFIG_STATUS script. ##
17407 ## ----------------------------------- ##
17409 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17412 # Save the log message, to keep $0 and so on meaningful, and to
17413 # report actual input values of CONFIG_FILES etc. instead of their
17414 # values after options handling.
17416 This file was extended by sim $as_me 0, which was
17417 generated by GNU Autoconf 2.69. Invocation command line was
17419 CONFIG_FILES = $CONFIG_FILES
17420 CONFIG_HEADERS = $CONFIG_HEADERS
17421 CONFIG_LINKS = $CONFIG_LINKS
17422 CONFIG_COMMANDS = $CONFIG_COMMANDS
17425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17430 case $ac_config_files in *"
17431 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17434 case $ac_config_headers in *"
17435 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17440 # Files that config.status was made for.
17441 config_files="$ac_config_files"
17442 config_headers="$ac_config_headers"
17443 config_commands="$ac_config_commands"
17447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17449 \`$as_me' instantiates files and other configuration actions
17450 from templates according to the current configuration. Unless the files
17451 and actions are specified as TAGs, all are instantiated by default.
17453 Usage: $0 [OPTION]... [TAG]...
17455 -h, --help print this help, then exit
17456 -V, --version print version number and configuration settings, then exit
17457 --config print configuration, then exit
17458 -q, --quiet, --silent
17459 do not print progress messages
17460 -d, --debug don't remove temporary files
17461 --recheck update $as_me by reconfiguring in the same conditions
17462 --file=FILE[:TEMPLATE]
17463 instantiate the configuration file FILE
17464 --header=FILE[:TEMPLATE]
17465 instantiate the configuration header FILE
17467 Configuration files:
17470 Configuration headers:
17473 Configuration commands:
17476 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17477 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17481 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17483 sim config.status 0
17484 configured by $0, generated by GNU Autoconf 2.69,
17485 with options \\"\$ac_cs_config\\"
17487 Copyright (C) 2012 Free Software Foundation, Inc.
17488 This config.status script is free software; the Free Software Foundation
17489 gives unlimited permission to copy, distribute and modify it."
17496 test -n "\$AWK" || AWK=awk
17499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17500 # The default lists apply if the user does not specify any file.
17506 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17507 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17511 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17523 # Handling of the options.
17524 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17526 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17527 $as_echo "$ac_cs_version"; exit ;;
17528 --config |
--confi |
--conf |
--con |
--co |
--c )
17529 $as_echo "$ac_cs_config"; exit ;;
17530 --debug |
--debu |
--deb |
--de |
--d |
-d )
17532 --file |
--fil |
--fi |
--f )
17535 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17536 '') as_fn_error $?
"missing file argument" ;;
17538 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17539 ac_need_defaults
=false
;;
17540 --header |
--heade |
--head |
--hea )
17543 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17545 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17546 ac_need_defaults
=false
;;
17548 # Conflict between --help and --header
17549 as_fn_error $?
"ambiguous option: \`$1'
17550 Try \`$0 --help' for more information.";;
17551 --help |
--hel |
-h )
17552 $as_echo "$ac_cs_usage"; exit ;;
17553 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17554 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17557 # This is an error.
17558 -*) as_fn_error $?
"unrecognized option: \`$1'
17559 Try \`$0 --help' for more information." ;;
17561 *) as_fn_append ac_config_targets
" $1"
17562 ac_need_defaults
=false
;;
17568 ac_configure_extra_args
=
17570 if $ac_cs_silent; then
17572 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17577 if \$ac_cs_recheck; then
17578 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17580 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17581 CONFIG_SHELL='$SHELL'
17582 export CONFIG_SHELL
17587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17592 ## Running $as_me. ##
17598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17604 # The HP-UX ksh and POSIX shell print the target directory to stdout
17605 # if CDPATH is set.
17606 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17608 sed_quote_subst='$sed_quote_subst'
17609 double_quote_subst='$double_quote_subst'
17610 delay_variable_subst='$delay_variable_subst'
17611 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17612 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17613 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17614 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17615 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17616 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17617 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17618 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17619 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17620 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17621 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17622 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17623 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17624 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17625 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17626 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17627 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17628 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17629 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17630 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17631 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17632 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17633 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17634 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17635 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17636 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17637 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17638 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17639 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17640 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17641 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17642 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17643 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17644 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17645 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17646 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17647 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17648 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17649 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17650 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17651 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17652 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17653 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17654 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17655 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17656 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17657 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17658 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17659 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"`'
17660 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17661 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17662 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17663 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17664 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17665 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17666 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17667 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17668 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17669 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17670 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17671 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17672 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17673 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17674 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17675 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17676 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17677 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17678 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17679 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17680 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17681 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17682 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17683 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17684 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17685 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17686 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17687 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17688 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17689 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17690 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17691 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17692 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17693 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17694 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17695 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17696 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17697 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17698 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17699 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17700 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17701 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17702 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17703 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17704 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17705 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17706 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17707 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17708 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17709 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17710 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17711 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17712 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17713 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17714 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17715 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17716 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17717 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17718 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17719 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17720 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17721 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17722 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17723 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17724 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17725 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17726 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17727 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17728 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17729 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17730 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17733 LTCFLAGS='$LTCFLAGS'
17734 compiler='$compiler_DEFAULT'
17736 # A function that is used when there is no print builtin or printf.
17737 func_fallback_echo ()
17739 eval 'cat <<_LTECHO_EOF
17744 # Quote evaled strings.
17758 deplibs_check_method \
17767 lt_cv_sys_global_symbol_pipe \
17768 lt_cv_sys_global_symbol_to_cdecl \
17769 lt_cv_sys_global_symbol_to_c_name_address \
17770 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17771 lt_prog_compiler_no_builtin_flag \
17772 lt_prog_compiler_wl \
17773 lt_prog_compiler_pic \
17774 lt_prog_compiler_static \
17775 lt_cv_prog_compiler_c_o \
17783 export_dynamic_flag_spec \
17784 whole_archive_flag_spec \
17785 compiler_needs_object \
17787 allow_undefined_flag \
17788 no_undefined_flag \
17789 hardcode_libdir_flag_spec \
17790 hardcode_libdir_flag_spec_ld \
17791 hardcode_libdir_separator \
17796 variables_saved_for_relink \
17798 library_names_spec \
17800 install_override_mode \
17804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17805 *[\\\\\\\`\\"\\\$]*)
17806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17814 # Double-quote double-evaled strings.
17815 for var in reload_cmds \
17816 old_postinstall_cmds \
17817 old_postuninstall_cmds \
17819 extract_expsyms_cmds \
17820 old_archive_from_new_cmds \
17821 old_archive_from_expsyms_cmds \
17823 archive_expsym_cmds \
17825 module_expsym_cmds \
17826 export_symbols_cmds \
17829 postuninstall_cmds \
17831 sys_lib_search_path_spec \
17832 sys_lib_dlsearch_path_spec; do
17833 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17834 *[\\\\\\\`\\"\\\$]*)
17835 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17838 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17843 ac_aux_dir='$ac_aux_dir'
17844 xsi_shell='$xsi_shell'
17845 lt_shell_append='$lt_shell_append'
17847 # See if we are running on zsh, and set the options which allow our
17848 # commands through without removal of \ escapes INIT.
17849 if test -n "\${ZSH_VERSION+set}" ; then
17850 setopt NO_GLOB_SUBST
17856 TIMESTAMP='$TIMESTAMP'
17862 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17868 # Handling of arguments.
17869 for ac_config_target
in $ac_config_targets
17871 case $ac_config_target in
17872 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17873 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17874 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17875 "aarch64/.gdbinit") CONFIG_FILES
="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17876 "arm/.gdbinit") CONFIG_FILES
="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17877 "avr/.gdbinit") CONFIG_FILES
="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17878 "bfin/.gdbinit") CONFIG_FILES
="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17879 "bpf/.gdbinit") CONFIG_FILES
="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17880 "cr16/.gdbinit") CONFIG_FILES
="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17881 "cris/.gdbinit") CONFIG_FILES
="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17882 "d10v/.gdbinit") CONFIG_FILES
="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17883 "frv/.gdbinit") CONFIG_FILES
="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17884 "ft32/.gdbinit") CONFIG_FILES
="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17885 "h8300/.gdbinit") CONFIG_FILES
="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17886 "iq2000/.gdbinit") CONFIG_FILES
="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17887 "lm32/.gdbinit") CONFIG_FILES
="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17888 "m32c/.gdbinit") CONFIG_FILES
="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17889 "m32r/.gdbinit") CONFIG_FILES
="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17890 "m68hc11/.gdbinit") CONFIG_FILES
="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17891 "mcore/.gdbinit") CONFIG_FILES
="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17892 "microblaze/.gdbinit") CONFIG_FILES
="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17893 "mips/.gdbinit") CONFIG_FILES
="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17894 "mn10300/.gdbinit") CONFIG_FILES
="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17895 "moxie/.gdbinit") CONFIG_FILES
="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17896 "msp430/.gdbinit") CONFIG_FILES
="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17897 "or1k/.gdbinit") CONFIG_FILES
="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17898 "ppc/.gdbinit") CONFIG_FILES
="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17899 "pru/.gdbinit") CONFIG_FILES
="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17900 "riscv/.gdbinit") CONFIG_FILES
="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17901 "rl78/.gdbinit") CONFIG_FILES
="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17902 "rx/.gdbinit") CONFIG_FILES
="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17903 "sh/.gdbinit") CONFIG_FILES
="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17904 "erc32/.gdbinit") CONFIG_FILES
="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17905 "v850/.gdbinit") CONFIG_FILES
="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17906 "example-synacor/.gdbinit") CONFIG_FILES
="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17907 "arch-subdir.mk") CONFIG_FILES
="$CONFIG_FILES arch-subdir.mk" ;;
17908 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17909 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17911 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17916 # If the user did not use the arguments to specify the items to instantiate,
17917 # then the envvar interface is used. Set only those that are not.
17918 # We use the long form for the default assignment because of an extremely
17919 # bizarre bug on SunOS 4.1.3.
17920 if $ac_need_defaults; then
17921 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17922 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17923 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17926 # Have a temporary directory for convenience. Make it in the build tree
17927 # simply because there is no reason against having it here, and in addition,
17928 # creating and moving files from /tmp can sometimes cause problems.
17929 # Hook for its removal unless debugging.
17930 # Note that there is a small window in which the directory will not be cleaned:
17931 # after its creation but before its name has been assigned to `$tmp'.
17935 trap 'exit_status=$?
17936 : "${ac_tmp:=$tmp}"
17937 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17939 trap 'as_fn_exit 1' 1 2 13 15
17941 # Create a (secure) tmp directory for tmp files.
17944 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17948 tmp
=.
/conf$$
-$RANDOM
17949 (umask 077 && mkdir
"$tmp")
17950 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17953 # Set up the scripts for CONFIG_FILES section.
17954 # No need to generate them if there are no CONFIG_FILES.
17955 # This happens for instance with `./config.status config.h'.
17956 if test -n "$CONFIG_FILES"; then
17959 ac_cr
=`echo X | tr X '\015'`
17960 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17961 # But we know of no other shell where ac_cr would be empty at this
17962 # point, so we can use a bashism as a fallback.
17963 if test "x$ac_cr" = x
; then
17964 eval ac_cr
=\$
\'\\r
\'
17966 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17967 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17970 ac_cs_awk_cr
=$ac_cr
17973 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17978 echo "cat >conf$$subs.awk <<_ACEOF" &&
17979 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17981 } >conf$$subs.sh ||
17982 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17983 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17985 for ac_last_try in false false false false false :; do
17986 . ./conf$$subs.sh ||
17987 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17989 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17990 if test $ac_delim_n = $ac_delim_num; then
17992 elif $ac_last_try; then
17993 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17995 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17998 rm -f conf$$subs.sh
18000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18001 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18005 s/^/S["/; s
/!.
*/"]=/
18015 s/\(.\{148\}\)..*/\1/
18017 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18022 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18029 s/\(.\{148\}\)..*/\1/
18031 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18035 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18040 ' <conf$$subs.awk | sed '
18045 ' >>$CONFIG_STATUS || ac_write_fail=1
18046 rm -f conf$$subs.awk
18047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18049 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18050 for (key in S) S_is_set[key] = 1
18056 nfields = split(line, field, "@
")
18058 len = length(field[1])
18059 for (i = 2; i < nfields; i++) {
18061 keylen = length(key)
18062 if (S_is_set[key]) {
18064 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18065 len += length(value) + length(field[++i])
18076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18077 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18078 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18081 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18082 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18085 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18086 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18087 # trailing colons and then remove the whole line if VPATH becomes empty
18088 # (actually we leave an empty line to preserve line numbers).
18089 if test "x
$srcdir" = x.; then
18090 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18109 fi # test -n "$CONFIG_FILES"
18111 # Set up the scripts for CONFIG_HEADERS section.
18112 # No need to generate them if there are no CONFIG_HEADERS.
18113 # This happens for instance with `./config.status Makefile'.
18114 if test -n "$CONFIG_HEADERS"; then
18115 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18119 # Transform confdefs.h into an awk script `defines.awk', embedded as
18120 # here-document in config.status, that substitutes the proper values into
18121 # config.h.in to produce config.h.
18123 # Create a delimiter string that does not exist in confdefs.h, to ease
18124 # handling of long lines.
18126 for ac_last_try in false false :; do
18127 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18128 if test -z "$ac_tt"; then
18130 elif $ac_last_try; then
18131 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18133 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18137 # For the awk script, D is an array of macro values keyed by name,
18138 # likewise P contains macro parameters if any. Preserve backslash
18139 # newline sequences.
18141 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18143 s/.\{148\}/&'"$ac_delim"'/g
18146 s/^[ ]*#[ ]*define[ ][ ]*/ /
18153 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18155 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18159 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18160 D["\
1"]=" \
3\\\\\\n
"\\/p
18162 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18167 s/.\{148\}/&'"$ac_delim"'/g
18172 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18175 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18177 ' <confdefs.h | sed '
18178 s/'"$ac_delim"'/"\\\
18179 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18182 for (key in D) D_is_set[key] = 1
18185 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18187 split(line, arg, " ")
18188 if (arg[1] == "#") {
18192 defundef
= substr
(arg
[1], 2)
18195 split(mac1
, mac2
, "(") #)
18197 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18198 if (D_is_set
[macro
]) {
18199 # Preserve the white space surrounding the "#".
18200 print prefix
"define", macro P
[macro
] D
[macro
]
18203 # Replace #undef with comments. This is necessary, for example,
18204 # in the case of _POSIX_SOURCE, which is predefined and required
18205 # on some systems where configure will not decide to define it.
18206 if (defundef
== "undef") {
18207 print
"/*", prefix defundef
, macro
, "*/"
18215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18216 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18217 fi # test -n "$CONFIG_HEADERS"
18220 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18225 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18227 case $ac_mode$ac_tag in
18229 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18230 :[FH
]-) ac_tag
=-:-;;
18231 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18248 -) ac_f
="$ac_tmp/stdin";;
18249 *) # Look for the file first in the build tree, then in the source tree
18250 # (if the path is not absolute). The absolute path cannot be DOS-style,
18251 # because $ac_f cannot contain `:'.
18255 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18257 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18259 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18260 as_fn_append ac_file_inputs
" '$ac_f'"
18263 # Let's still pretend it is `configure' which instantiates (i.e., don't
18264 # use $as_me), people would be surprised to read:
18265 # /* config.h. Generated by config.status. */
18266 configure_input
='Generated from '`
18267 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18269 if test x
"$ac_file" != x-
; then
18270 configure_input
="$ac_file. $configure_input"
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18272 $as_echo "$as_me: creating $ac_file" >&6;}
18274 # Neutralize special characters interpreted by sed in replacement strings.
18275 case $configure_input in #(
18276 *\
&* |
*\|
* |
*\\* )
18277 ac_sed_conf_input
=`$as_echo "$configure_input" |
18278 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18279 *) ac_sed_conf_input
=$configure_input;;
18283 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18284 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18289 ac_dir
=`$as_dirname -- "$ac_file" ||
18290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18291 X"$ac_file" : 'X\(//\)[^/]' \| \
18292 X"$ac_file" : 'X\(//\)$' \| \
18293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18294 $as_echo X"$ac_file" |
18295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18299 /^X\(\/\/\)[^/].*/{
18312 as_dir
="$ac_dir"; as_fn_mkdir_p
18316 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18318 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18319 # A ".." for each directory in $ac_dir_suffix.
18320 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18321 case $ac_top_builddir_sub in
18322 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18323 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18326 ac_abs_top_builddir
=$ac_pwd
18327 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18328 # for backward compatibility:
18329 ac_top_builddir
=$ac_top_build_prefix
18332 .
) # We are building in place.
18334 ac_top_srcdir
=$ac_top_builddir_sub
18335 ac_abs_top_srcdir
=$ac_pwd ;;
18336 [\\/]* | ?
:[\\/]* ) # Absolute name.
18337 ac_srcdir
=$srcdir$ac_dir_suffix;
18338 ac_top_srcdir
=$srcdir
18339 ac_abs_top_srcdir
=$srcdir ;;
18340 *) # Relative name.
18341 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18342 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18343 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18345 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18355 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18356 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18358 ac_MKDIR_P
=$MKDIR_P
18360 [\\/$
]* | ?
:[\\/]* ) ;;
18361 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18366 # If the template does not know about datarootdir, expand it.
18367 # FIXME: This hack should be removed a few years after 2.60.
18368 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18379 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18380 *datarootdir
*) ac_datarootdir_seen
=yes;;
18381 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18383 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18386 ac_datarootdir_hack='
18387 s&@datadir@&$datadir&g
18388 s&@docdir@&$docdir&g
18389 s&@infodir@&$infodir&g
18390 s&@localedir@&$localedir&g
18391 s&@mandir@&$mandir&g
18392 s&\\\${datarootdir}&$datarootdir&g' ;;
18396 # Neutralize VPATH when `$srcdir' = `.'.
18397 # Shell code in configure.ac might set extrasub.
18398 # FIXME: do we really want to maintain this feature?
18399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18400 ac_sed_extra="$ac_vpsub
18403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18405 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18406 s|@configure_input@|
$ac_sed_conf_input|
;t t
18407 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18408 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18409 s
&@srcdir@
&$ac_srcdir&;t t
18410 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18411 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18412 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18413 s
&@builddir@
&$ac_builddir&;t t
18414 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18415 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18416 s
&@INSTALL@
&$ac_INSTALL&;t t
18417 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18418 $ac_datarootdir_hack
18420 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18421 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18423 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18424 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18425 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18426 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18428 which seems to be undefined. Please make sure it is defined" >&5
18429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18430 which seems to be undefined. Please make sure it is defined" >&2;}
18432 rm -f "$ac_tmp/stdin"
18434 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18435 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18443 if test x"$ac_file" != x-; then
18445 $as_echo "/* $configure_input */" \
18446 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18447 } >"$ac_tmp/config.h" \
18448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18449 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18454 mv "$ac_tmp/config.h" "$ac_file" \
18455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18458 $as_echo "/* $configure_input */" \
18459 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18460 || as_fn_error $? "could not create -" "$LINENO" 5
18462 # Compute "$ac_file"'s index
in $config_headers.
18465 for _am_header
in $config_headers :; do
18466 case $_am_header in
18467 $_am_arg |
$_am_arg:* )
18470 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18473 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18474 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18475 X"$_am_arg" : 'X\(//\)[^/]' \| \
18476 X"$_am_arg" : 'X\(//\)$' \| \
18477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18478 $as_echo X"$_am_arg" |
18479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18483 /^X\(\/\/\)[^/].*/{
18495 s/.*/./; q'`/stamp-h
$_am_stamp_count
18498 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18499 $as_echo "$as_me: executing $ac_file commands" >&6;}
18504 case $ac_file$ac_mode in
18507 # See if we are running on zsh, and set the options which allow our
18508 # commands through without removal of \ escapes.
18509 if test -n "${ZSH_VERSION+set}" ; then
18510 setopt NO_GLOB_SUBST
18513 cfgfile
="${ofile}T"
18514 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18517 cat <<_LT_EOF >> "$cfgfile"
18520 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18521 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18523 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18525 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18526 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18527 # Written by Gordon Matzigkeit, 1996
18529 # This file is part of GNU Libtool.
18531 # GNU Libtool is free software; you can redistribute it and/or
18532 # modify it under the terms of the GNU General Public License as
18533 # published by the Free Software Foundation; either version 2 of
18534 # the License, or (at your option) any later version.
18536 # As a special exception to the GNU General Public License,
18537 # if you distribute this file as part of a program or library that
18538 # is built using GNU Libtool, you may include this file under the
18539 # same distribution terms that you use for the rest of that program.
18541 # GNU Libtool is distributed in the hope that it will be useful,
18542 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18544 # GNU General Public License for more details.
18546 # You should have received a copy of the GNU General Public License
18547 # along with GNU Libtool; see the file COPYING. If not, a copy
18548 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18549 # obtained by writing to the Free Software Foundation, Inc.,
18550 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18553 # The names of the tagged configurations supported by this script.
18556 # ### BEGIN LIBTOOL CONFIG
18558 # Which release of libtool.m4 was used?
18559 macro_version=$macro_version
18560 macro_revision=$macro_revision
18562 # Whether or not to build shared libraries.
18563 build_libtool_libs=$enable_shared
18565 # Whether or not to build static libraries.
18566 build_old_libs=$enable_static
18568 # What type of objects to build.
18571 # Whether or not to optimize for fast installation.
18572 fast_install=$enable_fast_install
18574 # Shell to use when invoking shell scripts.
18577 # An echo program that protects backslashes.
18581 host_alias=$host_alias
18585 # The build system.
18586 build_alias=$build_alias
18590 # A sed program that does not truncate output.
18593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18594 Xsed="\$SED -e 1s/^X//"
18596 # A grep program that handles long lines.
18602 # A literal string matcher.
18605 # A BSD- or MS-compatible name lister.
18608 # Whether we need soft or hard links.
18611 # What is the maximum length of a command?
18612 max_cmd_len=$max_cmd_len
18614 # Object file suffix (normally "o").
18617 # Executable file suffix (normally "").
18620 # whether the shell understands "unset".
18623 # turn spaces into newlines.
18626 # turn newlines into spaces.
18629 # An object symbol dumper.
18630 OBJDUMP=$lt_OBJDUMP
18632 # Method to check whether dependent libraries are shared objects.
18633 deplibs_check_method=$lt_deplibs_check_method
18635 # Command to use when deplibs_check_method == "file_magic".
18636 file_magic_cmd=$lt_file_magic_cmd
18640 AR_FLAGS=$lt_AR_FLAGS
18642 # A symbol stripping program.
18645 # Commands used to install an old-style archive.
18647 old_postinstall_cmds=$lt_old_postinstall_cmds
18648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18650 # Whether to use a lock for old archive extraction.
18651 lock_old_archive_extraction=$lock_old_archive_extraction
18656 # LTCC compiler flags.
18657 LTCFLAGS=$lt_CFLAGS
18659 # Take the output of nm and produce a listing of raw symbols and C names.
18660 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18662 # Transform the output of nm in a proper C declaration.
18663 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18665 # Transform the output of nm in a C name address pair.
18666 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18668 # Transform the output of nm in a C name address pair when lib prefix is needed.
18669 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18671 # The name of the directory that contains temporary libtool files.
18674 # Used to examine libraries when file_magic_cmd begins with "file".
18675 MAGIC_CMD=$MAGIC_CMD
18677 # Must we lock files when doing compilation?
18678 need_locks=$lt_need_locks
18680 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18681 DSYMUTIL=$lt_DSYMUTIL
18683 # Tool to change global to local symbols on Mac OS X.
18686 # Tool to manipulate fat objects and archives on Mac OS X.
18689 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18692 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18693 OTOOL64=$lt_OTOOL64
18695 # Old archive suffix (normally "a").
18698 # Shared library suffix (normally ".so").
18699 shrext_cmds=$lt_shrext_cmds
18701 # The commands to extract the exported symbol list from a shared archive.
18702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18704 # Variables whose values should be saved in libtool wrapper scripts and
18705 # restored at link time.
18706 variables_saved_for_relink=$lt_variables_saved_for_relink
18708 # Do we need the "lib" prefix for modules?
18709 need_lib_prefix=$need_lib_prefix
18711 # Do we need a version for libraries?
18712 need_version=$need_version
18714 # Library versioning type.
18715 version_type=$version_type
18717 # Shared library runtime path variable.
18718 runpath_var=$runpath_var
18720 # Shared library path variable.
18721 shlibpath_var=$shlibpath_var
18723 # Is shlibpath searched before the hard-coded library search path?
18724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18726 # Format of library name prefix.
18727 libname_spec=$lt_libname_spec
18729 # List of archive names. First name is the real one, the rest are links.
18730 # The last name is the one that the linker finds with -lNAME
18731 library_names_spec=$lt_library_names_spec
18733 # The coded name of the library, if different from the real name.
18734 soname_spec=$lt_soname_spec
18736 # Permission mode override for installation of shared libraries.
18737 install_override_mode=$lt_install_override_mode
18739 # Command to use after installation of a shared archive.
18740 postinstall_cmds=$lt_postinstall_cmds
18742 # Command to use after uninstallation of a shared archive.
18743 postuninstall_cmds=$lt_postuninstall_cmds
18745 # Commands used to finish a libtool library installation in a directory.
18746 finish_cmds=$lt_finish_cmds
18748 # As "finish_cmds", except a single script fragment to be evaled but
18750 finish_eval=$lt_finish_eval
18752 # Whether we should hardcode library paths into libraries.
18753 hardcode_into_libs=$hardcode_into_libs
18755 # Compile-time system search path for libraries.
18756 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18758 # Run-time system search path for libraries.
18759 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18761 # Whether dlopen is supported.
18762 dlopen_support=$enable_dlopen
18764 # Whether dlopen of programs is supported.
18765 dlopen_self=$enable_dlopen_self
18767 # Whether dlopen of statically linked programs is supported.
18768 dlopen_self_static=$enable_dlopen_self_static
18770 # Commands to strip libraries.
18771 old_striplib=$lt_old_striplib
18772 striplib=$lt_striplib
18775 # The linker used to build libraries.
18778 # How to create reloadable object files.
18779 reload_flag=$lt_reload_flag
18780 reload_cmds=$lt_reload_cmds
18782 # Commands used to build an old-style archive.
18783 old_archive_cmds=$lt_old_archive_cmds
18785 # A language specific compiler.
18788 # Is the compiler the GNU compiler?
18791 # Compiler flag to turn off builtin functions.
18792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18794 # How to pass a linker flag through the compiler.
18795 wl=$lt_lt_prog_compiler_wl
18797 # Additional compiler flags for building library objects.
18798 pic_flag=$lt_lt_prog_compiler_pic
18800 # Compiler flag to prevent dynamic linking.
18801 link_static_flag=$lt_lt_prog_compiler_static
18803 # Does compiler simultaneously support -c and -o options?
18804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18806 # Whether or not to add -lc for building shared libraries.
18807 build_libtool_need_lc=$archive_cmds_need_lc
18809 # Whether or not to disallow shared libs when runtime libs are static.
18810 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18812 # Compiler flag to allow reflexive dlopens.
18813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18815 # Compiler flag to generate shared objects directly from archives.
18816 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18818 # Whether the compiler copes with passing no objects directly.
18819 compiler_needs_object=$lt_compiler_needs_object
18821 # Create an old-style archive from a shared archive.
18822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18824 # Create a temporary old-style archive to link instead of a shared archive.
18825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18827 # Commands used to build a shared archive.
18828 archive_cmds=$lt_archive_cmds
18829 archive_expsym_cmds=$lt_archive_expsym_cmds
18831 # Commands used to build a loadable module if different from building
18832 # a shared archive.
18833 module_cmds=$lt_module_cmds
18834 module_expsym_cmds=$lt_module_expsym_cmds
18836 # Whether we are building with GNU ld or not.
18837 with_gnu_ld=$lt_with_gnu_ld
18839 # Flag that allows shared libraries with undefined symbols to be built.
18840 allow_undefined_flag=$lt_allow_undefined_flag
18842 # Flag that enforces no undefined symbols.
18843 no_undefined_flag=$lt_no_undefined_flag
18845 # Flag to hardcode \$libdir into a binary during linking.
18846 # This must work even if \$libdir does not exist
18847 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18849 # If ld is used when linking, flag to hardcode \$libdir into a binary
18850 # during linking. This must work even if \$libdir does not exist.
18851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18853 # Whether we need a single "-rpath" flag with a separated argument.
18854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18856 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18857 # DIR into the resulting binary.
18858 hardcode_direct=$hardcode_direct
18860 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18861 # DIR into the resulting binary and the resulting library dependency is
18862 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18863 # library is relocated.
18864 hardcode_direct_absolute=$hardcode_direct_absolute
18866 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18867 # into the resulting binary.
18868 hardcode_minus_L=$hardcode_minus_L
18870 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18871 # into the resulting binary.
18872 hardcode_shlibpath_var=$hardcode_shlibpath_var
18874 # Set to "yes" if building a shared library automatically hardcodes DIR
18875 # into the library and all subsequent libraries and executables linked
18877 hardcode_automatic=$hardcode_automatic
18879 # Set to yes if linker adds runtime paths of dependent libraries
18880 # to runtime path list.
18881 inherit_rpath=$inherit_rpath
18883 # Whether libtool must link a program against all its dependency libraries.
18884 link_all_deplibs=$link_all_deplibs
18886 # Fix the shell variable \$srcfile for the compiler.
18887 fix_srcfile_path=$lt_fix_srcfile_path
18889 # Set to "yes" if exported symbols are required.
18890 always_export_symbols=$always_export_symbols
18892 # The commands to list exported symbols.
18893 export_symbols_cmds=$lt_export_symbols_cmds
18895 # Symbols that should not be listed in the preloaded symbols.
18896 exclude_expsyms=$lt_exclude_expsyms
18898 # Symbols that must always be exported.
18899 include_expsyms=$lt_include_expsyms
18901 # Commands necessary for linking programs (against libraries) with templates.
18902 prelink_cmds=$lt_prelink_cmds
18904 # Specify filename containing input files.
18905 file_list_spec=$lt_file_list_spec
18907 # How to hardcode a shared library path into an executable.
18908 hardcode_action=$hardcode_action
18910 # ### END LIBTOOL CONFIG
18916 cat <<\_LT_EOF
>> "$cfgfile"
18917 # AIX sometimes has problems with the GCC collect2 program. For some
18918 # reason, if we set the COLLECT_NAMES environment variable, the problems
18919 # vanish in a puff of smoke.
18920 if test "X${COLLECT_NAMES+set}" != Xset
; then
18922 export COLLECT_NAMES
18929 ltmain
="$ac_aux_dir/ltmain.sh"
18932 # We use sed instead of cat because bash on DJGPP gets confused if
18933 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18934 # text mode, it properly converts lines to CR/LF. This bash problem
18935 # is reportedly fixed, but why not run on old versions too?
18936 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18937 ||
(rm -f "$cfgfile"; exit 1)
18941 cat << \_LT_EOF
>> "$cfgfile"
18943 # func_dirname file append nondir_replacement
18944 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18945 # otherwise set result to NONDIR_REPLACEMENT.
18949 */*) func_dirname_result
="${1%/*}${2}" ;;
18950 * ) func_dirname_result
="${3}" ;;
18954 # func_basename file
18957 func_basename_result
="${1##*/}"
18960 # func_dirname_and_basename file append nondir_replacement
18961 # perform func_basename and func_dirname in a single function
18963 # dirname: Compute the dirname of FILE. If nonempty,
18964 # add APPEND to the result, otherwise set result
18965 # to NONDIR_REPLACEMENT.
18966 # value returned in "$func_dirname_result"
18967 # basename: Compute filename of FILE.
18968 # value retuned in "$func_basename_result"
18969 # Implementation must be kept synchronized with func_dirname
18970 # and func_basename. For efficiency, we do not delegate to
18971 # those functions but instead duplicate the functionality here.
18972 func_dirname_and_basename
()
18975 */*) func_dirname_result
="${1%/*}${2}" ;;
18976 * ) func_dirname_result
="${3}" ;;
18978 func_basename_result
="${1##*/}"
18981 # func_stripname prefix suffix name
18982 # strip PREFIX and SUFFIX off of NAME.
18983 # PREFIX and SUFFIX must not contain globbing or regex special
18984 # characters, hashes, percent signs, but SUFFIX may contain a leading
18985 # dot (in which case that matches only a dot).
18988 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18989 # positional parameters, so assign one to ordinary parameter first.
18990 func_stripname_result
=${3}
18991 func_stripname_result
=${func_stripname_result#"${1}"}
18992 func_stripname_result
=${func_stripname_result%"${2}"}
18998 func_opt_split_opt
=${1%%=*}
18999 func_opt_split_arg
=${1#*=}
19006 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19007 *) func_lo2o_result
=${1} ;;
19011 # func_xform libobj-or-source
19014 func_xform_result
=${1%.*}.lo
19017 # func_arith arithmetic-term...
19020 func_arith_result
=$
(( $
* ))
19024 # STRING may not start with a hyphen.
19027 func_len_result
=${#1}
19032 *) # Bourne compatible functions.
19033 cat << \_LT_EOF
>> "$cfgfile"
19035 # func_dirname file append nondir_replacement
19036 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19037 # otherwise set result to NONDIR_REPLACEMENT.
19040 # Extract subdirectory from the argument.
19041 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19042 if test "X$func_dirname_result" = "X${1}"; then
19043 func_dirname_result
="${3}"
19045 func_dirname_result
="$func_dirname_result${2}"
19049 # func_basename file
19052 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19056 # func_stripname prefix suffix name
19057 # strip PREFIX and SUFFIX off of NAME.
19058 # PREFIX and SUFFIX must not contain globbing or regex special
19059 # characters, hashes, percent signs, but SUFFIX may contain a leading
19060 # dot (in which case that matches only a dot).
19061 # func_strip_suffix prefix name
19065 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19066 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19071 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19072 my_sed_long_arg
='1s/^-[^=]*=//'
19077 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19078 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19084 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19087 # func_xform libobj-or-source
19090 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19093 # func_arith arithmetic-term...
19096 func_arith_result
=`expr "$@"`
19100 # STRING may not start with a hyphen.
19103 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19109 case $lt_shell_append in
19111 cat << \_LT_EOF
>> "$cfgfile"
19113 # func_append var value
19114 # Append VALUE to the end of shell variable VAR.
19122 cat << \_LT_EOF
>> "$cfgfile"
19124 # func_append var value
19125 # Append VALUE to the end of shell variable VAR.
19136 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19137 ||
(rm -f "$cfgfile"; exit 1)
19139 mv -f "$cfgfile" "$ofile" ||
19140 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19144 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19145 # Older Autoconf quotes --file arguments for eval, but not when files
19146 # are listed without --file. Let's play safe and only enable the eval
19147 # if we detect the quoting.
19148 case $CONFIG_FILES in
19149 *\'*) eval set x
"$CONFIG_FILES" ;;
19150 *) set x
$CONFIG_FILES ;;
19155 # Strip MF so we end up with the name of the file.
19156 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19157 # Check whether this is an Automake generated Makefile or not.
19158 # We used to match only the files named 'Makefile.in', but
19159 # some people rename them; so instead we look at the file content.
19160 # Grep'ing the first line is not enough: some people post-process
19161 # each Makefile.in and add a new line on top of each file to say so.
19162 # Grep'ing the whole file is not good either: AIX grep has a line
19163 # limit of 2048, but all sed's we know have understand at least 4000.
19164 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19165 dirpart
=`$as_dirname -- "$mf" ||
19166 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19167 X"$mf" : 'X\(//\)[^/]' \| \
19168 X"$mf" : 'X\(//\)$' \| \
19169 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19175 /^X\(\/\/\)[^/].*/{
19191 # Extract the definition of DEPDIR, am__include, and am__quote
19192 # from the Makefile without running 'make'.
19193 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19194 test -z "$DEPDIR" && continue
19195 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19196 test -z "$am__include" && continue
19197 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19198 # Find all dependency output files, they are included files with
19199 # $(DEPDIR) in their names. We invoke sed twice because it is the
19200 # simplest approach to changing $(DEPDIR) to its actual value in the
19202 for file in `sed -n "
19203 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19204 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19205 # Make sure the directory exists.
19206 test -f "$dirpart/$file" && continue
19207 fdir
=`$as_dirname -- "$file" ||
19208 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19209 X"$file" : 'X\(//\)[^/]' \| \
19210 X"$file" : 'X\(//\)$' \| \
19211 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19212 $as_echo X"$file" |
19213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19217 /^X\(\/\/\)[^/].*/{
19230 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19231 # echo "creating $dirpart/$file"
19232 echo '# dummy' > "$dirpart/$file"
19244 ac_clean_files
=$ac_clean_files_save
19246 test $ac_write_fail = 0 ||
19247 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19250 # configure is writing to config.log, and then calls config.status.
19251 # config.status does its own redirection, appending to config.log.
19252 # Unfortunately, on DOS this fails, as config.log is still kept open
19253 # by configure, so config.status won't be able to write to it; its
19254 # output is simply discarded. So we exec the FD to /dev/null,
19255 # effectively closing config.log, so it can be properly (re)opened and
19256 # appended to by config.status. When coming back to configure, we
19257 # need to make the FD available again.
19258 if test "$no_create" != yes; then
19260 ac_config_status_args
=
19261 test "$silent" = yes &&
19262 ac_config_status_args
="$ac_config_status_args --quiet"
19264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19267 # would make configure fail if this is the last instruction.
19268 $ac_cs_success || as_fn_exit
1
19272 # CONFIG_SUBDIRS section.
19274 if test "$no_recursion" != yes; then
19276 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19277 # so they do not pile up.
19278 ac_sub_configure_args
=
19280 eval "set x $ac_configure_args"
19284 if test -n "$ac_prev"; then
19289 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19290 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19291 ac_prev
=cache_file
;;
19292 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19293 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19296 --config-cache |
-C)
19298 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19300 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19302 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19304 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19306 --disable-option-checking)
19310 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19312 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19316 # Always prepend --prefix to ensure using the same prefix
19317 # in subdir configurations.
19318 ac_arg
="--prefix=$prefix"
19320 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19322 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19325 if test "$silent" = yes; then
19326 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19329 # Always prepend --disable-option-checking to silence warnings, since
19330 # different subdirs can have different --enable and --with options.
19331 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19334 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19336 # Do not complain, so a configure script can configure whichever
19337 # parts of a large source tree are present.
19338 test -d "$srcdir/$ac_dir" ||
continue
19340 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19341 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19342 $as_echo "$ac_msg" >&6
19343 as_dir
="$ac_dir"; as_fn_mkdir_p
19347 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19349 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19350 # A ".." for each directory in $ac_dir_suffix.
19351 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19352 case $ac_top_builddir_sub in
19353 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19354 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19357 ac_abs_top_builddir
=$ac_pwd
19358 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19359 # for backward compatibility:
19360 ac_top_builddir
=$ac_top_build_prefix
19363 .
) # We are building in place.
19365 ac_top_srcdir
=$ac_top_builddir_sub
19366 ac_abs_top_srcdir
=$ac_pwd ;;
19367 [\\/]* | ?
:[\\/]* ) # Absolute name.
19368 ac_srcdir
=$srcdir$ac_dir_suffix;
19369 ac_top_srcdir
=$srcdir
19370 ac_abs_top_srcdir
=$srcdir ;;
19371 *) # Relative name.
19372 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19373 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19374 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19376 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19381 # Check for guested configure; otherwise get Cygnus style configure.
19382 if test -f "$ac_srcdir/configure.gnu"; then
19383 ac_sub_configure
=$ac_srcdir/configure.gnu
19384 elif test -f "$ac_srcdir/configure"; then
19385 ac_sub_configure
=$ac_srcdir/configure
19386 elif test -f "$ac_srcdir/configure.in"; then
19387 # This should be Cygnus configure.
19388 ac_sub_configure
=$ac_aux_dir/configure
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19391 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19395 # The recursion is here.
19396 if test -n "$ac_sub_configure"; then
19397 # Make the cache file name correct relative to the subdirectory.
19398 case $cache_file in
19399 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19400 *) # Relative name.
19401 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19405 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19406 # The eval makes quoting arguments work.
19407 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19408 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19409 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19415 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19417 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}