Synchronize sourceware version of the libiberty sources with the master gcc versions.
[binutils-gdb.git] / sim / configure
blobe8d7be56b81763543bfd9398b2a966d34e2a3a80
1 #! /bin/sh
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 :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
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
282 $0: have one."
284 exit 1
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
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 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
302 { eval $1=; unset $1;}
304 as_unset=as_fn_unset
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
311 return $1
312 } # as_fn_set_status
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
355 /^X\(\/\/\)$/{
356 s//\1/
359 /^X\(\/\).*/{
360 s//\1/
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 } # as_fn_mkdir_p
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
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
388 eval $1+=\$2
390 else
391 as_fn_append ()
393 eval $1=\$$1\$2
395 fi # as_fn_append
397 # as_fn_arith ARG...
398 # ------------------
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 :
403 eval 'as_fn_arith ()
405 as_val=$(( $* ))
407 else
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
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.
420 as_fn_error ()
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
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
429 } # as_fn_error
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
459 /^X\/\(\/\/\)$/{
460 s//\1/
463 /^X\/\(\/\).*/{
464 s//\1/
467 s/.*/./; q'`
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. :-)
482 sed -n '
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
490 :lineno
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
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).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
522 ECHO_N='-n';;
523 esac
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
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
534 as_ln_s='ln -s'
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 ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
546 else
547 as_ln_s='cp -pR'
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"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
559 as_test_x='test -x'
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
572 exec 6>&1
574 # Name of the host.
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`
580 # Initializations.
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
591 # Identity of this package.
592 PACKAGE_NAME='sim'
593 PACKAGE_TARNAME='sim'
594 PACKAGE_VERSION='0'
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="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_header_list=
636 ac_func_list=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 SIM_RX_CYCLE_ACCURATE_FLAGS
641 SIM_RISCV_BITSIZE
642 sim_ppc_model_issue
643 sim_ppc_default_model
644 sim_ppc_model
645 sim_ppc_monitor
646 sim_ppc_float
647 sim_ppc_timebase
648 sim_ppc_bitsize
649 sim_ppc_igen_smp
650 sim_ppc_smp
651 sim_ppc_xor_endian
652 sim_ppc_hw_obj
653 sim_ppc_hw_src
654 sim_ppc_icache
655 sim_ppc_filter
656 sim_ppc_jump
657 sim_ppc_decode_mechanism
658 sim_ppc_dup
659 sim_ppc_switch
660 sim_ppc_opcode
661 sim_ppc_line_nr
662 SIM_MIPS_GEN_MODE_MULTI_FALSE
663 SIM_MIPS_GEN_MODE_MULTI_TRUE
664 SIM_MIPS_GEN_MODE_M16_FALSE
665 SIM_MIPS_GEN_MODE_M16_TRUE
666 SIM_MIPS_GEN_MODE_SINGLE_FALSE
667 SIM_MIPS_GEN_MODE_SINGLE_TRUE
668 SIM_MIPS_MULTI_OBJ
669 SIM_MIPS_MULTI_SRC
670 SIM_MIPS_MULTI_IGEN_CONFIGS
671 SIM_MIPS_IGEN_ITABLE_FLAGS
672 SIM_MIPS_GEN
673 SIM_MIPS_M16_FLAGS
674 SIM_MIPS_SINGLE_FLAGS
675 SIM_MIPS_FPU_BITSIZE
676 SIM_MIPS_BITSIZE
677 SIM_MIPS_SUBTARGET
678 SIM_FRV_TRAPDUMP_FLAGS
679 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE
680 SIM_CFLAG_WNO_SHADOW_LOCAL
681 IGEN_FLAGS_SMP
682 SIM_INLINE
683 SIM_HW_SOCKSER
684 SIM_HW_CFLAGS
685 SIM_ENABLE_HW_FALSE
686 SIM_ENABLE_HW_TRUE
687 cgen
688 cgendir
689 CGEN_MAINT
690 ENABLE_SIM_FALSE
691 ENABLE_SIM_TRUE
692 SIM_ENABLE_ARCH_examples_FALSE
693 SIM_ENABLE_ARCH_examples_TRUE
694 CC_FOR_TARGET_EXAMPLE_SYNACOR
695 LD_FOR_TARGET_EXAMPLE_SYNACOR
696 AS_FOR_TARGET_EXAMPLE_SYNACOR
697 SIM_ENABLE_ARCH_v850_FALSE
698 SIM_ENABLE_ARCH_v850_TRUE
699 CC_FOR_TARGET_V850
700 LD_FOR_TARGET_V850
701 AS_FOR_TARGET_V850
702 SIM_ENABLE_ARCH_erc32_FALSE
703 SIM_ENABLE_ARCH_erc32_TRUE
704 CC_FOR_TARGET_ERC32
705 LD_FOR_TARGET_ERC32
706 AS_FOR_TARGET_ERC32
707 SIM_ENABLE_ARCH_sh_FALSE
708 SIM_ENABLE_ARCH_sh_TRUE
709 CC_FOR_TARGET_SH
710 LD_FOR_TARGET_SH
711 AS_FOR_TARGET_SH
712 SIM_ENABLE_ARCH_rx_FALSE
713 SIM_ENABLE_ARCH_rx_TRUE
714 CC_FOR_TARGET_RX
715 LD_FOR_TARGET_RX
716 AS_FOR_TARGET_RX
717 SIM_ENABLE_ARCH_rl78_FALSE
718 SIM_ENABLE_ARCH_rl78_TRUE
719 CC_FOR_TARGET_RL78
720 LD_FOR_TARGET_RL78
721 AS_FOR_TARGET_RL78
722 SIM_ENABLE_ARCH_riscv_FALSE
723 SIM_ENABLE_ARCH_riscv_TRUE
724 CC_FOR_TARGET_RISCV
725 LD_FOR_TARGET_RISCV
726 AS_FOR_TARGET_RISCV
727 SIM_ENABLE_ARCH_pru_FALSE
728 SIM_ENABLE_ARCH_pru_TRUE
729 CC_FOR_TARGET_PRU
730 LD_FOR_TARGET_PRU
731 AS_FOR_TARGET_PRU
732 SIM_ENABLE_ARCH_ppc_FALSE
733 SIM_ENABLE_ARCH_ppc_TRUE
734 CC_FOR_TARGET_PPC
735 LD_FOR_TARGET_PPC
736 AS_FOR_TARGET_PPC
737 SIM_ENABLE_ARCH_or1k_FALSE
738 SIM_ENABLE_ARCH_or1k_TRUE
739 CC_FOR_TARGET_OR1K
740 LD_FOR_TARGET_OR1K
741 AS_FOR_TARGET_OR1K
742 SIM_ENABLE_ARCH_msp430_FALSE
743 SIM_ENABLE_ARCH_msp430_TRUE
744 CC_FOR_TARGET_MSP430
745 LD_FOR_TARGET_MSP430
746 AS_FOR_TARGET_MSP430
747 SIM_ENABLE_ARCH_moxie_FALSE
748 SIM_ENABLE_ARCH_moxie_TRUE
749 CC_FOR_TARGET_MOXIE
750 LD_FOR_TARGET_MOXIE
751 AS_FOR_TARGET_MOXIE
752 SIM_ENABLE_ARCH_mn10300_FALSE
753 SIM_ENABLE_ARCH_mn10300_TRUE
754 CC_FOR_TARGET_MN10300
755 LD_FOR_TARGET_MN10300
756 AS_FOR_TARGET_MN10300
757 SIM_ENABLE_ARCH_mips_FALSE
758 SIM_ENABLE_ARCH_mips_TRUE
759 CC_FOR_TARGET_MIPS
760 LD_FOR_TARGET_MIPS
761 AS_FOR_TARGET_MIPS
762 SIM_ENABLE_ARCH_microblaze_FALSE
763 SIM_ENABLE_ARCH_microblaze_TRUE
764 CC_FOR_TARGET_MICROBLAZE
765 LD_FOR_TARGET_MICROBLAZE
766 AS_FOR_TARGET_MICROBLAZE
767 SIM_ENABLE_ARCH_mcore_FALSE
768 SIM_ENABLE_ARCH_mcore_TRUE
769 CC_FOR_TARGET_MCORE
770 LD_FOR_TARGET_MCORE
771 AS_FOR_TARGET_MCORE
772 SIM_ENABLE_ARCH_m68hc11_FALSE
773 SIM_ENABLE_ARCH_m68hc11_TRUE
774 CC_FOR_TARGET_M68HC11
775 LD_FOR_TARGET_M68HC11
776 AS_FOR_TARGET_M68HC11
777 SIM_ENABLE_ARCH_m32r_FALSE
778 SIM_ENABLE_ARCH_m32r_TRUE
779 CC_FOR_TARGET_M32R
780 LD_FOR_TARGET_M32R
781 AS_FOR_TARGET_M32R
782 SIM_ENABLE_ARCH_m32c_FALSE
783 SIM_ENABLE_ARCH_m32c_TRUE
784 CC_FOR_TARGET_M32C
785 LD_FOR_TARGET_M32C
786 AS_FOR_TARGET_M32C
787 SIM_ENABLE_ARCH_lm32_FALSE
788 SIM_ENABLE_ARCH_lm32_TRUE
789 CC_FOR_TARGET_LM32
790 LD_FOR_TARGET_LM32
791 AS_FOR_TARGET_LM32
792 SIM_ENABLE_ARCH_iq2000_FALSE
793 SIM_ENABLE_ARCH_iq2000_TRUE
794 CC_FOR_TARGET_IQ2000
795 LD_FOR_TARGET_IQ2000
796 AS_FOR_TARGET_IQ2000
797 SIM_ENABLE_ARCH_h8300_FALSE
798 SIM_ENABLE_ARCH_h8300_TRUE
799 CC_FOR_TARGET_H8300
800 LD_FOR_TARGET_H8300
801 AS_FOR_TARGET_H8300
802 SIM_ENABLE_ARCH_ft32_FALSE
803 SIM_ENABLE_ARCH_ft32_TRUE
804 CC_FOR_TARGET_FT32
805 LD_FOR_TARGET_FT32
806 AS_FOR_TARGET_FT32
807 SIM_ENABLE_ARCH_frv_FALSE
808 SIM_ENABLE_ARCH_frv_TRUE
809 CC_FOR_TARGET_FRV
810 LD_FOR_TARGET_FRV
811 AS_FOR_TARGET_FRV
812 SIM_ENABLE_ARCH_d10v_FALSE
813 SIM_ENABLE_ARCH_d10v_TRUE
814 CC_FOR_TARGET_D10V
815 LD_FOR_TARGET_D10V
816 AS_FOR_TARGET_D10V
817 SIM_ENABLE_ARCH_cris_FALSE
818 SIM_ENABLE_ARCH_cris_TRUE
819 CC_FOR_TARGET_CRIS
820 LD_FOR_TARGET_CRIS
821 AS_FOR_TARGET_CRIS
822 SIM_ENABLE_ARCH_cr16_FALSE
823 SIM_ENABLE_ARCH_cr16_TRUE
824 CC_FOR_TARGET_CR16
825 LD_FOR_TARGET_CR16
826 AS_FOR_TARGET_CR16
827 SIM_ENABLE_ARCH_bpf_FALSE
828 SIM_ENABLE_ARCH_bpf_TRUE
829 CC_FOR_TARGET_BPF
830 LD_FOR_TARGET_BPF
831 AS_FOR_TARGET_BPF
832 SIM_ENABLE_ARCH_bfin_FALSE
833 SIM_ENABLE_ARCH_bfin_TRUE
834 CC_FOR_TARGET_BFIN
835 LD_FOR_TARGET_BFIN
836 AS_FOR_TARGET_BFIN
837 SIM_ENABLE_ARCH_avr_FALSE
838 SIM_ENABLE_ARCH_avr_TRUE
839 CC_FOR_TARGET_AVR
840 LD_FOR_TARGET_AVR
841 AS_FOR_TARGET_AVR
842 SIM_ENABLE_ARCH_arm_FALSE
843 SIM_ENABLE_ARCH_arm_TRUE
844 CC_FOR_TARGET_ARM
845 LD_FOR_TARGET_ARM
846 AS_FOR_TARGET_ARM
847 SIM_ENABLE_ARCH_aarch64_FALSE
848 SIM_ENABLE_ARCH_aarch64_TRUE
849 CC_FOR_TARGET_AARCH64
850 LD_FOR_TARGET_AARCH64
851 AS_FOR_TARGET_AARCH64
852 LD_FOR_TARGET
853 AS_FOR_TARGET
854 CC_FOR_TARGET
855 SIM_ENABLED_ARCHES
856 SIM_PRIMARY_TARGET
857 AM_BACKSLASH
858 AM_DEFAULT_VERBOSITY
859 AM_DEFAULT_V
860 AM_V
861 am__fastdepCC_FALSE
862 am__fastdepCC_TRUE
863 CCDEPMODE
864 am__nodep
865 AMDEPBACKSLASH
866 AMDEP_FALSE
867 AMDEP_TRUE
868 am__quote
869 am__include
870 DEPDIR
871 am__untar
872 am__tar
873 AMTAR
874 am__leading_dot
875 SET_MAKE
876 mkdir_p
877 MKDIR_P
878 INSTALL_STRIP_PROGRAM
879 install_sh
880 MAKEINFO
881 AUTOHEADER
882 AUTOMAKE
883 AUTOCONF
884 ACLOCAL
885 VERSION
886 PACKAGE
887 CYGPATH_W
888 am__isrc
889 MAINT
890 MAINTAINER_MODE_FALSE
891 MAINTAINER_MODE_TRUE
892 READLINE_CFLAGS
893 READLINE_LIB
894 TERMCAP_LIB
895 SDL_LIBS
896 SDL_CFLAGS
897 OTOOL64
898 OTOOL
899 LIPO
900 NMEDIT
901 DSYMUTIL
903 STRIP
904 OBJDUMP
905 LN_S
907 ac_ct_DUMPBIN
908 DUMPBIN
910 FGREP
912 LIBTOOL
913 LIBOBJS
914 C_DIALECT
915 PKG_CONFIG_LIBDIR
916 PKG_CONFIG_PATH
917 PKG_CONFIG
918 RANLIB
920 LDFLAGS_FOR_BUILD
921 CPPFLAGS_FOR_BUILD
922 CFLAGS_FOR_BUILD
923 RANLIB_FOR_BUILD
924 CC_FOR_BUILD
925 AR_FOR_BUILD
927 INSTALL_DATA
928 INSTALL_SCRIPT
929 INSTALL_PROGRAM
930 EGREP
931 GREP
933 OBJEXT
934 EXEEXT
935 ac_ct_CC
936 CPPFLAGS
937 LDFLAGS
938 CFLAGS
940 target_os
941 target_vendor
942 target_cpu
943 target
944 host_os
945 host_vendor
946 host_cpu
947 host
948 build_os
949 build_vendor
950 build_cpu
951 build
952 REPORT_BUGS_TEXI
953 REPORT_BUGS_TO
954 PKGVERSION
955 target_alias
956 host_alias
957 build_alias
958 LIBS
959 ECHO_T
960 ECHO_N
961 ECHO_C
962 DEFS
963 mandir
964 localedir
965 libdir
966 psdir
967 pdfdir
968 dvidir
969 htmldir
970 infodir
971 docdir
972 oldincludedir
973 includedir
974 localstatedir
975 sharedstatedir
976 sysconfdir
977 datadir
978 datarootdir
979 libexecdir
980 sbindir
981 bindir
982 program_transform_name
983 prefix
984 exec_prefix
985 PACKAGE_URL
986 PACKAGE_BUGREPORT
987 PACKAGE_STRING
988 PACKAGE_VERSION
989 PACKAGE_TARNAME
990 PACKAGE_NAME
991 PATH_SEPARATOR
992 SHELL
993 SIM_TOOLCHAIN_VARS
994 BUILD_WERROR_CFLAGS
995 BUILD_WARN_CFLAGS
996 WERROR_CFLAGS
997 WARN_CFLAGS'
998 ac_subst_files=''
999 ac_user_opts='
1000 enable_option_checking
1001 with_pkgversion
1002 with_bugurl
1003 enable_shared
1004 enable_static
1005 with_pic
1006 enable_fast_install
1007 with_gnu_ld
1008 enable_libtool_lock
1009 enable_maintainer_mode
1010 enable_dependency_tracking
1011 enable_silent_rules
1012 enable_sim
1013 enable_example_sims
1014 enable_targets
1015 enable_sim_alignment
1016 enable_sim_assert
1017 enable_cgen_maint
1018 enable_sim_debug
1019 enable_sim_endian
1020 enable_sim_environment
1021 enable_sim_hardware
1022 enable_sim_inline
1023 enable_sim_profile
1024 enable_sim_reserved_bits
1025 enable_sim_scache
1026 enable_sim_smp
1027 enable_sim_stdio
1028 enable_sim_trace
1029 enable_werror
1030 enable_build_warnings
1031 enable_sim_build_warnings
1032 enable_sim_frv_trapdump
1033 enable_sim_ppc_bitsize
1034 enable_sim_ppc_decode_mechanism
1035 enable_sim_ppc_default_model
1036 enable_sim_ppc_duplicate
1037 enable_sim_ppc_filter
1038 enable_sim_ppc_float
1039 enable_sim_ppc_hardware
1040 enable_sim_ppc_icache
1041 enable_sim_ppc_jump
1042 enable_sim_ppc_line_nr
1043 enable_sim_ppc_model
1044 enable_sim_ppc_model_issue
1045 enable_sim_ppc_monitor
1046 enable_sim_ppc_opcode
1047 enable_sim_ppc_smp
1048 enable_sim_ppc_switch
1049 enable_sim_ppc_timebase
1050 enable_sim_ppc_xor_endian
1051 enable_sim_rx_cycle_accurate
1053 ac_precious_vars='build_alias
1054 host_alias
1055 target_alias
1057 CFLAGS
1058 LDFLAGS
1059 LIBS
1060 CPPFLAGS
1062 PKG_CONFIG
1063 PKG_CONFIG_PATH
1064 PKG_CONFIG_LIBDIR
1065 SDL_CFLAGS
1066 SDL_LIBS
1067 AS_FOR_TARGET_AARCH64
1068 LD_FOR_TARGET_AARCH64
1069 CC_FOR_TARGET_AARCH64
1070 AS_FOR_TARGET_ARM
1071 LD_FOR_TARGET_ARM
1072 CC_FOR_TARGET_ARM
1073 AS_FOR_TARGET_AVR
1074 LD_FOR_TARGET_AVR
1075 CC_FOR_TARGET_AVR
1076 AS_FOR_TARGET_BFIN
1077 LD_FOR_TARGET_BFIN
1078 CC_FOR_TARGET_BFIN
1079 AS_FOR_TARGET_BPF
1080 LD_FOR_TARGET_BPF
1081 CC_FOR_TARGET_BPF
1082 AS_FOR_TARGET_CR16
1083 LD_FOR_TARGET_CR16
1084 CC_FOR_TARGET_CR16
1085 AS_FOR_TARGET_CRIS
1086 LD_FOR_TARGET_CRIS
1087 CC_FOR_TARGET_CRIS
1088 AS_FOR_TARGET_D10V
1089 LD_FOR_TARGET_D10V
1090 CC_FOR_TARGET_D10V
1091 AS_FOR_TARGET_FRV
1092 LD_FOR_TARGET_FRV
1093 CC_FOR_TARGET_FRV
1094 AS_FOR_TARGET_FT32
1095 LD_FOR_TARGET_FT32
1096 CC_FOR_TARGET_FT32
1097 AS_FOR_TARGET_H8300
1098 LD_FOR_TARGET_H8300
1099 CC_FOR_TARGET_H8300
1100 AS_FOR_TARGET_IQ2000
1101 LD_FOR_TARGET_IQ2000
1102 CC_FOR_TARGET_IQ2000
1103 AS_FOR_TARGET_LM32
1104 LD_FOR_TARGET_LM32
1105 CC_FOR_TARGET_LM32
1106 AS_FOR_TARGET_M32C
1107 LD_FOR_TARGET_M32C
1108 CC_FOR_TARGET_M32C
1109 AS_FOR_TARGET_M32R
1110 LD_FOR_TARGET_M32R
1111 CC_FOR_TARGET_M32R
1112 AS_FOR_TARGET_M68HC11
1113 LD_FOR_TARGET_M68HC11
1114 CC_FOR_TARGET_M68HC11
1115 AS_FOR_TARGET_MCORE
1116 LD_FOR_TARGET_MCORE
1117 CC_FOR_TARGET_MCORE
1118 AS_FOR_TARGET_MICROBLAZE
1119 LD_FOR_TARGET_MICROBLAZE
1120 CC_FOR_TARGET_MICROBLAZE
1121 AS_FOR_TARGET_MIPS
1122 LD_FOR_TARGET_MIPS
1123 CC_FOR_TARGET_MIPS
1124 AS_FOR_TARGET_MN10300
1125 LD_FOR_TARGET_MN10300
1126 CC_FOR_TARGET_MN10300
1127 AS_FOR_TARGET_MOXIE
1128 LD_FOR_TARGET_MOXIE
1129 CC_FOR_TARGET_MOXIE
1130 AS_FOR_TARGET_MSP430
1131 LD_FOR_TARGET_MSP430
1132 CC_FOR_TARGET_MSP430
1133 AS_FOR_TARGET_OR1K
1134 LD_FOR_TARGET_OR1K
1135 CC_FOR_TARGET_OR1K
1136 AS_FOR_TARGET_PPC
1137 LD_FOR_TARGET_PPC
1138 CC_FOR_TARGET_PPC
1139 AS_FOR_TARGET_PRU
1140 LD_FOR_TARGET_PRU
1141 CC_FOR_TARGET_PRU
1142 AS_FOR_TARGET_RISCV
1143 LD_FOR_TARGET_RISCV
1144 CC_FOR_TARGET_RISCV
1145 AS_FOR_TARGET_RL78
1146 LD_FOR_TARGET_RL78
1147 CC_FOR_TARGET_RL78
1148 AS_FOR_TARGET_RX
1149 LD_FOR_TARGET_RX
1150 CC_FOR_TARGET_RX
1151 AS_FOR_TARGET_SH
1152 LD_FOR_TARGET_SH
1153 CC_FOR_TARGET_SH
1154 AS_FOR_TARGET_ERC32
1155 LD_FOR_TARGET_ERC32
1156 CC_FOR_TARGET_ERC32
1157 AS_FOR_TARGET_V850
1158 LD_FOR_TARGET_V850
1159 CC_FOR_TARGET_V850
1160 AS_FOR_TARGET_EXAMPLE_SYNACOR
1161 LD_FOR_TARGET_EXAMPLE_SYNACOR
1162 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1165 # Initialize some variables set by options.
1166 ac_init_help=
1167 ac_init_version=false
1168 ac_unrecognized_opts=
1169 ac_unrecognized_sep=
1170 # The variables have the same names as the options, with
1171 # dashes changed to underlines.
1172 cache_file=/dev/null
1173 exec_prefix=NONE
1174 no_create=
1175 no_recursion=
1176 prefix=NONE
1177 program_prefix=NONE
1178 program_suffix=NONE
1179 program_transform_name=s,x,x,
1180 silent=
1181 site=
1182 srcdir=
1183 verbose=
1184 x_includes=NONE
1185 x_libraries=NONE
1187 # Installation directory options.
1188 # These are left unexpanded so users can "make install exec_prefix=/foo"
1189 # and all the variables that are supposed to be based on exec_prefix
1190 # by default will actually change.
1191 # Use braces instead of parens because sh, perl, etc. also accept them.
1192 # (The list follows the same order as the GNU Coding Standards.)
1193 bindir='${exec_prefix}/bin'
1194 sbindir='${exec_prefix}/sbin'
1195 libexecdir='${exec_prefix}/libexec'
1196 datarootdir='${prefix}/share'
1197 datadir='${datarootdir}'
1198 sysconfdir='${prefix}/etc'
1199 sharedstatedir='${prefix}/com'
1200 localstatedir='${prefix}/var'
1201 includedir='${prefix}/include'
1202 oldincludedir='/usr/include'
1203 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1204 infodir='${datarootdir}/info'
1205 htmldir='${docdir}'
1206 dvidir='${docdir}'
1207 pdfdir='${docdir}'
1208 psdir='${docdir}'
1209 libdir='${exec_prefix}/lib'
1210 localedir='${datarootdir}/locale'
1211 mandir='${datarootdir}/man'
1213 ac_prev=
1214 ac_dashdash=
1215 for ac_option
1217 # If the previous option needs an argument, assign it.
1218 if test -n "$ac_prev"; then
1219 eval $ac_prev=\$ac_option
1220 ac_prev=
1221 continue
1224 case $ac_option in
1225 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1226 *=) ac_optarg= ;;
1227 *) ac_optarg=yes ;;
1228 esac
1230 # Accept the important Cygnus configure options, so we can diagnose typos.
1232 case $ac_dashdash$ac_option in
1234 ac_dashdash=yes ;;
1236 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1237 ac_prev=bindir ;;
1238 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1239 bindir=$ac_optarg ;;
1241 -build | --build | --buil | --bui | --bu)
1242 ac_prev=build_alias ;;
1243 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1244 build_alias=$ac_optarg ;;
1246 -cache-file | --cache-file | --cache-fil | --cache-fi \
1247 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1248 ac_prev=cache_file ;;
1249 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1250 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1251 cache_file=$ac_optarg ;;
1253 --config-cache | -C)
1254 cache_file=config.cache ;;
1256 -datadir | --datadir | --datadi | --datad)
1257 ac_prev=datadir ;;
1258 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1259 datadir=$ac_optarg ;;
1261 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1262 | --dataroo | --dataro | --datar)
1263 ac_prev=datarootdir ;;
1264 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1265 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1266 datarootdir=$ac_optarg ;;
1268 -disable-* | --disable-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error $? "invalid feature name: $ac_useropt"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1277 "enable_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval enable_$ac_useropt=no ;;
1284 -docdir | --docdir | --docdi | --doc | --do)
1285 ac_prev=docdir ;;
1286 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1287 docdir=$ac_optarg ;;
1289 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1290 ac_prev=dvidir ;;
1291 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1292 dvidir=$ac_optarg ;;
1294 -enable-* | --enable-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid feature name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1303 "enable_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval enable_$ac_useropt=\$ac_optarg ;;
1310 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1311 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1312 | --exec | --exe | --ex)
1313 ac_prev=exec_prefix ;;
1314 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1315 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1316 | --exec=* | --exe=* | --ex=*)
1317 exec_prefix=$ac_optarg ;;
1319 -gas | --gas | --ga | --g)
1320 # Obsolete; use --with-gas.
1321 with_gas=yes ;;
1323 -help | --help | --hel | --he | -h)
1324 ac_init_help=long ;;
1325 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1326 ac_init_help=recursive ;;
1327 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1328 ac_init_help=short ;;
1330 -host | --host | --hos | --ho)
1331 ac_prev=host_alias ;;
1332 -host=* | --host=* | --hos=* | --ho=*)
1333 host_alias=$ac_optarg ;;
1335 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1336 ac_prev=htmldir ;;
1337 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1338 | --ht=*)
1339 htmldir=$ac_optarg ;;
1341 -includedir | --includedir | --includedi | --included | --include \
1342 | --includ | --inclu | --incl | --inc)
1343 ac_prev=includedir ;;
1344 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1345 | --includ=* | --inclu=* | --incl=* | --inc=*)
1346 includedir=$ac_optarg ;;
1348 -infodir | --infodir | --infodi | --infod | --info | --inf)
1349 ac_prev=infodir ;;
1350 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1351 infodir=$ac_optarg ;;
1353 -libdir | --libdir | --libdi | --libd)
1354 ac_prev=libdir ;;
1355 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1356 libdir=$ac_optarg ;;
1358 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1359 | --libexe | --libex | --libe)
1360 ac_prev=libexecdir ;;
1361 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1362 | --libexe=* | --libex=* | --libe=*)
1363 libexecdir=$ac_optarg ;;
1365 -localedir | --localedir | --localedi | --localed | --locale)
1366 ac_prev=localedir ;;
1367 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1368 localedir=$ac_optarg ;;
1370 -localstatedir | --localstatedir | --localstatedi | --localstated \
1371 | --localstate | --localstat | --localsta | --localst | --locals)
1372 ac_prev=localstatedir ;;
1373 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1374 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1375 localstatedir=$ac_optarg ;;
1377 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1378 ac_prev=mandir ;;
1379 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1380 mandir=$ac_optarg ;;
1382 -nfp | --nfp | --nf)
1383 # Obsolete; use --without-fp.
1384 with_fp=no ;;
1386 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1387 | --no-cr | --no-c | -n)
1388 no_create=yes ;;
1390 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1391 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1392 no_recursion=yes ;;
1394 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1395 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1396 | --oldin | --oldi | --old | --ol | --o)
1397 ac_prev=oldincludedir ;;
1398 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1399 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1400 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1401 oldincludedir=$ac_optarg ;;
1403 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1404 ac_prev=prefix ;;
1405 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1406 prefix=$ac_optarg ;;
1408 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1409 | --program-pre | --program-pr | --program-p)
1410 ac_prev=program_prefix ;;
1411 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1412 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1413 program_prefix=$ac_optarg ;;
1415 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1416 | --program-suf | --program-su | --program-s)
1417 ac_prev=program_suffix ;;
1418 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1419 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1420 program_suffix=$ac_optarg ;;
1422 -program-transform-name | --program-transform-name \
1423 | --program-transform-nam | --program-transform-na \
1424 | --program-transform-n | --program-transform- \
1425 | --program-transform | --program-transfor \
1426 | --program-transfo | --program-transf \
1427 | --program-trans | --program-tran \
1428 | --progr-tra | --program-tr | --program-t)
1429 ac_prev=program_transform_name ;;
1430 -program-transform-name=* | --program-transform-name=* \
1431 | --program-transform-nam=* | --program-transform-na=* \
1432 | --program-transform-n=* | --program-transform-=* \
1433 | --program-transform=* | --program-transfor=* \
1434 | --program-transfo=* | --program-transf=* \
1435 | --program-trans=* | --program-tran=* \
1436 | --progr-tra=* | --program-tr=* | --program-t=*)
1437 program_transform_name=$ac_optarg ;;
1439 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1440 ac_prev=pdfdir ;;
1441 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1442 pdfdir=$ac_optarg ;;
1444 -psdir | --psdir | --psdi | --psd | --ps)
1445 ac_prev=psdir ;;
1446 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1447 psdir=$ac_optarg ;;
1449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1450 | -silent | --silent | --silen | --sile | --sil)
1451 silent=yes ;;
1453 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1454 ac_prev=sbindir ;;
1455 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1456 | --sbi=* | --sb=*)
1457 sbindir=$ac_optarg ;;
1459 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1460 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1461 | --sharedst | --shareds | --shared | --share | --shar \
1462 | --sha | --sh)
1463 ac_prev=sharedstatedir ;;
1464 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1465 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1466 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1467 | --sha=* | --sh=*)
1468 sharedstatedir=$ac_optarg ;;
1470 -site | --site | --sit)
1471 ac_prev=site ;;
1472 -site=* | --site=* | --sit=*)
1473 site=$ac_optarg ;;
1475 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1476 ac_prev=srcdir ;;
1477 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1478 srcdir=$ac_optarg ;;
1480 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1481 | --syscon | --sysco | --sysc | --sys | --sy)
1482 ac_prev=sysconfdir ;;
1483 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1484 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1485 sysconfdir=$ac_optarg ;;
1487 -target | --target | --targe | --targ | --tar | --ta | --t)
1488 ac_prev=target_alias ;;
1489 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1490 target_alias=$ac_optarg ;;
1492 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1493 verbose=yes ;;
1495 -version | --version | --versio | --versi | --vers | -V)
1496 ac_init_version=: ;;
1498 -with-* | --with-*)
1499 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1500 # Reject names that are not valid shell variable names.
1501 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1502 as_fn_error $? "invalid package name: $ac_useropt"
1503 ac_useropt_orig=$ac_useropt
1504 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1505 case $ac_user_opts in
1507 "with_$ac_useropt"
1508 "*) ;;
1509 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1510 ac_unrecognized_sep=', ';;
1511 esac
1512 eval with_$ac_useropt=\$ac_optarg ;;
1514 -without-* | --without-*)
1515 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1516 # Reject names that are not valid shell variable names.
1517 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1518 as_fn_error $? "invalid package name: $ac_useropt"
1519 ac_useropt_orig=$ac_useropt
1520 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1521 case $ac_user_opts in
1523 "with_$ac_useropt"
1524 "*) ;;
1525 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1526 ac_unrecognized_sep=', ';;
1527 esac
1528 eval with_$ac_useropt=no ;;
1530 --x)
1531 # Obsolete; use --with-x.
1532 with_x=yes ;;
1534 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1535 | --x-incl | --x-inc | --x-in | --x-i)
1536 ac_prev=x_includes ;;
1537 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1538 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1539 x_includes=$ac_optarg ;;
1541 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1542 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1543 ac_prev=x_libraries ;;
1544 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1545 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1546 x_libraries=$ac_optarg ;;
1548 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1549 Try \`$0 --help' for more information"
1552 *=*)
1553 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1554 # Reject names that are not valid shell variable names.
1555 case $ac_envvar in #(
1556 '' | [0-9]* | *[!_$as_cr_alnum]* )
1557 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1558 esac
1559 eval $ac_envvar=\$ac_optarg
1560 export $ac_envvar ;;
1563 # FIXME: should be removed in autoconf 3.0.
1564 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1565 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1566 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1567 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1570 esac
1571 done
1573 if test -n "$ac_prev"; then
1574 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1575 as_fn_error $? "missing argument to $ac_option"
1578 if test -n "$ac_unrecognized_opts"; then
1579 case $enable_option_checking in
1580 no) ;;
1581 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1582 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1583 esac
1586 # Check all directory arguments for consistency.
1587 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1588 datadir sysconfdir sharedstatedir localstatedir includedir \
1589 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1590 libdir localedir mandir
1592 eval ac_val=\$$ac_var
1593 # Remove trailing slashes.
1594 case $ac_val in
1595 */ )
1596 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1597 eval $ac_var=\$ac_val;;
1598 esac
1599 # Be sure to have absolute directory names.
1600 case $ac_val in
1601 [\\/$]* | ?:[\\/]* ) continue;;
1602 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1603 esac
1604 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1605 done
1607 # There might be people who depend on the old broken behavior: `$host'
1608 # used to hold the argument of --host etc.
1609 # FIXME: To remove some day.
1610 build=$build_alias
1611 host=$host_alias
1612 target=$target_alias
1614 # FIXME: To remove some day.
1615 if test "x$host_alias" != x; then
1616 if test "x$build_alias" = x; then
1617 cross_compiling=maybe
1618 elif test "x$build_alias" != "x$host_alias"; then
1619 cross_compiling=yes
1623 ac_tool_prefix=
1624 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1626 test "$silent" = yes && exec 6>/dev/null
1629 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1630 ac_ls_di=`ls -di .` &&
1631 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1632 as_fn_error $? "working directory cannot be determined"
1633 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1634 as_fn_error $? "pwd does not report name of working directory"
1637 # Find the source files, if location was not specified.
1638 if test -z "$srcdir"; then
1639 ac_srcdir_defaulted=yes
1640 # Try the directory containing this script, then the parent directory.
1641 ac_confdir=`$as_dirname -- "$as_myself" ||
1642 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1643 X"$as_myself" : 'X\(//\)[^/]' \| \
1644 X"$as_myself" : 'X\(//\)$' \| \
1645 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1646 $as_echo X"$as_myself" |
1647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1648 s//\1/
1651 /^X\(\/\/\)[^/].*/{
1652 s//\1/
1655 /^X\(\/\/\)$/{
1656 s//\1/
1659 /^X\(\/\).*/{
1660 s//\1/
1663 s/.*/./; q'`
1664 srcdir=$ac_confdir
1665 if test ! -r "$srcdir/$ac_unique_file"; then
1666 srcdir=..
1668 else
1669 ac_srcdir_defaulted=no
1671 if test ! -r "$srcdir/$ac_unique_file"; then
1672 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1673 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1675 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1676 ac_abs_confdir=`(
1677 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1678 pwd)`
1679 # When building in place, set srcdir=.
1680 if test "$ac_abs_confdir" = "$ac_pwd"; then
1681 srcdir=.
1683 # Remove unnecessary trailing slashes from srcdir.
1684 # Double slashes in file names in object file debugging info
1685 # mess up M-x gdb in Emacs.
1686 case $srcdir in
1687 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1688 esac
1689 for ac_var in $ac_precious_vars; do
1690 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1691 eval ac_env_${ac_var}_value=\$${ac_var}
1692 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1693 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1694 done
1697 # Report the --help message.
1699 if test "$ac_init_help" = "long"; then
1700 # Omit some internal or obsolete options to make the list less imposing.
1701 # This message is too long to be a string in the A/UX 3.1 sh.
1702 cat <<_ACEOF
1703 \`configure' configures sim 0 to adapt to many kinds of systems.
1705 Usage: $0 [OPTION]... [VAR=VALUE]...
1707 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1708 VAR=VALUE. See below for descriptions of some of the useful variables.
1710 Defaults for the options are specified in brackets.
1712 Configuration:
1713 -h, --help display this help and exit
1714 --help=short display options specific to this package
1715 --help=recursive display the short help of all the included packages
1716 -V, --version display version information and exit
1717 -q, --quiet, --silent do not print \`checking ...' messages
1718 --cache-file=FILE cache test results in FILE [disabled]
1719 -C, --config-cache alias for \`--cache-file=config.cache'
1720 -n, --no-create do not create output files
1721 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1723 Installation directories:
1724 --prefix=PREFIX install architecture-independent files in PREFIX
1725 [$ac_default_prefix]
1726 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1727 [PREFIX]
1729 By default, \`make install' will install all the files in
1730 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1731 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1732 for instance \`--prefix=\$HOME'.
1734 For better control, use the options below.
1736 Fine tuning of the installation directories:
1737 --bindir=DIR user executables [EPREFIX/bin]
1738 --sbindir=DIR system admin executables [EPREFIX/sbin]
1739 --libexecdir=DIR program executables [EPREFIX/libexec]
1740 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1741 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1742 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1743 --libdir=DIR object code libraries [EPREFIX/lib]
1744 --includedir=DIR C header files [PREFIX/include]
1745 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1746 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1747 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1748 --infodir=DIR info documentation [DATAROOTDIR/info]
1749 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1750 --mandir=DIR man documentation [DATAROOTDIR/man]
1751 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1752 --htmldir=DIR html documentation [DOCDIR]
1753 --dvidir=DIR dvi documentation [DOCDIR]
1754 --pdfdir=DIR pdf documentation [DOCDIR]
1755 --psdir=DIR ps documentation [DOCDIR]
1756 _ACEOF
1758 cat <<\_ACEOF
1760 Program names:
1761 --program-prefix=PREFIX prepend PREFIX to installed program names
1762 --program-suffix=SUFFIX append SUFFIX to installed program names
1763 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1765 System types:
1766 --build=BUILD configure for building on BUILD [guessed]
1767 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1768 --target=TARGET configure for building compilers for TARGET [HOST]
1769 _ACEOF
1772 if test -n "$ac_init_help"; then
1773 case $ac_init_help in
1774 short | recursive ) echo "Configuration of sim 0:";;
1775 esac
1776 cat <<\_ACEOF
1778 Optional Features:
1779 --disable-option-checking ignore unrecognized --enable/--with options
1780 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1781 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1782 --enable-shared[=PKGS] build shared libraries [default=yes]
1783 --enable-static[=PKGS] build static libraries [default=yes]
1784 --enable-fast-install[=PKGS]
1785 optimize for fast installation [default=yes]
1786 --disable-libtool-lock avoid locking (might break parallel builds)
1787 --enable-maintainer-mode
1788 enable make rules and dependencies not useful (and
1789 sometimes confusing) to the casual installer
1790 --enable-dependency-tracking
1791 do not reject slow dependency extractors
1792 --disable-dependency-tracking
1793 speeds up one-time build
1794 --enable-silent-rules less verbose build output (undo: "make V=1")
1795 --disable-silent-rules verbose build output (undo: "make V=0")
1796 --enable-sim Enable the GNU simulator
1797 --enable-example-sims enable example GNU simulators
1798 --enable-targets alternative target configurations
1799 --enable-sim-alignment=align
1800 Specify strict, nonstrict or forced alignment of
1801 memory accesses
1802 --enable-sim-assert Specify whether to perform random assertions
1803 --enable-cgen-maint=DIR build cgen generated files
1804 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1805 itself)
1806 --enable-sim-endian=endian
1807 Specify target byte endian orientation
1808 --enable-sim-environment=environment
1809 Specify mixed, user, virtual or operating
1810 environment
1811 --enable-sim-hardware Whether to enable hardware/device simulation
1812 --enable-sim-inline=inlines
1813 Specify which functions should be inlined
1814 --enable-sim-profile=opts
1815 Enable profiling flags
1816 --enable-sim-reserved-bits
1817 Specify whether to check reserved bits in
1818 instruction
1819 --enable-sim-scache=size
1820 Specify simulator execution cache size
1821 --enable-sim-smp=n Specify number of processors to configure for
1822 (default 1)
1823 --enable-sim-stdio Specify whether to use stdio for console
1824 input/output
1825 --enable-sim-trace=opts Enable tracing of simulated programs
1826 --enable-werror treat compile warnings as errors
1827 --enable-build-warnings enable build-time compiler warnings if gcc is used
1828 --enable-sim-build-warnings
1829 enable SIM specific build-time compiler warnings if
1830 gcc is used
1831 --enable-sim-frv-trapdump
1832 Make unknown traps dump the registers
1833 --enable-sim-ppc-bitsize=n
1834 Specify target bitsize (32 or 64).
1835 --enable-sim-ppc-decode-mechanism=which
1836 Specify the instruction decode mechanism.
1837 --enable-sim-ppc-default-model=which
1838 Specify default PowerPC to model.
1839 --enable-sim-ppc-duplicate
1840 Expand (duplicate) semantic functions.
1841 --enable-sim-ppc-filter=rule
1842 Specify filter rules.
1843 --enable-sim-ppc-float Specify whether the target has hard, soft, altivec
1844 or e500 floating point.
1845 --enable-sim-ppc-hardware=list
1846 Specify the hardware to be included in the build.
1847 --enable-sim-ppc-icache=size
1848 Specify instruction-decode cache size and type.
1849 --enable-sim-ppc-jump Jump between semantic code (instead of call/return).
1850 --enable-sim-ppc-line-nr=opts
1851 Generate extra CPP code that references source
1852 rather than generated code
1853 --enable-sim-ppc-model=which
1854 Specify PowerPC to model.
1855 --enable-sim-ppc-model-issue
1856 Specify whether to simulate model specific actions
1857 --enable-sim-ppc-monitor=mon
1858 Specify whether to enable monitoring events.
1859 --enable-sim-ppc-opcode=which
1860 Override default opcode lookup.
1861 --enable-sim-ppc-smp=n Specify number of processors to configure for.
1862 --enable-sim-ppc-switch Use a switch instead of a table for instruction
1863 call.
1864 --enable-sim-ppc-timebase
1865 Specify whether the PPC timebase is supported.
1866 --enable-sim-ppc-xor-endian=n
1867 Specify number bytes involved in PowerPC XOR
1868 bi-endian mode (default 8).
1869 --disable-sim-rx-cycle-accurate
1870 Disable cycle accurate simulation (faster runtime)
1872 Optional Packages:
1873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1875 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1876 --with-bugurl=URL Direct users to URL to report a bug
1877 --with-pic try to use only PIC/non-PIC objects [default=use
1878 both]
1879 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1881 Some influential environment variables:
1882 CC C compiler command
1883 CFLAGS C compiler flags
1884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1885 nonstandard directory <lib dir>
1886 LIBS libraries to pass to the linker, e.g. -l<library>
1887 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1888 you have headers in a nonstandard directory <include dir>
1889 CPP C preprocessor
1890 PKG_CONFIG path to pkg-config utility
1891 PKG_CONFIG_PATH
1892 directories to add to pkg-config's search path
1893 PKG_CONFIG_LIBDIR
1894 path overriding pkg-config's built-in search path
1895 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1896 SDL_LIBS linker flags for SDL, overriding pkg-config
1897 AS_FOR_TARGET_AARCH64
1898 Assembler for aarch64 tests
1899 LD_FOR_TARGET_AARCH64
1900 Linker for aarch64 tests
1901 CC_FOR_TARGET_AARCH64
1902 C compiler for aarch64 tests
1903 AS_FOR_TARGET_ARM
1904 Assembler for arm tests
1905 LD_FOR_TARGET_ARM
1906 Linker for arm tests
1907 CC_FOR_TARGET_ARM
1908 C compiler for arm tests
1909 AS_FOR_TARGET_AVR
1910 Assembler for avr tests
1911 LD_FOR_TARGET_AVR
1912 Linker for avr tests
1913 CC_FOR_TARGET_AVR
1914 C compiler for avr tests
1915 AS_FOR_TARGET_BFIN
1916 Assembler for bfin tests
1917 LD_FOR_TARGET_BFIN
1918 Linker for bfin tests
1919 CC_FOR_TARGET_BFIN
1920 C compiler for bfin tests
1921 AS_FOR_TARGET_BPF
1922 Assembler for bpf tests
1923 LD_FOR_TARGET_BPF
1924 Linker for bpf tests
1925 CC_FOR_TARGET_BPF
1926 C compiler for bpf tests
1927 AS_FOR_TARGET_CR16
1928 Assembler for cr16 tests
1929 LD_FOR_TARGET_CR16
1930 Linker for cr16 tests
1931 CC_FOR_TARGET_CR16
1932 C compiler for cr16 tests
1933 AS_FOR_TARGET_CRIS
1934 Assembler for cris tests
1935 LD_FOR_TARGET_CRIS
1936 Linker for cris tests
1937 CC_FOR_TARGET_CRIS
1938 C compiler for cris tests
1939 AS_FOR_TARGET_D10V
1940 Assembler for d10v tests
1941 LD_FOR_TARGET_D10V
1942 Linker for d10v tests
1943 CC_FOR_TARGET_D10V
1944 C compiler for d10v tests
1945 AS_FOR_TARGET_FRV
1946 Assembler for frv tests
1947 LD_FOR_TARGET_FRV
1948 Linker for frv tests
1949 CC_FOR_TARGET_FRV
1950 C compiler for frv tests
1951 AS_FOR_TARGET_FT32
1952 Assembler for ft32 tests
1953 LD_FOR_TARGET_FT32
1954 Linker for ft32 tests
1955 CC_FOR_TARGET_FT32
1956 C compiler for ft32 tests
1957 AS_FOR_TARGET_H8300
1958 Assembler for h8300 tests
1959 LD_FOR_TARGET_H8300
1960 Linker for h8300 tests
1961 CC_FOR_TARGET_H8300
1962 C compiler for h8300 tests
1963 AS_FOR_TARGET_IQ2000
1964 Assembler for iq2000 tests
1965 LD_FOR_TARGET_IQ2000
1966 Linker for iq2000 tests
1967 CC_FOR_TARGET_IQ2000
1968 C compiler for iq2000 tests
1969 AS_FOR_TARGET_LM32
1970 Assembler for lm32 tests
1971 LD_FOR_TARGET_LM32
1972 Linker for lm32 tests
1973 CC_FOR_TARGET_LM32
1974 C compiler for lm32 tests
1975 AS_FOR_TARGET_M32C
1976 Assembler for m32c tests
1977 LD_FOR_TARGET_M32C
1978 Linker for m32c tests
1979 CC_FOR_TARGET_M32C
1980 C compiler for m32c tests
1981 AS_FOR_TARGET_M32R
1982 Assembler for m32r tests
1983 LD_FOR_TARGET_M32R
1984 Linker for m32r tests
1985 CC_FOR_TARGET_M32R
1986 C compiler for m32r tests
1987 AS_FOR_TARGET_M68HC11
1988 Assembler for m68hc11 tests
1989 LD_FOR_TARGET_M68HC11
1990 Linker for m68hc11 tests
1991 CC_FOR_TARGET_M68HC11
1992 C compiler for m68hc11 tests
1993 AS_FOR_TARGET_MCORE
1994 Assembler for mcore tests
1995 LD_FOR_TARGET_MCORE
1996 Linker for mcore tests
1997 CC_FOR_TARGET_MCORE
1998 C compiler for mcore tests
1999 AS_FOR_TARGET_MICROBLAZE
2000 Assembler for microblaze tests
2001 LD_FOR_TARGET_MICROBLAZE
2002 Linker for microblaze tests
2003 CC_FOR_TARGET_MICROBLAZE
2004 C compiler for microblaze tests
2005 AS_FOR_TARGET_MIPS
2006 Assembler for mips tests
2007 LD_FOR_TARGET_MIPS
2008 Linker for mips tests
2009 CC_FOR_TARGET_MIPS
2010 C compiler for mips tests
2011 AS_FOR_TARGET_MN10300
2012 Assembler for mn10300 tests
2013 LD_FOR_TARGET_MN10300
2014 Linker for mn10300 tests
2015 CC_FOR_TARGET_MN10300
2016 C compiler for mn10300 tests
2017 AS_FOR_TARGET_MOXIE
2018 Assembler for moxie tests
2019 LD_FOR_TARGET_MOXIE
2020 Linker for moxie tests
2021 CC_FOR_TARGET_MOXIE
2022 C compiler for moxie tests
2023 AS_FOR_TARGET_MSP430
2024 Assembler for msp430 tests
2025 LD_FOR_TARGET_MSP430
2026 Linker for msp430 tests
2027 CC_FOR_TARGET_MSP430
2028 C compiler for msp430 tests
2029 AS_FOR_TARGET_OR1K
2030 Assembler for or1k tests
2031 LD_FOR_TARGET_OR1K
2032 Linker for or1k tests
2033 CC_FOR_TARGET_OR1K
2034 C compiler for or1k tests
2035 AS_FOR_TARGET_PPC
2036 Assembler for ppc tests
2037 LD_FOR_TARGET_PPC
2038 Linker for ppc tests
2039 CC_FOR_TARGET_PPC
2040 C compiler for ppc tests
2041 AS_FOR_TARGET_PRU
2042 Assembler for pru tests
2043 LD_FOR_TARGET_PRU
2044 Linker for pru tests
2045 CC_FOR_TARGET_PRU
2046 C compiler for pru tests
2047 AS_FOR_TARGET_RISCV
2048 Assembler for riscv tests
2049 LD_FOR_TARGET_RISCV
2050 Linker for riscv tests
2051 CC_FOR_TARGET_RISCV
2052 C compiler for riscv tests
2053 AS_FOR_TARGET_RL78
2054 Assembler for rl78 tests
2055 LD_FOR_TARGET_RL78
2056 Linker for rl78 tests
2057 CC_FOR_TARGET_RL78
2058 C compiler for rl78 tests
2059 AS_FOR_TARGET_RX
2060 Assembler for rx tests
2061 LD_FOR_TARGET_RX
2062 Linker for rx tests
2063 CC_FOR_TARGET_RX
2064 C compiler for rx tests
2065 AS_FOR_TARGET_SH
2066 Assembler for sh tests
2067 LD_FOR_TARGET_SH
2068 Linker for sh tests
2069 CC_FOR_TARGET_SH
2070 C compiler for sh tests
2071 AS_FOR_TARGET_ERC32
2072 Assembler for erc32 tests
2073 LD_FOR_TARGET_ERC32
2074 Linker for erc32 tests
2075 CC_FOR_TARGET_ERC32
2076 C compiler for erc32 tests
2077 AS_FOR_TARGET_V850
2078 Assembler for v850 tests
2079 LD_FOR_TARGET_V850
2080 Linker for v850 tests
2081 CC_FOR_TARGET_V850
2082 C compiler for v850 tests
2083 AS_FOR_TARGET_EXAMPLE_SYNACOR
2084 Assembler for example-synacor tests
2085 LD_FOR_TARGET_EXAMPLE_SYNACOR
2086 Linker for example-synacor tests
2087 CC_FOR_TARGET_EXAMPLE_SYNACOR
2088 C compiler for example-synacor tests
2090 Use these variables to override the choices made by `configure' or to help
2091 it to find libraries and programs with nonstandard names/locations.
2093 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2094 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2095 _ACEOF
2096 ac_status=$?
2099 if test "$ac_init_help" = "recursive"; then
2100 # If there are subdirs, report their specific --help.
2101 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2102 test -d "$ac_dir" ||
2103 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2104 continue
2105 ac_builddir=.
2107 case "$ac_dir" in
2108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2111 # A ".." for each directory in $ac_dir_suffix.
2112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2113 case $ac_top_builddir_sub in
2114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2116 esac ;;
2117 esac
2118 ac_abs_top_builddir=$ac_pwd
2119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2120 # for backward compatibility:
2121 ac_top_builddir=$ac_top_build_prefix
2123 case $srcdir in
2124 .) # We are building in place.
2125 ac_srcdir=.
2126 ac_top_srcdir=$ac_top_builddir_sub
2127 ac_abs_top_srcdir=$ac_pwd ;;
2128 [\\/]* | ?:[\\/]* ) # Absolute name.
2129 ac_srcdir=$srcdir$ac_dir_suffix;
2130 ac_top_srcdir=$srcdir
2131 ac_abs_top_srcdir=$srcdir ;;
2132 *) # Relative name.
2133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2134 ac_top_srcdir=$ac_top_build_prefix$srcdir
2135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2136 esac
2137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2139 cd "$ac_dir" || { ac_status=$?; continue; }
2140 # Check for guested configure.
2141 if test -f "$ac_srcdir/configure.gnu"; then
2142 echo &&
2143 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2144 elif test -f "$ac_srcdir/configure"; then
2145 echo &&
2146 $SHELL "$ac_srcdir/configure" --help=recursive
2147 else
2148 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2149 fi || ac_status=$?
2150 cd "$ac_pwd" || { ac_status=$?; break; }
2151 done
2154 test -n "$ac_init_help" && exit $ac_status
2155 if $ac_init_version; then
2156 cat <<\_ACEOF
2157 sim configure 0
2158 generated by GNU Autoconf 2.69
2160 Copyright (C) 2012 Free Software Foundation, Inc.
2161 This configure script is free software; the Free Software Foundation
2162 gives unlimited permission to copy, distribute and modify it.
2163 _ACEOF
2164 exit
2167 ## ------------------------ ##
2168 ## Autoconf initialization. ##
2169 ## ------------------------ ##
2171 # ac_fn_c_try_compile LINENO
2172 # --------------------------
2173 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_c_try_compile ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 rm -f conftest.$ac_objext
2178 if { { ac_try="$ac_compile"
2179 case "(($ac_try" in
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 $as_echo "$ac_try_echo"; } >&5
2185 (eval "$ac_compile") 2>conftest.err
2186 ac_status=$?
2187 if test -s conftest.err; then
2188 grep -v '^ *+' conftest.err >conftest.er1
2189 cat conftest.er1 >&5
2190 mv -f conftest.er1 conftest.err
2192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; } && {
2194 test -z "$ac_c_werror_flag" ||
2195 test ! -s conftest.err
2196 } && test -s conftest.$ac_objext; then :
2197 ac_retval=0
2198 else
2199 $as_echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2202 ac_retval=1
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status $ac_retval
2207 } # ac_fn_c_try_compile
2209 # ac_fn_c_try_cpp LINENO
2210 # ----------------------
2211 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2212 ac_fn_c_try_cpp ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 if { { ac_try="$ac_cpp conftest.$ac_ext"
2216 case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2223 ac_status=$?
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } > conftest.i && {
2231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2232 test ! -s conftest.err
2233 }; then :
2234 ac_retval=0
2235 else
2236 $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2239 ac_retval=1
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242 as_fn_set_status $ac_retval
2244 } # ac_fn_c_try_cpp
2246 # ac_fn_c_try_run LINENO
2247 # ----------------------
2248 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2249 # that executables *can* be run.
2250 ac_fn_c_try_run ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_link"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_link") 2>&5
2261 ac_status=$?
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2264 { { case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267 esac
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_try") 2>&5
2271 ac_status=$?
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; }; }; then :
2274 ac_retval=0
2275 else
2276 $as_echo "$as_me: program exited with status $ac_status" >&5
2277 $as_echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 ac_retval=$ac_status
2282 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2286 } # ac_fn_c_try_run
2288 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2289 # -------------------------------------------------------
2290 # Tests whether HEADER exists and can be compiled using the include files in
2291 # INCLUDES, setting the cache variable VAR accordingly.
2292 ac_fn_c_check_header_compile ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2303 #include <$2>
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$3=yes"
2307 else
2308 eval "$3=no"
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 } # ac_fn_c_check_header_compile
2319 # ac_fn_c_try_link LINENO
2320 # -----------------------
2321 # Try to link conftest.$ac_ext, and return whether this succeeded.
2322 ac_fn_c_try_link ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext conftest$ac_exeext
2326 if { { ac_try="$ac_link"
2327 case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330 esac
2331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_link") 2>conftest.err
2334 ac_status=$?
2335 if test -s conftest.err; then
2336 grep -v '^ *+' conftest.err >conftest.er1
2337 cat conftest.er1 >&5
2338 mv -f conftest.er1 conftest.err
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_c_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest$ac_exeext && {
2345 test "$cross_compiling" = yes ||
2346 test -x conftest$ac_exeext
2347 }; then :
2348 ac_retval=0
2349 else
2350 $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2353 ac_retval=1
2355 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357 # interfere with the next link command; also delete a directory that is
2358 # left behind by Apple's compiler. We do this before executing the actions.
2359 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361 as_fn_set_status $ac_retval
2363 } # ac_fn_c_try_link
2365 # ac_fn_c_check_func LINENO FUNC VAR
2366 # ----------------------------------
2367 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2368 ac_fn_c_check_func ()
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2372 $as_echo_n "checking for $2... " >&6; }
2373 if eval \${$3+:} false; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2380 #define $2 innocuous_$2
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $2 (); below.
2384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385 <limits.h> exists even on freestanding compilers. */
2387 #ifdef __STDC__
2388 # include <limits.h>
2389 #else
2390 # include <assert.h>
2391 #endif
2393 #undef $2
2395 /* Override any GCC internal prototype to avoid an error.
2396 Use char because int might match the return type of a GCC
2397 builtin and then its argument prototype would still apply. */
2398 #ifdef __cplusplus
2399 extern "C"
2400 #endif
2401 char $2 ();
2402 /* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405 #if defined __stub_$2 || defined __stub___$2
2406 choke me
2407 #endif
2410 main ()
2412 return $2 ();
2414 return 0;
2416 _ACEOF
2417 if ac_fn_c_try_link "$LINENO"; then :
2418 eval "$3=yes"
2419 else
2420 eval "$3=no"
2422 rm -f core conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2425 eval ac_res=\$$3
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430 } # ac_fn_c_check_func
2432 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2433 # ----------------------------------------------------
2434 # Tries to find if the field MEMBER exists in type AGGR, after including
2435 # INCLUDES, setting cache variable VAR accordingly.
2436 ac_fn_c_check_member ()
2438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2440 $as_echo_n "checking for $2.$3... " >&6; }
2441 if eval \${$4+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2448 main ()
2450 static $2 ac_aggr;
2451 if (ac_aggr.$3)
2452 return 0;
2454 return 0;
2456 _ACEOF
2457 if ac_fn_c_try_compile "$LINENO"; then :
2458 eval "$4=yes"
2459 else
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2464 main ()
2466 static $2 ac_aggr;
2467 if (sizeof ac_aggr.$3)
2468 return 0;
2470 return 0;
2472 _ACEOF
2473 if ac_fn_c_try_compile "$LINENO"; then :
2474 eval "$4=yes"
2475 else
2476 eval "$4=no"
2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 eval ac_res=\$$4
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487 } # ac_fn_c_check_member
2489 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2490 # ---------------------------------------------
2491 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2492 # accordingly.
2493 ac_fn_c_check_decl ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 as_decl_name=`echo $2|sed 's/ *(.*//'`
2497 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2499 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2500 if eval \${$3+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2507 main ()
2509 #ifndef $as_decl_name
2510 #ifdef __cplusplus
2511 (void) $as_decl_use;
2512 #else
2513 (void) $as_decl_name;
2514 #endif
2515 #endif
2518 return 0;
2520 _ACEOF
2521 if ac_fn_c_try_compile "$LINENO"; then :
2522 eval "$3=yes"
2523 else
2524 eval "$3=no"
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 eval ac_res=\$$3
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533 } # ac_fn_c_check_decl
2535 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2536 # -------------------------------------------
2537 # Tests whether TYPE exists after having included INCLUDES, setting cache
2538 # variable VAR accordingly.
2539 ac_fn_c_check_type ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543 $as_echo_n "checking for $2... " >&6; }
2544 if eval \${$3+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 eval "$3=no"
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2552 main ()
2554 if (sizeof ($2))
2555 return 0;
2557 return 0;
2559 _ACEOF
2560 if ac_fn_c_try_compile "$LINENO"; then :
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2565 main ()
2567 if (sizeof (($2)))
2568 return 0;
2570 return 0;
2572 _ACEOF
2573 if ac_fn_c_try_compile "$LINENO"; then :
2575 else
2576 eval "$3=yes"
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 eval ac_res=\$$3
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584 $as_echo "$ac_res" >&6; }
2585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2587 } # ac_fn_c_check_type
2588 cat >config.log <<_ACEOF
2589 This file contains any messages produced by compilers while
2590 running configure, to aid debugging if configure makes a mistake.
2592 It was created by sim $as_me 0, which was
2593 generated by GNU Autoconf 2.69. Invocation command line was
2595 $ $0 $@
2597 _ACEOF
2598 exec 5>>config.log
2600 cat <<_ASUNAME
2601 ## --------- ##
2602 ## Platform. ##
2603 ## --------- ##
2605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2612 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2614 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2615 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2617 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2618 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2619 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2620 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2622 _ASUNAME
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 $as_echo "PATH: $as_dir"
2630 done
2631 IFS=$as_save_IFS
2633 } >&5
2635 cat >&5 <<_ACEOF
2638 ## ----------- ##
2639 ## Core tests. ##
2640 ## ----------- ##
2642 _ACEOF
2645 # Keep a trace of the command line.
2646 # Strip out --no-create and --no-recursion so they do not pile up.
2647 # Strip out --silent because we don't want to record it for future runs.
2648 # Also quote any args containing shell meta-characters.
2649 # Make two passes to allow for proper duplicate-argument suppression.
2650 ac_configure_args=
2651 ac_configure_args0=
2652 ac_configure_args1=
2653 ac_must_keep_next=false
2654 for ac_pass in 1 2
2656 for ac_arg
2658 case $ac_arg in
2659 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2661 | -silent | --silent | --silen | --sile | --sil)
2662 continue ;;
2663 *\'*)
2664 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2665 esac
2666 case $ac_pass in
2667 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2669 as_fn_append ac_configure_args1 " '$ac_arg'"
2670 if test $ac_must_keep_next = true; then
2671 ac_must_keep_next=false # Got value, back to normal.
2672 else
2673 case $ac_arg in
2674 *=* | --config-cache | -C | -disable-* | --disable-* \
2675 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2676 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2677 | -with-* | --with-* | -without-* | --without-* | --x)
2678 case "$ac_configure_args0 " in
2679 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2680 esac
2682 -* ) ac_must_keep_next=true ;;
2683 esac
2685 as_fn_append ac_configure_args " '$ac_arg'"
2687 esac
2688 done
2689 done
2690 { ac_configure_args0=; unset ac_configure_args0;}
2691 { ac_configure_args1=; unset ac_configure_args1;}
2693 # When interrupted or exit'd, cleanup temporary files, and complete
2694 # config.log. We remove comments because anyway the quotes in there
2695 # would cause problems or look ugly.
2696 # WARNING: Use '\'' to represent an apostrophe within the trap.
2697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2698 trap 'exit_status=$?
2699 # Save into config.log some information that might help in debugging.
2701 echo
2703 $as_echo "## ---------------- ##
2704 ## Cache variables. ##
2705 ## ---------------- ##"
2706 echo
2707 # The following way of writing the cache mishandles newlines in values,
2709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2710 eval ac_val=\$$ac_var
2711 case $ac_val in #(
2712 *${as_nl}*)
2713 case $ac_var in #(
2714 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2716 esac
2717 case $ac_var in #(
2718 _ | IFS | as_nl) ;; #(
2719 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2720 *) { eval $ac_var=; unset $ac_var;} ;;
2721 esac ;;
2722 esac
2723 done
2724 (set) 2>&1 |
2725 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2726 *${as_nl}ac_space=\ *)
2727 sed -n \
2728 "s/'\''/'\''\\\\'\'''\''/g;
2729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2730 ;; #(
2732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2734 esac |
2735 sort
2737 echo
2739 $as_echo "## ----------------- ##
2740 ## Output variables. ##
2741 ## ----------------- ##"
2742 echo
2743 for ac_var in $ac_subst_vars
2745 eval ac_val=\$$ac_var
2746 case $ac_val in
2747 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2748 esac
2749 $as_echo "$ac_var='\''$ac_val'\''"
2750 done | sort
2751 echo
2753 if test -n "$ac_subst_files"; then
2754 $as_echo "## ------------------- ##
2755 ## File substitutions. ##
2756 ## ------------------- ##"
2757 echo
2758 for ac_var in $ac_subst_files
2760 eval ac_val=\$$ac_var
2761 case $ac_val in
2762 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2763 esac
2764 $as_echo "$ac_var='\''$ac_val'\''"
2765 done | sort
2766 echo
2769 if test -s confdefs.h; then
2770 $as_echo "## ----------- ##
2771 ## confdefs.h. ##
2772 ## ----------- ##"
2773 echo
2774 cat confdefs.h
2775 echo
2777 test "$ac_signal" != 0 &&
2778 $as_echo "$as_me: caught signal $ac_signal"
2779 $as_echo "$as_me: exit $exit_status"
2780 } >&5
2781 rm -f core *.core core.conftest.* &&
2782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2783 exit $exit_status
2785 for ac_signal in 1 2 13 15; do
2786 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2787 done
2788 ac_signal=0
2790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2791 rm -f -r conftest* confdefs.h
2793 $as_echo "/* confdefs.h */" > confdefs.h
2795 # Predefined preprocessor variables.
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE_NAME "$PACKAGE_NAME"
2799 _ACEOF
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2803 _ACEOF
2805 cat >>confdefs.h <<_ACEOF
2806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2807 _ACEOF
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_STRING "$PACKAGE_STRING"
2811 _ACEOF
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2815 _ACEOF
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_URL "$PACKAGE_URL"
2819 _ACEOF
2822 # Let the site file select an alternate cache file if it wants to.
2823 # Prefer an explicitly selected file to automatically selected ones.
2824 ac_site_file1=NONE
2825 ac_site_file2=NONE
2826 if test -n "$CONFIG_SITE"; then
2827 # We do not want a PATH search for config.site.
2828 case $CONFIG_SITE in #((
2829 -*) ac_site_file1=./$CONFIG_SITE;;
2830 */*) ac_site_file1=$CONFIG_SITE;;
2831 *) ac_site_file1=./$CONFIG_SITE;;
2832 esac
2833 elif test "x$prefix" != xNONE; then
2834 ac_site_file1=$prefix/share/config.site
2835 ac_site_file2=$prefix/etc/config.site
2836 else
2837 ac_site_file1=$ac_default_prefix/share/config.site
2838 ac_site_file2=$ac_default_prefix/etc/config.site
2840 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2842 test "x$ac_site_file" = xNONE && continue
2843 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2845 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2846 sed 's/^/| /' "$ac_site_file" >&5
2847 . "$ac_site_file" \
2848 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850 as_fn_error $? "failed to load site script $ac_site_file
2851 See \`config.log' for more details" "$LINENO" 5; }
2853 done
2855 if test -r "$cache_file"; then
2856 # Some versions of bash will fail to source /dev/null (special files
2857 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2858 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2860 $as_echo "$as_me: loading cache $cache_file" >&6;}
2861 case $cache_file in
2862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2863 *) . "./$cache_file";;
2864 esac
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2868 $as_echo "$as_me: creating cache $cache_file" >&6;}
2869 >$cache_file
2872 as_fn_append ac_header_list " dlfcn.h"
2873 as_fn_append ac_header_list " fcntl.h"
2874 as_fn_append ac_header_list " fpu_control.h"
2875 as_fn_append ac_header_list " termios.h"
2876 as_fn_append ac_header_list " utime.h"
2877 as_fn_append ac_header_list " linux/if_tun.h"
2878 as_fn_append ac_header_list " linux/mii.h"
2879 as_fn_append ac_header_list " linux/types.h"
2880 as_fn_append ac_header_list " net/if.h"
2881 as_fn_append ac_header_list " netinet/in.h"
2882 as_fn_append ac_header_list " netinet/tcp.h"
2883 as_fn_append ac_header_list " sys/ioctl.h"
2884 as_fn_append ac_header_list " sys/mman.h"
2885 as_fn_append ac_header_list " sys/mount.h"
2886 as_fn_append ac_header_list " sys/param.h"
2887 as_fn_append ac_header_list " sys/resource.h"
2888 as_fn_append ac_header_list " sys/socket.h"
2889 as_fn_append ac_header_list " sys/statfs.h"
2890 as_fn_append ac_header_list " sys/termio.h"
2891 as_fn_append ac_header_list " sys/termios.h"
2892 as_fn_append ac_header_list " sys/types.h"
2893 as_fn_append ac_header_list " sys/vfs.h"
2894 as_fn_append ac_func_list " __setfpucw"
2895 as_fn_append ac_func_list " access"
2896 as_fn_append ac_func_list " aint"
2897 as_fn_append ac_func_list " anint"
2898 as_fn_append ac_func_list " cfgetispeed"
2899 as_fn_append ac_func_list " cfgetospeed"
2900 as_fn_append ac_func_list " cfsetispeed"
2901 as_fn_append ac_func_list " cfsetospeed"
2902 as_fn_append ac_func_list " chdir"
2903 as_fn_append ac_func_list " chmod"
2904 as_fn_append ac_func_list " dup"
2905 as_fn_append ac_func_list " dup2"
2906 as_fn_append ac_func_list " execv"
2907 as_fn_append ac_func_list " execve"
2908 as_fn_append ac_func_list " fcntl"
2909 as_fn_append ac_func_list " fork"
2910 as_fn_append ac_func_list " fstat"
2911 as_fn_append ac_func_list " fstatfs"
2912 as_fn_append ac_func_list " ftruncate"
2913 as_fn_append ac_func_list " getdirentries"
2914 as_fn_append ac_func_list " getegid"
2915 as_fn_append ac_func_list " geteuid"
2916 as_fn_append ac_func_list " getgid"
2917 as_fn_append ac_func_list " getpid"
2918 as_fn_append ac_func_list " getppid"
2919 as_fn_append ac_func_list " getrusage"
2920 as_fn_append ac_func_list " gettimeofday"
2921 as_fn_append ac_func_list " getuid"
2922 as_fn_append ac_func_list " ioctl"
2923 as_fn_append ac_func_list " kill"
2924 as_fn_append ac_func_list " link"
2925 as_fn_append ac_func_list " lseek"
2926 as_fn_append ac_func_list " lstat"
2927 as_fn_append ac_func_list " mkdir"
2928 as_fn_append ac_func_list " mmap"
2929 as_fn_append ac_func_list " munmap"
2930 as_fn_append ac_func_list " pipe"
2931 as_fn_append ac_func_list " posix_fallocate"
2932 as_fn_append ac_func_list " pread"
2933 as_fn_append ac_func_list " rmdir"
2934 as_fn_append ac_func_list " setregid"
2935 as_fn_append ac_func_list " setreuid"
2936 as_fn_append ac_func_list " setgid"
2937 as_fn_append ac_func_list " setuid"
2938 as_fn_append ac_func_list " sigaction"
2939 as_fn_append ac_func_list " sigprocmask"
2940 as_fn_append ac_func_list " sqrt"
2941 as_fn_append ac_func_list " stat"
2942 as_fn_append ac_func_list " strsignal"
2943 as_fn_append ac_func_list " symlink"
2944 as_fn_append ac_func_list " tcdrain"
2945 as_fn_append ac_func_list " tcflow"
2946 as_fn_append ac_func_list " tcflush"
2947 as_fn_append ac_func_list " tcgetattr"
2948 as_fn_append ac_func_list " tcgetpgrp"
2949 as_fn_append ac_func_list " tcsendbreak"
2950 as_fn_append ac_func_list " tcsetattr"
2951 as_fn_append ac_func_list " tcsetpgrp"
2952 as_fn_append ac_func_list " time"
2953 as_fn_append ac_func_list " truncate"
2954 as_fn_append ac_func_list " umask"
2955 as_fn_append ac_func_list " unlink"
2956 as_fn_append ac_func_list " utime"
2957 # Check that the precious variables saved in the cache have kept the same
2958 # value.
2959 ac_cache_corrupted=false
2960 for ac_var in $ac_precious_vars; do
2961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2962 eval ac_new_set=\$ac_env_${ac_var}_set
2963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2964 eval ac_new_val=\$ac_env_${ac_var}_value
2965 case $ac_old_set,$ac_new_set in
2966 set,)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2968 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2969 ac_cache_corrupted=: ;;
2970 ,set)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2972 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2973 ac_cache_corrupted=: ;;
2974 ,);;
2976 if test "x$ac_old_val" != "x$ac_new_val"; then
2977 # differences in whitespace do not lead to failure.
2978 ac_old_val_w=`echo x $ac_old_val`
2979 ac_new_val_w=`echo x $ac_new_val`
2980 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2982 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2983 ac_cache_corrupted=:
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2986 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2987 eval $ac_var=\$ac_old_val
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2990 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2992 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2993 fi;;
2994 esac
2995 # Pass precious variables to config.status.
2996 if test "$ac_new_set" = set; then
2997 case $ac_new_val in
2998 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2999 *) ac_arg=$ac_var=$ac_new_val ;;
3000 esac
3001 case " $ac_configure_args " in
3002 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3003 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3004 esac
3006 done
3007 if $ac_cache_corrupted; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3011 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3012 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3014 ## -------------------- ##
3015 ## Main body of script. ##
3016 ## -------------------- ##
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 # Check whether --with-pkgversion was given.
3032 if test "${with_pkgversion+set}" = set; then :
3033 withval=$with_pkgversion; case "$withval" in
3034 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3035 no) PKGVERSION= ;;
3036 *) PKGVERSION="($withval) " ;;
3037 esac
3038 else
3039 PKGVERSION="(SIM) "
3046 cat >>confdefs.h <<_ACEOF
3047 #define PKGVERSION "$PKGVERSION"
3048 _ACEOF
3052 # Check whether --with-bugurl was given.
3053 if test "${with_bugurl+set}" = set; then :
3054 withval=$with_bugurl; case "$withval" in
3055 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3056 no) BUGURL=
3058 *) BUGURL="$withval"
3060 esac
3061 else
3062 BUGURL="$PACKAGE_BUGREPORT"
3066 case ${BUGURL} in
3068 REPORT_BUGS_TO=
3069 REPORT_BUGS_TEXI=
3072 REPORT_BUGS_TO="<$BUGURL>"
3073 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3075 esac;
3080 cat >>confdefs.h <<_ACEOF
3081 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3082 _ACEOF
3085 ac_config_headers="$ac_config_headers config.h"
3088 . $srcdir/../bfd/development.sh
3090 ac_aux_dir=
3091 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3092 if test -f "$ac_dir/install-sh"; then
3093 ac_aux_dir=$ac_dir
3094 ac_install_sh="$ac_aux_dir/install-sh -c"
3095 break
3096 elif test -f "$ac_dir/install.sh"; then
3097 ac_aux_dir=$ac_dir
3098 ac_install_sh="$ac_aux_dir/install.sh -c"
3099 break
3100 elif test -f "$ac_dir/shtool"; then
3101 ac_aux_dir=$ac_dir
3102 ac_install_sh="$ac_aux_dir/shtool install -c"
3103 break
3105 done
3106 if test -z "$ac_aux_dir"; then
3107 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3110 # These three variables are undocumented and unsupported,
3111 # and are intended to be withdrawn in a future Autoconf release.
3112 # They can cause serious problems if a builder's source tree is in a directory
3113 # whose full name contains unusual characters.
3114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3119 # Make sure we can run config.sub.
3120 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3121 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3124 $as_echo_n "checking build system type... " >&6; }
3125 if ${ac_cv_build+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 ac_build_alias=$build_alias
3129 test "x$ac_build_alias" = x &&
3130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3131 test "x$ac_build_alias" = x &&
3132 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3134 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3138 $as_echo "$ac_cv_build" >&6; }
3139 case $ac_cv_build in
3140 *-*-*) ;;
3141 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3142 esac
3143 build=$ac_cv_build
3144 ac_save_IFS=$IFS; IFS='-'
3145 set x $ac_cv_build
3146 shift
3147 build_cpu=$1
3148 build_vendor=$2
3149 shift; shift
3150 # Remember, the first character of IFS is used to create $*,
3151 # except with old shells:
3152 build_os=$*
3153 IFS=$ac_save_IFS
3154 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3158 $as_echo_n "checking host system type... " >&6; }
3159 if ${ac_cv_host+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test "x$host_alias" = x; then
3163 ac_cv_host=$ac_cv_build
3164 else
3165 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3166 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3171 $as_echo "$ac_cv_host" >&6; }
3172 case $ac_cv_host in
3173 *-*-*) ;;
3174 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3175 esac
3176 host=$ac_cv_host
3177 ac_save_IFS=$IFS; IFS='-'
3178 set x $ac_cv_host
3179 shift
3180 host_cpu=$1
3181 host_vendor=$2
3182 shift; shift
3183 # Remember, the first character of IFS is used to create $*,
3184 # except with old shells:
3185 host_os=$*
3186 IFS=$ac_save_IFS
3187 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3191 $as_echo_n "checking target system type... " >&6; }
3192 if ${ac_cv_target+:} false; then :
3193 $as_echo_n "(cached) " >&6
3194 else
3195 if test "x$target_alias" = x; then
3196 ac_cv_target=$ac_cv_host
3197 else
3198 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3199 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3204 $as_echo "$ac_cv_target" >&6; }
3205 case $ac_cv_target in
3206 *-*-*) ;;
3207 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3208 esac
3209 target=$ac_cv_target
3210 ac_save_IFS=$IFS; IFS='-'
3211 set x $ac_cv_target
3212 shift
3213 target_cpu=$1
3214 target_vendor=$2
3215 shift; shift
3216 # Remember, the first character of IFS is used to create $*,
3217 # except with old shells:
3218 target_os=$*
3219 IFS=$ac_save_IFS
3220 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3223 # The aliases save the names the user supplied, while $host etc.
3224 # will get canonicalized.
3225 test -n "$target_alias" &&
3226 test "$program_prefix$program_suffix$program_transform_name" = \
3227 NONENONEs,x,x, &&
3228 program_prefix=${target_alias}-
3229 # Expand $ac_aux_dir to an absolute path.
3230 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3232 ac_ext=c
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237 if test -n "$ac_tool_prefix"; then
3238 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3239 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_CC+:} false; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC="$CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3261 IFS=$as_save_IFS
3265 CC=$ac_cv_prog_CC
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3276 if test -z "$ac_cv_prog_CC"; then
3277 ac_ct_CC=$CC
3278 # Extract the first word of "gcc", so it can be a program name with args.
3279 set dummy gcc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$ac_ct_CC"; then
3286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_ac_ct_CC="gcc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3299 done
3300 done
3301 IFS=$as_save_IFS
3305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3306 if test -n "$ac_ct_CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3308 $as_echo "$ac_ct_CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3314 if test "x$ac_ct_CC" = x; then
3315 CC=""
3316 else
3317 case $cross_compiling:$ac_tool_warned in
3318 yes:)
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3321 ac_tool_warned=yes ;;
3322 esac
3323 CC=$ac_ct_CC
3325 else
3326 CC="$ac_cv_prog_CC"
3329 if test -z "$CC"; then
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}cc; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_CC+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="${ac_tool_prefix}cc"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3352 done
3353 done
3354 IFS=$as_save_IFS
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3370 if test -z "$CC"; then
3371 # Extract the first word of "cc", so it can be a program name with args.
3372 set dummy cc; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_CC+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3380 else
3381 ac_prog_rejected=no
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3390 ac_prog_rejected=yes
3391 continue
3393 ac_cv_prog_CC="cc"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3397 done
3398 done
3399 IFS=$as_save_IFS
3401 if test $ac_prog_rejected = yes; then
3402 # We found a bogon in the path, so make sure we never use it.
3403 set dummy $ac_cv_prog_CC
3404 shift
3405 if test $# != 0; then
3406 # We chose a different compiler from the bogus one.
3407 # However, it has the same basename, so the bogon will be chosen
3408 # first if we set CC to just the basename; use the full file name.
3409 shift
3410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3426 if test -z "$CC"; then
3427 if test -n "$ac_tool_prefix"; then
3428 for ac_prog in cl.exe
3430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_prog_CC+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3443 IFS=$as_save_IFS
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 break 2
3451 done
3452 done
3453 IFS=$as_save_IFS
3457 CC=$ac_cv_prog_CC
3458 if test -n "$CC"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460 $as_echo "$CC" >&6; }
3461 else
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3467 test -n "$CC" && break
3468 done
3470 if test -z "$CC"; then
3471 ac_ct_CC=$CC
3472 for ac_prog in cl.exe
3474 # Extract the first word of "$ac_prog", so it can be a program name with args.
3475 set dummy $ac_prog; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 if test -n "$ac_ct_CC"; then
3482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_ac_ct_CC="$ac_prog"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3495 done
3496 done
3497 IFS=$as_save_IFS
3501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3502 if test -n "$ac_ct_CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3504 $as_echo "$ac_ct_CC" >&6; }
3505 else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3511 test -n "$ac_ct_CC" && break
3512 done
3514 if test "x$ac_ct_CC" = x; then
3515 CC=""
3516 else
3517 case $cross_compiling:$ac_tool_warned in
3518 yes:)
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521 ac_tool_warned=yes ;;
3522 esac
3523 CC=$ac_ct_CC
3530 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error $? "no acceptable C compiler found in \$PATH
3533 See \`config.log' for more details" "$LINENO" 5; }
3535 # Provide some information about the compiler.
3536 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3537 set X $ac_compile
3538 ac_compiler=$2
3539 for ac_option in --version -v -V -qversion; do
3540 { { ac_try="$ac_compiler $ac_option >&5"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3548 ac_status=$?
3549 if test -s conftest.err; then
3550 sed '10a\
3551 ... rest of stderr output deleted ...
3552 10q' conftest.err >conftest.er1
3553 cat conftest.er1 >&5
3555 rm -f conftest.er1 conftest.err
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }
3558 done
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3564 main ()
3568 return 0;
3570 _ACEOF
3571 ac_clean_files_save=$ac_clean_files
3572 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3573 # Try to create an executable without -o first, disregard a.out.
3574 # It will help us diagnose broken compilers, and finding out an intuition
3575 # of exeext.
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3577 $as_echo_n "checking whether the C compiler works... " >&6; }
3578 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3580 # The possible output files:
3581 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3583 ac_rmfiles=
3584 for ac_file in $ac_files
3586 case $ac_file in
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3589 esac
3590 done
3591 rm -f $ac_rmfiles
3593 if { { ac_try="$ac_link_default"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link_default") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; then :
3604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3605 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3606 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3607 # so that the user can short-circuit this test for compilers unknown to
3608 # Autoconf.
3609 for ac_file in $ac_files ''
3611 test -f "$ac_file" || continue
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3615 [ab].out )
3616 # We found the default executable, but exeext='' is most
3617 # certainly right.
3618 break;;
3619 *.* )
3620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3621 then :; else
3622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3624 # We set ac_cv_exeext here because the later test for it is not
3625 # safe: cross compilers may not add the suffix if given an `-o'
3626 # argument, so we may need to know it at that point already.
3627 # Even if this section looks crufty: it has the advantage of
3628 # actually working.
3629 break;;
3631 break;;
3632 esac
3633 done
3634 test "$ac_cv_exeext" = no && ac_cv_exeext=
3636 else
3637 ac_file=''
3639 if test -z "$ac_file"; then :
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error 77 "C compiler cannot create executables
3648 See \`config.log' for more details" "$LINENO" 5; }
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3651 $as_echo "yes" >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3654 $as_echo_n "checking for C compiler default output file name... " >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3656 $as_echo "$ac_file" >&6; }
3657 ac_exeext=$ac_cv_exeext
3659 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3660 ac_clean_files=$ac_clean_files_save
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3662 $as_echo_n "checking for suffix of executables... " >&6; }
3663 if { { ac_try="$ac_link"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_link") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }; then :
3674 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3675 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3676 # work properly (i.e., refer to `conftest.exe'), while it won't with
3677 # `rm'.
3678 for ac_file in conftest.exe conftest conftest.*; do
3679 test -f "$ac_file" || continue
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3682 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3683 break;;
3684 * ) break;;
3685 esac
3686 done
3687 else
3688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3691 See \`config.log' for more details" "$LINENO" 5; }
3693 rm -f conftest conftest$ac_cv_exeext
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3695 $as_echo "$ac_cv_exeext" >&6; }
3697 rm -f conftest.$ac_ext
3698 EXEEXT=$ac_cv_exeext
3699 ac_exeext=$EXEEXT
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702 #include <stdio.h>
3704 main ()
3706 FILE *f = fopen ("conftest.out", "w");
3707 return ferror (f) || fclose (f) != 0;
3710 return 0;
3712 _ACEOF
3713 ac_clean_files="$ac_clean_files conftest.out"
3714 # Check that the compiler produces executables we can run. If not, either
3715 # the compiler is broken, or we cross compile.
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3717 $as_echo_n "checking whether we are cross compiling... " >&6; }
3718 if test "$cross_compiling" != yes; then
3719 { { ac_try="$ac_link"
3720 case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_link") 2>&5
3727 ac_status=$?
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }
3730 if { ac_try='./conftest$ac_cv_exeext'
3731 { { case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_try") 2>&5
3738 ac_status=$?
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }; }; then
3741 cross_compiling=no
3742 else
3743 if test "$cross_compiling" = maybe; then
3744 cross_compiling=yes
3745 else
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error $? "cannot run C compiled programs.
3749 If you meant to cross compile, use \`--host'.
3750 See \`config.log' for more details" "$LINENO" 5; }
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3755 $as_echo "$cross_compiling" >&6; }
3757 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3758 ac_clean_files=$ac_clean_files_save
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3760 $as_echo_n "checking for suffix of object files... " >&6; }
3761 if ${ac_cv_objext+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3768 main ()
3772 return 0;
3774 _ACEOF
3775 rm -f conftest.o conftest.obj
3776 if { { ac_try="$ac_compile"
3777 case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783 (eval "$ac_compile") 2>&5
3784 ac_status=$?
3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }; then :
3787 for ac_file in conftest.o conftest.obj conftest.*; do
3788 test -f "$ac_file" || continue;
3789 case $ac_file in
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3792 break;;
3793 esac
3794 done
3795 else
3796 $as_echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error $? "cannot compute suffix of object files: cannot compile
3802 See \`config.log' for more details" "$LINENO" 5; }
3804 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3807 $as_echo "$ac_cv_objext" >&6; }
3808 OBJEXT=$ac_cv_objext
3809 ac_objext=$OBJEXT
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3811 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3812 if ${ac_cv_c_compiler_gnu+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3819 main ()
3821 #ifndef __GNUC__
3822 choke me
3823 #endif
3826 return 0;
3828 _ACEOF
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_compiler_gnu=yes
3831 else
3832 ac_compiler_gnu=no
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3839 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3840 if test $ac_compiler_gnu = yes; then
3841 GCC=yes
3842 else
3843 GCC=
3845 ac_test_CFLAGS=${CFLAGS+set}
3846 ac_save_CFLAGS=$CFLAGS
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3848 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3849 if ${ac_cv_prog_cc_g+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 ac_save_c_werror_flag=$ac_c_werror_flag
3853 ac_c_werror_flag=yes
3854 ac_cv_prog_cc_g=no
3855 CFLAGS="-g"
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3860 main ()
3864 return 0;
3866 _ACEOF
3867 if ac_fn_c_try_compile "$LINENO"; then :
3868 ac_cv_prog_cc_g=yes
3869 else
3870 CFLAGS=""
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3875 main ()
3879 return 0;
3881 _ACEOF
3882 if ac_fn_c_try_compile "$LINENO"; then :
3884 else
3885 ac_c_werror_flag=$ac_save_c_werror_flag
3886 CFLAGS="-g"
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3891 main ()
3895 return 0;
3897 _ACEOF
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899 ac_cv_prog_cc_g=yes
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_c_werror_flag=$ac_save_c_werror_flag
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3909 $as_echo "$ac_cv_prog_cc_g" >&6; }
3910 if test "$ac_test_CFLAGS" = set; then
3911 CFLAGS=$ac_save_CFLAGS
3912 elif test $ac_cv_prog_cc_g = yes; then
3913 if test "$GCC" = yes; then
3914 CFLAGS="-g -O2"
3915 else
3916 CFLAGS="-g"
3918 else
3919 if test "$GCC" = yes; then
3920 CFLAGS="-O2"
3921 else
3922 CFLAGS=
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3926 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3927 if ${ac_cv_prog_cc_c89+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 ac_cv_prog_cc_c89=no
3931 ac_save_CC=$CC
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <stdarg.h>
3935 #include <stdio.h>
3936 struct stat;
3937 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3938 struct buf { int x; };
3939 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3940 static char *e (p, i)
3941 char **p;
3942 int i;
3944 return p[i];
3946 static char *f (char * (*g) (char **, int), char **p, ...)
3948 char *s;
3949 va_list v;
3950 va_start (v,p);
3951 s = g (p, va_arg (v,int));
3952 va_end (v);
3953 return s;
3956 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3957 function prototypes and stuff, but not '\xHH' hex character constants.
3958 These don't provoke an error unfortunately, instead are silently treated
3959 as 'x'. The following induces an error, until -std is added to get
3960 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3961 array size at least. It's necessary to write '\x00'==0 to get something
3962 that's true only with -std. */
3963 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3965 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3966 inside strings and character constants. */
3967 #define FOO(x) 'x'
3968 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3970 int test (int i, double x);
3971 struct s1 {int (*f) (int a);};
3972 struct s2 {int (*f) (double a);};
3973 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3974 int argc;
3975 char **argv;
3977 main ()
3979 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3981 return 0;
3983 _ACEOF
3984 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3985 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3987 CC="$ac_save_CC $ac_arg"
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_prog_cc_c89=$ac_arg
3991 rm -f core conftest.err conftest.$ac_objext
3992 test "x$ac_cv_prog_cc_c89" != "xno" && break
3993 done
3994 rm -f conftest.$ac_ext
3995 CC=$ac_save_CC
3998 # AC_CACHE_VAL
3999 case "x$ac_cv_prog_cc_c89" in
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4002 $as_echo "none needed" >&6; } ;;
4003 xno)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4005 $as_echo "unsupported" >&6; } ;;
4007 CC="$CC $ac_cv_prog_cc_c89"
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4009 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4010 esac
4011 if test "x$ac_cv_prog_cc_c89" != xno; then :
4015 ac_ext=c
4016 ac_cpp='$CPP $CPPFLAGS'
4017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 ac_ext=c
4022 ac_cpp='$CPP $CPPFLAGS'
4023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4027 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4028 if ${am_cv_prog_cc_c_o+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4035 main ()
4039 return 0;
4041 _ACEOF
4042 # Make sure it works both with $CC and with simple cc.
4043 # Following AC_PROG_CC_C_O, we do the test twice because some
4044 # compilers refuse to overwrite an existing .o file with -o,
4045 # though they will create one.
4046 am_cv_prog_cc_c_o=yes
4047 for am_i in 1 2; do
4048 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4049 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } \
4053 && test -f conftest2.$ac_objext; then
4054 : OK
4055 else
4056 am_cv_prog_cc_c_o=no
4057 break
4059 done
4060 rm -f core conftest*
4061 unset am_i
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4064 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4065 if test "$am_cv_prog_cc_c_o" != yes; then
4066 # Losing compiler, so override with the script.
4067 # FIXME: It is wrong to rewrite CC.
4068 # But if we don't then we get into trouble of one sort or another.
4069 # A longer-term fix would be to have automake use am__CC in this case,
4070 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4071 CC="$am_aux_dir/compile $CC"
4073 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4086 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4087 # On Suns, sometimes $CPP names a directory.
4088 if test -n "$CPP" && test -d "$CPP"; then
4089 CPP=
4091 if test -z "$CPP"; then
4092 if ${ac_cv_prog_CPP+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 # Double quotes because CPP needs to be expanded
4096 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4098 ac_preproc_ok=false
4099 for ac_c_preproc_warn_flag in '' yes
4101 # Use a header file that comes with gcc, so configuring glibc
4102 # with a fresh cross-compiler works.
4103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4104 # <limits.h> exists even on freestanding compilers.
4105 # On the NeXT, cc -E runs the code through the compiler's parser,
4106 # not just through cpp. "Syntax error" is here to catch this case.
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #ifdef __STDC__
4110 # include <limits.h>
4111 #else
4112 # include <assert.h>
4113 #endif
4114 Syntax error
4115 _ACEOF
4116 if ac_fn_c_try_cpp "$LINENO"; then :
4118 else
4119 # Broken: fails on valid input.
4120 continue
4122 rm -f conftest.err conftest.i conftest.$ac_ext
4124 # OK, works on sane cases. Now check whether nonexistent headers
4125 # can be detected and how.
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4128 #include <ac_nonexistent.h>
4129 _ACEOF
4130 if ac_fn_c_try_cpp "$LINENO"; then :
4131 # Broken: success on invalid input.
4132 continue
4133 else
4134 # Passes both tests.
4135 ac_preproc_ok=:
4136 break
4138 rm -f conftest.err conftest.i conftest.$ac_ext
4140 done
4141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4142 rm -f conftest.i conftest.err conftest.$ac_ext
4143 if $ac_preproc_ok; then :
4144 break
4147 done
4148 ac_cv_prog_CPP=$CPP
4151 CPP=$ac_cv_prog_CPP
4152 else
4153 ac_cv_prog_CPP=$CPP
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4156 $as_echo "$CPP" >&6; }
4157 ac_preproc_ok=false
4158 for ac_c_preproc_warn_flag in '' yes
4160 # Use a header file that comes with gcc, so configuring glibc
4161 # with a fresh cross-compiler works.
4162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163 # <limits.h> exists even on freestanding compilers.
4164 # On the NeXT, cc -E runs the code through the compiler's parser,
4165 # not just through cpp. "Syntax error" is here to catch this case.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #ifdef __STDC__
4169 # include <limits.h>
4170 #else
4171 # include <assert.h>
4172 #endif
4173 Syntax error
4174 _ACEOF
4175 if ac_fn_c_try_cpp "$LINENO"; then :
4177 else
4178 # Broken: fails on valid input.
4179 continue
4181 rm -f conftest.err conftest.i conftest.$ac_ext
4183 # OK, works on sane cases. Now check whether nonexistent headers
4184 # can be detected and how.
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 #include <ac_nonexistent.h>
4188 _ACEOF
4189 if ac_fn_c_try_cpp "$LINENO"; then :
4190 # Broken: success on invalid input.
4191 continue
4192 else
4193 # Passes both tests.
4194 ac_preproc_ok=:
4195 break
4197 rm -f conftest.err conftest.i conftest.$ac_ext
4199 done
4200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4201 rm -f conftest.i conftest.err conftest.$ac_ext
4202 if $ac_preproc_ok; then :
4204 else
4205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4208 See \`config.log' for more details" "$LINENO" 5; }
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4220 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4221 if ${ac_cv_path_GREP+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -z "$GREP"; then
4225 ac_path_GREP_found=false
4226 # Loop through the user's path and test for each of PROGNAME-LIST
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_prog in grep ggrep; do
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4235 as_fn_executable_p "$ac_path_GREP" || continue
4236 # Check for GNU ac_path_GREP and select it if it is found.
4237 # Check for GNU $ac_path_GREP
4238 case `"$ac_path_GREP" --version 2>&1` in
4239 *GNU*)
4240 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4242 ac_count=0
4243 $as_echo_n 0123456789 >"conftest.in"
4244 while :
4246 cat "conftest.in" "conftest.in" >"conftest.tmp"
4247 mv "conftest.tmp" "conftest.in"
4248 cp "conftest.in" "conftest.nl"
4249 $as_echo 'GREP' >> "conftest.nl"
4250 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4252 as_fn_arith $ac_count + 1 && ac_count=$as_val
4253 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4254 # Best one so far, save it but keep looking for a better one
4255 ac_cv_path_GREP="$ac_path_GREP"
4256 ac_path_GREP_max=$ac_count
4258 # 10*(2^10) chars as input seems more than enough
4259 test $ac_count -gt 10 && break
4260 done
4261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4262 esac
4264 $ac_path_GREP_found && break 3
4265 done
4266 done
4267 done
4268 IFS=$as_save_IFS
4269 if test -z "$ac_cv_path_GREP"; then
4270 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4272 else
4273 ac_cv_path_GREP=$GREP
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4278 $as_echo "$ac_cv_path_GREP" >&6; }
4279 GREP="$ac_cv_path_GREP"
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4283 $as_echo_n "checking for egrep... " >&6; }
4284 if ${ac_cv_path_EGREP+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4288 then ac_cv_path_EGREP="$GREP -E"
4289 else
4290 if test -z "$EGREP"; then
4291 ac_path_EGREP_found=false
4292 # Loop through the user's path and test for each of PROGNAME-LIST
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_prog in egrep; do
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4301 as_fn_executable_p "$ac_path_EGREP" || continue
4302 # Check for GNU ac_path_EGREP and select it if it is found.
4303 # Check for GNU $ac_path_EGREP
4304 case `"$ac_path_EGREP" --version 2>&1` in
4305 *GNU*)
4306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4308 ac_count=0
4309 $as_echo_n 0123456789 >"conftest.in"
4310 while :
4312 cat "conftest.in" "conftest.in" >"conftest.tmp"
4313 mv "conftest.tmp" "conftest.in"
4314 cp "conftest.in" "conftest.nl"
4315 $as_echo 'EGREP' >> "conftest.nl"
4316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4318 as_fn_arith $ac_count + 1 && ac_count=$as_val
4319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4320 # Best one so far, save it but keep looking for a better one
4321 ac_cv_path_EGREP="$ac_path_EGREP"
4322 ac_path_EGREP_max=$ac_count
4324 # 10*(2^10) chars as input seems more than enough
4325 test $ac_count -gt 10 && break
4326 done
4327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4328 esac
4330 $ac_path_EGREP_found && break 3
4331 done
4332 done
4333 done
4334 IFS=$as_save_IFS
4335 if test -z "$ac_cv_path_EGREP"; then
4336 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4338 else
4339 ac_cv_path_EGREP=$EGREP
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4345 $as_echo "$ac_cv_path_EGREP" >&6; }
4346 EGREP="$ac_cv_path_EGREP"
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4350 $as_echo_n "checking for ANSI C header files... " >&6; }
4351 if ${ac_cv_header_stdc+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #include <stdlib.h>
4357 #include <stdarg.h>
4358 #include <string.h>
4359 #include <float.h>
4362 main ()
4366 return 0;
4368 _ACEOF
4369 if ac_fn_c_try_compile "$LINENO"; then :
4370 ac_cv_header_stdc=yes
4371 else
4372 ac_cv_header_stdc=no
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 if test $ac_cv_header_stdc = yes; then
4377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <string.h>
4382 _ACEOF
4383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4384 $EGREP "memchr" >/dev/null 2>&1; then :
4386 else
4387 ac_cv_header_stdc=no
4389 rm -f conftest*
4393 if test $ac_cv_header_stdc = yes; then
4394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <stdlib.h>
4399 _ACEOF
4400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401 $EGREP "free" >/dev/null 2>&1; then :
4403 else
4404 ac_cv_header_stdc=no
4406 rm -f conftest*
4410 if test $ac_cv_header_stdc = yes; then
4411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4412 if test "$cross_compiling" = yes; then :
4414 else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <ctype.h>
4418 #include <stdlib.h>
4419 #if ((' ' & 0x0FF) == 0x020)
4420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4422 #else
4423 # define ISLOWER(c) \
4424 (('a' <= (c) && (c) <= 'i') \
4425 || ('j' <= (c) && (c) <= 'r') \
4426 || ('s' <= (c) && (c) <= 'z'))
4427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4428 #endif
4430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4432 main ()
4434 int i;
4435 for (i = 0; i < 256; i++)
4436 if (XOR (islower (i), ISLOWER (i))
4437 || toupper (i) != TOUPPER (i))
4438 return 2;
4439 return 0;
4441 _ACEOF
4442 if ac_fn_c_try_run "$LINENO"; then :
4444 else
4445 ac_cv_header_stdc=no
4447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4448 conftest.$ac_objext conftest.beam conftest.$ac_ext
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4454 $as_echo "$ac_cv_header_stdc" >&6; }
4455 if test $ac_cv_header_stdc = yes; then
4457 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4461 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4462 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4463 inttypes.h stdint.h unistd.h
4464 do :
4465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4468 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4469 cat >>confdefs.h <<_ACEOF
4470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4471 _ACEOF
4475 done
4478 test "$program_prefix" != NONE &&
4479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4480 # Use a double $ so make ignores it.
4481 test "$program_suffix" != NONE &&
4482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4483 # Double any \ or $.
4484 # By default was `s,x,x', remove it if useless.
4485 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4486 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4488 # Find a good install program. We prefer a C program (faster),
4489 # so one script is as good as another. But avoid the broken or
4490 # incompatible versions:
4491 # SysV /etc/install, /usr/sbin/install
4492 # SunOS /usr/etc/install
4493 # IRIX /sbin/install
4494 # AIX /bin/install
4495 # AmigaOS /C/install, which installs bootblocks on floppy discs
4496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4499 # OS/2's system install, which has a completely different semantic
4500 # ./install, which can be erroneously created by make from ./install.sh.
4501 # Reject install programs that cannot install multiple files.
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4503 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4504 if test -z "$INSTALL"; then
4505 if ${ac_cv_path_install+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 # Account for people who put trailing slashes in PATH elements.
4514 case $as_dir/ in #((
4515 ./ | .// | /[cC]/* | \
4516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4518 /usr/ucb/* ) ;;
4520 # OSF1 and SCO ODT 3.0 have their own names for install.
4521 # Don't use installbsd from OSF since it installs stuff as root
4522 # by default.
4523 for ac_prog in ginstall scoinst install; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4526 if test $ac_prog = install &&
4527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4528 # AIX install. It has an incompatible calling convention.
4530 elif test $ac_prog = install &&
4531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4532 # program-specific install script used by HP pwplus--don't use.
4534 else
4535 rm -rf conftest.one conftest.two conftest.dir
4536 echo one > conftest.one
4537 echo two > conftest.two
4538 mkdir conftest.dir
4539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4540 test -s conftest.one && test -s conftest.two &&
4541 test -s conftest.dir/conftest.one &&
4542 test -s conftest.dir/conftest.two
4543 then
4544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4545 break 3
4549 done
4550 done
4552 esac
4554 done
4555 IFS=$as_save_IFS
4557 rm -rf conftest.one conftest.two conftest.dir
4560 if test "${ac_cv_path_install+set}" = set; then
4561 INSTALL=$ac_cv_path_install
4562 else
4563 # As a last resort, use the slow shell script. Don't cache a
4564 # value for INSTALL within a source directory, because that will
4565 # break other packages using the cache if that directory is
4566 # removed, or if the value is a relative name.
4567 INSTALL=$ac_install_sh
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4571 $as_echo "$INSTALL" >&6; }
4573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4574 # It thinks the first close brace ends the variable substitution.
4575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4585 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4586 if ${ac_cv_c_bigendian+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 ac_cv_c_bigendian=unknown
4590 # See if we're dealing with a universal compiler.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #ifndef __APPLE_CC__
4594 not a universal capable compiler
4595 #endif
4596 typedef int dummy;
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4601 # Check for potential -arch flags. It is not universal unless
4602 # there are at least two -arch flags with different values.
4603 ac_arch=
4604 ac_prev=
4605 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4606 if test -n "$ac_prev"; then
4607 case $ac_word in
4608 i?86 | x86_64 | ppc | ppc64)
4609 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4610 ac_arch=$ac_word
4611 else
4612 ac_cv_c_bigendian=universal
4613 break
4616 esac
4617 ac_prev=
4618 elif test "x$ac_word" = "x-arch"; then
4619 ac_prev=arch
4621 done
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 if test $ac_cv_c_bigendian = unknown; then
4625 # See if sys/param.h defines the BYTE_ORDER macro.
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 #include <sys/types.h>
4629 #include <sys/param.h>
4632 main ()
4634 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4635 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4636 && LITTLE_ENDIAN)
4637 bogus endian macros
4638 #endif
4641 return 0;
4643 _ACEOF
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645 # It does; now see whether it defined to BIG_ENDIAN or not.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <sys/types.h>
4649 #include <sys/param.h>
4652 main ()
4654 #if BYTE_ORDER != BIG_ENDIAN
4655 not big endian
4656 #endif
4659 return 0;
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_c_bigendian=yes
4664 else
4665 ac_cv_c_bigendian=no
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 if test $ac_cv_c_bigendian = unknown; then
4672 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #include <limits.h>
4678 main ()
4680 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4681 bogus endian macros
4682 #endif
4685 return 0;
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689 # It does; now see whether it defined to _BIG_ENDIAN or not.
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 #include <limits.h>
4695 main ()
4697 #ifndef _BIG_ENDIAN
4698 not big endian
4699 #endif
4702 return 0;
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_c_bigendian=yes
4707 else
4708 ac_cv_c_bigendian=no
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 if test $ac_cv_c_bigendian = unknown; then
4715 # Compile a test program.
4716 if test "$cross_compiling" = yes; then :
4717 # Try to guess by grepping values from an object file.
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 short int ascii_mm[] =
4721 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4722 short int ascii_ii[] =
4723 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4724 int use_ascii (int i) {
4725 return ascii_mm[i] + ascii_ii[i];
4727 short int ebcdic_ii[] =
4728 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4729 short int ebcdic_mm[] =
4730 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4731 int use_ebcdic (int i) {
4732 return ebcdic_mm[i] + ebcdic_ii[i];
4734 extern int foo;
4737 main ()
4739 return use_ascii (foo) == use_ebcdic (foo);
4741 return 0;
4743 _ACEOF
4744 if ac_fn_c_try_compile "$LINENO"; then :
4745 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4746 ac_cv_c_bigendian=yes
4748 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4749 if test "$ac_cv_c_bigendian" = unknown; then
4750 ac_cv_c_bigendian=no
4751 else
4752 # finding both strings is unlikely to happen, but who knows?
4753 ac_cv_c_bigendian=unknown
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 else
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 $ac_includes_default
4763 main ()
4766 /* Are we little or big endian? From Harbison&Steele. */
4767 union
4769 long int l;
4770 char c[sizeof (long int)];
4771 } u;
4772 u.l = 1;
4773 return u.c[sizeof (long int) - 1] == 1;
4776 return 0;
4778 _ACEOF
4779 if ac_fn_c_try_run "$LINENO"; then :
4780 ac_cv_c_bigendian=no
4781 else
4782 ac_cv_c_bigendian=yes
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4785 conftest.$ac_objext conftest.beam conftest.$ac_ext
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4791 $as_echo "$ac_cv_c_bigendian" >&6; }
4792 case $ac_cv_c_bigendian in #(
4793 yes)
4794 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4795 ;; #(
4797 ;; #(
4798 universal)
4800 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4802 ;; #(
4804 as_fn_error $? "unknown endianness
4805 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4806 esac
4811 if test -n "$ac_tool_prefix"; then
4812 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4813 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if ${ac_cv_prog_DTC+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$DTC"; then
4820 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4835 IFS=$as_save_IFS
4839 DTC=$ac_cv_prog_DTC
4840 if test -n "$DTC"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4842 $as_echo "$DTC" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4850 if test -z "$ac_cv_prog_DTC"; then
4851 ac_ct_DTC=$DTC
4852 # Extract the first word of "dtc", so it can be a program name with args.
4853 set dummy dtc; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$ac_ct_DTC"; then
4860 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_ac_ct_DTC="dtc"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4880 if test -n "$ac_ct_DTC"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4882 $as_echo "$ac_ct_DTC" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4888 if test "x$ac_ct_DTC" = x; then
4889 DTC=""
4890 else
4891 case $cross_compiling:$ac_tool_warned in
4892 yes:)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned=yes ;;
4896 esac
4897 DTC=$ac_ct_DTC
4899 else
4900 DTC="$ac_cv_prog_DTC"
4904 if test "x$cross_compiling" = "xno"; then
4905 : "${AR_FOR_BUILD:=\$(AR)}"
4906 : "${CC_FOR_BUILD:=\$(CC)}"
4907 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4908 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4909 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4910 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4911 else
4912 : "${AR_FOR_BUILD:=ar}"
4913 : "${CC_FOR_BUILD:=gcc}"
4914 : "${RANLIB_FOR_BUILD:=ranlib}"
4915 : "${CFLAGS_FOR_BUILD:=-g -O}"
4916 : "${CPPFLAGS_FOR_BUILD:=}"
4917 : "${LDLFAGS_FOR_BUILD:=}"
4927 if test -n "$ac_tool_prefix"; then
4928 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4929 set dummy ${ac_tool_prefix}ar; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_AR+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$AR"; then
4936 ac_cv_prog_AR="$AR" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945 ac_cv_prog_AR="${ac_tool_prefix}ar"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4949 done
4950 done
4951 IFS=$as_save_IFS
4955 AR=$ac_cv_prog_AR
4956 if test -n "$AR"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4958 $as_echo "$AR" >&6; }
4959 else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4966 if test -z "$ac_cv_prog_AR"; then
4967 ac_ct_AR=$AR
4968 # Extract the first word of "ar", so it can be a program name with args.
4969 set dummy ar; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$ac_ct_AR"; then
4976 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_ac_ct_AR="ar"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4989 done
4990 done
4991 IFS=$as_save_IFS
4995 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4996 if test -n "$ac_ct_AR"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4998 $as_echo "$ac_ct_AR" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5004 if test "x$ac_ct_AR" = x; then
5005 AR=""
5006 else
5007 case $cross_compiling:$ac_tool_warned in
5008 yes:)
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011 ac_tool_warned=yes ;;
5012 esac
5013 AR=$ac_ct_AR
5015 else
5016 AR="$ac_cv_prog_AR"
5019 if test -n "$ac_tool_prefix"; then
5020 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5021 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_RANLIB+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$RANLIB"; then
5028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5043 IFS=$as_save_IFS
5047 RANLIB=$ac_cv_prog_RANLIB
5048 if test -n "$RANLIB"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5050 $as_echo "$RANLIB" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5058 if test -z "$ac_cv_prog_RANLIB"; then
5059 ac_ct_RANLIB=$RANLIB
5060 # Extract the first word of "ranlib", so it can be a program name with args.
5061 set dummy ranlib; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -n "$ac_ct_RANLIB"; then
5068 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_prog_ac_ct_RANLIB="ranlib"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5087 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5088 if test -n "$ac_ct_RANLIB"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5090 $as_echo "$ac_ct_RANLIB" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5096 if test "x$ac_ct_RANLIB" = x; then
5097 RANLIB=":"
5098 else
5099 case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103 ac_tool_warned=yes ;;
5104 esac
5105 RANLIB=$ac_ct_RANLIB
5107 else
5108 RANLIB="$ac_cv_prog_RANLIB"
5118 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 case $PKG_CONFIG in
5128 [\\/]* | ?:[\\/]*)
5129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5148 esac
5150 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5151 if test -n "$PKG_CONFIG"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5153 $as_echo "$PKG_CONFIG" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5161 if test -z "$ac_cv_path_PKG_CONFIG"; then
5162 ac_pt_PKG_CONFIG=$PKG_CONFIG
5163 # Extract the first word of "pkg-config", so it can be a program name with args.
5164 set dummy pkg-config; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 case $ac_pt_PKG_CONFIG in
5171 [\\/]* | ?:[\\/]*)
5172 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5191 esac
5193 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5194 if test -n "$ac_pt_PKG_CONFIG"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5196 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5202 if test "x$ac_pt_PKG_CONFIG" = x; then
5203 PKG_CONFIG=""
5204 else
5205 case $cross_compiling:$ac_tool_warned in
5206 yes:)
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209 ac_tool_warned=yes ;;
5210 esac
5211 PKG_CONFIG=$ac_pt_PKG_CONFIG
5213 else
5214 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5218 if test -n "$PKG_CONFIG"; then
5219 _pkg_min_version=0.9.0
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5221 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5222 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5224 $as_echo "yes" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 PKG_CONFIG=""
5232 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5233 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5234 # is C99. So handle it ourselves.
5236 C_DIALECT=
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5238 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5242 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5243 # error "C11 support not found"
5244 #endif
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5249 $as_echo "yes" >&6; }
5250 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5255 $as_echo_n "checking for -std=c11 support... " >&6; }
5256 ac_save_CC="$CC"
5257 CC="$CC -std=c11"
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5261 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5262 # error "C11 support not found"
5263 #endif
5265 _ACEOF
5266 if ac_fn_c_try_compile "$LINENO"; then :
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5269 $as_echo "yes" >&6; }
5270 CC="$ac_save_CC"
5271 C_DIALECT="-std=c11"
5273 else
5274 as_fn_error $? "C11 is required" "$LINENO" 5
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 for ac_header in $ac_header_list
5285 do :
5286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5287 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5290 cat >>confdefs.h <<_ACEOF
5291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5292 _ACEOF
5296 done
5345 for ac_func in $ac_func_list
5346 do :
5347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5350 cat >>confdefs.h <<_ACEOF
5351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5352 _ACEOF
5355 done
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5484 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5485 if ${ac_cv_struct_tm+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <sys/types.h>
5491 #include <time.h>
5494 main ()
5496 struct tm tm;
5497 int *p = &tm.tm_sec;
5498 return !p;
5500 return 0;
5502 _ACEOF
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504 ac_cv_struct_tm=time.h
5505 else
5506 ac_cv_struct_tm=sys/time.h
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5511 $as_echo "$ac_cv_struct_tm" >&6; }
5512 if test $ac_cv_struct_tm = sys/time.h; then
5514 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5519 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5520 if ${ac_cv_type_uid_t+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 #include <sys/types.h>
5527 _ACEOF
5528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5529 $EGREP "uid_t" >/dev/null 2>&1; then :
5530 ac_cv_type_uid_t=yes
5531 else
5532 ac_cv_type_uid_t=no
5534 rm -f conftest*
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5538 $as_echo "$ac_cv_type_uid_t" >&6; }
5539 if test $ac_cv_type_uid_t = no; then
5541 $as_echo "#define uid_t int" >>confdefs.h
5544 $as_echo "#define gid_t int" >>confdefs.h
5548 case `pwd` in
5549 *\ * | *\ *)
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5551 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5552 esac
5556 macro_version='2.2.7a'
5557 macro_revision='1.3134'
5571 ltmain="$ac_aux_dir/ltmain.sh"
5573 # Backslashify metacharacters that are still active within
5574 # double-quoted strings.
5575 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5577 # Same as above, but do not quote variable references.
5578 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5580 # Sed substitution to delay expansion of an escaped shell variable in a
5581 # double_quote_subst'ed string.
5582 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5584 # Sed substitution to delay expansion of an escaped single quote.
5585 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5587 # Sed substitution to avoid accidental globbing in evaled expressions
5588 no_glob_subst='s/\*/\\\*/g'
5590 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5591 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5595 $as_echo_n "checking how to print strings... " >&6; }
5596 # Test print first, because it will be a builtin if present.
5597 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5598 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5599 ECHO='print -r --'
5600 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5601 ECHO='printf %s\n'
5602 else
5603 # Use this function as a fallback that always works.
5604 func_fallback_echo ()
5606 eval 'cat <<_LTECHO_EOF
5608 _LTECHO_EOF'
5610 ECHO='func_fallback_echo'
5613 # func_echo_all arg...
5614 # Invoke $ECHO with all args, space-separated.
5615 func_echo_all ()
5617 $ECHO ""
5620 case "$ECHO" in
5621 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5622 $as_echo "printf" >&6; } ;;
5623 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5624 $as_echo "print -r" >&6; } ;;
5625 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5626 $as_echo "cat" >&6; } ;;
5627 esac
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5643 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5644 if ${ac_cv_path_SED+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5648 for ac_i in 1 2 3 4 5 6 7; do
5649 ac_script="$ac_script$as_nl$ac_script"
5650 done
5651 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5652 { ac_script=; unset ac_script;}
5653 if test -z "$SED"; then
5654 ac_path_SED_found=false
5655 # Loop through the user's path and test for each of PROGNAME-LIST
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_prog in sed gsed; do
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5664 as_fn_executable_p "$ac_path_SED" || continue
5665 # Check for GNU ac_path_SED and select it if it is found.
5666 # Check for GNU $ac_path_SED
5667 case `"$ac_path_SED" --version 2>&1` in
5668 *GNU*)
5669 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5671 ac_count=0
5672 $as_echo_n 0123456789 >"conftest.in"
5673 while :
5675 cat "conftest.in" "conftest.in" >"conftest.tmp"
5676 mv "conftest.tmp" "conftest.in"
5677 cp "conftest.in" "conftest.nl"
5678 $as_echo '' >> "conftest.nl"
5679 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5681 as_fn_arith $ac_count + 1 && ac_count=$as_val
5682 if test $ac_count -gt ${ac_path_SED_max-0}; then
5683 # Best one so far, save it but keep looking for a better one
5684 ac_cv_path_SED="$ac_path_SED"
5685 ac_path_SED_max=$ac_count
5687 # 10*(2^10) chars as input seems more than enough
5688 test $ac_count -gt 10 && break
5689 done
5690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5691 esac
5693 $ac_path_SED_found && break 3
5694 done
5695 done
5696 done
5697 IFS=$as_save_IFS
5698 if test -z "$ac_cv_path_SED"; then
5699 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5701 else
5702 ac_cv_path_SED=$SED
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5707 $as_echo "$ac_cv_path_SED" >&6; }
5708 SED="$ac_cv_path_SED"
5709 rm -f conftest.sed
5711 test -z "$SED" && SED=sed
5712 Xsed="$SED -e 1s/^X//"
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5725 $as_echo_n "checking for fgrep... " >&6; }
5726 if ${ac_cv_path_FGREP+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5730 then ac_cv_path_FGREP="$GREP -F"
5731 else
5732 if test -z "$FGREP"; then
5733 ac_path_FGREP_found=false
5734 # Loop through the user's path and test for each of PROGNAME-LIST
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_prog in fgrep; do
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5743 as_fn_executable_p "$ac_path_FGREP" || continue
5744 # Check for GNU ac_path_FGREP and select it if it is found.
5745 # Check for GNU $ac_path_FGREP
5746 case `"$ac_path_FGREP" --version 2>&1` in
5747 *GNU*)
5748 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5750 ac_count=0
5751 $as_echo_n 0123456789 >"conftest.in"
5752 while :
5754 cat "conftest.in" "conftest.in" >"conftest.tmp"
5755 mv "conftest.tmp" "conftest.in"
5756 cp "conftest.in" "conftest.nl"
5757 $as_echo 'FGREP' >> "conftest.nl"
5758 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5760 as_fn_arith $ac_count + 1 && ac_count=$as_val
5761 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5762 # Best one so far, save it but keep looking for a better one
5763 ac_cv_path_FGREP="$ac_path_FGREP"
5764 ac_path_FGREP_max=$ac_count
5766 # 10*(2^10) chars as input seems more than enough
5767 test $ac_count -gt 10 && break
5768 done
5769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5770 esac
5772 $ac_path_FGREP_found && break 3
5773 done
5774 done
5775 done
5776 IFS=$as_save_IFS
5777 if test -z "$ac_cv_path_FGREP"; then
5778 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5780 else
5781 ac_cv_path_FGREP=$FGREP
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5787 $as_echo "$ac_cv_path_FGREP" >&6; }
5788 FGREP="$ac_cv_path_FGREP"
5791 test -z "$GREP" && GREP=grep
5811 # Check whether --with-gnu-ld was given.
5812 if test "${with_gnu_ld+set}" = set; then :
5813 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5814 else
5815 with_gnu_ld=no
5818 ac_prog=ld
5819 if test "$GCC" = yes; then
5820 # Check if gcc -print-prog-name=ld gives a path.
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5822 $as_echo_n "checking for ld used by $CC... " >&6; }
5823 case $host in
5824 *-*-mingw*)
5825 # gcc leaves a trailing carriage return which upsets mingw
5826 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5828 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5829 esac
5830 case $ac_prog in
5831 # Accept absolute paths.
5832 [\\/]* | ?:[\\/]*)
5833 re_direlt='/[^/][^/]*/\.\./'
5834 # Canonicalize the pathname of ld
5835 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5836 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5837 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5838 done
5839 test -z "$LD" && LD="$ac_prog"
5842 # If it fails, then pretend we aren't using GCC.
5843 ac_prog=ld
5846 # If it is relative, then search for the first ld in PATH.
5847 with_gnu_ld=unknown
5849 esac
5850 elif test "$with_gnu_ld" = yes; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5852 $as_echo_n "checking for GNU ld... " >&6; }
5853 else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5855 $as_echo_n "checking for non-GNU ld... " >&6; }
5857 if ${lt_cv_path_LD+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test -z "$LD"; then
5861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862 for ac_dir in $PATH; do
5863 IFS="$lt_save_ifs"
5864 test -z "$ac_dir" && ac_dir=.
5865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5866 lt_cv_path_LD="$ac_dir/$ac_prog"
5867 # Check to see if the program is GNU ld. I'd rather use --version,
5868 # but apparently some variants of GNU ld only accept -v.
5869 # Break only if it was the GNU/non-GNU ld that we prefer.
5870 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5871 *GNU* | *'with BFD'*)
5872 test "$with_gnu_ld" != no && break
5875 test "$with_gnu_ld" != yes && break
5877 esac
5879 done
5880 IFS="$lt_save_ifs"
5881 else
5882 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5886 LD="$lt_cv_path_LD"
5887 if test -n "$LD"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5889 $as_echo "$LD" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5894 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5896 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5897 if ${lt_cv_prog_gnu_ld+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5901 case `$LD -v 2>&1 </dev/null` in
5902 *GNU* | *'with BFD'*)
5903 lt_cv_prog_gnu_ld=yes
5906 lt_cv_prog_gnu_ld=no
5908 esac
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5911 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5912 with_gnu_ld=$lt_cv_prog_gnu_ld
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5923 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5924 if ${lt_cv_path_NM+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$NM"; then
5928 # Let the user override the nm to test.
5929 lt_nm_to_check="$NM"
5930 else
5931 lt_nm_to_check="${ac_tool_prefix}nm"
5932 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5933 lt_nm_to_check="$lt_nm_to_check nm"
5936 for lt_tmp_nm in "$lt_nm_to_check"; do
5937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5938 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5939 IFS="$lt_save_ifs"
5940 test -z "$ac_dir" && ac_dir=.
5941 # Strip out any user-provided options from the nm to test twice,
5942 # the first time to test to see if nm (rather than its options) has
5943 # an explicit path, the second time to yield a file which can be
5944 # nm'ed itself.
5945 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5946 case "$tmp_nm_path" in
5947 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5948 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5949 esac
5950 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5951 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5952 # Check to see if the nm accepts a BSD-compat flag.
5953 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5954 # nm: unknown option "B" ignored
5955 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5956 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5957 break
5960 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5961 *$tmp_nm*)
5962 lt_cv_path_NM="$tmp_nm -p"
5963 break
5966 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5967 continue # so that we can try to find one that supports BSD flags
5969 esac
5971 esac
5973 done
5974 IFS="$lt_save_ifs"
5975 done
5976 : ${lt_cv_path_NM=no}
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5979 $as_echo "$lt_cv_path_NM" >&6; }
5980 if test "$lt_cv_path_NM" != "no"; then
5981 NM="$lt_cv_path_NM"
5982 else
5983 # Didn't find any BSD compatible name lister, look for dumpbin.
5984 if test -n "$DUMPBIN"; then :
5985 # Let the user override the test.
5986 else
5987 if test -n "$ac_tool_prefix"; then
5988 for ac_prog in dumpbin "link -dump"
5990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if ${ac_cv_prog_DUMPBIN+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 if test -n "$DUMPBIN"; then
5998 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6011 done
6012 done
6013 IFS=$as_save_IFS
6017 DUMPBIN=$ac_cv_prog_DUMPBIN
6018 if test -n "$DUMPBIN"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6020 $as_echo "$DUMPBIN" >&6; }
6021 else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6027 test -n "$DUMPBIN" && break
6028 done
6030 if test -z "$DUMPBIN"; then
6031 ac_ct_DUMPBIN=$DUMPBIN
6032 for ac_prog in dumpbin "link -dump"
6034 # Extract the first word of "$ac_prog", so it can be a program name with args.
6035 set dummy $ac_prog; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$ac_ct_DUMPBIN"; then
6042 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6055 done
6056 done
6057 IFS=$as_save_IFS
6061 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6062 if test -n "$ac_ct_DUMPBIN"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6064 $as_echo "$ac_ct_DUMPBIN" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6071 test -n "$ac_ct_DUMPBIN" && break
6072 done
6074 if test "x$ac_ct_DUMPBIN" = x; then
6075 DUMPBIN=":"
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6082 esac
6083 DUMPBIN=$ac_ct_DUMPBIN
6087 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6088 *COFF*)
6089 DUMPBIN="$DUMPBIN -symbols"
6092 DUMPBIN=:
6094 esac
6097 if test "$DUMPBIN" != ":"; then
6098 NM="$DUMPBIN"
6101 test -z "$NM" && NM=nm
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6109 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6110 if ${lt_cv_nm_interface+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 lt_cv_nm_interface="BSD nm"
6114 echo "int some_variable = 0;" > conftest.$ac_ext
6115 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6116 (eval "$ac_compile" 2>conftest.err)
6117 cat conftest.err >&5
6118 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6119 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6120 cat conftest.err >&5
6121 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6122 cat conftest.out >&5
6123 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6124 lt_cv_nm_interface="MS dumpbin"
6126 rm -f conftest*
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6129 $as_echo "$lt_cv_nm_interface" >&6; }
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6132 $as_echo_n "checking whether ln -s works... " >&6; }
6133 LN_S=$as_ln_s
6134 if test "$LN_S" = "ln -s"; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6136 $as_echo "yes" >&6; }
6137 else
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6139 $as_echo "no, using $LN_S" >&6; }
6142 # find the maximum length of command line arguments
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6144 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6145 if ${lt_cv_sys_max_cmd_len+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6149 teststring="ABCD"
6151 case $build_os in
6152 msdosdjgpp*)
6153 # On DJGPP, this test can blow up pretty badly due to problems in libc
6154 # (any single argument exceeding 2000 bytes causes a buffer overrun
6155 # during glob expansion). Even if it were fixed, the result of this
6156 # check would be larger than it should be.
6157 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6160 gnu*)
6161 # Under GNU Hurd, this test is not required because there is
6162 # no limit to the length of command line arguments.
6163 # Libtool will interpret -1 as no limit whatsoever
6164 lt_cv_sys_max_cmd_len=-1;
6167 cygwin* | mingw* | cegcc*)
6168 # On Win9x/ME, this test blows up -- it succeeds, but takes
6169 # about 5 minutes as the teststring grows exponentially.
6170 # Worse, since 9x/ME are not pre-emptively multitasking,
6171 # you end up with a "frozen" computer, even though with patience
6172 # the test eventually succeeds (with a max line length of 256k).
6173 # Instead, let's just punt: use the minimum linelength reported by
6174 # all of the supported platforms: 8192 (on NT/2K/XP).
6175 lt_cv_sys_max_cmd_len=8192;
6178 mint*)
6179 # On MiNT this can take a long time and run out of memory.
6180 lt_cv_sys_max_cmd_len=8192;
6183 amigaos*)
6184 # On AmigaOS with pdksh, this test takes hours, literally.
6185 # So we just punt and use a minimum line length of 8192.
6186 lt_cv_sys_max_cmd_len=8192;
6189 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6190 # This has been around since 386BSD, at least. Likely further.
6191 if test -x /sbin/sysctl; then
6192 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6193 elif test -x /usr/sbin/sysctl; then
6194 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6195 else
6196 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6198 # And add a safety zone
6199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6203 interix*)
6204 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6205 lt_cv_sys_max_cmd_len=196608
6208 osf*)
6209 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6210 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6211 # nice to cause kernel panics so lets avoid the loop below.
6212 # First set a reasonable default.
6213 lt_cv_sys_max_cmd_len=16384
6215 if test -x /sbin/sysconfig; then
6216 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6217 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6218 esac
6221 sco3.2v5*)
6222 lt_cv_sys_max_cmd_len=102400
6224 sysv5* | sco5v6* | sysv4.2uw2*)
6225 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6226 if test -n "$kargmax"; then
6227 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6228 else
6229 lt_cv_sys_max_cmd_len=32768
6233 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6234 if test -n "$lt_cv_sys_max_cmd_len"; then
6235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6237 else
6238 # Make teststring a little bigger before we do anything with it.
6239 # a 1K string should be a reasonable start.
6240 for i in 1 2 3 4 5 6 7 8 ; do
6241 teststring=$teststring$teststring
6242 done
6243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6244 # If test is not a shell built-in, we'll probably end up computing a
6245 # maximum length that is only half of the actual maximum length, but
6246 # we can't tell.
6247 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6248 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6249 test $i != 17 # 1/2 MB should be enough
6251 i=`expr $i + 1`
6252 teststring=$teststring$teststring
6253 done
6254 # Only check the string length outside the loop.
6255 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6256 teststring=
6257 # Add a significant safety factor because C++ compilers can tack on
6258 # massive amounts of additional arguments before passing them to the
6259 # linker. It appears as though 1/2 is a usable value.
6260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6263 esac
6267 if test -n $lt_cv_sys_max_cmd_len ; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6269 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6270 else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6272 $as_echo "none" >&6; }
6274 max_cmd_len=$lt_cv_sys_max_cmd_len
6281 : ${CP="cp -f"}
6282 : ${MV="mv -f"}
6283 : ${RM="rm -f"}
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6286 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6287 # Try some XSI features
6288 xsi_shell=no
6289 ( _lt_dummy="a/b/c"
6290 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6291 = c,a/b,, \
6292 && eval 'test $(( 1 + 1 )) -eq 2 \
6293 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6294 && xsi_shell=yes
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6296 $as_echo "$xsi_shell" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6300 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6301 lt_shell_append=no
6302 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6303 >/dev/null 2>&1 \
6304 && lt_shell_append=yes
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6306 $as_echo "$lt_shell_append" >&6; }
6309 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6310 lt_unset=unset
6311 else
6312 lt_unset=false
6319 # test EBCDIC or ASCII
6320 case `echo X|tr X '\101'` in
6321 A) # ASCII based system
6322 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6323 lt_SP2NL='tr \040 \012'
6324 lt_NL2SP='tr \015\012 \040\040'
6326 *) # EBCDIC based system
6327 lt_SP2NL='tr \100 \n'
6328 lt_NL2SP='tr \r\n \100\100'
6330 esac
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6341 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6342 if ${lt_cv_ld_reload_flag+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 lt_cv_ld_reload_flag='-r'
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6348 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6349 reload_flag=$lt_cv_ld_reload_flag
6350 case $reload_flag in
6351 "" | " "*) ;;
6352 *) reload_flag=" $reload_flag" ;;
6353 esac
6354 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6355 case $host_os in
6356 darwin*)
6357 if test "$GCC" = yes; then
6358 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6359 else
6360 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6363 esac
6373 if test -n "$ac_tool_prefix"; then
6374 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6375 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_prog_OBJDUMP+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 if test -n "$OBJDUMP"; then
6382 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6391 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6395 done
6396 done
6397 IFS=$as_save_IFS
6401 OBJDUMP=$ac_cv_prog_OBJDUMP
6402 if test -n "$OBJDUMP"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6404 $as_echo "$OBJDUMP" >&6; }
6405 else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6412 if test -z "$ac_cv_prog_OBJDUMP"; then
6413 ac_ct_OBJDUMP=$OBJDUMP
6414 # Extract the first word of "objdump", so it can be a program name with args.
6415 set dummy objdump; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 if test -n "$ac_ct_OBJDUMP"; then
6422 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6435 done
6436 done
6437 IFS=$as_save_IFS
6441 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6442 if test -n "$ac_ct_OBJDUMP"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6444 $as_echo "$ac_ct_OBJDUMP" >&6; }
6445 else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6450 if test "x$ac_ct_OBJDUMP" = x; then
6451 OBJDUMP="false"
6452 else
6453 case $cross_compiling:$ac_tool_warned in
6454 yes:)
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6457 ac_tool_warned=yes ;;
6458 esac
6459 OBJDUMP=$ac_ct_OBJDUMP
6461 else
6462 OBJDUMP="$ac_cv_prog_OBJDUMP"
6465 test -z "$OBJDUMP" && OBJDUMP=objdump
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6476 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6477 if ${lt_cv_deplibs_check_method+:} false; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 lt_cv_file_magic_cmd='$MAGIC_CMD'
6481 lt_cv_file_magic_test_file=
6482 lt_cv_deplibs_check_method='unknown'
6483 # Need to set the preceding variable on all platforms that support
6484 # interlibrary dependencies.
6485 # 'none' -- dependencies not supported.
6486 # `unknown' -- same as none, but documents that we really don't know.
6487 # 'pass_all' -- all dependencies passed with no checks.
6488 # 'test_compile' -- check by making test program.
6489 # 'file_magic [[regex]]' -- check by looking for files in library path
6490 # which responds to the $file_magic_cmd with a given extended regex.
6491 # If you have `file' or equivalent on your system and you're not sure
6492 # whether `pass_all' will *always* work, you probably want this one.
6494 case $host_os in
6495 aix[4-9]*)
6496 lt_cv_deplibs_check_method=pass_all
6499 beos*)
6500 lt_cv_deplibs_check_method=pass_all
6503 bsdi[45]*)
6504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6505 lt_cv_file_magic_cmd='/usr/bin/file -L'
6506 lt_cv_file_magic_test_file=/shlib/libc.so
6509 cygwin*)
6510 # func_win32_libid is a shell function defined in ltmain.sh
6511 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6512 lt_cv_file_magic_cmd='func_win32_libid'
6515 mingw* | pw32*)
6516 # Base MSYS/MinGW do not provide the 'file' command needed by
6517 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6518 # unless we find 'file', for example because we are cross-compiling.
6519 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6520 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6522 lt_cv_file_magic_cmd='func_win32_libid'
6523 else
6524 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6525 lt_cv_file_magic_cmd='$OBJDUMP -f'
6529 cegcc*)
6530 # use the weaker test based on 'objdump'. See mingw*.
6531 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6532 lt_cv_file_magic_cmd='$OBJDUMP -f'
6535 darwin* | rhapsody*)
6536 lt_cv_deplibs_check_method=pass_all
6539 freebsd* | dragonfly*)
6540 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6541 case $host_cpu in
6542 i*86 )
6543 # Not sure whether the presence of OpenBSD here was a mistake.
6544 # Let's accept both of them until this is cleared up.
6545 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6546 lt_cv_file_magic_cmd=/usr/bin/file
6547 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6549 esac
6550 else
6551 lt_cv_deplibs_check_method=pass_all
6555 gnu*)
6556 lt_cv_deplibs_check_method=pass_all
6559 haiku*)
6560 lt_cv_deplibs_check_method=pass_all
6563 hpux10.20* | hpux11*)
6564 lt_cv_file_magic_cmd=/usr/bin/file
6565 case $host_cpu in
6566 ia64*)
6567 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6568 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6570 hppa*64*)
6571 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]'
6572 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6576 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6578 esac
6581 interix[3-9]*)
6582 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6586 irix5* | irix6* | nonstopux*)
6587 case $LD in
6588 *-32|*"-32 ") libmagic=32-bit;;
6589 *-n32|*"-n32 ") libmagic=N32;;
6590 *-64|*"-64 ") libmagic=64-bit;;
6591 *) libmagic=never-match;;
6592 esac
6593 lt_cv_deplibs_check_method=pass_all
6596 # This must be Linux ELF.
6597 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6598 lt_cv_deplibs_check_method=pass_all
6601 netbsd*)
6602 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6604 else
6605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6609 newos6*)
6610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6611 lt_cv_file_magic_cmd=/usr/bin/file
6612 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6615 *nto* | *qnx*)
6616 lt_cv_deplibs_check_method=pass_all
6619 openbsd*)
6620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6622 else
6623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6627 osf3* | osf4* | osf5*)
6628 lt_cv_deplibs_check_method=pass_all
6631 rdos*)
6632 lt_cv_deplibs_check_method=pass_all
6635 solaris*)
6636 lt_cv_deplibs_check_method=pass_all
6639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6640 lt_cv_deplibs_check_method=pass_all
6643 sysv4 | sysv4.3*)
6644 case $host_vendor in
6645 motorola)
6646 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]'
6647 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6649 ncr)
6650 lt_cv_deplibs_check_method=pass_all
6652 sequent)
6653 lt_cv_file_magic_cmd='/bin/file'
6654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6656 sni)
6657 lt_cv_file_magic_cmd='/bin/file'
6658 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6659 lt_cv_file_magic_test_file=/lib/libc.so
6661 siemens)
6662 lt_cv_deplibs_check_method=pass_all
6665 lt_cv_deplibs_check_method=pass_all
6667 esac
6670 tpf*)
6671 lt_cv_deplibs_check_method=pass_all
6673 vxworks*)
6674 # Assume VxWorks cross toolchains are built on Linux, possibly
6675 # as canadian for Windows hosts.
6676 lt_cv_deplibs_check_method=pass_all
6678 esac
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6682 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6683 file_magic_cmd=$lt_cv_file_magic_cmd
6684 deplibs_check_method=$lt_cv_deplibs_check_method
6685 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6698 plugin_option=
6699 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6700 for plugin in $plugin_names; do
6701 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6702 if test x$plugin_so = x$plugin; then
6703 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6705 if test x$plugin_so != x$plugin; then
6706 plugin_option="--plugin $plugin_so"
6707 break
6709 done
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}ar; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_AR+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 if test -n "$AR"; then
6720 ac_cv_prog_AR="$AR" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_AR="${ac_tool_prefix}ar"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6733 done
6734 done
6735 IFS=$as_save_IFS
6739 AR=$ac_cv_prog_AR
6740 if test -n "$AR"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6742 $as_echo "$AR" >&6; }
6743 else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6750 if test -z "$ac_cv_prog_AR"; then
6751 ac_ct_AR=$AR
6752 # Extract the first word of "ar", so it can be a program name with args.
6753 set dummy ar; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$ac_ct_AR"; then
6760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_ac_ct_AR="ar"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6773 done
6774 done
6775 IFS=$as_save_IFS
6779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6780 if test -n "$ac_ct_AR"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6782 $as_echo "$ac_ct_AR" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6788 if test "x$ac_ct_AR" = x; then
6789 AR="false"
6790 else
6791 case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797 AR=$ac_ct_AR
6799 else
6800 AR="$ac_cv_prog_AR"
6803 test -z "$AR" && AR=ar
6804 if test -n "$plugin_option"; then
6805 if $AR --help 2>&1 | grep -q "\--plugin"; then
6806 touch conftest.c
6807 $AR $plugin_option rc conftest.a conftest.c
6808 if test "$?" != 0; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6810 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6811 else
6812 AR="$AR $plugin_option"
6814 rm -f conftest.*
6817 test -z "$AR_FLAGS" && AR_FLAGS=cru
6829 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6831 set dummy ${ac_tool_prefix}strip; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_STRIP+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$STRIP"; then
6838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6851 done
6852 done
6853 IFS=$as_save_IFS
6857 STRIP=$ac_cv_prog_STRIP
6858 if test -n "$STRIP"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6860 $as_echo "$STRIP" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6868 if test -z "$ac_cv_prog_STRIP"; then
6869 ac_ct_STRIP=$STRIP
6870 # Extract the first word of "strip", so it can be a program name with args.
6871 set dummy strip; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$ac_ct_STRIP"; then
6878 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_ac_ct_STRIP="strip"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6891 done
6892 done
6893 IFS=$as_save_IFS
6897 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6898 if test -n "$ac_ct_STRIP"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6900 $as_echo "$ac_ct_STRIP" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6906 if test "x$ac_ct_STRIP" = x; then
6907 STRIP=":"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 STRIP=$ac_ct_STRIP
6917 else
6918 STRIP="$ac_cv_prog_STRIP"
6921 test -z "$STRIP" && STRIP=:
6928 if test -n "$ac_tool_prefix"; then
6929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_prog_RANLIB+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 if test -n "$RANLIB"; then
6937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6950 done
6951 done
6952 IFS=$as_save_IFS
6956 RANLIB=$ac_cv_prog_RANLIB
6957 if test -n "$RANLIB"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6959 $as_echo "$RANLIB" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6967 if test -z "$ac_cv_prog_RANLIB"; then
6968 ac_ct_RANLIB=$RANLIB
6969 # Extract the first word of "ranlib", so it can be a program name with args.
6970 set dummy ranlib; ac_word=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 if test -n "$ac_ct_RANLIB"; then
6977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_ac_ct_RANLIB="ranlib"
6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6990 done
6991 done
6992 IFS=$as_save_IFS
6996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6997 if test -n "$ac_ct_RANLIB"; then
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6999 $as_echo "$ac_ct_RANLIB" >&6; }
7000 else
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7005 if test "x$ac_ct_RANLIB" = x; then
7006 RANLIB=":"
7007 else
7008 case $cross_compiling:$ac_tool_warned in
7009 yes:)
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012 ac_tool_warned=yes ;;
7013 esac
7014 RANLIB=$ac_ct_RANLIB
7016 else
7017 RANLIB="$ac_cv_prog_RANLIB"
7020 test -z "$RANLIB" && RANLIB=:
7021 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7022 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7023 RANLIB="$RANLIB $plugin_option"
7032 # Determine commands to create old-style static archives.
7033 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7034 old_postinstall_cmds='chmod 644 $oldlib'
7035 old_postuninstall_cmds=
7037 if test -n "$RANLIB"; then
7038 case $host_os in
7039 openbsd*)
7040 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7043 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7045 esac
7046 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7049 case $host_os in
7050 darwin*)
7051 lock_old_archive_extraction=yes ;;
7053 lock_old_archive_extraction=no ;;
7054 esac
7076 for ac_prog in gawk mawk nawk awk
7078 # Extract the first word of "$ac_prog", so it can be a program name with args.
7079 set dummy $ac_prog; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_AWK+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$AWK"; then
7086 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_AWK="$ac_prog"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7105 AWK=$ac_cv_prog_AWK
7106 if test -n "$AWK"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7108 $as_echo "$AWK" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7115 test -n "$AWK" && break
7116 done
7136 # If no C compiler was specified, use CC.
7137 LTCC=${LTCC-"$CC"}
7139 # If no C compiler flags were specified, use CFLAGS.
7140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7142 # Allow CC to be a program name with arguments.
7143 compiler=$CC
7146 # Check for command to grab the raw symbol name followed by C symbol from nm.
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7148 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7149 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7153 # These are sane defaults that work on at least a few old systems.
7154 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7156 # Character class describing NM global symbol codes.
7157 symcode='[BCDEGRST]'
7159 # Regexp to match symbols that can be accessed directly from C.
7160 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7162 # Define system-specific variables.
7163 case $host_os in
7164 aix*)
7165 symcode='[BCDT]'
7167 cygwin* | mingw* | pw32* | cegcc*)
7168 symcode='[ABCDGISTW]'
7170 hpux*)
7171 if test "$host_cpu" = ia64; then
7172 symcode='[ABCDEGRST]'
7175 irix* | nonstopux*)
7176 symcode='[BCDEGRST]'
7178 osf*)
7179 symcode='[BCDEGQRST]'
7181 solaris*)
7182 symcode='[BCDRT]'
7184 sco3.2v5*)
7185 symcode='[DT]'
7187 sysv4.2uw2*)
7188 symcode='[DT]'
7190 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7191 symcode='[ABDT]'
7193 sysv4)
7194 symcode='[DFNSTU]'
7196 esac
7198 # If we're using GNU nm, then use its standard symbol codes.
7199 case `$NM -V 2>&1` in
7200 *GNU* | *'with BFD'*)
7201 symcode='[ABCDGIRSTW]' ;;
7202 esac
7204 # Transform an extracted symbol line into a proper C declaration.
7205 # Some systems (esp. on ia64) link data and code symbols differently,
7206 # so use this general approach.
7207 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7209 # Transform an extracted symbol line into symbol name and symbol address
7210 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7211 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'"
7213 # Handle CRLF in mingw tool chain
7214 opt_cr=
7215 case $build_os in
7216 mingw*)
7217 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7219 esac
7221 # Try without a prefix underscore, then with it.
7222 for ac_symprfx in "" "_"; do
7224 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7225 symxfrm="\\1 $ac_symprfx\\2 \\2"
7227 # Write the raw and C identifiers.
7228 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7229 # Fake it for dumpbin and say T for any non-static function
7230 # and D for any global variable.
7231 # Also find C++ and __fastcall symbols from MSVC++,
7232 # which start with @ or ?.
7233 lt_cv_sys_global_symbol_pipe="$AWK '"\
7234 " {last_section=section; section=\$ 3};"\
7235 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7236 " \$ 0!~/External *\|/{next};"\
7237 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7238 " {if(hide[section]) next};"\
7239 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7240 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7241 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7242 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7243 " ' prfx=^$ac_symprfx"
7244 else
7245 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7248 # Check to see that the pipe works correctly.
7249 pipe_works=no
7251 rm -f conftest*
7252 cat > conftest.$ac_ext <<_LT_EOF
7253 #ifdef __cplusplus
7254 extern "C" {
7255 #endif
7256 char nm_test_var;
7257 void nm_test_func(void);
7258 void nm_test_func(void){}
7259 #ifdef __cplusplus
7261 #endif
7262 int main(){nm_test_var='a';nm_test_func();return(0);}
7263 _LT_EOF
7265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7266 (eval $ac_compile) 2>&5
7267 ac_status=$?
7268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269 test $ac_status = 0; }; then
7270 # Now try to grab the symbols.
7271 nlist=conftest.nm
7272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7273 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7274 ac_status=$?
7275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276 test $ac_status = 0; } && test -s "$nlist"; then
7277 # Try sorting and uniquifying the output.
7278 if sort "$nlist" | uniq > "$nlist"T; then
7279 mv -f "$nlist"T "$nlist"
7280 else
7281 rm -f "$nlist"T
7284 # Make sure that we snagged all the symbols we need.
7285 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7286 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7287 cat <<_LT_EOF > conftest.$ac_ext
7288 #ifdef __cplusplus
7289 extern "C" {
7290 #endif
7292 _LT_EOF
7293 # Now generate the symbol file.
7294 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7296 cat <<_LT_EOF >> conftest.$ac_ext
7298 /* The mapping between symbol names and symbols. */
7299 const struct {
7300 const char *name;
7301 void *address;
7303 lt__PROGRAM__LTX_preloaded_symbols[] =
7305 { "@PROGRAM@", (void *) 0 },
7306 _LT_EOF
7307 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7308 cat <<\_LT_EOF >> conftest.$ac_ext
7309 {0, (void *) 0}
7312 /* This works around a problem in FreeBSD linker */
7313 #ifdef FREEBSD_WORKAROUND
7314 static const void *lt_preloaded_setup() {
7315 return lt__PROGRAM__LTX_preloaded_symbols;
7317 #endif
7319 #ifdef __cplusplus
7321 #endif
7322 _LT_EOF
7323 # Now try linking the two files.
7324 mv conftest.$ac_objext conftstm.$ac_objext
7325 lt_save_LIBS="$LIBS"
7326 lt_save_CFLAGS="$CFLAGS"
7327 LIBS="conftstm.$ac_objext"
7328 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7330 (eval $ac_link) 2>&5
7331 ac_status=$?
7332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7334 pipe_works=yes
7336 LIBS="$lt_save_LIBS"
7337 CFLAGS="$lt_save_CFLAGS"
7338 else
7339 echo "cannot find nm_test_func in $nlist" >&5
7341 else
7342 echo "cannot find nm_test_var in $nlist" >&5
7344 else
7345 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7347 else
7348 echo "$progname: failed program was:" >&5
7349 cat conftest.$ac_ext >&5
7351 rm -rf conftest* conftst*
7353 # Do not use the global_symbol_pipe unless it works.
7354 if test "$pipe_works" = yes; then
7355 break
7356 else
7357 lt_cv_sys_global_symbol_pipe=
7359 done
7363 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7364 lt_cv_sys_global_symbol_to_cdecl=
7366 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7368 $as_echo "failed" >&6; }
7369 else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7371 $as_echo "ok" >&6; }
7395 # Check whether --enable-libtool-lock was given.
7396 if test "${enable_libtool_lock+set}" = set; then :
7397 enableval=$enable_libtool_lock;
7400 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7402 # Some flags need to be propagated to the compiler or linker for good
7403 # libtool support.
7404 case $host in
7405 ia64-*-hpux*)
7406 # Find out which ABI we are using.
7407 echo 'int i;' > conftest.$ac_ext
7408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7410 ac_status=$?
7411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 case `/usr/bin/file conftest.$ac_objext` in
7414 *ELF-32*)
7415 HPUX_IA64_MODE="32"
7417 *ELF-64*)
7418 HPUX_IA64_MODE="64"
7420 esac
7422 rm -rf conftest*
7424 *-*-irix6*)
7425 # Find out which ABI we are using.
7426 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7429 ac_status=$?
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 if test "$lt_cv_prog_gnu_ld" = yes; then
7433 case `/usr/bin/file conftest.$ac_objext` in
7434 *32-bit*)
7435 LD="${LD-ld} -melf32bsmip"
7437 *N32*)
7438 LD="${LD-ld} -melf32bmipn32"
7440 *64-bit*)
7441 LD="${LD-ld} -melf64bmip"
7443 esac
7444 else
7445 case `/usr/bin/file conftest.$ac_objext` in
7446 *32-bit*)
7447 LD="${LD-ld} -32"
7449 *N32*)
7450 LD="${LD-ld} -n32"
7452 *64-bit*)
7453 LD="${LD-ld} -64"
7455 esac
7458 rm -rf conftest*
7461 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7462 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7463 # Find out which ABI we are using.
7464 echo 'int i;' > conftest.$ac_ext
7465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7466 (eval $ac_compile) 2>&5
7467 ac_status=$?
7468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469 test $ac_status = 0; }; then
7470 case `/usr/bin/file conftest.o` in
7471 *32-bit*)
7472 case $host in
7473 x86_64-*kfreebsd*-gnu)
7474 LD="${LD-ld} -m elf_i386_fbsd"
7476 x86_64-*linux*)
7477 case `/usr/bin/file conftest.o` in
7478 *x86-64*)
7479 LD="${LD-ld} -m elf32_x86_64"
7482 LD="${LD-ld} -m elf_i386"
7484 esac
7486 powerpc64le-*linux*)
7487 LD="${LD-ld} -m elf32lppclinux"
7489 powerpc64-*linux*)
7490 LD="${LD-ld} -m elf32ppclinux"
7492 s390x-*linux*)
7493 LD="${LD-ld} -m elf_s390"
7495 sparc64-*linux*)
7496 LD="${LD-ld} -m elf32_sparc"
7498 esac
7500 *64-bit*)
7501 case $host in
7502 x86_64-*kfreebsd*-gnu)
7503 LD="${LD-ld} -m elf_x86_64_fbsd"
7505 x86_64-*linux*)
7506 LD="${LD-ld} -m elf_x86_64"
7508 powerpcle-*linux*)
7509 LD="${LD-ld} -m elf64lppc"
7511 powerpc-*linux*)
7512 LD="${LD-ld} -m elf64ppc"
7514 s390*-*linux*|s390*-*tpf*)
7515 LD="${LD-ld} -m elf64_s390"
7517 sparc*-*linux*)
7518 LD="${LD-ld} -m elf64_sparc"
7520 esac
7522 esac
7524 rm -rf conftest*
7527 *-*-sco3.2v5*)
7528 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7529 SAVE_CFLAGS="$CFLAGS"
7530 CFLAGS="$CFLAGS -belf"
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7532 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7533 if ${lt_cv_cc_needs_belf+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 ac_ext=c
7537 ac_cpp='$CPP $CPPFLAGS'
7538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7546 main ()
7550 return 0;
7552 _ACEOF
7553 if ac_fn_c_try_link "$LINENO"; then :
7554 lt_cv_cc_needs_belf=yes
7555 else
7556 lt_cv_cc_needs_belf=no
7558 rm -f core conftest.err conftest.$ac_objext \
7559 conftest$ac_exeext conftest.$ac_ext
7560 ac_ext=c
7561 ac_cpp='$CPP $CPPFLAGS'
7562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7568 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7569 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7570 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7571 CFLAGS="$SAVE_CFLAGS"
7574 sparc*-*solaris*)
7575 # Find out which ABI we are using.
7576 echo 'int i;' > conftest.$ac_ext
7577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7578 (eval $ac_compile) 2>&5
7579 ac_status=$?
7580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; }; then
7582 case `/usr/bin/file conftest.o` in
7583 *64-bit*)
7584 case $lt_cv_prog_gnu_ld in
7585 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7587 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7588 LD="${LD-ld} -64"
7591 esac
7593 esac
7595 rm -rf conftest*
7597 esac
7599 need_locks="$enable_libtool_lock"
7602 case $host_os in
7603 rhapsody* | darwin*)
7604 if test -n "$ac_tool_prefix"; then
7605 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7606 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 if test -n "$DSYMUTIL"; then
7613 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7626 done
7627 done
7628 IFS=$as_save_IFS
7632 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7633 if test -n "$DSYMUTIL"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7635 $as_echo "$DSYMUTIL" >&6; }
7636 else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7643 if test -z "$ac_cv_prog_DSYMUTIL"; then
7644 ac_ct_DSYMUTIL=$DSYMUTIL
7645 # Extract the first word of "dsymutil", so it can be a program name with args.
7646 set dummy dsymutil; ac_word=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 if test -n "$ac_ct_DSYMUTIL"; then
7653 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7662 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7666 done
7667 done
7668 IFS=$as_save_IFS
7672 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7673 if test -n "$ac_ct_DSYMUTIL"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7675 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7676 else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7681 if test "x$ac_ct_DSYMUTIL" = x; then
7682 DSYMUTIL=":"
7683 else
7684 case $cross_compiling:$ac_tool_warned in
7685 yes:)
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7688 ac_tool_warned=yes ;;
7689 esac
7690 DSYMUTIL=$ac_ct_DSYMUTIL
7692 else
7693 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_NMEDIT+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$NMEDIT"; then
7705 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7718 done
7719 done
7720 IFS=$as_save_IFS
7724 NMEDIT=$ac_cv_prog_NMEDIT
7725 if test -n "$NMEDIT"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7727 $as_echo "$NMEDIT" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7735 if test -z "$ac_cv_prog_NMEDIT"; then
7736 ac_ct_NMEDIT=$NMEDIT
7737 # Extract the first word of "nmedit", so it can be a program name with args.
7738 set dummy nmedit; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 if test -n "$ac_ct_NMEDIT"; then
7745 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7758 done
7759 done
7760 IFS=$as_save_IFS
7764 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7765 if test -n "$ac_ct_NMEDIT"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7767 $as_echo "$ac_ct_NMEDIT" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7773 if test "x$ac_ct_NMEDIT" = x; then
7774 NMEDIT=":"
7775 else
7776 case $cross_compiling:$ac_tool_warned in
7777 yes:)
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780 ac_tool_warned=yes ;;
7781 esac
7782 NMEDIT=$ac_ct_NMEDIT
7784 else
7785 NMEDIT="$ac_cv_prog_NMEDIT"
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7790 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_LIPO+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$LIPO"; then
7797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7810 done
7811 done
7812 IFS=$as_save_IFS
7816 LIPO=$ac_cv_prog_LIPO
7817 if test -n "$LIPO"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7819 $as_echo "$LIPO" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7827 if test -z "$ac_cv_prog_LIPO"; then
7828 ac_ct_LIPO=$LIPO
7829 # Extract the first word of "lipo", so it can be a program name with args.
7830 set dummy lipo; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$ac_ct_LIPO"; then
7837 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_LIPO="lipo"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7850 done
7851 done
7852 IFS=$as_save_IFS
7856 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7857 if test -n "$ac_ct_LIPO"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7859 $as_echo "$ac_ct_LIPO" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7865 if test "x$ac_ct_LIPO" = x; then
7866 LIPO=":"
7867 else
7868 case $cross_compiling:$ac_tool_warned in
7869 yes:)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned=yes ;;
7873 esac
7874 LIPO=$ac_ct_LIPO
7876 else
7877 LIPO="$ac_cv_prog_LIPO"
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}otool; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_OTOOL+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$OTOOL"; then
7889 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7902 done
7903 done
7904 IFS=$as_save_IFS
7908 OTOOL=$ac_cv_prog_OTOOL
7909 if test -n "$OTOOL"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7911 $as_echo "$OTOOL" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7919 if test -z "$ac_cv_prog_OTOOL"; then
7920 ac_ct_OTOOL=$OTOOL
7921 # Extract the first word of "otool", so it can be a program name with args.
7922 set dummy otool; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$ac_ct_OTOOL"; then
7929 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_ac_ct_OTOOL="otool"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7942 done
7943 done
7944 IFS=$as_save_IFS
7948 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7949 if test -n "$ac_ct_OTOOL"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7951 $as_echo "$ac_ct_OTOOL" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7957 if test "x$ac_ct_OTOOL" = x; then
7958 OTOOL=":"
7959 else
7960 case $cross_compiling:$ac_tool_warned in
7961 yes:)
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964 ac_tool_warned=yes ;;
7965 esac
7966 OTOOL=$ac_ct_OTOOL
7968 else
7969 OTOOL="$ac_cv_prog_OTOOL"
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_OTOOL64+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$OTOOL64"; then
7981 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7994 done
7995 done
7996 IFS=$as_save_IFS
8000 OTOOL64=$ac_cv_prog_OTOOL64
8001 if test -n "$OTOOL64"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8003 $as_echo "$OTOOL64" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8011 if test -z "$ac_cv_prog_OTOOL64"; then
8012 ac_ct_OTOOL64=$OTOOL64
8013 # Extract the first word of "otool64", so it can be a program name with args.
8014 set dummy otool64; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 if test -n "$ac_ct_OTOOL64"; then
8021 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_OTOOL64="otool64"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8034 done
8035 done
8036 IFS=$as_save_IFS
8040 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8041 if test -n "$ac_ct_OTOOL64"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8043 $as_echo "$ac_ct_OTOOL64" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8049 if test "x$ac_ct_OTOOL64" = x; then
8050 OTOOL64=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053 yes:)
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8057 esac
8058 OTOOL64=$ac_ct_OTOOL64
8060 else
8061 OTOOL64="$ac_cv_prog_OTOOL64"
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8091 $as_echo_n "checking for -single_module linker flag... " >&6; }
8092 if ${lt_cv_apple_cc_single_mod+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 lt_cv_apple_cc_single_mod=no
8096 if test -z "${LT_MULTI_MODULE}"; then
8097 # By default we will add the -single_module flag. You can override
8098 # by either setting the environment variable LT_MULTI_MODULE
8099 # non-empty at configure time, or by adding -multi_module to the
8100 # link flags.
8101 rm -rf libconftest.dylib*
8102 echo "int foo(void){return 1;}" > conftest.c
8103 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8104 -dynamiclib -Wl,-single_module conftest.c" >&5
8105 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8106 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8107 _lt_result=$?
8108 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8109 lt_cv_apple_cc_single_mod=yes
8110 else
8111 cat conftest.err >&5
8113 rm -rf libconftest.dylib*
8114 rm -f conftest.*
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8118 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8120 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8121 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 lt_cv_ld_exported_symbols_list=no
8125 save_LDFLAGS=$LDFLAGS
8126 echo "_main" > conftest.sym
8127 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8132 main ()
8136 return 0;
8138 _ACEOF
8139 if ac_fn_c_try_link "$LINENO"; then :
8140 lt_cv_ld_exported_symbols_list=yes
8141 else
8142 lt_cv_ld_exported_symbols_list=no
8144 rm -f core conftest.err conftest.$ac_objext \
8145 conftest$ac_exeext conftest.$ac_ext
8146 LDFLAGS="$save_LDFLAGS"
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8150 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8152 $as_echo_n "checking for -force_load linker flag... " >&6; }
8153 if ${lt_cv_ld_force_load+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 lt_cv_ld_force_load=no
8157 cat > conftest.c << _LT_EOF
8158 int forced_loaded() { return 2;}
8159 _LT_EOF
8160 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8161 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8162 echo "$AR cru libconftest.a conftest.o" >&5
8163 $AR cru libconftest.a conftest.o 2>&5
8164 cat > conftest.c << _LT_EOF
8165 int main() { return 0;}
8166 _LT_EOF
8167 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8168 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8169 _lt_result=$?
8170 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8171 lt_cv_ld_force_load=yes
8172 else
8173 cat conftest.err >&5
8175 rm -f conftest.err libconftest.a conftest conftest.c
8176 rm -rf conftest.dSYM
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8180 $as_echo "$lt_cv_ld_force_load" >&6; }
8181 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8182 # build without first building modern cctools / linker.
8183 case $host_cpu-$host_os in
8184 *-rhapsody* | *-darwin1.[012])
8185 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8186 *-darwin1.*)
8187 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8188 *-darwin*)
8189 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8190 # deployment target is forced to an earlier version.
8191 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8192 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8194 10.[012][,.]*)
8195 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8199 esac
8201 esac
8202 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8203 _lt_dar_single_mod='$single_module'
8205 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8206 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8207 else
8208 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8210 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8211 _lt_dsymutil='~$DSYMUTIL $lib || :'
8212 else
8213 _lt_dsymutil=
8216 esac
8218 for ac_header in dlfcn.h
8219 do :
8220 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8222 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8223 cat >>confdefs.h <<_ACEOF
8224 #define HAVE_DLFCN_H 1
8225 _ACEOF
8229 done
8232 ac_header_dirent=no
8233 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8234 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8236 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8237 if eval \${$as_ac_Header+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 #include <sys/types.h>
8243 #include <$ac_hdr>
8246 main ()
8248 if ((DIR *) 0)
8249 return 0;
8251 return 0;
8253 _ACEOF
8254 if ac_fn_c_try_compile "$LINENO"; then :
8255 eval "$as_ac_Header=yes"
8256 else
8257 eval "$as_ac_Header=no"
8259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 eval ac_res=\$$as_ac_Header
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8263 $as_echo "$ac_res" >&6; }
8264 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8265 cat >>confdefs.h <<_ACEOF
8266 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8267 _ACEOF
8269 ac_header_dirent=$ac_hdr; break
8272 done
8273 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8274 if test $ac_header_dirent = dirent.h; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8276 $as_echo_n "checking for library containing opendir... " >&6; }
8277 if ${ac_cv_search_opendir+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 ac_func_search_save_LIBS=$LIBS
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8284 /* Override any GCC internal prototype to avoid an error.
8285 Use char because int might match the return type of a GCC
8286 builtin and then its argument prototype would still apply. */
8287 #ifdef __cplusplus
8288 extern "C"
8289 #endif
8290 char opendir ();
8292 main ()
8294 return opendir ();
8296 return 0;
8298 _ACEOF
8299 for ac_lib in '' dir; do
8300 if test -z "$ac_lib"; then
8301 ac_res="none required"
8302 else
8303 ac_res=-l$ac_lib
8304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8306 if ac_fn_c_try_link "$LINENO"; then :
8307 ac_cv_search_opendir=$ac_res
8309 rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext
8311 if ${ac_cv_search_opendir+:} false; then :
8312 break
8314 done
8315 if ${ac_cv_search_opendir+:} false; then :
8317 else
8318 ac_cv_search_opendir=no
8320 rm conftest.$ac_ext
8321 LIBS=$ac_func_search_save_LIBS
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8324 $as_echo "$ac_cv_search_opendir" >&6; }
8325 ac_res=$ac_cv_search_opendir
8326 if test "$ac_res" != no; then :
8327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8333 $as_echo_n "checking for library containing opendir... " >&6; }
8334 if ${ac_cv_search_opendir+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 ac_func_search_save_LIBS=$LIBS
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8341 /* Override any GCC internal prototype to avoid an error.
8342 Use char because int might match the return type of a GCC
8343 builtin and then its argument prototype would still apply. */
8344 #ifdef __cplusplus
8345 extern "C"
8346 #endif
8347 char opendir ();
8349 main ()
8351 return opendir ();
8353 return 0;
8355 _ACEOF
8356 for ac_lib in '' x; do
8357 if test -z "$ac_lib"; then
8358 ac_res="none required"
8359 else
8360 ac_res=-l$ac_lib
8361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8363 if ac_fn_c_try_link "$LINENO"; then :
8364 ac_cv_search_opendir=$ac_res
8366 rm -f core conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext
8368 if ${ac_cv_search_opendir+:} false; then :
8369 break
8371 done
8372 if ${ac_cv_search_opendir+:} false; then :
8374 else
8375 ac_cv_search_opendir=no
8377 rm conftest.$ac_ext
8378 LIBS=$ac_func_search_save_LIBS
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8381 $as_echo "$ac_cv_search_opendir" >&6; }
8382 ac_res=$ac_cv_search_opendir
8383 if test "$ac_res" != no; then :
8384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8393 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8394 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8396 cat >>confdefs.h <<_ACEOF
8397 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8398 _ACEOF
8401 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8406 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8407 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8411 _ACEOF
8414 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8416 else
8417 case " $LIBOBJS " in
8418 *" fileblocks.$ac_objext "* ) ;;
8419 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8421 esac
8426 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8427 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8429 cat >>confdefs.h <<_ACEOF
8430 #define HAVE_STRUCT_STAT_ST_RDEV 1
8431 _ACEOF
8434 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8439 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8440 #include <$ac_cv_struct_tm>
8443 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8445 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_STRUCT_TM_TM_ZONE 1
8447 _ACEOF
8452 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8454 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8456 else
8457 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8459 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8460 ac_have_decl=1
8461 else
8462 ac_have_decl=0
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DECL_TZNAME $ac_have_decl
8467 _ACEOF
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8470 $as_echo_n "checking for tzname... " >&6; }
8471 if ${ac_cv_var_tzname+:} false; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <time.h>
8477 #if !HAVE_DECL_TZNAME
8478 extern char *tzname[];
8479 #endif
8482 main ()
8484 return tzname[0][0];
8486 return 0;
8488 _ACEOF
8489 if ac_fn_c_try_link "$LINENO"; then :
8490 ac_cv_var_tzname=yes
8491 else
8492 ac_cv_var_tzname=no
8494 rm -f core conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8498 $as_echo "$ac_cv_var_tzname" >&6; }
8499 if test $ac_cv_var_tzname = yes; then
8501 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8507 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8508 #include <sys/types.h>
8509 #endif
8510 #include <sys/stat.h>
8512 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8514 cat >>confdefs.h <<_ACEOF
8515 #define HAVE_STRUCT_STAT_ST_DEV 1
8516 _ACEOF
8520 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8521 #include <sys/types.h>
8522 #endif
8523 #include <sys/stat.h>
8525 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8527 cat >>confdefs.h <<_ACEOF
8528 #define HAVE_STRUCT_STAT_ST_INO 1
8529 _ACEOF
8533 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8534 #include <sys/types.h>
8535 #endif
8536 #include <sys/stat.h>
8538 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_STRUCT_STAT_ST_MODE 1
8542 _ACEOF
8546 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8547 #include <sys/types.h>
8548 #endif
8549 #include <sys/stat.h>
8551 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8553 cat >>confdefs.h <<_ACEOF
8554 #define HAVE_STRUCT_STAT_ST_NLINK 1
8555 _ACEOF
8559 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8560 #include <sys/types.h>
8561 #endif
8562 #include <sys/stat.h>
8564 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8566 cat >>confdefs.h <<_ACEOF
8567 #define HAVE_STRUCT_STAT_ST_UID 1
8568 _ACEOF
8572 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8573 #include <sys/types.h>
8574 #endif
8575 #include <sys/stat.h>
8577 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8579 cat >>confdefs.h <<_ACEOF
8580 #define HAVE_STRUCT_STAT_ST_GID 1
8581 _ACEOF
8585 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8586 #include <sys/types.h>
8587 #endif
8588 #include <sys/stat.h>
8590 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8592 cat >>confdefs.h <<_ACEOF
8593 #define HAVE_STRUCT_STAT_ST_RDEV 1
8594 _ACEOF
8598 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8599 #include <sys/types.h>
8600 #endif
8601 #include <sys/stat.h>
8603 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8605 cat >>confdefs.h <<_ACEOF
8606 #define HAVE_STRUCT_STAT_ST_SIZE 1
8607 _ACEOF
8611 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8612 #include <sys/types.h>
8613 #endif
8614 #include <sys/stat.h>
8616 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8618 cat >>confdefs.h <<_ACEOF
8619 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8620 _ACEOF
8624 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8625 #include <sys/types.h>
8626 #endif
8627 #include <sys/stat.h>
8629 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8633 _ACEOF
8637 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8638 #include <sys/types.h>
8639 #endif
8640 #include <sys/stat.h>
8642 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8644 cat >>confdefs.h <<_ACEOF
8645 #define HAVE_STRUCT_STAT_ST_ATIME 1
8646 _ACEOF
8650 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8651 #include <sys/types.h>
8652 #endif
8653 #include <sys/stat.h>
8655 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8657 cat >>confdefs.h <<_ACEOF
8658 #define HAVE_STRUCT_STAT_ST_MTIME 1
8659 _ACEOF
8663 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8664 #include <sys/types.h>
8665 #endif
8666 #include <sys/stat.h>
8668 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8670 cat >>confdefs.h <<_ACEOF
8671 #define HAVE_STRUCT_STAT_ST_CTIME 1
8672 _ACEOF
8678 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8679 if test "x$ac_cv_type___int128" = xyes; then :
8681 cat >>confdefs.h <<_ACEOF
8682 #define HAVE___INT128 1
8683 _ACEOF
8688 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8689 #include <sys/socket.h>
8692 if test "x$ac_cv_type_socklen_t" = xyes; then :
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_SOCKLEN_T 1
8696 _ACEOF
8701 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
8702 if test "x$ac_cv_type_long_long" = xyes; then :
8704 cat >>confdefs.h <<_ACEOF
8705 #define HAVE_LONG_LONG 1
8706 _ACEOF
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
8713 $as_echo_n "checking for struct statfs... " >&6; }
8714 if ${sim_cv_struct_statfs+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8720 #include <sys/types.h>
8721 #ifdef HAVE_SYS_PARAM_H
8722 #include <sys/param.h>
8723 #endif
8724 #ifdef HAVE_SYS_MOUNT_H
8725 #include <sys/mount.h>
8726 #endif
8727 #ifdef HAVE_SYS_VFS_H
8728 #include <sys/vfs.h>
8729 #endif
8730 #ifdef HAVE_SYS_STATFS_H
8731 #include <sys/statfs.h>
8732 #endif
8734 main ()
8737 struct statfs s;
8740 return 0;
8742 _ACEOF
8743 if ac_fn_c_try_compile "$LINENO"; then :
8744 sim_cv_struct_statfs="yes"
8745 else
8746 sim_cv_struct_statfs="no"
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_struct_statfs" >&5
8751 $as_echo "$sim_cv_struct_statfs" >&6; }
8752 if test x"sim_cv_struct_statfs" = x"yes"; then :
8754 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
8760 $as_echo_n "checking if union semun defined... " >&6; }
8761 if ${sim_cv_has_union_semun+:} false; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h. */
8767 #include <sys/types.h>
8768 #include <sys/ipc.h>
8769 #include <sys/sem.h>
8771 main ()
8774 union semun arg;
8777 return 0;
8779 _ACEOF
8780 if ac_fn_c_try_compile "$LINENO"; then :
8781 sim_cv_has_union_semun="yes"
8782 else
8783 sim_cv_has_union_semun="no"
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_has_union_semun" >&5
8788 $as_echo "$sim_cv_has_union_semun" >&6; }
8789 if test x"$sim_cv_has_union_semun" = x"yes"; then :
8791 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
8797 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
8798 if ${sim_cv_sysv_sem+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8804 #include <sys/types.h>
8805 #include <sys/ipc.h>
8806 #include <sys/sem.h>
8807 #ifndef HAVE_UNION_SEMUN
8808 union semun {
8809 int val;
8810 struct semid_ds *buf;
8811 ushort *array;
8813 #endif
8815 main ()
8818 union semun arg;
8819 int id = semget(IPC_PRIVATE, 1, IPC_CREAT|0400);
8820 if (id == -1)
8821 return 1;
8822 arg.val = 0; /* avoid implicit type cast to union */
8823 if (semctl(id, 0, IPC_RMID, arg) == -1)
8824 return 1;
8827 return 0;
8829 _ACEOF
8830 if ac_fn_c_try_compile "$LINENO"; then :
8831 sim_cv_sysv_sem="yes"
8832 else
8833 sim_cv_sysv_sem="no"
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_sem" >&5
8838 $as_echo "$sim_cv_sysv_sem" >&6; }
8839 if test x"$sim_cv_sysv_sem" = x"yes"; then :
8841 $as_echo "#define HAVE_SYSV_SEM 1" >>confdefs.h
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
8847 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
8848 if ${sim_cv_sysv_shm+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8854 #include <sys/types.h>
8855 #include <sys/ipc.h>
8856 #include <sys/shm.h>
8858 main ()
8861 int id = shmget(IPC_PRIVATE, 1, IPC_CREAT|0400);
8862 if (id == -1)
8863 return 1;
8864 if (shmctl(id, IPC_RMID, 0) == -1)
8865 return 1;
8868 return 0;
8870 _ACEOF
8871 if ac_fn_c_try_compile "$LINENO"; then :
8872 sim_cv_sysv_shm="yes"
8873 else
8874 sim_cv_sysv_shm="no"
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_shm" >&5
8879 $as_echo "$sim_cv_sysv_shm" >&6; }
8880 if test x"$sim_cv_sysv_shm" = x"yes"; then :
8882 $as_echo "#define HAVE_SYSV_SHM 1" >>confdefs.h
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
8888 $as_echo_n "checking for struct termios... " >&6; }
8889 if ${sim_cv_termios_struct+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8895 #include <sys/types.h>
8896 #include <sys/termios.h>
8898 main ()
8901 static struct termios x;
8902 x.c_iflag = 0;
8903 x.c_oflag = 0;
8904 x.c_cflag = 0;
8905 x.c_lflag = 0;
8906 x.c_cc[NCCS] = 0;
8909 return 0;
8911 _ACEOF
8912 if ac_fn_c_try_compile "$LINENO"; then :
8913 sim_cv_termios_struct="yes"
8914 else
8915 sim_cv_termios_struct="no"
8917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5
8920 $as_echo "$sim_cv_termios_struct" >&6; }
8921 if test $sim_cv_termios_struct = yes; then
8923 $as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h
8927 if test "$sim_cv_termios_struct" = "yes"; then
8928 if ${sim_cv_termios_cline+:} false; then :
8929 $as_echo_n "(cached) " >&6
8932 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
8933 #include <sys/types.h>
8934 #include <sys/termios.h>
8937 if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
8938 sim_cv_termios_cline="yes"
8939 else
8940 sim_cv_termios_cline="no"
8943 if test $sim_cv_termios_cline = yes; then
8945 $as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h
8948 else
8949 sim_cv_termios_cline=no
8952 if test "$sim_cv_termios_struct" != "yes"; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
8954 $as_echo_n "checking for struct termio... " >&6; }
8955 if ${sim_cv_termio_struct+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8961 #include <sys/types.h>
8962 #include <sys/termio.h>
8964 main ()
8967 static struct termio x;
8968 x.c_iflag = 0;
8969 x.c_oflag = 0;
8970 x.c_cflag = 0;
8971 x.c_lflag = 0;
8972 x.c_cc[NCC] = 0;
8975 return 0;
8977 _ACEOF
8978 if ac_fn_c_try_compile "$LINENO"; then :
8979 sim_cv_termio_struct="yes"
8980 else
8981 sim_cv_termio_struct="no"
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5
8986 $as_echo "$sim_cv_termio_struct" >&6; }
8987 if test $sim_cv_termio_struct = yes; then
8989 $as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h
8992 else
8993 sim_cv_termio_struct=no
8996 if test "$sim_cv_termio_struct" = "yes"; then
8997 if ${sim_cv_termio_cline+:} false; then :
8998 $as_echo_n "(cached) " >&6
9001 ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
9002 #include <sys/types.h>
9003 #include <sys/termio.h>
9006 if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
9007 sim_cv_termio_cline="yes"
9008 else
9009 sim_cv_termio_cline="no"
9012 if test $sim_cv_termio_cline = yes; then
9014 $as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h
9017 else
9018 sim_cv_termio_cline=no
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
9022 $as_echo_n "checking type of array argument to getgroups... " >&6; }
9023 if ${ac_cv_type_getgroups+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 if test "$cross_compiling" = yes; then :
9027 ac_cv_type_getgroups=cross
9028 else
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031 /* Thanks to Mike Rendell for this test. */
9032 $ac_includes_default
9033 #define NGID 256
9034 #undef MAX
9035 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9038 main ()
9040 gid_t gidset[NGID];
9041 int i, n;
9042 union { gid_t gval; long int lval; } val;
9044 val.lval = -1;
9045 for (i = 0; i < NGID; i++)
9046 gidset[i] = val.gval;
9047 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9048 gidset);
9049 /* Exit non-zero if getgroups seems to require an array of ints. This
9050 happens when gid_t is short int but getgroups modifies an array
9051 of ints. */
9052 return n > 0 && gidset[n] != val.gval;
9054 _ACEOF
9055 if ac_fn_c_try_run "$LINENO"; then :
9056 ac_cv_type_getgroups=gid_t
9057 else
9058 ac_cv_type_getgroups=int
9060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9061 conftest.$ac_objext conftest.beam conftest.$ac_ext
9064 if test $ac_cv_type_getgroups = cross; then
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9067 #include <unistd.h>
9069 _ACEOF
9070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9071 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
9072 ac_cv_type_getgroups=gid_t
9073 else
9074 ac_cv_type_getgroups=int
9076 rm -f conftest*
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
9081 $as_echo "$ac_cv_type_getgroups" >&6; }
9083 cat >>confdefs.h <<_ACEOF
9084 #define GETGROUPS_T $ac_cv_type_getgroups
9085 _ACEOF
9088 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9089 if test "x$ac_cv_type_mode_t" = xyes; then :
9091 else
9093 cat >>confdefs.h <<_ACEOF
9094 #define mode_t int
9095 _ACEOF
9099 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9100 if test "x$ac_cv_type_off_t" = xyes; then :
9102 else
9104 cat >>confdefs.h <<_ACEOF
9105 #define off_t long int
9106 _ACEOF
9110 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9111 if test "x$ac_cv_type_pid_t" = xyes; then :
9113 else
9115 cat >>confdefs.h <<_ACEOF
9116 #define pid_t int
9117 _ACEOF
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9122 $as_echo_n "checking return type of signal handlers... " >&6; }
9123 if ${ac_cv_type_signal+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 #include <sys/types.h>
9129 #include <signal.h>
9132 main ()
9134 return *(signal (0, 0)) (0) == 1;
9136 return 0;
9138 _ACEOF
9139 if ac_fn_c_try_compile "$LINENO"; then :
9140 ac_cv_type_signal=int
9141 else
9142 ac_cv_type_signal=void
9144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9147 $as_echo "$ac_cv_type_signal" >&6; }
9149 cat >>confdefs.h <<_ACEOF
9150 #define RETSIGTYPE $ac_cv_type_signal
9151 _ACEOF
9154 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9155 if test "x$ac_cv_type_size_t" = xyes; then :
9157 else
9159 cat >>confdefs.h <<_ACEOF
9160 #define size_t unsigned int
9161 _ACEOF
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9166 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9167 if ${ac_cv_type_uid_t+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9174 _ACEOF
9175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176 $EGREP "uid_t" >/dev/null 2>&1; then :
9177 ac_cv_type_uid_t=yes
9178 else
9179 ac_cv_type_uid_t=no
9181 rm -f conftest*
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9185 $as_echo "$ac_cv_type_uid_t" >&6; }
9186 if test $ac_cv_type_uid_t = no; then
9188 $as_echo "#define uid_t int" >>confdefs.h
9191 $as_echo "#define gid_t int" >>confdefs.h
9200 # Set options
9204 enable_dlopen=no
9207 enable_win32_dll=no
9210 # Check whether --enable-shared was given.
9211 if test "${enable_shared+set}" = set; then :
9212 enableval=$enable_shared; p=${PACKAGE-default}
9213 case $enableval in
9214 yes) enable_shared=yes ;;
9215 no) enable_shared=no ;;
9217 enable_shared=no
9218 # Look at the argument we got. We use all the common list separators.
9219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9220 for pkg in $enableval; do
9221 IFS="$lt_save_ifs"
9222 if test "X$pkg" = "X$p"; then
9223 enable_shared=yes
9225 done
9226 IFS="$lt_save_ifs"
9228 esac
9229 else
9230 enable_shared=yes
9241 # Check whether --enable-static was given.
9242 if test "${enable_static+set}" = set; then :
9243 enableval=$enable_static; p=${PACKAGE-default}
9244 case $enableval in
9245 yes) enable_static=yes ;;
9246 no) enable_static=no ;;
9248 enable_static=no
9249 # Look at the argument we got. We use all the common list separators.
9250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9251 for pkg in $enableval; do
9252 IFS="$lt_save_ifs"
9253 if test "X$pkg" = "X$p"; then
9254 enable_static=yes
9256 done
9257 IFS="$lt_save_ifs"
9259 esac
9260 else
9261 enable_static=yes
9273 # Check whether --with-pic was given.
9274 if test "${with_pic+set}" = set; then :
9275 withval=$with_pic; pic_mode="$withval"
9276 else
9277 pic_mode=default
9281 test -z "$pic_mode" && pic_mode=default
9289 # Check whether --enable-fast-install was given.
9290 if test "${enable_fast_install+set}" = set; then :
9291 enableval=$enable_fast_install; p=${PACKAGE-default}
9292 case $enableval in
9293 yes) enable_fast_install=yes ;;
9294 no) enable_fast_install=no ;;
9296 enable_fast_install=no
9297 # Look at the argument we got. We use all the common list separators.
9298 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9299 for pkg in $enableval; do
9300 IFS="$lt_save_ifs"
9301 if test "X$pkg" = "X$p"; then
9302 enable_fast_install=yes
9304 done
9305 IFS="$lt_save_ifs"
9307 esac
9308 else
9309 enable_fast_install=yes
9322 # This can be used to rebuild libtool when needed
9323 LIBTOOL_DEPS="$ltmain"
9325 # Always use our own libtool.
9326 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9353 test -z "$LN_S" && LN_S="ln -s"
9368 if test -n "${ZSH_VERSION+set}" ; then
9369 setopt NO_GLOB_SUBST
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9373 $as_echo_n "checking for objdir... " >&6; }
9374 if ${lt_cv_objdir+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 rm -f .libs 2>/dev/null
9378 mkdir .libs 2>/dev/null
9379 if test -d .libs; then
9380 lt_cv_objdir=.libs
9381 else
9382 # MS-DOS does not allow filenames that begin with a dot.
9383 lt_cv_objdir=_libs
9385 rmdir .libs 2>/dev/null
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9388 $as_echo "$lt_cv_objdir" >&6; }
9389 objdir=$lt_cv_objdir
9395 cat >>confdefs.h <<_ACEOF
9396 #define LT_OBJDIR "$lt_cv_objdir/"
9397 _ACEOF
9402 case $host_os in
9403 aix3*)
9404 # AIX sometimes has problems with the GCC collect2 program. For some
9405 # reason, if we set the COLLECT_NAMES environment variable, the problems
9406 # vanish in a puff of smoke.
9407 if test "X${COLLECT_NAMES+set}" != Xset; then
9408 COLLECT_NAMES=
9409 export COLLECT_NAMES
9412 esac
9414 # Global variables:
9415 ofile=libtool
9416 can_build_shared=yes
9418 # All known linkers require a `.a' archive for static linking (except MSVC,
9419 # which needs '.lib').
9420 libext=a
9422 with_gnu_ld="$lt_cv_prog_gnu_ld"
9424 old_CC="$CC"
9425 old_CFLAGS="$CFLAGS"
9427 # Set sane defaults for various variables
9428 test -z "$CC" && CC=cc
9429 test -z "$LTCC" && LTCC=$CC
9430 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9431 test -z "$LD" && LD=ld
9432 test -z "$ac_objext" && ac_objext=o
9434 for cc_temp in $compiler""; do
9435 case $cc_temp in
9436 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9437 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9438 \-*) ;;
9439 *) break;;
9440 esac
9441 done
9442 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9445 # Only perform the check for file, if the check method requires it
9446 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9447 case $deplibs_check_method in
9448 file_magic*)
9449 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9451 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9452 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 case $MAGIC_CMD in
9456 [\\/*] | ?:[\\/]*)
9457 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9460 lt_save_MAGIC_CMD="$MAGIC_CMD"
9461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9462 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9463 for ac_dir in $ac_dummy; do
9464 IFS="$lt_save_ifs"
9465 test -z "$ac_dir" && ac_dir=.
9466 if test -f $ac_dir/${ac_tool_prefix}file; then
9467 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9468 if test -n "$file_magic_test_file"; then
9469 case $deplibs_check_method in
9470 "file_magic "*)
9471 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9473 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9474 $EGREP "$file_magic_regex" > /dev/null; then
9476 else
9477 cat <<_LT_EOF 1>&2
9479 *** Warning: the command libtool uses to detect shared libraries,
9480 *** $file_magic_cmd, produces output that libtool cannot recognize.
9481 *** The result is that libtool may fail to recognize shared libraries
9482 *** as such. This will affect the creation of libtool libraries that
9483 *** depend on shared libraries, but programs linked with such libtool
9484 *** libraries will work regardless of this problem. Nevertheless, you
9485 *** may want to report the problem to your system manager and/or to
9486 *** bug-libtool@gnu.org
9488 _LT_EOF
9489 fi ;;
9490 esac
9492 break
9494 done
9495 IFS="$lt_save_ifs"
9496 MAGIC_CMD="$lt_save_MAGIC_CMD"
9498 esac
9501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9502 if test -n "$MAGIC_CMD"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9504 $as_echo "$MAGIC_CMD" >&6; }
9505 else
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9514 if test -z "$lt_cv_path_MAGIC_CMD"; then
9515 if test -n "$ac_tool_prefix"; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9517 $as_echo_n "checking for file... " >&6; }
9518 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 case $MAGIC_CMD in
9522 [\\/*] | ?:[\\/]*)
9523 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9526 lt_save_MAGIC_CMD="$MAGIC_CMD"
9527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9528 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9529 for ac_dir in $ac_dummy; do
9530 IFS="$lt_save_ifs"
9531 test -z "$ac_dir" && ac_dir=.
9532 if test -f $ac_dir/file; then
9533 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9534 if test -n "$file_magic_test_file"; then
9535 case $deplibs_check_method in
9536 "file_magic "*)
9537 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9539 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9540 $EGREP "$file_magic_regex" > /dev/null; then
9542 else
9543 cat <<_LT_EOF 1>&2
9545 *** Warning: the command libtool uses to detect shared libraries,
9546 *** $file_magic_cmd, produces output that libtool cannot recognize.
9547 *** The result is that libtool may fail to recognize shared libraries
9548 *** as such. This will affect the creation of libtool libraries that
9549 *** depend on shared libraries, but programs linked with such libtool
9550 *** libraries will work regardless of this problem. Nevertheless, you
9551 *** may want to report the problem to your system manager and/or to
9552 *** bug-libtool@gnu.org
9554 _LT_EOF
9555 fi ;;
9556 esac
9558 break
9560 done
9561 IFS="$lt_save_ifs"
9562 MAGIC_CMD="$lt_save_MAGIC_CMD"
9564 esac
9567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9568 if test -n "$MAGIC_CMD"; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9570 $as_echo "$MAGIC_CMD" >&6; }
9571 else
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 $as_echo "no" >&6; }
9577 else
9578 MAGIC_CMD=:
9584 esac
9586 # Use C for the default configuration in the libtool script
9588 lt_save_CC="$CC"
9589 ac_ext=c
9590 ac_cpp='$CPP $CPPFLAGS'
9591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9596 # Source file extension for C test sources.
9597 ac_ext=c
9599 # Object file extension for compiled C test sources.
9600 objext=o
9601 objext=$objext
9603 # Code to be used in simple compile tests
9604 lt_simple_compile_test_code="int some_variable = 0;"
9606 # Code to be used in simple link tests
9607 lt_simple_link_test_code='int main(){return(0);}'
9615 # If no C compiler was specified, use CC.
9616 LTCC=${LTCC-"$CC"}
9618 # If no C compiler flags were specified, use CFLAGS.
9619 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9621 # Allow CC to be a program name with arguments.
9622 compiler=$CC
9624 # Save the default compiler, since it gets overwritten when the other
9625 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9626 compiler_DEFAULT=$CC
9628 # save warnings/boilerplate of simple test code
9629 ac_outfile=conftest.$ac_objext
9630 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9631 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9632 _lt_compiler_boilerplate=`cat conftest.err`
9633 $RM conftest*
9635 ac_outfile=conftest.$ac_objext
9636 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9637 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9638 _lt_linker_boilerplate=`cat conftest.err`
9639 $RM -r conftest*
9642 ## CAVEAT EMPTOR:
9643 ## There is no encapsulation within the following macros, do not change
9644 ## the running order or otherwise move them around unless you know exactly
9645 ## what you are doing...
9646 if test -n "$compiler"; then
9648 lt_prog_compiler_no_builtin_flag=
9650 if test "$GCC" = yes; then
9651 case $cc_basename in
9652 nvcc*)
9653 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9655 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9656 esac
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9659 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9660 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 lt_cv_prog_compiler_rtti_exceptions=no
9664 ac_outfile=conftest.$ac_objext
9665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9666 lt_compiler_flag="-fno-rtti -fno-exceptions"
9667 # Insert the option either (1) after the last *FLAGS variable, or
9668 # (2) before a word containing "conftest.", or (3) at the end.
9669 # Note that $ac_compile itself does not contain backslashes and begins
9670 # with a dollar sign (not a hyphen), so the echo should work correctly.
9671 # The option is referenced via a variable to avoid confusing sed.
9672 lt_compile=`echo "$ac_compile" | $SED \
9673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9675 -e 's:$: $lt_compiler_flag:'`
9676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9677 (eval "$lt_compile" 2>conftest.err)
9678 ac_status=$?
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 if (exit $ac_status) && test -s "$ac_outfile"; then
9682 # The compiler can only warn and ignore the option if not recognized
9683 # So say no if there are warnings other than the usual output.
9684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9687 lt_cv_prog_compiler_rtti_exceptions=yes
9690 $RM conftest*
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9694 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9696 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9697 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9698 else
9709 lt_prog_compiler_wl=
9710 lt_prog_compiler_pic=
9711 lt_prog_compiler_static=
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9714 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9716 if test "$GCC" = yes; then
9717 lt_prog_compiler_wl='-Wl,'
9718 lt_prog_compiler_static='-static'
9720 case $host_os in
9721 aix*)
9722 # All AIX code is PIC.
9723 if test "$host_cpu" = ia64; then
9724 # AIX 5 now supports IA64 processor
9725 lt_prog_compiler_static='-Bstatic'
9727 lt_prog_compiler_pic='-fPIC'
9730 amigaos*)
9731 case $host_cpu in
9732 powerpc)
9733 # see comment about AmigaOS4 .so support
9734 lt_prog_compiler_pic='-fPIC'
9736 m68k)
9737 # FIXME: we need at least 68020 code to build shared libraries, but
9738 # adding the `-m68020' flag to GCC prevents building anything better,
9739 # like `-m68040'.
9740 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9742 esac
9745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9746 # PIC is the default for these OSes.
9749 mingw* | cygwin* | pw32* | os2* | cegcc*)
9750 # This hack is so that the source file can tell whether it is being
9751 # built for inclusion in a dll (and should export symbols for example).
9752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9753 # (--disable-auto-import) libraries
9754 lt_prog_compiler_pic='-DDLL_EXPORT'
9757 darwin* | rhapsody*)
9758 # PIC is the default on this platform
9759 # Common symbols not allowed in MH_DYLIB files
9760 lt_prog_compiler_pic='-fno-common'
9763 haiku*)
9764 # PIC is the default for Haiku.
9765 # The "-static" flag exists, but is broken.
9766 lt_prog_compiler_static=
9769 hpux*)
9770 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9771 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9772 # sets the default TLS model and affects inlining.
9773 case $host_cpu in
9774 hppa*64*)
9775 # +Z the default
9778 lt_prog_compiler_pic='-fPIC'
9780 esac
9783 interix[3-9]*)
9784 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9785 # Instead, we relocate shared libraries at runtime.
9788 msdosdjgpp*)
9789 # Just because we use GCC doesn't mean we suddenly get shared libraries
9790 # on systems that don't support them.
9791 lt_prog_compiler_can_build_shared=no
9792 enable_shared=no
9795 *nto* | *qnx*)
9796 # QNX uses GNU C++, but need to define -shared option too, otherwise
9797 # it will coredump.
9798 lt_prog_compiler_pic='-fPIC -shared'
9801 sysv4*MP*)
9802 if test -d /usr/nec; then
9803 lt_prog_compiler_pic=-Kconform_pic
9808 lt_prog_compiler_pic='-fPIC'
9810 esac
9812 case $cc_basename in
9813 nvcc*) # Cuda Compiler Driver 2.2
9814 lt_prog_compiler_wl='-Xlinker '
9815 lt_prog_compiler_pic='-Xcompiler -fPIC'
9817 esac
9818 else
9819 # PORTME Check for flag to pass linker flags through the system compiler.
9820 case $host_os in
9821 aix*)
9822 lt_prog_compiler_wl='-Wl,'
9823 if test "$host_cpu" = ia64; then
9824 # AIX 5 now supports IA64 processor
9825 lt_prog_compiler_static='-Bstatic'
9826 else
9827 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9831 mingw* | cygwin* | pw32* | os2* | cegcc*)
9832 # This hack is so that the source file can tell whether it is being
9833 # built for inclusion in a dll (and should export symbols for example).
9834 lt_prog_compiler_pic='-DDLL_EXPORT'
9837 hpux9* | hpux10* | hpux11*)
9838 lt_prog_compiler_wl='-Wl,'
9839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9840 # not for PA HP-UX.
9841 case $host_cpu in
9842 hppa*64*|ia64*)
9843 # +Z the default
9846 lt_prog_compiler_pic='+Z'
9848 esac
9849 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9850 lt_prog_compiler_static='${wl}-a ${wl}archive'
9853 irix5* | irix6* | nonstopux*)
9854 lt_prog_compiler_wl='-Wl,'
9855 # PIC (with -KPIC) is the default.
9856 lt_prog_compiler_static='-non_shared'
9859 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9860 case $cc_basename in
9861 # old Intel for x86_64 which still supported -KPIC.
9862 ecc*)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='-KPIC'
9865 lt_prog_compiler_static='-static'
9867 # icc used to be incompatible with GCC.
9868 # ICC 10 doesn't accept -KPIC any more.
9869 icc* | ifort*)
9870 lt_prog_compiler_wl='-Wl,'
9871 lt_prog_compiler_pic='-fPIC'
9872 lt_prog_compiler_static='-static'
9874 # Lahey Fortran 8.1.
9875 lf95*)
9876 lt_prog_compiler_wl='-Wl,'
9877 lt_prog_compiler_pic='--shared'
9878 lt_prog_compiler_static='--static'
9880 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9881 # Portland Group compilers (*not* the Pentium gcc compiler,
9882 # which looks to be a dead project)
9883 lt_prog_compiler_wl='-Wl,'
9884 lt_prog_compiler_pic='-fpic'
9885 lt_prog_compiler_static='-Bstatic'
9887 ccc*)
9888 lt_prog_compiler_wl='-Wl,'
9889 # All Alpha code is PIC.
9890 lt_prog_compiler_static='-non_shared'
9892 xl* | bgxl* | bgf* | mpixl*)
9893 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9894 lt_prog_compiler_wl='-Wl,'
9895 lt_prog_compiler_pic='-qpic'
9896 lt_prog_compiler_static='-qstaticlink'
9899 case `$CC -V 2>&1 | sed 5q` in
9900 *Sun\ F* | *Sun*Fortran*)
9901 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl=''
9906 *Sun\ C*)
9907 # Sun C 5.9
9908 lt_prog_compiler_pic='-KPIC'
9909 lt_prog_compiler_static='-Bstatic'
9910 lt_prog_compiler_wl='-Wl,'
9912 esac
9914 esac
9917 newsos6)
9918 lt_prog_compiler_pic='-KPIC'
9919 lt_prog_compiler_static='-Bstatic'
9922 *nto* | *qnx*)
9923 # QNX uses GNU C++, but need to define -shared option too, otherwise
9924 # it will coredump.
9925 lt_prog_compiler_pic='-fPIC -shared'
9928 osf3* | osf4* | osf5*)
9929 lt_prog_compiler_wl='-Wl,'
9930 # All OSF/1 code is PIC.
9931 lt_prog_compiler_static='-non_shared'
9934 rdos*)
9935 lt_prog_compiler_static='-non_shared'
9938 solaris*)
9939 lt_prog_compiler_pic='-KPIC'
9940 lt_prog_compiler_static='-Bstatic'
9941 case $cc_basename in
9942 f77* | f90* | f95*)
9943 lt_prog_compiler_wl='-Qoption ld ';;
9945 lt_prog_compiler_wl='-Wl,';;
9946 esac
9949 sunos4*)
9950 lt_prog_compiler_wl='-Qoption ld '
9951 lt_prog_compiler_pic='-PIC'
9952 lt_prog_compiler_static='-Bstatic'
9955 sysv4 | sysv4.2uw2* | sysv4.3*)
9956 lt_prog_compiler_wl='-Wl,'
9957 lt_prog_compiler_pic='-KPIC'
9958 lt_prog_compiler_static='-Bstatic'
9961 sysv4*MP*)
9962 if test -d /usr/nec ;then
9963 lt_prog_compiler_pic='-Kconform_pic'
9964 lt_prog_compiler_static='-Bstatic'
9968 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9969 lt_prog_compiler_wl='-Wl,'
9970 lt_prog_compiler_pic='-KPIC'
9971 lt_prog_compiler_static='-Bstatic'
9974 unicos*)
9975 lt_prog_compiler_wl='-Wl,'
9976 lt_prog_compiler_can_build_shared=no
9979 uts4*)
9980 lt_prog_compiler_pic='-pic'
9981 lt_prog_compiler_static='-Bstatic'
9985 lt_prog_compiler_can_build_shared=no
9987 esac
9990 case $host_os in
9991 # For platforms which do not support PIC, -DPIC is meaningless:
9992 *djgpp*)
9993 lt_prog_compiler_pic=
9996 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9998 esac
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10000 $as_echo "$lt_prog_compiler_pic" >&6; }
10008 # Check to make sure the PIC flag actually works.
10010 if test -n "$lt_prog_compiler_pic"; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10012 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10013 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 lt_cv_prog_compiler_pic_works=no
10017 ac_outfile=conftest.$ac_objext
10018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10019 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10020 # Insert the option either (1) after the last *FLAGS variable, or
10021 # (2) before a word containing "conftest.", or (3) at the end.
10022 # Note that $ac_compile itself does not contain backslashes and begins
10023 # with a dollar sign (not a hyphen), so the echo should work correctly.
10024 # The option is referenced via a variable to avoid confusing sed.
10025 lt_compile=`echo "$ac_compile" | $SED \
10026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10028 -e 's:$: $lt_compiler_flag:'`
10029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10030 (eval "$lt_compile" 2>conftest.err)
10031 ac_status=$?
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 if (exit $ac_status) && test -s "$ac_outfile"; then
10035 # The compiler can only warn and ignore the option if not recognized
10036 # So say no if there are warnings other than the usual output.
10037 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10039 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10040 lt_cv_prog_compiler_pic_works=yes
10043 $RM conftest*
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10047 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10049 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10050 case $lt_prog_compiler_pic in
10051 "" | " "*) ;;
10052 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10053 esac
10054 else
10055 lt_prog_compiler_pic=
10056 lt_prog_compiler_can_build_shared=no
10067 # Check to make sure the static flag actually works.
10069 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10071 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10072 if ${lt_cv_prog_compiler_static_works+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 lt_cv_prog_compiler_static_works=no
10076 save_LDFLAGS="$LDFLAGS"
10077 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10078 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10079 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10080 # The linker can only warn and ignore the option if not recognized
10081 # So say no if there are warnings
10082 if test -s conftest.err; then
10083 # Append any errors to the config.log.
10084 cat conftest.err 1>&5
10085 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10087 if diff conftest.exp conftest.er2 >/dev/null; then
10088 lt_cv_prog_compiler_static_works=yes
10090 else
10091 lt_cv_prog_compiler_static_works=yes
10094 $RM -r conftest*
10095 LDFLAGS="$save_LDFLAGS"
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10099 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10101 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10103 else
10104 lt_prog_compiler_static=
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10114 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10115 if ${lt_cv_prog_compiler_c_o+:} false; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 lt_cv_prog_compiler_c_o=no
10119 $RM -r conftest 2>/dev/null
10120 mkdir conftest
10121 cd conftest
10122 mkdir out
10123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10125 lt_compiler_flag="-o out/conftest2.$ac_objext"
10126 # Insert the option either (1) after the last *FLAGS variable, or
10127 # (2) before a word containing "conftest.", or (3) at the end.
10128 # Note that $ac_compile itself does not contain backslashes and begins
10129 # with a dollar sign (not a hyphen), so the echo should work correctly.
10130 lt_compile=`echo "$ac_compile" | $SED \
10131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10133 -e 's:$: $lt_compiler_flag:'`
10134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10135 (eval "$lt_compile" 2>out/conftest.err)
10136 ac_status=$?
10137 cat out/conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10140 then
10141 # The compiler can only warn and ignore the option if not recognized
10142 # So say no if there are warnings
10143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10144 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10145 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10146 lt_cv_prog_compiler_c_o=yes
10149 chmod u+w . 2>&5
10150 $RM conftest*
10151 # SGI C++ compiler will create directory out/ii_files/ for
10152 # template instantiation
10153 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10154 $RM out/* && rmdir out
10155 cd ..
10156 $RM -r conftest
10157 $RM conftest*
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10161 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10169 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10170 if ${lt_cv_prog_compiler_c_o+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 lt_cv_prog_compiler_c_o=no
10174 $RM -r conftest 2>/dev/null
10175 mkdir conftest
10176 cd conftest
10177 mkdir out
10178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10180 lt_compiler_flag="-o out/conftest2.$ac_objext"
10181 # Insert the option either (1) after the last *FLAGS variable, or
10182 # (2) before a word containing "conftest.", or (3) at the end.
10183 # Note that $ac_compile itself does not contain backslashes and begins
10184 # with a dollar sign (not a hyphen), so the echo should work correctly.
10185 lt_compile=`echo "$ac_compile" | $SED \
10186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10188 -e 's:$: $lt_compiler_flag:'`
10189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10190 (eval "$lt_compile" 2>out/conftest.err)
10191 ac_status=$?
10192 cat out/conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10195 then
10196 # The compiler can only warn and ignore the option if not recognized
10197 # So say no if there are warnings
10198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10201 lt_cv_prog_compiler_c_o=yes
10204 chmod u+w . 2>&5
10205 $RM conftest*
10206 # SGI C++ compiler will create directory out/ii_files/ for
10207 # template instantiation
10208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10209 $RM out/* && rmdir out
10210 cd ..
10211 $RM -r conftest
10212 $RM conftest*
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10216 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10221 hard_links="nottested"
10222 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10223 # do not overwrite the value of need_locks provided by the user
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10225 $as_echo_n "checking if we can lock with hard links... " >&6; }
10226 hard_links=yes
10227 $RM conftest*
10228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10229 touch conftest.a
10230 ln conftest.a conftest.b 2>&5 || hard_links=no
10231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10233 $as_echo "$hard_links" >&6; }
10234 if test "$hard_links" = no; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10236 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10237 need_locks=warn
10239 else
10240 need_locks=no
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10249 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10251 runpath_var=
10252 allow_undefined_flag=
10253 always_export_symbols=no
10254 archive_cmds=
10255 archive_expsym_cmds=
10256 compiler_needs_object=no
10257 enable_shared_with_static_runtimes=no
10258 export_dynamic_flag_spec=
10259 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10260 hardcode_automatic=no
10261 hardcode_direct=no
10262 hardcode_direct_absolute=no
10263 hardcode_libdir_flag_spec=
10264 hardcode_libdir_flag_spec_ld=
10265 hardcode_libdir_separator=
10266 hardcode_minus_L=no
10267 hardcode_shlibpath_var=unsupported
10268 inherit_rpath=no
10269 link_all_deplibs=unknown
10270 module_cmds=
10271 module_expsym_cmds=
10272 old_archive_from_new_cmds=
10273 old_archive_from_expsyms_cmds=
10274 thread_safe_flag_spec=
10275 whole_archive_flag_spec=
10276 # include_expsyms should be a list of space-separated symbols to be *always*
10277 # included in the symbol list
10278 include_expsyms=
10279 # exclude_expsyms can be an extended regexp of symbols to exclude
10280 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10281 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10282 # as well as any symbol that contains `d'.
10283 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10284 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10285 # platforms (ab)use it in PIC code, but their linkers get confused if
10286 # the symbol is explicitly referenced. Since portable code cannot
10287 # rely on this symbol name, it's probably fine to never include it in
10288 # preloaded symbol tables.
10289 # Exclude shared library initialization/finalization symbols.
10290 extract_expsyms_cmds=
10292 case $host_os in
10293 cygwin* | mingw* | pw32* | cegcc*)
10294 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10295 # When not using gcc, we currently assume that we are using
10296 # Microsoft Visual C++.
10297 if test "$GCC" != yes; then
10298 with_gnu_ld=no
10301 interix*)
10302 # we just hope/assume this is gcc and not c89 (= MSVC++)
10303 with_gnu_ld=yes
10305 openbsd*)
10306 with_gnu_ld=no
10308 esac
10310 ld_shlibs=yes
10312 # On some targets, GNU ld is compatible enough with the native linker
10313 # that we're better off using the native interface for both.
10314 lt_use_gnu_ld_interface=no
10315 if test "$with_gnu_ld" = yes; then
10316 case $host_os in
10317 aix*)
10318 # The AIX port of GNU ld has always aspired to compatibility
10319 # with the native linker. However, as the warning in the GNU ld
10320 # block says, versions before 2.19.5* couldn't really create working
10321 # shared libraries, regardless of the interface used.
10322 case `$LD -v 2>&1` in
10323 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10324 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10325 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10327 lt_use_gnu_ld_interface=yes
10329 esac
10332 lt_use_gnu_ld_interface=yes
10334 esac
10337 if test "$lt_use_gnu_ld_interface" = yes; then
10338 # If archive_cmds runs LD, not CC, wlarc should be empty
10339 wlarc='${wl}'
10341 # Set some defaults for GNU ld with shared library support. These
10342 # are reset later if shared libraries are not supported. Putting them
10343 # here allows them to be overridden if necessary.
10344 runpath_var=LD_RUN_PATH
10345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10346 export_dynamic_flag_spec='${wl}--export-dynamic'
10347 # ancient GNU ld didn't support --whole-archive et. al.
10348 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10349 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10350 else
10351 whole_archive_flag_spec=
10353 supports_anon_versioning=no
10354 case `$LD -v 2>&1` in
10355 *GNU\ gold*) supports_anon_versioning=yes ;;
10356 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10357 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10358 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10359 *\ 2.11.*) ;; # other 2.11 versions
10360 *) supports_anon_versioning=yes ;;
10361 esac
10363 # See if GNU ld supports shared libraries.
10364 case $host_os in
10365 aix[3-9]*)
10366 # On AIX/PPC, the GNU linker is very broken
10367 if test "$host_cpu" != ia64; then
10368 ld_shlibs=no
10369 cat <<_LT_EOF 1>&2
10371 *** Warning: the GNU linker, at least up to release 2.19, is reported
10372 *** to be unable to reliably create shared libraries on AIX.
10373 *** Therefore, libtool is disabling shared libraries support. If you
10374 *** really care for shared libraries, you may want to install binutils
10375 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10376 *** You will then need to restart the configuration process.
10378 _LT_EOF
10382 amigaos*)
10383 case $host_cpu in
10384 powerpc)
10385 # see comment about AmigaOS4 .so support
10386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10387 archive_expsym_cmds=''
10389 m68k)
10390 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)'
10391 hardcode_libdir_flag_spec='-L$libdir'
10392 hardcode_minus_L=yes
10394 esac
10397 beos*)
10398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10399 allow_undefined_flag=unsupported
10400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10401 # support --undefined. This deserves some investigation. FIXME
10402 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403 else
10404 ld_shlibs=no
10408 cygwin* | mingw* | pw32* | cegcc*)
10409 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10410 # as there is no search path for DLLs.
10411 hardcode_libdir_flag_spec='-L$libdir'
10412 export_dynamic_flag_spec='${wl}--export-all-symbols'
10413 allow_undefined_flag=unsupported
10414 always_export_symbols=no
10415 enable_shared_with_static_runtimes=yes
10416 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10418 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10420 # If the export-symbols file already is a .def file (1st line
10421 # is EXPORTS), use it as is; otherwise, prepend...
10422 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10423 cp $export_symbols $output_objdir/$soname.def;
10424 else
10425 echo EXPORTS > $output_objdir/$soname.def;
10426 cat $export_symbols >> $output_objdir/$soname.def;
10428 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10429 else
10430 ld_shlibs=no
10434 haiku*)
10435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436 link_all_deplibs=yes
10439 interix[3-9]*)
10440 hardcode_direct=no
10441 hardcode_shlibpath_var=no
10442 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10443 export_dynamic_flag_spec='${wl}-E'
10444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10445 # Instead, shared libraries are loaded at an image base (0x10000000 by
10446 # default) and relocated if they conflict, which is a slow very memory
10447 # consuming and fragmenting process. To avoid this, we pick a random,
10448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10449 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10450 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10451 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'
10454 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10455 tmp_diet=no
10456 if test "$host_os" = linux-dietlibc; then
10457 case $cc_basename in
10458 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10459 esac
10461 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10462 && test "$tmp_diet" = no
10463 then
10464 tmp_addflag=' $pic_flag'
10465 tmp_sharedflag='-shared'
10466 case $cc_basename,$host_cpu in
10467 pgcc*) # Portland Group C compiler
10468 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'
10469 tmp_addflag=' $pic_flag'
10471 pgf77* | pgf90* | pgf95* | pgfortran*)
10472 # Portland Group f77 and f90 compilers
10473 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'
10474 tmp_addflag=' $pic_flag -Mnomain' ;;
10475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10476 tmp_addflag=' -i_dynamic' ;;
10477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10478 tmp_addflag=' -i_dynamic -nofor_main' ;;
10479 ifc* | ifort*) # Intel Fortran compiler
10480 tmp_addflag=' -nofor_main' ;;
10481 lf95*) # Lahey Fortran 8.1
10482 whole_archive_flag_spec=
10483 tmp_sharedflag='--shared' ;;
10484 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10485 tmp_sharedflag='-qmkshrobj'
10486 tmp_addflag= ;;
10487 nvcc*) # Cuda Compiler Driver 2.2
10488 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'
10489 compiler_needs_object=yes
10491 esac
10492 case `$CC -V 2>&1 | sed 5q` in
10493 *Sun\ C*) # Sun C 5.9
10494 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'
10495 compiler_needs_object=yes
10496 tmp_sharedflag='-G' ;;
10497 *Sun\ F*) # Sun Fortran 8.3
10498 tmp_sharedflag='-G' ;;
10499 esac
10500 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10502 if test "x$supports_anon_versioning" = xyes; then
10503 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10504 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10505 echo "local: *; };" >> $output_objdir/$libname.ver~
10506 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10509 case $cc_basename in
10510 xlf* | bgf* | bgxlf* | mpixlf*)
10511 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10512 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10513 hardcode_libdir_flag_spec=
10514 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10515 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10516 if test "x$supports_anon_versioning" = xyes; then
10517 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10518 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10519 echo "local: *; };" >> $output_objdir/$libname.ver~
10520 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10523 esac
10524 else
10525 ld_shlibs=no
10529 netbsd*)
10530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10531 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10532 wlarc=
10533 else
10534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10539 solaris*)
10540 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10541 ld_shlibs=no
10542 cat <<_LT_EOF 1>&2
10544 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10545 *** create shared libraries on Solaris systems. Therefore, libtool
10546 *** is disabling shared libraries support. We urge you to upgrade GNU
10547 *** binutils to release 2.9.1 or newer. Another option is to modify
10548 *** your PATH or compiler configuration so that the native linker is
10549 *** used, and then restart.
10551 _LT_EOF
10552 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10554 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10555 else
10556 ld_shlibs=no
10560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10561 case `$LD -v 2>&1` in
10562 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10563 ld_shlibs=no
10564 cat <<_LT_EOF 1>&2
10566 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10567 *** reliably create shared libraries on SCO systems. Therefore, libtool
10568 *** is disabling shared libraries support. We urge you to upgrade GNU
10569 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10570 *** your PATH or compiler configuration so that the native linker is
10571 *** used, and then restart.
10573 _LT_EOF
10576 # For security reasons, it is highly recommended that you always
10577 # use absolute paths for naming shared libraries, and exclude the
10578 # DT_RUNPATH tag from executables and libraries. But doing so
10579 # requires that you compile everything twice, which is a pain.
10580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10584 else
10585 ld_shlibs=no
10588 esac
10591 sunos4*)
10592 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10593 wlarc=
10594 hardcode_direct=yes
10595 hardcode_shlibpath_var=no
10599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10602 else
10603 ld_shlibs=no
10606 esac
10608 if test "$ld_shlibs" = no; then
10609 runpath_var=
10610 hardcode_libdir_flag_spec=
10611 export_dynamic_flag_spec=
10612 whole_archive_flag_spec=
10614 else
10615 # PORTME fill in a description of your system's linker (not GNU ld)
10616 case $host_os in
10617 aix3*)
10618 allow_undefined_flag=unsupported
10619 always_export_symbols=yes
10620 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'
10621 # Note: this linker hardcodes the directories in LIBPATH if there
10622 # are no directories specified by -L.
10623 hardcode_minus_L=yes
10624 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10625 # Neither direct hardcoding nor static linking is supported with a
10626 # broken collect2.
10627 hardcode_direct=unsupported
10631 aix[4-9]*)
10632 if test "$host_cpu" = ia64; then
10633 # On IA64, the linker does run time linking by default, so we don't
10634 # have to do anything special.
10635 aix_use_runtimelinking=no
10636 exp_sym_flag='-Bexport'
10637 no_entry_flag=""
10638 else
10639 # If we're using GNU nm, then we don't want the "-C" option.
10640 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10641 # Also, AIX nm treats weak defined symbols like other global
10642 # defined symbols, whereas GNU nm marks them as "W".
10643 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10644 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'
10645 else
10646 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'
10648 aix_use_runtimelinking=no
10650 # Test if we are trying to use run time linking or normal
10651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10652 # need to do runtime linking.
10653 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10654 for ld_flag in $LDFLAGS; do
10655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10656 aix_use_runtimelinking=yes
10657 break
10659 done
10661 esac
10663 exp_sym_flag='-bexport'
10664 no_entry_flag='-bnoentry'
10667 # When large executables or shared objects are built, AIX ld can
10668 # have problems creating the table of contents. If linking a library
10669 # or program results in "error TOC overflow" add -mminimal-toc to
10670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10673 archive_cmds=''
10674 hardcode_direct=yes
10675 hardcode_direct_absolute=yes
10676 hardcode_libdir_separator=':'
10677 link_all_deplibs=yes
10678 file_list_spec='${wl}-f,'
10680 if test "$GCC" = yes; then
10681 case $host_os in aix4.[012]|aix4.[012].*)
10682 # We only want to do this on AIX 4.2 and lower, the check
10683 # below for broken collect2 doesn't work under 4.3+
10684 collect2name=`${CC} -print-prog-name=collect2`
10685 if test -f "$collect2name" &&
10686 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10687 then
10688 # We have reworked collect2
10690 else
10691 # We have old collect2
10692 hardcode_direct=unsupported
10693 # It fails to find uninstalled libraries when the uninstalled
10694 # path is not listed in the libpath. Setting hardcode_minus_L
10695 # to unsupported forces relinking
10696 hardcode_minus_L=yes
10697 hardcode_libdir_flag_spec='-L$libdir'
10698 hardcode_libdir_separator=
10701 esac
10702 shared_flag='-shared'
10703 if test "$aix_use_runtimelinking" = yes; then
10704 shared_flag="$shared_flag "'${wl}-G'
10706 else
10707 # not using gcc
10708 if test "$host_cpu" = ia64; then
10709 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10710 # chokes on -Wl,-G. The following line is correct:
10711 shared_flag='-G'
10712 else
10713 if test "$aix_use_runtimelinking" = yes; then
10714 shared_flag='${wl}-G'
10715 else
10716 shared_flag='${wl}-bM:SRE'
10721 export_dynamic_flag_spec='${wl}-bexpall'
10722 # It seems that -bexpall does not export symbols beginning with
10723 # underscore (_), so it is better to generate a list of symbols to export.
10724 always_export_symbols=yes
10725 if test "$aix_use_runtimelinking" = yes; then
10726 # Warning - without using the other runtime loading flags (-brtl),
10727 # -berok will link without error, but may produce a broken library.
10728 allow_undefined_flag='-berok'
10729 # Determine the default libpath from the value encoded in an
10730 # empty executable.
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10735 main ()
10739 return 0;
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10744 lt_aix_libpath_sed='
10745 /Import File Strings/,/^$/ {
10746 /^0/ {
10747 s/^0 *\(.*\)$/\1/
10751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10752 # Check for a 64-bit object if we didn't find anything.
10753 if test -z "$aix_libpath"; then
10754 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10757 rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext conftest.$ac_ext
10759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10761 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10762 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"
10763 else
10764 if test "$host_cpu" = ia64; then
10765 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10766 allow_undefined_flag="-z nodefs"
10767 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"
10768 else
10769 # Determine the default libpath from the value encoded in an
10770 # empty executable.
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10775 main ()
10779 return 0;
10781 _ACEOF
10782 if ac_fn_c_try_link "$LINENO"; then :
10784 lt_aix_libpath_sed='
10785 /Import File Strings/,/^$/ {
10786 /^0/ {
10787 s/^0 *\(.*\)$/\1/
10791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 # Check for a 64-bit object if we didn't find anything.
10793 if test -z "$aix_libpath"; then
10794 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10801 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10802 # Warning - without using the other run time loading flags,
10803 # -berok will link without error, but may produce a broken library.
10804 no_undefined_flag=' ${wl}-bernotok'
10805 allow_undefined_flag=' ${wl}-berok'
10806 if test "$with_gnu_ld" = yes; then
10807 # We only use this code for GNU lds that support --whole-archive.
10808 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10809 else
10810 # Exported symbols can be pulled into shared objects from archives
10811 whole_archive_flag_spec='$convenience'
10813 archive_cmds_need_lc=yes
10814 # This is similar to how AIX traditionally builds its shared libraries.
10815 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'
10820 amigaos*)
10821 case $host_cpu in
10822 powerpc)
10823 # see comment about AmigaOS4 .so support
10824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10825 archive_expsym_cmds=''
10827 m68k)
10828 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)'
10829 hardcode_libdir_flag_spec='-L$libdir'
10830 hardcode_minus_L=yes
10832 esac
10835 bsdi[45]*)
10836 export_dynamic_flag_spec=-rdynamic
10839 cygwin* | mingw* | pw32* | cegcc*)
10840 # When not using gcc, we currently assume that we are using
10841 # Microsoft Visual C++.
10842 # hardcode_libdir_flag_spec is actually meaningless, as there is
10843 # no search path for DLLs.
10844 hardcode_libdir_flag_spec=' '
10845 allow_undefined_flag=unsupported
10846 # Tell ltmain to make .lib files, not .a files.
10847 libext=lib
10848 # Tell ltmain to make .dll files, not .so files.
10849 shrext_cmds=".dll"
10850 # FIXME: Setting linknames here is a bad hack.
10851 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10852 # The linker will automatically build a .lib file if we build a DLL.
10853 old_archive_from_new_cmds='true'
10854 # FIXME: Should let the user specify the lib program.
10855 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10856 fix_srcfile_path='`cygpath -w "$srcfile"`'
10857 enable_shared_with_static_runtimes=yes
10860 darwin* | rhapsody*)
10863 archive_cmds_need_lc=no
10864 hardcode_direct=no
10865 hardcode_automatic=yes
10866 hardcode_shlibpath_var=unsupported
10867 if test "$lt_cv_ld_force_load" = "yes"; then
10868 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\"`'
10869 else
10870 whole_archive_flag_spec=''
10872 link_all_deplibs=yes
10873 allow_undefined_flag="$_lt_dar_allow_undefined"
10874 case $cc_basename in
10875 ifort*) _lt_dar_can_shared=yes ;;
10876 *) _lt_dar_can_shared=$GCC ;;
10877 esac
10878 if test "$_lt_dar_can_shared" = "yes"; then
10879 output_verbose_link_cmd=func_echo_all
10880 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10881 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10882 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}"
10883 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}"
10885 else
10886 ld_shlibs=no
10891 dgux*)
10892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_libdir_flag_spec='-L$libdir'
10894 hardcode_shlibpath_var=no
10897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10898 # support. Future versions do this automatically, but an explicit c++rt0.o
10899 # does not break anything, and helps significantly (at the cost of a little
10900 # extra space).
10901 freebsd2.2*)
10902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10903 hardcode_libdir_flag_spec='-R$libdir'
10904 hardcode_direct=yes
10905 hardcode_shlibpath_var=no
10908 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10909 freebsd2.*)
10910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10911 hardcode_direct=yes
10912 hardcode_minus_L=yes
10913 hardcode_shlibpath_var=no
10916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10917 freebsd* | dragonfly*)
10918 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10919 hardcode_libdir_flag_spec='-R$libdir'
10920 hardcode_direct=yes
10921 hardcode_shlibpath_var=no
10924 hpux9*)
10925 if test "$GCC" = yes; then
10926 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'
10927 else
10928 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'
10930 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10931 hardcode_libdir_separator=:
10932 hardcode_direct=yes
10934 # hardcode_minus_L: Not really in the search PATH,
10935 # but as the default location of the library.
10936 hardcode_minus_L=yes
10937 export_dynamic_flag_spec='${wl}-E'
10940 hpux10*)
10941 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10942 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10943 else
10944 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10946 if test "$with_gnu_ld" = no; then
10947 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10948 hardcode_libdir_flag_spec_ld='+b $libdir'
10949 hardcode_libdir_separator=:
10950 hardcode_direct=yes
10951 hardcode_direct_absolute=yes
10952 export_dynamic_flag_spec='${wl}-E'
10953 # hardcode_minus_L: Not really in the search PATH,
10954 # but as the default location of the library.
10955 hardcode_minus_L=yes
10959 hpux11*)
10960 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10961 case $host_cpu in
10962 hppa*64*)
10963 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10965 ia64*)
10966 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10969 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10971 esac
10972 else
10973 case $host_cpu in
10974 hppa*64*)
10975 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10977 ia64*)
10978 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10982 # Older versions of the 11.00 compiler do not understand -b yet
10983 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10985 $as_echo_n "checking if $CC understands -b... " >&6; }
10986 if ${lt_cv_prog_compiler__b+:} false; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 lt_cv_prog_compiler__b=no
10990 save_LDFLAGS="$LDFLAGS"
10991 LDFLAGS="$LDFLAGS -b"
10992 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10993 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10994 # The linker can only warn and ignore the option if not recognized
10995 # So say no if there are warnings
10996 if test -s conftest.err; then
10997 # Append any errors to the config.log.
10998 cat conftest.err 1>&5
10999 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11001 if diff conftest.exp conftest.er2 >/dev/null; then
11002 lt_cv_prog_compiler__b=yes
11004 else
11005 lt_cv_prog_compiler__b=yes
11008 $RM -r conftest*
11009 LDFLAGS="$save_LDFLAGS"
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11013 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11015 if test x"$lt_cv_prog_compiler__b" = xyes; then
11016 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11017 else
11018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11022 esac
11024 if test "$with_gnu_ld" = no; then
11025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11026 hardcode_libdir_separator=:
11028 case $host_cpu in
11029 hppa*64*|ia64*)
11030 hardcode_direct=no
11031 hardcode_shlibpath_var=no
11034 hardcode_direct=yes
11035 hardcode_direct_absolute=yes
11036 export_dynamic_flag_spec='${wl}-E'
11038 # hardcode_minus_L: Not really in the search PATH,
11039 # but as the default location of the library.
11040 hardcode_minus_L=yes
11042 esac
11046 irix5* | irix6* | nonstopux*)
11047 if test "$GCC" = yes; then
11048 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'
11049 # Try to use the -exported_symbol ld option, if it does not
11050 # work, assume that -exports_file does not work either and
11051 # implicitly export all symbols.
11052 save_LDFLAGS="$LDFLAGS"
11053 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11056 int foo(void) {}
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 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'
11062 rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LDFLAGS="$save_LDFLAGS"
11065 else
11066 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'
11067 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'
11069 archive_cmds_need_lc='no'
11070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11071 hardcode_libdir_separator=:
11072 inherit_rpath=yes
11073 link_all_deplibs=yes
11076 netbsd*)
11077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11079 else
11080 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11082 hardcode_libdir_flag_spec='-R$libdir'
11083 hardcode_direct=yes
11084 hardcode_shlibpath_var=no
11087 newsos6)
11088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11089 hardcode_direct=yes
11090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11091 hardcode_libdir_separator=:
11092 hardcode_shlibpath_var=no
11095 *nto* | *qnx*)
11098 openbsd*)
11099 if test -f /usr/libexec/ld.so; then
11100 hardcode_direct=yes
11101 hardcode_shlibpath_var=no
11102 hardcode_direct_absolute=yes
11103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11105 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11107 export_dynamic_flag_spec='${wl}-E'
11108 else
11109 case $host_os in
11110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11112 hardcode_libdir_flag_spec='-R$libdir'
11115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11118 esac
11120 else
11121 ld_shlibs=no
11125 os2*)
11126 hardcode_libdir_flag_spec='-L$libdir'
11127 hardcode_minus_L=yes
11128 allow_undefined_flag=unsupported
11129 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'
11130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11133 osf3*)
11134 if test "$GCC" = yes; then
11135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11136 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'
11137 else
11138 allow_undefined_flag=' -expect_unresolved \*'
11139 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'
11141 archive_cmds_need_lc='no'
11142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11143 hardcode_libdir_separator=:
11146 osf4* | osf5*) # as osf3* with the addition of -msym flag
11147 if test "$GCC" = yes; then
11148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11149 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'
11150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11151 else
11152 allow_undefined_flag=' -expect_unresolved \*'
11153 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'
11154 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~
11155 $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'
11157 # Both c and cxx compiler support -rpath directly
11158 hardcode_libdir_flag_spec='-rpath $libdir'
11160 archive_cmds_need_lc='no'
11161 hardcode_libdir_separator=:
11164 solaris*)
11165 no_undefined_flag=' -z defs'
11166 if test "$GCC" = yes; then
11167 wlarc='${wl}'
11168 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11170 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11171 else
11172 case `$CC -V 2>&1` in
11173 *"Compilers 5.0"*)
11174 wlarc=''
11175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11180 wlarc='${wl}'
11181 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11183 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11185 esac
11187 hardcode_libdir_flag_spec='-R$libdir'
11188 hardcode_shlibpath_var=no
11189 case $host_os in
11190 solaris2.[0-5] | solaris2.[0-5].*) ;;
11192 # The compiler driver will combine and reorder linker options,
11193 # but understands `-z linker_flag'. GCC discards it without `$wl',
11194 # but is careful enough not to reorder.
11195 # Supported since Solaris 2.6 (maybe 2.5.1?)
11196 if test "$GCC" = yes; then
11197 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11198 else
11199 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11202 esac
11203 link_all_deplibs=yes
11206 sunos4*)
11207 if test "x$host_vendor" = xsequent; then
11208 # Use $CC to link under sequent, because it throws in some extra .o
11209 # files that make .init and .fini sections work.
11210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11211 else
11212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11214 hardcode_libdir_flag_spec='-L$libdir'
11215 hardcode_direct=yes
11216 hardcode_minus_L=yes
11217 hardcode_shlibpath_var=no
11220 sysv4)
11221 case $host_vendor in
11222 sni)
11223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11224 hardcode_direct=yes # is this really true???
11226 siemens)
11227 ## LD is ld it makes a PLAMLIB
11228 ## CC just makes a GrossModule.
11229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11230 reload_cmds='$CC -r -o $output$reload_objs'
11231 hardcode_direct=no
11233 motorola)
11234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11237 esac
11238 runpath_var='LD_RUN_PATH'
11239 hardcode_shlibpath_var=no
11242 sysv4.3*)
11243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11244 hardcode_shlibpath_var=no
11245 export_dynamic_flag_spec='-Bexport'
11248 sysv4*MP*)
11249 if test -d /usr/nec; then
11250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11251 hardcode_shlibpath_var=no
11252 runpath_var=LD_RUN_PATH
11253 hardcode_runpath_var=yes
11254 ld_shlibs=yes
11258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11259 no_undefined_flag='${wl}-z,text'
11260 archive_cmds_need_lc=no
11261 hardcode_shlibpath_var=no
11262 runpath_var='LD_RUN_PATH'
11264 if test "$GCC" = yes; then
11265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11267 else
11268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11273 sysv5* | sco3.2v5* | sco5v6*)
11274 # Note: We can NOT use -z defs as we might desire, because we do not
11275 # link with -lc, and that would cause any symbols used from libc to
11276 # always be unresolved, which means just about no library would
11277 # ever link correctly. If we're not using GNU ld we use -z text
11278 # though, which does catch some bad symbols but isn't as heavy-handed
11279 # as -z defs.
11280 no_undefined_flag='${wl}-z,text'
11281 allow_undefined_flag='${wl}-z,nodefs'
11282 archive_cmds_need_lc=no
11283 hardcode_shlibpath_var=no
11284 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11285 hardcode_libdir_separator=':'
11286 link_all_deplibs=yes
11287 export_dynamic_flag_spec='${wl}-Bexport'
11288 runpath_var='LD_RUN_PATH'
11290 if test "$GCC" = yes; then
11291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11293 else
11294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11299 uts4*)
11300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11301 hardcode_libdir_flag_spec='-L$libdir'
11302 hardcode_shlibpath_var=no
11306 ld_shlibs=no
11308 esac
11310 if test x$host_vendor = xsni; then
11311 case $host in
11312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11313 export_dynamic_flag_spec='${wl}-Blargedynsym'
11315 esac
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11320 $as_echo "$ld_shlibs" >&6; }
11321 test "$ld_shlibs" = no && can_build_shared=no
11323 with_gnu_ld=$with_gnu_ld
11340 # Do we need to explicitly link libc?
11342 case "x$archive_cmds_need_lc" in
11343 x|xyes)
11344 # Assume -lc should be added
11345 archive_cmds_need_lc=yes
11347 if test "$enable_shared" = yes && test "$GCC" = yes; then
11348 case $archive_cmds in
11349 *'~'*)
11350 # FIXME: we may have to deal with multi-command sequences.
11352 '$CC '*)
11353 # Test whether the compiler implicitly links with -lc since on some
11354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11355 # to ld, don't add -lc before -lgcc.
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11357 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11358 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 $RM conftest*
11362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11365 (eval $ac_compile) 2>&5
11366 ac_status=$?
11367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11368 test $ac_status = 0; } 2>conftest.err; then
11369 soname=conftest
11370 lib=conftest
11371 libobjs=conftest.$ac_objext
11372 deplibs=
11373 wl=$lt_prog_compiler_wl
11374 pic_flag=$lt_prog_compiler_pic
11375 compiler_flags=-v
11376 linker_flags=-v
11377 verstring=
11378 output_objdir=.
11379 libname=conftest
11380 lt_save_allow_undefined_flag=$allow_undefined_flag
11381 allow_undefined_flag=
11382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11384 ac_status=$?
11385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11386 test $ac_status = 0; }
11387 then
11388 lt_cv_archive_cmds_need_lc=no
11389 else
11390 lt_cv_archive_cmds_need_lc=yes
11392 allow_undefined_flag=$lt_save_allow_undefined_flag
11393 else
11394 cat conftest.err 1>&5
11396 $RM conftest*
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11400 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11401 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11403 esac
11406 esac
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11565 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11567 if test "$GCC" = yes; then
11568 case $host_os in
11569 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11570 *) lt_awk_arg="/^libraries:/" ;;
11571 esac
11572 case $host_os in
11573 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11574 *) lt_sed_strip_eq="s,=/,/,g" ;;
11575 esac
11576 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11577 case $lt_search_path_spec in
11578 *\;*)
11579 # if the path contains ";" then we assume it to be the separator
11580 # otherwise default to the standard path separator (i.e. ":") - it is
11581 # assumed that no part of a normal pathname contains ";" but that should
11582 # okay in the real world where ";" in dirpaths is itself problematic.
11583 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11588 esac
11589 # Ok, now we have the path, separated by spaces, we can step through it
11590 # and add multilib dir if necessary.
11591 lt_tmp_lt_search_path_spec=
11592 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11593 for lt_sys_path in $lt_search_path_spec; do
11594 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11596 else
11597 test -d "$lt_sys_path" && \
11598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11600 done
11601 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11602 BEGIN {RS=" "; FS="/|\n";} {
11603 lt_foo="";
11604 lt_count=0;
11605 for (lt_i = NF; lt_i > 0; lt_i--) {
11606 if ($lt_i != "" && $lt_i != ".") {
11607 if ($lt_i == "..") {
11608 lt_count++;
11609 } else {
11610 if (lt_count == 0) {
11611 lt_foo="/" $lt_i lt_foo;
11612 } else {
11613 lt_count--;
11618 if (lt_foo != "") { lt_freq[lt_foo]++; }
11619 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11621 # AWK program above erroneously prepends '/' to C:/dos/paths
11622 # for these hosts.
11623 case $host_os in
11624 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11625 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11626 esac
11627 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11628 else
11629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11631 library_names_spec=
11632 libname_spec='lib$name'
11633 soname_spec=
11634 shrext_cmds=".so"
11635 postinstall_cmds=
11636 postuninstall_cmds=
11637 finish_cmds=
11638 finish_eval=
11639 shlibpath_var=
11640 shlibpath_overrides_runpath=unknown
11641 version_type=none
11642 dynamic_linker="$host_os ld.so"
11643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11644 need_lib_prefix=unknown
11645 hardcode_into_libs=no
11647 # when you set need_version to no, make sure it does not cause -set_version
11648 # flags to be left without arguments
11649 need_version=unknown
11651 case $host_os in
11652 aix3*)
11653 version_type=linux
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11655 shlibpath_var=LIBPATH
11657 # AIX 3 has no versioning support, so we append a major version to the name.
11658 soname_spec='${libname}${release}${shared_ext}$major'
11661 aix[4-9]*)
11662 version_type=linux
11663 need_lib_prefix=no
11664 need_version=no
11665 hardcode_into_libs=yes
11666 if test "$host_cpu" = ia64; then
11667 # AIX 5 supports IA64
11668 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 else
11671 # With GCC up to 2.95.x, collect2 would create an import file
11672 # for dependence libraries. The import file would start with
11673 # the line `#! .'. This would cause the generated library to
11674 # depend on `.', always an invalid library. This was fixed in
11675 # development snapshots of GCC prior to 3.0.
11676 case $host_os in
11677 aix4 | aix4.[01] | aix4.[01].*)
11678 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11679 echo ' yes '
11680 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11682 else
11683 can_build_shared=no
11686 esac
11687 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11688 # soname into executable. Probably we can add versioning support to
11689 # collect2, so additional links can be useful in future.
11690 if test "$aix_use_runtimelinking" = yes; then
11691 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11692 # instead of lib<name>.a to let people know that these are not
11693 # typical AIX shared libraries.
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695 else
11696 # We preserve .a as extension for shared libraries through AIX4.2
11697 # and later when we are not doing run time linking.
11698 library_names_spec='${libname}${release}.a $libname.a'
11699 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LIBPATH
11705 amigaos*)
11706 case $host_cpu in
11707 powerpc)
11708 # Since July 2007 AmigaOS4 officially supports .so libraries.
11709 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712 m68k)
11713 library_names_spec='$libname.ixlibrary $libname.a'
11714 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11715 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'
11717 esac
11720 beos*)
11721 library_names_spec='${libname}${shared_ext}'
11722 dynamic_linker="$host_os ld.so"
11723 shlibpath_var=LIBRARY_PATH
11726 bsdi[45]*)
11727 version_type=linux
11728 need_version=no
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11735 # the default ld.so.conf also contains /usr/contrib/lib and
11736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11737 # libtool to hard-code these into programs
11740 cygwin* | mingw* | pw32* | cegcc*)
11741 version_type=windows
11742 shrext_cmds=".dll"
11743 need_version=no
11744 need_lib_prefix=no
11746 case $GCC,$host_os in
11747 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11748 library_names_spec='$libname.dll.a'
11749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11750 postinstall_cmds='base_file=`basename \${file}`~
11751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11752 dldir=$destdir/`dirname \$dlpath`~
11753 test -d \$dldir || mkdir -p \$dldir~
11754 $install_prog $dir/$dlname \$dldir/$dlname~
11755 chmod a+x \$dldir/$dlname~
11756 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11757 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11760 dlpath=$dir/\$dldll~
11761 $RM \$dlpath'
11762 shlibpath_overrides_runpath=yes
11764 case $host_os in
11765 cygwin*)
11766 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11767 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11769 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11771 mingw* | cegcc*)
11772 # MinGW DLLs use traditional 'lib' prefix
11773 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11775 pw32*)
11776 # pw32 DLLs use 'pw' prefix rather than 'lib'
11777 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11779 esac
11783 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11785 esac
11786 dynamic_linker='Win32 ld.exe'
11787 # FIXME: first we should search . and the directory the executable is in
11788 shlibpath_var=PATH
11791 darwin* | rhapsody*)
11792 dynamic_linker="$host_os dyld"
11793 version_type=darwin
11794 need_lib_prefix=no
11795 need_version=no
11796 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11797 soname_spec='${libname}${release}${major}$shared_ext'
11798 shlibpath_overrides_runpath=yes
11799 shlibpath_var=DYLD_LIBRARY_PATH
11800 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11802 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11803 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11806 dgux*)
11807 version_type=linux
11808 need_lib_prefix=no
11809 need_version=no
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11811 soname_spec='${libname}${release}${shared_ext}$major'
11812 shlibpath_var=LD_LIBRARY_PATH
11815 freebsd* | dragonfly*)
11816 # DragonFly does not have aout. When/if they implement a new
11817 # versioning mechanism, adjust this.
11818 if test -x /usr/bin/objformat; then
11819 objformat=`/usr/bin/objformat`
11820 else
11821 case $host_os in
11822 freebsd[23].*) objformat=aout ;;
11823 *) objformat=elf ;;
11824 esac
11826 version_type=freebsd-$objformat
11827 case $version_type in
11828 freebsd-elf*)
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11830 need_version=no
11831 need_lib_prefix=no
11833 freebsd-*)
11834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11835 need_version=yes
11837 esac
11838 shlibpath_var=LD_LIBRARY_PATH
11839 case $host_os in
11840 freebsd2.*)
11841 shlibpath_overrides_runpath=yes
11843 freebsd3.[01]* | freebsdelf3.[01]*)
11844 shlibpath_overrides_runpath=yes
11845 hardcode_into_libs=yes
11847 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11848 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11849 shlibpath_overrides_runpath=no
11850 hardcode_into_libs=yes
11852 *) # from 4.6 on, and DragonFly
11853 shlibpath_overrides_runpath=yes
11854 hardcode_into_libs=yes
11856 esac
11859 haiku*)
11860 version_type=linux
11861 need_lib_prefix=no
11862 need_version=no
11863 dynamic_linker="$host_os runtime_loader"
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11865 soname_spec='${libname}${release}${shared_ext}$major'
11866 shlibpath_var=LIBRARY_PATH
11867 shlibpath_overrides_runpath=yes
11868 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11869 hardcode_into_libs=yes
11872 hpux9* | hpux10* | hpux11*)
11873 # Give a soname corresponding to the major version so that dld.sl refuses to
11874 # link against other versions.
11875 version_type=sunos
11876 need_lib_prefix=no
11877 need_version=no
11878 case $host_cpu in
11879 ia64*)
11880 shrext_cmds='.so'
11881 hardcode_into_libs=yes
11882 dynamic_linker="$host_os dld.so"
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 if test "X$HPUX_IA64_MODE" = X32; then
11888 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11889 else
11890 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11894 hppa*64*)
11895 shrext_cmds='.sl'
11896 hardcode_into_libs=yes
11897 dynamic_linker="$host_os dld.sl"
11898 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901 soname_spec='${libname}${release}${shared_ext}$major'
11902 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11906 shrext_cmds='.sl'
11907 dynamic_linker="$host_os dld.sl"
11908 shlibpath_var=SHLIB_PATH
11909 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
11913 esac
11914 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11915 postinstall_cmds='chmod 555 $lib'
11916 # or fails outright, so override atomically:
11917 install_override_mode=555
11920 interix[3-9]*)
11921 version_type=linux
11922 need_lib_prefix=no
11923 need_version=no
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11925 soname_spec='${libname}${release}${shared_ext}$major'
11926 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=no
11929 hardcode_into_libs=yes
11932 irix5* | irix6* | nonstopux*)
11933 case $host_os in
11934 nonstopux*) version_type=nonstopux ;;
11936 if test "$lt_cv_prog_gnu_ld" = yes; then
11937 version_type=linux
11938 else
11939 version_type=irix
11940 fi ;;
11941 esac
11942 need_lib_prefix=no
11943 need_version=no
11944 soname_spec='${libname}${release}${shared_ext}$major'
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11946 case $host_os in
11947 irix5* | nonstopux*)
11948 libsuff= shlibsuff=
11951 case $LD in # libtool.m4 will add one of these switches to LD
11952 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11953 libsuff= shlibsuff= libmagic=32-bit;;
11954 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11955 libsuff=32 shlibsuff=N32 libmagic=N32;;
11956 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11957 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11958 *) libsuff= shlibsuff= libmagic=never-match;;
11959 esac
11961 esac
11962 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11963 shlibpath_overrides_runpath=no
11964 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11965 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11966 hardcode_into_libs=yes
11969 # No shared lib support for Linux oldld, aout, or coff.
11970 linux*oldld* | linux*aout* | linux*coff*)
11971 dynamic_linker=no
11974 # This must be Linux ELF.
11976 # uclinux* changes (here and below) have been submitted to the libtool
11977 # project, but have not yet been accepted: they are GCC-local changes
11978 # for the time being. (See
11979 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11980 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11981 version_type=linux
11982 need_lib_prefix=no
11983 need_version=no
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 shlibpath_overrides_runpath=no
11990 # Some binutils ld are patched to set DT_RUNPATH
11991 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 lt_cv_shlibpath_overrides_runpath=no
11995 save_LDFLAGS=$LDFLAGS
11996 save_libdir=$libdir
11997 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11998 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12003 main ()
12007 return 0;
12009 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12011 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12012 lt_cv_shlibpath_overrides_runpath=yes
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LDFLAGS=$save_LDFLAGS
12018 libdir=$save_libdir
12022 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12024 # This implies no fast_install, which is unacceptable.
12025 # Some rework will be needed to allow for fast_install
12026 # before this can be enabled.
12027 hardcode_into_libs=yes
12029 # Append ld.so.conf contents to the search path
12030 if test -f /etc/ld.so.conf; then
12031 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' ' '`
12032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12035 # We used to test for /lib/ld.so.1 and disable shared libraries on
12036 # powerpc, because MkLinux only supported shared libraries with the
12037 # GNU dynamic linker. Since this was broken with cross compilers,
12038 # most powerpc-linux boxes support dynamic linking these days and
12039 # people can always --disable-shared, the test was removed, and we
12040 # assume the GNU/Linux dynamic linker is in use.
12041 dynamic_linker='GNU/Linux ld.so'
12044 netbsd*)
12045 version_type=sunos
12046 need_lib_prefix=no
12047 need_version=no
12048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12051 dynamic_linker='NetBSD (a.out) ld.so'
12052 else
12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12054 soname_spec='${libname}${release}${shared_ext}$major'
12055 dynamic_linker='NetBSD ld.elf_so'
12057 shlibpath_var=LD_LIBRARY_PATH
12058 shlibpath_overrides_runpath=yes
12059 hardcode_into_libs=yes
12062 newsos6)
12063 version_type=linux
12064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065 shlibpath_var=LD_LIBRARY_PATH
12066 shlibpath_overrides_runpath=yes
12069 *nto* | *qnx*)
12070 version_type=qnx
12071 need_lib_prefix=no
12072 need_version=no
12073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074 soname_spec='${libname}${release}${shared_ext}$major'
12075 shlibpath_var=LD_LIBRARY_PATH
12076 shlibpath_overrides_runpath=no
12077 hardcode_into_libs=yes
12078 dynamic_linker='ldqnx.so'
12081 openbsd*)
12082 version_type=sunos
12083 sys_lib_dlsearch_path_spec="/usr/lib"
12084 need_lib_prefix=no
12085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12086 case $host_os in
12087 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12088 *) need_version=no ;;
12089 esac
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12092 shlibpath_var=LD_LIBRARY_PATH
12093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12094 case $host_os in
12095 openbsd2.[89] | openbsd2.[89].*)
12096 shlibpath_overrides_runpath=no
12099 shlibpath_overrides_runpath=yes
12101 esac
12102 else
12103 shlibpath_overrides_runpath=yes
12107 os2*)
12108 libname_spec='$name'
12109 shrext_cmds=".dll"
12110 need_lib_prefix=no
12111 library_names_spec='$libname${shared_ext} $libname.a'
12112 dynamic_linker='OS/2 ld.exe'
12113 shlibpath_var=LIBPATH
12116 osf3* | osf4* | osf5*)
12117 version_type=osf
12118 need_lib_prefix=no
12119 need_version=no
12120 soname_spec='${libname}${release}${shared_ext}$major'
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12127 rdos*)
12128 dynamic_linker=no
12131 solaris*)
12132 version_type=linux
12133 need_lib_prefix=no
12134 need_version=no
12135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12136 soname_spec='${libname}${release}${shared_ext}$major'
12137 shlibpath_var=LD_LIBRARY_PATH
12138 shlibpath_overrides_runpath=yes
12139 hardcode_into_libs=yes
12140 # ldd complains unless libraries are executable
12141 postinstall_cmds='chmod +x $lib'
12144 sunos4*)
12145 version_type=sunos
12146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12148 shlibpath_var=LD_LIBRARY_PATH
12149 shlibpath_overrides_runpath=yes
12150 if test "$with_gnu_ld" = yes; then
12151 need_lib_prefix=no
12153 need_version=yes
12156 sysv4 | sysv4.3*)
12157 version_type=linux
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 case $host_vendor in
12162 sni)
12163 shlibpath_overrides_runpath=no
12164 need_lib_prefix=no
12165 runpath_var=LD_RUN_PATH
12167 siemens)
12168 need_lib_prefix=no
12170 motorola)
12171 need_lib_prefix=no
12172 need_version=no
12173 shlibpath_overrides_runpath=no
12174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12176 esac
12179 sysv4*MP*)
12180 if test -d /usr/nec ;then
12181 version_type=linux
12182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12183 soname_spec='$libname${shared_ext}.$major'
12184 shlibpath_var=LD_LIBRARY_PATH
12188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12189 version_type=freebsd-elf
12190 need_lib_prefix=no
12191 need_version=no
12192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12193 soname_spec='${libname}${release}${shared_ext}$major'
12194 shlibpath_var=LD_LIBRARY_PATH
12195 shlibpath_overrides_runpath=yes
12196 hardcode_into_libs=yes
12197 if test "$with_gnu_ld" = yes; then
12198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12199 else
12200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12201 case $host_os in
12202 sco3.2v5*)
12203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12205 esac
12207 sys_lib_dlsearch_path_spec='/usr/lib'
12210 tpf*)
12211 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12212 version_type=linux
12213 need_lib_prefix=no
12214 need_version=no
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12216 shlibpath_var=LD_LIBRARY_PATH
12217 shlibpath_overrides_runpath=no
12218 hardcode_into_libs=yes
12221 uts4*)
12222 version_type=linux
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 shlibpath_var=LD_LIBRARY_PATH
12228 # Shared libraries for VwWorks, >= 7 only at this stage
12229 # and (fpic) still incompatible with "large" code models
12230 # in a few configurations. Only for RTP mode in any case,
12231 # and upon explicit request at configure time.
12232 vxworks7*)
12233 dynamic_linker=no
12234 case ${with_multisubdir}-${enable_shared} in
12235 *large*)
12237 *mrtp*-yes)
12238 version_type=linux
12239 need_lib_prefix=no
12240 need_version=no
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 dynamic_linker="$host_os module_loader"
12245 esac
12248 dynamic_linker=no
12250 esac
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12252 $as_echo "$dynamic_linker" >&6; }
12253 test "$dynamic_linker" = no && can_build_shared=no
12255 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12256 if test "$GCC" = yes; then
12257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12260 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12261 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12263 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12264 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12359 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12360 hardcode_action=
12361 if test -n "$hardcode_libdir_flag_spec" ||
12362 test -n "$runpath_var" ||
12363 test "X$hardcode_automatic" = "Xyes" ; then
12365 # We can hardcode non-existent directories.
12366 if test "$hardcode_direct" != no &&
12367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12368 # have to relink, otherwise we might link with an installed library
12369 # when we should be linking with a yet-to-be-installed one
12370 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12371 test "$hardcode_minus_L" != no; then
12372 # Linking always hardcodes the temporary library directory.
12373 hardcode_action=relink
12374 else
12375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12376 hardcode_action=immediate
12378 else
12379 # We cannot hardcode anything, or else we can only hardcode existing
12380 # directories.
12381 hardcode_action=unsupported
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12384 $as_echo "$hardcode_action" >&6; }
12386 if test "$hardcode_action" = relink ||
12387 test "$inherit_rpath" = yes; then
12388 # Fast installation is not supported
12389 enable_fast_install=no
12390 elif test "$shlibpath_overrides_runpath" = yes ||
12391 test "$enable_shared" = no; then
12392 # Fast installation is not necessary
12393 enable_fast_install=needless
12401 if test "x$enable_dlopen" != xyes; then
12402 enable_dlopen=unknown
12403 enable_dlopen_self=unknown
12404 enable_dlopen_self_static=unknown
12405 else
12406 lt_cv_dlopen=no
12407 lt_cv_dlopen_libs=
12409 case $host_os in
12410 beos*)
12411 lt_cv_dlopen="load_add_on"
12412 lt_cv_dlopen_libs=
12413 lt_cv_dlopen_self=yes
12416 mingw* | pw32* | cegcc*)
12417 lt_cv_dlopen="LoadLibrary"
12418 lt_cv_dlopen_libs=
12421 cygwin*)
12422 lt_cv_dlopen="dlopen"
12423 lt_cv_dlopen_libs=
12426 darwin*)
12427 # if libdl is installed we need to link against it
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12429 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12430 if ${ac_cv_lib_dl_dlopen+:} false; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 ac_check_lib_save_LIBS=$LIBS
12434 LIBS="-ldl $LIBS"
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12438 /* Override any GCC internal prototype to avoid an error.
12439 Use char because int might match the return type of a GCC
12440 builtin and then its argument prototype would still apply. */
12441 #ifdef __cplusplus
12442 extern "C"
12443 #endif
12444 char dlopen ();
12446 main ()
12448 return dlopen ();
12450 return 0;
12452 _ACEOF
12453 if ac_fn_c_try_link "$LINENO"; then :
12454 ac_cv_lib_dl_dlopen=yes
12455 else
12456 ac_cv_lib_dl_dlopen=no
12458 rm -f core conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext conftest.$ac_ext
12460 LIBS=$ac_check_lib_save_LIBS
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12463 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12464 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12466 else
12468 lt_cv_dlopen="dyld"
12469 lt_cv_dlopen_libs=
12470 lt_cv_dlopen_self=yes
12477 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12478 if test "x$ac_cv_func_shl_load" = xyes; then :
12479 lt_cv_dlopen="shl_load"
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12482 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12483 if ${ac_cv_lib_dld_shl_load+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 ac_check_lib_save_LIBS=$LIBS
12487 LIBS="-ldld $LIBS"
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12491 /* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12494 #ifdef __cplusplus
12495 extern "C"
12496 #endif
12497 char shl_load ();
12499 main ()
12501 return shl_load ();
12503 return 0;
12505 _ACEOF
12506 if ac_fn_c_try_link "$LINENO"; then :
12507 ac_cv_lib_dld_shl_load=yes
12508 else
12509 ac_cv_lib_dld_shl_load=no
12511 rm -f core conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12516 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12517 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12518 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12519 else
12520 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12521 if test "x$ac_cv_func_dlopen" = xyes; then :
12522 lt_cv_dlopen="dlopen"
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12525 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12526 if ${ac_cv_lib_dl_dlopen+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 ac_check_lib_save_LIBS=$LIBS
12530 LIBS="-ldl $LIBS"
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char dlopen ();
12542 main ()
12544 return dlopen ();
12546 return 0;
12548 _ACEOF
12549 if ac_fn_c_try_link "$LINENO"; then :
12550 ac_cv_lib_dl_dlopen=yes
12551 else
12552 ac_cv_lib_dl_dlopen=no
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12559 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12560 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12564 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12565 if ${ac_cv_lib_svld_dlopen+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 ac_check_lib_save_LIBS=$LIBS
12569 LIBS="-lsvld $LIBS"
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12573 /* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 char dlopen ();
12581 main ()
12583 return dlopen ();
12585 return 0;
12587 _ACEOF
12588 if ac_fn_c_try_link "$LINENO"; then :
12589 ac_cv_lib_svld_dlopen=yes
12590 else
12591 ac_cv_lib_svld_dlopen=no
12593 rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 LIBS=$ac_check_lib_save_LIBS
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12598 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12599 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12601 else
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12603 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12604 if ${ac_cv_lib_dld_dld_link+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 ac_check_lib_save_LIBS=$LIBS
12608 LIBS="-ldld $LIBS"
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char dld_link ();
12620 main ()
12622 return dld_link ();
12624 return 0;
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"; then :
12628 ac_cv_lib_dld_dld_link=yes
12629 else
12630 ac_cv_lib_dld_dld_link=no
12632 rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12637 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12638 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12658 esac
12660 if test "x$lt_cv_dlopen" != xno; then
12661 enable_dlopen=yes
12662 else
12663 enable_dlopen=no
12666 case $lt_cv_dlopen in
12667 dlopen)
12668 save_CPPFLAGS="$CPPFLAGS"
12669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12671 save_LDFLAGS="$LDFLAGS"
12672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12674 save_LIBS="$LIBS"
12675 LIBS="$lt_cv_dlopen_libs $LIBS"
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12678 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12679 if ${lt_cv_dlopen_self+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test "$cross_compiling" = yes; then :
12683 lt_cv_dlopen_self=cross
12684 else
12685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12686 lt_status=$lt_dlunknown
12687 cat > conftest.$ac_ext <<_LT_EOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12691 #if HAVE_DLFCN_H
12692 #include <dlfcn.h>
12693 #endif
12695 #include <stdio.h>
12697 #ifdef RTLD_GLOBAL
12698 # define LT_DLGLOBAL RTLD_GLOBAL
12699 #else
12700 # ifdef DL_GLOBAL
12701 # define LT_DLGLOBAL DL_GLOBAL
12702 # else
12703 # define LT_DLGLOBAL 0
12704 # endif
12705 #endif
12707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12708 find out it does not work in some platform. */
12709 #ifndef LT_DLLAZY_OR_NOW
12710 # ifdef RTLD_LAZY
12711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12712 # else
12713 # ifdef DL_LAZY
12714 # define LT_DLLAZY_OR_NOW DL_LAZY
12715 # else
12716 # ifdef RTLD_NOW
12717 # define LT_DLLAZY_OR_NOW RTLD_NOW
12718 # else
12719 # ifdef DL_NOW
12720 # define LT_DLLAZY_OR_NOW DL_NOW
12721 # else
12722 # define LT_DLLAZY_OR_NOW 0
12723 # endif
12724 # endif
12725 # endif
12726 # endif
12727 #endif
12729 /* When -fvisbility=hidden is used, assume the code has been annotated
12730 correspondingly for the symbols needed. */
12731 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12732 void fnord () __attribute__((visibility("default")));
12733 #endif
12735 void fnord () { int i=42; }
12736 int main ()
12738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12739 int status = $lt_dlunknown;
12741 if (self)
12743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12744 else
12746 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12747 else puts (dlerror ());
12749 /* dlclose (self); */
12751 else
12752 puts (dlerror ());
12754 return status;
12756 _LT_EOF
12757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12758 (eval $ac_link) 2>&5
12759 ac_status=$?
12760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12761 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12762 (./conftest; exit; ) >&5 2>/dev/null
12763 lt_status=$?
12764 case x$lt_status in
12765 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12766 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12767 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12768 esac
12769 else :
12770 # compilation failed
12771 lt_cv_dlopen_self=no
12774 rm -fr conftest*
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12779 $as_echo "$lt_cv_dlopen_self" >&6; }
12781 if test "x$lt_cv_dlopen_self" = xyes; then
12782 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12784 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12785 if ${lt_cv_dlopen_self_static+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 if test "$cross_compiling" = yes; then :
12789 lt_cv_dlopen_self_static=cross
12790 else
12791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12792 lt_status=$lt_dlunknown
12793 cat > conftest.$ac_ext <<_LT_EOF
12794 #line 12794 "configure"
12795 #include "confdefs.h"
12797 #if HAVE_DLFCN_H
12798 #include <dlfcn.h>
12799 #endif
12801 #include <stdio.h>
12803 #ifdef RTLD_GLOBAL
12804 # define LT_DLGLOBAL RTLD_GLOBAL
12805 #else
12806 # ifdef DL_GLOBAL
12807 # define LT_DLGLOBAL DL_GLOBAL
12808 # else
12809 # define LT_DLGLOBAL 0
12810 # endif
12811 #endif
12813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12814 find out it does not work in some platform. */
12815 #ifndef LT_DLLAZY_OR_NOW
12816 # ifdef RTLD_LAZY
12817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12818 # else
12819 # ifdef DL_LAZY
12820 # define LT_DLLAZY_OR_NOW DL_LAZY
12821 # else
12822 # ifdef RTLD_NOW
12823 # define LT_DLLAZY_OR_NOW RTLD_NOW
12824 # else
12825 # ifdef DL_NOW
12826 # define LT_DLLAZY_OR_NOW DL_NOW
12827 # else
12828 # define LT_DLLAZY_OR_NOW 0
12829 # endif
12830 # endif
12831 # endif
12832 # endif
12833 #endif
12835 /* When -fvisbility=hidden is used, assume the code has been annotated
12836 correspondingly for the symbols needed. */
12837 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12838 void fnord () __attribute__((visibility("default")));
12839 #endif
12841 void fnord () { int i=42; }
12842 int main ()
12844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12845 int status = $lt_dlunknown;
12847 if (self)
12849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12850 else
12852 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12853 else puts (dlerror ());
12855 /* dlclose (self); */
12857 else
12858 puts (dlerror ());
12860 return status;
12862 _LT_EOF
12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12864 (eval $ac_link) 2>&5
12865 ac_status=$?
12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12868 (./conftest; exit; ) >&5 2>/dev/null
12869 lt_status=$?
12870 case x$lt_status in
12871 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12872 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12873 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12874 esac
12875 else :
12876 # compilation failed
12877 lt_cv_dlopen_self_static=no
12880 rm -fr conftest*
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12885 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12888 CPPFLAGS="$save_CPPFLAGS"
12889 LDFLAGS="$save_LDFLAGS"
12890 LIBS="$save_LIBS"
12892 esac
12894 case $lt_cv_dlopen_self in
12895 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12896 *) enable_dlopen_self=unknown ;;
12897 esac
12899 case $lt_cv_dlopen_self_static in
12900 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12901 *) enable_dlopen_self_static=unknown ;;
12902 esac
12921 striplib=
12922 old_striplib=
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12924 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12925 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12926 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12927 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929 $as_echo "yes" >&6; }
12930 else
12931 # FIXME - insert some real tests, host_os isn't really good enough
12932 case $host_os in
12933 darwin*)
12934 if test -n "$STRIP" ; then
12935 striplib="$STRIP -x"
12936 old_striplib="$STRIP -S"
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12938 $as_echo "yes" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12948 esac
12962 # Report which library types will actually be built
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12964 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12966 $as_echo "$can_build_shared" >&6; }
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12969 $as_echo_n "checking whether to build shared libraries... " >&6; }
12970 test "$can_build_shared" = "no" && enable_shared=no
12972 # On AIX, shared libraries and static libraries use the same namespace, and
12973 # are all built from PIC.
12974 case $host_os in
12975 aix3*)
12976 test "$enable_shared" = yes && enable_static=no
12977 if test -n "$RANLIB"; then
12978 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12979 postinstall_cmds='$RANLIB $lib'
12983 aix[4-9]*)
12984 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12985 test "$enable_shared" = yes && enable_static=no
12988 esac
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12990 $as_echo "$enable_shared" >&6; }
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12993 $as_echo_n "checking whether to build static libraries... " >&6; }
12994 # Make sure either enable_shared or enable_static is yes.
12995 test "$enable_shared" = yes || enable_static=yes
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12997 $as_echo "$enable_static" >&6; }
13003 ac_ext=c
13004 ac_cpp='$CPP $CPPFLAGS'
13005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13009 CC="$lt_save_CC"
13023 ac_config_commands="$ac_config_commands libtool"
13028 # Only expand once:
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
13033 $as_echo_n "checking for library containing bind... " >&6; }
13034 if ${ac_cv_search_bind+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 ac_func_search_save_LIBS=$LIBS
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13041 /* Override any GCC internal prototype to avoid an error.
13042 Use char because int might match the return type of a GCC
13043 builtin and then its argument prototype would still apply. */
13044 #ifdef __cplusplus
13045 extern "C"
13046 #endif
13047 char bind ();
13049 main ()
13051 return bind ();
13053 return 0;
13055 _ACEOF
13056 for ac_lib in '' socket; do
13057 if test -z "$ac_lib"; then
13058 ac_res="none required"
13059 else
13060 ac_res=-l$ac_lib
13061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13063 if ac_fn_c_try_link "$LINENO"; then :
13064 ac_cv_search_bind=$ac_res
13066 rm -f core conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext
13068 if ${ac_cv_search_bind+:} false; then :
13069 break
13071 done
13072 if ${ac_cv_search_bind+:} false; then :
13074 else
13075 ac_cv_search_bind=no
13077 rm conftest.$ac_ext
13078 LIBS=$ac_func_search_save_LIBS
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
13081 $as_echo "$ac_cv_search_bind" >&6; }
13082 ac_res=$ac_cv_search_bind
13083 if test "$ac_res" != no; then :
13084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13089 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13090 if ${ac_cv_search_gethostbyname+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 ac_func_search_save_LIBS=$LIBS
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13097 /* Override any GCC internal prototype to avoid an error.
13098 Use char because int might match the return type of a GCC
13099 builtin and then its argument prototype would still apply. */
13100 #ifdef __cplusplus
13101 extern "C"
13102 #endif
13103 char gethostbyname ();
13105 main ()
13107 return gethostbyname ();
13109 return 0;
13111 _ACEOF
13112 for ac_lib in '' nsl; do
13113 if test -z "$ac_lib"; then
13114 ac_res="none required"
13115 else
13116 ac_res=-l$ac_lib
13117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13119 if ac_fn_c_try_link "$LINENO"; then :
13120 ac_cv_search_gethostbyname=$ac_res
13122 rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext
13124 if ${ac_cv_search_gethostbyname+:} false; then :
13125 break
13127 done
13128 if ${ac_cv_search_gethostbyname+:} false; then :
13130 else
13131 ac_cv_search_gethostbyname=no
13133 rm conftest.$ac_ext
13134 LIBS=$ac_func_search_save_LIBS
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13137 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13138 ac_res=$ac_cv_search_gethostbyname
13139 if test "$ac_res" != no; then :
13140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
13145 $as_echo_n "checking for library containing fabs... " >&6; }
13146 if ${ac_cv_search_fabs+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 ac_func_search_save_LIBS=$LIBS
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13156 #ifdef __cplusplus
13157 extern "C"
13158 #endif
13159 char fabs ();
13161 main ()
13163 return fabs ();
13165 return 0;
13167 _ACEOF
13168 for ac_lib in '' m; do
13169 if test -z "$ac_lib"; then
13170 ac_res="none required"
13171 else
13172 ac_res=-l$ac_lib
13173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 ac_cv_search_fabs=$ac_res
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext
13180 if ${ac_cv_search_fabs+:} false; then :
13181 break
13183 done
13184 if ${ac_cv_search_fabs+:} false; then :
13186 else
13187 ac_cv_search_fabs=no
13189 rm conftest.$ac_ext
13190 LIBS=$ac_func_search_save_LIBS
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
13193 $as_echo "$ac_cv_search_fabs" >&6; }
13194 ac_res=$ac_cv_search_fabs
13195 if test "$ac_res" != no; then :
13196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
13201 $as_echo_n "checking for library containing log2... " >&6; }
13202 if ${ac_cv_search_log2+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 ac_func_search_save_LIBS=$LIBS
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 char log2 ();
13217 main ()
13219 return log2 ();
13221 return 0;
13223 _ACEOF
13224 for ac_lib in '' m; do
13225 if test -z "$ac_lib"; then
13226 ac_res="none required"
13227 else
13228 ac_res=-l$ac_lib
13229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13231 if ac_fn_c_try_link "$LINENO"; then :
13232 ac_cv_search_log2=$ac_res
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext
13236 if ${ac_cv_search_log2+:} false; then :
13237 break
13239 done
13240 if ${ac_cv_search_log2+:} false; then :
13242 else
13243 ac_cv_search_log2=no
13245 rm conftest.$ac_ext
13246 LIBS=$ac_func_search_save_LIBS
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
13249 $as_echo "$ac_cv_search_log2" >&6; }
13250 ac_res=$ac_cv_search_log2
13251 if test "$ac_res" != no; then :
13252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13258 $as_echo_n "checking for library containing dlopen... " >&6; }
13259 if ${ac_cv_search_dlopen+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 ac_func_search_save_LIBS=$LIBS
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13266 /* Override any GCC internal prototype to avoid an error.
13267 Use char because int might match the return type of a GCC
13268 builtin and then its argument prototype would still apply. */
13269 #ifdef __cplusplus
13270 extern "C"
13271 #endif
13272 char dlopen ();
13274 main ()
13276 return dlopen ();
13278 return 0;
13280 _ACEOF
13281 for ac_lib in '' dl; do
13282 if test -z "$ac_lib"; then
13283 ac_res="none required"
13284 else
13285 ac_res=-l$ac_lib
13286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13288 if ac_fn_c_try_link "$LINENO"; then :
13289 ac_cv_search_dlopen=$ac_res
13291 rm -f core conftest.err conftest.$ac_objext \
13292 conftest$ac_exeext
13293 if ${ac_cv_search_dlopen+:} false; then :
13294 break
13296 done
13297 if ${ac_cv_search_dlopen+:} false; then :
13299 else
13300 ac_cv_search_dlopen=no
13302 rm conftest.$ac_ext
13303 LIBS=$ac_func_search_save_LIBS
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13306 $as_echo "$ac_cv_search_dlopen" >&6; }
13307 ac_res=$ac_cv_search_dlopen
13308 if test "$ac_res" != no; then :
13309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13313 if test "${ac_cv_search_dlopen}" = "none required" || test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13315 pkg_failed=no
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13317 $as_echo_n "checking for sdl2... " >&6; }
13319 if test -n "$SDL_CFLAGS"; then
13320 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13321 elif test -n "$PKG_CONFIG"; then
13322 if test -n "$PKG_CONFIG" && \
13323 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13324 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13325 ac_status=$?
13326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327 test $ac_status = 0; }; then
13328 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13329 test "x$?" != "x0" && pkg_failed=yes
13330 else
13331 pkg_failed=yes
13333 else
13334 pkg_failed=untried
13336 if test -n "$SDL_LIBS"; then
13337 pkg_cv_SDL_LIBS="$SDL_LIBS"
13338 elif test -n "$PKG_CONFIG"; then
13339 if test -n "$PKG_CONFIG" && \
13340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13341 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13342 ac_status=$?
13343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13344 test $ac_status = 0; }; then
13345 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13346 test "x$?" != "x0" && pkg_failed=yes
13347 else
13348 pkg_failed=yes
13350 else
13351 pkg_failed=untried
13354 if test $pkg_failed = no; then
13355 pkg_save_LDFLAGS="$LDFLAGS"
13356 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13361 main ()
13365 return 0;
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13370 else
13371 pkg_failed=yes
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375 LDFLAGS=$pkg_save_LDFLAGS
13380 if test $pkg_failed = yes; then
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13384 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13385 _pkg_short_errors_supported=yes
13386 else
13387 _pkg_short_errors_supported=no
13389 if test $_pkg_short_errors_supported = yes; then
13390 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13391 else
13392 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13394 # Put the nasty error message in config.log where it belongs
13395 echo "$SDL_PKG_ERRORS" >&5
13399 pkg_failed=no
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13401 $as_echo_n "checking for sdl... " >&6; }
13403 if test -n "$SDL_CFLAGS"; then
13404 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13405 elif test -n "$PKG_CONFIG"; then
13406 if test -n "$PKG_CONFIG" && \
13407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13408 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13409 ac_status=$?
13410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13411 test $ac_status = 0; }; then
13412 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13413 test "x$?" != "x0" && pkg_failed=yes
13414 else
13415 pkg_failed=yes
13417 else
13418 pkg_failed=untried
13420 if test -n "$SDL_LIBS"; then
13421 pkg_cv_SDL_LIBS="$SDL_LIBS"
13422 elif test -n "$PKG_CONFIG"; then
13423 if test -n "$PKG_CONFIG" && \
13424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13425 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13426 ac_status=$?
13427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13428 test $ac_status = 0; }; then
13429 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13430 test "x$?" != "x0" && pkg_failed=yes
13431 else
13432 pkg_failed=yes
13434 else
13435 pkg_failed=untried
13438 if test $pkg_failed = no; then
13439 pkg_save_LDFLAGS="$LDFLAGS"
13440 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13445 main ()
13449 return 0;
13451 _ACEOF
13452 if ac_fn_c_try_link "$LINENO"; then :
13454 else
13455 pkg_failed=yes
13457 rm -f core conftest.err conftest.$ac_objext \
13458 conftest$ac_exeext conftest.$ac_ext
13459 LDFLAGS=$pkg_save_LDFLAGS
13464 if test $pkg_failed = yes; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13468 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13469 _pkg_short_errors_supported=yes
13470 else
13471 _pkg_short_errors_supported=no
13473 if test $_pkg_short_errors_supported = yes; then
13474 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13475 else
13476 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13478 # Put the nasty error message in config.log where it belongs
13479 echo "$SDL_PKG_ERRORS" >&5
13482 elif test $pkg_failed = untried; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484 $as_echo "no" >&6; }
13486 else
13487 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13488 SDL_LIBS=$pkg_cv_SDL_LIBS
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13490 $as_echo "yes" >&6; }
13491 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13495 elif test $pkg_failed = untried; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13500 pkg_failed=no
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13502 $as_echo_n "checking for sdl... " >&6; }
13504 if test -n "$SDL_CFLAGS"; then
13505 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13506 elif test -n "$PKG_CONFIG"; then
13507 if test -n "$PKG_CONFIG" && \
13508 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13509 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13510 ac_status=$?
13511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13512 test $ac_status = 0; }; then
13513 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13514 test "x$?" != "x0" && pkg_failed=yes
13515 else
13516 pkg_failed=yes
13518 else
13519 pkg_failed=untried
13521 if test -n "$SDL_LIBS"; then
13522 pkg_cv_SDL_LIBS="$SDL_LIBS"
13523 elif test -n "$PKG_CONFIG"; then
13524 if test -n "$PKG_CONFIG" && \
13525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13526 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13527 ac_status=$?
13528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13529 test $ac_status = 0; }; then
13530 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13531 test "x$?" != "x0" && pkg_failed=yes
13532 else
13533 pkg_failed=yes
13535 else
13536 pkg_failed=untried
13539 if test $pkg_failed = no; then
13540 pkg_save_LDFLAGS="$LDFLAGS"
13541 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13546 main ()
13550 return 0;
13552 _ACEOF
13553 if ac_fn_c_try_link "$LINENO"; then :
13555 else
13556 pkg_failed=yes
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13560 LDFLAGS=$pkg_save_LDFLAGS
13565 if test $pkg_failed = yes; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13570 _pkg_short_errors_supported=yes
13571 else
13572 _pkg_short_errors_supported=no
13574 if test $_pkg_short_errors_supported = yes; then
13575 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13576 else
13577 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13579 # Put the nasty error message in config.log where it belongs
13580 echo "$SDL_PKG_ERRORS" >&5
13583 elif test $pkg_failed = untried; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585 $as_echo "no" >&6; }
13587 else
13588 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13589 SDL_LIBS=$pkg_cv_SDL_LIBS
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 $as_echo "yes" >&6; }
13592 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13596 else
13597 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13598 SDL_LIBS=$pkg_cv_SDL_LIBS
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13600 $as_echo "yes" >&6; }
13601 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13604 if test -n "$SDL_CFLAGS"; then :
13605 if test "$ac_cv_search_dlopen" = no; then :
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13607 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13612 else
13613 SDL_CFLAGS=
13615 SDL_LIBS=
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13619 $as_echo_n "checking for cygwin... " >&6; }
13620 if ${sim_cv_os_cygwin+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13626 #ifdef __CYGWIN__
13627 lose
13628 #endif
13629 _ACEOF
13630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13631 $EGREP "lose" >/dev/null 2>&1; then :
13632 sim_cv_os_cygwin=yes
13633 else
13634 sim_cv_os_cygwin=no
13636 rm -f conftest*
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13640 $as_echo "$sim_cv_os_cygwin" >&6; }
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13643 $as_echo_n "checking for library containing tgetent... " >&6; }
13644 if ${ac_cv_search_tgetent+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 ac_func_search_save_LIBS=$LIBS
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13654 #ifdef __cplusplus
13655 extern "C"
13656 #endif
13657 char tgetent ();
13659 main ()
13661 return tgetent ();
13663 return 0;
13665 _ACEOF
13666 for ac_lib in '' termcap tinfo curses ncurses; do
13667 if test -z "$ac_lib"; then
13668 ac_res="none required"
13669 else
13670 ac_res=-l$ac_lib
13671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13673 if ac_fn_c_try_link "$LINENO"; then :
13674 ac_cv_search_tgetent=$ac_res
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext
13678 if ${ac_cv_search_tgetent+:} false; then :
13679 break
13681 done
13682 if ${ac_cv_search_tgetent+:} false; then :
13684 else
13685 ac_cv_search_tgetent=no
13687 rm conftest.$ac_ext
13688 LIBS=$ac_func_search_save_LIBS
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13691 $as_echo "$ac_cv_search_tgetent" >&6; }
13692 ac_res=$ac_cv_search_tgetent
13693 if test "$ac_res" != no; then :
13694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13695 TERMCAP_LIB=$ac_cv_search_tgetent
13696 else
13697 TERMCAP_LIB=""
13700 if test x$sim_cv_os_cygwin = xyes; then
13701 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13705 if test -r ../readline/Makefile; then
13706 READLINE_LIB=../readline/readline/libreadline.a
13707 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13708 else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13710 $as_echo_n "checking for readline in -lreadline... " >&6; }
13711 if ${ac_cv_lib_readline_readline+:} false; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 ac_check_lib_save_LIBS=$LIBS
13715 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13719 /* Override any GCC internal prototype to avoid an error.
13720 Use char because int might match the return type of a GCC
13721 builtin and then its argument prototype would still apply. */
13722 #ifdef __cplusplus
13723 extern "C"
13724 #endif
13725 char readline ();
13727 main ()
13729 return readline ();
13731 return 0;
13733 _ACEOF
13734 if ac_fn_c_try_link "$LINENO"; then :
13735 ac_cv_lib_readline_readline=yes
13736 else
13737 ac_cv_lib_readline_readline=no
13739 rm -f core conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13741 LIBS=$ac_check_lib_save_LIBS
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13744 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13745 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13746 READLINE_LIB=-lreadline
13747 else
13748 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13751 READLINE_CFLAGS=
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13757 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13758 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763 #include <unistd.h>
13765 main ()
13767 extern int getopt (int, char *const*, const char *);
13769 return 0;
13771 _ACEOF
13772 if ac_fn_c_try_compile "$LINENO"; then :
13773 sim_cv_decl_getopt_unistd_h=yes
13774 else
13775 sim_cv_decl_getopt_unistd_h=no
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13781 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13782 if test $sim_cv_decl_getopt_unistd_h = yes; then
13784 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13791 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13792 # Check whether --enable-maintainer-mode was given.
13793 if test "${enable_maintainer_mode+set}" = set; then :
13794 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13795 else
13796 USE_MAINTAINER_MODE=no
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13800 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13801 if test $USE_MAINTAINER_MODE = yes; then
13802 MAINTAINER_MODE_TRUE=
13803 MAINTAINER_MODE_FALSE='#'
13804 else
13805 MAINTAINER_MODE_TRUE='#'
13806 MAINTAINER_MODE_FALSE=
13809 MAINT=$MAINTAINER_MODE_TRUE
13812 am__api_version='1.15'
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13815 $as_echo_n "checking whether build environment is sane... " >&6; }
13816 # Reject unsafe characters in $srcdir or the absolute working directory
13817 # name. Accept space and tab only in the latter.
13818 am_lf='
13820 case `pwd` in
13821 *[\\\"\#\$\&\'\`$am_lf]*)
13822 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13823 esac
13824 case $srcdir in
13825 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13826 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13827 esac
13829 # Do 'set' in a subshell so we don't clobber the current shell's
13830 # arguments. Must try -L first in case configure is actually a
13831 # symlink; some systems play weird games with the mod time of symlinks
13832 # (eg FreeBSD returns the mod time of the symlink's containing
13833 # directory).
13834 if (
13835 am_has_slept=no
13836 for am_try in 1 2; do
13837 echo "timestamp, slept: $am_has_slept" > conftest.file
13838 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13839 if test "$*" = "X"; then
13840 # -L didn't work.
13841 set X `ls -t "$srcdir/configure" conftest.file`
13843 if test "$*" != "X $srcdir/configure conftest.file" \
13844 && test "$*" != "X conftest.file $srcdir/configure"; then
13846 # If neither matched, then we have a broken ls. This can happen
13847 # if, for instance, CONFIG_SHELL is bash and it inherits a
13848 # broken ls alias from the environment. This has actually
13849 # happened. Such a system could not be considered "sane".
13850 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13851 alias in your environment" "$LINENO" 5
13853 if test "$2" = conftest.file || test $am_try -eq 2; then
13854 break
13856 # Just in case.
13857 sleep 1
13858 am_has_slept=yes
13859 done
13860 test "$2" = conftest.file
13862 then
13863 # Ok.
13865 else
13866 as_fn_error $? "newly created file is older than distributed files!
13867 Check your system clock" "$LINENO" 5
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13870 $as_echo "yes" >&6; }
13871 # If we didn't sleep, we still need to ensure time stamps of config.status and
13872 # generated files are strictly newer.
13873 am_sleep_pid=
13874 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13875 ( sleep 1 ) &
13876 am_sleep_pid=$!
13879 rm -f conftest.file
13881 if test x"${MISSING+set}" != xset; then
13882 case $am_aux_dir in
13883 *\ * | *\ *)
13884 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13886 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13887 esac
13889 # Use eval to expand $SHELL
13890 if eval "$MISSING --is-lightweight"; then
13891 am_missing_run="$MISSING "
13892 else
13893 am_missing_run=
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13895 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13898 if test x"${install_sh+set}" != xset; then
13899 case $am_aux_dir in
13900 *\ * | *\ *)
13901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13903 install_sh="\${SHELL} $am_aux_dir/install-sh"
13904 esac
13907 # Installed binaries are usually stripped using 'strip' when the user
13908 # run "make install-strip". However 'strip' might not be the right
13909 # tool to use in cross-compilation environments, therefore Automake
13910 # will honor the 'STRIP' environment variable to overrule this program.
13911 if test "$cross_compiling" != no; then
13912 if test -n "$ac_tool_prefix"; then
13913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13914 set dummy ${ac_tool_prefix}strip; ac_word=$2
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13916 $as_echo_n "checking for $ac_word... " >&6; }
13917 if ${ac_cv_prog_STRIP+:} false; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 if test -n "$STRIP"; then
13921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13922 else
13923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924 for as_dir in $PATH
13926 IFS=$as_save_IFS
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 break 2
13934 done
13935 done
13936 IFS=$as_save_IFS
13940 STRIP=$ac_cv_prog_STRIP
13941 if test -n "$STRIP"; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13943 $as_echo "$STRIP" >&6; }
13944 else
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946 $as_echo "no" >&6; }
13951 if test -z "$ac_cv_prog_STRIP"; then
13952 ac_ct_STRIP=$STRIP
13953 # Extract the first word of "strip", so it can be a program name with args.
13954 set dummy strip; ac_word=$2
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13956 $as_echo_n "checking for $ac_word... " >&6; }
13957 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 if test -n "$ac_ct_STRIP"; then
13961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13962 else
13963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13964 for as_dir in $PATH
13966 IFS=$as_save_IFS
13967 test -z "$as_dir" && as_dir=.
13968 for ac_exec_ext in '' $ac_executable_extensions; do
13969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13970 ac_cv_prog_ac_ct_STRIP="strip"
13971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13972 break 2
13974 done
13975 done
13976 IFS=$as_save_IFS
13980 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13981 if test -n "$ac_ct_STRIP"; then
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13983 $as_echo "$ac_ct_STRIP" >&6; }
13984 else
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986 $as_echo "no" >&6; }
13989 if test "x$ac_ct_STRIP" = x; then
13990 STRIP=":"
13991 else
13992 case $cross_compiling:$ac_tool_warned in
13993 yes:)
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13996 ac_tool_warned=yes ;;
13997 esac
13998 STRIP=$ac_ct_STRIP
14000 else
14001 STRIP="$ac_cv_prog_STRIP"
14005 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14008 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14009 if test -z "$MKDIR_P"; then
14010 if ${ac_cv_path_mkdir+:} false; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14016 IFS=$as_save_IFS
14017 test -z "$as_dir" && as_dir=.
14018 for ac_prog in mkdir gmkdir; do
14019 for ac_exec_ext in '' $ac_executable_extensions; do
14020 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
14021 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14022 'mkdir (GNU coreutils) '* | \
14023 'mkdir (coreutils) '* | \
14024 'mkdir (fileutils) '4.1*)
14025 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14026 break 3;;
14027 esac
14028 done
14029 done
14030 done
14031 IFS=$as_save_IFS
14035 test -d ./--version && rmdir ./--version
14036 if test "${ac_cv_path_mkdir+set}" = set; then
14037 MKDIR_P="$ac_cv_path_mkdir -p"
14038 else
14039 # As a last resort, use the slow shell script. Don't cache a
14040 # value for MKDIR_P within a source directory, because that will
14041 # break other packages using the cache if that directory is
14042 # removed, or if the value is a relative name.
14043 MKDIR_P="$ac_install_sh -d"
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
14047 $as_echo "$MKDIR_P" >&6; }
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14050 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14051 set x ${MAKE-make}
14052 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14053 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 cat >conftest.make <<\_ACEOF
14057 SHELL = /bin/sh
14058 all:
14059 @echo '@@@%%%=$(MAKE)=@@@%%%'
14060 _ACEOF
14061 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14062 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14063 *@@@%%%=?*=@@@%%%*)
14064 eval ac_cv_prog_make_${ac_make}_set=yes;;
14066 eval ac_cv_prog_make_${ac_make}_set=no;;
14067 esac
14068 rm -f conftest.make
14070 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14072 $as_echo "yes" >&6; }
14073 SET_MAKE=
14074 else
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14077 SET_MAKE="MAKE=${MAKE-make}"
14080 rm -rf .tst 2>/dev/null
14081 mkdir .tst 2>/dev/null
14082 if test -d .tst; then
14083 am__leading_dot=.
14084 else
14085 am__leading_dot=_
14087 rmdir .tst 2>/dev/null
14089 DEPDIR="${am__leading_dot}deps"
14091 ac_config_commands="$ac_config_commands depfiles"
14094 am_make=${MAKE-make}
14095 cat > confinc << 'END'
14096 am__doit:
14097 @echo this is the am__doit target
14098 .PHONY: am__doit
14100 # If we don't find an include directive, just comment out the code.
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
14103 am__include="#"
14104 am__quote=
14105 _am_result=none
14106 # First try GNU make style include.
14107 echo "include confinc" > confmf
14108 # Ignore all kinds of additional output from 'make'.
14109 case `$am_make -s -f confmf 2> /dev/null` in #(
14110 *the\ am__doit\ target*)
14111 am__include=include
14112 am__quote=
14113 _am_result=GNU
14115 esac
14116 # Now try BSD make style include.
14117 if test "$am__include" = "#"; then
14118 echo '.include "confinc"' > confmf
14119 case `$am_make -s -f confmf 2> /dev/null` in #(
14120 *the\ am__doit\ target*)
14121 am__include=.include
14122 am__quote="\""
14123 _am_result=BSD
14125 esac
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14130 $as_echo "$_am_result" >&6; }
14131 rm -f confinc confmf
14133 # Check whether --enable-dependency-tracking was given.
14134 if test "${enable_dependency_tracking+set}" = set; then :
14135 enableval=$enable_dependency_tracking;
14138 if test "x$enable_dependency_tracking" != xno; then
14139 am_depcomp="$ac_aux_dir/depcomp"
14140 AMDEPBACKSLASH='\'
14141 am__nodep='_no'
14143 if test "x$enable_dependency_tracking" != xno; then
14144 AMDEP_TRUE=
14145 AMDEP_FALSE='#'
14146 else
14147 AMDEP_TRUE='#'
14148 AMDEP_FALSE=
14152 # Check whether --enable-silent-rules was given.
14153 if test "${enable_silent_rules+set}" = set; then :
14154 enableval=$enable_silent_rules;
14157 case $enable_silent_rules in # (((
14158 yes) AM_DEFAULT_VERBOSITY=0;;
14159 no) AM_DEFAULT_VERBOSITY=1;;
14160 *) AM_DEFAULT_VERBOSITY=1;;
14161 esac
14162 am_make=${MAKE-make}
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14164 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14165 if ${am_cv_make_support_nested_variables+:} false; then :
14166 $as_echo_n "(cached) " >&6
14167 else
14168 if $as_echo 'TRUE=$(BAR$(V))
14169 BAR0=false
14170 BAR1=true
14172 am__doit:
14173 @$(TRUE)
14174 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14175 am_cv_make_support_nested_variables=yes
14176 else
14177 am_cv_make_support_nested_variables=no
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14181 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14182 if test $am_cv_make_support_nested_variables = yes; then
14183 AM_V='$(V)'
14184 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14185 else
14186 AM_V=$AM_DEFAULT_VERBOSITY
14187 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14189 AM_BACKSLASH='\'
14191 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14192 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14193 # is not polluted with repeated "-I."
14194 am__isrc=' -I$(srcdir)'
14195 # test to see if srcdir already configured
14196 if test -f $srcdir/config.status; then
14197 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14201 # test whether we have cygpath
14202 if test -z "$CYGPATH_W"; then
14203 if (cygpath --version) >/dev/null 2>/dev/null; then
14204 CYGPATH_W='cygpath -w'
14205 else
14206 CYGPATH_W=echo
14211 # Define the identity of the package.
14212 PACKAGE='sim'
14213 VERSION='0'
14216 cat >>confdefs.h <<_ACEOF
14217 #define PACKAGE "$PACKAGE"
14218 _ACEOF
14221 cat >>confdefs.h <<_ACEOF
14222 #define VERSION "$VERSION"
14223 _ACEOF
14225 # Some tools Automake needs.
14227 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14230 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14233 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14236 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14239 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14241 # For better backward compatibility. To be removed once Automake 1.9.x
14242 # dies out for good. For more background, see:
14243 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14244 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14245 mkdir_p='$(MKDIR_P)'
14247 # We need awk for the "check" target (and possibly the TAP driver). The
14248 # system "awk" is bad on some platforms.
14249 # Always define AMTAR for backward compatibility. Yes, it's still used
14250 # in the wild :-( We should find a proper way to deprecate it ...
14251 AMTAR='$${TAR-tar}'
14254 # We'll loop over all known methods to create a tar archive until one works.
14255 _am_tools='gnutar pax cpio none'
14257 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
14263 depcc="$CC" am_compiler_list=
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14266 $as_echo_n "checking dependency style of $depcc... " >&6; }
14267 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14271 # We make a subdir and do the tests there. Otherwise we can end up
14272 # making bogus files that we don't know about and never remove. For
14273 # instance it was reported that on HP-UX the gcc test will end up
14274 # making a dummy file named 'D' -- because '-MD' means "put the output
14275 # in D".
14276 rm -rf conftest.dir
14277 mkdir conftest.dir
14278 # Copy depcomp to subdir because otherwise we won't find it if we're
14279 # using a relative directory.
14280 cp "$am_depcomp" conftest.dir
14281 cd conftest.dir
14282 # We will build objects and dependencies in a subdirectory because
14283 # it helps to detect inapplicable dependency modes. For instance
14284 # both Tru64's cc and ICC support -MD to output dependencies as a
14285 # side effect of compilation, but ICC will put the dependencies in
14286 # the current directory while Tru64 will put them in the object
14287 # directory.
14288 mkdir sub
14290 am_cv_CC_dependencies_compiler_type=none
14291 if test "$am_compiler_list" = ""; then
14292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14294 am__universal=false
14295 case " $depcc " in #(
14296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14297 esac
14299 for depmode in $am_compiler_list; do
14300 # Setup a source with many dependencies, because some compilers
14301 # like to wrap large dependency lists on column 80 (with \), and
14302 # we should not choose a depcomp mode which is confused by this.
14304 # We need to recreate these files for each test, as the compiler may
14305 # overwrite some of them when testing with obscure command lines.
14306 # This happens at least with the AIX C compiler.
14307 : > sub/conftest.c
14308 for i in 1 2 3 4 5 6; do
14309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14310 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14311 # Solaris 10 /bin/sh.
14312 echo '/* dummy */' > sub/conftst$i.h
14313 done
14314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14316 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14317 # mode. It turns out that the SunPro C++ compiler does not properly
14318 # handle '-M -o', and we need to detect this. Also, some Intel
14319 # versions had trouble with output in subdirs.
14320 am__obj=sub/conftest.${OBJEXT-o}
14321 am__minus_obj="-o $am__obj"
14322 case $depmode in
14323 gcc)
14324 # This depmode causes a compiler race in universal mode.
14325 test "$am__universal" = false || continue
14327 nosideeffect)
14328 # After this tag, mechanisms are not by side-effect, so they'll
14329 # only be used when explicitly requested.
14330 if test "x$enable_dependency_tracking" = xyes; then
14331 continue
14332 else
14333 break
14336 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14337 # This compiler won't grok '-c -o', but also, the minuso test has
14338 # not run yet. These depmodes are late enough in the game, and
14339 # so weak that their functioning should not be impacted.
14340 am__obj=conftest.${OBJEXT-o}
14341 am__minus_obj=
14343 none) break ;;
14344 esac
14345 if depmode=$depmode \
14346 source=sub/conftest.c object=$am__obj \
14347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14349 >/dev/null 2>conftest.err &&
14350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14354 # icc doesn't choke on unknown options, it will just issue warnings
14355 # or remarks (even with -Werror). So we grep stderr for any message
14356 # that says an option was ignored or not supported.
14357 # When given -MP, icc 7.0 and 7.1 complain thusly:
14358 # icc: Command line warning: ignoring option '-M'; no argument required
14359 # The diagnosis changed in icc 8.0:
14360 # icc: Command line remark: option '-MP' not supported
14361 if (grep 'ignoring option' conftest.err ||
14362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14363 am_cv_CC_dependencies_compiler_type=$depmode
14364 break
14367 done
14369 cd ..
14370 rm -rf conftest.dir
14371 else
14372 am_cv_CC_dependencies_compiler_type=none
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14377 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14378 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14381 test "x$enable_dependency_tracking" != xno \
14382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14383 am__fastdepCC_TRUE=
14384 am__fastdepCC_FALSE='#'
14385 else
14386 am__fastdepCC_TRUE='#'
14387 am__fastdepCC_FALSE=
14392 # POSIX will say in a future version that running "rm -f" with no argument
14393 # is OK; and we want to be able to make that assumption in our Makefile
14394 # recipes. So use an aggressive probe to check that the usage we want is
14395 # actually supported "in the wild" to an acceptable degree.
14396 # See automake bug#10828.
14397 # To make any issue more visible, cause the running configure to be aborted
14398 # by default if the 'rm' program in use doesn't match our expectations; the
14399 # user can still override this though.
14400 if rm -f && rm -fr && rm -rf; then : OK; else
14401 cat >&2 <<'END'
14402 Oops!
14404 Your 'rm' program seems unable to run without file operands specified
14405 on the command line, even when the '-f' option is present. This is contrary
14406 to the behaviour of most rm programs out there, and not conforming with
14407 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14409 Please tell bug-automake@gnu.org about your system, including the value
14410 of your $PATH and any error possibly output before this message. This
14411 can help us improve future automake versions.
14414 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14415 echo 'Configuration will proceed anyway, since you have set the' >&2
14416 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14417 echo >&2
14418 else
14419 cat >&2 <<'END'
14420 Aborting the configuration process, to ensure you take notice of the issue.
14422 You can download and install GNU coreutils to get an 'rm' implementation
14423 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14425 If you want to complete the configuration process using your problematic
14426 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14427 to "yes", and re-run configure.
14430 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14434 # Check whether --enable-silent-rules was given.
14435 if test "${enable_silent_rules+set}" = set; then :
14436 enableval=$enable_silent_rules;
14439 case $enable_silent_rules in # (((
14440 yes) AM_DEFAULT_VERBOSITY=0;;
14441 no) AM_DEFAULT_VERBOSITY=1;;
14442 *) AM_DEFAULT_VERBOSITY=0;;
14443 esac
14444 am_make=${MAKE-make}
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14446 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14447 if ${am_cv_make_support_nested_variables+:} false; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450 if $as_echo 'TRUE=$(BAR$(V))
14451 BAR0=false
14452 BAR1=true
14454 am__doit:
14455 @$(TRUE)
14456 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14457 am_cv_make_support_nested_variables=yes
14458 else
14459 am_cv_make_support_nested_variables=no
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14463 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14464 if test $am_cv_make_support_nested_variables = yes; then
14465 AM_V='$(V)'
14466 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14467 else
14468 AM_V=$AM_DEFAULT_VERBOSITY
14469 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14471 AM_BACKSLASH='\'
14474 # If a cpu ever has more than one simulator to choose from, use
14475 # --enable-sim=... to choose.
14476 # Check whether --enable-sim was given.
14477 if test "${enable_sim+set}" = set; then :
14478 enableval=$enable_sim; case "${enableval}" in
14479 yes | no) ;;
14480 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14481 esac
14485 # Check whether --enable-example-sims was given.
14486 if test "${enable_example_sims+set}" = set; then :
14487 enableval=$enable_example_sims;
14491 # Check whether --enable-targets was given.
14492 if test "${enable_targets+set}" = set; then :
14493 enableval=$enable_targets; case "${enableval}" in
14494 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14496 no) enable_targets= ;;
14497 *) enable_targets=$enableval ;;
14498 esac
14502 SIM_PRIMARY_TARGET=
14505 SIM_ENABLED_ARCHES=
14508 ENABLE_SIM=no
14512 if test "${enable_sim}" != no; then
14513 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14515 sim_enable_arch_aarch64=false
14516 case "${targ}" in
14517 all|aarch64*-*-*)
14518 if test "${targ}" = "${target}"; then
14519 SIM_PRIMARY_TARGET=aarch64
14521 ENABLE_SIM=yes
14522 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14523 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14526 sim_enable_arch_aarch64=true
14528 esac
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14530 $as_echo_n "checking where to find the target cc... " >&6; }
14531 if test "x${build}" != "x${host}" ; then
14532 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14533 # We already found the complete path
14534 ac_dir=`dirname $CC_FOR_TARGET`
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14536 $as_echo "pre-installed in $ac_dir" >&6; }
14537 else
14538 # Canadian cross, just use what we found
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14540 $as_echo "pre-installed" >&6; }
14542 else
14543 ok=yes
14544 case " ${configdirs} " in
14545 *" ${target_alias}-gcc "*) ;;
14546 *) ok=no ;;
14547 esac
14549 if test $ok = yes; then
14550 # An in-tree tool is available and we can use it
14551 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14553 $as_echo "just compiled" >&6; }
14554 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14555 # We already found the complete path
14556 ac_dir=`dirname $CC_FOR_TARGET`
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14558 $as_echo "pre-installed in $ac_dir" >&6; }
14559 elif test "x$target" = "x$host"; then
14560 # We can use an host tool
14561 CC_FOR_TARGET='$(CC)'
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14563 $as_echo "host tool" >&6; }
14564 else
14565 # We need a cross tool
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14567 $as_echo "pre-installed" >&6; }
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14572 $as_echo_n "checking where to find the target as... " >&6; }
14573 if test "x${build}" != "x${host}" ; then
14574 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14575 # We already found the complete path
14576 ac_dir=`dirname $AS_FOR_TARGET`
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14578 $as_echo "pre-installed in $ac_dir" >&6; }
14579 else
14580 # Canadian cross, just use what we found
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14582 $as_echo "pre-installed" >&6; }
14584 else
14585 ok=yes
14586 case " ${configdirs} " in
14587 *" \$(abs_builddir) "*) ;;
14588 *) ok=no ;;
14589 esac
14591 if test $ok = yes; then
14592 # An in-tree tool is available and we can use it
14593 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14595 $as_echo "just compiled" >&6; }
14596 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14597 # We already found the complete path
14598 ac_dir=`dirname $AS_FOR_TARGET`
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14600 $as_echo "pre-installed in $ac_dir" >&6; }
14601 elif test "x$target" = "x$host"; then
14602 # We can use an host tool
14603 AS_FOR_TARGET='$(AS)'
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14605 $as_echo "host tool" >&6; }
14606 else
14607 # We need a cross tool
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14609 $as_echo "pre-installed" >&6; }
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14614 $as_echo_n "checking where to find the target ld... " >&6; }
14615 if test "x${build}" != "x${host}" ; then
14616 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14617 # We already found the complete path
14618 ac_dir=`dirname $LD_FOR_TARGET`
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14620 $as_echo "pre-installed in $ac_dir" >&6; }
14621 else
14622 # Canadian cross, just use what we found
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14624 $as_echo "pre-installed" >&6; }
14626 else
14627 ok=yes
14628 case " ${configdirs} " in
14629 *" \$(abs_builddir) "*) ;;
14630 *) ok=no ;;
14631 esac
14633 if test $ok = yes; then
14634 # An in-tree tool is available and we can use it
14635 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14637 $as_echo "just compiled" >&6; }
14638 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14639 # We already found the complete path
14640 ac_dir=`dirname $LD_FOR_TARGET`
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14642 $as_echo "pre-installed in $ac_dir" >&6; }
14643 elif test "x$target" = "x$host"; then
14644 # We can use an host tool
14645 LD_FOR_TARGET='$(LD)'
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14647 $as_echo "host tool" >&6; }
14648 else
14649 # We need a cross tool
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14651 $as_echo "pre-installed" >&6; }
14660 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14661 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14662 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14663 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14667 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14669 if ${sim_enable_arch_aarch64}; then
14670 SIM_ENABLE_ARCH_aarch64_TRUE=
14671 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14672 else
14673 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14674 SIM_ENABLE_ARCH_aarch64_FALSE=
14677 sim_enable_arch_arm=false
14678 case "${targ}" in
14679 all|arm*-*-*)
14680 if test "${targ}" = "${target}"; then
14681 SIM_PRIMARY_TARGET=arm
14683 ENABLE_SIM=yes
14684 as_fn_append SIM_ENABLED_ARCHES " arm"
14685 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14688 sim_enable_arch_arm=true
14690 esac
14695 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14696 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14697 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14698 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14702 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14704 if ${sim_enable_arch_arm}; then
14705 SIM_ENABLE_ARCH_arm_TRUE=
14706 SIM_ENABLE_ARCH_arm_FALSE='#'
14707 else
14708 SIM_ENABLE_ARCH_arm_TRUE='#'
14709 SIM_ENABLE_ARCH_arm_FALSE=
14712 sim_enable_arch_avr=false
14713 case "${targ}" in
14714 all|avr*-*-*)
14715 if test "${targ}" = "${target}"; then
14716 SIM_PRIMARY_TARGET=avr
14718 ENABLE_SIM=yes
14719 as_fn_append SIM_ENABLED_ARCHES " avr"
14720 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14723 sim_enable_arch_avr=true
14725 esac
14730 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14731 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14732 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14733 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14737 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14739 if ${sim_enable_arch_avr}; then
14740 SIM_ENABLE_ARCH_avr_TRUE=
14741 SIM_ENABLE_ARCH_avr_FALSE='#'
14742 else
14743 SIM_ENABLE_ARCH_avr_TRUE='#'
14744 SIM_ENABLE_ARCH_avr_FALSE=
14747 sim_enable_arch_bfin=false
14748 case "${targ}" in
14749 all|bfin-*-*)
14750 if test "${targ}" = "${target}"; then
14751 SIM_PRIMARY_TARGET=bfin
14753 ENABLE_SIM=yes
14754 as_fn_append SIM_ENABLED_ARCHES " bfin"
14755 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14758 sim_enable_arch_bfin=true
14760 esac
14765 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14766 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14767 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14768 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14772 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14774 if ${sim_enable_arch_bfin}; then
14775 SIM_ENABLE_ARCH_bfin_TRUE=
14776 SIM_ENABLE_ARCH_bfin_FALSE='#'
14777 else
14778 SIM_ENABLE_ARCH_bfin_TRUE='#'
14779 SIM_ENABLE_ARCH_bfin_FALSE=
14782 sim_enable_arch_bpf=false
14783 case "${targ}" in
14784 all|bpf-*-*)
14785 if test "${targ}" = "${target}"; then
14786 SIM_PRIMARY_TARGET=bpf
14788 ENABLE_SIM=yes
14789 as_fn_append SIM_ENABLED_ARCHES " bpf"
14790 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14793 sim_enable_arch_bpf=true
14795 esac
14800 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14801 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14802 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14803 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14807 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14809 if ${sim_enable_arch_bpf}; then
14810 SIM_ENABLE_ARCH_bpf_TRUE=
14811 SIM_ENABLE_ARCH_bpf_FALSE='#'
14812 else
14813 SIM_ENABLE_ARCH_bpf_TRUE='#'
14814 SIM_ENABLE_ARCH_bpf_FALSE=
14817 sim_enable_arch_cr16=false
14818 case "${targ}" in
14819 all|cr16*-*-*)
14820 if test "${targ}" = "${target}"; then
14821 SIM_PRIMARY_TARGET=cr16
14823 ENABLE_SIM=yes
14824 as_fn_append SIM_ENABLED_ARCHES " cr16"
14825 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14828 sim_enable_arch_cr16=true
14830 esac
14835 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14836 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14837 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14838 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14842 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14844 if ${sim_enable_arch_cr16}; then
14845 SIM_ENABLE_ARCH_cr16_TRUE=
14846 SIM_ENABLE_ARCH_cr16_FALSE='#'
14847 else
14848 SIM_ENABLE_ARCH_cr16_TRUE='#'
14849 SIM_ENABLE_ARCH_cr16_FALSE=
14852 sim_enable_arch_cris=false
14853 case "${targ}" in
14854 all|cris-*-* | crisv32-*-*)
14855 if test "${targ}" = "${target}"; then
14856 SIM_PRIMARY_TARGET=cris
14858 ENABLE_SIM=yes
14859 as_fn_append SIM_ENABLED_ARCHES " cris"
14860 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14863 sim_enable_arch_cris=true
14865 esac
14870 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14871 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14872 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14873 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14877 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14879 if ${sim_enable_arch_cris}; then
14880 SIM_ENABLE_ARCH_cris_TRUE=
14881 SIM_ENABLE_ARCH_cris_FALSE='#'
14882 else
14883 SIM_ENABLE_ARCH_cris_TRUE='#'
14884 SIM_ENABLE_ARCH_cris_FALSE=
14887 sim_enable_arch_d10v=false
14888 case "${targ}" in
14889 all|d10v-*-*)
14890 if test "${targ}" = "${target}"; then
14891 SIM_PRIMARY_TARGET=d10v
14893 ENABLE_SIM=yes
14894 as_fn_append SIM_ENABLED_ARCHES " d10v"
14895 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14898 sim_enable_arch_d10v=true
14900 esac
14905 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14906 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14907 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14908 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14912 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14914 if ${sim_enable_arch_d10v}; then
14915 SIM_ENABLE_ARCH_d10v_TRUE=
14916 SIM_ENABLE_ARCH_d10v_FALSE='#'
14917 else
14918 SIM_ENABLE_ARCH_d10v_TRUE='#'
14919 SIM_ENABLE_ARCH_d10v_FALSE=
14922 sim_enable_arch_frv=false
14923 case "${targ}" in
14924 all|frv-*-*)
14925 if test "${targ}" = "${target}"; then
14926 SIM_PRIMARY_TARGET=frv
14928 ENABLE_SIM=yes
14929 as_fn_append SIM_ENABLED_ARCHES " frv"
14930 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14933 sim_enable_arch_frv=true
14935 esac
14940 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14941 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14942 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14943 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14947 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14949 if ${sim_enable_arch_frv}; then
14950 SIM_ENABLE_ARCH_frv_TRUE=
14951 SIM_ENABLE_ARCH_frv_FALSE='#'
14952 else
14953 SIM_ENABLE_ARCH_frv_TRUE='#'
14954 SIM_ENABLE_ARCH_frv_FALSE=
14957 sim_enable_arch_ft32=false
14958 case "${targ}" in
14959 all|ft32-*-*)
14960 if test "${targ}" = "${target}"; then
14961 SIM_PRIMARY_TARGET=ft32
14963 ENABLE_SIM=yes
14964 as_fn_append SIM_ENABLED_ARCHES " ft32"
14965 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14968 sim_enable_arch_ft32=true
14970 esac
14975 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14976 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14977 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14978 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14982 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14984 if ${sim_enable_arch_ft32}; then
14985 SIM_ENABLE_ARCH_ft32_TRUE=
14986 SIM_ENABLE_ARCH_ft32_FALSE='#'
14987 else
14988 SIM_ENABLE_ARCH_ft32_TRUE='#'
14989 SIM_ENABLE_ARCH_ft32_FALSE=
14992 sim_enable_arch_h8300=false
14993 case "${targ}" in
14994 all|h8300*-*-*)
14995 if test "${targ}" = "${target}"; then
14996 SIM_PRIMARY_TARGET=h8300
14998 ENABLE_SIM=yes
14999 as_fn_append SIM_ENABLED_ARCHES " h8300"
15000 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
15003 sim_enable_arch_h8300=true
15005 esac
15010 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
15011 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
15012 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
15013 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
15017 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
15019 if ${sim_enable_arch_h8300}; then
15020 SIM_ENABLE_ARCH_h8300_TRUE=
15021 SIM_ENABLE_ARCH_h8300_FALSE='#'
15022 else
15023 SIM_ENABLE_ARCH_h8300_TRUE='#'
15024 SIM_ENABLE_ARCH_h8300_FALSE=
15027 sim_enable_arch_iq2000=false
15028 case "${targ}" in
15029 all|iq2000-*-*)
15030 if test "${targ}" = "${target}"; then
15031 SIM_PRIMARY_TARGET=iq2000
15033 ENABLE_SIM=yes
15034 as_fn_append SIM_ENABLED_ARCHES " iq2000"
15035 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
15038 sim_enable_arch_iq2000=true
15040 esac
15045 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
15046 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
15047 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
15048 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
15052 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
15054 if ${sim_enable_arch_iq2000}; then
15055 SIM_ENABLE_ARCH_iq2000_TRUE=
15056 SIM_ENABLE_ARCH_iq2000_FALSE='#'
15057 else
15058 SIM_ENABLE_ARCH_iq2000_TRUE='#'
15059 SIM_ENABLE_ARCH_iq2000_FALSE=
15062 sim_enable_arch_lm32=false
15063 case "${targ}" in
15064 all|lm32-*-*)
15065 if test "${targ}" = "${target}"; then
15066 SIM_PRIMARY_TARGET=lm32
15068 ENABLE_SIM=yes
15069 as_fn_append SIM_ENABLED_ARCHES " lm32"
15070 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
15073 sim_enable_arch_lm32=true
15075 esac
15080 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
15081 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
15082 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
15083 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
15087 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
15089 if ${sim_enable_arch_lm32}; then
15090 SIM_ENABLE_ARCH_lm32_TRUE=
15091 SIM_ENABLE_ARCH_lm32_FALSE='#'
15092 else
15093 SIM_ENABLE_ARCH_lm32_TRUE='#'
15094 SIM_ENABLE_ARCH_lm32_FALSE=
15097 sim_enable_arch_m32c=false
15098 case "${targ}" in
15099 all|m32c-*-*)
15100 if test "${targ}" = "${target}"; then
15101 SIM_PRIMARY_TARGET=m32c
15103 ENABLE_SIM=yes
15104 as_fn_append SIM_ENABLED_ARCHES " m32c"
15105 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
15108 sim_enable_arch_m32c=true
15110 esac
15115 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
15116 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
15117 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
15118 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
15122 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
15124 if ${sim_enable_arch_m32c}; then
15125 SIM_ENABLE_ARCH_m32c_TRUE=
15126 SIM_ENABLE_ARCH_m32c_FALSE='#'
15127 else
15128 SIM_ENABLE_ARCH_m32c_TRUE='#'
15129 SIM_ENABLE_ARCH_m32c_FALSE=
15132 sim_enable_arch_m32r=false
15133 case "${targ}" in
15134 all|m32r-*-*)
15135 if test "${targ}" = "${target}"; then
15136 SIM_PRIMARY_TARGET=m32r
15138 ENABLE_SIM=yes
15139 as_fn_append SIM_ENABLED_ARCHES " m32r"
15140 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
15143 sim_enable_arch_m32r=true
15145 esac
15150 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15151 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15152 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15153 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15157 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15159 if ${sim_enable_arch_m32r}; then
15160 SIM_ENABLE_ARCH_m32r_TRUE=
15161 SIM_ENABLE_ARCH_m32r_FALSE='#'
15162 else
15163 SIM_ENABLE_ARCH_m32r_TRUE='#'
15164 SIM_ENABLE_ARCH_m32r_FALSE=
15167 sim_enable_arch_m68hc11=false
15168 case "${targ}" in
15169 all|m68hc11-*-*|m6811-*-*)
15170 if test "${targ}" = "${target}"; then
15171 SIM_PRIMARY_TARGET=m68hc11
15173 ENABLE_SIM=yes
15174 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
15175 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15178 sim_enable_arch_m68hc11=true
15180 esac
15185 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15186 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15187 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15188 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15192 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15194 if ${sim_enable_arch_m68hc11}; then
15195 SIM_ENABLE_ARCH_m68hc11_TRUE=
15196 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15197 else
15198 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15199 SIM_ENABLE_ARCH_m68hc11_FALSE=
15202 sim_enable_arch_mcore=false
15203 case "${targ}" in
15204 all|mcore-*-*)
15205 if test "${targ}" = "${target}"; then
15206 SIM_PRIMARY_TARGET=mcore
15208 ENABLE_SIM=yes
15209 as_fn_append SIM_ENABLED_ARCHES " mcore"
15210 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15213 sim_enable_arch_mcore=true
15215 esac
15220 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15221 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15222 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15223 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15227 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15229 if ${sim_enable_arch_mcore}; then
15230 SIM_ENABLE_ARCH_mcore_TRUE=
15231 SIM_ENABLE_ARCH_mcore_FALSE='#'
15232 else
15233 SIM_ENABLE_ARCH_mcore_TRUE='#'
15234 SIM_ENABLE_ARCH_mcore_FALSE=
15237 sim_enable_arch_microblaze=false
15238 case "${targ}" in
15239 all|microblaze*-*-*)
15240 if test "${targ}" = "${target}"; then
15241 SIM_PRIMARY_TARGET=microblaze
15243 ENABLE_SIM=yes
15244 as_fn_append SIM_ENABLED_ARCHES " microblaze"
15245 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15248 sim_enable_arch_microblaze=true
15250 esac
15255 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15256 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15257 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15258 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15262 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15264 if ${sim_enable_arch_microblaze}; then
15265 SIM_ENABLE_ARCH_microblaze_TRUE=
15266 SIM_ENABLE_ARCH_microblaze_FALSE='#'
15267 else
15268 SIM_ENABLE_ARCH_microblaze_TRUE='#'
15269 SIM_ENABLE_ARCH_microblaze_FALSE=
15272 sim_enable_arch_mips=false
15273 case "${targ}" in
15274 all|mips*-*-*)
15275 if test "${targ}" = "${target}"; then
15276 SIM_PRIMARY_TARGET=mips
15278 ENABLE_SIM=yes
15279 as_fn_append SIM_ENABLED_ARCHES " mips"
15280 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15283 sim_enable_arch_mips=true
15285 esac
15290 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15291 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15292 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15293 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15297 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15299 if ${sim_enable_arch_mips}; then
15300 SIM_ENABLE_ARCH_mips_TRUE=
15301 SIM_ENABLE_ARCH_mips_FALSE='#'
15302 else
15303 SIM_ENABLE_ARCH_mips_TRUE='#'
15304 SIM_ENABLE_ARCH_mips_FALSE=
15307 sim_enable_arch_mn10300=false
15308 case "${targ}" in
15309 all|mn10300*-*-*)
15310 if test "${targ}" = "${target}"; then
15311 SIM_PRIMARY_TARGET=mn10300
15313 ENABLE_SIM=yes
15314 as_fn_append SIM_ENABLED_ARCHES " mn10300"
15315 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15318 sim_enable_arch_mn10300=true
15320 esac
15325 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15326 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15327 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15328 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15332 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15334 if ${sim_enable_arch_mn10300}; then
15335 SIM_ENABLE_ARCH_mn10300_TRUE=
15336 SIM_ENABLE_ARCH_mn10300_FALSE='#'
15337 else
15338 SIM_ENABLE_ARCH_mn10300_TRUE='#'
15339 SIM_ENABLE_ARCH_mn10300_FALSE=
15342 sim_enable_arch_moxie=false
15343 case "${targ}" in
15344 all|moxie-*-*)
15345 if test "${targ}" = "${target}"; then
15346 SIM_PRIMARY_TARGET=moxie
15348 ENABLE_SIM=yes
15349 as_fn_append SIM_ENABLED_ARCHES " moxie"
15350 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15353 sim_enable_arch_moxie=true
15355 esac
15360 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15361 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15362 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15363 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15367 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15369 if ${sim_enable_arch_moxie}; then
15370 SIM_ENABLE_ARCH_moxie_TRUE=
15371 SIM_ENABLE_ARCH_moxie_FALSE='#'
15372 else
15373 SIM_ENABLE_ARCH_moxie_TRUE='#'
15374 SIM_ENABLE_ARCH_moxie_FALSE=
15377 sim_enable_arch_msp430=false
15378 case "${targ}" in
15379 all|msp430*-*-*)
15380 if test "${targ}" = "${target}"; then
15381 SIM_PRIMARY_TARGET=msp430
15383 ENABLE_SIM=yes
15384 as_fn_append SIM_ENABLED_ARCHES " msp430"
15385 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15388 sim_enable_arch_msp430=true
15390 esac
15395 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15396 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15397 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15398 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15402 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15404 if ${sim_enable_arch_msp430}; then
15405 SIM_ENABLE_ARCH_msp430_TRUE=
15406 SIM_ENABLE_ARCH_msp430_FALSE='#'
15407 else
15408 SIM_ENABLE_ARCH_msp430_TRUE='#'
15409 SIM_ENABLE_ARCH_msp430_FALSE=
15412 sim_enable_arch_or1k=false
15413 case "${targ}" in
15414 all|or1k*-*-*)
15415 if test "${targ}" = "${target}"; then
15416 SIM_PRIMARY_TARGET=or1k
15418 ENABLE_SIM=yes
15419 as_fn_append SIM_ENABLED_ARCHES " or1k"
15420 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15423 sim_enable_arch_or1k=true
15425 esac
15430 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15431 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15432 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15433 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15437 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15439 if ${sim_enable_arch_or1k}; then
15440 SIM_ENABLE_ARCH_or1k_TRUE=
15441 SIM_ENABLE_ARCH_or1k_FALSE='#'
15442 else
15443 SIM_ENABLE_ARCH_or1k_TRUE='#'
15444 SIM_ENABLE_ARCH_or1k_FALSE=
15447 sim_enable_arch_ppc=false
15448 case "${targ}" in
15449 all|powerpc*-*-*)
15450 if test "${targ}" = "${target}"; then
15451 SIM_PRIMARY_TARGET=ppc
15453 ENABLE_SIM=yes
15454 as_fn_append SIM_ENABLED_ARCHES " ppc"
15455 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15458 sim_enable_arch_ppc=true
15460 esac
15465 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15466 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15467 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15468 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15472 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15474 if ${sim_enable_arch_ppc}; then
15475 SIM_ENABLE_ARCH_ppc_TRUE=
15476 SIM_ENABLE_ARCH_ppc_FALSE='#'
15477 else
15478 SIM_ENABLE_ARCH_ppc_TRUE='#'
15479 SIM_ENABLE_ARCH_ppc_FALSE=
15482 sim_enable_arch_pru=false
15483 case "${targ}" in
15484 all|pru*-*-*)
15485 if test "${targ}" = "${target}"; then
15486 SIM_PRIMARY_TARGET=pru
15488 ENABLE_SIM=yes
15489 as_fn_append SIM_ENABLED_ARCHES " pru"
15490 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15493 sim_enable_arch_pru=true
15495 esac
15500 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15501 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15502 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15503 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15507 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15509 if ${sim_enable_arch_pru}; then
15510 SIM_ENABLE_ARCH_pru_TRUE=
15511 SIM_ENABLE_ARCH_pru_FALSE='#'
15512 else
15513 SIM_ENABLE_ARCH_pru_TRUE='#'
15514 SIM_ENABLE_ARCH_pru_FALSE=
15517 sim_enable_arch_riscv=false
15518 case "${targ}" in
15519 all|riscv*-*-*)
15520 if test "${targ}" = "${target}"; then
15521 SIM_PRIMARY_TARGET=riscv
15523 ENABLE_SIM=yes
15524 as_fn_append SIM_ENABLED_ARCHES " riscv"
15525 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15528 sim_enable_arch_riscv=true
15530 esac
15535 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15536 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15537 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15538 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15542 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15544 if ${sim_enable_arch_riscv}; then
15545 SIM_ENABLE_ARCH_riscv_TRUE=
15546 SIM_ENABLE_ARCH_riscv_FALSE='#'
15547 else
15548 SIM_ENABLE_ARCH_riscv_TRUE='#'
15549 SIM_ENABLE_ARCH_riscv_FALSE=
15552 sim_enable_arch_rl78=false
15553 case "${targ}" in
15554 all|rl78-*-*)
15555 if test "${targ}" = "${target}"; then
15556 SIM_PRIMARY_TARGET=rl78
15558 ENABLE_SIM=yes
15559 as_fn_append SIM_ENABLED_ARCHES " rl78"
15560 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15563 sim_enable_arch_rl78=true
15565 esac
15570 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15571 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15572 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15573 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15577 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15579 if ${sim_enable_arch_rl78}; then
15580 SIM_ENABLE_ARCH_rl78_TRUE=
15581 SIM_ENABLE_ARCH_rl78_FALSE='#'
15582 else
15583 SIM_ENABLE_ARCH_rl78_TRUE='#'
15584 SIM_ENABLE_ARCH_rl78_FALSE=
15587 sim_enable_arch_rx=false
15588 case "${targ}" in
15589 all|rx-*-*)
15590 if test "${targ}" = "${target}"; then
15591 SIM_PRIMARY_TARGET=rx
15593 ENABLE_SIM=yes
15594 as_fn_append SIM_ENABLED_ARCHES " rx"
15595 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15598 sim_enable_arch_rx=true
15600 esac
15605 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15606 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15607 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15608 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15612 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15614 if ${sim_enable_arch_rx}; then
15615 SIM_ENABLE_ARCH_rx_TRUE=
15616 SIM_ENABLE_ARCH_rx_FALSE='#'
15617 else
15618 SIM_ENABLE_ARCH_rx_TRUE='#'
15619 SIM_ENABLE_ARCH_rx_FALSE=
15622 sim_enable_arch_sh=false
15623 case "${targ}" in
15624 all|sh*-*-*)
15625 if test "${targ}" = "${target}"; then
15626 SIM_PRIMARY_TARGET=sh
15628 ENABLE_SIM=yes
15629 as_fn_append SIM_ENABLED_ARCHES " sh"
15630 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15633 sim_enable_arch_sh=true
15635 esac
15640 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15641 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15642 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15643 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15647 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15649 if ${sim_enable_arch_sh}; then
15650 SIM_ENABLE_ARCH_sh_TRUE=
15651 SIM_ENABLE_ARCH_sh_FALSE='#'
15652 else
15653 SIM_ENABLE_ARCH_sh_TRUE='#'
15654 SIM_ENABLE_ARCH_sh_FALSE=
15657 sim_enable_arch_erc32=false
15658 case "${targ}" in
15659 all|sparc-*-*)
15660 if test "${targ}" = "${target}"; then
15661 SIM_PRIMARY_TARGET=erc32
15663 ENABLE_SIM=yes
15664 as_fn_append SIM_ENABLED_ARCHES " erc32"
15665 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15668 sim_enable_arch_erc32=true
15670 esac
15675 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15676 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15677 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15678 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15682 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15684 if ${sim_enable_arch_erc32}; then
15685 SIM_ENABLE_ARCH_erc32_TRUE=
15686 SIM_ENABLE_ARCH_erc32_FALSE='#'
15687 else
15688 SIM_ENABLE_ARCH_erc32_TRUE='#'
15689 SIM_ENABLE_ARCH_erc32_FALSE=
15692 sim_enable_arch_v850=false
15693 case "${targ}" in
15694 all|v850*-*-*)
15695 if test "${targ}" = "${target}"; then
15696 SIM_PRIMARY_TARGET=v850
15698 ENABLE_SIM=yes
15699 as_fn_append SIM_ENABLED_ARCHES " v850"
15700 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15703 sim_enable_arch_v850=true
15705 esac
15710 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15711 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15712 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15713 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15717 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15719 if ${sim_enable_arch_v850}; then
15720 SIM_ENABLE_ARCH_v850_TRUE=
15721 SIM_ENABLE_ARCH_v850_FALSE='#'
15722 else
15723 SIM_ENABLE_ARCH_v850_TRUE='#'
15724 SIM_ENABLE_ARCH_v850_FALSE=
15728 done
15730 if test "x${enable_example_sims}" = xyes; then
15735 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15736 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15737 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15739 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15741 ENABLE_SIM=yes
15742 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15743 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15747 if test "${enable_example_sims}" = "yes"; then
15748 SIM_ENABLE_ARCH_examples_TRUE=
15749 SIM_ENABLE_ARCH_examples_FALSE='#'
15750 else
15751 SIM_ENABLE_ARCH_examples_TRUE='#'
15752 SIM_ENABLE_ARCH_examples_FALSE=
15756 if test "$ENABLE_SIM" = "yes"; then
15757 ENABLE_SIM_TRUE=
15758 ENABLE_SIM_FALSE='#'
15759 else
15760 ENABLE_SIM_TRUE='#'
15761 ENABLE_SIM_FALSE=
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15766 $as_echo_n "checking whether to force sim alignment... " >&6; }
15767 sim_alignment=
15768 # Check whether --enable-sim-alignment was given.
15769 if test "${enable_sim_alignment+set}" = set; then :
15770 enableval=$enable_sim_alignment; case "${enableval}" in
15771 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15772 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15773 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15774 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15775 esac
15778 cat >>confdefs.h <<_ACEOF
15779 #define WITH_ALIGNMENT ${sim_alignment:-0}
15780 _ACEOF
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15783 $as_echo "${sim_alignment:-no}" >&6; }
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15787 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15788 sim_assert="1"
15789 # Check whether --enable-sim-assert was given.
15790 if test "${enable_sim_assert+set}" = set; then :
15791 enableval=$enable_sim_assert; case "${enableval}" in
15792 yes) sim_assert="1";;
15793 no) sim_assert="0";;
15794 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15795 esac
15798 cat >>confdefs.h <<_ACEOF
15799 #define WITH_ASSERT $sim_assert
15800 _ACEOF
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15803 $as_echo "$sim_assert" >&6; }
15806 cgen_maint=no
15807 cgen=guile
15808 cgendir='$(srcdir)/../../cgen'
15809 if test -r ${srcdir}/../cgen/iformat.scm; then
15810 cgendir='$(srcdir)/../cgen'
15812 # Check whether --enable-cgen-maint was given.
15813 if test "${enable_cgen_maint+set}" = set; then :
15814 enableval=$enable_cgen_maint; case "${enableval}" in
15815 yes) cgen_maint=yes ;;
15816 no) cgen_maint=no ;;
15818 # Argument is a directory where cgen can be found. In some
15819 # future world cgen could be installable, but right now this
15820 # is not the case. Instead we assume the directory is a path
15821 # to the cgen source tree.
15822 cgen_maint=yes
15823 if test -r ${enableval}/iformat.scm; then
15824 # This looks like a cgen source tree.
15825 cgendir=${enableval}
15826 else
15827 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15830 esac
15832 if test x${cgen_maint} != xno ; then
15833 CGEN_MAINT=''
15834 else
15835 CGEN_MAINT='#'
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15842 $as_echo_n "checking for sim debug setting... " >&6; }
15843 sim_debug="0"
15844 # Check whether --enable-sim-debug was given.
15845 if test "${enable_sim_debug+set}" = set; then :
15846 enableval=$enable_sim_debug; case "${enableval}" in
15847 yes) sim_debug="7";;
15848 no) sim_debug="0";;
15849 *) sim_debug="($enableval)";;
15850 esac
15852 if test "$sim_debug" != "0"; then
15854 cat >>confdefs.h <<_ACEOF
15855 #define DEBUG $sim_debug
15856 _ACEOF
15860 cat >>confdefs.h <<_ACEOF
15861 #define WITH_DEBUG $sim_debug
15862 _ACEOF
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15865 $as_echo "$sim_debug" >&6; }
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15868 $as_echo_n "checking whether to force sim endianness... " >&6; }
15869 sim_endian=
15870 # Check whether --enable-sim-endian was given.
15871 if test "${enable_sim_endian+set}" = set; then :
15872 enableval=$enable_sim_endian; case "${enableval}" in
15873 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15874 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15875 yes | no) ;;
15876 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15877 esac
15880 cat >>confdefs.h <<_ACEOF
15881 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15882 _ACEOF
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15885 $as_echo "${sim_alignment:-no}" >&6; }
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15889 $as_echo_n "checking default sim environment setting... " >&6; }
15890 sim_environment="ALL_ENVIRONMENT"
15891 # Check whether --enable-sim-environment was given.
15892 if test "${enable_sim_environment+set}" = set; then :
15893 enableval=$enable_sim_environment; case "${enableval}" in
15894 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15895 user | USER) sim_environment="USER_ENVIRONMENT";;
15896 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15897 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15898 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15899 esac
15902 cat >>confdefs.h <<_ACEOF
15903 #define WITH_ENVIRONMENT $sim_environment
15904 _ACEOF
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15907 $as_echo "$sim_environment" >&6; }
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15910 $as_echo_n "checking for sim hardware settings... " >&6; }
15911 # Check whether --enable-sim-hardware was given.
15912 if test "${enable_sim_hardware+set}" = set; then :
15913 enableval=$enable_sim_hardware;
15914 else
15915 enable_sim_hardware="yes"
15918 sim_hw_sockser=
15919 if test "$enable_sim_hardware" = no; then
15920 sim_hw_cflags="-DWITH_HW=0"
15921 elif test "$enable_sim_hardware" = yes; then
15922 sim_hw_cflags="-DWITH_HW=1"
15923 sim_hw_sockser="dv-sockser.o"
15924 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15925 else
15926 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15928 if test "$enable_sim_hardware" = "yes"; then
15929 SIM_ENABLE_HW_TRUE=
15930 SIM_ENABLE_HW_FALSE='#'
15931 else
15932 SIM_ENABLE_HW_TRUE='#'
15933 SIM_ENABLE_HW_FALSE=
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15937 $as_echo "${enable_sim_hardware}" >&6; }
15938 SIM_HW_CFLAGS=$sim_hw_cflags
15940 SIM_HW_SOCKSER=$sim_hw_sockser
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15944 $as_echo_n "checking sim inline settings... " >&6; }
15945 sim_inline="-DDEFAULT_INLINE=0"
15946 # Check whether --enable-sim-inline was given.
15947 if test "${enable_sim_inline+set}" = set; then :
15948 enableval=$enable_sim_inline; sim_inline=""
15949 case "$enableval" in
15950 no) sim_inline="-DDEFAULT_INLINE=0";;
15951 0) sim_inline="-DDEFAULT_INLINE=0";;
15952 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15953 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15954 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15955 new_flag=""
15956 case "$x" in
15957 *_INLINE=*) new_flag="-D$x";;
15958 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15959 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15960 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15961 esac
15962 if test x"$sim_inline" = x""; then
15963 sim_inline="$new_flag"
15964 else
15965 sim_inline="$sim_inline $new_flag"
15967 done;;
15968 esac
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15972 $as_echo "$sim_inline" >&6; }
15973 SIM_INLINE=$sim_inline
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15977 $as_echo_n "checking for sim profile settings... " >&6; }
15978 profile="1"
15979 sim_profile="-1"
15980 # Check whether --enable-sim-profile was given.
15981 if test "${enable_sim_profile+set}" = set; then :
15982 enableval=$enable_sim_profile; case "${enableval}" in
15983 yes) profile="1" sim_profile="-1";;
15984 no) profile="0" sim_profile="0";;
15985 [-0-9]*)
15986 profile="(${enableval})" sim_profile="(${enableval})";;
15987 [a-z]*)
15988 profile="1"
15989 sim_profile=""
15990 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15991 if test x"$sim_profile" = x; then
15992 sim_profile="(PROFILE_$x"
15993 else
15994 sim_profile="${sim_profile}|PROFILE_$x"
15996 done
15997 sim_profile="$sim_profile)" ;;
15998 esac
16001 cat >>confdefs.h <<_ACEOF
16002 #define PROFILE $profile
16003 _ACEOF
16006 cat >>confdefs.h <<_ACEOF
16007 #define WITH_PROFILE $sim_profile
16008 _ACEOF
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16011 $as_echo "$sim_profile" >&6; }
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16014 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16015 # Check whether --enable-sim-reserved-bits was given.
16016 if test "${enable_sim_reserved_bits+set}" = set; then :
16017 enableval=$enable_sim_reserved_bits; case "${enableval}" in
16018 yes|no) ;;
16019 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16020 esac
16023 if test "x${enable_sim_reserved_bits}" != xno; then
16024 sim_reserved_bits=1
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16026 $as_echo "yes" >&6; }
16027 else
16028 sim_reserved_bits=0
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16030 $as_echo "no" >&6; }
16033 cat >>confdefs.h <<_ACEOF
16034 #define WITH_RESERVED_BITS $sim_reserved_bits
16035 _ACEOF
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16039 $as_echo_n "checking for sim cache size... " >&6; }
16040 sim_scache="16384"
16041 # Check whether --enable-sim-scache was given.
16042 if test "${enable_sim_scache+set}" = set; then :
16043 enableval=$enable_sim_scache; case "${enableval}" in
16044 yes) ;;
16045 no) sim_scache="0";;
16046 [0-9]*) sim_scache="${enableval}";;
16047 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16048 esac
16052 cat >>confdefs.h <<_ACEOF
16053 #define WITH_SCACHE $sim_scache
16054 _ACEOF
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16057 $as_echo "$sim_scache" >&6; }
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
16060 $as_echo_n "checking number of sim cpus to support... " >&6; }
16061 default_sim_smp="0"
16062 sim_smp="$default_sim_smp"
16063 # Check whether --enable-sim-smp was given.
16064 if test "${enable_sim_smp+set}" = set; then :
16065 enableval=$enable_sim_smp; case "${enableval}" in
16066 yes) sim_smp="5";;
16067 no) sim_smp="0";;
16068 *) sim_smp="$enableval";;
16069 esac
16071 IGEN_FLAGS_SMP="-N ${sim_smp}"
16073 if test "x$sim_smp" = x0; then :
16075 else
16077 cat >>confdefs.h <<_ACEOF
16078 #define WITH_SMP $sim_smp
16079 _ACEOF
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
16083 $as_echo "$sim_smp" >&6; }
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16086 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16087 sim_stdio="0"
16088 # Check whether --enable-sim-stdio was given.
16089 if test "${enable_sim_stdio+set}" = set; then :
16090 enableval=$enable_sim_stdio; case "${enableval}" in
16091 yes) sim_stdio="DO_USE_STDIO";;
16092 no) sim_stdio="DONT_USE_STDIO";;
16093 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16094 esac
16097 cat >>confdefs.h <<_ACEOF
16098 #define WITH_STDIO $sim_stdio
16099 _ACEOF
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16102 $as_echo "$sim_stdio" >&6; }
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16105 $as_echo_n "checking for sim trace settings... " >&6; }
16106 sim_trace="~TRACE_debug"
16107 # Check whether --enable-sim-trace was given.
16108 if test "${enable_sim_trace+set}" = set; then :
16109 enableval=$enable_sim_trace; case "${enableval}" in
16110 yes) sim_trace="-1";;
16111 no) sim_trace="0";;
16112 [-0-9]*)
16113 sim_trace="'(${enableval})'";;
16114 [[:lower:]]*)
16115 sim_trace=""
16116 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16117 if test x"$sim_trace" = x; then
16118 sim_trace="(TRACE_$x"
16119 else
16120 sim_trace="${sim_trace}|TRACE_$x"
16122 done
16123 sim_trace="$sim_trace)" ;;
16124 esac
16127 cat >>confdefs.h <<_ACEOF
16128 #define WITH_TRACE $sim_trace
16129 _ACEOF
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16132 $as_echo "$sim_trace" >&6; }
16134 # Check whether --enable-werror was given.
16135 if test "${enable_werror+set}" = set; then :
16136 enableval=$enable_werror; case "${enableval}" in
16137 yes | y) ERROR_ON_WARNING="yes" ;;
16138 no | n) ERROR_ON_WARNING="no" ;;
16139 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16140 esac
16144 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16145 ERROR_ON_WARNING=yes
16148 WERROR_CFLAGS=""
16149 if test "${ERROR_ON_WARNING}" = yes ; then
16150 WERROR_CFLAGS="-Werror"
16153 build_warnings="-Wall -Wpointer-arith
16154 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function
16155 -Wno-switch -Wno-char-subscripts
16156 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
16157 -Wno-sign-compare -Wno-error=maybe-uninitialized
16158 -Wno-error=deprecated-register
16159 -Wimplicit-fallthrough=5
16160 -Wduplicated-cond
16161 -Wshadow=local
16162 -Wmissing-declarations
16164 build_warnings="$build_warnings
16165 -Wdeclaration-after-statement
16166 -Wdeprecated-non-prototype
16167 -Wimplicit-function-declaration
16168 -Wimplicit-int
16169 -Wincompatible-function-pointer-types
16170 -Wincompatible-pointer-types
16171 -Wint-conversion
16172 -Wmisleading-indentation
16173 -Wmissing-parameter-type
16174 -Wmissing-prototypes
16175 -Wold-style-declaration
16176 -Wold-style-definition
16177 -Wpointer-sign
16178 -Wreturn-mismatch
16179 -Wreturn-type
16180 -Wshift-negative-value
16181 -Wstrict-prototypes
16182 -Wno-enum-conversion
16184 build_build_warnings="
16185 -Wno-missing-braces
16186 -Wno-stringop-truncation
16187 -Wno-implicit-fallthrough
16188 -Wno-shadow=local
16191 case "${host}" in
16192 *-*-mingw32*)
16193 # Enable -Wno-format by default when using gcc on mingw since many
16194 # GCC versions complain about %I64.
16195 build_warnings="$build_warnings -Wno-format" ;;
16196 *-*-solaris*)
16197 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16198 # doesn't understand.
16199 build_warnings="$build_warnings -Wno-unknown-pragmas"
16200 # Solaris 11 <unistd.h> marks vfork deprecated.
16201 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
16203 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16204 # but there's a special case for this below.
16205 build_warnings="$build_warnings -Wformat-nonliteral" ;;
16206 esac
16208 # Check whether --enable-build-warnings was given.
16209 if test "${enable_build_warnings+set}" = set; then :
16210 enableval=$enable_build_warnings; case "${enableval}" in
16211 yes) ;;
16212 no) build_warnings="-w";;
16213 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16214 build_warnings="${build_warnings} ${t}";;
16215 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16216 build_warnings="${t} ${build_warnings}";;
16217 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16218 esac
16219 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16220 echo "Setting compiler warning flags = $build_warnings" 6>&1
16223 # Check whether --enable-sim-build-warnings was given.
16224 if test "${enable_sim_build_warnings+set}" = set; then :
16225 enableval=$enable_sim_build_warnings; case "${enableval}" in
16226 yes) ;;
16227 no) build_warnings="-w";;
16228 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16229 build_warnings="${build_warnings} ${t}";;
16230 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16231 build_warnings="${t} ${build_warnings}";;
16232 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16233 esac
16234 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16235 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16238 WARN_CFLAGS=""
16239 BUILD_WARN_CFLAGS=""
16240 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16241 then
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16245 $as_echo_n "checking compiler warning flags... " >&6; }
16246 # Separate out the -Werror flag as some files just cannot be
16247 # compiled with it enabled.
16248 for w in ${build_warnings}; do
16249 case $w in
16250 -Werr*) WERROR_CFLAGS=-Werror ;;
16251 *) w="$w"
16252 case $w in
16253 -Wno-*)
16254 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16255 -Wformat-nonliteral)
16256 w="-Wformat $w"
16257 wtest="$w"
16260 wtest=$w ;;
16261 esac
16263 saved_CFLAGS="$CFLAGS"
16264 CFLAGS="$CFLAGS -Werror $wtest"
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16269 main ()
16273 return 0;
16275 _ACEOF
16276 if ac_fn_c_try_compile "$LINENO"; then :
16277 WARN_CFLAGS="${WARN_CFLAGS} $w"
16279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16280 CFLAGS="$saved_CFLAGS"
16282 esac
16283 done
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16285 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16288 if test "x$cross_compiling" = "xno"; then :
16289 SAVE_WARN_CFLAGS=$WARN_CFLAGS
16290 build_warnings=$build_build_warnings
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16292 $as_echo_n "checking compiler warning flags... " >&6; }
16293 # Separate out the -Werror flag as some files just cannot be
16294 # compiled with it enabled.
16295 for w in ${build_warnings}; do
16296 case $w in
16297 -Werr*) WERROR_CFLAGS=-Werror ;;
16298 *) w="$w"
16299 case $w in
16300 -Wno-*)
16301 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16302 -Wformat-nonliteral)
16303 w="-Wformat $w"
16304 wtest="$w"
16307 wtest=$w ;;
16308 esac
16310 saved_CFLAGS="$CFLAGS"
16311 CFLAGS="$CFLAGS -Werror $wtest"
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16316 main ()
16320 return 0;
16322 _ACEOF
16323 if ac_fn_c_try_compile "$LINENO"; then :
16324 WARN_CFLAGS="${WARN_CFLAGS} $w"
16326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16327 CFLAGS="$saved_CFLAGS"
16329 esac
16330 done
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16332 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16334 BUILD_WARN_CFLAGS=$WARN_CFLAGS
16335 WARN_CFLAGS=$SAVE_WARN_CFLAGS
16336 BUILD_WERROR_CFLAGS=$WERROR_CFLAGS
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-shadow=local is supported" >&5
16341 $as_echo_n "checking whether -Wno-shadow=local is supported... " >&6; }
16342 w="-Wno-shadow=local"
16343 case $w in
16344 -Wno-*)
16345 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16346 -Wformat-nonliteral)
16347 w="-Wformat $w"
16348 wtest="$w"
16351 wtest=$w ;;
16352 esac
16354 saved_CFLAGS="$CFLAGS"
16355 CFLAGS="$CFLAGS -Werror $wtest"
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16360 main ()
16364 return 0;
16366 _ACEOF
16367 if ac_fn_c_try_compile "$LINENO"; then :
16368 SIM_CFLAG_WNO_SHADOW_LOCAL=-Wno-shadow=local
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16372 $as_echo "yes" >&6; }
16374 else
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376 $as_echo "no" >&6; }
16378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16379 CFLAGS="$saved_CFLAGS"
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-unused-but-set-variable is supported" >&5
16382 $as_echo_n "checking whether -Wno-unused-but-set-variable is supported... " >&6; }
16383 w="-Wno-unused-but-set-variable"
16384 case $w in
16385 -Wno-*)
16386 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16387 -Wformat-nonliteral)
16388 w="-Wformat $w"
16389 wtest="$w"
16392 wtest=$w ;;
16393 esac
16395 saved_CFLAGS="$CFLAGS"
16396 CFLAGS="$CFLAGS -Werror $wtest"
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16401 main ()
16405 return 0;
16407 _ACEOF
16408 if ac_fn_c_try_compile "$LINENO"; then :
16409 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413 $as_echo "yes" >&6; }
16415 else
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16417 $as_echo "no" >&6; }
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 CFLAGS="$saved_CFLAGS"
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16426 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16427 # Check whether --enable-sim-frv-trapdump was given.
16428 if test "${enable_sim_frv_trapdump+set}" = set; then :
16429 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16430 yes|no) ;;
16431 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16432 esac
16435 if test "x${enable_sim_frv_trapdump}" = xyes; then
16436 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16438 $as_echo "yes" >&6; }
16439 else
16440 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442 $as_echo "no" >&6; }
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
16448 $as_echo_n "checking mips subtarget... " >&6; }
16449 SIM_MIPS_SUBTARGET=
16450 case ${target} in #(
16451 mips64vr*-*-*) :
16452 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16453 mips*tx39*) :
16454 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
16455 mips*-sde-elf*) :
16456 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16457 mips*-mti-elf*) :
16458 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16459 mipsisa32*-*-*) :
16460 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16461 mipsisa64*-*-*) :
16462 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16463 *) :
16465 esac
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
16467 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
16471 $as_echo_n "checking mips bitsize... " >&6; }
16472 SIM_MIPS_BITSIZE=64
16473 case ${target} in #(
16474 mips*-sde-elf*) :
16475 SIM_MIPS_BITSIZE=64 ;; #(
16476 mips*-mti-elf*) :
16477 SIM_MIPS_BITSIZE=64 ;; #(
16478 mips64*-*-*) :
16479 SIM_MIPS_BITSIZE=64 ;; #(
16480 mips16*-*-*) :
16481 SIM_MIPS_BITSIZE=64 ;; #(
16482 mipsisa32*-*-*) :
16483 SIM_MIPS_BITSIZE=32 ;; #(
16484 mipsisa64*-*-*) :
16485 SIM_MIPS_BITSIZE=64 ;; #(
16486 mips*-*-*) :
16487 SIM_MIPS_BITSIZE=32 ;; #(
16488 *) :
16490 esac
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
16492 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
16496 $as_echo_n "checking mips fpu bitsize... " >&6; }
16497 SIM_MIPS_FPU_BITSIZE=64
16498 case ${target} in #(
16499 mips*tx39*) :
16500 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16501 mips*-sde-elf*) :
16502 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16503 mips*-mti-elf*) :
16504 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16505 mipsisa32*-*-*) :
16506 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16507 mipsisa64*-*-*) :
16508 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16509 mips*-*-*) :
16510 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16511 *) :
16513 esac
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
16515 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16518 SIM_MIPS_GEN=SINGLE
16519 sim_mips_single_machine="-M mipsIV"
16520 sim_mips_m16_machine="-M mips16,mipsIII"
16521 sim_mips_single_filter="32,64,f"
16522 sim_mips_m16_filter="16"
16523 case ${target} in #(
16524 mips*tx39*) :
16525 SIM_MIPS_GEN=SINGLE
16526 sim_mips_single_filter="32,f"
16527 sim_mips_single_machine="-M r3900" ;; #(
16528 mips64vr41*) :
16529 SIM_MIPS_GEN=M16
16530 sim_mips_single_machine="-M vr4100"
16531 sim_mips_m16_machine="-M vr4100" ;; #(
16532 mips64*) :
16533 SIM_MIPS_GEN=MULTI
16534 sim_mips_multi_configs="\
16535 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16536 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16537 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16538 vr5400:mipsIV,vr5400:32,64,f:mips5400\
16539 vr5500:mipsIV,vr5500:32,64,f:mips5500"
16540 sim_mips_multi_default=mips5000 ;; #(
16541 mips*-sde-elf* | mips*-mti-elf*) :
16542 SIM_MIPS_GEN=MULTI
16543 sim_mips_multi_configs="\
16544 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16545 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16546 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16547 sim_mips_multi_default=mipsisa64r2 ;; #(
16548 mips16*) :
16549 SIM_MIPS_GEN=M16 ;; #(
16550 mipsisa32r2*) :
16551 SIM_MIPS_GEN=MULTI
16552 sim_mips_multi_configs="\
16553 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16554 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16555 sim_mips_multi_default=mipsisa32r2 ;; #(
16556 mipsisa32r6*) :
16557 SIM_MIPS_GEN=SINGLE
16558 sim_mips_single_machine="-M mips32r6"
16559 sim_mips_single_filter="32,f" ;; #(
16560 mipsisa32*) :
16561 SIM_MIPS_GEN=M16
16562 sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips"
16563 sim_mips_m16_machine="-M mips16,mips16e,mips32"
16564 sim_mips_single_filter="32,f" ;; #(
16565 mipsisa64r2*) :
16566 SIM_MIPS_GEN=M16
16567 sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16568 sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #(
16569 mipsisa64r6*) :
16570 SIM_MIPS_GEN=SINGLE
16571 sim_mips_single_machine="-M mips64r6" ;; #(
16572 mipsisa64sb1*) :
16573 SIM_MIPS_GEN=SINGLE
16574 sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #(
16575 mipsisa64*) :
16576 SIM_MIPS_GEN=M16
16577 sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
16578 sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #(
16579 mips*lsi*) :
16580 SIM_MIPS_GEN=M16
16581 sim_mips_single_machine="-M mipsIII,mips16"
16582 sim_mips_m16_machine="-M mips16,mipsIII"
16583 sim_mips_single_filter="32,f" ;; #(
16584 mips*) :
16585 SIM_MIPS_GEN=SINGLE
16586 sim_mips_single_filter="32,f" ;; #(
16587 *) :
16589 esac
16591 SIM_MIPS_IGEN_ITABLE_FLAGS=
16592 SIM_MIPS_MULTI_SRC=
16593 SIM_MIPS_MULTI_OBJ=
16594 SIM_MIPS_MULTI_IGEN_CONFIGS=
16595 if test "x$SIM_MIPS_GEN" = x"MULTI"; then :
16596 if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16597 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16600 as_dir=mips; as_fn_mkdir_p
16601 rm -f mips/multi-include.h mips/multi-run.c
16602 sim_mips_seen_default=no
16604 cat << __EOF__ > mips/multi-run.c
16605 /* Main entry point for MULTI simulators.
16606 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16608 This program is free software; you can redistribute it and/or modify
16609 it under the terms of the GNU General Public License as published by
16610 the Free Software Foundation; either version 3 of the License, or
16611 (at your option) any later version.
16613 This program is distributed in the hope that it will be useful,
16614 but WITHOUT ANY WARRANTY; without even the implied warranty of
16615 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16616 GNU General Public License for more details.
16618 You should have received a copy of the GNU General Public License
16619 along with this program. If not, see <http://www.gnu.org/licenses/>.
16623 This file was generated by sim/mips/configure. */
16625 #include "sim-main.h"
16626 #include "multi-include.h"
16627 #include "bfd/elf-bfd.h"
16628 #include "bfd/elfxx-mips.h"
16629 #include "elf/mips.h"
16631 #define SD sd
16632 #define CPU cpu
16634 void
16635 sim_engine_run (SIM_DESC sd,
16636 int next_cpu_nr,
16637 int nr_cpus,
16638 int signal) /* ignore */
16640 int mach;
16642 if (STATE_ARCHITECTURE (sd) == NULL)
16643 mach = bfd_mach_${sim_mips_multi_default};
16644 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16645 & EF_MIPS_ARCH_ASE_MICROMIPS)
16646 mach = bfd_mach_mips_micromips;
16647 else
16649 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16650 if (!mach)
16651 mach = STATE_ARCHITECTURE (SD)->mach;
16654 switch (mach)
16656 __EOF__
16658 for fc in ${sim_mips_multi_configs}; do
16660 c=`echo ${fc} | sed 's/:[^:]*$//'`
16661 bfdmachs=`echo ${fc} | sed 's/.*://'`
16662 name=`echo ${c} | sed 's/:.*//'`
16663 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16664 filter=`echo ${c} | sed 's/.*://'`
16666 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
16668 case ${c} in #(
16669 *:*mips16*:*) :
16670 ws="m32 m16"
16672 as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c"
16673 as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o"
16674 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
16675 ;; #(
16676 *:*micromips32*:*) :
16677 ws="micromips_m32 micromips16 micromips32"
16679 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16680 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16681 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
16682 ;; #(
16683 *:*micromips64*:*) :
16684 ws="micromips_m64 micromips16 micromips64"
16686 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16687 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16688 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
16689 ;; #(
16690 *) :
16691 ws=m32 ;;
16692 esac
16694 for w in ${ws}; do
16695 for base in engine icache idecode model semantics support; do
16696 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c"
16697 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h"
16698 as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o"
16699 done
16700 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
16701 done
16703 echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
16705 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16706 echo " case bfd_mach_${mach}:" >> mips/multi-run.c
16707 if test "x$mach" = x"${sim_mips_multi_default}"; then :
16708 echo " default:" >> mips/multi-run.c
16709 sim_mips_seen_default=yes
16712 done
16713 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16714 >> mips/multi-run.c
16715 echo " break;" >> mips/multi-run.c
16716 done
16718 if test "x$sim_mips_seen_default" = xno; then :
16719 as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16722 cat << __EOF__ >> mips/multi-run.c
16725 __EOF__
16727 else
16728 SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)'
16729 if test "x$SIM_MIPS_GEN" = x"M16"; then :
16730 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)'
16734 SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
16735 SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
16743 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16744 SIM_MIPS_GEN_MODE_SINGLE_TRUE=
16745 SIM_MIPS_GEN_MODE_SINGLE_FALSE='#'
16746 else
16747 SIM_MIPS_GEN_MODE_SINGLE_TRUE='#'
16748 SIM_MIPS_GEN_MODE_SINGLE_FALSE=
16751 if test "$SIM_MIPS_GEN" = "M16"; then
16752 SIM_MIPS_GEN_MODE_M16_TRUE=
16753 SIM_MIPS_GEN_MODE_M16_FALSE='#'
16754 else
16755 SIM_MIPS_GEN_MODE_M16_TRUE='#'
16756 SIM_MIPS_GEN_MODE_M16_FALSE=
16759 if test "$SIM_MIPS_GEN" = "MULTI"; then
16760 SIM_MIPS_GEN_MODE_MULTI_TRUE=
16761 SIM_MIPS_GEN_MODE_MULTI_FALSE='#'
16762 else
16763 SIM_MIPS_GEN_MODE_MULTI_TRUE='#'
16764 SIM_MIPS_GEN_MODE_MULTI_FALSE=
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc bitsize settings" >&5
16769 $as_echo_n "checking for sim ppc bitsize settings... " >&6; }
16770 # Check whether --enable-sim-ppc-bitsize was given.
16771 if test "${enable_sim_ppc_bitsize+set}" = set; then :
16772 enableval=$enable_sim_ppc_bitsize; case "${enableval}" in
16773 32|64) sim_ppc_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
16774 *) as_fn_error $? "\"--enable-sim-ppc-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5;;
16775 esac
16776 else
16777 sim_ppc_bitsize=""
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_bitsize" >&5
16781 $as_echo "$sim_ppc_bitsize" >&6; }
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc decode mechanism" >&5
16784 $as_echo_n "checking for sim ppc decode mechanism... " >&6; }
16785 # Check whether --enable-sim-ppc-decode-mechanism was given.
16786 if test "${enable_sim_ppc_decode_mechanism+set}" = set; then :
16787 enableval=$enable_sim_ppc_decode_mechanism; case "${enableval}" in
16788 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-decode-mechanism=file\"" "$LINENO" 5;;
16789 array|switch|padded-switch|goto-switch) sim_ppc_decode_mechanism="-T ${enableval}";;
16790 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;;
16791 esac
16792 else
16793 sim_ppc_decode_mechanism=""
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_decode_mechanism" >&5
16797 $as_echo "$sim_ppc_decode_mechanism" >&6; }
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc default model" >&5
16800 $as_echo_n "checking for sim ppc default model... " >&6; }
16801 # Check whether --enable-sim-ppc-default-model was given.
16802 if test "${enable_sim_ppc_default_model+set}" = set; then :
16803 enableval=$enable_sim_ppc_default_model; case "${enableval}" in
16804 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-default-model=model\"" "$LINENO" 5;;
16805 *) sim_ppc_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
16806 esac
16807 else
16808 sim_ppc_default_model=""
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_default_model" >&5
16812 $as_echo "$sim_ppc_default_model" >&6; }
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc duplicate settings" >&5
16815 $as_echo_n "checking for sim ppc duplicate settings... " >&6; }
16816 # Check whether --enable-sim-ppc-duplicate was given.
16817 if test "${enable_sim_ppc_duplicate+set}" = set; then :
16818 enableval=$enable_sim_ppc_duplicate; case "${enableval}" in
16819 yes) sim_ppc_dup="-E";;
16820 no) sim_ppc_dup="";;
16821 *) as_fn_error $? "\"--enable-sim-ppc-duplicate does not take a value\"" "$LINENO" 5;;
16822 esac
16823 else
16824 sim_ppc_dup="-E"
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_dup" >&5
16828 $as_echo "$sim_ppc_dup" >&6; }
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc filter rules" >&5
16831 $as_echo_n "checking for sim ppc filter rules... " >&6; }
16832 # Check whether --enable-sim-ppc-filter was given.
16833 if test "${enable_sim_ppc_filter+set}" = set; then :
16834 enableval=$enable_sim_ppc_filter; case "${enableval}" in
16835 yes) as_fn_error $? "\"--enable-sim-ppc-filter must be specified with a rule to filter or no\"" "$LINENO" 5;;
16836 no) sim_ppc_filter="";;
16837 *) sim_ppc_filter="-F $enableval";;
16838 esac
16839 else
16840 sim_ppc_filter="-F 32,f,o"
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_filter" >&5
16844 $as_echo "$sim_ppc_filter" >&6; }
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc float settings" >&5
16847 $as_echo_n "checking for sim ppc float settings... " >&6; }
16848 # Check whether --enable-sim-ppc-float was given.
16849 if test "${enable_sim_ppc_float+set}" = set; then :
16850 enableval=$enable_sim_ppc_float; case "${enableval}" in
16851 yes | hard) sim_ppc_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
16852 no | soft) sim_ppc_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
16853 altivec) sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;;
16854 *spe*|*simd*) sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;;
16855 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-float\"" "$LINENO" 5;;
16856 esac
16857 else
16858 case "${target}" in
16859 *altivec*) sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;;
16860 *spe*|*simd*) sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;;
16861 *) sim_ppc_float=""
16862 esac
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_float" >&5
16866 $as_echo "$sim_ppc_float" >&6; }
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc hardware settings" >&5
16869 $as_echo_n "checking for sim ppc hardware settings... " >&6; }
16870 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide,sem,shm"
16871 # Check whether --enable-sim-ppc-hardware was given.
16872 if test "${enable_sim_ppc_hardware+set}" = set; then :
16873 enableval=$enable_sim_ppc_hardware; case "${enableval}" in
16874 yes) ;;
16875 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-ppc-hardware\"" "$LINENO" 5;;
16876 ,*) hardware="${hardware}${enableval}";;
16877 *,) hardware="${enableval}${hardware}";;
16878 *) hardware="${enableval}"'';;
16879 esac
16882 sim_ppc_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
16883 sim_ppc_hw_obj=`echo $sim_ppc_hw_src | sed -e 's/\.c/.o/g'`
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardware" >&5
16885 $as_echo "$hardware" >&6; }
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc icache settings" >&5
16888 $as_echo_n "checking for sim ppc icache settings... " >&6; }
16889 # Check whether --enable-sim-ppc-icache was given.
16890 if test "${enable_sim_ppc_icache+set}" = set; then :
16891 enableval=$enable_sim_ppc_icache; icache="-R"
16892 case "${enableval}" in
16893 yes) icache="1024"; sim_ppc_icache="-I $icache";;
16894 no) sim_ppc_icache="-R";;
16895 *) icache=1024
16896 sim_ppc_icache="-"
16897 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
16898 case "$x" in
16899 define) sim_ppc_icache="${sim_ppc_icache}R";;
16900 semantic) sim_ppc_icache="${sim_ppc_icache}C";;
16901 insn) sim_ppc_icache="${sim_ppc_icache}S";;
16902 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
16903 *) as_fn_error $? "\"Unknown value $x for --enable-sim-ppc-icache\"" "$LINENO" 5;;
16904 esac
16905 done
16906 sim_ppc_icache="${sim_ppc_icache}I $icache";;
16907 esac
16908 else
16909 sim_ppc_icache="-CSRI 1024"
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_icache" >&5
16913 $as_echo "$sim_ppc_icache" >&6; }
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc jump settings" >&5
16916 $as_echo_n "checking for sim ppc jump settings... " >&6; }
16917 # Check whether --enable-sim-ppc-jump was given.
16918 if test "${enable_sim_ppc_jump+set}" = set; then :
16919 enableval=$enable_sim_ppc_jump; case "${enableval}" in
16920 yes) sim_ppc_jump="-J";;
16921 no) sim_ppc_jump="";;
16922 *) as_fn_error $? "\"--enable-sim-ppc-jump does not take a value\"" "$LINENO" 5;;
16923 esac
16924 else
16925 sim_ppc_jump=""
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_jump" >&5
16929 $as_echo "$sim_ppc_jump" >&6; }
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc source debug line numbers" >&5
16932 $as_echo_n "checking for sim ppc source debug line numbers... " >&6; }
16933 # Check whether --enable-sim-ppc-line-nr was given.
16934 if test "${enable_sim_ppc_line_nr+set}" = set; then :
16935 enableval=$enable_sim_ppc_line_nr; case "${enableval}" in
16936 yes) sim_ppc_line_nr="";;
16937 no) sim_ppc_line_nr="-L";;
16938 *) as_fn_error $? "\"--enable-sim-ppc-line-nr does not take a value\"" "$LINENO" 5;;
16939 esac
16940 else
16941 sim_ppc_line_nr=""
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_line_nr" >&5
16945 $as_echo "$sim_ppc_line_nr" >&6; }
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model" >&5
16948 $as_echo_n "checking for sim ppc model... " >&6; }
16949 # Check whether --enable-sim-ppc-model was given.
16950 if test "${enable_sim_ppc_model+set}" = set; then :
16951 enableval=$enable_sim_ppc_model; case "${enableval}" in
16952 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-model=model\"" "$LINENO" 5;;
16953 *) sim_ppc_model="-DWITH_MODEL=${enableval}";;
16954 esac
16955 else
16956 sim_ppc_model=""
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model" >&5
16960 $as_echo "$sim_ppc_model" >&6; }
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model issue" >&5
16963 $as_echo_n "checking for sim ppc model issue... " >&6; }
16964 # Check whether --enable-sim-ppc-model-issue was given.
16965 if test "${enable_sim_ppc_model_issue+set}" = set; then :
16966 enableval=$enable_sim_ppc_model_issue; case "${enableval}" in
16967 yes) sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
16968 no) sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
16969 *) as_fn_error $? "\"--enable-sim-ppc-model-issue does not take a value\"" "$LINENO" 5;;
16970 esac
16971 else
16972 sim_ppc_model_issue=""
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model_issue" >&5
16976 $as_echo "$sim_ppc_model_issue" >&6; }
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc event monitoring" >&5
16979 $as_echo_n "checking for sim ppc event monitoring... " >&6; }
16980 # Check whether --enable-sim-ppc-monitor was given.
16981 if test "${enable_sim_ppc_monitor+set}" = set; then :
16982 enableval=$enable_sim_ppc_monitor; case "${enableval}" in
16983 yes) sim_ppc_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
16984 no) sim_ppc_monitor="-DWITH_MON=0";;
16985 instruction) sim_ppc_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
16986 memory) sim_ppc_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
16987 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-mon\"" "$LINENO" 5;;
16988 esac
16989 else
16990 sim_ppc_monitor=""
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_monitor" >&5
16994 $as_echo "$sim_ppc_monitor" >&6; }
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc opcode lookup settings" >&5
16997 $as_echo_n "checking for sim ppc opcode lookup settings... " >&6; }
16998 # Check whether --enable-sim-ppc-opcode was given.
16999 if test "${enable_sim_ppc_opcode+set}" = set; then :
17000 enableval=$enable_sim_ppc_opcode; case "${enableval}" in
17001 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-opcode=file\"" "$LINENO" 5;;
17002 *) if test -f "${srcdir}/${enableval}"; then
17003 sim_ppc_opcode="${enableval}"
17004 elif test -f "${srcdir}/dc-${enableval}"; then
17005 sim_ppc_opcode="dc-${enableval}"
17006 else
17007 as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5
17008 fi;;
17009 esac
17010 else
17011 sim_ppc_opcode="dc-complex"
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_opcode" >&5
17015 $as_echo "$sim_ppc_opcode" >&6; }
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc smp settings" >&5
17018 $as_echo_n "checking for sim ppc smp settings... " >&6; }
17019 # Check whether --enable-sim-ppc-smp was given.
17020 if test "${enable_sim_ppc_smp+set}" = set; then :
17021 enableval=$enable_sim_ppc_smp; case "${enableval}" in
17022 yes) sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5";;
17023 no) sim_ppc_smp="-DWITH_SMP=0" ; sim_ppc_igen_smp="-N 0";;
17024 *) sim_ppc_smp="-DWITH_SMP=$enableval" ; sim_ppc_igen_smp="-N $enableval";;
17025 esac
17026 else
17027 sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5"
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_smp" >&5
17031 $as_echo "$sim_ppc_smp" >&6; }
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc switch table settings" >&5
17034 $as_echo_n "checking for sim ppc switch table settings... " >&6; }
17035 # Check whether --enable-sim-ppc-switch was given.
17036 if test "${enable_sim_ppc_switch+set}" = set; then :
17037 enableval=$enable_sim_ppc_switch; case "${enableval}" in
17038 yes) sim_ppc_switch="-DWITH_SPREG_SWITCH_TABLE";;
17039 no) sim_ppc_switch="";;
17040 *) as_fn_error $? "\"--enable-sim-ppc-switch does not take a value\"" "$LINENO" 5;;
17041 esac
17042 else
17043 sim_ppc_switch=""
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_switch" >&5
17047 $as_echo "$sim_ppc_switch" >&6; }
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc timebase" >&5
17050 $as_echo_n "checking for sim ppc timebase... " >&6; }
17051 # Check whether --enable-sim-ppc-timebase was given.
17052 if test "${enable_sim_ppc_timebase+set}" = set; then :
17053 enableval=$enable_sim_ppc_timebase; case "${enableval}" in
17054 yes) sim_ppc_timebase="-DWITH_TIME_BASE=1";;
17055 no) sim_ppc_timebase="-DWITH_TIME_BASE=0";;
17056 *) as_fn_error $? "\"--enable-sim-ppc-timebase does not take a value\"" "$LINENO" 5;;
17057 esac
17058 else
17059 sim_ppc_timebase=""
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_timebase" >&5
17063 $as_echo "$sim_ppc_timebase" >&6; }
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc xor endian settings" >&5
17066 $as_echo_n "checking for sim ppc xor endian settings... " >&6; }
17067 # Check whether --enable-sim-ppc-xor-endian was given.
17068 if test "${enable_sim_ppc_xor_endian+set}" = set; then :
17069 enableval=$enable_sim_ppc_xor_endian; case "${enableval}" in
17070 yes) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=8";;
17071 no) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=0";;
17072 *) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
17073 esac
17074 else
17075 sim_ppc_xor_endian=""
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_xor_endian" >&5
17079 $as_echo "$sim_ppc_xor_endian" >&6; }
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
17103 $as_echo_n "checking riscv bitsize... " >&6; }
17104 SIM_RISCV_BITSIZE=64
17105 case $target in #(
17106 riscv32*) :
17107 SIM_RISCV_BITSIZE=32 ;; #(
17108 *) :
17110 esac
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
17112 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
17116 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
17117 # Check whether --enable-sim-rx-cycle-accurate was given.
17118 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
17119 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
17120 yes | no) ;;
17121 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
17122 esac
17125 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
17126 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17128 $as_echo "yes" >&6; }
17129 else
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17136 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
17138 cat >confcache <<\_ACEOF
17139 # This file is a shell script that caches the results of configure
17140 # tests run on this system so they can be shared between configure
17141 # scripts and configure runs, see configure's option --config-cache.
17142 # It is not useful on other systems. If it contains results you don't
17143 # want to keep, you may remove or edit it.
17145 # config.status only pays attention to the cache file if you give it
17146 # the --recheck option to rerun configure.
17148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17150 # following values.
17152 _ACEOF
17154 # The following way of writing the cache mishandles newlines in values,
17155 # but we know of no workaround that is simple, portable, and efficient.
17156 # So, we kill variables containing newlines.
17157 # Ultrix sh set writes to stderr and can't be redirected directly,
17158 # and sets the high bit in the cache file unless we assign to the vars.
17160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17161 eval ac_val=\$$ac_var
17162 case $ac_val in #(
17163 *${as_nl}*)
17164 case $ac_var in #(
17165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17167 esac
17168 case $ac_var in #(
17169 _ | IFS | as_nl) ;; #(
17170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17171 *) { eval $ac_var=; unset $ac_var;} ;;
17172 esac ;;
17173 esac
17174 done
17176 (set) 2>&1 |
17177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17178 *${as_nl}ac_space=\ *)
17179 # `set' does not quote correctly, so add quotes: double-quote
17180 # substitution turns \\\\ into \\, and sed turns \\ into \.
17181 sed -n \
17182 "s/'/'\\\\''/g;
17183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17184 ;; #(
17186 # `set' quotes correctly as required by POSIX, so do not add quotes.
17187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17189 esac |
17190 sort
17192 sed '
17193 /^ac_cv_env_/b end
17194 t clear
17195 :clear
17196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17197 t end
17198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17199 :end' >>confcache
17200 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17201 if test -w "$cache_file"; then
17202 if test "x$cache_file" != "x/dev/null"; then
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17204 $as_echo "$as_me: updating cache $cache_file" >&6;}
17205 if test ! -f "$cache_file" || test -h "$cache_file"; then
17206 cat confcache >"$cache_file"
17207 else
17208 case $cache_file in #(
17209 */* | ?:*)
17210 mv -f confcache "$cache_file"$$ &&
17211 mv -f "$cache_file"$$ "$cache_file" ;; #(
17213 mv -f confcache "$cache_file" ;;
17214 esac
17217 else
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17219 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17222 rm -f confcache
17224 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17225 # Let make expand exec_prefix.
17226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17228 DEFS=-DHAVE_CONFIG_H
17230 ac_libobjs=
17231 ac_ltlibobjs=
17233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17234 # 1. Remove the extension, and $U if already installed.
17235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17236 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17238 # will be set to the directory where LIBOBJS objects are built.
17239 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17240 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17241 done
17242 LIBOBJS=$ac_libobjs
17244 LTLIBOBJS=$ac_ltlibobjs
17248 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17249 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17253 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17254 if test -n "$am_sleep_pid"; then
17255 # Hide warnings about reused PIDs.
17256 wait $am_sleep_pid 2>/dev/null
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17259 $as_echo "done" >&6; }
17260 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17261 as_fn_error $? "conditional \"AMDEP\" was never defined.
17262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17264 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17265 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17268 if test -n "$EXEEXT"; then
17269 am__EXEEXT_TRUE=
17270 am__EXEEXT_FALSE='#'
17271 else
17272 am__EXEEXT_TRUE='#'
17273 am__EXEEXT_FALSE=
17276 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
17277 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
17278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17280 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
17281 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
17282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17284 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
17285 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
17286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17288 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
17289 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
17290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17292 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
17293 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
17294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17296 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
17297 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
17298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17300 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
17301 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
17302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17304 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
17305 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
17306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17308 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
17309 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
17310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17312 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
17313 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
17314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17316 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
17317 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
17318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17320 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
17321 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
17322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17324 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
17325 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
17326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17328 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
17329 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
17330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17332 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
17333 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
17334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17336 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
17337 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
17338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17340 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
17341 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
17342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17344 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
17345 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
17346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17348 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
17349 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
17350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17352 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
17353 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
17354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17356 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
17357 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
17358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17360 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
17361 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
17362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17364 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
17365 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
17366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17368 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
17369 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
17370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17372 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
17373 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
17374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17376 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
17377 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
17378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17380 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
17381 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
17382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17384 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
17385 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
17386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17388 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
17389 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
17390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17392 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
17393 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
17394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17396 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
17397 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
17398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17400 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
17401 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
17402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17404 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
17405 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
17406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17408 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
17409 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
17410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17412 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
17413 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
17414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17416 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
17417 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
17418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17420 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
17421 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
17422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17425 : "${CONFIG_STATUS=./config.status}"
17426 ac_write_fail=0
17427 ac_clean_files_save=$ac_clean_files
17428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17430 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17431 as_write_fail=0
17432 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17433 #! $SHELL
17434 # Generated by $as_me.
17435 # Run this file to recreate the current configuration.
17436 # Compiler output produced by configure, useful for debugging
17437 # configure, is in config.log if it exists.
17439 debug=false
17440 ac_cs_recheck=false
17441 ac_cs_silent=false
17443 SHELL=\${CONFIG_SHELL-$SHELL}
17444 export SHELL
17445 _ASEOF
17446 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17447 ## -------------------- ##
17448 ## M4sh Initialization. ##
17449 ## -------------------- ##
17451 # Be more Bourne compatible
17452 DUALCASE=1; export DUALCASE # for MKS sh
17453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17454 emulate sh
17455 NULLCMD=:
17456 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17457 # is contrary to our usage. Disable this feature.
17458 alias -g '${1+"$@"}'='"$@"'
17459 setopt NO_GLOB_SUBST
17460 else
17461 case `(set -o) 2>/dev/null` in #(
17462 *posix*) :
17463 set -o posix ;; #(
17464 *) :
17466 esac
17470 as_nl='
17472 export as_nl
17473 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17474 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17477 # Prefer a ksh shell builtin over an external printf program on Solaris,
17478 # but without wasting forks for bash or zsh.
17479 if test -z "$BASH_VERSION$ZSH_VERSION" \
17480 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17481 as_echo='print -r --'
17482 as_echo_n='print -rn --'
17483 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17484 as_echo='printf %s\n'
17485 as_echo_n='printf %s'
17486 else
17487 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17488 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17489 as_echo_n='/usr/ucb/echo -n'
17490 else
17491 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17492 as_echo_n_body='eval
17493 arg=$1;
17494 case $arg in #(
17495 *"$as_nl"*)
17496 expr "X$arg" : "X\\(.*\\)$as_nl";
17497 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17498 esac;
17499 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17501 export as_echo_n_body
17502 as_echo_n='sh -c $as_echo_n_body as_echo'
17504 export as_echo_body
17505 as_echo='sh -c $as_echo_body as_echo'
17508 # The user is always right.
17509 if test "${PATH_SEPARATOR+set}" != set; then
17510 PATH_SEPARATOR=:
17511 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17512 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17513 PATH_SEPARATOR=';'
17518 # IFS
17519 # We need space, tab and new line, in precisely that order. Quoting is
17520 # there to prevent editors from complaining about space-tab.
17521 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17522 # splitting by setting IFS to empty value.)
17523 IFS=" "" $as_nl"
17525 # Find who we are. Look in the path if we contain no directory separator.
17526 as_myself=
17527 case $0 in #((
17528 *[\\/]* ) as_myself=$0 ;;
17529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17530 for as_dir in $PATH
17532 IFS=$as_save_IFS
17533 test -z "$as_dir" && as_dir=.
17534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17535 done
17536 IFS=$as_save_IFS
17539 esac
17540 # We did not find ourselves, most probably we were run as `sh COMMAND'
17541 # in which case we are not to be found in the path.
17542 if test "x$as_myself" = x; then
17543 as_myself=$0
17545 if test ! -f "$as_myself"; then
17546 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17547 exit 1
17550 # Unset variables that we do not need and which cause bugs (e.g. in
17551 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17552 # suppresses any "Segmentation fault" message there. '((' could
17553 # trigger a bug in pdksh 5.2.14.
17554 for as_var in BASH_ENV ENV MAIL MAILPATH
17555 do eval test x\${$as_var+set} = xset \
17556 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17557 done
17558 PS1='$ '
17559 PS2='> '
17560 PS4='+ '
17562 # NLS nuisances.
17563 LC_ALL=C
17564 export LC_ALL
17565 LANGUAGE=C
17566 export LANGUAGE
17568 # CDPATH.
17569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17572 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17573 # ----------------------------------------
17574 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17575 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17576 # script with STATUS, using 1 if that was 0.
17577 as_fn_error ()
17579 as_status=$1; test $as_status -eq 0 && as_status=1
17580 if test "$4"; then
17581 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17582 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17584 $as_echo "$as_me: error: $2" >&2
17585 as_fn_exit $as_status
17586 } # as_fn_error
17589 # as_fn_set_status STATUS
17590 # -----------------------
17591 # Set $? to STATUS, without forking.
17592 as_fn_set_status ()
17594 return $1
17595 } # as_fn_set_status
17597 # as_fn_exit STATUS
17598 # -----------------
17599 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17600 as_fn_exit ()
17602 set +e
17603 as_fn_set_status $1
17604 exit $1
17605 } # as_fn_exit
17607 # as_fn_unset VAR
17608 # ---------------
17609 # Portably unset VAR.
17610 as_fn_unset ()
17612 { eval $1=; unset $1;}
17614 as_unset=as_fn_unset
17615 # as_fn_append VAR VALUE
17616 # ----------------------
17617 # Append the text in VALUE to the end of the definition contained in VAR. Take
17618 # advantage of any shell optimizations that allow amortized linear growth over
17619 # repeated appends, instead of the typical quadratic growth present in naive
17620 # implementations.
17621 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17622 eval 'as_fn_append ()
17624 eval $1+=\$2
17626 else
17627 as_fn_append ()
17629 eval $1=\$$1\$2
17631 fi # as_fn_append
17633 # as_fn_arith ARG...
17634 # ------------------
17635 # Perform arithmetic evaluation on the ARGs, and store the result in the
17636 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17637 # must be portable across $(()) and expr.
17638 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17639 eval 'as_fn_arith ()
17641 as_val=$(( $* ))
17643 else
17644 as_fn_arith ()
17646 as_val=`expr "$@" || test $? -eq 1`
17648 fi # as_fn_arith
17651 if expr a : '\(a\)' >/dev/null 2>&1 &&
17652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17653 as_expr=expr
17654 else
17655 as_expr=false
17658 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17659 as_basename=basename
17660 else
17661 as_basename=false
17664 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17665 as_dirname=dirname
17666 else
17667 as_dirname=false
17670 as_me=`$as_basename -- "$0" ||
17671 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17672 X"$0" : 'X\(//\)$' \| \
17673 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17674 $as_echo X/"$0" |
17675 sed '/^.*\/\([^/][^/]*\)\/*$/{
17676 s//\1/
17679 /^X\/\(\/\/\)$/{
17680 s//\1/
17683 /^X\/\(\/\).*/{
17684 s//\1/
17687 s/.*/./; q'`
17689 # Avoid depending upon Character Ranges.
17690 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17691 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17692 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17693 as_cr_digits='0123456789'
17694 as_cr_alnum=$as_cr_Letters$as_cr_digits
17696 ECHO_C= ECHO_N= ECHO_T=
17697 case `echo -n x` in #(((((
17698 -n*)
17699 case `echo 'xy\c'` in
17700 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17701 xy) ECHO_C='\c';;
17702 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17703 ECHO_T=' ';;
17704 esac;;
17706 ECHO_N='-n';;
17707 esac
17709 rm -f conf$$ conf$$.exe conf$$.file
17710 if test -d conf$$.dir; then
17711 rm -f conf$$.dir/conf$$.file
17712 else
17713 rm -f conf$$.dir
17714 mkdir conf$$.dir 2>/dev/null
17716 if (echo >conf$$.file) 2>/dev/null; then
17717 if ln -s conf$$.file conf$$ 2>/dev/null; then
17718 as_ln_s='ln -s'
17719 # ... but there are two gotchas:
17720 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17721 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17722 # In both cases, we have to default to `cp -pR'.
17723 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17724 as_ln_s='cp -pR'
17725 elif ln conf$$.file conf$$ 2>/dev/null; then
17726 as_ln_s=ln
17727 else
17728 as_ln_s='cp -pR'
17730 else
17731 as_ln_s='cp -pR'
17733 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17734 rmdir conf$$.dir 2>/dev/null
17737 # as_fn_mkdir_p
17738 # -------------
17739 # Create "$as_dir" as a directory, including parents if necessary.
17740 as_fn_mkdir_p ()
17743 case $as_dir in #(
17744 -*) as_dir=./$as_dir;;
17745 esac
17746 test -d "$as_dir" || eval $as_mkdir_p || {
17747 as_dirs=
17748 while :; do
17749 case $as_dir in #(
17750 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17751 *) as_qdir=$as_dir;;
17752 esac
17753 as_dirs="'$as_qdir' $as_dirs"
17754 as_dir=`$as_dirname -- "$as_dir" ||
17755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17756 X"$as_dir" : 'X\(//\)[^/]' \| \
17757 X"$as_dir" : 'X\(//\)$' \| \
17758 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17759 $as_echo X"$as_dir" |
17760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17761 s//\1/
17764 /^X\(\/\/\)[^/].*/{
17765 s//\1/
17768 /^X\(\/\/\)$/{
17769 s//\1/
17772 /^X\(\/\).*/{
17773 s//\1/
17776 s/.*/./; q'`
17777 test -d "$as_dir" && break
17778 done
17779 test -z "$as_dirs" || eval "mkdir $as_dirs"
17780 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17783 } # as_fn_mkdir_p
17784 if mkdir -p . 2>/dev/null; then
17785 as_mkdir_p='mkdir -p "$as_dir"'
17786 else
17787 test -d ./-p && rmdir ./-p
17788 as_mkdir_p=false
17792 # as_fn_executable_p FILE
17793 # -----------------------
17794 # Test if FILE is an executable regular file.
17795 as_fn_executable_p ()
17797 test -f "$1" && test -x "$1"
17798 } # as_fn_executable_p
17799 as_test_x='test -x'
17800 as_executable_p=as_fn_executable_p
17802 # Sed expression to map a string onto a valid CPP name.
17803 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17805 # Sed expression to map a string onto a valid variable name.
17806 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17809 exec 6>&1
17810 ## ----------------------------------- ##
17811 ## Main body of $CONFIG_STATUS script. ##
17812 ## ----------------------------------- ##
17813 _ASEOF
17814 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17817 # Save the log message, to keep $0 and so on meaningful, and to
17818 # report actual input values of CONFIG_FILES etc. instead of their
17819 # values after options handling.
17820 ac_log="
17821 This file was extended by sim $as_me 0, which was
17822 generated by GNU Autoconf 2.69. Invocation command line was
17824 CONFIG_FILES = $CONFIG_FILES
17825 CONFIG_HEADERS = $CONFIG_HEADERS
17826 CONFIG_LINKS = $CONFIG_LINKS
17827 CONFIG_COMMANDS = $CONFIG_COMMANDS
17828 $ $0 $@
17830 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17833 _ACEOF
17835 case $ac_config_files in *"
17836 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17837 esac
17839 case $ac_config_headers in *"
17840 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17841 esac
17844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17845 # Files that config.status was made for.
17846 config_files="$ac_config_files"
17847 config_headers="$ac_config_headers"
17848 config_commands="$ac_config_commands"
17850 _ACEOF
17852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17853 ac_cs_usage="\
17854 \`$as_me' instantiates files and other configuration actions
17855 from templates according to the current configuration. Unless the files
17856 and actions are specified as TAGs, all are instantiated by default.
17858 Usage: $0 [OPTION]... [TAG]...
17860 -h, --help print this help, then exit
17861 -V, --version print version number and configuration settings, then exit
17862 --config print configuration, then exit
17863 -q, --quiet, --silent
17864 do not print progress messages
17865 -d, --debug don't remove temporary files
17866 --recheck update $as_me by reconfiguring in the same conditions
17867 --file=FILE[:TEMPLATE]
17868 instantiate the configuration file FILE
17869 --header=FILE[:TEMPLATE]
17870 instantiate the configuration header FILE
17872 Configuration files:
17873 $config_files
17875 Configuration headers:
17876 $config_headers
17878 Configuration commands:
17879 $config_commands
17881 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17882 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17884 _ACEOF
17885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17886 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17887 ac_cs_version="\\
17888 sim config.status 0
17889 configured by $0, generated by GNU Autoconf 2.69,
17890 with options \\"\$ac_cs_config\\"
17892 Copyright (C) 2012 Free Software Foundation, Inc.
17893 This config.status script is free software; the Free Software Foundation
17894 gives unlimited permission to copy, distribute and modify it."
17896 ac_pwd='$ac_pwd'
17897 srcdir='$srcdir'
17898 INSTALL='$INSTALL'
17899 MKDIR_P='$MKDIR_P'
17900 AWK='$AWK'
17901 test -n "\$AWK" || AWK=awk
17902 _ACEOF
17904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17905 # The default lists apply if the user does not specify any file.
17906 ac_need_defaults=:
17907 while test $# != 0
17909 case $1 in
17910 --*=?*)
17911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17912 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17913 ac_shift=:
17915 --*=)
17916 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17917 ac_optarg=
17918 ac_shift=:
17921 ac_option=$1
17922 ac_optarg=$2
17923 ac_shift=shift
17925 esac
17927 case $ac_option in
17928 # Handling of the options.
17929 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17930 ac_cs_recheck=: ;;
17931 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17932 $as_echo "$ac_cs_version"; exit ;;
17933 --config | --confi | --conf | --con | --co | --c )
17934 $as_echo "$ac_cs_config"; exit ;;
17935 --debug | --debu | --deb | --de | --d | -d )
17936 debug=: ;;
17937 --file | --fil | --fi | --f )
17938 $ac_shift
17939 case $ac_optarg in
17940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17941 '') as_fn_error $? "missing file argument" ;;
17942 esac
17943 as_fn_append CONFIG_FILES " '$ac_optarg'"
17944 ac_need_defaults=false;;
17945 --header | --heade | --head | --hea )
17946 $ac_shift
17947 case $ac_optarg in
17948 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17949 esac
17950 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17951 ac_need_defaults=false;;
17952 --he | --h)
17953 # Conflict between --help and --header
17954 as_fn_error $? "ambiguous option: \`$1'
17955 Try \`$0 --help' for more information.";;
17956 --help | --hel | -h )
17957 $as_echo "$ac_cs_usage"; exit ;;
17958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17960 ac_cs_silent=: ;;
17962 # This is an error.
17963 -*) as_fn_error $? "unrecognized option: \`$1'
17964 Try \`$0 --help' for more information." ;;
17966 *) as_fn_append ac_config_targets " $1"
17967 ac_need_defaults=false ;;
17969 esac
17970 shift
17971 done
17973 ac_configure_extra_args=
17975 if $ac_cs_silent; then
17976 exec 6>/dev/null
17977 ac_configure_extra_args="$ac_configure_extra_args --silent"
17980 _ACEOF
17981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17982 if \$ac_cs_recheck; then
17983 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17984 shift
17985 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17986 CONFIG_SHELL='$SHELL'
17987 export CONFIG_SHELL
17988 exec "\$@"
17991 _ACEOF
17992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17993 exec 5>>config.log
17995 echo
17996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17997 ## Running $as_me. ##
17998 _ASBOX
17999 $as_echo "$ac_log"
18000 } >&5
18002 _ACEOF
18003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18005 # INIT-COMMANDS
18009 # The HP-UX ksh and POSIX shell print the target directory to stdout
18010 # if CDPATH is set.
18011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18013 sed_quote_subst='$sed_quote_subst'
18014 double_quote_subst='$double_quote_subst'
18015 delay_variable_subst='$delay_variable_subst'
18016 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18017 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18018 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18019 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18020 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18021 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18022 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18023 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18024 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18025 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18026 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18027 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18028 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18029 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18030 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18031 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18032 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18033 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18034 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18035 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18036 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18037 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18038 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18039 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18040 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18041 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18042 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18043 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18044 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18045 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18046 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18047 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18048 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18049 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18050 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18051 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18052 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18053 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18054 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18055 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18056 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18057 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18058 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18059 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18060 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18061 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18062 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18063 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18064 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"`'
18065 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18066 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18067 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18069 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18070 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18071 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18072 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18096 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18097 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18098 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18099 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18100 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18101 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18102 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18103 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18104 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18105 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18106 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18107 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18108 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18109 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18110 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18111 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18112 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18113 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18114 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18115 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18116 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18117 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18118 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18119 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18120 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18121 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18122 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18123 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18124 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18125 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18126 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18127 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18128 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18129 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18130 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18131 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18132 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18133 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18134 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18135 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18137 LTCC='$LTCC'
18138 LTCFLAGS='$LTCFLAGS'
18139 compiler='$compiler_DEFAULT'
18141 # A function that is used when there is no print builtin or printf.
18142 func_fallback_echo ()
18144 eval 'cat <<_LTECHO_EOF
18146 _LTECHO_EOF'
18149 # Quote evaled strings.
18150 for var in SHELL \
18151 ECHO \
18152 SED \
18153 GREP \
18154 EGREP \
18155 FGREP \
18156 LD \
18157 NM \
18158 LN_S \
18159 lt_SP2NL \
18160 lt_NL2SP \
18161 reload_flag \
18162 OBJDUMP \
18163 deplibs_check_method \
18164 file_magic_cmd \
18165 AR \
18166 AR_FLAGS \
18167 STRIP \
18168 RANLIB \
18169 CC \
18170 CFLAGS \
18171 compiler \
18172 lt_cv_sys_global_symbol_pipe \
18173 lt_cv_sys_global_symbol_to_cdecl \
18174 lt_cv_sys_global_symbol_to_c_name_address \
18175 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18176 lt_prog_compiler_no_builtin_flag \
18177 lt_prog_compiler_wl \
18178 lt_prog_compiler_pic \
18179 lt_prog_compiler_static \
18180 lt_cv_prog_compiler_c_o \
18181 need_locks \
18182 DSYMUTIL \
18183 NMEDIT \
18184 LIPO \
18185 OTOOL \
18186 OTOOL64 \
18187 shrext_cmds \
18188 export_dynamic_flag_spec \
18189 whole_archive_flag_spec \
18190 compiler_needs_object \
18191 with_gnu_ld \
18192 allow_undefined_flag \
18193 no_undefined_flag \
18194 hardcode_libdir_flag_spec \
18195 hardcode_libdir_flag_spec_ld \
18196 hardcode_libdir_separator \
18197 fix_srcfile_path \
18198 exclude_expsyms \
18199 include_expsyms \
18200 file_list_spec \
18201 variables_saved_for_relink \
18202 libname_spec \
18203 library_names_spec \
18204 soname_spec \
18205 install_override_mode \
18206 finish_eval \
18207 old_striplib \
18208 striplib; do
18209 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18210 *[\\\\\\\`\\"\\\$]*)
18211 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18214 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18216 esac
18217 done
18219 # Double-quote double-evaled strings.
18220 for var in reload_cmds \
18221 old_postinstall_cmds \
18222 old_postuninstall_cmds \
18223 old_archive_cmds \
18224 extract_expsyms_cmds \
18225 old_archive_from_new_cmds \
18226 old_archive_from_expsyms_cmds \
18227 archive_cmds \
18228 archive_expsym_cmds \
18229 module_cmds \
18230 module_expsym_cmds \
18231 export_symbols_cmds \
18232 prelink_cmds \
18233 postinstall_cmds \
18234 postuninstall_cmds \
18235 finish_cmds \
18236 sys_lib_search_path_spec \
18237 sys_lib_dlsearch_path_spec; do
18238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18239 *[\\\\\\\`\\"\\\$]*)
18240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18245 esac
18246 done
18248 ac_aux_dir='$ac_aux_dir'
18249 xsi_shell='$xsi_shell'
18250 lt_shell_append='$lt_shell_append'
18252 # See if we are running on zsh, and set the options which allow our
18253 # commands through without removal of \ escapes INIT.
18254 if test -n "\${ZSH_VERSION+set}" ; then
18255 setopt NO_GLOB_SUBST
18259 PACKAGE='$PACKAGE'
18260 VERSION='$VERSION'
18261 TIMESTAMP='$TIMESTAMP'
18262 RM='$RM'
18263 ofile='$ofile'
18267 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18269 _ACEOF
18271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18273 # Handling of arguments.
18274 for ac_config_target in $ac_config_targets
18276 case $ac_config_target in
18277 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18278 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18279 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18280 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
18281 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
18282 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
18283 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
18284 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
18285 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
18286 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
18287 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
18288 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
18289 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
18290 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
18291 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
18292 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
18293 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
18294 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
18295 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
18296 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
18297 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
18298 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
18299 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
18300 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
18301 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
18302 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
18303 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
18304 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
18305 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
18306 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
18307 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
18308 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
18309 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
18310 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
18311 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
18312 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18313 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
18315 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18316 esac
18317 done
18320 # If the user did not use the arguments to specify the items to instantiate,
18321 # then the envvar interface is used. Set only those that are not.
18322 # We use the long form for the default assignment because of an extremely
18323 # bizarre bug on SunOS 4.1.3.
18324 if $ac_need_defaults; then
18325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18330 # Have a temporary directory for convenience. Make it in the build tree
18331 # simply because there is no reason against having it here, and in addition,
18332 # creating and moving files from /tmp can sometimes cause problems.
18333 # Hook for its removal unless debugging.
18334 # Note that there is a small window in which the directory will not be cleaned:
18335 # after its creation but before its name has been assigned to `$tmp'.
18336 $debug ||
18338 tmp= ac_tmp=
18339 trap 'exit_status=$?
18340 : "${ac_tmp:=$tmp}"
18341 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18343 trap 'as_fn_exit 1' 1 2 13 15
18345 # Create a (secure) tmp directory for tmp files.
18348 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18349 test -d "$tmp"
18350 } ||
18352 tmp=./conf$$-$RANDOM
18353 (umask 077 && mkdir "$tmp")
18354 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18355 ac_tmp=$tmp
18357 # Set up the scripts for CONFIG_FILES section.
18358 # No need to generate them if there are no CONFIG_FILES.
18359 # This happens for instance with `./config.status config.h'.
18360 if test -n "$CONFIG_FILES"; then
18363 ac_cr=`echo X | tr X '\015'`
18364 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18365 # But we know of no other shell where ac_cr would be empty at this
18366 # point, so we can use a bashism as a fallback.
18367 if test "x$ac_cr" = x; then
18368 eval ac_cr=\$\'\\r\'
18370 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18371 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18372 ac_cs_awk_cr='\\r'
18373 else
18374 ac_cs_awk_cr=$ac_cr
18377 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18378 _ACEOF
18382 echo "cat >conf$$subs.awk <<_ACEOF" &&
18383 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18384 echo "_ACEOF"
18385 } >conf$$subs.sh ||
18386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18387 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18388 ac_delim='%!_!# '
18389 for ac_last_try in false false false false false :; do
18390 . ./conf$$subs.sh ||
18391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18393 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18394 if test $ac_delim_n = $ac_delim_num; then
18395 break
18396 elif $ac_last_try; then
18397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18398 else
18399 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18401 done
18402 rm -f conf$$subs.sh
18404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18405 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18406 _ACEOF
18407 sed -n '
18409 s/^/S["/; s/!.*/"]=/
18412 s/^[^!]*!//
18413 :repl
18414 t repl
18415 s/'"$ac_delim"'$//
18416 t delim
18419 s/\(.\{148\}\)..*/\1/
18420 t more1
18421 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18424 b repl
18425 :more1
18426 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18429 s/.\{148\}//
18430 t nl
18431 :delim
18433 s/\(.\{148\}\)..*/\1/
18434 t more2
18435 s/["\\]/\\&/g; s/^/"/; s/$/"/
18438 :more2
18439 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18442 s/.\{148\}//
18443 t delim
18444 ' <conf$$subs.awk | sed '
18445 /^[^""]/{
18447 s/\n//
18449 ' >>$CONFIG_STATUS || ac_write_fail=1
18450 rm -f conf$$subs.awk
18451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18452 _ACAWK
18453 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18454 for (key in S) S_is_set[key] = 1
18455 FS = "\a"
18459 line = $ 0
18460 nfields = split(line, field, "@")
18461 substed = 0
18462 len = length(field[1])
18463 for (i = 2; i < nfields; i++) {
18464 key = field[i]
18465 keylen = length(key)
18466 if (S_is_set[key]) {
18467 value = S[key]
18468 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18469 len += length(value) + length(field[++i])
18470 substed = 1
18471 } else
18472 len += 1 + keylen
18475 print line
18478 _ACAWK
18479 _ACEOF
18480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18481 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18482 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18483 else
18485 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18486 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18487 _ACEOF
18489 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18490 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18491 # trailing colons and then remove the whole line if VPATH becomes empty
18492 # (actually we leave an empty line to preserve line numbers).
18493 if test "x$srcdir" = x.; then
18494 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18496 s///
18497 s/^/:/
18498 s/[ ]*$/:/
18499 s/:\$(srcdir):/:/g
18500 s/:\${srcdir}:/:/g
18501 s/:@srcdir@:/:/g
18502 s/^:*//
18503 s/:*$//
18505 s/\(=[ ]*\).*/\1/
18507 s/\n//
18508 s/^[^=]*=[ ]*$//
18512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18513 fi # test -n "$CONFIG_FILES"
18515 # Set up the scripts for CONFIG_HEADERS section.
18516 # No need to generate them if there are no CONFIG_HEADERS.
18517 # This happens for instance with `./config.status Makefile'.
18518 if test -n "$CONFIG_HEADERS"; then
18519 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18520 BEGIN {
18521 _ACEOF
18523 # Transform confdefs.h into an awk script `defines.awk', embedded as
18524 # here-document in config.status, that substitutes the proper values into
18525 # config.h.in to produce config.h.
18527 # Create a delimiter string that does not exist in confdefs.h, to ease
18528 # handling of long lines.
18529 ac_delim='%!_!# '
18530 for ac_last_try in false false :; do
18531 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18532 if test -z "$ac_tt"; then
18533 break
18534 elif $ac_last_try; then
18535 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18536 else
18537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18539 done
18541 # For the awk script, D is an array of macro values keyed by name,
18542 # likewise P contains macro parameters if any. Preserve backslash
18543 # newline sequences.
18545 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18546 sed -n '
18547 s/.\{148\}/&'"$ac_delim"'/g
18548 t rset
18549 :rset
18550 s/^[ ]*#[ ]*define[ ][ ]*/ /
18551 t def
18553 :def
18554 s/\\$//
18555 t bsnl
18556 s/["\\]/\\&/g
18557 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18558 D["\1"]=" \3"/p
18559 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18561 :bsnl
18562 s/["\\]/\\&/g
18563 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18564 D["\1"]=" \3\\\\\\n"\\/p
18565 t cont
18566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18567 t cont
18569 :cont
18571 s/.\{148\}/&'"$ac_delim"'/g
18572 t clear
18573 :clear
18574 s/\\$//
18575 t bsnlc
18576 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18578 :bsnlc
18579 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18580 b cont
18581 ' <confdefs.h | sed '
18582 s/'"$ac_delim"'/"\\\
18583 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18586 for (key in D) D_is_set[key] = 1
18587 FS = "\a"
18589 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18590 line = \$ 0
18591 split(line, arg, " ")
18592 if (arg[1] == "#") {
18593 defundef = arg[2]
18594 mac1 = arg[3]
18595 } else {
18596 defundef = substr(arg[1], 2)
18597 mac1 = arg[2]
18599 split(mac1, mac2, "(") #)
18600 macro = mac2[1]
18601 prefix = substr(line, 1, index(line, defundef) - 1)
18602 if (D_is_set[macro]) {
18603 # Preserve the white space surrounding the "#".
18604 print prefix "define", macro P[macro] D[macro]
18605 next
18606 } else {
18607 # Replace #undef with comments. This is necessary, for example,
18608 # in the case of _POSIX_SOURCE, which is predefined and required
18609 # on some systems where configure will not decide to define it.
18610 if (defundef == "undef") {
18611 print "/*", prefix defundef, macro, "*/"
18612 next
18616 { print }
18617 _ACAWK
18618 _ACEOF
18619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18620 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18621 fi # test -n "$CONFIG_HEADERS"
18624 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18625 shift
18626 for ac_tag
18628 case $ac_tag in
18629 :[FHLC]) ac_mode=$ac_tag; continue;;
18630 esac
18631 case $ac_mode$ac_tag in
18632 :[FHL]*:*);;
18633 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18634 :[FH]-) ac_tag=-:-;;
18635 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18636 esac
18637 ac_save_IFS=$IFS
18638 IFS=:
18639 set x $ac_tag
18640 IFS=$ac_save_IFS
18641 shift
18642 ac_file=$1
18643 shift
18645 case $ac_mode in
18646 :L) ac_source=$1;;
18647 :[FH])
18648 ac_file_inputs=
18649 for ac_f
18651 case $ac_f in
18652 -) ac_f="$ac_tmp/stdin";;
18653 *) # Look for the file first in the build tree, then in the source tree
18654 # (if the path is not absolute). The absolute path cannot be DOS-style,
18655 # because $ac_f cannot contain `:'.
18656 test -f "$ac_f" ||
18657 case $ac_f in
18658 [\\/$]*) false;;
18659 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18660 esac ||
18661 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18662 esac
18663 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18664 as_fn_append ac_file_inputs " '$ac_f'"
18665 done
18667 # Let's still pretend it is `configure' which instantiates (i.e., don't
18668 # use $as_me), people would be surprised to read:
18669 # /* config.h. Generated by config.status. */
18670 configure_input='Generated from '`
18671 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18672 `' by configure.'
18673 if test x"$ac_file" != x-; then
18674 configure_input="$ac_file. $configure_input"
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18676 $as_echo "$as_me: creating $ac_file" >&6;}
18678 # Neutralize special characters interpreted by sed in replacement strings.
18679 case $configure_input in #(
18680 *\&* | *\|* | *\\* )
18681 ac_sed_conf_input=`$as_echo "$configure_input" |
18682 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18683 *) ac_sed_conf_input=$configure_input;;
18684 esac
18686 case $ac_tag in
18687 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18689 esac
18691 esac
18693 ac_dir=`$as_dirname -- "$ac_file" ||
18694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18695 X"$ac_file" : 'X\(//\)[^/]' \| \
18696 X"$ac_file" : 'X\(//\)$' \| \
18697 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18698 $as_echo X"$ac_file" |
18699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18700 s//\1/
18703 /^X\(\/\/\)[^/].*/{
18704 s//\1/
18707 /^X\(\/\/\)$/{
18708 s//\1/
18711 /^X\(\/\).*/{
18712 s//\1/
18715 s/.*/./; q'`
18716 as_dir="$ac_dir"; as_fn_mkdir_p
18717 ac_builddir=.
18719 case "$ac_dir" in
18720 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18723 # A ".." for each directory in $ac_dir_suffix.
18724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18725 case $ac_top_builddir_sub in
18726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18728 esac ;;
18729 esac
18730 ac_abs_top_builddir=$ac_pwd
18731 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18732 # for backward compatibility:
18733 ac_top_builddir=$ac_top_build_prefix
18735 case $srcdir in
18736 .) # We are building in place.
18737 ac_srcdir=.
18738 ac_top_srcdir=$ac_top_builddir_sub
18739 ac_abs_top_srcdir=$ac_pwd ;;
18740 [\\/]* | ?:[\\/]* ) # Absolute name.
18741 ac_srcdir=$srcdir$ac_dir_suffix;
18742 ac_top_srcdir=$srcdir
18743 ac_abs_top_srcdir=$srcdir ;;
18744 *) # Relative name.
18745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18746 ac_top_srcdir=$ac_top_build_prefix$srcdir
18747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18748 esac
18749 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18752 case $ac_mode in
18755 # CONFIG_FILE
18758 case $INSTALL in
18759 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18760 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18761 esac
18762 ac_MKDIR_P=$MKDIR_P
18763 case $MKDIR_P in
18764 [\\/$]* | ?:[\\/]* ) ;;
18765 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18766 esac
18767 _ACEOF
18769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18770 # If the template does not know about datarootdir, expand it.
18771 # FIXME: This hack should be removed a few years after 2.60.
18772 ac_datarootdir_hack=; ac_datarootdir_seen=
18773 ac_sed_dataroot='
18774 /datarootdir/ {
18778 /@datadir@/p
18779 /@docdir@/p
18780 /@infodir@/p
18781 /@localedir@/p
18782 /@mandir@/p'
18783 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18784 *datarootdir*) ac_datarootdir_seen=yes;;
18785 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18787 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18788 _ACEOF
18789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18790 ac_datarootdir_hack='
18791 s&@datadir@&$datadir&g
18792 s&@docdir@&$docdir&g
18793 s&@infodir@&$infodir&g
18794 s&@localedir@&$localedir&g
18795 s&@mandir@&$mandir&g
18796 s&\\\${datarootdir}&$datarootdir&g' ;;
18797 esac
18798 _ACEOF
18800 # Neutralize VPATH when `$srcdir' = `.'.
18801 # Shell code in configure.ac might set extrasub.
18802 # FIXME: do we really want to maintain this feature?
18803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18804 ac_sed_extra="$ac_vpsub
18805 $extrasub
18806 _ACEOF
18807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18810 s|@configure_input@|$ac_sed_conf_input|;t t
18811 s&@top_builddir@&$ac_top_builddir_sub&;t t
18812 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18813 s&@srcdir@&$ac_srcdir&;t t
18814 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18815 s&@top_srcdir@&$ac_top_srcdir&;t t
18816 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18817 s&@builddir@&$ac_builddir&;t t
18818 s&@abs_builddir@&$ac_abs_builddir&;t t
18819 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18820 s&@INSTALL@&$ac_INSTALL&;t t
18821 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18822 $ac_datarootdir_hack
18824 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18825 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18827 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18828 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18829 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18830 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18832 which seems to be undefined. Please make sure it is defined" >&5
18833 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18834 which seems to be undefined. Please make sure it is defined" >&2;}
18836 rm -f "$ac_tmp/stdin"
18837 case $ac_file in
18838 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18839 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18840 esac \
18841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18845 # CONFIG_HEADER
18847 if test x"$ac_file" != x-; then
18849 $as_echo "/* $configure_input */" \
18850 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18851 } >"$ac_tmp/config.h" \
18852 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18853 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18855 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18856 else
18857 rm -f "$ac_file"
18858 mv "$ac_tmp/config.h" "$ac_file" \
18859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18861 else
18862 $as_echo "/* $configure_input */" \
18863 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18864 || as_fn_error $? "could not create -" "$LINENO" 5
18866 # Compute "$ac_file"'s index in $config_headers.
18867 _am_arg="$ac_file"
18868 _am_stamp_count=1
18869 for _am_header in $config_headers :; do
18870 case $_am_header in
18871 $_am_arg | $_am_arg:* )
18872 break ;;
18874 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18875 esac
18876 done
18877 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18878 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18879 X"$_am_arg" : 'X\(//\)[^/]' \| \
18880 X"$_am_arg" : 'X\(//\)$' \| \
18881 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18882 $as_echo X"$_am_arg" |
18883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18884 s//\1/
18887 /^X\(\/\/\)[^/].*/{
18888 s//\1/
18891 /^X\(\/\/\)$/{
18892 s//\1/
18895 /^X\(\/\).*/{
18896 s//\1/
18899 s/.*/./; q'`/stamp-h$_am_stamp_count
18902 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18903 $as_echo "$as_me: executing $ac_file commands" >&6;}
18905 esac
18908 case $ac_file$ac_mode in
18909 "libtool":C)
18911 # See if we are running on zsh, and set the options which allow our
18912 # commands through without removal of \ escapes.
18913 if test -n "${ZSH_VERSION+set}" ; then
18914 setopt NO_GLOB_SUBST
18917 cfgfile="${ofile}T"
18918 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18919 $RM "$cfgfile"
18921 cat <<_LT_EOF >> "$cfgfile"
18922 #! $SHELL
18924 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18925 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18926 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18927 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18929 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18930 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18931 # Written by Gordon Matzigkeit, 1996
18933 # This file is part of GNU Libtool.
18935 # GNU Libtool is free software; you can redistribute it and/or
18936 # modify it under the terms of the GNU General Public License as
18937 # published by the Free Software Foundation; either version 2 of
18938 # the License, or (at your option) any later version.
18940 # As a special exception to the GNU General Public License,
18941 # if you distribute this file as part of a program or library that
18942 # is built using GNU Libtool, you may include this file under the
18943 # same distribution terms that you use for the rest of that program.
18945 # GNU Libtool is distributed in the hope that it will be useful,
18946 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18947 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18948 # GNU General Public License for more details.
18950 # You should have received a copy of the GNU General Public License
18951 # along with GNU Libtool; see the file COPYING. If not, a copy
18952 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18953 # obtained by writing to the Free Software Foundation, Inc.,
18954 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18957 # The names of the tagged configurations supported by this script.
18958 available_tags=""
18960 # ### BEGIN LIBTOOL CONFIG
18962 # Which release of libtool.m4 was used?
18963 macro_version=$macro_version
18964 macro_revision=$macro_revision
18966 # Whether or not to build shared libraries.
18967 build_libtool_libs=$enable_shared
18969 # Whether or not to build static libraries.
18970 build_old_libs=$enable_static
18972 # What type of objects to build.
18973 pic_mode=$pic_mode
18975 # Whether or not to optimize for fast installation.
18976 fast_install=$enable_fast_install
18978 # Shell to use when invoking shell scripts.
18979 SHELL=$lt_SHELL
18981 # An echo program that protects backslashes.
18982 ECHO=$lt_ECHO
18984 # The host system.
18985 host_alias=$host_alias
18986 host=$host
18987 host_os=$host_os
18989 # The build system.
18990 build_alias=$build_alias
18991 build=$build
18992 build_os=$build_os
18994 # A sed program that does not truncate output.
18995 SED=$lt_SED
18997 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18998 Xsed="\$SED -e 1s/^X//"
19000 # A grep program that handles long lines.
19001 GREP=$lt_GREP
19003 # An ERE matcher.
19004 EGREP=$lt_EGREP
19006 # A literal string matcher.
19007 FGREP=$lt_FGREP
19009 # A BSD- or MS-compatible name lister.
19010 NM=$lt_NM
19012 # Whether we need soft or hard links.
19013 LN_S=$lt_LN_S
19015 # What is the maximum length of a command?
19016 max_cmd_len=$max_cmd_len
19018 # Object file suffix (normally "o").
19019 objext=$ac_objext
19021 # Executable file suffix (normally "").
19022 exeext=$exeext
19024 # whether the shell understands "unset".
19025 lt_unset=$lt_unset
19027 # turn spaces into newlines.
19028 SP2NL=$lt_lt_SP2NL
19030 # turn newlines into spaces.
19031 NL2SP=$lt_lt_NL2SP
19033 # An object symbol dumper.
19034 OBJDUMP=$lt_OBJDUMP
19036 # Method to check whether dependent libraries are shared objects.
19037 deplibs_check_method=$lt_deplibs_check_method
19039 # Command to use when deplibs_check_method == "file_magic".
19040 file_magic_cmd=$lt_file_magic_cmd
19042 # The archiver.
19043 AR=$lt_AR
19044 AR_FLAGS=$lt_AR_FLAGS
19046 # A symbol stripping program.
19047 STRIP=$lt_STRIP
19049 # Commands used to install an old-style archive.
19050 RANLIB=$lt_RANLIB
19051 old_postinstall_cmds=$lt_old_postinstall_cmds
19052 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19054 # Whether to use a lock for old archive extraction.
19055 lock_old_archive_extraction=$lock_old_archive_extraction
19057 # A C compiler.
19058 LTCC=$lt_CC
19060 # LTCC compiler flags.
19061 LTCFLAGS=$lt_CFLAGS
19063 # Take the output of nm and produce a listing of raw symbols and C names.
19064 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19066 # Transform the output of nm in a proper C declaration.
19067 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19069 # Transform the output of nm in a C name address pair.
19070 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19072 # Transform the output of nm in a C name address pair when lib prefix is needed.
19073 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19075 # The name of the directory that contains temporary libtool files.
19076 objdir=$objdir
19078 # Used to examine libraries when file_magic_cmd begins with "file".
19079 MAGIC_CMD=$MAGIC_CMD
19081 # Must we lock files when doing compilation?
19082 need_locks=$lt_need_locks
19084 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19085 DSYMUTIL=$lt_DSYMUTIL
19087 # Tool to change global to local symbols on Mac OS X.
19088 NMEDIT=$lt_NMEDIT
19090 # Tool to manipulate fat objects and archives on Mac OS X.
19091 LIPO=$lt_LIPO
19093 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19094 OTOOL=$lt_OTOOL
19096 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19097 OTOOL64=$lt_OTOOL64
19099 # Old archive suffix (normally "a").
19100 libext=$libext
19102 # Shared library suffix (normally ".so").
19103 shrext_cmds=$lt_shrext_cmds
19105 # The commands to extract the exported symbol list from a shared archive.
19106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19108 # Variables whose values should be saved in libtool wrapper scripts and
19109 # restored at link time.
19110 variables_saved_for_relink=$lt_variables_saved_for_relink
19112 # Do we need the "lib" prefix for modules?
19113 need_lib_prefix=$need_lib_prefix
19115 # Do we need a version for libraries?
19116 need_version=$need_version
19118 # Library versioning type.
19119 version_type=$version_type
19121 # Shared library runtime path variable.
19122 runpath_var=$runpath_var
19124 # Shared library path variable.
19125 shlibpath_var=$shlibpath_var
19127 # Is shlibpath searched before the hard-coded library search path?
19128 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19130 # Format of library name prefix.
19131 libname_spec=$lt_libname_spec
19133 # List of archive names. First name is the real one, the rest are links.
19134 # The last name is the one that the linker finds with -lNAME
19135 library_names_spec=$lt_library_names_spec
19137 # The coded name of the library, if different from the real name.
19138 soname_spec=$lt_soname_spec
19140 # Permission mode override for installation of shared libraries.
19141 install_override_mode=$lt_install_override_mode
19143 # Command to use after installation of a shared archive.
19144 postinstall_cmds=$lt_postinstall_cmds
19146 # Command to use after uninstallation of a shared archive.
19147 postuninstall_cmds=$lt_postuninstall_cmds
19149 # Commands used to finish a libtool library installation in a directory.
19150 finish_cmds=$lt_finish_cmds
19152 # As "finish_cmds", except a single script fragment to be evaled but
19153 # not shown.
19154 finish_eval=$lt_finish_eval
19156 # Whether we should hardcode library paths into libraries.
19157 hardcode_into_libs=$hardcode_into_libs
19159 # Compile-time system search path for libraries.
19160 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19162 # Run-time system search path for libraries.
19163 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19165 # Whether dlopen is supported.
19166 dlopen_support=$enable_dlopen
19168 # Whether dlopen of programs is supported.
19169 dlopen_self=$enable_dlopen_self
19171 # Whether dlopen of statically linked programs is supported.
19172 dlopen_self_static=$enable_dlopen_self_static
19174 # Commands to strip libraries.
19175 old_striplib=$lt_old_striplib
19176 striplib=$lt_striplib
19179 # The linker used to build libraries.
19180 LD=$lt_LD
19182 # How to create reloadable object files.
19183 reload_flag=$lt_reload_flag
19184 reload_cmds=$lt_reload_cmds
19186 # Commands used to build an old-style archive.
19187 old_archive_cmds=$lt_old_archive_cmds
19189 # A language specific compiler.
19190 CC=$lt_compiler
19192 # Is the compiler the GNU compiler?
19193 with_gcc=$GCC
19195 # Compiler flag to turn off builtin functions.
19196 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19198 # How to pass a linker flag through the compiler.
19199 wl=$lt_lt_prog_compiler_wl
19201 # Additional compiler flags for building library objects.
19202 pic_flag=$lt_lt_prog_compiler_pic
19204 # Compiler flag to prevent dynamic linking.
19205 link_static_flag=$lt_lt_prog_compiler_static
19207 # Does compiler simultaneously support -c and -o options?
19208 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19210 # Whether or not to add -lc for building shared libraries.
19211 build_libtool_need_lc=$archive_cmds_need_lc
19213 # Whether or not to disallow shared libs when runtime libs are static.
19214 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19216 # Compiler flag to allow reflexive dlopens.
19217 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19219 # Compiler flag to generate shared objects directly from archives.
19220 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19222 # Whether the compiler copes with passing no objects directly.
19223 compiler_needs_object=$lt_compiler_needs_object
19225 # Create an old-style archive from a shared archive.
19226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19228 # Create a temporary old-style archive to link instead of a shared archive.
19229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19231 # Commands used to build a shared archive.
19232 archive_cmds=$lt_archive_cmds
19233 archive_expsym_cmds=$lt_archive_expsym_cmds
19235 # Commands used to build a loadable module if different from building
19236 # a shared archive.
19237 module_cmds=$lt_module_cmds
19238 module_expsym_cmds=$lt_module_expsym_cmds
19240 # Whether we are building with GNU ld or not.
19241 with_gnu_ld=$lt_with_gnu_ld
19243 # Flag that allows shared libraries with undefined symbols to be built.
19244 allow_undefined_flag=$lt_allow_undefined_flag
19246 # Flag that enforces no undefined symbols.
19247 no_undefined_flag=$lt_no_undefined_flag
19249 # Flag to hardcode \$libdir into a binary during linking.
19250 # This must work even if \$libdir does not exist
19251 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19253 # If ld is used when linking, flag to hardcode \$libdir into a binary
19254 # during linking. This must work even if \$libdir does not exist.
19255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19257 # Whether we need a single "-rpath" flag with a separated argument.
19258 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19260 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19261 # DIR into the resulting binary.
19262 hardcode_direct=$hardcode_direct
19264 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19265 # DIR into the resulting binary and the resulting library dependency is
19266 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19267 # library is relocated.
19268 hardcode_direct_absolute=$hardcode_direct_absolute
19270 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19271 # into the resulting binary.
19272 hardcode_minus_L=$hardcode_minus_L
19274 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19275 # into the resulting binary.
19276 hardcode_shlibpath_var=$hardcode_shlibpath_var
19278 # Set to "yes" if building a shared library automatically hardcodes DIR
19279 # into the library and all subsequent libraries and executables linked
19280 # against it.
19281 hardcode_automatic=$hardcode_automatic
19283 # Set to yes if linker adds runtime paths of dependent libraries
19284 # to runtime path list.
19285 inherit_rpath=$inherit_rpath
19287 # Whether libtool must link a program against all its dependency libraries.
19288 link_all_deplibs=$link_all_deplibs
19290 # Fix the shell variable \$srcfile for the compiler.
19291 fix_srcfile_path=$lt_fix_srcfile_path
19293 # Set to "yes" if exported symbols are required.
19294 always_export_symbols=$always_export_symbols
19296 # The commands to list exported symbols.
19297 export_symbols_cmds=$lt_export_symbols_cmds
19299 # Symbols that should not be listed in the preloaded symbols.
19300 exclude_expsyms=$lt_exclude_expsyms
19302 # Symbols that must always be exported.
19303 include_expsyms=$lt_include_expsyms
19305 # Commands necessary for linking programs (against libraries) with templates.
19306 prelink_cmds=$lt_prelink_cmds
19308 # Specify filename containing input files.
19309 file_list_spec=$lt_file_list_spec
19311 # How to hardcode a shared library path into an executable.
19312 hardcode_action=$hardcode_action
19314 # ### END LIBTOOL CONFIG
19316 _LT_EOF
19318 case $host_os in
19319 aix3*)
19320 cat <<\_LT_EOF >> "$cfgfile"
19321 # AIX sometimes has problems with the GCC collect2 program. For some
19322 # reason, if we set the COLLECT_NAMES environment variable, the problems
19323 # vanish in a puff of smoke.
19324 if test "X${COLLECT_NAMES+set}" != Xset; then
19325 COLLECT_NAMES=
19326 export COLLECT_NAMES
19328 _LT_EOF
19330 esac
19333 ltmain="$ac_aux_dir/ltmain.sh"
19336 # We use sed instead of cat because bash on DJGPP gets confused if
19337 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19338 # text mode, it properly converts lines to CR/LF. This bash problem
19339 # is reportedly fixed, but why not run on old versions too?
19340 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19341 || (rm -f "$cfgfile"; exit 1)
19343 case $xsi_shell in
19344 yes)
19345 cat << \_LT_EOF >> "$cfgfile"
19347 # func_dirname file append nondir_replacement
19348 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19349 # otherwise set result to NONDIR_REPLACEMENT.
19350 func_dirname ()
19352 case ${1} in
19353 */*) func_dirname_result="${1%/*}${2}" ;;
19354 * ) func_dirname_result="${3}" ;;
19355 esac
19358 # func_basename file
19359 func_basename ()
19361 func_basename_result="${1##*/}"
19364 # func_dirname_and_basename file append nondir_replacement
19365 # perform func_basename and func_dirname in a single function
19366 # call:
19367 # dirname: Compute the dirname of FILE. If nonempty,
19368 # add APPEND to the result, otherwise set result
19369 # to NONDIR_REPLACEMENT.
19370 # value returned in "$func_dirname_result"
19371 # basename: Compute filename of FILE.
19372 # value retuned in "$func_basename_result"
19373 # Implementation must be kept synchronized with func_dirname
19374 # and func_basename. For efficiency, we do not delegate to
19375 # those functions but instead duplicate the functionality here.
19376 func_dirname_and_basename ()
19378 case ${1} in
19379 */*) func_dirname_result="${1%/*}${2}" ;;
19380 * ) func_dirname_result="${3}" ;;
19381 esac
19382 func_basename_result="${1##*/}"
19385 # func_stripname prefix suffix name
19386 # strip PREFIX and SUFFIX off of NAME.
19387 # PREFIX and SUFFIX must not contain globbing or regex special
19388 # characters, hashes, percent signs, but SUFFIX may contain a leading
19389 # dot (in which case that matches only a dot).
19390 func_stripname ()
19392 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19393 # positional parameters, so assign one to ordinary parameter first.
19394 func_stripname_result=${3}
19395 func_stripname_result=${func_stripname_result#"${1}"}
19396 func_stripname_result=${func_stripname_result%"${2}"}
19399 # func_opt_split
19400 func_opt_split ()
19402 func_opt_split_opt=${1%%=*}
19403 func_opt_split_arg=${1#*=}
19406 # func_lo2o object
19407 func_lo2o ()
19409 case ${1} in
19410 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19411 *) func_lo2o_result=${1} ;;
19412 esac
19415 # func_xform libobj-or-source
19416 func_xform ()
19418 func_xform_result=${1%.*}.lo
19421 # func_arith arithmetic-term...
19422 func_arith ()
19424 func_arith_result=$(( $* ))
19427 # func_len string
19428 # STRING may not start with a hyphen.
19429 func_len ()
19431 func_len_result=${#1}
19434 _LT_EOF
19436 *) # Bourne compatible functions.
19437 cat << \_LT_EOF >> "$cfgfile"
19439 # func_dirname file append nondir_replacement
19440 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19441 # otherwise set result to NONDIR_REPLACEMENT.
19442 func_dirname ()
19444 # Extract subdirectory from the argument.
19445 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19446 if test "X$func_dirname_result" = "X${1}"; then
19447 func_dirname_result="${3}"
19448 else
19449 func_dirname_result="$func_dirname_result${2}"
19453 # func_basename file
19454 func_basename ()
19456 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19460 # func_stripname prefix suffix name
19461 # strip PREFIX and SUFFIX off of NAME.
19462 # PREFIX and SUFFIX must not contain globbing or regex special
19463 # characters, hashes, percent signs, but SUFFIX may contain a leading
19464 # dot (in which case that matches only a dot).
19465 # func_strip_suffix prefix name
19466 func_stripname ()
19468 case ${2} in
19469 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19470 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19471 esac
19474 # sed scripts:
19475 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19476 my_sed_long_arg='1s/^-[^=]*=//'
19478 # func_opt_split
19479 func_opt_split ()
19481 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19482 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19485 # func_lo2o object
19486 func_lo2o ()
19488 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19491 # func_xform libobj-or-source
19492 func_xform ()
19494 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19497 # func_arith arithmetic-term...
19498 func_arith ()
19500 func_arith_result=`expr "$@"`
19503 # func_len string
19504 # STRING may not start with a hyphen.
19505 func_len ()
19507 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19510 _LT_EOF
19511 esac
19513 case $lt_shell_append in
19514 yes)
19515 cat << \_LT_EOF >> "$cfgfile"
19517 # func_append var value
19518 # Append VALUE to the end of shell variable VAR.
19519 func_append ()
19521 eval "$1+=\$2"
19523 _LT_EOF
19526 cat << \_LT_EOF >> "$cfgfile"
19528 # func_append var value
19529 # Append VALUE to the end of shell variable VAR.
19530 func_append ()
19532 eval "$1=\$$1\$2"
19535 _LT_EOF
19537 esac
19540 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19541 || (rm -f "$cfgfile"; exit 1)
19543 mv -f "$cfgfile" "$ofile" ||
19544 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19545 chmod +x "$ofile"
19548 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19549 # Older Autoconf quotes --file arguments for eval, but not when files
19550 # are listed without --file. Let's play safe and only enable the eval
19551 # if we detect the quoting.
19552 case $CONFIG_FILES in
19553 *\'*) eval set x "$CONFIG_FILES" ;;
19554 *) set x $CONFIG_FILES ;;
19555 esac
19556 shift
19557 for mf
19559 # Strip MF so we end up with the name of the file.
19560 mf=`echo "$mf" | sed -e 's/:.*$//'`
19561 # Check whether this is an Automake generated Makefile or not.
19562 # We used to match only the files named 'Makefile.in', but
19563 # some people rename them; so instead we look at the file content.
19564 # Grep'ing the first line is not enough: some people post-process
19565 # each Makefile.in and add a new line on top of each file to say so.
19566 # Grep'ing the whole file is not good either: AIX grep has a line
19567 # limit of 2048, but all sed's we know have understand at least 4000.
19568 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19569 dirpart=`$as_dirname -- "$mf" ||
19570 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19571 X"$mf" : 'X\(//\)[^/]' \| \
19572 X"$mf" : 'X\(//\)$' \| \
19573 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19574 $as_echo X"$mf" |
19575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19576 s//\1/
19579 /^X\(\/\/\)[^/].*/{
19580 s//\1/
19583 /^X\(\/\/\)$/{
19584 s//\1/
19587 /^X\(\/\).*/{
19588 s//\1/
19591 s/.*/./; q'`
19592 else
19593 continue
19595 # Extract the definition of DEPDIR, am__include, and am__quote
19596 # from the Makefile without running 'make'.
19597 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19598 test -z "$DEPDIR" && continue
19599 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19600 test -z "$am__include" && continue
19601 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19602 # Find all dependency output files, they are included files with
19603 # $(DEPDIR) in their names. We invoke sed twice because it is the
19604 # simplest approach to changing $(DEPDIR) to its actual value in the
19605 # expansion.
19606 for file in `sed -n "
19607 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19608 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19609 # Make sure the directory exists.
19610 test -f "$dirpart/$file" && continue
19611 fdir=`$as_dirname -- "$file" ||
19612 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19613 X"$file" : 'X\(//\)[^/]' \| \
19614 X"$file" : 'X\(//\)$' \| \
19615 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19616 $as_echo X"$file" |
19617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19618 s//\1/
19621 /^X\(\/\/\)[^/].*/{
19622 s//\1/
19625 /^X\(\/\/\)$/{
19626 s//\1/
19629 /^X\(\/\).*/{
19630 s//\1/
19633 s/.*/./; q'`
19634 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19635 # echo "creating $dirpart/$file"
19636 echo '# dummy' > "$dirpart/$file"
19637 done
19638 done
19642 esac
19643 done # for ac_tag
19646 as_fn_exit 0
19647 _ACEOF
19648 ac_clean_files=$ac_clean_files_save
19650 test $ac_write_fail = 0 ||
19651 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19654 # configure is writing to config.log, and then calls config.status.
19655 # config.status does its own redirection, appending to config.log.
19656 # Unfortunately, on DOS this fails, as config.log is still kept open
19657 # by configure, so config.status won't be able to write to it; its
19658 # output is simply discarded. So we exec the FD to /dev/null,
19659 # effectively closing config.log, so it can be properly (re)opened and
19660 # appended to by config.status. When coming back to configure, we
19661 # need to make the FD available again.
19662 if test "$no_create" != yes; then
19663 ac_cs_success=:
19664 ac_config_status_args=
19665 test "$silent" = yes &&
19666 ac_config_status_args="$ac_config_status_args --quiet"
19667 exec 5>/dev/null
19668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19669 exec 5>>config.log
19670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19671 # would make configure fail if this is the last instruction.
19672 $ac_cs_success || as_fn_exit 1
19674 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19676 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}