]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: build: use Automake include vars
[thirdparty/binutils-gdb.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sim 0.
4 #
5 # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83
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"
90
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
97 do
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
103
104 ;;
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
110 fi
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
114 fi
115
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='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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
159 fi
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 *) :
175 ;;
176 esac
177 fi
178 "
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; }
184
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 :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
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
202
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
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
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
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
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
235 fi
236 fi
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
246
247
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
268 fi
269
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."
283 fi
284 exit 1
285 fi
286 fi
287 fi
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
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
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 ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
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/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
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"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
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 ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
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 ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
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 ()
421 {
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
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
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
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
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
448 fi
449
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/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
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
475
476
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 '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
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; }
499
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
510 }
511
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;;
521 *)
522 ECHO_N='-n';;
523 esac
524
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
531 fi
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'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
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
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
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'"
564
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'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
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`
578
579 #
580 # Initializations.
581 #
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=
590
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/'
598
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"
634
635 ac_header_list=
636 ac_func_list=
637 enable_option_checking=no
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 SIM_RX_CYCLE_ACCURATE_FLAGS
642 SIM_RISCV_BITSIZE
643 SIM_MIPS_GEN_MODE_MULTI_FALSE
644 SIM_MIPS_GEN_MODE_MULTI_TRUE
645 SIM_MIPS_GEN_MODE_M16_FALSE
646 SIM_MIPS_GEN_MODE_M16_TRUE
647 SIM_MIPS_GEN_MODE_SINGLE_FALSE
648 SIM_MIPS_GEN_MODE_SINGLE_TRUE
649 SIM_MIPS_MULTI_OBJ
650 SIM_MIPS_MULTI_SRC
651 SIM_MIPS_MULTI_IGEN_CONFIGS
652 SIM_MIPS_IGEN_ITABLE_FLAGS
653 SIM_MIPS_GEN
654 SIM_MIPS_M16_FLAGS
655 SIM_MIPS_SINGLE_FLAGS
656 SIM_MIPS_FPU_BITSIZE
657 SIM_MIPS_BITSIZE
658 SIM_MIPS_SUBTARGET
659 SIM_FRV_TRAPDUMP_FLAGS
660 sim_float
661 sim_bitsize
662 IGEN_FLAGS_SMP
663 SIM_INLINE
664 SIM_HW_SOCKSER
665 SIM_HW_CFLAGS
666 SIM_ENABLE_HW_FALSE
667 SIM_ENABLE_HW_TRUE
668 cgen
669 cgendir
670 CGEN_MAINT
671 ENABLE_SIM_FALSE
672 ENABLE_SIM_TRUE
673 SIM_ENABLE_IGEN_FALSE
674 SIM_ENABLE_IGEN_TRUE
675 SIM_ENABLE_ARCH_examples_FALSE
676 SIM_ENABLE_ARCH_examples_TRUE
677 CC_FOR_TARGET_EXAMPLE_SYNACOR
678 LD_FOR_TARGET_EXAMPLE_SYNACOR
679 AS_FOR_TARGET_EXAMPLE_SYNACOR
680 SIM_ENABLE_ARCH_v850_FALSE
681 SIM_ENABLE_ARCH_v850_TRUE
682 CC_FOR_TARGET_V850
683 LD_FOR_TARGET_V850
684 AS_FOR_TARGET_V850
685 SIM_ENABLE_ARCH_erc32_FALSE
686 SIM_ENABLE_ARCH_erc32_TRUE
687 CC_FOR_TARGET_ERC32
688 LD_FOR_TARGET_ERC32
689 AS_FOR_TARGET_ERC32
690 SIM_ENABLE_ARCH_sh_FALSE
691 SIM_ENABLE_ARCH_sh_TRUE
692 CC_FOR_TARGET_SH
693 LD_FOR_TARGET_SH
694 AS_FOR_TARGET_SH
695 SIM_ENABLE_ARCH_rx_FALSE
696 SIM_ENABLE_ARCH_rx_TRUE
697 CC_FOR_TARGET_RX
698 LD_FOR_TARGET_RX
699 AS_FOR_TARGET_RX
700 SIM_ENABLE_ARCH_rl78_FALSE
701 SIM_ENABLE_ARCH_rl78_TRUE
702 CC_FOR_TARGET_RL78
703 LD_FOR_TARGET_RL78
704 AS_FOR_TARGET_RL78
705 SIM_ENABLE_ARCH_riscv_FALSE
706 SIM_ENABLE_ARCH_riscv_TRUE
707 CC_FOR_TARGET_RISCV
708 LD_FOR_TARGET_RISCV
709 AS_FOR_TARGET_RISCV
710 SIM_ENABLE_ARCH_pru_FALSE
711 SIM_ENABLE_ARCH_pru_TRUE
712 CC_FOR_TARGET_PRU
713 LD_FOR_TARGET_PRU
714 AS_FOR_TARGET_PRU
715 SIM_ENABLE_ARCH_ppc_FALSE
716 SIM_ENABLE_ARCH_ppc_TRUE
717 CC_FOR_TARGET_PPC
718 LD_FOR_TARGET_PPC
719 AS_FOR_TARGET_PPC
720 subdirs
721 SIM_ENABLE_ARCH_or1k_FALSE
722 SIM_ENABLE_ARCH_or1k_TRUE
723 CC_FOR_TARGET_OR1K
724 LD_FOR_TARGET_OR1K
725 AS_FOR_TARGET_OR1K
726 SIM_ENABLE_ARCH_msp430_FALSE
727 SIM_ENABLE_ARCH_msp430_TRUE
728 CC_FOR_TARGET_MSP430
729 LD_FOR_TARGET_MSP430
730 AS_FOR_TARGET_MSP430
731 SIM_ENABLE_ARCH_moxie_FALSE
732 SIM_ENABLE_ARCH_moxie_TRUE
733 CC_FOR_TARGET_MOXIE
734 LD_FOR_TARGET_MOXIE
735 AS_FOR_TARGET_MOXIE
736 SIM_ENABLE_ARCH_mn10300_FALSE
737 SIM_ENABLE_ARCH_mn10300_TRUE
738 CC_FOR_TARGET_MN10300
739 LD_FOR_TARGET_MN10300
740 AS_FOR_TARGET_MN10300
741 SIM_ENABLE_ARCH_mips_FALSE
742 SIM_ENABLE_ARCH_mips_TRUE
743 CC_FOR_TARGET_MIPS
744 LD_FOR_TARGET_MIPS
745 AS_FOR_TARGET_MIPS
746 SIM_ENABLE_ARCH_microblaze_FALSE
747 SIM_ENABLE_ARCH_microblaze_TRUE
748 CC_FOR_TARGET_MICROBLAZE
749 LD_FOR_TARGET_MICROBLAZE
750 AS_FOR_TARGET_MICROBLAZE
751 SIM_ENABLE_ARCH_mcore_FALSE
752 SIM_ENABLE_ARCH_mcore_TRUE
753 CC_FOR_TARGET_MCORE
754 LD_FOR_TARGET_MCORE
755 AS_FOR_TARGET_MCORE
756 SIM_ENABLE_ARCH_m68hc11_FALSE
757 SIM_ENABLE_ARCH_m68hc11_TRUE
758 CC_FOR_TARGET_M68HC11
759 LD_FOR_TARGET_M68HC11
760 AS_FOR_TARGET_M68HC11
761 SIM_ENABLE_ARCH_m32r_FALSE
762 SIM_ENABLE_ARCH_m32r_TRUE
763 CC_FOR_TARGET_M32R
764 LD_FOR_TARGET_M32R
765 AS_FOR_TARGET_M32R
766 SIM_ENABLE_ARCH_m32c_FALSE
767 SIM_ENABLE_ARCH_m32c_TRUE
768 CC_FOR_TARGET_M32C
769 LD_FOR_TARGET_M32C
770 AS_FOR_TARGET_M32C
771 SIM_ENABLE_ARCH_lm32_FALSE
772 SIM_ENABLE_ARCH_lm32_TRUE
773 CC_FOR_TARGET_LM32
774 LD_FOR_TARGET_LM32
775 AS_FOR_TARGET_LM32
776 SIM_ENABLE_ARCH_iq2000_FALSE
777 SIM_ENABLE_ARCH_iq2000_TRUE
778 CC_FOR_TARGET_IQ2000
779 LD_FOR_TARGET_IQ2000
780 AS_FOR_TARGET_IQ2000
781 SIM_ENABLE_ARCH_h8300_FALSE
782 SIM_ENABLE_ARCH_h8300_TRUE
783 CC_FOR_TARGET_H8300
784 LD_FOR_TARGET_H8300
785 AS_FOR_TARGET_H8300
786 SIM_ENABLE_ARCH_ft32_FALSE
787 SIM_ENABLE_ARCH_ft32_TRUE
788 CC_FOR_TARGET_FT32
789 LD_FOR_TARGET_FT32
790 AS_FOR_TARGET_FT32
791 SIM_ENABLE_ARCH_frv_FALSE
792 SIM_ENABLE_ARCH_frv_TRUE
793 CC_FOR_TARGET_FRV
794 LD_FOR_TARGET_FRV
795 AS_FOR_TARGET_FRV
796 SIM_ENABLE_ARCH_d10v_FALSE
797 SIM_ENABLE_ARCH_d10v_TRUE
798 CC_FOR_TARGET_D10V
799 LD_FOR_TARGET_D10V
800 AS_FOR_TARGET_D10V
801 SIM_ENABLE_ARCH_cris_FALSE
802 SIM_ENABLE_ARCH_cris_TRUE
803 CC_FOR_TARGET_CRIS
804 LD_FOR_TARGET_CRIS
805 AS_FOR_TARGET_CRIS
806 SIM_ENABLE_ARCH_cr16_FALSE
807 SIM_ENABLE_ARCH_cr16_TRUE
808 CC_FOR_TARGET_CR16
809 LD_FOR_TARGET_CR16
810 AS_FOR_TARGET_CR16
811 SIM_ENABLE_ARCH_bpf_FALSE
812 SIM_ENABLE_ARCH_bpf_TRUE
813 CC_FOR_TARGET_BPF
814 LD_FOR_TARGET_BPF
815 AS_FOR_TARGET_BPF
816 SIM_ENABLE_ARCH_bfin_FALSE
817 SIM_ENABLE_ARCH_bfin_TRUE
818 CC_FOR_TARGET_BFIN
819 LD_FOR_TARGET_BFIN
820 AS_FOR_TARGET_BFIN
821 SIM_ENABLE_ARCH_avr_FALSE
822 SIM_ENABLE_ARCH_avr_TRUE
823 CC_FOR_TARGET_AVR
824 LD_FOR_TARGET_AVR
825 AS_FOR_TARGET_AVR
826 SIM_ENABLE_ARCH_arm_FALSE
827 SIM_ENABLE_ARCH_arm_TRUE
828 CC_FOR_TARGET_ARM
829 LD_FOR_TARGET_ARM
830 AS_FOR_TARGET_ARM
831 SIM_ENABLE_ARCH_aarch64_FALSE
832 SIM_ENABLE_ARCH_aarch64_TRUE
833 CC_FOR_TARGET_AARCH64
834 LD_FOR_TARGET_AARCH64
835 AS_FOR_TARGET_AARCH64
836 LD_FOR_TARGET
837 AS_FOR_TARGET
838 CC_FOR_TARGET
839 SIM_COMMON_BUILD_FALSE
840 SIM_COMMON_BUILD_TRUE
841 SIM_ENABLED_ARCHES
842 SIM_SUBDIRS
843 SIM_PRIMARY_TARGET
844 AM_BACKSLASH
845 AM_DEFAULT_VERBOSITY
846 AM_DEFAULT_V
847 AM_V
848 am__fastdepCC_FALSE
849 am__fastdepCC_TRUE
850 CCDEPMODE
851 am__nodep
852 AMDEPBACKSLASH
853 AMDEP_FALSE
854 AMDEP_TRUE
855 am__quote
856 am__include
857 DEPDIR
858 am__untar
859 am__tar
860 AMTAR
861 am__leading_dot
862 SET_MAKE
863 mkdir_p
864 MKDIR_P
865 INSTALL_STRIP_PROGRAM
866 install_sh
867 MAKEINFO
868 AUTOHEADER
869 AUTOMAKE
870 AUTOCONF
871 ACLOCAL
872 VERSION
873 PACKAGE
874 CYGPATH_W
875 am__isrc
876 MAINT
877 MAINTAINER_MODE_FALSE
878 MAINTAINER_MODE_TRUE
879 READLINE_CFLAGS
880 READLINE_LIB
881 TERMCAP_LIB
882 SDL_LIBS
883 SDL_CFLAGS
884 OTOOL64
885 OTOOL
886 LIPO
887 NMEDIT
888 DSYMUTIL
889 AWK
890 STRIP
891 OBJDUMP
892 LN_S
893 NM
894 ac_ct_DUMPBIN
895 DUMPBIN
896 LD
897 FGREP
898 SED
899 LIBTOOL
900 LIBOBJS
901 C_DIALECT
902 PKG_CONFIG_LIBDIR
903 PKG_CONFIG_PATH
904 PKG_CONFIG
905 RANLIB
906 AR
907 LDFLAGS_FOR_BUILD
908 CPPFLAGS_FOR_BUILD
909 CFLAGS_FOR_BUILD
910 RANLIB_FOR_BUILD
911 CC_FOR_BUILD
912 AR_FOR_BUILD
913 DTC
914 INSTALL_DATA
915 INSTALL_SCRIPT
916 INSTALL_PROGRAM
917 EGREP
918 GREP
919 CPP
920 OBJEXT
921 EXEEXT
922 ac_ct_CC
923 CPPFLAGS
924 LDFLAGS
925 CFLAGS
926 CC
927 target_os
928 target_vendor
929 target_cpu
930 target
931 host_os
932 host_vendor
933 host_cpu
934 host
935 build_os
936 build_vendor
937 build_cpu
938 build
939 REPORT_BUGS_TEXI
940 REPORT_BUGS_TO
941 PKGVERSION
942 target_alias
943 host_alias
944 build_alias
945 LIBS
946 ECHO_T
947 ECHO_N
948 ECHO_C
949 DEFS
950 mandir
951 localedir
952 libdir
953 psdir
954 pdfdir
955 dvidir
956 htmldir
957 infodir
958 docdir
959 oldincludedir
960 includedir
961 localstatedir
962 sharedstatedir
963 sysconfdir
964 datadir
965 datarootdir
966 libexecdir
967 sbindir
968 bindir
969 program_transform_name
970 prefix
971 exec_prefix
972 PACKAGE_URL
973 PACKAGE_BUGREPORT
974 PACKAGE_STRING
975 PACKAGE_VERSION
976 PACKAGE_TARNAME
977 PACKAGE_NAME
978 PATH_SEPARATOR
979 SHELL
980 SIM_TOOLCHAIN_VARS
981 WERROR_CFLAGS
982 WARN_CFLAGS'
983 ac_subst_files=''
984 ac_user_opts='
985 enable_option_checking
986 with_pkgversion
987 with_bugurl
988 enable_shared
989 enable_static
990 with_pic
991 enable_fast_install
992 with_gnu_ld
993 enable_libtool_lock
994 enable_maintainer_mode
995 enable_dependency_tracking
996 enable_silent_rules
997 enable_sim
998 enable_example_sims
999 enable_targets
1000 enable_sim_alignment
1001 enable_sim_assert
1002 enable_cgen_maint
1003 enable_sim_debug
1004 enable_sim_endian
1005 enable_sim_environment
1006 enable_sim_hardware
1007 enable_sim_inline
1008 enable_sim_profile
1009 enable_sim_reserved_bits
1010 enable_sim_scache
1011 enable_sim_smp
1012 enable_sim_stdio
1013 enable_sim_trace
1014 enable_werror
1015 enable_build_warnings
1016 enable_sim_build_warnings
1017 enable_sim_frv_trapdump
1018 enable_sim_rx_cycle_accurate
1019 '
1020 ac_precious_vars='build_alias
1021 host_alias
1022 target_alias
1023 CC
1024 CFLAGS
1025 LDFLAGS
1026 LIBS
1027 CPPFLAGS
1028 CPP
1029 PKG_CONFIG
1030 PKG_CONFIG_PATH
1031 PKG_CONFIG_LIBDIR
1032 SDL_CFLAGS
1033 SDL_LIBS
1034 AS_FOR_TARGET_AARCH64
1035 LD_FOR_TARGET_AARCH64
1036 CC_FOR_TARGET_AARCH64
1037 AS_FOR_TARGET_ARM
1038 LD_FOR_TARGET_ARM
1039 CC_FOR_TARGET_ARM
1040 AS_FOR_TARGET_AVR
1041 LD_FOR_TARGET_AVR
1042 CC_FOR_TARGET_AVR
1043 AS_FOR_TARGET_BFIN
1044 LD_FOR_TARGET_BFIN
1045 CC_FOR_TARGET_BFIN
1046 AS_FOR_TARGET_BPF
1047 LD_FOR_TARGET_BPF
1048 CC_FOR_TARGET_BPF
1049 AS_FOR_TARGET_CR16
1050 LD_FOR_TARGET_CR16
1051 CC_FOR_TARGET_CR16
1052 AS_FOR_TARGET_CRIS
1053 LD_FOR_TARGET_CRIS
1054 CC_FOR_TARGET_CRIS
1055 AS_FOR_TARGET_D10V
1056 LD_FOR_TARGET_D10V
1057 CC_FOR_TARGET_D10V
1058 AS_FOR_TARGET_FRV
1059 LD_FOR_TARGET_FRV
1060 CC_FOR_TARGET_FRV
1061 AS_FOR_TARGET_FT32
1062 LD_FOR_TARGET_FT32
1063 CC_FOR_TARGET_FT32
1064 AS_FOR_TARGET_H8300
1065 LD_FOR_TARGET_H8300
1066 CC_FOR_TARGET_H8300
1067 AS_FOR_TARGET_IQ2000
1068 LD_FOR_TARGET_IQ2000
1069 CC_FOR_TARGET_IQ2000
1070 AS_FOR_TARGET_LM32
1071 LD_FOR_TARGET_LM32
1072 CC_FOR_TARGET_LM32
1073 AS_FOR_TARGET_M32C
1074 LD_FOR_TARGET_M32C
1075 CC_FOR_TARGET_M32C
1076 AS_FOR_TARGET_M32R
1077 LD_FOR_TARGET_M32R
1078 CC_FOR_TARGET_M32R
1079 AS_FOR_TARGET_M68HC11
1080 LD_FOR_TARGET_M68HC11
1081 CC_FOR_TARGET_M68HC11
1082 AS_FOR_TARGET_MCORE
1083 LD_FOR_TARGET_MCORE
1084 CC_FOR_TARGET_MCORE
1085 AS_FOR_TARGET_MICROBLAZE
1086 LD_FOR_TARGET_MICROBLAZE
1087 CC_FOR_TARGET_MICROBLAZE
1088 AS_FOR_TARGET_MIPS
1089 LD_FOR_TARGET_MIPS
1090 CC_FOR_TARGET_MIPS
1091 AS_FOR_TARGET_MN10300
1092 LD_FOR_TARGET_MN10300
1093 CC_FOR_TARGET_MN10300
1094 AS_FOR_TARGET_MOXIE
1095 LD_FOR_TARGET_MOXIE
1096 CC_FOR_TARGET_MOXIE
1097 AS_FOR_TARGET_MSP430
1098 LD_FOR_TARGET_MSP430
1099 CC_FOR_TARGET_MSP430
1100 AS_FOR_TARGET_OR1K
1101 LD_FOR_TARGET_OR1K
1102 CC_FOR_TARGET_OR1K
1103 AS_FOR_TARGET_PPC
1104 LD_FOR_TARGET_PPC
1105 CC_FOR_TARGET_PPC
1106 AS_FOR_TARGET_PRU
1107 LD_FOR_TARGET_PRU
1108 CC_FOR_TARGET_PRU
1109 AS_FOR_TARGET_RISCV
1110 LD_FOR_TARGET_RISCV
1111 CC_FOR_TARGET_RISCV
1112 AS_FOR_TARGET_RL78
1113 LD_FOR_TARGET_RL78
1114 CC_FOR_TARGET_RL78
1115 AS_FOR_TARGET_RX
1116 LD_FOR_TARGET_RX
1117 CC_FOR_TARGET_RX
1118 AS_FOR_TARGET_SH
1119 LD_FOR_TARGET_SH
1120 CC_FOR_TARGET_SH
1121 AS_FOR_TARGET_ERC32
1122 LD_FOR_TARGET_ERC32
1123 CC_FOR_TARGET_ERC32
1124 AS_FOR_TARGET_V850
1125 LD_FOR_TARGET_V850
1126 CC_FOR_TARGET_V850
1127 AS_FOR_TARGET_EXAMPLE_SYNACOR
1128 LD_FOR_TARGET_EXAMPLE_SYNACOR
1129 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1130 ac_subdirs_all='ppc'
1131
1132 # Initialize some variables set by options.
1133 ac_init_help=
1134 ac_init_version=false
1135 ac_unrecognized_opts=
1136 ac_unrecognized_sep=
1137 # The variables have the same names as the options, with
1138 # dashes changed to underlines.
1139 cache_file=/dev/null
1140 exec_prefix=NONE
1141 no_create=
1142 no_recursion=
1143 prefix=NONE
1144 program_prefix=NONE
1145 program_suffix=NONE
1146 program_transform_name=s,x,x,
1147 silent=
1148 site=
1149 srcdir=
1150 verbose=
1151 x_includes=NONE
1152 x_libraries=NONE
1153
1154 # Installation directory options.
1155 # These are left unexpanded so users can "make install exec_prefix=/foo"
1156 # and all the variables that are supposed to be based on exec_prefix
1157 # by default will actually change.
1158 # Use braces instead of parens because sh, perl, etc. also accept them.
1159 # (The list follows the same order as the GNU Coding Standards.)
1160 bindir='${exec_prefix}/bin'
1161 sbindir='${exec_prefix}/sbin'
1162 libexecdir='${exec_prefix}/libexec'
1163 datarootdir='${prefix}/share'
1164 datadir='${datarootdir}'
1165 sysconfdir='${prefix}/etc'
1166 sharedstatedir='${prefix}/com'
1167 localstatedir='${prefix}/var'
1168 includedir='${prefix}/include'
1169 oldincludedir='/usr/include'
1170 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1171 infodir='${datarootdir}/info'
1172 htmldir='${docdir}'
1173 dvidir='${docdir}'
1174 pdfdir='${docdir}'
1175 psdir='${docdir}'
1176 libdir='${exec_prefix}/lib'
1177 localedir='${datarootdir}/locale'
1178 mandir='${datarootdir}/man'
1179
1180 ac_prev=
1181 ac_dashdash=
1182 for ac_option
1183 do
1184 # If the previous option needs an argument, assign it.
1185 if test -n "$ac_prev"; then
1186 eval $ac_prev=\$ac_option
1187 ac_prev=
1188 continue
1189 fi
1190
1191 case $ac_option in
1192 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1193 *=) ac_optarg= ;;
1194 *) ac_optarg=yes ;;
1195 esac
1196
1197 # Accept the important Cygnus configure options, so we can diagnose typos.
1198
1199 case $ac_dashdash$ac_option in
1200 --)
1201 ac_dashdash=yes ;;
1202
1203 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1204 ac_prev=bindir ;;
1205 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1206 bindir=$ac_optarg ;;
1207
1208 -build | --build | --buil | --bui | --bu)
1209 ac_prev=build_alias ;;
1210 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1211 build_alias=$ac_optarg ;;
1212
1213 -cache-file | --cache-file | --cache-fil | --cache-fi \
1214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1215 ac_prev=cache_file ;;
1216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1218 cache_file=$ac_optarg ;;
1219
1220 --config-cache | -C)
1221 cache_file=config.cache ;;
1222
1223 -datadir | --datadir | --datadi | --datad)
1224 ac_prev=datadir ;;
1225 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1226 datadir=$ac_optarg ;;
1227
1228 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1229 | --dataroo | --dataro | --datar)
1230 ac_prev=datarootdir ;;
1231 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1232 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1233 datarootdir=$ac_optarg ;;
1234
1235 -disable-* | --disable-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid feature name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "enable_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval enable_$ac_useropt=no ;;
1250
1251 -docdir | --docdir | --docdi | --doc | --do)
1252 ac_prev=docdir ;;
1253 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1254 docdir=$ac_optarg ;;
1255
1256 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1257 ac_prev=dvidir ;;
1258 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1259 dvidir=$ac_optarg ;;
1260
1261 -enable-* | --enable-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid feature name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270 "enable_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval enable_$ac_useropt=\$ac_optarg ;;
1276
1277 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1278 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1279 | --exec | --exe | --ex)
1280 ac_prev=exec_prefix ;;
1281 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1282 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1283 | --exec=* | --exe=* | --ex=*)
1284 exec_prefix=$ac_optarg ;;
1285
1286 -gas | --gas | --ga | --g)
1287 # Obsolete; use --with-gas.
1288 with_gas=yes ;;
1289
1290 -help | --help | --hel | --he | -h)
1291 ac_init_help=long ;;
1292 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1293 ac_init_help=recursive ;;
1294 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1295 ac_init_help=short ;;
1296
1297 -host | --host | --hos | --ho)
1298 ac_prev=host_alias ;;
1299 -host=* | --host=* | --hos=* | --ho=*)
1300 host_alias=$ac_optarg ;;
1301
1302 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1303 ac_prev=htmldir ;;
1304 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1305 | --ht=*)
1306 htmldir=$ac_optarg ;;
1307
1308 -includedir | --includedir | --includedi | --included | --include \
1309 | --includ | --inclu | --incl | --inc)
1310 ac_prev=includedir ;;
1311 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1312 | --includ=* | --inclu=* | --incl=* | --inc=*)
1313 includedir=$ac_optarg ;;
1314
1315 -infodir | --infodir | --infodi | --infod | --info | --inf)
1316 ac_prev=infodir ;;
1317 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1318 infodir=$ac_optarg ;;
1319
1320 -libdir | --libdir | --libdi | --libd)
1321 ac_prev=libdir ;;
1322 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1323 libdir=$ac_optarg ;;
1324
1325 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1326 | --libexe | --libex | --libe)
1327 ac_prev=libexecdir ;;
1328 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1329 | --libexe=* | --libex=* | --libe=*)
1330 libexecdir=$ac_optarg ;;
1331
1332 -localedir | --localedir | --localedi | --localed | --locale)
1333 ac_prev=localedir ;;
1334 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1335 localedir=$ac_optarg ;;
1336
1337 -localstatedir | --localstatedir | --localstatedi | --localstated \
1338 | --localstate | --localstat | --localsta | --localst | --locals)
1339 ac_prev=localstatedir ;;
1340 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1341 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1342 localstatedir=$ac_optarg ;;
1343
1344 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1345 ac_prev=mandir ;;
1346 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1347 mandir=$ac_optarg ;;
1348
1349 -nfp | --nfp | --nf)
1350 # Obsolete; use --without-fp.
1351 with_fp=no ;;
1352
1353 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1354 | --no-cr | --no-c | -n)
1355 no_create=yes ;;
1356
1357 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1358 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1359 no_recursion=yes ;;
1360
1361 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1362 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1363 | --oldin | --oldi | --old | --ol | --o)
1364 ac_prev=oldincludedir ;;
1365 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1366 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1367 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1368 oldincludedir=$ac_optarg ;;
1369
1370 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1371 ac_prev=prefix ;;
1372 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1373 prefix=$ac_optarg ;;
1374
1375 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1376 | --program-pre | --program-pr | --program-p)
1377 ac_prev=program_prefix ;;
1378 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1379 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1380 program_prefix=$ac_optarg ;;
1381
1382 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1383 | --program-suf | --program-su | --program-s)
1384 ac_prev=program_suffix ;;
1385 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1386 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1387 program_suffix=$ac_optarg ;;
1388
1389 -program-transform-name | --program-transform-name \
1390 | --program-transform-nam | --program-transform-na \
1391 | --program-transform-n | --program-transform- \
1392 | --program-transform | --program-transfor \
1393 | --program-transfo | --program-transf \
1394 | --program-trans | --program-tran \
1395 | --progr-tra | --program-tr | --program-t)
1396 ac_prev=program_transform_name ;;
1397 -program-transform-name=* | --program-transform-name=* \
1398 | --program-transform-nam=* | --program-transform-na=* \
1399 | --program-transform-n=* | --program-transform-=* \
1400 | --program-transform=* | --program-transfor=* \
1401 | --program-transfo=* | --program-transf=* \
1402 | --program-trans=* | --program-tran=* \
1403 | --progr-tra=* | --program-tr=* | --program-t=*)
1404 program_transform_name=$ac_optarg ;;
1405
1406 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1407 ac_prev=pdfdir ;;
1408 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1409 pdfdir=$ac_optarg ;;
1410
1411 -psdir | --psdir | --psdi | --psd | --ps)
1412 ac_prev=psdir ;;
1413 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1414 psdir=$ac_optarg ;;
1415
1416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1417 | -silent | --silent | --silen | --sile | --sil)
1418 silent=yes ;;
1419
1420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1421 ac_prev=sbindir ;;
1422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1423 | --sbi=* | --sb=*)
1424 sbindir=$ac_optarg ;;
1425
1426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1428 | --sharedst | --shareds | --shared | --share | --shar \
1429 | --sha | --sh)
1430 ac_prev=sharedstatedir ;;
1431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1434 | --sha=* | --sh=*)
1435 sharedstatedir=$ac_optarg ;;
1436
1437 -site | --site | --sit)
1438 ac_prev=site ;;
1439 -site=* | --site=* | --sit=*)
1440 site=$ac_optarg ;;
1441
1442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1443 ac_prev=srcdir ;;
1444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1445 srcdir=$ac_optarg ;;
1446
1447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1448 | --syscon | --sysco | --sysc | --sys | --sy)
1449 ac_prev=sysconfdir ;;
1450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1452 sysconfdir=$ac_optarg ;;
1453
1454 -target | --target | --targe | --targ | --tar | --ta | --t)
1455 ac_prev=target_alias ;;
1456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1457 target_alias=$ac_optarg ;;
1458
1459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1460 verbose=yes ;;
1461
1462 -version | --version | --versio | --versi | --vers | -V)
1463 ac_init_version=: ;;
1464
1465 -with-* | --with-*)
1466 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1467 # Reject names that are not valid shell variable names.
1468 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1469 as_fn_error $? "invalid package name: $ac_useropt"
1470 ac_useropt_orig=$ac_useropt
1471 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1472 case $ac_user_opts in
1473 *"
1474 "with_$ac_useropt"
1475 "*) ;;
1476 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1477 ac_unrecognized_sep=', ';;
1478 esac
1479 eval with_$ac_useropt=\$ac_optarg ;;
1480
1481 -without-* | --without-*)
1482 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1483 # Reject names that are not valid shell variable names.
1484 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1485 as_fn_error $? "invalid package name: $ac_useropt"
1486 ac_useropt_orig=$ac_useropt
1487 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1488 case $ac_user_opts in
1489 *"
1490 "with_$ac_useropt"
1491 "*) ;;
1492 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1493 ac_unrecognized_sep=', ';;
1494 esac
1495 eval with_$ac_useropt=no ;;
1496
1497 --x)
1498 # Obsolete; use --with-x.
1499 with_x=yes ;;
1500
1501 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1502 | --x-incl | --x-inc | --x-in | --x-i)
1503 ac_prev=x_includes ;;
1504 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1505 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1506 x_includes=$ac_optarg ;;
1507
1508 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1509 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1510 ac_prev=x_libraries ;;
1511 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1512 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1513 x_libraries=$ac_optarg ;;
1514
1515 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1516 Try \`$0 --help' for more information"
1517 ;;
1518
1519 *=*)
1520 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1521 # Reject names that are not valid shell variable names.
1522 case $ac_envvar in #(
1523 '' | [0-9]* | *[!_$as_cr_alnum]* )
1524 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1525 esac
1526 eval $ac_envvar=\$ac_optarg
1527 export $ac_envvar ;;
1528
1529 *)
1530 # FIXME: should be removed in autoconf 3.0.
1531 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1532 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1533 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1534 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1535 ;;
1536
1537 esac
1538 done
1539
1540 if test -n "$ac_prev"; then
1541 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1542 as_fn_error $? "missing argument to $ac_option"
1543 fi
1544
1545 if test -n "$ac_unrecognized_opts"; then
1546 case $enable_option_checking in
1547 no) ;;
1548 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1549 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1550 esac
1551 fi
1552
1553 # Check all directory arguments for consistency.
1554 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1555 datadir sysconfdir sharedstatedir localstatedir includedir \
1556 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1557 libdir localedir mandir
1558 do
1559 eval ac_val=\$$ac_var
1560 # Remove trailing slashes.
1561 case $ac_val in
1562 */ )
1563 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1564 eval $ac_var=\$ac_val;;
1565 esac
1566 # Be sure to have absolute directory names.
1567 case $ac_val in
1568 [\\/$]* | ?:[\\/]* ) continue;;
1569 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1570 esac
1571 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1572 done
1573
1574 # There might be people who depend on the old broken behavior: `$host'
1575 # used to hold the argument of --host etc.
1576 # FIXME: To remove some day.
1577 build=$build_alias
1578 host=$host_alias
1579 target=$target_alias
1580
1581 # FIXME: To remove some day.
1582 if test "x$host_alias" != x; then
1583 if test "x$build_alias" = x; then
1584 cross_compiling=maybe
1585 elif test "x$build_alias" != "x$host_alias"; then
1586 cross_compiling=yes
1587 fi
1588 fi
1589
1590 ac_tool_prefix=
1591 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1592
1593 test "$silent" = yes && exec 6>/dev/null
1594
1595
1596 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1597 ac_ls_di=`ls -di .` &&
1598 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1599 as_fn_error $? "working directory cannot be determined"
1600 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1601 as_fn_error $? "pwd does not report name of working directory"
1602
1603
1604 # Find the source files, if location was not specified.
1605 if test -z "$srcdir"; then
1606 ac_srcdir_defaulted=yes
1607 # Try the directory containing this script, then the parent directory.
1608 ac_confdir=`$as_dirname -- "$as_myself" ||
1609 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1610 X"$as_myself" : 'X\(//\)[^/]' \| \
1611 X"$as_myself" : 'X\(//\)$' \| \
1612 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1613 $as_echo X"$as_myself" |
1614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1615 s//\1/
1616 q
1617 }
1618 /^X\(\/\/\)[^/].*/{
1619 s//\1/
1620 q
1621 }
1622 /^X\(\/\/\)$/{
1623 s//\1/
1624 q
1625 }
1626 /^X\(\/\).*/{
1627 s//\1/
1628 q
1629 }
1630 s/.*/./; q'`
1631 srcdir=$ac_confdir
1632 if test ! -r "$srcdir/$ac_unique_file"; then
1633 srcdir=..
1634 fi
1635 else
1636 ac_srcdir_defaulted=no
1637 fi
1638 if test ! -r "$srcdir/$ac_unique_file"; then
1639 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1640 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1641 fi
1642 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1643 ac_abs_confdir=`(
1644 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1645 pwd)`
1646 # When building in place, set srcdir=.
1647 if test "$ac_abs_confdir" = "$ac_pwd"; then
1648 srcdir=.
1649 fi
1650 # Remove unnecessary trailing slashes from srcdir.
1651 # Double slashes in file names in object file debugging info
1652 # mess up M-x gdb in Emacs.
1653 case $srcdir in
1654 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1655 esac
1656 for ac_var in $ac_precious_vars; do
1657 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1658 eval ac_env_${ac_var}_value=\$${ac_var}
1659 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1660 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1661 done
1662
1663 #
1664 # Report the --help message.
1665 #
1666 if test "$ac_init_help" = "long"; then
1667 # Omit some internal or obsolete options to make the list less imposing.
1668 # This message is too long to be a string in the A/UX 3.1 sh.
1669 cat <<_ACEOF
1670 \`configure' configures sim 0 to adapt to many kinds of systems.
1671
1672 Usage: $0 [OPTION]... [VAR=VALUE]...
1673
1674 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1675 VAR=VALUE. See below for descriptions of some of the useful variables.
1676
1677 Defaults for the options are specified in brackets.
1678
1679 Configuration:
1680 -h, --help display this help and exit
1681 --help=short display options specific to this package
1682 --help=recursive display the short help of all the included packages
1683 -V, --version display version information and exit
1684 -q, --quiet, --silent do not print \`checking ...' messages
1685 --cache-file=FILE cache test results in FILE [disabled]
1686 -C, --config-cache alias for \`--cache-file=config.cache'
1687 -n, --no-create do not create output files
1688 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1689
1690 Installation directories:
1691 --prefix=PREFIX install architecture-independent files in PREFIX
1692 [$ac_default_prefix]
1693 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1694 [PREFIX]
1695
1696 By default, \`make install' will install all the files in
1697 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1698 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1699 for instance \`--prefix=\$HOME'.
1700
1701 For better control, use the options below.
1702
1703 Fine tuning of the installation directories:
1704 --bindir=DIR user executables [EPREFIX/bin]
1705 --sbindir=DIR system admin executables [EPREFIX/sbin]
1706 --libexecdir=DIR program executables [EPREFIX/libexec]
1707 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1708 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1709 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1710 --libdir=DIR object code libraries [EPREFIX/lib]
1711 --includedir=DIR C header files [PREFIX/include]
1712 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1713 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1714 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1715 --infodir=DIR info documentation [DATAROOTDIR/info]
1716 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1717 --mandir=DIR man documentation [DATAROOTDIR/man]
1718 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1719 --htmldir=DIR html documentation [DOCDIR]
1720 --dvidir=DIR dvi documentation [DOCDIR]
1721 --pdfdir=DIR pdf documentation [DOCDIR]
1722 --psdir=DIR ps documentation [DOCDIR]
1723 _ACEOF
1724
1725 cat <<\_ACEOF
1726
1727 Program names:
1728 --program-prefix=PREFIX prepend PREFIX to installed program names
1729 --program-suffix=SUFFIX append SUFFIX to installed program names
1730 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1731
1732 System types:
1733 --build=BUILD configure for building on BUILD [guessed]
1734 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1735 --target=TARGET configure for building compilers for TARGET [HOST]
1736 _ACEOF
1737 fi
1738
1739 if test -n "$ac_init_help"; then
1740 case $ac_init_help in
1741 short | recursive ) echo "Configuration of sim 0:";;
1742 esac
1743 cat <<\_ACEOF
1744
1745 Optional Features:
1746 --disable-option-checking ignore unrecognized --enable/--with options
1747 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1748 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1749 --enable-shared[=PKGS] build shared libraries [default=yes]
1750 --enable-static[=PKGS] build static libraries [default=yes]
1751 --enable-fast-install[=PKGS]
1752 optimize for fast installation [default=yes]
1753 --disable-libtool-lock avoid locking (might break parallel builds)
1754 --enable-maintainer-mode
1755 enable make rules and dependencies not useful (and
1756 sometimes confusing) to the casual installer
1757 --enable-dependency-tracking
1758 do not reject slow dependency extractors
1759 --disable-dependency-tracking
1760 speeds up one-time build
1761 --enable-silent-rules less verbose build output (undo: "make V=1")
1762 --disable-silent-rules verbose build output (undo: "make V=0")
1763 --enable-sim Enable the GNU simulator
1764 --enable-example-sims enable example GNU simulators
1765 --enable-targets alternative target configurations
1766 --enable-sim-alignment=align
1767 Specify strict, nonstrict or forced alignment of
1768 memory accesses
1769 --enable-sim-assert Specify whether to perform random assertions
1770 --enable-cgen-maint=DIR build cgen generated files
1771 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1772 itself)
1773 --enable-sim-endian=endian
1774 Specify target byte endian orientation
1775 --enable-sim-environment=environment
1776 Specify mixed, user, virtual or operating
1777 environment
1778 --enable-sim-hardware Whether to enable hardware/device simulation
1779 --enable-sim-inline=inlines
1780 Specify which functions should be inlined
1781 --enable-sim-profile=opts
1782 Enable profiling flags
1783 --enable-sim-reserved-bits
1784 Specify whether to check reserved bits in
1785 instruction
1786 --enable-sim-scache=size
1787 Specify simulator execution cache size
1788 --enable-sim-smp=n Specify number of processors to configure for
1789 (default 1)
1790 --enable-sim-stdio Specify whether to use stdio for console
1791 input/output
1792 --enable-sim-trace=opts Enable tracing of simulated programs
1793 --enable-werror treat compile warnings as errors
1794 --enable-build-warnings enable build-time compiler warnings if gcc is used
1795 --enable-sim-build-warnings
1796 enable SIM specific build-time compiler warnings if
1797 gcc is used
1798 --enable-sim-frv-trapdump
1799 Make unknown traps dump the registers
1800 --disable-sim-rx-cycle-accurate
1801 Disable cycle accurate simulation (faster runtime)
1802
1803 Optional Packages:
1804 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1805 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1806 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1807 --with-bugurl=URL Direct users to URL to report a bug
1808 --with-pic try to use only PIC/non-PIC objects [default=use
1809 both]
1810 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1811
1812 Some influential environment variables:
1813 CC C compiler command
1814 CFLAGS C compiler flags
1815 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1816 nonstandard directory <lib dir>
1817 LIBS libraries to pass to the linker, e.g. -l<library>
1818 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1819 you have headers in a nonstandard directory <include dir>
1820 CPP C preprocessor
1821 PKG_CONFIG path to pkg-config utility
1822 PKG_CONFIG_PATH
1823 directories to add to pkg-config's search path
1824 PKG_CONFIG_LIBDIR
1825 path overriding pkg-config's built-in search path
1826 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1827 SDL_LIBS linker flags for SDL, overriding pkg-config
1828 AS_FOR_TARGET_AARCH64
1829 Assembler for aarch64 tests
1830 LD_FOR_TARGET_AARCH64
1831 Linker for aarch64 tests
1832 CC_FOR_TARGET_AARCH64
1833 C compiler for aarch64 tests
1834 AS_FOR_TARGET_ARM
1835 Assembler for arm tests
1836 LD_FOR_TARGET_ARM
1837 Linker for arm tests
1838 CC_FOR_TARGET_ARM
1839 C compiler for arm tests
1840 AS_FOR_TARGET_AVR
1841 Assembler for avr tests
1842 LD_FOR_TARGET_AVR
1843 Linker for avr tests
1844 CC_FOR_TARGET_AVR
1845 C compiler for avr tests
1846 AS_FOR_TARGET_BFIN
1847 Assembler for bfin tests
1848 LD_FOR_TARGET_BFIN
1849 Linker for bfin tests
1850 CC_FOR_TARGET_BFIN
1851 C compiler for bfin tests
1852 AS_FOR_TARGET_BPF
1853 Assembler for bpf tests
1854 LD_FOR_TARGET_BPF
1855 Linker for bpf tests
1856 CC_FOR_TARGET_BPF
1857 C compiler for bpf tests
1858 AS_FOR_TARGET_CR16
1859 Assembler for cr16 tests
1860 LD_FOR_TARGET_CR16
1861 Linker for cr16 tests
1862 CC_FOR_TARGET_CR16
1863 C compiler for cr16 tests
1864 AS_FOR_TARGET_CRIS
1865 Assembler for cris tests
1866 LD_FOR_TARGET_CRIS
1867 Linker for cris tests
1868 CC_FOR_TARGET_CRIS
1869 C compiler for cris tests
1870 AS_FOR_TARGET_D10V
1871 Assembler for d10v tests
1872 LD_FOR_TARGET_D10V
1873 Linker for d10v tests
1874 CC_FOR_TARGET_D10V
1875 C compiler for d10v tests
1876 AS_FOR_TARGET_FRV
1877 Assembler for frv tests
1878 LD_FOR_TARGET_FRV
1879 Linker for frv tests
1880 CC_FOR_TARGET_FRV
1881 C compiler for frv tests
1882 AS_FOR_TARGET_FT32
1883 Assembler for ft32 tests
1884 LD_FOR_TARGET_FT32
1885 Linker for ft32 tests
1886 CC_FOR_TARGET_FT32
1887 C compiler for ft32 tests
1888 AS_FOR_TARGET_H8300
1889 Assembler for h8300 tests
1890 LD_FOR_TARGET_H8300
1891 Linker for h8300 tests
1892 CC_FOR_TARGET_H8300
1893 C compiler for h8300 tests
1894 AS_FOR_TARGET_IQ2000
1895 Assembler for iq2000 tests
1896 LD_FOR_TARGET_IQ2000
1897 Linker for iq2000 tests
1898 CC_FOR_TARGET_IQ2000
1899 C compiler for iq2000 tests
1900 AS_FOR_TARGET_LM32
1901 Assembler for lm32 tests
1902 LD_FOR_TARGET_LM32
1903 Linker for lm32 tests
1904 CC_FOR_TARGET_LM32
1905 C compiler for lm32 tests
1906 AS_FOR_TARGET_M32C
1907 Assembler for m32c tests
1908 LD_FOR_TARGET_M32C
1909 Linker for m32c tests
1910 CC_FOR_TARGET_M32C
1911 C compiler for m32c tests
1912 AS_FOR_TARGET_M32R
1913 Assembler for m32r tests
1914 LD_FOR_TARGET_M32R
1915 Linker for m32r tests
1916 CC_FOR_TARGET_M32R
1917 C compiler for m32r tests
1918 AS_FOR_TARGET_M68HC11
1919 Assembler for m68hc11 tests
1920 LD_FOR_TARGET_M68HC11
1921 Linker for m68hc11 tests
1922 CC_FOR_TARGET_M68HC11
1923 C compiler for m68hc11 tests
1924 AS_FOR_TARGET_MCORE
1925 Assembler for mcore tests
1926 LD_FOR_TARGET_MCORE
1927 Linker for mcore tests
1928 CC_FOR_TARGET_MCORE
1929 C compiler for mcore tests
1930 AS_FOR_TARGET_MICROBLAZE
1931 Assembler for microblaze tests
1932 LD_FOR_TARGET_MICROBLAZE
1933 Linker for microblaze tests
1934 CC_FOR_TARGET_MICROBLAZE
1935 C compiler for microblaze tests
1936 AS_FOR_TARGET_MIPS
1937 Assembler for mips tests
1938 LD_FOR_TARGET_MIPS
1939 Linker for mips tests
1940 CC_FOR_TARGET_MIPS
1941 C compiler for mips tests
1942 AS_FOR_TARGET_MN10300
1943 Assembler for mn10300 tests
1944 LD_FOR_TARGET_MN10300
1945 Linker for mn10300 tests
1946 CC_FOR_TARGET_MN10300
1947 C compiler for mn10300 tests
1948 AS_FOR_TARGET_MOXIE
1949 Assembler for moxie tests
1950 LD_FOR_TARGET_MOXIE
1951 Linker for moxie tests
1952 CC_FOR_TARGET_MOXIE
1953 C compiler for moxie tests
1954 AS_FOR_TARGET_MSP430
1955 Assembler for msp430 tests
1956 LD_FOR_TARGET_MSP430
1957 Linker for msp430 tests
1958 CC_FOR_TARGET_MSP430
1959 C compiler for msp430 tests
1960 AS_FOR_TARGET_OR1K
1961 Assembler for or1k tests
1962 LD_FOR_TARGET_OR1K
1963 Linker for or1k tests
1964 CC_FOR_TARGET_OR1K
1965 C compiler for or1k tests
1966 AS_FOR_TARGET_PPC
1967 Assembler for ppc tests
1968 LD_FOR_TARGET_PPC
1969 Linker for ppc tests
1970 CC_FOR_TARGET_PPC
1971 C compiler for ppc tests
1972 AS_FOR_TARGET_PRU
1973 Assembler for pru tests
1974 LD_FOR_TARGET_PRU
1975 Linker for pru tests
1976 CC_FOR_TARGET_PRU
1977 C compiler for pru tests
1978 AS_FOR_TARGET_RISCV
1979 Assembler for riscv tests
1980 LD_FOR_TARGET_RISCV
1981 Linker for riscv tests
1982 CC_FOR_TARGET_RISCV
1983 C compiler for riscv tests
1984 AS_FOR_TARGET_RL78
1985 Assembler for rl78 tests
1986 LD_FOR_TARGET_RL78
1987 Linker for rl78 tests
1988 CC_FOR_TARGET_RL78
1989 C compiler for rl78 tests
1990 AS_FOR_TARGET_RX
1991 Assembler for rx tests
1992 LD_FOR_TARGET_RX
1993 Linker for rx tests
1994 CC_FOR_TARGET_RX
1995 C compiler for rx tests
1996 AS_FOR_TARGET_SH
1997 Assembler for sh tests
1998 LD_FOR_TARGET_SH
1999 Linker for sh tests
2000 CC_FOR_TARGET_SH
2001 C compiler for sh tests
2002 AS_FOR_TARGET_ERC32
2003 Assembler for erc32 tests
2004 LD_FOR_TARGET_ERC32
2005 Linker for erc32 tests
2006 CC_FOR_TARGET_ERC32
2007 C compiler for erc32 tests
2008 AS_FOR_TARGET_V850
2009 Assembler for v850 tests
2010 LD_FOR_TARGET_V850
2011 Linker for v850 tests
2012 CC_FOR_TARGET_V850
2013 C compiler for v850 tests
2014 AS_FOR_TARGET_EXAMPLE_SYNACOR
2015 Assembler for example-synacor tests
2016 LD_FOR_TARGET_EXAMPLE_SYNACOR
2017 Linker for example-synacor tests
2018 CC_FOR_TARGET_EXAMPLE_SYNACOR
2019 C compiler for example-synacor tests
2020
2021 Use these variables to override the choices made by `configure' or to help
2022 it to find libraries and programs with nonstandard names/locations.
2023
2024 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2025 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2026 _ACEOF
2027 ac_status=$?
2028 fi
2029
2030 if test "$ac_init_help" = "recursive"; then
2031 # If there are subdirs, report their specific --help.
2032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2033 test -d "$ac_dir" ||
2034 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2035 continue
2036 ac_builddir=.
2037
2038 case "$ac_dir" in
2039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040 *)
2041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2042 # A ".." for each directory in $ac_dir_suffix.
2043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2044 case $ac_top_builddir_sub in
2045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2047 esac ;;
2048 esac
2049 ac_abs_top_builddir=$ac_pwd
2050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2051 # for backward compatibility:
2052 ac_top_builddir=$ac_top_build_prefix
2053
2054 case $srcdir in
2055 .) # We are building in place.
2056 ac_srcdir=.
2057 ac_top_srcdir=$ac_top_builddir_sub
2058 ac_abs_top_srcdir=$ac_pwd ;;
2059 [\\/]* | ?:[\\/]* ) # Absolute name.
2060 ac_srcdir=$srcdir$ac_dir_suffix;
2061 ac_top_srcdir=$srcdir
2062 ac_abs_top_srcdir=$srcdir ;;
2063 *) # Relative name.
2064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2065 ac_top_srcdir=$ac_top_build_prefix$srcdir
2066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2067 esac
2068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2069
2070 cd "$ac_dir" || { ac_status=$?; continue; }
2071 # Check for guested configure.
2072 if test -f "$ac_srcdir/configure.gnu"; then
2073 echo &&
2074 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2075 elif test -f "$ac_srcdir/configure"; then
2076 echo &&
2077 $SHELL "$ac_srcdir/configure" --help=recursive
2078 else
2079 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2080 fi || ac_status=$?
2081 cd "$ac_pwd" || { ac_status=$?; break; }
2082 done
2083 fi
2084
2085 test -n "$ac_init_help" && exit $ac_status
2086 if $ac_init_version; then
2087 cat <<\_ACEOF
2088 sim configure 0
2089 generated by GNU Autoconf 2.69
2090
2091 Copyright (C) 2012 Free Software Foundation, Inc.
2092 This configure script is free software; the Free Software Foundation
2093 gives unlimited permission to copy, distribute and modify it.
2094 _ACEOF
2095 exit
2096 fi
2097
2098 ## ------------------------ ##
2099 ## Autoconf initialization. ##
2100 ## ------------------------ ##
2101
2102 # ac_fn_c_try_compile LINENO
2103 # --------------------------
2104 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_c_try_compile ()
2106 {
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 rm -f conftest.$ac_objext
2109 if { { ac_try="$ac_compile"
2110 case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_compile") 2>conftest.err
2117 ac_status=$?
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2122 fi
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && {
2125 test -z "$ac_c_werror_flag" ||
2126 test ! -s conftest.err
2127 } && test -s conftest.$ac_objext; then :
2128 ac_retval=0
2129 else
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2132
2133 ac_retval=1
2134 fi
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2137
2138 } # ac_fn_c_try_compile
2139
2140 # ac_fn_c_try_cpp LINENO
2141 # ----------------------
2142 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2143 ac_fn_c_try_cpp ()
2144 {
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if { { ac_try="$ac_cpp conftest.$ac_ext"
2147 case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150 esac
2151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152 $as_echo "$ac_try_echo"; } >&5
2153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2154 ac_status=$?
2155 if test -s conftest.err; then
2156 grep -v '^ *+' conftest.err >conftest.er1
2157 cat conftest.er1 >&5
2158 mv -f conftest.er1 conftest.err
2159 fi
2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2161 test $ac_status = 0; } > conftest.i && {
2162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2163 test ! -s conftest.err
2164 }; then :
2165 ac_retval=0
2166 else
2167 $as_echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 ac_retval=1
2171 fi
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 as_fn_set_status $ac_retval
2174
2175 } # ac_fn_c_try_cpp
2176
2177 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2178 # -------------------------------------------------------
2179 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2180 # the include files in INCLUDES and setting the cache variable VAR
2181 # accordingly.
2182 ac_fn_c_check_header_mongrel ()
2183 {
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if eval \${$3+:} false; then :
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189 $as_echo_n "(cached) " >&6
2190 fi
2191 eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 else
2195 # Is the header compilable?
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2197 $as_echo_n "checking $2 usability... " >&6; }
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 #include <$2>
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_header_compiler=yes
2205 else
2206 ac_header_compiler=no
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2210 $as_echo "$ac_header_compiler" >&6; }
2211
2212 # Is the header present?
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2214 $as_echo_n "checking $2 presence... " >&6; }
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2217 #include <$2>
2218 _ACEOF
2219 if ac_fn_c_try_cpp "$LINENO"; then :
2220 ac_header_preproc=yes
2221 else
2222 ac_header_preproc=no
2223 fi
2224 rm -f conftest.err conftest.i conftest.$ac_ext
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2226 $as_echo "$ac_header_preproc" >&6; }
2227
2228 # So? What about this header?
2229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2230 yes:no: )
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2232 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2235 ;;
2236 no:yes:* )
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2238 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2240 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2242 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2244 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2246 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2247 ( $as_echo "## -------------------------------------------------------------------------------------- ##
2248 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
2249 ## -------------------------------------------------------------------------------------- ##"
2250 ) | sed "s/^/$as_me: WARNING: /" >&2
2251 ;;
2252 esac
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if eval \${$3+:} false; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 eval "$3=\$ac_header_compiler"
2259 fi
2260 eval ac_res=\$$3
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 fi
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266 } # ac_fn_c_check_header_mongrel
2267
2268 # ac_fn_c_try_run LINENO
2269 # ----------------------
2270 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2271 # that executables *can* be run.
2272 ac_fn_c_try_run ()
2273 {
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 if { { ac_try="$ac_link"
2276 case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279 esac
2280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281 $as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_link") 2>&5
2283 ac_status=$?
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2286 { { case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289 esac
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_try") 2>&5
2293 ac_status=$?
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; }; }; then :
2296 ac_retval=0
2297 else
2298 $as_echo "$as_me: program exited with status $ac_status" >&5
2299 $as_echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 ac_retval=$ac_status
2303 fi
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 as_fn_set_status $ac_retval
2307
2308 } # ac_fn_c_try_run
2309
2310 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2311 # -------------------------------------------------------
2312 # Tests whether HEADER exists and can be compiled using the include files in
2313 # INCLUDES, setting the cache variable VAR accordingly.
2314 ac_fn_c_check_header_compile ()
2315 {
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318 $as_echo_n "checking for $2... " >&6; }
2319 if eval \${$3+:} false; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $4
2325 #include <$2>
2326 _ACEOF
2327 if ac_fn_c_try_compile "$LINENO"; then :
2328 eval "$3=yes"
2329 else
2330 eval "$3=no"
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 eval ac_res=\$$3
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336 $as_echo "$ac_res" >&6; }
2337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338
2339 } # ac_fn_c_check_header_compile
2340
2341 # ac_fn_c_try_link LINENO
2342 # -----------------------
2343 # Try to link conftest.$ac_ext, and return whether this succeeded.
2344 ac_fn_c_try_link ()
2345 {
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 rm -f conftest.$ac_objext conftest$ac_exeext
2348 if { { ac_try="$ac_link"
2349 case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354 $as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_link") 2>conftest.err
2356 ac_status=$?
2357 if test -s conftest.err; then
2358 grep -v '^ *+' conftest.err >conftest.er1
2359 cat conftest.er1 >&5
2360 mv -f conftest.er1 conftest.err
2361 fi
2362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363 test $ac_status = 0; } && {
2364 test -z "$ac_c_werror_flag" ||
2365 test ! -s conftest.err
2366 } && test -s conftest$ac_exeext && {
2367 test "$cross_compiling" = yes ||
2368 test -x conftest$ac_exeext
2369 }; then :
2370 ac_retval=0
2371 else
2372 $as_echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 ac_retval=1
2376 fi
2377 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2378 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2379 # interfere with the next link command; also delete a directory that is
2380 # left behind by Apple's compiler. We do this before executing the actions.
2381 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383 as_fn_set_status $ac_retval
2384
2385 } # ac_fn_c_try_link
2386
2387 # ac_fn_c_check_func LINENO FUNC VAR
2388 # ----------------------------------
2389 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2390 ac_fn_c_check_func ()
2391 {
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2394 $as_echo_n "checking for $2... " >&6; }
2395 if eval \${$3+:} false; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2400 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2402 #define $2 innocuous_$2
2403
2404 /* System header to define __stub macros and hopefully few prototypes,
2405 which can conflict with char $2 (); below.
2406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2407 <limits.h> exists even on freestanding compilers. */
2408
2409 #ifdef __STDC__
2410 # include <limits.h>
2411 #else
2412 # include <assert.h>
2413 #endif
2414
2415 #undef $2
2416
2417 /* Override any GCC internal prototype to avoid an error.
2418 Use char because int might match the return type of a GCC
2419 builtin and then its argument prototype would still apply. */
2420 #ifdef __cplusplus
2421 extern "C"
2422 #endif
2423 char $2 ();
2424 /* The GNU C library defines this for functions which it implements
2425 to always fail with ENOSYS. Some functions are actually named
2426 something starting with __ and the normal name is an alias. */
2427 #if defined __stub_$2 || defined __stub___$2
2428 choke me
2429 #endif
2430
2431 int
2432 main ()
2433 {
2434 return $2 ();
2435 ;
2436 return 0;
2437 }
2438 _ACEOF
2439 if ac_fn_c_try_link "$LINENO"; then :
2440 eval "$3=yes"
2441 else
2442 eval "$3=no"
2443 fi
2444 rm -f core conftest.err conftest.$ac_objext \
2445 conftest$ac_exeext conftest.$ac_ext
2446 fi
2447 eval ac_res=\$$3
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2451
2452 } # ac_fn_c_check_func
2453
2454 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2455 # ----------------------------------------------------
2456 # Tries to find if the field MEMBER exists in type AGGR, after including
2457 # INCLUDES, setting cache variable VAR accordingly.
2458 ac_fn_c_check_member ()
2459 {
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2462 $as_echo_n "checking for $2.$3... " >&6; }
2463 if eval \${$4+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 $5
2469 int
2470 main ()
2471 {
2472 static $2 ac_aggr;
2473 if (ac_aggr.$3)
2474 return 0;
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 eval "$4=yes"
2481 else
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2484 $5
2485 int
2486 main ()
2487 {
2488 static $2 ac_aggr;
2489 if (sizeof ac_aggr.$3)
2490 return 0;
2491 ;
2492 return 0;
2493 }
2494 _ACEOF
2495 if ac_fn_c_try_compile "$LINENO"; then :
2496 eval "$4=yes"
2497 else
2498 eval "$4=no"
2499 fi
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 fi
2504 eval ac_res=\$$4
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2508
2509 } # ac_fn_c_check_member
2510
2511 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2512 # ---------------------------------------------
2513 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2514 # accordingly.
2515 ac_fn_c_check_decl ()
2516 {
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 as_decl_name=`echo $2|sed 's/ *(.*//'`
2519 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2521 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2522 if eval \${$3+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 $4
2528 int
2529 main ()
2530 {
2531 #ifndef $as_decl_name
2532 #ifdef __cplusplus
2533 (void) $as_decl_use;
2534 #else
2535 (void) $as_decl_name;
2536 #endif
2537 #endif
2538
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 if ac_fn_c_try_compile "$LINENO"; then :
2544 eval "$3=yes"
2545 else
2546 eval "$3=no"
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 fi
2550 eval ac_res=\$$3
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554
2555 } # ac_fn_c_check_decl
2556
2557 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2558 # -------------------------------------------
2559 # Tests whether TYPE exists after having included INCLUDES, setting cache
2560 # variable VAR accordingly.
2561 ac_fn_c_check_type ()
2562 {
2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2565 $as_echo_n "checking for $2... " >&6; }
2566 if eval \${$3+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 eval "$3=no"
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 $4
2573 int
2574 main ()
2575 {
2576 if (sizeof ($2))
2577 return 0;
2578 ;
2579 return 0;
2580 }
2581 _ACEOF
2582 if ac_fn_c_try_compile "$LINENO"; then :
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2585 $4
2586 int
2587 main ()
2588 {
2589 if (sizeof (($2)))
2590 return 0;
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_compile "$LINENO"; then :
2596
2597 else
2598 eval "$3=yes"
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604 eval ac_res=\$$3
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2608
2609 } # ac_fn_c_check_type
2610 cat >config.log <<_ACEOF
2611 This file contains any messages produced by compilers while
2612 running configure, to aid debugging if configure makes a mistake.
2613
2614 It was created by sim $as_me 0, which was
2615 generated by GNU Autoconf 2.69. Invocation command line was
2616
2617 $ $0 $@
2618
2619 _ACEOF
2620 exec 5>>config.log
2621 {
2622 cat <<_ASUNAME
2623 ## --------- ##
2624 ## Platform. ##
2625 ## --------- ##
2626
2627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2632
2633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2635
2636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2643
2644 _ASUNAME
2645
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 $as_echo "PATH: $as_dir"
2652 done
2653 IFS=$as_save_IFS
2654
2655 } >&5
2656
2657 cat >&5 <<_ACEOF
2658
2659
2660 ## ----------- ##
2661 ## Core tests. ##
2662 ## ----------- ##
2663
2664 _ACEOF
2665
2666
2667 # Keep a trace of the command line.
2668 # Strip out --no-create and --no-recursion so they do not pile up.
2669 # Strip out --silent because we don't want to record it for future runs.
2670 # Also quote any args containing shell meta-characters.
2671 # Make two passes to allow for proper duplicate-argument suppression.
2672 ac_configure_args=
2673 ac_configure_args0=
2674 ac_configure_args1=
2675 ac_must_keep_next=false
2676 for ac_pass in 1 2
2677 do
2678 for ac_arg
2679 do
2680 case $ac_arg in
2681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2683 | -silent | --silent | --silen | --sile | --sil)
2684 continue ;;
2685 *\'*)
2686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2687 esac
2688 case $ac_pass in
2689 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2690 2)
2691 as_fn_append ac_configure_args1 " '$ac_arg'"
2692 if test $ac_must_keep_next = true; then
2693 ac_must_keep_next=false # Got value, back to normal.
2694 else
2695 case $ac_arg in
2696 *=* | --config-cache | -C | -disable-* | --disable-* \
2697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2699 | -with-* | --with-* | -without-* | --without-* | --x)
2700 case "$ac_configure_args0 " in
2701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2702 esac
2703 ;;
2704 -* ) ac_must_keep_next=true ;;
2705 esac
2706 fi
2707 as_fn_append ac_configure_args " '$ac_arg'"
2708 ;;
2709 esac
2710 done
2711 done
2712 { ac_configure_args0=; unset ac_configure_args0;}
2713 { ac_configure_args1=; unset ac_configure_args1;}
2714
2715 # When interrupted or exit'd, cleanup temporary files, and complete
2716 # config.log. We remove comments because anyway the quotes in there
2717 # would cause problems or look ugly.
2718 # WARNING: Use '\'' to represent an apostrophe within the trap.
2719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2720 trap 'exit_status=$?
2721 # Save into config.log some information that might help in debugging.
2722 {
2723 echo
2724
2725 $as_echo "## ---------------- ##
2726 ## Cache variables. ##
2727 ## ---------------- ##"
2728 echo
2729 # The following way of writing the cache mishandles newlines in values,
2730 (
2731 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2732 eval ac_val=\$$ac_var
2733 case $ac_val in #(
2734 *${as_nl}*)
2735 case $ac_var in #(
2736 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2738 esac
2739 case $ac_var in #(
2740 _ | IFS | as_nl) ;; #(
2741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2742 *) { eval $ac_var=; unset $ac_var;} ;;
2743 esac ;;
2744 esac
2745 done
2746 (set) 2>&1 |
2747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2748 *${as_nl}ac_space=\ *)
2749 sed -n \
2750 "s/'\''/'\''\\\\'\'''\''/g;
2751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2752 ;; #(
2753 *)
2754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2755 ;;
2756 esac |
2757 sort
2758 )
2759 echo
2760
2761 $as_echo "## ----------------- ##
2762 ## Output variables. ##
2763 ## ----------------- ##"
2764 echo
2765 for ac_var in $ac_subst_vars
2766 do
2767 eval ac_val=\$$ac_var
2768 case $ac_val in
2769 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2770 esac
2771 $as_echo "$ac_var='\''$ac_val'\''"
2772 done | sort
2773 echo
2774
2775 if test -n "$ac_subst_files"; then
2776 $as_echo "## ------------------- ##
2777 ## File substitutions. ##
2778 ## ------------------- ##"
2779 echo
2780 for ac_var in $ac_subst_files
2781 do
2782 eval ac_val=\$$ac_var
2783 case $ac_val in
2784 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2785 esac
2786 $as_echo "$ac_var='\''$ac_val'\''"
2787 done | sort
2788 echo
2789 fi
2790
2791 if test -s confdefs.h; then
2792 $as_echo "## ----------- ##
2793 ## confdefs.h. ##
2794 ## ----------- ##"
2795 echo
2796 cat confdefs.h
2797 echo
2798 fi
2799 test "$ac_signal" != 0 &&
2800 $as_echo "$as_me: caught signal $ac_signal"
2801 $as_echo "$as_me: exit $exit_status"
2802 } >&5
2803 rm -f core *.core core.conftest.* &&
2804 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2805 exit $exit_status
2806 ' 0
2807 for ac_signal in 1 2 13 15; do
2808 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2809 done
2810 ac_signal=0
2811
2812 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2813 rm -f -r conftest* confdefs.h
2814
2815 $as_echo "/* confdefs.h */" > confdefs.h
2816
2817 # Predefined preprocessor variables.
2818
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_NAME "$PACKAGE_NAME"
2821 _ACEOF
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2825 _ACEOF
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2829 _ACEOF
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_STRING "$PACKAGE_STRING"
2833 _ACEOF
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_URL "$PACKAGE_URL"
2841 _ACEOF
2842
2843
2844 # Let the site file select an alternate cache file if it wants to.
2845 # Prefer an explicitly selected file to automatically selected ones.
2846 ac_site_file1=NONE
2847 ac_site_file2=NONE
2848 if test -n "$CONFIG_SITE"; then
2849 # We do not want a PATH search for config.site.
2850 case $CONFIG_SITE in #((
2851 -*) ac_site_file1=./$CONFIG_SITE;;
2852 */*) ac_site_file1=$CONFIG_SITE;;
2853 *) ac_site_file1=./$CONFIG_SITE;;
2854 esac
2855 elif test "x$prefix" != xNONE; then
2856 ac_site_file1=$prefix/share/config.site
2857 ac_site_file2=$prefix/etc/config.site
2858 else
2859 ac_site_file1=$ac_default_prefix/share/config.site
2860 ac_site_file2=$ac_default_prefix/etc/config.site
2861 fi
2862 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2863 do
2864 test "x$ac_site_file" = xNONE && continue
2865 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2867 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2868 sed 's/^/| /' "$ac_site_file" >&5
2869 . "$ac_site_file" \
2870 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 as_fn_error $? "failed to load site script $ac_site_file
2873 See \`config.log' for more details" "$LINENO" 5; }
2874 fi
2875 done
2876
2877 if test -r "$cache_file"; then
2878 # Some versions of bash will fail to source /dev/null (special files
2879 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2880 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2882 $as_echo "$as_me: loading cache $cache_file" >&6;}
2883 case $cache_file in
2884 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2885 *) . "./$cache_file";;
2886 esac
2887 fi
2888 else
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2890 $as_echo "$as_me: creating cache $cache_file" >&6;}
2891 >$cache_file
2892 fi
2893
2894 as_fn_append ac_header_list " dlfcn.h"
2895 as_fn_append ac_header_list " fcntl.h"
2896 as_fn_append ac_header_list " fpu_control.h"
2897 as_fn_append ac_header_list " termios.h"
2898 as_fn_append ac_header_list " unistd.h"
2899 as_fn_append ac_header_list " utime.h"
2900 as_fn_append ac_header_list " linux/if_tun.h"
2901 as_fn_append ac_header_list " linux/mii.h"
2902 as_fn_append ac_header_list " linux/types.h"
2903 as_fn_append ac_header_list " net/if.h"
2904 as_fn_append ac_header_list " netinet/in.h"
2905 as_fn_append ac_header_list " netinet/tcp.h"
2906 as_fn_append ac_header_list " sys/ioctl.h"
2907 as_fn_append ac_header_list " sys/mman.h"
2908 as_fn_append ac_header_list " sys/mount.h"
2909 as_fn_append ac_header_list " sys/param.h"
2910 as_fn_append ac_header_list " sys/resource.h"
2911 as_fn_append ac_header_list " sys/socket.h"
2912 as_fn_append ac_header_list " sys/stat.h"
2913 as_fn_append ac_header_list " sys/statfs.h"
2914 as_fn_append ac_header_list " sys/termio.h"
2915 as_fn_append ac_header_list " sys/termios.h"
2916 as_fn_append ac_header_list " sys/types.h"
2917 as_fn_append ac_header_list " sys/vfs.h"
2918 as_fn_append ac_func_list " __setfpucw"
2919 as_fn_append ac_func_list " access"
2920 as_fn_append ac_func_list " aint"
2921 as_fn_append ac_func_list " anint"
2922 as_fn_append ac_func_list " cfgetispeed"
2923 as_fn_append ac_func_list " cfgetospeed"
2924 as_fn_append ac_func_list " cfsetispeed"
2925 as_fn_append ac_func_list " cfsetospeed"
2926 as_fn_append ac_func_list " chdir"
2927 as_fn_append ac_func_list " chmod"
2928 as_fn_append ac_func_list " dup"
2929 as_fn_append ac_func_list " dup2"
2930 as_fn_append ac_func_list " execv"
2931 as_fn_append ac_func_list " execve"
2932 as_fn_append ac_func_list " fcntl"
2933 as_fn_append ac_func_list " fork"
2934 as_fn_append ac_func_list " fstat"
2935 as_fn_append ac_func_list " fstatfs"
2936 as_fn_append ac_func_list " ftruncate"
2937 as_fn_append ac_func_list " getdirentries"
2938 as_fn_append ac_func_list " getegid"
2939 as_fn_append ac_func_list " geteuid"
2940 as_fn_append ac_func_list " getgid"
2941 as_fn_append ac_func_list " getpid"
2942 as_fn_append ac_func_list " getppid"
2943 as_fn_append ac_func_list " getrusage"
2944 as_fn_append ac_func_list " gettimeofday"
2945 as_fn_append ac_func_list " getuid"
2946 as_fn_append ac_func_list " ioctl"
2947 as_fn_append ac_func_list " kill"
2948 as_fn_append ac_func_list " link"
2949 as_fn_append ac_func_list " lseek"
2950 as_fn_append ac_func_list " lstat"
2951 as_fn_append ac_func_list " mkdir"
2952 as_fn_append ac_func_list " mmap"
2953 as_fn_append ac_func_list " munmap"
2954 as_fn_append ac_func_list " pipe"
2955 as_fn_append ac_func_list " posix_fallocate"
2956 as_fn_append ac_func_list " pread"
2957 as_fn_append ac_func_list " rmdir"
2958 as_fn_append ac_func_list " setregid"
2959 as_fn_append ac_func_list " setreuid"
2960 as_fn_append ac_func_list " setgid"
2961 as_fn_append ac_func_list " setuid"
2962 as_fn_append ac_func_list " sigaction"
2963 as_fn_append ac_func_list " sigprocmask"
2964 as_fn_append ac_func_list " sqrt"
2965 as_fn_append ac_func_list " stat"
2966 as_fn_append ac_func_list " strsignal"
2967 as_fn_append ac_func_list " symlink"
2968 as_fn_append ac_func_list " tcdrain"
2969 as_fn_append ac_func_list " tcflow"
2970 as_fn_append ac_func_list " tcflush"
2971 as_fn_append ac_func_list " tcgetattr"
2972 as_fn_append ac_func_list " tcgetpgrp"
2973 as_fn_append ac_func_list " tcsendbreak"
2974 as_fn_append ac_func_list " tcsetattr"
2975 as_fn_append ac_func_list " tcsetpgrp"
2976 as_fn_append ac_func_list " time"
2977 as_fn_append ac_func_list " truncate"
2978 as_fn_append ac_func_list " umask"
2979 as_fn_append ac_func_list " unlink"
2980 as_fn_append ac_func_list " utime"
2981 # Check that the precious variables saved in the cache have kept the same
2982 # value.
2983 ac_cache_corrupted=false
2984 for ac_var in $ac_precious_vars; do
2985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2986 eval ac_new_set=\$ac_env_${ac_var}_set
2987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2988 eval ac_new_val=\$ac_env_${ac_var}_value
2989 case $ac_old_set,$ac_new_set in
2990 set,)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2992 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2993 ac_cache_corrupted=: ;;
2994 ,set)
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2996 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2997 ac_cache_corrupted=: ;;
2998 ,);;
2999 *)
3000 if test "x$ac_old_val" != "x$ac_new_val"; then
3001 # differences in whitespace do not lead to failure.
3002 ac_old_val_w=`echo x $ac_old_val`
3003 ac_new_val_w=`echo x $ac_new_val`
3004 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3006 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3007 ac_cache_corrupted=:
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3010 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3011 eval $ac_var=\$ac_old_val
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3014 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3016 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3017 fi;;
3018 esac
3019 # Pass precious variables to config.status.
3020 if test "$ac_new_set" = set; then
3021 case $ac_new_val in
3022 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3023 *) ac_arg=$ac_var=$ac_new_val ;;
3024 esac
3025 case " $ac_configure_args " in
3026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3027 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3028 esac
3029 fi
3030 done
3031 if $ac_cache_corrupted; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3035 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3036 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3037 fi
3038 ## -------------------- ##
3039 ## Main body of script. ##
3040 ## -------------------- ##
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
3048
3049
3050
3051
3052
3053
3054
3055 # Check whether --with-pkgversion was given.
3056 if test "${with_pkgversion+set}" = set; then :
3057 withval=$with_pkgversion; case "$withval" in
3058 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3059 no) PKGVERSION= ;;
3060 *) PKGVERSION="($withval) " ;;
3061 esac
3062 else
3063 PKGVERSION="(SIM) "
3064
3065 fi
3066
3067
3068
3069
3070 cat >>confdefs.h <<_ACEOF
3071 #define PKGVERSION "$PKGVERSION"
3072 _ACEOF
3073
3074
3075
3076 # Check whether --with-bugurl was given.
3077 if test "${with_bugurl+set}" = set; then :
3078 withval=$with_bugurl; case "$withval" in
3079 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3080 no) BUGURL=
3081 ;;
3082 *) BUGURL="$withval"
3083 ;;
3084 esac
3085 else
3086 BUGURL="$PACKAGE_BUGREPORT"
3087
3088 fi
3089
3090 case ${BUGURL} in
3091 "")
3092 REPORT_BUGS_TO=
3093 REPORT_BUGS_TEXI=
3094 ;;
3095 *)
3096 REPORT_BUGS_TO="<$BUGURL>"
3097 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3098 ;;
3099 esac;
3100
3101
3102
3103
3104 cat >>confdefs.h <<_ACEOF
3105 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3106 _ACEOF
3107
3108
3109 ac_config_headers="$ac_config_headers config.h"
3110
3111
3112 ac_aux_dir=
3113 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3114 if test -f "$ac_dir/install-sh"; then
3115 ac_aux_dir=$ac_dir
3116 ac_install_sh="$ac_aux_dir/install-sh -c"
3117 break
3118 elif test -f "$ac_dir/install.sh"; then
3119 ac_aux_dir=$ac_dir
3120 ac_install_sh="$ac_aux_dir/install.sh -c"
3121 break
3122 elif test -f "$ac_dir/shtool"; then
3123 ac_aux_dir=$ac_dir
3124 ac_install_sh="$ac_aux_dir/shtool install -c"
3125 break
3126 fi
3127 done
3128 if test -z "$ac_aux_dir"; then
3129 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3130 fi
3131
3132 # These three variables are undocumented and unsupported,
3133 # and are intended to be withdrawn in a future Autoconf release.
3134 # They can cause serious problems if a builder's source tree is in a directory
3135 # whose full name contains unusual characters.
3136 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3137 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3138 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3139
3140
3141 # Make sure we can run config.sub.
3142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3143 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3146 $as_echo_n "checking build system type... " >&6; }
3147 if ${ac_cv_build+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 ac_build_alias=$build_alias
3151 test "x$ac_build_alias" = x &&
3152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3153 test "x$ac_build_alias" = x &&
3154 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3155 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3156 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3157
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3160 $as_echo "$ac_cv_build" >&6; }
3161 case $ac_cv_build in
3162 *-*-*) ;;
3163 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3164 esac
3165 build=$ac_cv_build
3166 ac_save_IFS=$IFS; IFS='-'
3167 set x $ac_cv_build
3168 shift
3169 build_cpu=$1
3170 build_vendor=$2
3171 shift; shift
3172 # Remember, the first character of IFS is used to create $*,
3173 # except with old shells:
3174 build_os=$*
3175 IFS=$ac_save_IFS
3176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3177
3178
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3180 $as_echo_n "checking host system type... " >&6; }
3181 if ${ac_cv_host+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test "x$host_alias" = x; then
3185 ac_cv_host=$ac_cv_build
3186 else
3187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3188 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3189 fi
3190
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3193 $as_echo "$ac_cv_host" >&6; }
3194 case $ac_cv_host in
3195 *-*-*) ;;
3196 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3197 esac
3198 host=$ac_cv_host
3199 ac_save_IFS=$IFS; IFS='-'
3200 set x $ac_cv_host
3201 shift
3202 host_cpu=$1
3203 host_vendor=$2
3204 shift; shift
3205 # Remember, the first character of IFS is used to create $*,
3206 # except with old shells:
3207 host_os=$*
3208 IFS=$ac_save_IFS
3209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3210
3211
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3213 $as_echo_n "checking target system type... " >&6; }
3214 if ${ac_cv_target+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test "x$target_alias" = x; then
3218 ac_cv_target=$ac_cv_host
3219 else
3220 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3221 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3222 fi
3223
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3226 $as_echo "$ac_cv_target" >&6; }
3227 case $ac_cv_target in
3228 *-*-*) ;;
3229 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3230 esac
3231 target=$ac_cv_target
3232 ac_save_IFS=$IFS; IFS='-'
3233 set x $ac_cv_target
3234 shift
3235 target_cpu=$1
3236 target_vendor=$2
3237 shift; shift
3238 # Remember, the first character of IFS is used to create $*,
3239 # except with old shells:
3240 target_os=$*
3241 IFS=$ac_save_IFS
3242 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3243
3244
3245 # The aliases save the names the user supplied, while $host etc.
3246 # will get canonicalized.
3247 test -n "$target_alias" &&
3248 test "$program_prefix$program_suffix$program_transform_name" = \
3249 NONENONEs,x,x, &&
3250 program_prefix=${target_alias}-
3251 # Expand $ac_aux_dir to an absolute path.
3252 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3253
3254 ac_ext=c
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 if test -n "$ac_tool_prefix"; then
3260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if ${ac_cv_prog_CC+:} false; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC="$CC" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 break 2
3280 fi
3281 done
3282 done
3283 IFS=$as_save_IFS
3284
3285 fi
3286 fi
3287 CC=$ac_cv_prog_CC
3288 if test -n "$CC"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 fi
3295
3296
3297 fi
3298 if test -z "$ac_cv_prog_CC"; then
3299 ac_ct_CC=$CC
3300 # Extract the first word of "gcc", so it can be a program name with args.
3301 set dummy gcc; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$ac_ct_CC"; then
3308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_ac_ct_CC="gcc"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328 if test -n "$ac_ct_CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3330 $as_echo "$ac_ct_CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336 if test "x$ac_ct_CC" = x; then
3337 CC=""
3338 else
3339 case $cross_compiling:$ac_tool_warned in
3340 yes:)
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3343 ac_tool_warned=yes ;;
3344 esac
3345 CC=$ac_ct_CC
3346 fi
3347 else
3348 CC="$ac_cv_prog_CC"
3349 fi
3350
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354 set dummy ${ac_tool_prefix}cc; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if ${ac_cv_prog_CC+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CC="${ac_tool_prefix}cc"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3384 else
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389
3390 fi
3391 fi
3392 if test -z "$CC"; then
3393 # Extract the first word of "cc", so it can be a program name with args.
3394 set dummy cc; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CC+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 ac_prog_rejected=no
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3412 ac_prog_rejected=yes
3413 continue
3414 fi
3415 ac_cv_prog_CC="cc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3422
3423 if test $ac_prog_rejected = yes; then
3424 # We found a bogon in the path, so make sure we never use it.
3425 set dummy $ac_cv_prog_CC
3426 shift
3427 if test $# != 0; then
3428 # We chose a different compiler from the bogus one.
3429 # However, it has the same basename, so the bogon will be chosen
3430 # first if we set CC to just the basename; use the full file name.
3431 shift
3432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3433 fi
3434 fi
3435 fi
3436 fi
3437 CC=$ac_cv_prog_CC
3438 if test -n "$CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3441 else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446
3447 fi
3448 if test -z "$CC"; then
3449 if test -n "$ac_tool_prefix"; then
3450 for ac_prog in cl.exe
3451 do
3452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488
3489 test -n "$CC" && break
3490 done
3491 fi
3492 if test -z "$CC"; then
3493 ac_ct_CC=$CC
3494 for ac_prog in cl.exe
3495 do
3496 # Extract the first word of "$ac_prog", so it can be a program name with args.
3497 set dummy $ac_prog; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 if test -n "$ac_ct_CC"; then
3504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_CC="$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526 $as_echo "$ac_ct_CC" >&6; }
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 fi
3531
3532
3533 test -n "$ac_ct_CC" && break
3534 done
3535
3536 if test "x$ac_ct_CC" = x; then
3537 CC=""
3538 else
3539 case $cross_compiling:$ac_tool_warned in
3540 yes:)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3543 ac_tool_warned=yes ;;
3544 esac
3545 CC=$ac_ct_CC
3546 fi
3547 fi
3548
3549 fi
3550
3551
3552 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error $? "no acceptable C compiler found in \$PATH
3555 See \`config.log' for more details" "$LINENO" 5; }
3556
3557 # Provide some information about the compiler.
3558 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3559 set X $ac_compile
3560 ac_compiler=$2
3561 for ac_option in --version -v -V -qversion; do
3562 { { ac_try="$ac_compiler $ac_option >&5"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3570 ac_status=$?
3571 if test -s conftest.err; then
3572 sed '10a\
3573 ... rest of stderr output deleted ...
3574 10q' conftest.err >conftest.er1
3575 cat conftest.er1 >&5
3576 fi
3577 rm -f conftest.er1 conftest.err
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }
3580 done
3581
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 ac_clean_files_save=$ac_clean_files
3594 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3595 # Try to create an executable without -o first, disregard a.out.
3596 # It will help us diagnose broken compilers, and finding out an intuition
3597 # of exeext.
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3599 $as_echo_n "checking whether the C compiler works... " >&6; }
3600 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3601
3602 # The possible output files:
3603 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3604
3605 ac_rmfiles=
3606 for ac_file in $ac_files
3607 do
3608 case $ac_file in
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3611 esac
3612 done
3613 rm -f $ac_rmfiles
3614
3615 if { { ac_try="$ac_link_default"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_link_default") 2>&5
3623 ac_status=$?
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; then :
3626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3629 # so that the user can short-circuit this test for compilers unknown to
3630 # Autoconf.
3631 for ac_file in $ac_files ''
3632 do
3633 test -f "$ac_file" || continue
3634 case $ac_file in
3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3636 ;;
3637 [ab].out )
3638 # We found the default executable, but exeext='' is most
3639 # certainly right.
3640 break;;
3641 *.* )
3642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3643 then :; else
3644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3645 fi
3646 # We set ac_cv_exeext here because the later test for it is not
3647 # safe: cross compilers may not add the suffix if given an `-o'
3648 # argument, so we may need to know it at that point already.
3649 # Even if this section looks crufty: it has the advantage of
3650 # actually working.
3651 break;;
3652 * )
3653 break;;
3654 esac
3655 done
3656 test "$ac_cv_exeext" = no && ac_cv_exeext=
3657
3658 else
3659 ac_file=''
3660 fi
3661 if test -z "$ac_file"; then :
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error 77 "C compiler cannot create executables
3670 See \`config.log' for more details" "$LINENO" 5; }
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 $as_echo "yes" >&6; }
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3676 $as_echo_n "checking for C compiler default output file name... " >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3678 $as_echo "$ac_file" >&6; }
3679 ac_exeext=$ac_cv_exeext
3680
3681 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3682 ac_clean_files=$ac_clean_files_save
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3684 $as_echo_n "checking for suffix of executables... " >&6; }
3685 if { { ac_try="$ac_link"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_link") 2>&5
3693 ac_status=$?
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3697 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3698 # work properly (i.e., refer to `conftest.exe'), while it won't with
3699 # `rm'.
3700 for ac_file in conftest.exe conftest conftest.*; do
3701 test -f "$ac_file" || continue
3702 case $ac_file in
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705 break;;
3706 * ) break;;
3707 esac
3708 done
3709 else
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 fi
3715 rm -f conftest conftest$ac_cv_exeext
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3718
3719 rm -f conftest.$ac_ext
3720 EXEEXT=$ac_cv_exeext
3721 ac_exeext=$EXEEXT
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724 #include <stdio.h>
3725 int
3726 main ()
3727 {
3728 FILE *f = fopen ("conftest.out", "w");
3729 return ferror (f) || fclose (f) != 0;
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 ac_clean_files="$ac_clean_files conftest.out"
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3739 $as_echo_n "checking whether we are cross compiling... " >&6; }
3740 if test "$cross_compiling" != yes; then
3741 { { ac_try="$ac_link"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_link") 2>&5
3749 ac_status=$?
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }
3752 if { ac_try='./conftest$ac_cv_exeext'
3753 { { case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_try") 2>&5
3760 ac_status=$?
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; }; then
3763 cross_compiling=no
3764 else
3765 if test "$cross_compiling" = maybe; then
3766 cross_compiling=yes
3767 else
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "cannot run C compiled programs.
3771 If you meant to cross compile, use \`--host'.
3772 See \`config.log' for more details" "$LINENO" 5; }
3773 fi
3774 fi
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3777 $as_echo "$cross_compiling" >&6; }
3778
3779 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3780 ac_clean_files=$ac_clean_files_save
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3782 $as_echo_n "checking for suffix of object files... " >&6; }
3783 if ${ac_cv_objext+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788
3789 int
3790 main ()
3791 {
3792
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest.o conftest.obj
3798 if { { ac_try="$ac_compile"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_compile") 2>&5
3806 ac_status=$?
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }; then :
3809 for ac_file in conftest.o conftest.obj conftest.*; do
3810 test -f "$ac_file" || continue;
3811 case $ac_file in
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3813 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3814 break;;
3815 esac
3816 done
3817 else
3818 $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 as_fn_error $? "cannot compute suffix of object files: cannot compile
3824 See \`config.log' for more details" "$LINENO" 5; }
3825 fi
3826 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3829 $as_echo "$ac_cv_objext" >&6; }
3830 OBJEXT=$ac_cv_objext
3831 ac_objext=$OBJEXT
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3833 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3834 if ${ac_cv_c_compiler_gnu+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843 #ifndef __GNUC__
3844 choke me
3845 #endif
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 ac_compiler_gnu=yes
3853 else
3854 ac_compiler_gnu=no
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3858
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3862 if test $ac_compiler_gnu = yes; then
3863 GCC=yes
3864 else
3865 GCC=
3866 fi
3867 ac_test_CFLAGS=${CFLAGS+set}
3868 ac_save_CFLAGS=$CFLAGS
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3871 if ${ac_cv_prog_cc_g+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 ac_save_c_werror_flag=$ac_c_werror_flag
3875 ac_c_werror_flag=yes
3876 ac_cv_prog_cc_g=no
3877 CFLAGS="-g"
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880
3881 int
3882 main ()
3883 {
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_g=yes
3891 else
3892 CFLAGS=""
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895
3896 int
3897 main ()
3898 {
3899
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905
3906 else
3907 ac_c_werror_flag=$ac_save_c_werror_flag
3908 CFLAGS="-g"
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911
3912 int
3913 main ()
3914 {
3915
3916 ;
3917 return 0;
3918 }
3919 _ACEOF
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921 ac_cv_prog_cc_g=yes
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_c_werror_flag=$ac_save_c_werror_flag
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3931 $as_echo "$ac_cv_prog_cc_g" >&6; }
3932 if test "$ac_test_CFLAGS" = set; then
3933 CFLAGS=$ac_save_CFLAGS
3934 elif test $ac_cv_prog_cc_g = yes; then
3935 if test "$GCC" = yes; then
3936 CFLAGS="-g -O2"
3937 else
3938 CFLAGS="-g"
3939 fi
3940 else
3941 if test "$GCC" = yes; then
3942 CFLAGS="-O2"
3943 else
3944 CFLAGS=
3945 fi
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3948 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3949 if ${ac_cv_prog_cc_c89+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 ac_cv_prog_cc_c89=no
3953 ac_save_CC=$CC
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <stdarg.h>
3957 #include <stdio.h>
3958 struct stat;
3959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3960 struct buf { int x; };
3961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3962 static char *e (p, i)
3963 char **p;
3964 int i;
3965 {
3966 return p[i];
3967 }
3968 static char *f (char * (*g) (char **, int), char **p, ...)
3969 {
3970 char *s;
3971 va_list v;
3972 va_start (v,p);
3973 s = g (p, va_arg (v,int));
3974 va_end (v);
3975 return s;
3976 }
3977
3978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3979 function prototypes and stuff, but not '\xHH' hex character constants.
3980 These don't provoke an error unfortunately, instead are silently treated
3981 as 'x'. The following induces an error, until -std is added to get
3982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3983 array size at least. It's necessary to write '\x00'==0 to get something
3984 that's true only with -std. */
3985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3986
3987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3988 inside strings and character constants. */
3989 #define FOO(x) 'x'
3990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3991
3992 int test (int i, double x);
3993 struct s1 {int (*f) (int a);};
3994 struct s2 {int (*f) (double a);};
3995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3996 int argc;
3997 char **argv;
3998 int
3999 main ()
4000 {
4001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4007 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4008 do
4009 CC="$ac_save_CC $ac_arg"
4010 if ac_fn_c_try_compile "$LINENO"; then :
4011 ac_cv_prog_cc_c89=$ac_arg
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext
4014 test "x$ac_cv_prog_cc_c89" != "xno" && break
4015 done
4016 rm -f conftest.$ac_ext
4017 CC=$ac_save_CC
4018
4019 fi
4020 # AC_CACHE_VAL
4021 case "x$ac_cv_prog_cc_c89" in
4022 x)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4024 $as_echo "none needed" >&6; } ;;
4025 xno)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4027 $as_echo "unsupported" >&6; } ;;
4028 *)
4029 CC="$CC $ac_cv_prog_cc_c89"
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4031 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4032 esac
4033 if test "x$ac_cv_prog_cc_c89" != xno; then :
4034
4035 fi
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4049 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4050 if ${am_cv_prog_cc_c_o+:} false; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055
4056 int
4057 main ()
4058 {
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 # Make sure it works both with $CC and with simple cc.
4065 # Following AC_PROG_CC_C_O, we do the test twice because some
4066 # compilers refuse to overwrite an existing .o file with -o,
4067 # though they will create one.
4068 am_cv_prog_cc_c_o=yes
4069 for am_i in 1 2; do
4070 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4071 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } \
4075 && test -f conftest2.$ac_objext; then
4076 : OK
4077 else
4078 am_cv_prog_cc_c_o=no
4079 break
4080 fi
4081 done
4082 rm -f core conftest*
4083 unset am_i
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4086 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4087 if test "$am_cv_prog_cc_c_o" != yes; then
4088 # Losing compiler, so override with the script.
4089 # FIXME: It is wrong to rewrite CC.
4090 # But if we don't then we get into trouble of one sort or another.
4091 # A longer-term fix would be to have automake use am__CC in this case,
4092 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4093 CC="$am_aux_dir/compile $CC"
4094 fi
4095 ac_ext=c
4096 ac_cpp='$CPP $CPPFLAGS'
4097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
4101
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4109 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4110 # On Suns, sometimes $CPP names a directory.
4111 if test -n "$CPP" && test -d "$CPP"; then
4112 CPP=
4113 fi
4114 if test -z "$CPP"; then
4115 if ${ac_cv_prog_CPP+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 # Double quotes because CPP needs to be expanded
4119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4120 do
4121 ac_preproc_ok=false
4122 for ac_c_preproc_warn_flag in '' yes
4123 do
4124 # Use a header file that comes with gcc, so configuring glibc
4125 # with a fresh cross-compiler works.
4126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127 # <limits.h> exists even on freestanding compilers.
4128 # On the NeXT, cc -E runs the code through the compiler's parser,
4129 # not just through cpp. "Syntax error" is here to catch this case.
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #ifdef __STDC__
4133 # include <limits.h>
4134 #else
4135 # include <assert.h>
4136 #endif
4137 Syntax error
4138 _ACEOF
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4140
4141 else
4142 # Broken: fails on valid input.
4143 continue
4144 fi
4145 rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147 # OK, works on sane cases. Now check whether nonexistent headers
4148 # can be detected and how.
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <ac_nonexistent.h>
4152 _ACEOF
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4154 # Broken: success on invalid input.
4155 continue
4156 else
4157 # Passes both tests.
4158 ac_preproc_ok=:
4159 break
4160 fi
4161 rm -f conftest.err conftest.i conftest.$ac_ext
4162
4163 done
4164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4165 rm -f conftest.i conftest.err conftest.$ac_ext
4166 if $ac_preproc_ok; then :
4167 break
4168 fi
4169
4170 done
4171 ac_cv_prog_CPP=$CPP
4172
4173 fi
4174 CPP=$ac_cv_prog_CPP
4175 else
4176 ac_cv_prog_CPP=$CPP
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4179 $as_echo "$CPP" >&6; }
4180 ac_preproc_ok=false
4181 for ac_c_preproc_warn_flag in '' yes
4182 do
4183 # Use a header file that comes with gcc, so configuring glibc
4184 # with a fresh cross-compiler works.
4185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186 # <limits.h> exists even on freestanding compilers.
4187 # On the NeXT, cc -E runs the code through the compiler's parser,
4188 # not just through cpp. "Syntax error" is here to catch this case.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196 Syntax error
4197 _ACEOF
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4199
4200 else
4201 # Broken: fails on valid input.
4202 continue
4203 fi
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206 # OK, works on sane cases. Now check whether nonexistent headers
4207 # can be detected and how.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4213 # Broken: success on invalid input.
4214 continue
4215 else
4216 # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.i conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then :
4226
4227 else
4228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details" "$LINENO" 5; }
4232 fi
4233
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4242 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4243 if ${ac_cv_path_GREP+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -z "$GREP"; then
4247 ac_path_GREP_found=false
4248 # Loop through the user's path and test for each of PROGNAME-LIST
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_prog in grep ggrep; do
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4257 as_fn_executable_p "$ac_path_GREP" || continue
4258 # Check for GNU ac_path_GREP and select it if it is found.
4259 # Check for GNU $ac_path_GREP
4260 case `"$ac_path_GREP" --version 2>&1` in
4261 *GNU*)
4262 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4263 *)
4264 ac_count=0
4265 $as_echo_n 0123456789 >"conftest.in"
4266 while :
4267 do
4268 cat "conftest.in" "conftest.in" >"conftest.tmp"
4269 mv "conftest.tmp" "conftest.in"
4270 cp "conftest.in" "conftest.nl"
4271 $as_echo 'GREP' >> "conftest.nl"
4272 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274 as_fn_arith $ac_count + 1 && ac_count=$as_val
4275 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4276 # Best one so far, save it but keep looking for a better one
4277 ac_cv_path_GREP="$ac_path_GREP"
4278 ac_path_GREP_max=$ac_count
4279 fi
4280 # 10*(2^10) chars as input seems more than enough
4281 test $ac_count -gt 10 && break
4282 done
4283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 esac
4285
4286 $ac_path_GREP_found && break 3
4287 done
4288 done
4289 done
4290 IFS=$as_save_IFS
4291 if test -z "$ac_cv_path_GREP"; then
4292 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293 fi
4294 else
4295 ac_cv_path_GREP=$GREP
4296 fi
4297
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4300 $as_echo "$ac_cv_path_GREP" >&6; }
4301 GREP="$ac_cv_path_GREP"
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4305 $as_echo_n "checking for egrep... " >&6; }
4306 if ${ac_cv_path_EGREP+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4310 then ac_cv_path_EGREP="$GREP -E"
4311 else
4312 if test -z "$EGREP"; then
4313 ac_path_EGREP_found=false
4314 # Loop through the user's path and test for each of PROGNAME-LIST
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_prog in egrep; do
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4323 as_fn_executable_p "$ac_path_EGREP" || continue
4324 # Check for GNU ac_path_EGREP and select it if it is found.
4325 # Check for GNU $ac_path_EGREP
4326 case `"$ac_path_EGREP" --version 2>&1` in
4327 *GNU*)
4328 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4329 *)
4330 ac_count=0
4331 $as_echo_n 0123456789 >"conftest.in"
4332 while :
4333 do
4334 cat "conftest.in" "conftest.in" >"conftest.tmp"
4335 mv "conftest.tmp" "conftest.in"
4336 cp "conftest.in" "conftest.nl"
4337 $as_echo 'EGREP' >> "conftest.nl"
4338 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340 as_fn_arith $ac_count + 1 && ac_count=$as_val
4341 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4342 # Best one so far, save it but keep looking for a better one
4343 ac_cv_path_EGREP="$ac_path_EGREP"
4344 ac_path_EGREP_max=$ac_count
4345 fi
4346 # 10*(2^10) chars as input seems more than enough
4347 test $ac_count -gt 10 && break
4348 done
4349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350 esac
4351
4352 $ac_path_EGREP_found && break 3
4353 done
4354 done
4355 done
4356 IFS=$as_save_IFS
4357 if test -z "$ac_cv_path_EGREP"; then
4358 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359 fi
4360 else
4361 ac_cv_path_EGREP=$EGREP
4362 fi
4363
4364 fi
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4367 $as_echo "$ac_cv_path_EGREP" >&6; }
4368 EGREP="$ac_cv_path_EGREP"
4369
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4372 $as_echo_n "checking for ANSI C header files... " >&6; }
4373 if ${ac_cv_header_stdc+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 #include <stdlib.h>
4379 #include <stdarg.h>
4380 #include <string.h>
4381 #include <float.h>
4382
4383 int
4384 main ()
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_cv_header_stdc=yes
4393 else
4394 ac_cv_header_stdc=no
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397
4398 if test $ac_cv_header_stdc = yes; then
4399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #include <string.h>
4403
4404 _ACEOF
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406 $EGREP "memchr" >/dev/null 2>&1; then :
4407
4408 else
4409 ac_cv_header_stdc=no
4410 fi
4411 rm -f conftest*
4412
4413 fi
4414
4415 if test $ac_cv_header_stdc = yes; then
4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 #include <stdlib.h>
4420
4421 _ACEOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "free" >/dev/null 2>&1; then :
4424
4425 else
4426 ac_cv_header_stdc=no
4427 fi
4428 rm -f conftest*
4429
4430 fi
4431
4432 if test $ac_cv_header_stdc = yes; then
4433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4434 if test "$cross_compiling" = yes; then :
4435 :
4436 else
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <ctype.h>
4440 #include <stdlib.h>
4441 #if ((' ' & 0x0FF) == 0x020)
4442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4444 #else
4445 # define ISLOWER(c) \
4446 (('a' <= (c) && (c) <= 'i') \
4447 || ('j' <= (c) && (c) <= 'r') \
4448 || ('s' <= (c) && (c) <= 'z'))
4449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4450 #endif
4451
4452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4453 int
4454 main ()
4455 {
4456 int i;
4457 for (i = 0; i < 256; i++)
4458 if (XOR (islower (i), ISLOWER (i))
4459 || toupper (i) != TOUPPER (i))
4460 return 2;
4461 return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_run "$LINENO"; then :
4465
4466 else
4467 ac_cv_header_stdc=no
4468 fi
4469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4470 conftest.$ac_objext conftest.beam conftest.$ac_ext
4471 fi
4472
4473 fi
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4476 $as_echo "$ac_cv_header_stdc" >&6; }
4477 if test $ac_cv_header_stdc = yes; then
4478
4479 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4480
4481 fi
4482
4483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4484 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4485 inttypes.h stdint.h unistd.h
4486 do :
4487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4489 "
4490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4491 cat >>confdefs.h <<_ACEOF
4492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 _ACEOF
4494
4495 fi
4496
4497 done
4498
4499
4500
4501 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4502 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4503 MINIX=yes
4504 else
4505 MINIX=
4506 fi
4507
4508
4509 if test "$MINIX" = yes; then
4510
4511 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4512
4513
4514 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4515
4516
4517 $as_echo "#define _MINIX 1" >>confdefs.h
4518
4519 fi
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4523 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4524 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529
4530 # define __EXTENSIONS__ 1
4531 $ac_includes_default
4532 int
4533 main ()
4534 {
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_c_try_compile "$LINENO"; then :
4541 ac_cv_safe_to_define___extensions__=yes
4542 else
4543 ac_cv_safe_to_define___extensions__=no
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4548 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4549 test $ac_cv_safe_to_define___extensions__ = yes &&
4550 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4551
4552 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4553
4554 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4555
4556 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4557
4558 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4559
4560
4561 test "$program_prefix" != NONE &&
4562 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4563 # Use a double $ so make ignores it.
4564 test "$program_suffix" != NONE &&
4565 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4566 # Double any \ or $.
4567 # By default was `s,x,x', remove it if useless.
4568 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4569 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4570
4571 # Find a good install program. We prefer a C program (faster),
4572 # so one script is as good as another. But avoid the broken or
4573 # incompatible versions:
4574 # SysV /etc/install, /usr/sbin/install
4575 # SunOS /usr/etc/install
4576 # IRIX /sbin/install
4577 # AIX /bin/install
4578 # AmigaOS /C/install, which installs bootblocks on floppy discs
4579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4582 # OS/2's system install, which has a completely different semantic
4583 # ./install, which can be erroneously created by make from ./install.sh.
4584 # Reject install programs that cannot install multiple files.
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4586 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4587 if test -z "$INSTALL"; then
4588 if ${ac_cv_path_install+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 # Account for people who put trailing slashes in PATH elements.
4597 case $as_dir/ in #((
4598 ./ | .// | /[cC]/* | \
4599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4600 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4601 /usr/ucb/* ) ;;
4602 *)
4603 # OSF1 and SCO ODT 3.0 have their own names for install.
4604 # Don't use installbsd from OSF since it installs stuff as root
4605 # by default.
4606 for ac_prog in ginstall scoinst install; do
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4609 if test $ac_prog = install &&
4610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4611 # AIX install. It has an incompatible calling convention.
4612 :
4613 elif test $ac_prog = install &&
4614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4615 # program-specific install script used by HP pwplus--don't use.
4616 :
4617 else
4618 rm -rf conftest.one conftest.two conftest.dir
4619 echo one > conftest.one
4620 echo two > conftest.two
4621 mkdir conftest.dir
4622 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4623 test -s conftest.one && test -s conftest.two &&
4624 test -s conftest.dir/conftest.one &&
4625 test -s conftest.dir/conftest.two
4626 then
4627 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4628 break 3
4629 fi
4630 fi
4631 fi
4632 done
4633 done
4634 ;;
4635 esac
4636
4637 done
4638 IFS=$as_save_IFS
4639
4640 rm -rf conftest.one conftest.two conftest.dir
4641
4642 fi
4643 if test "${ac_cv_path_install+set}" = set; then
4644 INSTALL=$ac_cv_path_install
4645 else
4646 # As a last resort, use the slow shell script. Don't cache a
4647 # value for INSTALL within a source directory, because that will
4648 # break other packages using the cache if that directory is
4649 # removed, or if the value is a relative name.
4650 INSTALL=$ac_install_sh
4651 fi
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4654 $as_echo "$INSTALL" >&6; }
4655
4656 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4657 # It thinks the first close brace ends the variable substitution.
4658 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4659
4660 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4661
4662 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4663
4664
4665
4666
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4669 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4670 if ${ac_cv_c_bigendian+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 ac_cv_c_bigendian=unknown
4674 # See if we're dealing with a universal compiler.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #ifndef __APPLE_CC__
4678 not a universal capable compiler
4679 #endif
4680 typedef int dummy;
4681
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684
4685 # Check for potential -arch flags. It is not universal unless
4686 # there are at least two -arch flags with different values.
4687 ac_arch=
4688 ac_prev=
4689 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4690 if test -n "$ac_prev"; then
4691 case $ac_word in
4692 i?86 | x86_64 | ppc | ppc64)
4693 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4694 ac_arch=$ac_word
4695 else
4696 ac_cv_c_bigendian=universal
4697 break
4698 fi
4699 ;;
4700 esac
4701 ac_prev=
4702 elif test "x$ac_word" = "x-arch"; then
4703 ac_prev=arch
4704 fi
4705 done
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 if test $ac_cv_c_bigendian = unknown; then
4709 # See if sys/param.h defines the BYTE_ORDER macro.
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #include <sys/types.h>
4713 #include <sys/param.h>
4714
4715 int
4716 main ()
4717 {
4718 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4719 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4720 && LITTLE_ENDIAN)
4721 bogus endian macros
4722 #endif
4723
4724 ;
4725 return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729 # It does; now see whether it defined to BIG_ENDIAN or not.
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732 #include <sys/types.h>
4733 #include <sys/param.h>
4734
4735 int
4736 main ()
4737 {
4738 #if BYTE_ORDER != BIG_ENDIAN
4739 not big endian
4740 #endif
4741
4742 ;
4743 return 0;
4744 }
4745 _ACEOF
4746 if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_c_bigendian=yes
4748 else
4749 ac_cv_c_bigendian=no
4750 fi
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 fi
4755 if test $ac_cv_c_bigendian = unknown; then
4756 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #include <limits.h>
4760
4761 int
4762 main ()
4763 {
4764 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4765 bogus endian macros
4766 #endif
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 # It does; now see whether it defined to _BIG_ENDIAN or not.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #include <limits.h>
4777
4778 int
4779 main ()
4780 {
4781 #ifndef _BIG_ENDIAN
4782 not big endian
4783 #endif
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790 ac_cv_c_bigendian=yes
4791 else
4792 ac_cv_c_bigendian=no
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 fi
4798 if test $ac_cv_c_bigendian = unknown; then
4799 # Compile a test program.
4800 if test "$cross_compiling" = yes; then :
4801 # Try to guess by grepping values from an object file.
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 short int ascii_mm[] =
4805 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4806 short int ascii_ii[] =
4807 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4808 int use_ascii (int i) {
4809 return ascii_mm[i] + ascii_ii[i];
4810 }
4811 short int ebcdic_ii[] =
4812 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4813 short int ebcdic_mm[] =
4814 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4815 int use_ebcdic (int i) {
4816 return ebcdic_mm[i] + ebcdic_ii[i];
4817 }
4818 extern int foo;
4819
4820 int
4821 main ()
4822 {
4823 return use_ascii (foo) == use_ebcdic (foo);
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4830 ac_cv_c_bigendian=yes
4831 fi
4832 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4833 if test "$ac_cv_c_bigendian" = unknown; then
4834 ac_cv_c_bigendian=no
4835 else
4836 # finding both strings is unlikely to happen, but who knows?
4837 ac_cv_c_bigendian=unknown
4838 fi
4839 fi
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 else
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 $ac_includes_default
4846 int
4847 main ()
4848 {
4849
4850 /* Are we little or big endian? From Harbison&Steele. */
4851 union
4852 {
4853 long int l;
4854 char c[sizeof (long int)];
4855 } u;
4856 u.l = 1;
4857 return u.c[sizeof (long int) - 1] == 1;
4858
4859 ;
4860 return 0;
4861 }
4862 _ACEOF
4863 if ac_fn_c_try_run "$LINENO"; then :
4864 ac_cv_c_bigendian=no
4865 else
4866 ac_cv_c_bigendian=yes
4867 fi
4868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4869 conftest.$ac_objext conftest.beam conftest.$ac_ext
4870 fi
4871
4872 fi
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4875 $as_echo "$ac_cv_c_bigendian" >&6; }
4876 case $ac_cv_c_bigendian in #(
4877 yes)
4878 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4879 ;; #(
4880 no)
4881 ;; #(
4882 universal)
4883
4884 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4885
4886 ;; #(
4887 *)
4888 as_fn_error $? "unknown endianness
4889 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4890 esac
4891
4892
4893
4894
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_DTC+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$DTC"; then
4904 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 DTC=$ac_cv_prog_DTC
4924 if test -n "$DTC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4926 $as_echo "$DTC" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932
4933 fi
4934 if test -z "$ac_cv_prog_DTC"; then
4935 ac_ct_DTC=$DTC
4936 # Extract the first word of "dtc", so it can be a program name with args.
4937 set dummy dtc; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$ac_ct_DTC"; then
4944 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_ac_ct_DTC="dtc"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4956 fi
4957 done
4958 done
4959 IFS=$as_save_IFS
4960
4961 fi
4962 fi
4963 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4964 if test -n "$ac_ct_DTC"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4966 $as_echo "$ac_ct_DTC" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4970 fi
4971
4972 if test "x$ac_ct_DTC" = x; then
4973 DTC=""
4974 else
4975 case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981 DTC=$ac_ct_DTC
4982 fi
4983 else
4984 DTC="$ac_cv_prog_DTC"
4985 fi
4986
4987
4988 if test "x$cross_compiling" = "xno"; then
4989 : "${AR_FOR_BUILD:=\$(AR)}"
4990 : "${CC_FOR_BUILD:=\$(CC)}"
4991 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4992 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4993 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4994 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4995 else
4996 : "${AR_FOR_BUILD:=ar}"
4997 : "${CC_FOR_BUILD:=gcc}"
4998 : "${RANLIB_FOR_BUILD:=ranlib}"
4999 : "${CFLAGS_FOR_BUILD:=-g -O}"
5000 : "${CPPFLAGS_FOR_BUILD:=}"
5001 : "${LDLFAGS_FOR_BUILD:=}"
5002 fi
5003
5004
5005
5006
5007
5008
5009
5010
5011 if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5013 set dummy ${ac_tool_prefix}ar; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_AR+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -n "$AR"; then
5020 ac_cv_prog_AR="$AR" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029 ac_cv_prog_AR="${ac_tool_prefix}ar"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5032 fi
5033 done
5034 done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 AR=$ac_cv_prog_AR
5040 if test -n "$AR"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5042 $as_echo "$AR" >&6; }
5043 else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048
5049 fi
5050 if test -z "$ac_cv_prog_AR"; then
5051 ac_ct_AR=$AR
5052 # Extract the first word of "ar", so it can be a program name with args.
5053 set dummy ar; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -n "$ac_ct_AR"; then
5060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_ac_ct_AR="ar"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073 done
5074 done
5075 IFS=$as_save_IFS
5076
5077 fi
5078 fi
5079 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5080 if test -n "$ac_ct_AR"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5082 $as_echo "$ac_ct_AR" >&6; }
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 fi
5087
5088 if test "x$ac_ct_AR" = x; then
5089 AR=""
5090 else
5091 case $cross_compiling:$ac_tool_warned in
5092 yes:)
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5095 ac_tool_warned=yes ;;
5096 esac
5097 AR=$ac_ct_AR
5098 fi
5099 else
5100 AR="$ac_cv_prog_AR"
5101 fi
5102
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_RANLIB+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$RANLIB"; then
5112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 RANLIB=$ac_cv_prog_RANLIB
5132 if test -n "$RANLIB"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5134 $as_echo "$RANLIB" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140
5141 fi
5142 if test -z "$ac_cv_prog_RANLIB"; then
5143 ac_ct_RANLIB=$RANLIB
5144 # Extract the first word of "ranlib", so it can be a program name with args.
5145 set dummy ranlib; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$ac_ct_RANLIB"; then
5152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_ac_ct_RANLIB="ranlib"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5172 if test -n "$ac_ct_RANLIB"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5174 $as_echo "$ac_ct_RANLIB" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180 if test "x$ac_ct_RANLIB" = x; then
5181 RANLIB=":"
5182 else
5183 case $cross_compiling:$ac_tool_warned in
5184 yes:)
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187 ac_tool_warned=yes ;;
5188 esac
5189 RANLIB=$ac_ct_RANLIB
5190 fi
5191 else
5192 RANLIB="$ac_cv_prog_RANLIB"
5193 fi
5194
5195
5196
5197
5198
5199
5200
5201
5202 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5205 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 case $PKG_CONFIG in
5212 [\\/]* | ?:[\\/]*)
5213 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5214 ;;
5215 *)
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5223 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 ;;
5232 esac
5233 fi
5234 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5235 if test -n "$PKG_CONFIG"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5237 $as_echo "$PKG_CONFIG" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5241 fi
5242
5243
5244 fi
5245 if test -z "$ac_cv_path_PKG_CONFIG"; then
5246 ac_pt_PKG_CONFIG=$PKG_CONFIG
5247 # Extract the first word of "pkg-config", so it can be a program name with args.
5248 set dummy pkg-config; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 case $ac_pt_PKG_CONFIG in
5255 [\\/]* | ?:[\\/]*)
5256 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5257 ;;
5258 *)
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 ;;
5275 esac
5276 fi
5277 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5278 if test -n "$ac_pt_PKG_CONFIG"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5280 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286 if test "x$ac_pt_PKG_CONFIG" = x; then
5287 PKG_CONFIG=""
5288 else
5289 case $cross_compiling:$ac_tool_warned in
5290 yes:)
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5294 esac
5295 PKG_CONFIG=$ac_pt_PKG_CONFIG
5296 fi
5297 else
5298 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5299 fi
5300
5301 fi
5302 if test -n "$PKG_CONFIG"; then
5303 _pkg_min_version=0.9.0
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5305 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5306 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5308 $as_echo "yes" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 PKG_CONFIG=""
5313 fi
5314 fi
5315
5316 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5317 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5318 # is C99. So handle it ourselves.
5319 :
5320 C_DIALECT=
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5322 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325
5326 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5327 # error "C11 support not found"
5328 #endif
5329
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5333 $as_echo "yes" >&6; }
5334 else
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5339 $as_echo_n "checking for -std=c11 support... " >&6; }
5340 ac_save_CC="$CC"
5341 CC="$CC -std=c11"
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344
5345 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5346 # error "C11 support not found"
5347 #endif
5348
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 $as_echo "yes" >&6; }
5354 CC="$ac_save_CC"
5355 C_DIALECT="-std=c11"
5356
5357 else
5358 as_fn_error $? "C11 is required" "$LINENO" 5
5359 fi
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 fi
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363
5364
5365
5366
5367
5368 for ac_header in $ac_header_list
5369 do :
5370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5371 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5372 "
5373 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5374 cat >>confdefs.h <<_ACEOF
5375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5376 _ACEOF
5377
5378 fi
5379
5380 done
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433 for ac_func in $ac_func_list
5434 do :
5435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5437 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5438 cat >>confdefs.h <<_ACEOF
5439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5440 _ACEOF
5441
5442 fi
5443 done
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5572 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5573 if ${ac_cv_struct_tm+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 #include <sys/types.h>
5579 #include <time.h>
5580
5581 int
5582 main ()
5583 {
5584 struct tm tm;
5585 int *p = &tm.tm_sec;
5586 return !p;
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 ac_cv_struct_tm=time.h
5593 else
5594 ac_cv_struct_tm=sys/time.h
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5599 $as_echo "$ac_cv_struct_tm" >&6; }
5600 if test $ac_cv_struct_tm = sys/time.h; then
5601
5602 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5603
5604 fi
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5607 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5608 if ${ac_cv_type_uid_t+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <sys/types.h>
5614
5615 _ACEOF
5616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5617 $EGREP "uid_t" >/dev/null 2>&1; then :
5618 ac_cv_type_uid_t=yes
5619 else
5620 ac_cv_type_uid_t=no
5621 fi
5622 rm -f conftest*
5623
5624 fi
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5626 $as_echo "$ac_cv_type_uid_t" >&6; }
5627 if test $ac_cv_type_uid_t = no; then
5628
5629 $as_echo "#define uid_t int" >>confdefs.h
5630
5631
5632 $as_echo "#define gid_t int" >>confdefs.h
5633
5634 fi
5635
5636 case `pwd` in
5637 *\ * | *\ *)
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5639 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5640 esac
5641
5642
5643
5644 macro_version='2.2.7a'
5645 macro_revision='1.3134'
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 ltmain="$ac_aux_dir/ltmain.sh"
5660
5661 # Backslashify metacharacters that are still active within
5662 # double-quoted strings.
5663 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5664
5665 # Same as above, but do not quote variable references.
5666 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5667
5668 # Sed substitution to delay expansion of an escaped shell variable in a
5669 # double_quote_subst'ed string.
5670 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5671
5672 # Sed substitution to delay expansion of an escaped single quote.
5673 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5674
5675 # Sed substitution to avoid accidental globbing in evaled expressions
5676 no_glob_subst='s/\*/\\\*/g'
5677
5678 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5679 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5680 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5683 $as_echo_n "checking how to print strings... " >&6; }
5684 # Test print first, because it will be a builtin if present.
5685 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5686 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5687 ECHO='print -r --'
5688 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5689 ECHO='printf %s\n'
5690 else
5691 # Use this function as a fallback that always works.
5692 func_fallback_echo ()
5693 {
5694 eval 'cat <<_LTECHO_EOF
5695 $1
5696 _LTECHO_EOF'
5697 }
5698 ECHO='func_fallback_echo'
5699 fi
5700
5701 # func_echo_all arg...
5702 # Invoke $ECHO with all args, space-separated.
5703 func_echo_all ()
5704 {
5705 $ECHO ""
5706 }
5707
5708 case "$ECHO" in
5709 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5710 $as_echo "printf" >&6; } ;;
5711 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5712 $as_echo "print -r" >&6; } ;;
5713 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5714 $as_echo "cat" >&6; } ;;
5715 esac
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5731 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5732 if ${ac_cv_path_SED+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5736 for ac_i in 1 2 3 4 5 6 7; do
5737 ac_script="$ac_script$as_nl$ac_script"
5738 done
5739 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5740 { ac_script=; unset ac_script;}
5741 if test -z "$SED"; then
5742 ac_path_SED_found=false
5743 # Loop through the user's path and test for each of PROGNAME-LIST
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_prog in sed gsed; do
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5752 as_fn_executable_p "$ac_path_SED" || continue
5753 # Check for GNU ac_path_SED and select it if it is found.
5754 # Check for GNU $ac_path_SED
5755 case `"$ac_path_SED" --version 2>&1` in
5756 *GNU*)
5757 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5758 *)
5759 ac_count=0
5760 $as_echo_n 0123456789 >"conftest.in"
5761 while :
5762 do
5763 cat "conftest.in" "conftest.in" >"conftest.tmp"
5764 mv "conftest.tmp" "conftest.in"
5765 cp "conftest.in" "conftest.nl"
5766 $as_echo '' >> "conftest.nl"
5767 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5769 as_fn_arith $ac_count + 1 && ac_count=$as_val
5770 if test $ac_count -gt ${ac_path_SED_max-0}; then
5771 # Best one so far, save it but keep looking for a better one
5772 ac_cv_path_SED="$ac_path_SED"
5773 ac_path_SED_max=$ac_count
5774 fi
5775 # 10*(2^10) chars as input seems more than enough
5776 test $ac_count -gt 10 && break
5777 done
5778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5779 esac
5780
5781 $ac_path_SED_found && break 3
5782 done
5783 done
5784 done
5785 IFS=$as_save_IFS
5786 if test -z "$ac_cv_path_SED"; then
5787 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5788 fi
5789 else
5790 ac_cv_path_SED=$SED
5791 fi
5792
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5795 $as_echo "$ac_cv_path_SED" >&6; }
5796 SED="$ac_cv_path_SED"
5797 rm -f conftest.sed
5798
5799 test -z "$SED" && SED=sed
5800 Xsed="$SED -e 1s/^X//"
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5813 $as_echo_n "checking for fgrep... " >&6; }
5814 if ${ac_cv_path_FGREP+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5818 then ac_cv_path_FGREP="$GREP -F"
5819 else
5820 if test -z "$FGREP"; then
5821 ac_path_FGREP_found=false
5822 # Loop through the user's path and test for each of PROGNAME-LIST
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5825 do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_prog in fgrep; do
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5831 as_fn_executable_p "$ac_path_FGREP" || continue
5832 # Check for GNU ac_path_FGREP and select it if it is found.
5833 # Check for GNU $ac_path_FGREP
5834 case `"$ac_path_FGREP" --version 2>&1` in
5835 *GNU*)
5836 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5837 *)
5838 ac_count=0
5839 $as_echo_n 0123456789 >"conftest.in"
5840 while :
5841 do
5842 cat "conftest.in" "conftest.in" >"conftest.tmp"
5843 mv "conftest.tmp" "conftest.in"
5844 cp "conftest.in" "conftest.nl"
5845 $as_echo 'FGREP' >> "conftest.nl"
5846 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5847 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5848 as_fn_arith $ac_count + 1 && ac_count=$as_val
5849 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5850 # Best one so far, save it but keep looking for a better one
5851 ac_cv_path_FGREP="$ac_path_FGREP"
5852 ac_path_FGREP_max=$ac_count
5853 fi
5854 # 10*(2^10) chars as input seems more than enough
5855 test $ac_count -gt 10 && break
5856 done
5857 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5858 esac
5859
5860 $ac_path_FGREP_found && break 3
5861 done
5862 done
5863 done
5864 IFS=$as_save_IFS
5865 if test -z "$ac_cv_path_FGREP"; then
5866 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5867 fi
5868 else
5869 ac_cv_path_FGREP=$FGREP
5870 fi
5871
5872 fi
5873 fi
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5875 $as_echo "$ac_cv_path_FGREP" >&6; }
5876 FGREP="$ac_cv_path_FGREP"
5877
5878
5879 test -z "$GREP" && GREP=grep
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899 # Check whether --with-gnu-ld was given.
5900 if test "${with_gnu_ld+set}" = set; then :
5901 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5902 else
5903 with_gnu_ld=no
5904 fi
5905
5906 ac_prog=ld
5907 if test "$GCC" = yes; then
5908 # Check if gcc -print-prog-name=ld gives a path.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5910 $as_echo_n "checking for ld used by $CC... " >&6; }
5911 case $host in
5912 *-*-mingw*)
5913 # gcc leaves a trailing carriage return which upsets mingw
5914 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5915 *)
5916 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5917 esac
5918 case $ac_prog in
5919 # Accept absolute paths.
5920 [\\/]* | ?:[\\/]*)
5921 re_direlt='/[^/][^/]*/\.\./'
5922 # Canonicalize the pathname of ld
5923 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5924 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5925 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5926 done
5927 test -z "$LD" && LD="$ac_prog"
5928 ;;
5929 "")
5930 # If it fails, then pretend we aren't using GCC.
5931 ac_prog=ld
5932 ;;
5933 *)
5934 # If it is relative, then search for the first ld in PATH.
5935 with_gnu_ld=unknown
5936 ;;
5937 esac
5938 elif test "$with_gnu_ld" = yes; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5940 $as_echo_n "checking for GNU ld... " >&6; }
5941 else
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5943 $as_echo_n "checking for non-GNU ld... " >&6; }
5944 fi
5945 if ${lt_cv_path_LD+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if test -z "$LD"; then
5949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5950 for ac_dir in $PATH; do
5951 IFS="$lt_save_ifs"
5952 test -z "$ac_dir" && ac_dir=.
5953 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5954 lt_cv_path_LD="$ac_dir/$ac_prog"
5955 # Check to see if the program is GNU ld. I'd rather use --version,
5956 # but apparently some variants of GNU ld only accept -v.
5957 # Break only if it was the GNU/non-GNU ld that we prefer.
5958 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5959 *GNU* | *'with BFD'*)
5960 test "$with_gnu_ld" != no && break
5961 ;;
5962 *)
5963 test "$with_gnu_ld" != yes && break
5964 ;;
5965 esac
5966 fi
5967 done
5968 IFS="$lt_save_ifs"
5969 else
5970 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5971 fi
5972 fi
5973
5974 LD="$lt_cv_path_LD"
5975 if test -n "$LD"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5977 $as_echo "$LD" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5984 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5985 if ${lt_cv_prog_gnu_ld+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5989 case `$LD -v 2>&1 </dev/null` in
5990 *GNU* | *'with BFD'*)
5991 lt_cv_prog_gnu_ld=yes
5992 ;;
5993 *)
5994 lt_cv_prog_gnu_ld=no
5995 ;;
5996 esac
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5999 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6000 with_gnu_ld=$lt_cv_prog_gnu_ld
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6011 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6012 if ${lt_cv_path_NM+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$NM"; then
6016 # Let the user override the nm to test.
6017 lt_nm_to_check="$NM"
6018 else
6019 lt_nm_to_check="${ac_tool_prefix}nm"
6020 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6021 lt_nm_to_check="$lt_nm_to_check nm"
6022 fi
6023 fi
6024 for lt_tmp_nm in "$lt_nm_to_check"; do
6025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6026 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6027 IFS="$lt_save_ifs"
6028 test -z "$ac_dir" && ac_dir=.
6029 # Strip out any user-provided options from the nm to test twice,
6030 # the first time to test to see if nm (rather than its options) has
6031 # an explicit path, the second time to yield a file which can be
6032 # nm'ed itself.
6033 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6034 case "$tmp_nm_path" in
6035 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6036 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6037 esac
6038 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6039 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6040 # Check to see if the nm accepts a BSD-compat flag.
6041 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6042 # nm: unknown option "B" ignored
6043 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6044 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6045 break
6046 ;;
6047 *)
6048 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6049 *$tmp_nm*)
6050 lt_cv_path_NM="$tmp_nm -p"
6051 break
6052 ;;
6053 *)
6054 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6055 continue # so that we can try to find one that supports BSD flags
6056 ;;
6057 esac
6058 ;;
6059 esac
6060 fi
6061 done
6062 IFS="$lt_save_ifs"
6063 done
6064 : ${lt_cv_path_NM=no}
6065 fi
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6067 $as_echo "$lt_cv_path_NM" >&6; }
6068 if test "$lt_cv_path_NM" != "no"; then
6069 NM="$lt_cv_path_NM"
6070 else
6071 # Didn't find any BSD compatible name lister, look for dumpbin.
6072 if test -n "$DUMPBIN"; then :
6073 # Let the user override the test.
6074 else
6075 if test -n "$ac_tool_prefix"; then
6076 for ac_prog in dumpbin "link -dump"
6077 do
6078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_DUMPBIN+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if test -n "$DUMPBIN"; then
6086 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 DUMPBIN=$ac_cv_prog_DUMPBIN
6106 if test -n "$DUMPBIN"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6108 $as_echo "$DUMPBIN" >&6; }
6109 else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114
6115 test -n "$DUMPBIN" && break
6116 done
6117 fi
6118 if test -z "$DUMPBIN"; then
6119 ac_ct_DUMPBIN=$DUMPBIN
6120 for ac_prog in dumpbin "link -dump"
6121 do
6122 # Extract the first word of "$ac_prog", so it can be a program name with args.
6123 set dummy $ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 if test -n "$ac_ct_DUMPBIN"; then
6130 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 break 2
6142 fi
6143 done
6144 done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6150 if test -n "$ac_ct_DUMPBIN"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6152 $as_echo "$ac_ct_DUMPBIN" >&6; }
6153 else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158
6159 test -n "$ac_ct_DUMPBIN" && break
6160 done
6161
6162 if test "x$ac_ct_DUMPBIN" = x; then
6163 DUMPBIN=":"
6164 else
6165 case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6170 esac
6171 DUMPBIN=$ac_ct_DUMPBIN
6172 fi
6173 fi
6174
6175 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6176 *COFF*)
6177 DUMPBIN="$DUMPBIN -symbols"
6178 ;;
6179 *)
6180 DUMPBIN=:
6181 ;;
6182 esac
6183 fi
6184
6185 if test "$DUMPBIN" != ":"; then
6186 NM="$DUMPBIN"
6187 fi
6188 fi
6189 test -z "$NM" && NM=nm
6190
6191
6192
6193
6194
6195
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6197 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6198 if ${lt_cv_nm_interface+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 lt_cv_nm_interface="BSD nm"
6202 echo "int some_variable = 0;" > conftest.$ac_ext
6203 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6204 (eval "$ac_compile" 2>conftest.err)
6205 cat conftest.err >&5
6206 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6207 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6208 cat conftest.err >&5
6209 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6210 cat conftest.out >&5
6211 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6212 lt_cv_nm_interface="MS dumpbin"
6213 fi
6214 rm -f conftest*
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6217 $as_echo "$lt_cv_nm_interface" >&6; }
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6220 $as_echo_n "checking whether ln -s works... " >&6; }
6221 LN_S=$as_ln_s
6222 if test "$LN_S" = "ln -s"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6224 $as_echo "yes" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6227 $as_echo "no, using $LN_S" >&6; }
6228 fi
6229
6230 # find the maximum length of command line arguments
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6232 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6233 if ${lt_cv_sys_max_cmd_len+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 i=0
6237 teststring="ABCD"
6238
6239 case $build_os in
6240 msdosdjgpp*)
6241 # On DJGPP, this test can blow up pretty badly due to problems in libc
6242 # (any single argument exceeding 2000 bytes causes a buffer overrun
6243 # during glob expansion). Even if it were fixed, the result of this
6244 # check would be larger than it should be.
6245 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6246 ;;
6247
6248 gnu*)
6249 # Under GNU Hurd, this test is not required because there is
6250 # no limit to the length of command line arguments.
6251 # Libtool will interpret -1 as no limit whatsoever
6252 lt_cv_sys_max_cmd_len=-1;
6253 ;;
6254
6255 cygwin* | mingw* | cegcc*)
6256 # On Win9x/ME, this test blows up -- it succeeds, but takes
6257 # about 5 minutes as the teststring grows exponentially.
6258 # Worse, since 9x/ME are not pre-emptively multitasking,
6259 # you end up with a "frozen" computer, even though with patience
6260 # the test eventually succeeds (with a max line length of 256k).
6261 # Instead, let's just punt: use the minimum linelength reported by
6262 # all of the supported platforms: 8192 (on NT/2K/XP).
6263 lt_cv_sys_max_cmd_len=8192;
6264 ;;
6265
6266 mint*)
6267 # On MiNT this can take a long time and run out of memory.
6268 lt_cv_sys_max_cmd_len=8192;
6269 ;;
6270
6271 amigaos*)
6272 # On AmigaOS with pdksh, this test takes hours, literally.
6273 # So we just punt and use a minimum line length of 8192.
6274 lt_cv_sys_max_cmd_len=8192;
6275 ;;
6276
6277 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6278 # This has been around since 386BSD, at least. Likely further.
6279 if test -x /sbin/sysctl; then
6280 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6281 elif test -x /usr/sbin/sysctl; then
6282 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6283 else
6284 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6285 fi
6286 # And add a safety zone
6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6289 ;;
6290
6291 interix*)
6292 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6293 lt_cv_sys_max_cmd_len=196608
6294 ;;
6295
6296 osf*)
6297 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6298 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6299 # nice to cause kernel panics so lets avoid the loop below.
6300 # First set a reasonable default.
6301 lt_cv_sys_max_cmd_len=16384
6302 #
6303 if test -x /sbin/sysconfig; then
6304 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6305 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6306 esac
6307 fi
6308 ;;
6309 sco3.2v5*)
6310 lt_cv_sys_max_cmd_len=102400
6311 ;;
6312 sysv5* | sco5v6* | sysv4.2uw2*)
6313 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6314 if test -n "$kargmax"; then
6315 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6316 else
6317 lt_cv_sys_max_cmd_len=32768
6318 fi
6319 ;;
6320 *)
6321 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6322 if test -n "$lt_cv_sys_max_cmd_len"; then
6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6325 else
6326 # Make teststring a little bigger before we do anything with it.
6327 # a 1K string should be a reasonable start.
6328 for i in 1 2 3 4 5 6 7 8 ; do
6329 teststring=$teststring$teststring
6330 done
6331 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6332 # If test is not a shell built-in, we'll probably end up computing a
6333 # maximum length that is only half of the actual maximum length, but
6334 # we can't tell.
6335 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6336 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6337 test $i != 17 # 1/2 MB should be enough
6338 do
6339 i=`expr $i + 1`
6340 teststring=$teststring$teststring
6341 done
6342 # Only check the string length outside the loop.
6343 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6344 teststring=
6345 # Add a significant safety factor because C++ compilers can tack on
6346 # massive amounts of additional arguments before passing them to the
6347 # linker. It appears as though 1/2 is a usable value.
6348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6349 fi
6350 ;;
6351 esac
6352
6353 fi
6354
6355 if test -n $lt_cv_sys_max_cmd_len ; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6357 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6360 $as_echo "none" >&6; }
6361 fi
6362 max_cmd_len=$lt_cv_sys_max_cmd_len
6363
6364
6365
6366
6367
6368
6369 : ${CP="cp -f"}
6370 : ${MV="mv -f"}
6371 : ${RM="rm -f"}
6372
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6374 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6375 # Try some XSI features
6376 xsi_shell=no
6377 ( _lt_dummy="a/b/c"
6378 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6379 = c,a/b,, \
6380 && eval 'test $(( 1 + 1 )) -eq 2 \
6381 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6382 && xsi_shell=yes
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6384 $as_echo "$xsi_shell" >&6; }
6385
6386
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6388 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6389 lt_shell_append=no
6390 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6391 >/dev/null 2>&1 \
6392 && lt_shell_append=yes
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6394 $as_echo "$lt_shell_append" >&6; }
6395
6396
6397 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6398 lt_unset=unset
6399 else
6400 lt_unset=false
6401 fi
6402
6403
6404
6405
6406
6407 # test EBCDIC or ASCII
6408 case `echo X|tr X '\101'` in
6409 A) # ASCII based system
6410 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6411 lt_SP2NL='tr \040 \012'
6412 lt_NL2SP='tr \015\012 \040\040'
6413 ;;
6414 *) # EBCDIC based system
6415 lt_SP2NL='tr \100 \n'
6416 lt_NL2SP='tr \r\n \100\100'
6417 ;;
6418 esac
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6429 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6430 if ${lt_cv_ld_reload_flag+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 lt_cv_ld_reload_flag='-r'
6434 fi
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6436 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6437 reload_flag=$lt_cv_ld_reload_flag
6438 case $reload_flag in
6439 "" | " "*) ;;
6440 *) reload_flag=" $reload_flag" ;;
6441 esac
6442 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6443 case $host_os in
6444 darwin*)
6445 if test "$GCC" = yes; then
6446 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6447 else
6448 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6449 fi
6450 ;;
6451 esac
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461 if test -n "$ac_tool_prefix"; then
6462 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6463 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_prog_OBJDUMP+:} false; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 if test -n "$OBJDUMP"; then
6470 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6479 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 OBJDUMP=$ac_cv_prog_OBJDUMP
6490 if test -n "$OBJDUMP"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6492 $as_echo "$OBJDUMP" >&6; }
6493 else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6496 fi
6497
6498
6499 fi
6500 if test -z "$ac_cv_prog_OBJDUMP"; then
6501 ac_ct_OBJDUMP=$OBJDUMP
6502 # Extract the first word of "objdump", so it can be a program name with args.
6503 set dummy objdump; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 if test -n "$ac_ct_OBJDUMP"; then
6510 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6522 fi
6523 done
6524 done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6530 if test -n "$ac_ct_OBJDUMP"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6532 $as_echo "$ac_ct_OBJDUMP" >&6; }
6533 else
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538 if test "x$ac_ct_OBJDUMP" = x; then
6539 OBJDUMP="false"
6540 else
6541 case $cross_compiling:$ac_tool_warned in
6542 yes:)
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6545 ac_tool_warned=yes ;;
6546 esac
6547 OBJDUMP=$ac_ct_OBJDUMP
6548 fi
6549 else
6550 OBJDUMP="$ac_cv_prog_OBJDUMP"
6551 fi
6552
6553 test -z "$OBJDUMP" && OBJDUMP=objdump
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6564 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6565 if ${lt_cv_deplibs_check_method+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 lt_cv_file_magic_cmd='$MAGIC_CMD'
6569 lt_cv_file_magic_test_file=
6570 lt_cv_deplibs_check_method='unknown'
6571 # Need to set the preceding variable on all platforms that support
6572 # interlibrary dependencies.
6573 # 'none' -- dependencies not supported.
6574 # `unknown' -- same as none, but documents that we really don't know.
6575 # 'pass_all' -- all dependencies passed with no checks.
6576 # 'test_compile' -- check by making test program.
6577 # 'file_magic [[regex]]' -- check by looking for files in library path
6578 # which responds to the $file_magic_cmd with a given extended regex.
6579 # If you have `file' or equivalent on your system and you're not sure
6580 # whether `pass_all' will *always* work, you probably want this one.
6581
6582 case $host_os in
6583 aix[4-9]*)
6584 lt_cv_deplibs_check_method=pass_all
6585 ;;
6586
6587 beos*)
6588 lt_cv_deplibs_check_method=pass_all
6589 ;;
6590
6591 bsdi[45]*)
6592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6593 lt_cv_file_magic_cmd='/usr/bin/file -L'
6594 lt_cv_file_magic_test_file=/shlib/libc.so
6595 ;;
6596
6597 cygwin*)
6598 # func_win32_libid is a shell function defined in ltmain.sh
6599 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6600 lt_cv_file_magic_cmd='func_win32_libid'
6601 ;;
6602
6603 mingw* | pw32*)
6604 # Base MSYS/MinGW do not provide the 'file' command needed by
6605 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6606 # unless we find 'file', for example because we are cross-compiling.
6607 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6608 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6609 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6610 lt_cv_file_magic_cmd='func_win32_libid'
6611 else
6612 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6613 lt_cv_file_magic_cmd='$OBJDUMP -f'
6614 fi
6615 ;;
6616
6617 cegcc*)
6618 # use the weaker test based on 'objdump'. See mingw*.
6619 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6620 lt_cv_file_magic_cmd='$OBJDUMP -f'
6621 ;;
6622
6623 darwin* | rhapsody*)
6624 lt_cv_deplibs_check_method=pass_all
6625 ;;
6626
6627 freebsd* | dragonfly*)
6628 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6629 case $host_cpu in
6630 i*86 )
6631 # Not sure whether the presence of OpenBSD here was a mistake.
6632 # Let's accept both of them until this is cleared up.
6633 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6634 lt_cv_file_magic_cmd=/usr/bin/file
6635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6636 ;;
6637 esac
6638 else
6639 lt_cv_deplibs_check_method=pass_all
6640 fi
6641 ;;
6642
6643 gnu*)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646
6647 haiku*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651 hpux10.20* | hpux11*)
6652 lt_cv_file_magic_cmd=/usr/bin/file
6653 case $host_cpu in
6654 ia64*)
6655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6656 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6657 ;;
6658 hppa*64*)
6659 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]'
6660 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6661 ;;
6662 *)
6663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6664 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6665 ;;
6666 esac
6667 ;;
6668
6669 interix[3-9]*)
6670 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6672 ;;
6673
6674 irix5* | irix6* | nonstopux*)
6675 case $LD in
6676 *-32|*"-32 ") libmagic=32-bit;;
6677 *-n32|*"-n32 ") libmagic=N32;;
6678 *-64|*"-64 ") libmagic=64-bit;;
6679 *) libmagic=never-match;;
6680 esac
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
6683
6684 # This must be Linux ELF.
6685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6686 lt_cv_deplibs_check_method=pass_all
6687 ;;
6688
6689 netbsd*)
6690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6692 else
6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6694 fi
6695 ;;
6696
6697 newos6*)
6698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6699 lt_cv_file_magic_cmd=/usr/bin/file
6700 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6701 ;;
6702
6703 *nto* | *qnx*)
6704 lt_cv_deplibs_check_method=pass_all
6705 ;;
6706
6707 openbsd*)
6708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6710 else
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712 fi
6713 ;;
6714
6715 osf3* | osf4* | osf5*)
6716 lt_cv_deplibs_check_method=pass_all
6717 ;;
6718
6719 rdos*)
6720 lt_cv_deplibs_check_method=pass_all
6721 ;;
6722
6723 solaris*)
6724 lt_cv_deplibs_check_method=pass_all
6725 ;;
6726
6727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
6730
6731 sysv4 | sysv4.3*)
6732 case $host_vendor in
6733 motorola)
6734 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]'
6735 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6736 ;;
6737 ncr)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740 sequent)
6741 lt_cv_file_magic_cmd='/bin/file'
6742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6743 ;;
6744 sni)
6745 lt_cv_file_magic_cmd='/bin/file'
6746 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6747 lt_cv_file_magic_test_file=/lib/libc.so
6748 ;;
6749 siemens)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752 pc)
6753 lt_cv_deplibs_check_method=pass_all
6754 ;;
6755 esac
6756 ;;
6757
6758 tpf*)
6759 lt_cv_deplibs_check_method=pass_all
6760 ;;
6761 esac
6762
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6765 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6766 file_magic_cmd=$lt_cv_file_magic_cmd
6767 deplibs_check_method=$lt_cv_deplibs_check_method
6768 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781 plugin_option=
6782 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6783 for plugin in $plugin_names; do
6784 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6785 if test x$plugin_so = x$plugin; then
6786 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6787 fi
6788 if test x$plugin_so != x$plugin; then
6789 plugin_option="--plugin $plugin_so"
6790 break
6791 fi
6792 done
6793
6794 if test -n "$ac_tool_prefix"; then
6795 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6796 set dummy ${ac_tool_prefix}ar; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_prog_AR+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 if test -n "$AR"; then
6803 ac_cv_prog_AR="$AR" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_AR="${ac_tool_prefix}ar"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 AR=$ac_cv_prog_AR
6823 if test -n "$AR"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6825 $as_echo "$AR" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 fi
6830
6831
6832 fi
6833 if test -z "$ac_cv_prog_AR"; then
6834 ac_ct_AR=$AR
6835 # Extract the first word of "ar", so it can be a program name with args.
6836 set dummy ar; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$ac_ct_AR"; then
6843 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_ac_ct_AR="ar"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6863 if test -n "$ac_ct_AR"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6865 $as_echo "$ac_ct_AR" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871 if test "x$ac_ct_AR" = x; then
6872 AR="false"
6873 else
6874 case $cross_compiling:$ac_tool_warned in
6875 yes:)
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878 ac_tool_warned=yes ;;
6879 esac
6880 AR=$ac_ct_AR
6881 fi
6882 else
6883 AR="$ac_cv_prog_AR"
6884 fi
6885
6886 test -z "$AR" && AR=ar
6887 if test -n "$plugin_option"; then
6888 if $AR --help 2>&1 | grep -q "\--plugin"; then
6889 touch conftest.c
6890 $AR $plugin_option rc conftest.a conftest.c
6891 if test "$?" != 0; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6893 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6894 else
6895 AR="$AR $plugin_option"
6896 fi
6897 rm -f conftest.*
6898 fi
6899 fi
6900 test -z "$AR_FLAGS" && AR_FLAGS=cru
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}strip; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_STRIP+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 if test -n "$STRIP"; then
6921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 STRIP=$ac_cv_prog_STRIP
6941 if test -n "$STRIP"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6943 $as_echo "$STRIP" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_STRIP"; then
6952 ac_ct_STRIP=$STRIP
6953 # Extract the first word of "strip", so it can be a program name with args.
6954 set dummy strip; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test -n "$ac_ct_STRIP"; then
6961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_STRIP="strip"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6981 if test -n "$ac_ct_STRIP"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6983 $as_echo "$ac_ct_STRIP" >&6; }
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989 if test "x$ac_ct_STRIP" = x; then
6990 STRIP=":"
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998 STRIP=$ac_ct_STRIP
6999 fi
7000 else
7001 STRIP="$ac_cv_prog_STRIP"
7002 fi
7003
7004 test -z "$STRIP" && STRIP=:
7005
7006
7007
7008
7009
7010
7011 if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_RANLIB+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 if test -n "$RANLIB"; then
7020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 RANLIB=$ac_cv_prog_RANLIB
7040 if test -n "$RANLIB"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7042 $as_echo "$RANLIB" >&6; }
7043 else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048
7049 fi
7050 if test -z "$ac_cv_prog_RANLIB"; then
7051 ac_ct_RANLIB=$RANLIB
7052 # Extract the first word of "ranlib", so it can be a program name with args.
7053 set dummy ranlib; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 if test -n "$ac_ct_RANLIB"; then
7060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069 ac_cv_prog_ac_ct_RANLIB="ranlib"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7072 fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7076
7077 fi
7078 fi
7079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080 if test -n "$ac_ct_RANLIB"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7082 $as_echo "$ac_ct_RANLIB" >&6; }
7083 else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7086 fi
7087
7088 if test "x$ac_ct_RANLIB" = x; then
7089 RANLIB=":"
7090 else
7091 case $cross_compiling:$ac_tool_warned in
7092 yes:)
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7095 ac_tool_warned=yes ;;
7096 esac
7097 RANLIB=$ac_ct_RANLIB
7098 fi
7099 else
7100 RANLIB="$ac_cv_prog_RANLIB"
7101 fi
7102
7103 test -z "$RANLIB" && RANLIB=:
7104 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7105 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7106 RANLIB="$RANLIB $plugin_option"
7107 fi
7108 fi
7109
7110
7111
7112
7113
7114
7115 # Determine commands to create old-style static archives.
7116 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7117 old_postinstall_cmds='chmod 644 $oldlib'
7118 old_postuninstall_cmds=
7119
7120 if test -n "$RANLIB"; then
7121 case $host_os in
7122 openbsd*)
7123 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7124 ;;
7125 *)
7126 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7127 ;;
7128 esac
7129 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7130 fi
7131
7132 case $host_os in
7133 darwin*)
7134 lock_old_archive_extraction=yes ;;
7135 *)
7136 lock_old_archive_extraction=no ;;
7137 esac
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159 for ac_prog in gawk mawk nawk awk
7160 do
7161 # Extract the first word of "$ac_prog", so it can be a program name with args.
7162 set dummy $ac_prog; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_AWK+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 if test -n "$AWK"; then
7169 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_AWK="$ac_prog"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 AWK=$ac_cv_prog_AWK
7189 if test -n "$AWK"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7191 $as_echo "$AWK" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197
7198 test -n "$AWK" && break
7199 done
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219 # If no C compiler was specified, use CC.
7220 LTCC=${LTCC-"$CC"}
7221
7222 # If no C compiler flags were specified, use CFLAGS.
7223 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7224
7225 # Allow CC to be a program name with arguments.
7226 compiler=$CC
7227
7228
7229 # Check for command to grab the raw symbol name followed by C symbol from nm.
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7231 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7232 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235
7236 # These are sane defaults that work on at least a few old systems.
7237 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7238
7239 # Character class describing NM global symbol codes.
7240 symcode='[BCDEGRST]'
7241
7242 # Regexp to match symbols that can be accessed directly from C.
7243 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7244
7245 # Define system-specific variables.
7246 case $host_os in
7247 aix*)
7248 symcode='[BCDT]'
7249 ;;
7250 cygwin* | mingw* | pw32* | cegcc*)
7251 symcode='[ABCDGISTW]'
7252 ;;
7253 hpux*)
7254 if test "$host_cpu" = ia64; then
7255 symcode='[ABCDEGRST]'
7256 fi
7257 ;;
7258 irix* | nonstopux*)
7259 symcode='[BCDEGRST]'
7260 ;;
7261 osf*)
7262 symcode='[BCDEGQRST]'
7263 ;;
7264 solaris*)
7265 symcode='[BCDRT]'
7266 ;;
7267 sco3.2v5*)
7268 symcode='[DT]'
7269 ;;
7270 sysv4.2uw2*)
7271 symcode='[DT]'
7272 ;;
7273 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7274 symcode='[ABDT]'
7275 ;;
7276 sysv4)
7277 symcode='[DFNSTU]'
7278 ;;
7279 esac
7280
7281 # If we're using GNU nm, then use its standard symbol codes.
7282 case `$NM -V 2>&1` in
7283 *GNU* | *'with BFD'*)
7284 symcode='[ABCDGIRSTW]' ;;
7285 esac
7286
7287 # Transform an extracted symbol line into a proper C declaration.
7288 # Some systems (esp. on ia64) link data and code symbols differently,
7289 # so use this general approach.
7290 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7291
7292 # Transform an extracted symbol line into symbol name and symbol address
7293 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7294 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'"
7295
7296 # Handle CRLF in mingw tool chain
7297 opt_cr=
7298 case $build_os in
7299 mingw*)
7300 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7301 ;;
7302 esac
7303
7304 # Try without a prefix underscore, then with it.
7305 for ac_symprfx in "" "_"; do
7306
7307 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7308 symxfrm="\\1 $ac_symprfx\\2 \\2"
7309
7310 # Write the raw and C identifiers.
7311 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7312 # Fake it for dumpbin and say T for any non-static function
7313 # and D for any global variable.
7314 # Also find C++ and __fastcall symbols from MSVC++,
7315 # which start with @ or ?.
7316 lt_cv_sys_global_symbol_pipe="$AWK '"\
7317 " {last_section=section; section=\$ 3};"\
7318 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7319 " \$ 0!~/External *\|/{next};"\
7320 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7321 " {if(hide[section]) next};"\
7322 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7323 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7324 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7325 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7326 " ' prfx=^$ac_symprfx"
7327 else
7328 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7329 fi
7330
7331 # Check to see that the pipe works correctly.
7332 pipe_works=no
7333
7334 rm -f conftest*
7335 cat > conftest.$ac_ext <<_LT_EOF
7336 #ifdef __cplusplus
7337 extern "C" {
7338 #endif
7339 char nm_test_var;
7340 void nm_test_func(void);
7341 void nm_test_func(void){}
7342 #ifdef __cplusplus
7343 }
7344 #endif
7345 int main(){nm_test_var='a';nm_test_func();return(0);}
7346 _LT_EOF
7347
7348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7349 (eval $ac_compile) 2>&5
7350 ac_status=$?
7351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7352 test $ac_status = 0; }; then
7353 # Now try to grab the symbols.
7354 nlist=conftest.nm
7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7356 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7357 ac_status=$?
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; } && test -s "$nlist"; then
7360 # Try sorting and uniquifying the output.
7361 if sort "$nlist" | uniq > "$nlist"T; then
7362 mv -f "$nlist"T "$nlist"
7363 else
7364 rm -f "$nlist"T
7365 fi
7366
7367 # Make sure that we snagged all the symbols we need.
7368 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7369 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7370 cat <<_LT_EOF > conftest.$ac_ext
7371 #ifdef __cplusplus
7372 extern "C" {
7373 #endif
7374
7375 _LT_EOF
7376 # Now generate the symbol file.
7377 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7378
7379 cat <<_LT_EOF >> conftest.$ac_ext
7380
7381 /* The mapping between symbol names and symbols. */
7382 const struct {
7383 const char *name;
7384 void *address;
7385 }
7386 lt__PROGRAM__LTX_preloaded_symbols[] =
7387 {
7388 { "@PROGRAM@", (void *) 0 },
7389 _LT_EOF
7390 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7391 cat <<\_LT_EOF >> conftest.$ac_ext
7392 {0, (void *) 0}
7393 };
7394
7395 /* This works around a problem in FreeBSD linker */
7396 #ifdef FREEBSD_WORKAROUND
7397 static const void *lt_preloaded_setup() {
7398 return lt__PROGRAM__LTX_preloaded_symbols;
7399 }
7400 #endif
7401
7402 #ifdef __cplusplus
7403 }
7404 #endif
7405 _LT_EOF
7406 # Now try linking the two files.
7407 mv conftest.$ac_objext conftstm.$ac_objext
7408 lt_save_LIBS="$LIBS"
7409 lt_save_CFLAGS="$CFLAGS"
7410 LIBS="conftstm.$ac_objext"
7411 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7413 (eval $ac_link) 2>&5
7414 ac_status=$?
7415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7417 pipe_works=yes
7418 fi
7419 LIBS="$lt_save_LIBS"
7420 CFLAGS="$lt_save_CFLAGS"
7421 else
7422 echo "cannot find nm_test_func in $nlist" >&5
7423 fi
7424 else
7425 echo "cannot find nm_test_var in $nlist" >&5
7426 fi
7427 else
7428 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7429 fi
7430 else
7431 echo "$progname: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 fi
7434 rm -rf conftest* conftst*
7435
7436 # Do not use the global_symbol_pipe unless it works.
7437 if test "$pipe_works" = yes; then
7438 break
7439 else
7440 lt_cv_sys_global_symbol_pipe=
7441 fi
7442 done
7443
7444 fi
7445
7446 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7447 lt_cv_sys_global_symbol_to_cdecl=
7448 fi
7449 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7451 $as_echo "failed" >&6; }
7452 else
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7454 $as_echo "ok" >&6; }
7455 fi
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478 # Check whether --enable-libtool-lock was given.
7479 if test "${enable_libtool_lock+set}" = set; then :
7480 enableval=$enable_libtool_lock;
7481 fi
7482
7483 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7484
7485 # Some flags need to be propagated to the compiler or linker for good
7486 # libtool support.
7487 case $host in
7488 ia64-*-hpux*)
7489 # Find out which ABI we are using.
7490 echo 'int i;' > conftest.$ac_ext
7491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7492 (eval $ac_compile) 2>&5
7493 ac_status=$?
7494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495 test $ac_status = 0; }; then
7496 case `/usr/bin/file conftest.$ac_objext` in
7497 *ELF-32*)
7498 HPUX_IA64_MODE="32"
7499 ;;
7500 *ELF-64*)
7501 HPUX_IA64_MODE="64"
7502 ;;
7503 esac
7504 fi
7505 rm -rf conftest*
7506 ;;
7507 *-*-irix6*)
7508 # Find out which ABI we are using.
7509 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511 (eval $ac_compile) 2>&5
7512 ac_status=$?
7513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; then
7515 if test "$lt_cv_prog_gnu_ld" = yes; then
7516 case `/usr/bin/file conftest.$ac_objext` in
7517 *32-bit*)
7518 LD="${LD-ld} -melf32bsmip"
7519 ;;
7520 *N32*)
7521 LD="${LD-ld} -melf32bmipn32"
7522 ;;
7523 *64-bit*)
7524 LD="${LD-ld} -melf64bmip"
7525 ;;
7526 esac
7527 else
7528 case `/usr/bin/file conftest.$ac_objext` in
7529 *32-bit*)
7530 LD="${LD-ld} -32"
7531 ;;
7532 *N32*)
7533 LD="${LD-ld} -n32"
7534 ;;
7535 *64-bit*)
7536 LD="${LD-ld} -64"
7537 ;;
7538 esac
7539 fi
7540 fi
7541 rm -rf conftest*
7542 ;;
7543
7544 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7545 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7546 # Find out which ABI we are using.
7547 echo 'int i;' > conftest.$ac_ext
7548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7549 (eval $ac_compile) 2>&5
7550 ac_status=$?
7551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552 test $ac_status = 0; }; then
7553 case `/usr/bin/file conftest.o` in
7554 *32-bit*)
7555 case $host in
7556 x86_64-*kfreebsd*-gnu)
7557 LD="${LD-ld} -m elf_i386_fbsd"
7558 ;;
7559 x86_64-*linux*)
7560 case `/usr/bin/file conftest.o` in
7561 *x86-64*)
7562 LD="${LD-ld} -m elf32_x86_64"
7563 ;;
7564 *)
7565 LD="${LD-ld} -m elf_i386"
7566 ;;
7567 esac
7568 ;;
7569 powerpc64le-*linux*)
7570 LD="${LD-ld} -m elf32lppclinux"
7571 ;;
7572 powerpc64-*linux*)
7573 LD="${LD-ld} -m elf32ppclinux"
7574 ;;
7575 s390x-*linux*)
7576 LD="${LD-ld} -m elf_s390"
7577 ;;
7578 sparc64-*linux*)
7579 LD="${LD-ld} -m elf32_sparc"
7580 ;;
7581 esac
7582 ;;
7583 *64-bit*)
7584 case $host in
7585 x86_64-*kfreebsd*-gnu)
7586 LD="${LD-ld} -m elf_x86_64_fbsd"
7587 ;;
7588 x86_64-*linux*)
7589 LD="${LD-ld} -m elf_x86_64"
7590 ;;
7591 powerpcle-*linux*)
7592 LD="${LD-ld} -m elf64lppc"
7593 ;;
7594 powerpc-*linux*)
7595 LD="${LD-ld} -m elf64ppc"
7596 ;;
7597 s390*-*linux*|s390*-*tpf*)
7598 LD="${LD-ld} -m elf64_s390"
7599 ;;
7600 sparc*-*linux*)
7601 LD="${LD-ld} -m elf64_sparc"
7602 ;;
7603 esac
7604 ;;
7605 esac
7606 fi
7607 rm -rf conftest*
7608 ;;
7609
7610 *-*-sco3.2v5*)
7611 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7612 SAVE_CFLAGS="$CFLAGS"
7613 CFLAGS="$CFLAGS -belf"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7615 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7616 if ${lt_cv_cc_needs_belf+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 ac_ext=c
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627
7628 int
7629 main ()
7630 {
7631
7632 ;
7633 return 0;
7634 }
7635 _ACEOF
7636 if ac_fn_c_try_link "$LINENO"; then :
7637 lt_cv_cc_needs_belf=yes
7638 else
7639 lt_cv_cc_needs_belf=no
7640 fi
7641 rm -f core conftest.err conftest.$ac_objext \
7642 conftest$ac_exeext conftest.$ac_ext
7643 ac_ext=c
7644 ac_cpp='$CPP $CPPFLAGS'
7645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7648
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7651 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7652 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7653 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7654 CFLAGS="$SAVE_CFLAGS"
7655 fi
7656 ;;
7657 sparc*-*solaris*)
7658 # Find out which ABI we are using.
7659 echo 'int i;' > conftest.$ac_ext
7660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7661 (eval $ac_compile) 2>&5
7662 ac_status=$?
7663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7664 test $ac_status = 0; }; then
7665 case `/usr/bin/file conftest.o` in
7666 *64-bit*)
7667 case $lt_cv_prog_gnu_ld in
7668 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7669 *)
7670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7671 LD="${LD-ld} -64"
7672 fi
7673 ;;
7674 esac
7675 ;;
7676 esac
7677 fi
7678 rm -rf conftest*
7679 ;;
7680 esac
7681
7682 need_locks="$enable_libtool_lock"
7683
7684
7685 case $host_os in
7686 rhapsody* | darwin*)
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 if test -n "$DSYMUTIL"; then
7696 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709 done
7710 done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7716 if test -n "$DSYMUTIL"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7718 $as_echo "$DSYMUTIL" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725 fi
7726 if test -z "$ac_cv_prog_DSYMUTIL"; then
7727 ac_ct_DSYMUTIL=$DSYMUTIL
7728 # Extract the first word of "dsymutil", so it can be a program name with args.
7729 set dummy dsymutil; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 if test -n "$ac_ct_DSYMUTIL"; then
7736 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749 done
7750 done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7756 if test -n "$ac_ct_DSYMUTIL"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7758 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7759 else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764 if test "x$ac_ct_DSYMUTIL" = x; then
7765 DSYMUTIL=":"
7766 else
7767 case $cross_compiling:$ac_tool_warned in
7768 yes:)
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771 ac_tool_warned=yes ;;
7772 esac
7773 DSYMUTIL=$ac_ct_DSYMUTIL
7774 fi
7775 else
7776 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7777 fi
7778
7779 if test -n "$ac_tool_prefix"; then
7780 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7781 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_NMEDIT+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$NMEDIT"; then
7788 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 NMEDIT=$ac_cv_prog_NMEDIT
7808 if test -n "$NMEDIT"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7810 $as_echo "$NMEDIT" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816
7817 fi
7818 if test -z "$ac_cv_prog_NMEDIT"; then
7819 ac_ct_NMEDIT=$NMEDIT
7820 # Extract the first word of "nmedit", so it can be a program name with args.
7821 set dummy nmedit; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 if test -n "$ac_ct_NMEDIT"; then
7828 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7848 if test -n "$ac_ct_NMEDIT"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7850 $as_echo "$ac_ct_NMEDIT" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856 if test "x$ac_ct_NMEDIT" = x; then
7857 NMEDIT=":"
7858 else
7859 case $cross_compiling:$ac_tool_warned in
7860 yes:)
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned=yes ;;
7864 esac
7865 NMEDIT=$ac_ct_NMEDIT
7866 fi
7867 else
7868 NMEDIT="$ac_cv_prog_NMEDIT"
7869 fi
7870
7871 if test -n "$ac_tool_prefix"; then
7872 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7873 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_LIPO+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$LIPO"; then
7880 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 LIPO=$ac_cv_prog_LIPO
7900 if test -n "$LIPO"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7902 $as_echo "$LIPO" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908
7909 fi
7910 if test -z "$ac_cv_prog_LIPO"; then
7911 ac_ct_LIPO=$LIPO
7912 # Extract the first word of "lipo", so it can be a program name with args.
7913 set dummy lipo; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$ac_ct_LIPO"; then
7920 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_ac_ct_LIPO="lipo"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7940 if test -n "$ac_ct_LIPO"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7942 $as_echo "$ac_ct_LIPO" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948 if test "x$ac_ct_LIPO" = x; then
7949 LIPO=":"
7950 else
7951 case $cross_compiling:$ac_tool_warned in
7952 yes:)
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7955 ac_tool_warned=yes ;;
7956 esac
7957 LIPO=$ac_ct_LIPO
7958 fi
7959 else
7960 LIPO="$ac_cv_prog_LIPO"
7961 fi
7962
7963 if test -n "$ac_tool_prefix"; then
7964 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7965 set dummy ${ac_tool_prefix}otool; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if ${ac_cv_prog_OTOOL+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 if test -n "$OTOOL"; then
7972 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985 done
7986 done
7987 IFS=$as_save_IFS
7988
7989 fi
7990 fi
7991 OTOOL=$ac_cv_prog_OTOOL
7992 if test -n "$OTOOL"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7994 $as_echo "$OTOOL" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999
8000
8001 fi
8002 if test -z "$ac_cv_prog_OTOOL"; then
8003 ac_ct_OTOOL=$OTOOL
8004 # Extract the first word of "otool", so it can be a program name with args.
8005 set dummy otool; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$ac_ct_OTOOL"; then
8012 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_ac_ct_OTOOL="otool"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8032 if test -n "$ac_ct_OTOOL"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8034 $as_echo "$ac_ct_OTOOL" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040 if test "x$ac_ct_OTOOL" = x; then
8041 OTOOL=":"
8042 else
8043 case $cross_compiling:$ac_tool_warned in
8044 yes:)
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047 ac_tool_warned=yes ;;
8048 esac
8049 OTOOL=$ac_ct_OTOOL
8050 fi
8051 else
8052 OTOOL="$ac_cv_prog_OTOOL"
8053 fi
8054
8055 if test -n "$ac_tool_prefix"; then
8056 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_prog_OTOOL64+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 if test -n "$OTOOL64"; then
8064 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077 done
8078 done
8079 IFS=$as_save_IFS
8080
8081 fi
8082 fi
8083 OTOOL64=$ac_cv_prog_OTOOL64
8084 if test -n "$OTOOL64"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8086 $as_echo "$OTOOL64" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092
8093 fi
8094 if test -z "$ac_cv_prog_OTOOL64"; then
8095 ac_ct_OTOOL64=$OTOOL64
8096 # Extract the first word of "otool64", so it can be a program name with args.
8097 set dummy otool64; ac_word=$2
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099 $as_echo_n "checking for $ac_word... " >&6; }
8100 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 if test -n "$ac_ct_OTOOL64"; then
8104 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8105 else
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_ac_ct_OTOOL64="otool64"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117 done
8118 done
8119 IFS=$as_save_IFS
8120
8121 fi
8122 fi
8123 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8124 if test -n "$ac_ct_OTOOL64"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8126 $as_echo "$ac_ct_OTOOL64" >&6; }
8127 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8130 fi
8131
8132 if test "x$ac_ct_OTOOL64" = x; then
8133 OTOOL64=":"
8134 else
8135 case $cross_compiling:$ac_tool_warned in
8136 yes:)
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139 ac_tool_warned=yes ;;
8140 esac
8141 OTOOL64=$ac_ct_OTOOL64
8142 fi
8143 else
8144 OTOOL64="$ac_cv_prog_OTOOL64"
8145 fi
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8174 $as_echo_n "checking for -single_module linker flag... " >&6; }
8175 if ${lt_cv_apple_cc_single_mod+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 lt_cv_apple_cc_single_mod=no
8179 if test -z "${LT_MULTI_MODULE}"; then
8180 # By default we will add the -single_module flag. You can override
8181 # by either setting the environment variable LT_MULTI_MODULE
8182 # non-empty at configure time, or by adding -multi_module to the
8183 # link flags.
8184 rm -rf libconftest.dylib*
8185 echo "int foo(void){return 1;}" > conftest.c
8186 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8187 -dynamiclib -Wl,-single_module conftest.c" >&5
8188 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8189 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8190 _lt_result=$?
8191 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8192 lt_cv_apple_cc_single_mod=yes
8193 else
8194 cat conftest.err >&5
8195 fi
8196 rm -rf libconftest.dylib*
8197 rm -f conftest.*
8198 fi
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8201 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8203 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8204 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 lt_cv_ld_exported_symbols_list=no
8208 save_LDFLAGS=$LDFLAGS
8209 echo "_main" > conftest.sym
8210 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8213
8214 int
8215 main ()
8216 {
8217
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 if ac_fn_c_try_link "$LINENO"; then :
8223 lt_cv_ld_exported_symbols_list=yes
8224 else
8225 lt_cv_ld_exported_symbols_list=no
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext \
8228 conftest$ac_exeext conftest.$ac_ext
8229 LDFLAGS="$save_LDFLAGS"
8230
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8233 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8235 $as_echo_n "checking for -force_load linker flag... " >&6; }
8236 if ${lt_cv_ld_force_load+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 lt_cv_ld_force_load=no
8240 cat > conftest.c << _LT_EOF
8241 int forced_loaded() { return 2;}
8242 _LT_EOF
8243 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8244 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8245 echo "$AR cru libconftest.a conftest.o" >&5
8246 $AR cru libconftest.a conftest.o 2>&5
8247 cat > conftest.c << _LT_EOF
8248 int main() { return 0;}
8249 _LT_EOF
8250 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8251 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8252 _lt_result=$?
8253 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8254 lt_cv_ld_force_load=yes
8255 else
8256 cat conftest.err >&5
8257 fi
8258 rm -f conftest.err libconftest.a conftest conftest.c
8259 rm -rf conftest.dSYM
8260
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8263 $as_echo "$lt_cv_ld_force_load" >&6; }
8264 case $host_os in
8265 rhapsody* | darwin1.[012])
8266 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8267 darwin1.*)
8268 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8269 darwin*) # darwin 5.x on
8270 # if running on 10.5 or later, the deployment target defaults
8271 # to the OS version, if on x86, and 10.4, the deployment
8272 # target defaults to 10.4. Don't you love it?
8273 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8274 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8275 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8276 10.[012][,.]*)
8277 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8278 10.*)
8279 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8280 esac
8281 ;;
8282 esac
8283 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8284 _lt_dar_single_mod='$single_module'
8285 fi
8286 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8287 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8288 else
8289 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8290 fi
8291 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8292 _lt_dsymutil='~$DSYMUTIL $lib || :'
8293 else
8294 _lt_dsymutil=
8295 fi
8296 ;;
8297 esac
8298
8299 for ac_header in dlfcn.h
8300 do :
8301 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8302 "
8303 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8304 cat >>confdefs.h <<_ACEOF
8305 #define HAVE_DLFCN_H 1
8306 _ACEOF
8307
8308 fi
8309
8310 done
8311
8312
8313 ac_header_dirent=no
8314 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8315 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8317 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8318 if eval \${$as_ac_Header+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 #include <sys/types.h>
8324 #include <$ac_hdr>
8325
8326 int
8327 main ()
8328 {
8329 if ((DIR *) 0)
8330 return 0;
8331 ;
8332 return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336 eval "$as_ac_Header=yes"
8337 else
8338 eval "$as_ac_Header=no"
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 fi
8342 eval ac_res=\$$as_ac_Header
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8344 $as_echo "$ac_res" >&6; }
8345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8346 cat >>confdefs.h <<_ACEOF
8347 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8348 _ACEOF
8349
8350 ac_header_dirent=$ac_hdr; break
8351 fi
8352
8353 done
8354 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8355 if test $ac_header_dirent = dirent.h; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8357 $as_echo_n "checking for library containing opendir... " >&6; }
8358 if ${ac_cv_search_opendir+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 ac_func_search_save_LIBS=$LIBS
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364
8365 /* Override any GCC internal prototype to avoid an error.
8366 Use char because int might match the return type of a GCC
8367 builtin and then its argument prototype would still apply. */
8368 #ifdef __cplusplus
8369 extern "C"
8370 #endif
8371 char opendir ();
8372 int
8373 main ()
8374 {
8375 return opendir ();
8376 ;
8377 return 0;
8378 }
8379 _ACEOF
8380 for ac_lib in '' dir; do
8381 if test -z "$ac_lib"; then
8382 ac_res="none required"
8383 else
8384 ac_res=-l$ac_lib
8385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8386 fi
8387 if ac_fn_c_try_link "$LINENO"; then :
8388 ac_cv_search_opendir=$ac_res
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext \
8391 conftest$ac_exeext
8392 if ${ac_cv_search_opendir+:} false; then :
8393 break
8394 fi
8395 done
8396 if ${ac_cv_search_opendir+:} false; then :
8397
8398 else
8399 ac_cv_search_opendir=no
8400 fi
8401 rm conftest.$ac_ext
8402 LIBS=$ac_func_search_save_LIBS
8403 fi
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8405 $as_echo "$ac_cv_search_opendir" >&6; }
8406 ac_res=$ac_cv_search_opendir
8407 if test "$ac_res" != no; then :
8408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8409
8410 fi
8411
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8414 $as_echo_n "checking for library containing opendir... " >&6; }
8415 if ${ac_cv_search_opendir+:} false; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 ac_func_search_save_LIBS=$LIBS
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421
8422 /* Override any GCC internal prototype to avoid an error.
8423 Use char because int might match the return type of a GCC
8424 builtin and then its argument prototype would still apply. */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 char opendir ();
8429 int
8430 main ()
8431 {
8432 return opendir ();
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 for ac_lib in '' x; do
8438 if test -z "$ac_lib"; then
8439 ac_res="none required"
8440 else
8441 ac_res=-l$ac_lib
8442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8443 fi
8444 if ac_fn_c_try_link "$LINENO"; then :
8445 ac_cv_search_opendir=$ac_res
8446 fi
8447 rm -f core conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext
8449 if ${ac_cv_search_opendir+:} false; then :
8450 break
8451 fi
8452 done
8453 if ${ac_cv_search_opendir+:} false; then :
8454
8455 else
8456 ac_cv_search_opendir=no
8457 fi
8458 rm conftest.$ac_ext
8459 LIBS=$ac_func_search_save_LIBS
8460 fi
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8462 $as_echo "$ac_cv_search_opendir" >&6; }
8463 ac_res=$ac_cv_search_opendir
8464 if test "$ac_res" != no; then :
8465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8466
8467 fi
8468
8469 fi
8470
8471
8472
8473
8474 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8475 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8476
8477 cat >>confdefs.h <<_ACEOF
8478 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8479 _ACEOF
8480
8481
8482 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8483
8484 fi
8485
8486
8487 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8488 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8489
8490 cat >>confdefs.h <<_ACEOF
8491 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8492 _ACEOF
8493
8494
8495 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8496
8497 else
8498 case " $LIBOBJS " in
8499 *" fileblocks.$ac_objext "* ) ;;
8500 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8501 ;;
8502 esac
8503
8504 fi
8505
8506
8507 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8508 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8509
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_STRUCT_STAT_ST_RDEV 1
8512 _ACEOF
8513
8514
8515 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8516
8517 fi
8518
8519
8520 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8521 #include <$ac_cv_struct_tm>
8522
8523 "
8524 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8525
8526 cat >>confdefs.h <<_ACEOF
8527 #define HAVE_STRUCT_TM_TM_ZONE 1
8528 _ACEOF
8529
8530
8531 fi
8532
8533 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8534
8535 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8536
8537 else
8538 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8539 "
8540 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8541 ac_have_decl=1
8542 else
8543 ac_have_decl=0
8544 fi
8545
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_DECL_TZNAME $ac_have_decl
8548 _ACEOF
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8551 $as_echo_n "checking for tzname... " >&6; }
8552 if ${ac_cv_var_tzname+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <time.h>
8558 #if !HAVE_DECL_TZNAME
8559 extern char *tzname[];
8560 #endif
8561
8562 int
8563 main ()
8564 {
8565 return tzname[0][0];
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_c_try_link "$LINENO"; then :
8571 ac_cv_var_tzname=yes
8572 else
8573 ac_cv_var_tzname=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8579 $as_echo "$ac_cv_var_tzname" >&6; }
8580 if test $ac_cv_var_tzname = yes; then
8581
8582 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8583
8584 fi
8585 fi
8586
8587
8588 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8589 #include <sys/types.h>
8590 #endif
8591 #ifdef HAVE_SYS_STAT_H
8592 #include <sys/stat.h>
8593 #endif
8594 "
8595 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8596
8597 cat >>confdefs.h <<_ACEOF
8598 #define HAVE_STRUCT_STAT_ST_DEV 1
8599 _ACEOF
8600
8601
8602 fi
8603 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8604 #include <sys/types.h>
8605 #endif
8606 #ifdef HAVE_SYS_STAT_H
8607 #include <sys/stat.h>
8608 #endif
8609 "
8610 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8611
8612 cat >>confdefs.h <<_ACEOF
8613 #define HAVE_STRUCT_STAT_ST_INO 1
8614 _ACEOF
8615
8616
8617 fi
8618 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8619 #include <sys/types.h>
8620 #endif
8621 #ifdef HAVE_SYS_STAT_H
8622 #include <sys/stat.h>
8623 #endif
8624 "
8625 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8626
8627 cat >>confdefs.h <<_ACEOF
8628 #define HAVE_STRUCT_STAT_ST_MODE 1
8629 _ACEOF
8630
8631
8632 fi
8633 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8634 #include <sys/types.h>
8635 #endif
8636 #ifdef HAVE_SYS_STAT_H
8637 #include <sys/stat.h>
8638 #endif
8639 "
8640 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8641
8642 cat >>confdefs.h <<_ACEOF
8643 #define HAVE_STRUCT_STAT_ST_NLINK 1
8644 _ACEOF
8645
8646
8647 fi
8648 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8649 #include <sys/types.h>
8650 #endif
8651 #ifdef HAVE_SYS_STAT_H
8652 #include <sys/stat.h>
8653 #endif
8654 "
8655 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8656
8657 cat >>confdefs.h <<_ACEOF
8658 #define HAVE_STRUCT_STAT_ST_UID 1
8659 _ACEOF
8660
8661
8662 fi
8663 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8664 #include <sys/types.h>
8665 #endif
8666 #ifdef HAVE_SYS_STAT_H
8667 #include <sys/stat.h>
8668 #endif
8669 "
8670 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8671
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_STRUCT_STAT_ST_GID 1
8674 _ACEOF
8675
8676
8677 fi
8678 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8679 #include <sys/types.h>
8680 #endif
8681 #ifdef HAVE_SYS_STAT_H
8682 #include <sys/stat.h>
8683 #endif
8684 "
8685 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8686
8687 cat >>confdefs.h <<_ACEOF
8688 #define HAVE_STRUCT_STAT_ST_RDEV 1
8689 _ACEOF
8690
8691
8692 fi
8693 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8694 #include <sys/types.h>
8695 #endif
8696 #ifdef HAVE_SYS_STAT_H
8697 #include <sys/stat.h>
8698 #endif
8699 "
8700 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8701
8702 cat >>confdefs.h <<_ACEOF
8703 #define HAVE_STRUCT_STAT_ST_SIZE 1
8704 _ACEOF
8705
8706
8707 fi
8708 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8709 #include <sys/types.h>
8710 #endif
8711 #ifdef HAVE_SYS_STAT_H
8712 #include <sys/stat.h>
8713 #endif
8714 "
8715 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8716
8717 cat >>confdefs.h <<_ACEOF
8718 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8719 _ACEOF
8720
8721
8722 fi
8723 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8724 #include <sys/types.h>
8725 #endif
8726 #ifdef HAVE_SYS_STAT_H
8727 #include <sys/stat.h>
8728 #endif
8729 "
8730 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8731
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8734 _ACEOF
8735
8736
8737 fi
8738 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8739 #include <sys/types.h>
8740 #endif
8741 #ifdef HAVE_SYS_STAT_H
8742 #include <sys/stat.h>
8743 #endif
8744 "
8745 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8746
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_STRUCT_STAT_ST_ATIME 1
8749 _ACEOF
8750
8751
8752 fi
8753 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8754 #include <sys/types.h>
8755 #endif
8756 #ifdef HAVE_SYS_STAT_H
8757 #include <sys/stat.h>
8758 #endif
8759 "
8760 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8761
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_STRUCT_STAT_ST_MTIME 1
8764 _ACEOF
8765
8766
8767 fi
8768 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8769 #include <sys/types.h>
8770 #endif
8771 #ifdef HAVE_SYS_STAT_H
8772 #include <sys/stat.h>
8773 #endif
8774 "
8775 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8776
8777 cat >>confdefs.h <<_ACEOF
8778 #define HAVE_STRUCT_STAT_ST_CTIME 1
8779 _ACEOF
8780
8781
8782 fi
8783
8784
8785 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8786 if test "x$ac_cv_type___int128" = xyes; then :
8787
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE___INT128 1
8790 _ACEOF
8791
8792
8793 fi
8794
8795 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8796 #include <sys/socket.h>
8797
8798 "
8799 if test "x$ac_cv_type_socklen_t" = xyes; then :
8800
8801 cat >>confdefs.h <<_ACEOF
8802 #define HAVE_SOCKLEN_T 1
8803 _ACEOF
8804
8805
8806 fi
8807
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8810 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8811 if ${ac_cv_type_getgroups+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 if test "$cross_compiling" = yes; then :
8815 ac_cv_type_getgroups=cross
8816 else
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 /* Thanks to Mike Rendell for this test. */
8820 $ac_includes_default
8821 #define NGID 256
8822 #undef MAX
8823 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8824
8825 int
8826 main ()
8827 {
8828 gid_t gidset[NGID];
8829 int i, n;
8830 union { gid_t gval; long int lval; } val;
8831
8832 val.lval = -1;
8833 for (i = 0; i < NGID; i++)
8834 gidset[i] = val.gval;
8835 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8836 gidset);
8837 /* Exit non-zero if getgroups seems to require an array of ints. This
8838 happens when gid_t is short int but getgroups modifies an array
8839 of ints. */
8840 return n > 0 && gidset[n] != val.gval;
8841 }
8842 _ACEOF
8843 if ac_fn_c_try_run "$LINENO"; then :
8844 ac_cv_type_getgroups=gid_t
8845 else
8846 ac_cv_type_getgroups=int
8847 fi
8848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8849 conftest.$ac_objext conftest.beam conftest.$ac_ext
8850 fi
8851
8852 if test $ac_cv_type_getgroups = cross; then
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8855 #include <unistd.h>
8856
8857 _ACEOF
8858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8859 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8860 ac_cv_type_getgroups=gid_t
8861 else
8862 ac_cv_type_getgroups=int
8863 fi
8864 rm -f conftest*
8865
8866 fi
8867 fi
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8869 $as_echo "$ac_cv_type_getgroups" >&6; }
8870
8871 cat >>confdefs.h <<_ACEOF
8872 #define GETGROUPS_T $ac_cv_type_getgroups
8873 _ACEOF
8874
8875
8876 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8877 if test "x$ac_cv_type_mode_t" = xyes; then :
8878
8879 else
8880
8881 cat >>confdefs.h <<_ACEOF
8882 #define mode_t int
8883 _ACEOF
8884
8885 fi
8886
8887 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8888 if test "x$ac_cv_type_off_t" = xyes; then :
8889
8890 else
8891
8892 cat >>confdefs.h <<_ACEOF
8893 #define off_t long int
8894 _ACEOF
8895
8896 fi
8897
8898 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8899 if test "x$ac_cv_type_pid_t" = xyes; then :
8900
8901 else
8902
8903 cat >>confdefs.h <<_ACEOF
8904 #define pid_t int
8905 _ACEOF
8906
8907 fi
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8910 $as_echo_n "checking return type of signal handlers... " >&6; }
8911 if ${ac_cv_type_signal+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 #include <sys/types.h>
8917 #include <signal.h>
8918
8919 int
8920 main ()
8921 {
8922 return *(signal (0, 0)) (0) == 1;
8923 ;
8924 return 0;
8925 }
8926 _ACEOF
8927 if ac_fn_c_try_compile "$LINENO"; then :
8928 ac_cv_type_signal=int
8929 else
8930 ac_cv_type_signal=void
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 fi
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8935 $as_echo "$ac_cv_type_signal" >&6; }
8936
8937 cat >>confdefs.h <<_ACEOF
8938 #define RETSIGTYPE $ac_cv_type_signal
8939 _ACEOF
8940
8941
8942 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8943 if test "x$ac_cv_type_size_t" = xyes; then :
8944
8945 else
8946
8947 cat >>confdefs.h <<_ACEOF
8948 #define size_t unsigned int
8949 _ACEOF
8950
8951 fi
8952
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8954 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8955 if ${ac_cv_type_uid_t+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 #include <sys/types.h>
8961
8962 _ACEOF
8963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8964 $EGREP "uid_t" >/dev/null 2>&1; then :
8965 ac_cv_type_uid_t=yes
8966 else
8967 ac_cv_type_uid_t=no
8968 fi
8969 rm -f conftest*
8970
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8973 $as_echo "$ac_cv_type_uid_t" >&6; }
8974 if test $ac_cv_type_uid_t = no; then
8975
8976 $as_echo "#define uid_t int" >>confdefs.h
8977
8978
8979 $as_echo "#define gid_t int" >>confdefs.h
8980
8981 fi
8982
8983
8984
8985
8986
8987
8988 # Set options
8989
8990
8991
8992 enable_dlopen=no
8993
8994
8995 enable_win32_dll=no
8996
8997
8998 # Check whether --enable-shared was given.
8999 if test "${enable_shared+set}" = set; then :
9000 enableval=$enable_shared; p=${PACKAGE-default}
9001 case $enableval in
9002 yes) enable_shared=yes ;;
9003 no) enable_shared=no ;;
9004 *)
9005 enable_shared=no
9006 # Look at the argument we got. We use all the common list separators.
9007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9008 for pkg in $enableval; do
9009 IFS="$lt_save_ifs"
9010 if test "X$pkg" = "X$p"; then
9011 enable_shared=yes
9012 fi
9013 done
9014 IFS="$lt_save_ifs"
9015 ;;
9016 esac
9017 else
9018 enable_shared=yes
9019 fi
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029 # Check whether --enable-static was given.
9030 if test "${enable_static+set}" = set; then :
9031 enableval=$enable_static; p=${PACKAGE-default}
9032 case $enableval in
9033 yes) enable_static=yes ;;
9034 no) enable_static=no ;;
9035 *)
9036 enable_static=no
9037 # Look at the argument we got. We use all the common list separators.
9038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9039 for pkg in $enableval; do
9040 IFS="$lt_save_ifs"
9041 if test "X$pkg" = "X$p"; then
9042 enable_static=yes
9043 fi
9044 done
9045 IFS="$lt_save_ifs"
9046 ;;
9047 esac
9048 else
9049 enable_static=yes
9050 fi
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061 # Check whether --with-pic was given.
9062 if test "${with_pic+set}" = set; then :
9063 withval=$with_pic; pic_mode="$withval"
9064 else
9065 pic_mode=default
9066 fi
9067
9068
9069 test -z "$pic_mode" && pic_mode=default
9070
9071
9072
9073
9074
9075
9076
9077 # Check whether --enable-fast-install was given.
9078 if test "${enable_fast_install+set}" = set; then :
9079 enableval=$enable_fast_install; p=${PACKAGE-default}
9080 case $enableval in
9081 yes) enable_fast_install=yes ;;
9082 no) enable_fast_install=no ;;
9083 *)
9084 enable_fast_install=no
9085 # Look at the argument we got. We use all the common list separators.
9086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9087 for pkg in $enableval; do
9088 IFS="$lt_save_ifs"
9089 if test "X$pkg" = "X$p"; then
9090 enable_fast_install=yes
9091 fi
9092 done
9093 IFS="$lt_save_ifs"
9094 ;;
9095 esac
9096 else
9097 enable_fast_install=yes
9098 fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110 # This can be used to rebuild libtool when needed
9111 LIBTOOL_DEPS="$ltmain"
9112
9113 # Always use our own libtool.
9114 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141 test -z "$LN_S" && LN_S="ln -s"
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156 if test -n "${ZSH_VERSION+set}" ; then
9157 setopt NO_GLOB_SUBST
9158 fi
9159
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9161 $as_echo_n "checking for objdir... " >&6; }
9162 if ${lt_cv_objdir+:} false; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 rm -f .libs 2>/dev/null
9166 mkdir .libs 2>/dev/null
9167 if test -d .libs; then
9168 lt_cv_objdir=.libs
9169 else
9170 # MS-DOS does not allow filenames that begin with a dot.
9171 lt_cv_objdir=_libs
9172 fi
9173 rmdir .libs 2>/dev/null
9174 fi
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9176 $as_echo "$lt_cv_objdir" >&6; }
9177 objdir=$lt_cv_objdir
9178
9179
9180
9181
9182
9183 cat >>confdefs.h <<_ACEOF
9184 #define LT_OBJDIR "$lt_cv_objdir/"
9185 _ACEOF
9186
9187
9188
9189
9190 case $host_os in
9191 aix3*)
9192 # AIX sometimes has problems with the GCC collect2 program. For some
9193 # reason, if we set the COLLECT_NAMES environment variable, the problems
9194 # vanish in a puff of smoke.
9195 if test "X${COLLECT_NAMES+set}" != Xset; then
9196 COLLECT_NAMES=
9197 export COLLECT_NAMES
9198 fi
9199 ;;
9200 esac
9201
9202 # Global variables:
9203 ofile=libtool
9204 can_build_shared=yes
9205
9206 # All known linkers require a `.a' archive for static linking (except MSVC,
9207 # which needs '.lib').
9208 libext=a
9209
9210 with_gnu_ld="$lt_cv_prog_gnu_ld"
9211
9212 old_CC="$CC"
9213 old_CFLAGS="$CFLAGS"
9214
9215 # Set sane defaults for various variables
9216 test -z "$CC" && CC=cc
9217 test -z "$LTCC" && LTCC=$CC
9218 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9219 test -z "$LD" && LD=ld
9220 test -z "$ac_objext" && ac_objext=o
9221
9222 for cc_temp in $compiler""; do
9223 case $cc_temp in
9224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9226 \-*) ;;
9227 *) break;;
9228 esac
9229 done
9230 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9231
9232
9233 # Only perform the check for file, if the check method requires it
9234 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9235 case $deplibs_check_method in
9236 file_magic*)
9237 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9239 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9240 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 case $MAGIC_CMD in
9244 [\\/*] | ?:[\\/]*)
9245 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9246 ;;
9247 *)
9248 lt_save_MAGIC_CMD="$MAGIC_CMD"
9249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9250 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9251 for ac_dir in $ac_dummy; do
9252 IFS="$lt_save_ifs"
9253 test -z "$ac_dir" && ac_dir=.
9254 if test -f $ac_dir/${ac_tool_prefix}file; then
9255 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9256 if test -n "$file_magic_test_file"; then
9257 case $deplibs_check_method in
9258 "file_magic "*)
9259 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9262 $EGREP "$file_magic_regex" > /dev/null; then
9263 :
9264 else
9265 cat <<_LT_EOF 1>&2
9266
9267 *** Warning: the command libtool uses to detect shared libraries,
9268 *** $file_magic_cmd, produces output that libtool cannot recognize.
9269 *** The result is that libtool may fail to recognize shared libraries
9270 *** as such. This will affect the creation of libtool libraries that
9271 *** depend on shared libraries, but programs linked with such libtool
9272 *** libraries will work regardless of this problem. Nevertheless, you
9273 *** may want to report the problem to your system manager and/or to
9274 *** bug-libtool@gnu.org
9275
9276 _LT_EOF
9277 fi ;;
9278 esac
9279 fi
9280 break
9281 fi
9282 done
9283 IFS="$lt_save_ifs"
9284 MAGIC_CMD="$lt_save_MAGIC_CMD"
9285 ;;
9286 esac
9287 fi
9288
9289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9290 if test -n "$MAGIC_CMD"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9292 $as_echo "$MAGIC_CMD" >&6; }
9293 else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9296 fi
9297
9298
9299
9300
9301
9302 if test -z "$lt_cv_path_MAGIC_CMD"; then
9303 if test -n "$ac_tool_prefix"; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9305 $as_echo_n "checking for file... " >&6; }
9306 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 case $MAGIC_CMD in
9310 [\\/*] | ?:[\\/]*)
9311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9312 ;;
9313 *)
9314 lt_save_MAGIC_CMD="$MAGIC_CMD"
9315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9317 for ac_dir in $ac_dummy; do
9318 IFS="$lt_save_ifs"
9319 test -z "$ac_dir" && ac_dir=.
9320 if test -f $ac_dir/file; then
9321 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9322 if test -n "$file_magic_test_file"; then
9323 case $deplibs_check_method in
9324 "file_magic "*)
9325 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9328 $EGREP "$file_magic_regex" > /dev/null; then
9329 :
9330 else
9331 cat <<_LT_EOF 1>&2
9332
9333 *** Warning: the command libtool uses to detect shared libraries,
9334 *** $file_magic_cmd, produces output that libtool cannot recognize.
9335 *** The result is that libtool may fail to recognize shared libraries
9336 *** as such. This will affect the creation of libtool libraries that
9337 *** depend on shared libraries, but programs linked with such libtool
9338 *** libraries will work regardless of this problem. Nevertheless, you
9339 *** may want to report the problem to your system manager and/or to
9340 *** bug-libtool@gnu.org
9341
9342 _LT_EOF
9343 fi ;;
9344 esac
9345 fi
9346 break
9347 fi
9348 done
9349 IFS="$lt_save_ifs"
9350 MAGIC_CMD="$lt_save_MAGIC_CMD"
9351 ;;
9352 esac
9353 fi
9354
9355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9356 if test -n "$MAGIC_CMD"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9358 $as_echo "$MAGIC_CMD" >&6; }
9359 else
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 $as_echo "no" >&6; }
9362 fi
9363
9364
9365 else
9366 MAGIC_CMD=:
9367 fi
9368 fi
9369
9370 fi
9371 ;;
9372 esac
9373
9374 # Use C for the default configuration in the libtool script
9375
9376 lt_save_CC="$CC"
9377 ac_ext=c
9378 ac_cpp='$CPP $CPPFLAGS'
9379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9382
9383
9384 # Source file extension for C test sources.
9385 ac_ext=c
9386
9387 # Object file extension for compiled C test sources.
9388 objext=o
9389 objext=$objext
9390
9391 # Code to be used in simple compile tests
9392 lt_simple_compile_test_code="int some_variable = 0;"
9393
9394 # Code to be used in simple link tests
9395 lt_simple_link_test_code='int main(){return(0);}'
9396
9397
9398
9399
9400
9401
9402
9403 # If no C compiler was specified, use CC.
9404 LTCC=${LTCC-"$CC"}
9405
9406 # If no C compiler flags were specified, use CFLAGS.
9407 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9408
9409 # Allow CC to be a program name with arguments.
9410 compiler=$CC
9411
9412 # Save the default compiler, since it gets overwritten when the other
9413 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9414 compiler_DEFAULT=$CC
9415
9416 # save warnings/boilerplate of simple test code
9417 ac_outfile=conftest.$ac_objext
9418 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9420 _lt_compiler_boilerplate=`cat conftest.err`
9421 $RM conftest*
9422
9423 ac_outfile=conftest.$ac_objext
9424 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9426 _lt_linker_boilerplate=`cat conftest.err`
9427 $RM -r conftest*
9428
9429
9430 ## CAVEAT EMPTOR:
9431 ## There is no encapsulation within the following macros, do not change
9432 ## the running order or otherwise move them around unless you know exactly
9433 ## what you are doing...
9434 if test -n "$compiler"; then
9435
9436 lt_prog_compiler_no_builtin_flag=
9437
9438 if test "$GCC" = yes; then
9439 case $cc_basename in
9440 nvcc*)
9441 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9442 *)
9443 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9444 esac
9445
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9447 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9448 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 lt_cv_prog_compiler_rtti_exceptions=no
9452 ac_outfile=conftest.$ac_objext
9453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9454 lt_compiler_flag="-fno-rtti -fno-exceptions"
9455 # Insert the option either (1) after the last *FLAGS variable, or
9456 # (2) before a word containing "conftest.", or (3) at the end.
9457 # Note that $ac_compile itself does not contain backslashes and begins
9458 # with a dollar sign (not a hyphen), so the echo should work correctly.
9459 # The option is referenced via a variable to avoid confusing sed.
9460 lt_compile=`echo "$ac_compile" | $SED \
9461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9463 -e 's:$: $lt_compiler_flag:'`
9464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9465 (eval "$lt_compile" 2>conftest.err)
9466 ac_status=$?
9467 cat conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 if (exit $ac_status) && test -s "$ac_outfile"; then
9470 # The compiler can only warn and ignore the option if not recognized
9471 # So say no if there are warnings other than the usual output.
9472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9475 lt_cv_prog_compiler_rtti_exceptions=yes
9476 fi
9477 fi
9478 $RM conftest*
9479
9480 fi
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9482 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9483
9484 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9485 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9486 else
9487 :
9488 fi
9489
9490 fi
9491
9492
9493
9494
9495
9496
9497 lt_prog_compiler_wl=
9498 lt_prog_compiler_pic=
9499 lt_prog_compiler_static=
9500
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9502 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9503
9504 if test "$GCC" = yes; then
9505 lt_prog_compiler_wl='-Wl,'
9506 lt_prog_compiler_static='-static'
9507
9508 case $host_os in
9509 aix*)
9510 # All AIX code is PIC.
9511 if test "$host_cpu" = ia64; then
9512 # AIX 5 now supports IA64 processor
9513 lt_prog_compiler_static='-Bstatic'
9514 fi
9515 lt_prog_compiler_pic='-fPIC'
9516 ;;
9517
9518 amigaos*)
9519 case $host_cpu in
9520 powerpc)
9521 # see comment about AmigaOS4 .so support
9522 lt_prog_compiler_pic='-fPIC'
9523 ;;
9524 m68k)
9525 # FIXME: we need at least 68020 code to build shared libraries, but
9526 # adding the `-m68020' flag to GCC prevents building anything better,
9527 # like `-m68040'.
9528 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9529 ;;
9530 esac
9531 ;;
9532
9533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9534 # PIC is the default for these OSes.
9535 ;;
9536
9537 mingw* | cygwin* | pw32* | os2* | cegcc*)
9538 # This hack is so that the source file can tell whether it is being
9539 # built for inclusion in a dll (and should export symbols for example).
9540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9541 # (--disable-auto-import) libraries
9542 lt_prog_compiler_pic='-DDLL_EXPORT'
9543 ;;
9544
9545 darwin* | rhapsody*)
9546 # PIC is the default on this platform
9547 # Common symbols not allowed in MH_DYLIB files
9548 lt_prog_compiler_pic='-fno-common'
9549 ;;
9550
9551 haiku*)
9552 # PIC is the default for Haiku.
9553 # The "-static" flag exists, but is broken.
9554 lt_prog_compiler_static=
9555 ;;
9556
9557 hpux*)
9558 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9559 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9560 # sets the default TLS model and affects inlining.
9561 case $host_cpu in
9562 hppa*64*)
9563 # +Z the default
9564 ;;
9565 *)
9566 lt_prog_compiler_pic='-fPIC'
9567 ;;
9568 esac
9569 ;;
9570
9571 interix[3-9]*)
9572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9573 # Instead, we relocate shared libraries at runtime.
9574 ;;
9575
9576 msdosdjgpp*)
9577 # Just because we use GCC doesn't mean we suddenly get shared libraries
9578 # on systems that don't support them.
9579 lt_prog_compiler_can_build_shared=no
9580 enable_shared=no
9581 ;;
9582
9583 *nto* | *qnx*)
9584 # QNX uses GNU C++, but need to define -shared option too, otherwise
9585 # it will coredump.
9586 lt_prog_compiler_pic='-fPIC -shared'
9587 ;;
9588
9589 sysv4*MP*)
9590 if test -d /usr/nec; then
9591 lt_prog_compiler_pic=-Kconform_pic
9592 fi
9593 ;;
9594
9595 *)
9596 lt_prog_compiler_pic='-fPIC'
9597 ;;
9598 esac
9599
9600 case $cc_basename in
9601 nvcc*) # Cuda Compiler Driver 2.2
9602 lt_prog_compiler_wl='-Xlinker '
9603 lt_prog_compiler_pic='-Xcompiler -fPIC'
9604 ;;
9605 esac
9606 else
9607 # PORTME Check for flag to pass linker flags through the system compiler.
9608 case $host_os in
9609 aix*)
9610 lt_prog_compiler_wl='-Wl,'
9611 if test "$host_cpu" = ia64; then
9612 # AIX 5 now supports IA64 processor
9613 lt_prog_compiler_static='-Bstatic'
9614 else
9615 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9616 fi
9617 ;;
9618
9619 mingw* | cygwin* | pw32* | os2* | cegcc*)
9620 # This hack is so that the source file can tell whether it is being
9621 # built for inclusion in a dll (and should export symbols for example).
9622 lt_prog_compiler_pic='-DDLL_EXPORT'
9623 ;;
9624
9625 hpux9* | hpux10* | hpux11*)
9626 lt_prog_compiler_wl='-Wl,'
9627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9628 # not for PA HP-UX.
9629 case $host_cpu in
9630 hppa*64*|ia64*)
9631 # +Z the default
9632 ;;
9633 *)
9634 lt_prog_compiler_pic='+Z'
9635 ;;
9636 esac
9637 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9638 lt_prog_compiler_static='${wl}-a ${wl}archive'
9639 ;;
9640
9641 irix5* | irix6* | nonstopux*)
9642 lt_prog_compiler_wl='-Wl,'
9643 # PIC (with -KPIC) is the default.
9644 lt_prog_compiler_static='-non_shared'
9645 ;;
9646
9647 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9648 case $cc_basename in
9649 # old Intel for x86_64 which still supported -KPIC.
9650 ecc*)
9651 lt_prog_compiler_wl='-Wl,'
9652 lt_prog_compiler_pic='-KPIC'
9653 lt_prog_compiler_static='-static'
9654 ;;
9655 # icc used to be incompatible with GCC.
9656 # ICC 10 doesn't accept -KPIC any more.
9657 icc* | ifort*)
9658 lt_prog_compiler_wl='-Wl,'
9659 lt_prog_compiler_pic='-fPIC'
9660 lt_prog_compiler_static='-static'
9661 ;;
9662 # Lahey Fortran 8.1.
9663 lf95*)
9664 lt_prog_compiler_wl='-Wl,'
9665 lt_prog_compiler_pic='--shared'
9666 lt_prog_compiler_static='--static'
9667 ;;
9668 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9669 # Portland Group compilers (*not* the Pentium gcc compiler,
9670 # which looks to be a dead project)
9671 lt_prog_compiler_wl='-Wl,'
9672 lt_prog_compiler_pic='-fpic'
9673 lt_prog_compiler_static='-Bstatic'
9674 ;;
9675 ccc*)
9676 lt_prog_compiler_wl='-Wl,'
9677 # All Alpha code is PIC.
9678 lt_prog_compiler_static='-non_shared'
9679 ;;
9680 xl* | bgxl* | bgf* | mpixl*)
9681 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9682 lt_prog_compiler_wl='-Wl,'
9683 lt_prog_compiler_pic='-qpic'
9684 lt_prog_compiler_static='-qstaticlink'
9685 ;;
9686 *)
9687 case `$CC -V 2>&1 | sed 5q` in
9688 *Sun\ F* | *Sun*Fortran*)
9689 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9690 lt_prog_compiler_pic='-KPIC'
9691 lt_prog_compiler_static='-Bstatic'
9692 lt_prog_compiler_wl=''
9693 ;;
9694 *Sun\ C*)
9695 # Sun C 5.9
9696 lt_prog_compiler_pic='-KPIC'
9697 lt_prog_compiler_static='-Bstatic'
9698 lt_prog_compiler_wl='-Wl,'
9699 ;;
9700 esac
9701 ;;
9702 esac
9703 ;;
9704
9705 newsos6)
9706 lt_prog_compiler_pic='-KPIC'
9707 lt_prog_compiler_static='-Bstatic'
9708 ;;
9709
9710 *nto* | *qnx*)
9711 # QNX uses GNU C++, but need to define -shared option too, otherwise
9712 # it will coredump.
9713 lt_prog_compiler_pic='-fPIC -shared'
9714 ;;
9715
9716 osf3* | osf4* | osf5*)
9717 lt_prog_compiler_wl='-Wl,'
9718 # All OSF/1 code is PIC.
9719 lt_prog_compiler_static='-non_shared'
9720 ;;
9721
9722 rdos*)
9723 lt_prog_compiler_static='-non_shared'
9724 ;;
9725
9726 solaris*)
9727 lt_prog_compiler_pic='-KPIC'
9728 lt_prog_compiler_static='-Bstatic'
9729 case $cc_basename in
9730 f77* | f90* | f95*)
9731 lt_prog_compiler_wl='-Qoption ld ';;
9732 *)
9733 lt_prog_compiler_wl='-Wl,';;
9734 esac
9735 ;;
9736
9737 sunos4*)
9738 lt_prog_compiler_wl='-Qoption ld '
9739 lt_prog_compiler_pic='-PIC'
9740 lt_prog_compiler_static='-Bstatic'
9741 ;;
9742
9743 sysv4 | sysv4.2uw2* | sysv4.3*)
9744 lt_prog_compiler_wl='-Wl,'
9745 lt_prog_compiler_pic='-KPIC'
9746 lt_prog_compiler_static='-Bstatic'
9747 ;;
9748
9749 sysv4*MP*)
9750 if test -d /usr/nec ;then
9751 lt_prog_compiler_pic='-Kconform_pic'
9752 lt_prog_compiler_static='-Bstatic'
9753 fi
9754 ;;
9755
9756 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9757 lt_prog_compiler_wl='-Wl,'
9758 lt_prog_compiler_pic='-KPIC'
9759 lt_prog_compiler_static='-Bstatic'
9760 ;;
9761
9762 unicos*)
9763 lt_prog_compiler_wl='-Wl,'
9764 lt_prog_compiler_can_build_shared=no
9765 ;;
9766
9767 uts4*)
9768 lt_prog_compiler_pic='-pic'
9769 lt_prog_compiler_static='-Bstatic'
9770 ;;
9771
9772 *)
9773 lt_prog_compiler_can_build_shared=no
9774 ;;
9775 esac
9776 fi
9777
9778 case $host_os in
9779 # For platforms which do not support PIC, -DPIC is meaningless:
9780 *djgpp*)
9781 lt_prog_compiler_pic=
9782 ;;
9783 *)
9784 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9785 ;;
9786 esac
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9788 $as_echo "$lt_prog_compiler_pic" >&6; }
9789
9790
9791
9792
9793
9794
9795 #
9796 # Check to make sure the PIC flag actually works.
9797 #
9798 if test -n "$lt_prog_compiler_pic"; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9800 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9801 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 lt_cv_prog_compiler_pic_works=no
9805 ac_outfile=conftest.$ac_objext
9806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9807 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9808 # Insert the option either (1) after the last *FLAGS variable, or
9809 # (2) before a word containing "conftest.", or (3) at the end.
9810 # Note that $ac_compile itself does not contain backslashes and begins
9811 # with a dollar sign (not a hyphen), so the echo should work correctly.
9812 # The option is referenced via a variable to avoid confusing sed.
9813 lt_compile=`echo "$ac_compile" | $SED \
9814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9816 -e 's:$: $lt_compiler_flag:'`
9817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9818 (eval "$lt_compile" 2>conftest.err)
9819 ac_status=$?
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 if (exit $ac_status) && test -s "$ac_outfile"; then
9823 # The compiler can only warn and ignore the option if not recognized
9824 # So say no if there are warnings other than the usual output.
9825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9828 lt_cv_prog_compiler_pic_works=yes
9829 fi
9830 fi
9831 $RM conftest*
9832
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9835 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9836
9837 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9838 case $lt_prog_compiler_pic in
9839 "" | " "*) ;;
9840 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9841 esac
9842 else
9843 lt_prog_compiler_pic=
9844 lt_prog_compiler_can_build_shared=no
9845 fi
9846
9847 fi
9848
9849
9850
9851
9852
9853
9854 #
9855 # Check to make sure the static flag actually works.
9856 #
9857 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9859 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9860 if ${lt_cv_prog_compiler_static_works+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862 else
9863 lt_cv_prog_compiler_static_works=no
9864 save_LDFLAGS="$LDFLAGS"
9865 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9866 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9867 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9868 # The linker can only warn and ignore the option if not recognized
9869 # So say no if there are warnings
9870 if test -s conftest.err; then
9871 # Append any errors to the config.log.
9872 cat conftest.err 1>&5
9873 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9875 if diff conftest.exp conftest.er2 >/dev/null; then
9876 lt_cv_prog_compiler_static_works=yes
9877 fi
9878 else
9879 lt_cv_prog_compiler_static_works=yes
9880 fi
9881 fi
9882 $RM -r conftest*
9883 LDFLAGS="$save_LDFLAGS"
9884
9885 fi
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9887 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9888
9889 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9890 :
9891 else
9892 lt_prog_compiler_static=
9893 fi
9894
9895
9896
9897
9898
9899
9900
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9902 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9903 if ${lt_cv_prog_compiler_c_o+:} false; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 lt_cv_prog_compiler_c_o=no
9907 $RM -r conftest 2>/dev/null
9908 mkdir conftest
9909 cd conftest
9910 mkdir out
9911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9912
9913 lt_compiler_flag="-o out/conftest2.$ac_objext"
9914 # Insert the option either (1) after the last *FLAGS variable, or
9915 # (2) before a word containing "conftest.", or (3) at the end.
9916 # Note that $ac_compile itself does not contain backslashes and begins
9917 # with a dollar sign (not a hyphen), so the echo should work correctly.
9918 lt_compile=`echo "$ac_compile" | $SED \
9919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9921 -e 's:$: $lt_compiler_flag:'`
9922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9923 (eval "$lt_compile" 2>out/conftest.err)
9924 ac_status=$?
9925 cat out/conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9928 then
9929 # The compiler can only warn and ignore the option if not recognized
9930 # So say no if there are warnings
9931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9934 lt_cv_prog_compiler_c_o=yes
9935 fi
9936 fi
9937 chmod u+w . 2>&5
9938 $RM conftest*
9939 # SGI C++ compiler will create directory out/ii_files/ for
9940 # template instantiation
9941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9942 $RM out/* && rmdir out
9943 cd ..
9944 $RM -r conftest
9945 $RM conftest*
9946
9947 fi
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9949 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9950
9951
9952
9953
9954
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9958 if ${lt_cv_prog_compiler_c_o+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 lt_cv_prog_compiler_c_o=no
9962 $RM -r conftest 2>/dev/null
9963 mkdir conftest
9964 cd conftest
9965 mkdir out
9966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9967
9968 lt_compiler_flag="-o out/conftest2.$ac_objext"
9969 # Insert the option either (1) after the last *FLAGS variable, or
9970 # (2) before a word containing "conftest.", or (3) at the end.
9971 # Note that $ac_compile itself does not contain backslashes and begins
9972 # with a dollar sign (not a hyphen), so the echo should work correctly.
9973 lt_compile=`echo "$ac_compile" | $SED \
9974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9976 -e 's:$: $lt_compiler_flag:'`
9977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9978 (eval "$lt_compile" 2>out/conftest.err)
9979 ac_status=$?
9980 cat out/conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9983 then
9984 # The compiler can only warn and ignore the option if not recognized
9985 # So say no if there are warnings
9986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9989 lt_cv_prog_compiler_c_o=yes
9990 fi
9991 fi
9992 chmod u+w . 2>&5
9993 $RM conftest*
9994 # SGI C++ compiler will create directory out/ii_files/ for
9995 # template instantiation
9996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9997 $RM out/* && rmdir out
9998 cd ..
9999 $RM -r conftest
10000 $RM conftest*
10001
10002 fi
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10004 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10005
10006
10007
10008
10009 hard_links="nottested"
10010 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10011 # do not overwrite the value of need_locks provided by the user
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10013 $as_echo_n "checking if we can lock with hard links... " >&6; }
10014 hard_links=yes
10015 $RM conftest*
10016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10017 touch conftest.a
10018 ln conftest.a conftest.b 2>&5 || hard_links=no
10019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10021 $as_echo "$hard_links" >&6; }
10022 if test "$hard_links" = no; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10024 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10025 need_locks=warn
10026 fi
10027 else
10028 need_locks=no
10029 fi
10030
10031
10032
10033
10034
10035
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10037 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10038
10039 runpath_var=
10040 allow_undefined_flag=
10041 always_export_symbols=no
10042 archive_cmds=
10043 archive_expsym_cmds=
10044 compiler_needs_object=no
10045 enable_shared_with_static_runtimes=no
10046 export_dynamic_flag_spec=
10047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10048 hardcode_automatic=no
10049 hardcode_direct=no
10050 hardcode_direct_absolute=no
10051 hardcode_libdir_flag_spec=
10052 hardcode_libdir_flag_spec_ld=
10053 hardcode_libdir_separator=
10054 hardcode_minus_L=no
10055 hardcode_shlibpath_var=unsupported
10056 inherit_rpath=no
10057 link_all_deplibs=unknown
10058 module_cmds=
10059 module_expsym_cmds=
10060 old_archive_from_new_cmds=
10061 old_archive_from_expsyms_cmds=
10062 thread_safe_flag_spec=
10063 whole_archive_flag_spec=
10064 # include_expsyms should be a list of space-separated symbols to be *always*
10065 # included in the symbol list
10066 include_expsyms=
10067 # exclude_expsyms can be an extended regexp of symbols to exclude
10068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10070 # as well as any symbol that contains `d'.
10071 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10073 # platforms (ab)use it in PIC code, but their linkers get confused if
10074 # the symbol is explicitly referenced. Since portable code cannot
10075 # rely on this symbol name, it's probably fine to never include it in
10076 # preloaded symbol tables.
10077 # Exclude shared library initialization/finalization symbols.
10078 extract_expsyms_cmds=
10079
10080 case $host_os in
10081 cygwin* | mingw* | pw32* | cegcc*)
10082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10083 # When not using gcc, we currently assume that we are using
10084 # Microsoft Visual C++.
10085 if test "$GCC" != yes; then
10086 with_gnu_ld=no
10087 fi
10088 ;;
10089 interix*)
10090 # we just hope/assume this is gcc and not c89 (= MSVC++)
10091 with_gnu_ld=yes
10092 ;;
10093 openbsd*)
10094 with_gnu_ld=no
10095 ;;
10096 esac
10097
10098 ld_shlibs=yes
10099
10100 # On some targets, GNU ld is compatible enough with the native linker
10101 # that we're better off using the native interface for both.
10102 lt_use_gnu_ld_interface=no
10103 if test "$with_gnu_ld" = yes; then
10104 case $host_os in
10105 aix*)
10106 # The AIX port of GNU ld has always aspired to compatibility
10107 # with the native linker. However, as the warning in the GNU ld
10108 # block says, versions before 2.19.5* couldn't really create working
10109 # shared libraries, regardless of the interface used.
10110 case `$LD -v 2>&1` in
10111 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10112 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10113 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10114 *)
10115 lt_use_gnu_ld_interface=yes
10116 ;;
10117 esac
10118 ;;
10119 *)
10120 lt_use_gnu_ld_interface=yes
10121 ;;
10122 esac
10123 fi
10124
10125 if test "$lt_use_gnu_ld_interface" = yes; then
10126 # If archive_cmds runs LD, not CC, wlarc should be empty
10127 wlarc='${wl}'
10128
10129 # Set some defaults for GNU ld with shared library support. These
10130 # are reset later if shared libraries are not supported. Putting them
10131 # here allows them to be overridden if necessary.
10132 runpath_var=LD_RUN_PATH
10133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10134 export_dynamic_flag_spec='${wl}--export-dynamic'
10135 # ancient GNU ld didn't support --whole-archive et. al.
10136 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10137 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10138 else
10139 whole_archive_flag_spec=
10140 fi
10141 supports_anon_versioning=no
10142 case `$LD -v 2>&1` in
10143 *GNU\ gold*) supports_anon_versioning=yes ;;
10144 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10147 *\ 2.11.*) ;; # other 2.11 versions
10148 *) supports_anon_versioning=yes ;;
10149 esac
10150
10151 # See if GNU ld supports shared libraries.
10152 case $host_os in
10153 aix[3-9]*)
10154 # On AIX/PPC, the GNU linker is very broken
10155 if test "$host_cpu" != ia64; then
10156 ld_shlibs=no
10157 cat <<_LT_EOF 1>&2
10158
10159 *** Warning: the GNU linker, at least up to release 2.19, is reported
10160 *** to be unable to reliably create shared libraries on AIX.
10161 *** Therefore, libtool is disabling shared libraries support. If you
10162 *** really care for shared libraries, you may want to install binutils
10163 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10164 *** You will then need to restart the configuration process.
10165
10166 _LT_EOF
10167 fi
10168 ;;
10169
10170 amigaos*)
10171 case $host_cpu in
10172 powerpc)
10173 # see comment about AmigaOS4 .so support
10174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175 archive_expsym_cmds=''
10176 ;;
10177 m68k)
10178 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)'
10179 hardcode_libdir_flag_spec='-L$libdir'
10180 hardcode_minus_L=yes
10181 ;;
10182 esac
10183 ;;
10184
10185 beos*)
10186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10187 allow_undefined_flag=unsupported
10188 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10189 # support --undefined. This deserves some investigation. FIXME
10190 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10191 else
10192 ld_shlibs=no
10193 fi
10194 ;;
10195
10196 cygwin* | mingw* | pw32* | cegcc*)
10197 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10198 # as there is no search path for DLLs.
10199 hardcode_libdir_flag_spec='-L$libdir'
10200 export_dynamic_flag_spec='${wl}--export-all-symbols'
10201 allow_undefined_flag=unsupported
10202 always_export_symbols=no
10203 enable_shared_with_static_runtimes=yes
10204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10205
10206 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10208 # If the export-symbols file already is a .def file (1st line
10209 # is EXPORTS), use it as is; otherwise, prepend...
10210 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10211 cp $export_symbols $output_objdir/$soname.def;
10212 else
10213 echo EXPORTS > $output_objdir/$soname.def;
10214 cat $export_symbols >> $output_objdir/$soname.def;
10215 fi~
10216 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10217 else
10218 ld_shlibs=no
10219 fi
10220 ;;
10221
10222 haiku*)
10223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10224 link_all_deplibs=yes
10225 ;;
10226
10227 interix[3-9]*)
10228 hardcode_direct=no
10229 hardcode_shlibpath_var=no
10230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10231 export_dynamic_flag_spec='${wl}-E'
10232 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10233 # Instead, shared libraries are loaded at an image base (0x10000000 by
10234 # default) and relocated if they conflict, which is a slow very memory
10235 # consuming and fragmenting process. To avoid this, we pick a random,
10236 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10237 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10239 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'
10240 ;;
10241
10242 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10243 tmp_diet=no
10244 if test "$host_os" = linux-dietlibc; then
10245 case $cc_basename in
10246 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10247 esac
10248 fi
10249 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10250 && test "$tmp_diet" = no
10251 then
10252 tmp_addflag=' $pic_flag'
10253 tmp_sharedflag='-shared'
10254 case $cc_basename,$host_cpu in
10255 pgcc*) # Portland Group C compiler
10256 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'
10257 tmp_addflag=' $pic_flag'
10258 ;;
10259 pgf77* | pgf90* | pgf95* | pgfortran*)
10260 # Portland Group f77 and f90 compilers
10261 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'
10262 tmp_addflag=' $pic_flag -Mnomain' ;;
10263 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10264 tmp_addflag=' -i_dynamic' ;;
10265 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10266 tmp_addflag=' -i_dynamic -nofor_main' ;;
10267 ifc* | ifort*) # Intel Fortran compiler
10268 tmp_addflag=' -nofor_main' ;;
10269 lf95*) # Lahey Fortran 8.1
10270 whole_archive_flag_spec=
10271 tmp_sharedflag='--shared' ;;
10272 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10273 tmp_sharedflag='-qmkshrobj'
10274 tmp_addflag= ;;
10275 nvcc*) # Cuda Compiler Driver 2.2
10276 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'
10277 compiler_needs_object=yes
10278 ;;
10279 esac
10280 case `$CC -V 2>&1 | sed 5q` in
10281 *Sun\ C*) # Sun C 5.9
10282 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'
10283 compiler_needs_object=yes
10284 tmp_sharedflag='-G' ;;
10285 *Sun\ F*) # Sun Fortran 8.3
10286 tmp_sharedflag='-G' ;;
10287 esac
10288 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10289
10290 if test "x$supports_anon_versioning" = xyes; then
10291 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10293 echo "local: *; };" >> $output_objdir/$libname.ver~
10294 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10295 fi
10296
10297 case $cc_basename in
10298 xlf* | bgf* | bgxlf* | mpixlf*)
10299 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10300 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10301 hardcode_libdir_flag_spec=
10302 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10303 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10304 if test "x$supports_anon_versioning" = xyes; then
10305 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10307 echo "local: *; };" >> $output_objdir/$libname.ver~
10308 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10309 fi
10310 ;;
10311 esac
10312 else
10313 ld_shlibs=no
10314 fi
10315 ;;
10316
10317 netbsd*)
10318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10319 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10320 wlarc=
10321 else
10322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10324 fi
10325 ;;
10326
10327 solaris*)
10328 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10329 ld_shlibs=no
10330 cat <<_LT_EOF 1>&2
10331
10332 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10333 *** create shared libraries on Solaris systems. Therefore, libtool
10334 *** is disabling shared libraries support. We urge you to upgrade GNU
10335 *** binutils to release 2.9.1 or newer. Another option is to modify
10336 *** your PATH or compiler configuration so that the native linker is
10337 *** used, and then restart.
10338
10339 _LT_EOF
10340 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10343 else
10344 ld_shlibs=no
10345 fi
10346 ;;
10347
10348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10349 case `$LD -v 2>&1` in
10350 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10351 ld_shlibs=no
10352 cat <<_LT_EOF 1>&2
10353
10354 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10355 *** reliably create shared libraries on SCO systems. Therefore, libtool
10356 *** is disabling shared libraries support. We urge you to upgrade GNU
10357 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10358 *** your PATH or compiler configuration so that the native linker is
10359 *** used, and then restart.
10360
10361 _LT_EOF
10362 ;;
10363 *)
10364 # For security reasons, it is highly recommended that you always
10365 # use absolute paths for naming shared libraries, and exclude the
10366 # DT_RUNPATH tag from executables and libraries. But doing so
10367 # requires that you compile everything twice, which is a pain.
10368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10372 else
10373 ld_shlibs=no
10374 fi
10375 ;;
10376 esac
10377 ;;
10378
10379 sunos4*)
10380 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10381 wlarc=
10382 hardcode_direct=yes
10383 hardcode_shlibpath_var=no
10384 ;;
10385
10386 *)
10387 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10390 else
10391 ld_shlibs=no
10392 fi
10393 ;;
10394 esac
10395
10396 if test "$ld_shlibs" = no; then
10397 runpath_var=
10398 hardcode_libdir_flag_spec=
10399 export_dynamic_flag_spec=
10400 whole_archive_flag_spec=
10401 fi
10402 else
10403 # PORTME fill in a description of your system's linker (not GNU ld)
10404 case $host_os in
10405 aix3*)
10406 allow_undefined_flag=unsupported
10407 always_export_symbols=yes
10408 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'
10409 # Note: this linker hardcodes the directories in LIBPATH if there
10410 # are no directories specified by -L.
10411 hardcode_minus_L=yes
10412 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10413 # Neither direct hardcoding nor static linking is supported with a
10414 # broken collect2.
10415 hardcode_direct=unsupported
10416 fi
10417 ;;
10418
10419 aix[4-9]*)
10420 if test "$host_cpu" = ia64; then
10421 # On IA64, the linker does run time linking by default, so we don't
10422 # have to do anything special.
10423 aix_use_runtimelinking=no
10424 exp_sym_flag='-Bexport'
10425 no_entry_flag=""
10426 else
10427 # If we're using GNU nm, then we don't want the "-C" option.
10428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10429 # Also, AIX nm treats weak defined symbols like other global
10430 # defined symbols, whereas GNU nm marks them as "W".
10431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10432 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'
10433 else
10434 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'
10435 fi
10436 aix_use_runtimelinking=no
10437
10438 # Test if we are trying to use run time linking or normal
10439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10440 # need to do runtime linking.
10441 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10442 for ld_flag in $LDFLAGS; do
10443 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10444 aix_use_runtimelinking=yes
10445 break
10446 fi
10447 done
10448 ;;
10449 esac
10450
10451 exp_sym_flag='-bexport'
10452 no_entry_flag='-bnoentry'
10453 fi
10454
10455 # When large executables or shared objects are built, AIX ld can
10456 # have problems creating the table of contents. If linking a library
10457 # or program results in "error TOC overflow" add -mminimal-toc to
10458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10460
10461 archive_cmds=''
10462 hardcode_direct=yes
10463 hardcode_direct_absolute=yes
10464 hardcode_libdir_separator=':'
10465 link_all_deplibs=yes
10466 file_list_spec='${wl}-f,'
10467
10468 if test "$GCC" = yes; then
10469 case $host_os in aix4.[012]|aix4.[012].*)
10470 # We only want to do this on AIX 4.2 and lower, the check
10471 # below for broken collect2 doesn't work under 4.3+
10472 collect2name=`${CC} -print-prog-name=collect2`
10473 if test -f "$collect2name" &&
10474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10475 then
10476 # We have reworked collect2
10477 :
10478 else
10479 # We have old collect2
10480 hardcode_direct=unsupported
10481 # It fails to find uninstalled libraries when the uninstalled
10482 # path is not listed in the libpath. Setting hardcode_minus_L
10483 # to unsupported forces relinking
10484 hardcode_minus_L=yes
10485 hardcode_libdir_flag_spec='-L$libdir'
10486 hardcode_libdir_separator=
10487 fi
10488 ;;
10489 esac
10490 shared_flag='-shared'
10491 if test "$aix_use_runtimelinking" = yes; then
10492 shared_flag="$shared_flag "'${wl}-G'
10493 fi
10494 else
10495 # not using gcc
10496 if test "$host_cpu" = ia64; then
10497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10498 # chokes on -Wl,-G. The following line is correct:
10499 shared_flag='-G'
10500 else
10501 if test "$aix_use_runtimelinking" = yes; then
10502 shared_flag='${wl}-G'
10503 else
10504 shared_flag='${wl}-bM:SRE'
10505 fi
10506 fi
10507 fi
10508
10509 export_dynamic_flag_spec='${wl}-bexpall'
10510 # It seems that -bexpall does not export symbols beginning with
10511 # underscore (_), so it is better to generate a list of symbols to export.
10512 always_export_symbols=yes
10513 if test "$aix_use_runtimelinking" = yes; then
10514 # Warning - without using the other runtime loading flags (-brtl),
10515 # -berok will link without error, but may produce a broken library.
10516 allow_undefined_flag='-berok'
10517 # Determine the default libpath from the value encoded in an
10518 # empty executable.
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521
10522 int
10523 main ()
10524 {
10525
10526 ;
10527 return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_link "$LINENO"; then :
10531
10532 lt_aix_libpath_sed='
10533 /Import File Strings/,/^$/ {
10534 /^0/ {
10535 s/^0 *\(.*\)$/\1/
10536 p
10537 }
10538 }'
10539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10540 # Check for a 64-bit object if we didn't find anything.
10541 if test -z "$aix_libpath"; then
10542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10543 fi
10544 fi
10545 rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10548
10549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10550 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"
10551 else
10552 if test "$host_cpu" = ia64; then
10553 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10554 allow_undefined_flag="-z nodefs"
10555 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"
10556 else
10557 # Determine the default libpath from the value encoded in an
10558 # empty executable.
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561
10562 int
10563 main ()
10564 {
10565
10566 ;
10567 return 0;
10568 }
10569 _ACEOF
10570 if ac_fn_c_try_link "$LINENO"; then :
10571
10572 lt_aix_libpath_sed='
10573 /Import File Strings/,/^$/ {
10574 /^0/ {
10575 s/^0 *\(.*\)$/\1/
10576 p
10577 }
10578 }'
10579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10580 # Check for a 64-bit object if we didn't find anything.
10581 if test -z "$aix_libpath"; then
10582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10583 fi
10584 fi
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10588
10589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10590 # Warning - without using the other run time loading flags,
10591 # -berok will link without error, but may produce a broken library.
10592 no_undefined_flag=' ${wl}-bernotok'
10593 allow_undefined_flag=' ${wl}-berok'
10594 if test "$with_gnu_ld" = yes; then
10595 # We only use this code for GNU lds that support --whole-archive.
10596 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10597 else
10598 # Exported symbols can be pulled into shared objects from archives
10599 whole_archive_flag_spec='$convenience'
10600 fi
10601 archive_cmds_need_lc=yes
10602 # This is similar to how AIX traditionally builds its shared libraries.
10603 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'
10604 fi
10605 fi
10606 ;;
10607
10608 amigaos*)
10609 case $host_cpu in
10610 powerpc)
10611 # see comment about AmigaOS4 .so support
10612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10613 archive_expsym_cmds=''
10614 ;;
10615 m68k)
10616 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)'
10617 hardcode_libdir_flag_spec='-L$libdir'
10618 hardcode_minus_L=yes
10619 ;;
10620 esac
10621 ;;
10622
10623 bsdi[45]*)
10624 export_dynamic_flag_spec=-rdynamic
10625 ;;
10626
10627 cygwin* | mingw* | pw32* | cegcc*)
10628 # When not using gcc, we currently assume that we are using
10629 # Microsoft Visual C++.
10630 # hardcode_libdir_flag_spec is actually meaningless, as there is
10631 # no search path for DLLs.
10632 hardcode_libdir_flag_spec=' '
10633 allow_undefined_flag=unsupported
10634 # Tell ltmain to make .lib files, not .a files.
10635 libext=lib
10636 # Tell ltmain to make .dll files, not .so files.
10637 shrext_cmds=".dll"
10638 # FIXME: Setting linknames here is a bad hack.
10639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10640 # The linker will automatically build a .lib file if we build a DLL.
10641 old_archive_from_new_cmds='true'
10642 # FIXME: Should let the user specify the lib program.
10643 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10644 fix_srcfile_path='`cygpath -w "$srcfile"`'
10645 enable_shared_with_static_runtimes=yes
10646 ;;
10647
10648 darwin* | rhapsody*)
10649
10650
10651 archive_cmds_need_lc=no
10652 hardcode_direct=no
10653 hardcode_automatic=yes
10654 hardcode_shlibpath_var=unsupported
10655 if test "$lt_cv_ld_force_load" = "yes"; then
10656 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\"`'
10657 else
10658 whole_archive_flag_spec=''
10659 fi
10660 link_all_deplibs=yes
10661 allow_undefined_flag="$_lt_dar_allow_undefined"
10662 case $cc_basename in
10663 ifort*) _lt_dar_can_shared=yes ;;
10664 *) _lt_dar_can_shared=$GCC ;;
10665 esac
10666 if test "$_lt_dar_can_shared" = "yes"; then
10667 output_verbose_link_cmd=func_echo_all
10668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10670 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}"
10671 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}"
10672
10673 else
10674 ld_shlibs=no
10675 fi
10676
10677 ;;
10678
10679 dgux*)
10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_libdir_flag_spec='-L$libdir'
10682 hardcode_shlibpath_var=no
10683 ;;
10684
10685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10686 # support. Future versions do this automatically, but an explicit c++rt0.o
10687 # does not break anything, and helps significantly (at the cost of a little
10688 # extra space).
10689 freebsd2.2*)
10690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10691 hardcode_libdir_flag_spec='-R$libdir'
10692 hardcode_direct=yes
10693 hardcode_shlibpath_var=no
10694 ;;
10695
10696 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10697 freebsd2.*)
10698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10699 hardcode_direct=yes
10700 hardcode_minus_L=yes
10701 hardcode_shlibpath_var=no
10702 ;;
10703
10704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10705 freebsd* | dragonfly*)
10706 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10707 hardcode_libdir_flag_spec='-R$libdir'
10708 hardcode_direct=yes
10709 hardcode_shlibpath_var=no
10710 ;;
10711
10712 hpux9*)
10713 if test "$GCC" = yes; then
10714 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'
10715 else
10716 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'
10717 fi
10718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10719 hardcode_libdir_separator=:
10720 hardcode_direct=yes
10721
10722 # hardcode_minus_L: Not really in the search PATH,
10723 # but as the default location of the library.
10724 hardcode_minus_L=yes
10725 export_dynamic_flag_spec='${wl}-E'
10726 ;;
10727
10728 hpux10*)
10729 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10730 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10731 else
10732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10733 fi
10734 if test "$with_gnu_ld" = no; then
10735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10736 hardcode_libdir_flag_spec_ld='+b $libdir'
10737 hardcode_libdir_separator=:
10738 hardcode_direct=yes
10739 hardcode_direct_absolute=yes
10740 export_dynamic_flag_spec='${wl}-E'
10741 # hardcode_minus_L: Not really in the search PATH,
10742 # but as the default location of the library.
10743 hardcode_minus_L=yes
10744 fi
10745 ;;
10746
10747 hpux11*)
10748 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10749 case $host_cpu in
10750 hppa*64*)
10751 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 ;;
10753 ia64*)
10754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10755 ;;
10756 *)
10757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10758 ;;
10759 esac
10760 else
10761 case $host_cpu in
10762 hppa*64*)
10763 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10764 ;;
10765 ia64*)
10766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10767 ;;
10768 *)
10769
10770 # Older versions of the 11.00 compiler do not understand -b yet
10771 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10773 $as_echo_n "checking if $CC understands -b... " >&6; }
10774 if ${lt_cv_prog_compiler__b+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 lt_cv_prog_compiler__b=no
10778 save_LDFLAGS="$LDFLAGS"
10779 LDFLAGS="$LDFLAGS -b"
10780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10782 # The linker can only warn and ignore the option if not recognized
10783 # So say no if there are warnings
10784 if test -s conftest.err; then
10785 # Append any errors to the config.log.
10786 cat conftest.err 1>&5
10787 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10789 if diff conftest.exp conftest.er2 >/dev/null; then
10790 lt_cv_prog_compiler__b=yes
10791 fi
10792 else
10793 lt_cv_prog_compiler__b=yes
10794 fi
10795 fi
10796 $RM -r conftest*
10797 LDFLAGS="$save_LDFLAGS"
10798
10799 fi
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10801 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10802
10803 if test x"$lt_cv_prog_compiler__b" = xyes; then
10804 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10805 else
10806 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10807 fi
10808
10809 ;;
10810 esac
10811 fi
10812 if test "$with_gnu_ld" = no; then
10813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10814 hardcode_libdir_separator=:
10815
10816 case $host_cpu in
10817 hppa*64*|ia64*)
10818 hardcode_direct=no
10819 hardcode_shlibpath_var=no
10820 ;;
10821 *)
10822 hardcode_direct=yes
10823 hardcode_direct_absolute=yes
10824 export_dynamic_flag_spec='${wl}-E'
10825
10826 # hardcode_minus_L: Not really in the search PATH,
10827 # but as the default location of the library.
10828 hardcode_minus_L=yes
10829 ;;
10830 esac
10831 fi
10832 ;;
10833
10834 irix5* | irix6* | nonstopux*)
10835 if test "$GCC" = yes; then
10836 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'
10837 # Try to use the -exported_symbol ld option, if it does not
10838 # work, assume that -exports_file does not work either and
10839 # implicitly export all symbols.
10840 save_LDFLAGS="$LDFLAGS"
10841 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844 int foo(void) {}
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 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'
10848
10849 fi
10850 rm -f core conftest.err conftest.$ac_objext \
10851 conftest$ac_exeext conftest.$ac_ext
10852 LDFLAGS="$save_LDFLAGS"
10853 else
10854 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'
10855 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'
10856 fi
10857 archive_cmds_need_lc='no'
10858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10859 hardcode_libdir_separator=:
10860 inherit_rpath=yes
10861 link_all_deplibs=yes
10862 ;;
10863
10864 netbsd*)
10865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10867 else
10868 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10869 fi
10870 hardcode_libdir_flag_spec='-R$libdir'
10871 hardcode_direct=yes
10872 hardcode_shlibpath_var=no
10873 ;;
10874
10875 newsos6)
10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877 hardcode_direct=yes
10878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879 hardcode_libdir_separator=:
10880 hardcode_shlibpath_var=no
10881 ;;
10882
10883 *nto* | *qnx*)
10884 ;;
10885
10886 openbsd*)
10887 if test -f /usr/libexec/ld.so; then
10888 hardcode_direct=yes
10889 hardcode_shlibpath_var=no
10890 hardcode_direct_absolute=yes
10891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10895 export_dynamic_flag_spec='${wl}-E'
10896 else
10897 case $host_os in
10898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10900 hardcode_libdir_flag_spec='-R$libdir'
10901 ;;
10902 *)
10903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10905 ;;
10906 esac
10907 fi
10908 else
10909 ld_shlibs=no
10910 fi
10911 ;;
10912
10913 os2*)
10914 hardcode_libdir_flag_spec='-L$libdir'
10915 hardcode_minus_L=yes
10916 allow_undefined_flag=unsupported
10917 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'
10918 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10919 ;;
10920
10921 osf3*)
10922 if test "$GCC" = yes; then
10923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10924 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'
10925 else
10926 allow_undefined_flag=' -expect_unresolved \*'
10927 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'
10928 fi
10929 archive_cmds_need_lc='no'
10930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10931 hardcode_libdir_separator=:
10932 ;;
10933
10934 osf4* | osf5*) # as osf3* with the addition of -msym flag
10935 if test "$GCC" = yes; then
10936 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10937 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'
10938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10939 else
10940 allow_undefined_flag=' -expect_unresolved \*'
10941 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'
10942 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~
10943 $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'
10944
10945 # Both c and cxx compiler support -rpath directly
10946 hardcode_libdir_flag_spec='-rpath $libdir'
10947 fi
10948 archive_cmds_need_lc='no'
10949 hardcode_libdir_separator=:
10950 ;;
10951
10952 solaris*)
10953 no_undefined_flag=' -z defs'
10954 if test "$GCC" = yes; then
10955 wlarc='${wl}'
10956 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10958 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10959 else
10960 case `$CC -V 2>&1` in
10961 *"Compilers 5.0"*)
10962 wlarc=''
10963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10966 ;;
10967 *)
10968 wlarc='${wl}'
10969 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10970 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10971 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10972 ;;
10973 esac
10974 fi
10975 hardcode_libdir_flag_spec='-R$libdir'
10976 hardcode_shlibpath_var=no
10977 case $host_os in
10978 solaris2.[0-5] | solaris2.[0-5].*) ;;
10979 *)
10980 # The compiler driver will combine and reorder linker options,
10981 # but understands `-z linker_flag'. GCC discards it without `$wl',
10982 # but is careful enough not to reorder.
10983 # Supported since Solaris 2.6 (maybe 2.5.1?)
10984 if test "$GCC" = yes; then
10985 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10986 else
10987 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10988 fi
10989 ;;
10990 esac
10991 link_all_deplibs=yes
10992 ;;
10993
10994 sunos4*)
10995 if test "x$host_vendor" = xsequent; then
10996 # Use $CC to link under sequent, because it throws in some extra .o
10997 # files that make .init and .fini sections work.
10998 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10999 else
11000 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11001 fi
11002 hardcode_libdir_flag_spec='-L$libdir'
11003 hardcode_direct=yes
11004 hardcode_minus_L=yes
11005 hardcode_shlibpath_var=no
11006 ;;
11007
11008 sysv4)
11009 case $host_vendor in
11010 sni)
11011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11012 hardcode_direct=yes # is this really true???
11013 ;;
11014 siemens)
11015 ## LD is ld it makes a PLAMLIB
11016 ## CC just makes a GrossModule.
11017 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11018 reload_cmds='$CC -r -o $output$reload_objs'
11019 hardcode_direct=no
11020 ;;
11021 motorola)
11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11024 ;;
11025 esac
11026 runpath_var='LD_RUN_PATH'
11027 hardcode_shlibpath_var=no
11028 ;;
11029
11030 sysv4.3*)
11031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032 hardcode_shlibpath_var=no
11033 export_dynamic_flag_spec='-Bexport'
11034 ;;
11035
11036 sysv4*MP*)
11037 if test -d /usr/nec; then
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_shlibpath_var=no
11040 runpath_var=LD_RUN_PATH
11041 hardcode_runpath_var=yes
11042 ld_shlibs=yes
11043 fi
11044 ;;
11045
11046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11047 no_undefined_flag='${wl}-z,text'
11048 archive_cmds_need_lc=no
11049 hardcode_shlibpath_var=no
11050 runpath_var='LD_RUN_PATH'
11051
11052 if test "$GCC" = yes; then
11053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 else
11056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 fi
11059 ;;
11060
11061 sysv5* | sco3.2v5* | sco5v6*)
11062 # Note: We can NOT use -z defs as we might desire, because we do not
11063 # link with -lc, and that would cause any symbols used from libc to
11064 # always be unresolved, which means just about no library would
11065 # ever link correctly. If we're not using GNU ld we use -z text
11066 # though, which does catch some bad symbols but isn't as heavy-handed
11067 # as -z defs.
11068 no_undefined_flag='${wl}-z,text'
11069 allow_undefined_flag='${wl}-z,nodefs'
11070 archive_cmds_need_lc=no
11071 hardcode_shlibpath_var=no
11072 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11073 hardcode_libdir_separator=':'
11074 link_all_deplibs=yes
11075 export_dynamic_flag_spec='${wl}-Bexport'
11076 runpath_var='LD_RUN_PATH'
11077
11078 if test "$GCC" = yes; then
11079 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11081 else
11082 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11084 fi
11085 ;;
11086
11087 uts4*)
11088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11089 hardcode_libdir_flag_spec='-L$libdir'
11090 hardcode_shlibpath_var=no
11091 ;;
11092
11093 *)
11094 ld_shlibs=no
11095 ;;
11096 esac
11097
11098 if test x$host_vendor = xsni; then
11099 case $host in
11100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11101 export_dynamic_flag_spec='${wl}-Blargedynsym'
11102 ;;
11103 esac
11104 fi
11105 fi
11106
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11108 $as_echo "$ld_shlibs" >&6; }
11109 test "$ld_shlibs" = no && can_build_shared=no
11110
11111 with_gnu_ld=$with_gnu_ld
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127 #
11128 # Do we need to explicitly link libc?
11129 #
11130 case "x$archive_cmds_need_lc" in
11131 x|xyes)
11132 # Assume -lc should be added
11133 archive_cmds_need_lc=yes
11134
11135 if test "$enable_shared" = yes && test "$GCC" = yes; then
11136 case $archive_cmds in
11137 *'~'*)
11138 # FIXME: we may have to deal with multi-command sequences.
11139 ;;
11140 '$CC '*)
11141 # Test whether the compiler implicitly links with -lc since on some
11142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11143 # to ld, don't add -lc before -lgcc.
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11145 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11146 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 $RM conftest*
11150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11151
11152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11153 (eval $ac_compile) 2>&5
11154 ac_status=$?
11155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11156 test $ac_status = 0; } 2>conftest.err; then
11157 soname=conftest
11158 lib=conftest
11159 libobjs=conftest.$ac_objext
11160 deplibs=
11161 wl=$lt_prog_compiler_wl
11162 pic_flag=$lt_prog_compiler_pic
11163 compiler_flags=-v
11164 linker_flags=-v
11165 verstring=
11166 output_objdir=.
11167 libname=conftest
11168 lt_save_allow_undefined_flag=$allow_undefined_flag
11169 allow_undefined_flag=
11170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11171 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11172 ac_status=$?
11173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11174 test $ac_status = 0; }
11175 then
11176 lt_cv_archive_cmds_need_lc=no
11177 else
11178 lt_cv_archive_cmds_need_lc=yes
11179 fi
11180 allow_undefined_flag=$lt_save_allow_undefined_flag
11181 else
11182 cat conftest.err 1>&5
11183 fi
11184 $RM conftest*
11185
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11188 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11189 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11190 ;;
11191 esac
11192 fi
11193 ;;
11194 esac
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11353 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11354
11355 if test "$GCC" = yes; then
11356 case $host_os in
11357 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11358 *) lt_awk_arg="/^libraries:/" ;;
11359 esac
11360 case $host_os in
11361 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11362 *) lt_sed_strip_eq="s,=/,/,g" ;;
11363 esac
11364 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11365 case $lt_search_path_spec in
11366 *\;*)
11367 # if the path contains ";" then we assume it to be the separator
11368 # otherwise default to the standard path separator (i.e. ":") - it is
11369 # assumed that no part of a normal pathname contains ";" but that should
11370 # okay in the real world where ";" in dirpaths is itself problematic.
11371 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11372 ;;
11373 *)
11374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11375 ;;
11376 esac
11377 # Ok, now we have the path, separated by spaces, we can step through it
11378 # and add multilib dir if necessary.
11379 lt_tmp_lt_search_path_spec=
11380 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11381 for lt_sys_path in $lt_search_path_spec; do
11382 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11383 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11384 else
11385 test -d "$lt_sys_path" && \
11386 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11387 fi
11388 done
11389 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11390 BEGIN {RS=" "; FS="/|\n";} {
11391 lt_foo="";
11392 lt_count=0;
11393 for (lt_i = NF; lt_i > 0; lt_i--) {
11394 if ($lt_i != "" && $lt_i != ".") {
11395 if ($lt_i == "..") {
11396 lt_count++;
11397 } else {
11398 if (lt_count == 0) {
11399 lt_foo="/" $lt_i lt_foo;
11400 } else {
11401 lt_count--;
11402 }
11403 }
11404 }
11405 }
11406 if (lt_foo != "") { lt_freq[lt_foo]++; }
11407 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11408 }'`
11409 # AWK program above erroneously prepends '/' to C:/dos/paths
11410 # for these hosts.
11411 case $host_os in
11412 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11413 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11414 esac
11415 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11416 else
11417 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11418 fi
11419 library_names_spec=
11420 libname_spec='lib$name'
11421 soname_spec=
11422 shrext_cmds=".so"
11423 postinstall_cmds=
11424 postuninstall_cmds=
11425 finish_cmds=
11426 finish_eval=
11427 shlibpath_var=
11428 shlibpath_overrides_runpath=unknown
11429 version_type=none
11430 dynamic_linker="$host_os ld.so"
11431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11432 need_lib_prefix=unknown
11433 hardcode_into_libs=no
11434
11435 # when you set need_version to no, make sure it does not cause -set_version
11436 # flags to be left without arguments
11437 need_version=unknown
11438
11439 case $host_os in
11440 aix3*)
11441 version_type=linux
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11443 shlibpath_var=LIBPATH
11444
11445 # AIX 3 has no versioning support, so we append a major version to the name.
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 ;;
11448
11449 aix[4-9]*)
11450 version_type=linux
11451 need_lib_prefix=no
11452 need_version=no
11453 hardcode_into_libs=yes
11454 if test "$host_cpu" = ia64; then
11455 # AIX 5 supports IA64
11456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 else
11459 # With GCC up to 2.95.x, collect2 would create an import file
11460 # for dependence libraries. The import file would start with
11461 # the line `#! .'. This would cause the generated library to
11462 # depend on `.', always an invalid library. This was fixed in
11463 # development snapshots of GCC prior to 3.0.
11464 case $host_os in
11465 aix4 | aix4.[01] | aix4.[01].*)
11466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11467 echo ' yes '
11468 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11469 :
11470 else
11471 can_build_shared=no
11472 fi
11473 ;;
11474 esac
11475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11476 # soname into executable. Probably we can add versioning support to
11477 # collect2, so additional links can be useful in future.
11478 if test "$aix_use_runtimelinking" = yes; then
11479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11480 # instead of lib<name>.a to let people know that these are not
11481 # typical AIX shared libraries.
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 else
11484 # We preserve .a as extension for shared libraries through AIX4.2
11485 # and later when we are not doing run time linking.
11486 library_names_spec='${libname}${release}.a $libname.a'
11487 soname_spec='${libname}${release}${shared_ext}$major'
11488 fi
11489 shlibpath_var=LIBPATH
11490 fi
11491 ;;
11492
11493 amigaos*)
11494 case $host_cpu in
11495 powerpc)
11496 # Since July 2007 AmigaOS4 officially supports .so libraries.
11497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 ;;
11500 m68k)
11501 library_names_spec='$libname.ixlibrary $libname.a'
11502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11503 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'
11504 ;;
11505 esac
11506 ;;
11507
11508 beos*)
11509 library_names_spec='${libname}${shared_ext}'
11510 dynamic_linker="$host_os ld.so"
11511 shlibpath_var=LIBRARY_PATH
11512 ;;
11513
11514 bsdi[45]*)
11515 version_type=linux
11516 need_version=no
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11523 # the default ld.so.conf also contains /usr/contrib/lib and
11524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11525 # libtool to hard-code these into programs
11526 ;;
11527
11528 cygwin* | mingw* | pw32* | cegcc*)
11529 version_type=windows
11530 shrext_cmds=".dll"
11531 need_version=no
11532 need_lib_prefix=no
11533
11534 case $GCC,$host_os in
11535 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11536 library_names_spec='$libname.dll.a'
11537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11538 postinstall_cmds='base_file=`basename \${file}`~
11539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11540 dldir=$destdir/`dirname \$dlpath`~
11541 test -d \$dldir || mkdir -p \$dldir~
11542 $install_prog $dir/$dlname \$dldir/$dlname~
11543 chmod a+x \$dldir/$dlname~
11544 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11545 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11546 fi'
11547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11548 dlpath=$dir/\$dldll~
11549 $RM \$dlpath'
11550 shlibpath_overrides_runpath=yes
11551
11552 case $host_os in
11553 cygwin*)
11554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11556
11557 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11558 ;;
11559 mingw* | cegcc*)
11560 # MinGW DLLs use traditional 'lib' prefix
11561 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11562 ;;
11563 pw32*)
11564 # pw32 DLLs use 'pw' prefix rather than 'lib'
11565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11566 ;;
11567 esac
11568 ;;
11569
11570 *)
11571 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11572 ;;
11573 esac
11574 dynamic_linker='Win32 ld.exe'
11575 # FIXME: first we should search . and the directory the executable is in
11576 shlibpath_var=PATH
11577 ;;
11578
11579 darwin* | rhapsody*)
11580 dynamic_linker="$host_os dyld"
11581 version_type=darwin
11582 need_lib_prefix=no
11583 need_version=no
11584 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11585 soname_spec='${libname}${release}${major}$shared_ext'
11586 shlibpath_overrides_runpath=yes
11587 shlibpath_var=DYLD_LIBRARY_PATH
11588 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11589
11590 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11591 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11592 ;;
11593
11594 dgux*)
11595 version_type=linux
11596 need_lib_prefix=no
11597 need_version=no
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 ;;
11602
11603 freebsd* | dragonfly*)
11604 # DragonFly does not have aout. When/if they implement a new
11605 # versioning mechanism, adjust this.
11606 if test -x /usr/bin/objformat; then
11607 objformat=`/usr/bin/objformat`
11608 else
11609 case $host_os in
11610 freebsd[23].*) objformat=aout ;;
11611 *) objformat=elf ;;
11612 esac
11613 fi
11614 version_type=freebsd-$objformat
11615 case $version_type in
11616 freebsd-elf*)
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11618 need_version=no
11619 need_lib_prefix=no
11620 ;;
11621 freebsd-*)
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11623 need_version=yes
11624 ;;
11625 esac
11626 shlibpath_var=LD_LIBRARY_PATH
11627 case $host_os in
11628 freebsd2.*)
11629 shlibpath_overrides_runpath=yes
11630 ;;
11631 freebsd3.[01]* | freebsdelf3.[01]*)
11632 shlibpath_overrides_runpath=yes
11633 hardcode_into_libs=yes
11634 ;;
11635 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11636 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11637 shlibpath_overrides_runpath=no
11638 hardcode_into_libs=yes
11639 ;;
11640 *) # from 4.6 on, and DragonFly
11641 shlibpath_overrides_runpath=yes
11642 hardcode_into_libs=yes
11643 ;;
11644 esac
11645 ;;
11646
11647 haiku*)
11648 version_type=linux
11649 need_lib_prefix=no
11650 need_version=no
11651 dynamic_linker="$host_os runtime_loader"
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 shlibpath_var=LIBRARY_PATH
11655 shlibpath_overrides_runpath=yes
11656 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11657 hardcode_into_libs=yes
11658 ;;
11659
11660 hpux9* | hpux10* | hpux11*)
11661 # Give a soname corresponding to the major version so that dld.sl refuses to
11662 # link against other versions.
11663 version_type=sunos
11664 need_lib_prefix=no
11665 need_version=no
11666 case $host_cpu in
11667 ia64*)
11668 shrext_cmds='.so'
11669 hardcode_into_libs=yes
11670 dynamic_linker="$host_os dld.so"
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 if test "X$HPUX_IA64_MODE" = X32; then
11676 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11677 else
11678 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11679 fi
11680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11681 ;;
11682 hppa*64*)
11683 shrext_cmds='.sl'
11684 hardcode_into_libs=yes
11685 dynamic_linker="$host_os dld.sl"
11686 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11687 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11692 ;;
11693 *)
11694 shrext_cmds='.sl'
11695 dynamic_linker="$host_os dld.sl"
11696 shlibpath_var=SHLIB_PATH
11697 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11699 soname_spec='${libname}${release}${shared_ext}$major'
11700 ;;
11701 esac
11702 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11703 postinstall_cmds='chmod 555 $lib'
11704 # or fails outright, so override atomically:
11705 install_override_mode=555
11706 ;;
11707
11708 interix[3-9]*)
11709 version_type=linux
11710 need_lib_prefix=no
11711 need_version=no
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11713 soname_spec='${libname}${release}${shared_ext}$major'
11714 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=no
11717 hardcode_into_libs=yes
11718 ;;
11719
11720 irix5* | irix6* | nonstopux*)
11721 case $host_os in
11722 nonstopux*) version_type=nonstopux ;;
11723 *)
11724 if test "$lt_cv_prog_gnu_ld" = yes; then
11725 version_type=linux
11726 else
11727 version_type=irix
11728 fi ;;
11729 esac
11730 need_lib_prefix=no
11731 need_version=no
11732 soname_spec='${libname}${release}${shared_ext}$major'
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11734 case $host_os in
11735 irix5* | nonstopux*)
11736 libsuff= shlibsuff=
11737 ;;
11738 *)
11739 case $LD in # libtool.m4 will add one of these switches to LD
11740 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11741 libsuff= shlibsuff= libmagic=32-bit;;
11742 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11743 libsuff=32 shlibsuff=N32 libmagic=N32;;
11744 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11745 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11746 *) libsuff= shlibsuff= libmagic=never-match;;
11747 esac
11748 ;;
11749 esac
11750 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11751 shlibpath_overrides_runpath=no
11752 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11753 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11754 hardcode_into_libs=yes
11755 ;;
11756
11757 # No shared lib support for Linux oldld, aout, or coff.
11758 linux*oldld* | linux*aout* | linux*coff*)
11759 dynamic_linker=no
11760 ;;
11761
11762 # This must be Linux ELF.
11763 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11764 version_type=linux
11765 need_lib_prefix=no
11766 need_version=no
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768 soname_spec='${libname}${release}${shared_ext}$major'
11769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 shlibpath_overrides_runpath=no
11772
11773 # Some binutils ld are patched to set DT_RUNPATH
11774 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 lt_cv_shlibpath_overrides_runpath=no
11778 save_LDFLAGS=$LDFLAGS
11779 save_libdir=$libdir
11780 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11781 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784
11785 int
11786 main ()
11787 {
11788
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 if ac_fn_c_try_link "$LINENO"; then :
11794 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11795 lt_cv_shlibpath_overrides_runpath=yes
11796 fi
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800 LDFLAGS=$save_LDFLAGS
11801 libdir=$save_libdir
11802
11803 fi
11804
11805 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11806
11807 # This implies no fast_install, which is unacceptable.
11808 # Some rework will be needed to allow for fast_install
11809 # before this can be enabled.
11810 hardcode_into_libs=yes
11811
11812 # Append ld.so.conf contents to the search path
11813 if test -f /etc/ld.so.conf; then
11814 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' ' '`
11815 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11816 fi
11817
11818 # We used to test for /lib/ld.so.1 and disable shared libraries on
11819 # powerpc, because MkLinux only supported shared libraries with the
11820 # GNU dynamic linker. Since this was broken with cross compilers,
11821 # most powerpc-linux boxes support dynamic linking these days and
11822 # people can always --disable-shared, the test was removed, and we
11823 # assume the GNU/Linux dynamic linker is in use.
11824 dynamic_linker='GNU/Linux ld.so'
11825 ;;
11826
11827 netbsd*)
11828 version_type=sunos
11829 need_lib_prefix=no
11830 need_version=no
11831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11834 dynamic_linker='NetBSD (a.out) ld.so'
11835 else
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11837 soname_spec='${libname}${release}${shared_ext}$major'
11838 dynamic_linker='NetBSD ld.elf_so'
11839 fi
11840 shlibpath_var=LD_LIBRARY_PATH
11841 shlibpath_overrides_runpath=yes
11842 hardcode_into_libs=yes
11843 ;;
11844
11845 newsos6)
11846 version_type=linux
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848 shlibpath_var=LD_LIBRARY_PATH
11849 shlibpath_overrides_runpath=yes
11850 ;;
11851
11852 *nto* | *qnx*)
11853 version_type=qnx
11854 need_lib_prefix=no
11855 need_version=no
11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11857 soname_spec='${libname}${release}${shared_ext}$major'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 shlibpath_overrides_runpath=no
11860 hardcode_into_libs=yes
11861 dynamic_linker='ldqnx.so'
11862 ;;
11863
11864 openbsd*)
11865 version_type=sunos
11866 sys_lib_dlsearch_path_spec="/usr/lib"
11867 need_lib_prefix=no
11868 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11869 case $host_os in
11870 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11871 *) need_version=no ;;
11872 esac
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11877 case $host_os in
11878 openbsd2.[89] | openbsd2.[89].*)
11879 shlibpath_overrides_runpath=no
11880 ;;
11881 *)
11882 shlibpath_overrides_runpath=yes
11883 ;;
11884 esac
11885 else
11886 shlibpath_overrides_runpath=yes
11887 fi
11888 ;;
11889
11890 os2*)
11891 libname_spec='$name'
11892 shrext_cmds=".dll"
11893 need_lib_prefix=no
11894 library_names_spec='$libname${shared_ext} $libname.a'
11895 dynamic_linker='OS/2 ld.exe'
11896 shlibpath_var=LIBPATH
11897 ;;
11898
11899 osf3* | osf4* | osf5*)
11900 version_type=osf
11901 need_lib_prefix=no
11902 need_version=no
11903 soname_spec='${libname}${release}${shared_ext}$major'
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11907 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11908 ;;
11909
11910 rdos*)
11911 dynamic_linker=no
11912 ;;
11913
11914 solaris*)
11915 version_type=linux
11916 need_lib_prefix=no
11917 need_version=no
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11919 soname_spec='${libname}${release}${shared_ext}$major'
11920 shlibpath_var=LD_LIBRARY_PATH
11921 shlibpath_overrides_runpath=yes
11922 hardcode_into_libs=yes
11923 # ldd complains unless libraries are executable
11924 postinstall_cmds='chmod +x $lib'
11925 ;;
11926
11927 sunos4*)
11928 version_type=sunos
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11930 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 shlibpath_overrides_runpath=yes
11933 if test "$with_gnu_ld" = yes; then
11934 need_lib_prefix=no
11935 fi
11936 need_version=yes
11937 ;;
11938
11939 sysv4 | sysv4.3*)
11940 version_type=linux
11941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11942 soname_spec='${libname}${release}${shared_ext}$major'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 case $host_vendor in
11945 sni)
11946 shlibpath_overrides_runpath=no
11947 need_lib_prefix=no
11948 runpath_var=LD_RUN_PATH
11949 ;;
11950 siemens)
11951 need_lib_prefix=no
11952 ;;
11953 motorola)
11954 need_lib_prefix=no
11955 need_version=no
11956 shlibpath_overrides_runpath=no
11957 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11958 ;;
11959 esac
11960 ;;
11961
11962 sysv4*MP*)
11963 if test -d /usr/nec ;then
11964 version_type=linux
11965 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11966 soname_spec='$libname${shared_ext}.$major'
11967 shlibpath_var=LD_LIBRARY_PATH
11968 fi
11969 ;;
11970
11971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11972 version_type=freebsd-elf
11973 need_lib_prefix=no
11974 need_version=no
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11976 soname_spec='${libname}${release}${shared_ext}$major'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 shlibpath_overrides_runpath=yes
11979 hardcode_into_libs=yes
11980 if test "$with_gnu_ld" = yes; then
11981 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11982 else
11983 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11984 case $host_os in
11985 sco3.2v5*)
11986 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11987 ;;
11988 esac
11989 fi
11990 sys_lib_dlsearch_path_spec='/usr/lib'
11991 ;;
11992
11993 tpf*)
11994 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11995 version_type=linux
11996 need_lib_prefix=no
11997 need_version=no
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999 shlibpath_var=LD_LIBRARY_PATH
12000 shlibpath_overrides_runpath=no
12001 hardcode_into_libs=yes
12002 ;;
12003
12004 uts4*)
12005 version_type=linux
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 ;;
12010
12011 *)
12012 dynamic_linker=no
12013 ;;
12014 esac
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12016 $as_echo "$dynamic_linker" >&6; }
12017 test "$dynamic_linker" = no && can_build_shared=no
12018
12019 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12020 if test "$GCC" = yes; then
12021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12022 fi
12023
12024 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12025 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12026 fi
12027 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12028 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12029 fi
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12123 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12124 hardcode_action=
12125 if test -n "$hardcode_libdir_flag_spec" ||
12126 test -n "$runpath_var" ||
12127 test "X$hardcode_automatic" = "Xyes" ; then
12128
12129 # We can hardcode non-existent directories.
12130 if test "$hardcode_direct" != no &&
12131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12132 # have to relink, otherwise we might link with an installed library
12133 # when we should be linking with a yet-to-be-installed one
12134 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12135 test "$hardcode_minus_L" != no; then
12136 # Linking always hardcodes the temporary library directory.
12137 hardcode_action=relink
12138 else
12139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12140 hardcode_action=immediate
12141 fi
12142 else
12143 # We cannot hardcode anything, or else we can only hardcode existing
12144 # directories.
12145 hardcode_action=unsupported
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12148 $as_echo "$hardcode_action" >&6; }
12149
12150 if test "$hardcode_action" = relink ||
12151 test "$inherit_rpath" = yes; then
12152 # Fast installation is not supported
12153 enable_fast_install=no
12154 elif test "$shlibpath_overrides_runpath" = yes ||
12155 test "$enable_shared" = no; then
12156 # Fast installation is not necessary
12157 enable_fast_install=needless
12158 fi
12159
12160
12161
12162
12163
12164
12165 if test "x$enable_dlopen" != xyes; then
12166 enable_dlopen=unknown
12167 enable_dlopen_self=unknown
12168 enable_dlopen_self_static=unknown
12169 else
12170 lt_cv_dlopen=no
12171 lt_cv_dlopen_libs=
12172
12173 case $host_os in
12174 beos*)
12175 lt_cv_dlopen="load_add_on"
12176 lt_cv_dlopen_libs=
12177 lt_cv_dlopen_self=yes
12178 ;;
12179
12180 mingw* | pw32* | cegcc*)
12181 lt_cv_dlopen="LoadLibrary"
12182 lt_cv_dlopen_libs=
12183 ;;
12184
12185 cygwin*)
12186 lt_cv_dlopen="dlopen"
12187 lt_cv_dlopen_libs=
12188 ;;
12189
12190 darwin*)
12191 # if libdl is installed we need to link against it
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12193 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12194 if ${ac_cv_lib_dl_dlopen+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 ac_check_lib_save_LIBS=$LIBS
12198 LIBS="-ldl $LIBS"
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12201
12202 /* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 char dlopen ();
12209 int
12210 main ()
12211 {
12212 return dlopen ();
12213 ;
12214 return 0;
12215 }
12216 _ACEOF
12217 if ac_fn_c_try_link "$LINENO"; then :
12218 ac_cv_lib_dl_dlopen=yes
12219 else
12220 ac_cv_lib_dl_dlopen=no
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12225 fi
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12227 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12228 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12229 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12230 else
12231
12232 lt_cv_dlopen="dyld"
12233 lt_cv_dlopen_libs=
12234 lt_cv_dlopen_self=yes
12235
12236 fi
12237
12238 ;;
12239
12240 *)
12241 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12242 if test "x$ac_cv_func_shl_load" = xyes; then :
12243 lt_cv_dlopen="shl_load"
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12246 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12247 if ${ac_cv_lib_dld_shl_load+:} false; then :
12248 $as_echo_n "(cached) " >&6
12249 else
12250 ac_check_lib_save_LIBS=$LIBS
12251 LIBS="-ldld $LIBS"
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12254
12255 /* Override any GCC internal prototype to avoid an error.
12256 Use char because int might match the return type of a GCC
12257 builtin and then its argument prototype would still apply. */
12258 #ifdef __cplusplus
12259 extern "C"
12260 #endif
12261 char shl_load ();
12262 int
12263 main ()
12264 {
12265 return shl_load ();
12266 ;
12267 return 0;
12268 }
12269 _ACEOF
12270 if ac_fn_c_try_link "$LINENO"; then :
12271 ac_cv_lib_dld_shl_load=yes
12272 else
12273 ac_cv_lib_dld_shl_load=no
12274 fi
12275 rm -f core conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12280 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12281 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12282 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12283 else
12284 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12285 if test "x$ac_cv_func_dlopen" = xyes; then :
12286 lt_cv_dlopen="dlopen"
12287 else
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12289 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12290 if ${ac_cv_lib_dl_dlopen+:} false; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 ac_check_lib_save_LIBS=$LIBS
12294 LIBS="-ldl $LIBS"
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297
12298 /* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 char dlopen ();
12305 int
12306 main ()
12307 {
12308 return dlopen ();
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 if ac_fn_c_try_link "$LINENO"; then :
12314 ac_cv_lib_dl_dlopen=yes
12315 else
12316 ac_cv_lib_dl_dlopen=no
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12323 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12324 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12328 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12329 if ${ac_cv_lib_svld_dlopen+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-lsvld $LIBS"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12340 #ifdef __cplusplus
12341 extern "C"
12342 #endif
12343 char dlopen ();
12344 int
12345 main ()
12346 {
12347 return dlopen ();
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 ac_cv_lib_svld_dlopen=yes
12354 else
12355 ac_cv_lib_svld_dlopen=no
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12362 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12363 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12365 else
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12367 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12368 if ${ac_cv_lib_dld_dld_link+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 ac_check_lib_save_LIBS=$LIBS
12372 LIBS="-ldld $LIBS"
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12379 #ifdef __cplusplus
12380 extern "C"
12381 #endif
12382 char dld_link ();
12383 int
12384 main ()
12385 {
12386 return dld_link ();
12387 ;
12388 return 0;
12389 }
12390 _ACEOF
12391 if ac_fn_c_try_link "$LINENO"; then :
12392 ac_cv_lib_dld_dld_link=yes
12393 else
12394 ac_cv_lib_dld_dld_link=no
12395 fi
12396 rm -f core conftest.err conftest.$ac_objext \
12397 conftest$ac_exeext conftest.$ac_ext
12398 LIBS=$ac_check_lib_save_LIBS
12399 fi
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12401 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12402 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12403 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12404 fi
12405
12406
12407 fi
12408
12409
12410 fi
12411
12412
12413 fi
12414
12415
12416 fi
12417
12418
12419 fi
12420
12421 ;;
12422 esac
12423
12424 if test "x$lt_cv_dlopen" != xno; then
12425 enable_dlopen=yes
12426 else
12427 enable_dlopen=no
12428 fi
12429
12430 case $lt_cv_dlopen in
12431 dlopen)
12432 save_CPPFLAGS="$CPPFLAGS"
12433 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12434
12435 save_LDFLAGS="$LDFLAGS"
12436 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12437
12438 save_LIBS="$LIBS"
12439 LIBS="$lt_cv_dlopen_libs $LIBS"
12440
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12442 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12443 if ${lt_cv_dlopen_self+:} false; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 if test "$cross_compiling" = yes; then :
12447 lt_cv_dlopen_self=cross
12448 else
12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12450 lt_status=$lt_dlunknown
12451 cat > conftest.$ac_ext <<_LT_EOF
12452 #line 12452 "configure"
12453 #include "confdefs.h"
12454
12455 #if HAVE_DLFCN_H
12456 #include <dlfcn.h>
12457 #endif
12458
12459 #include <stdio.h>
12460
12461 #ifdef RTLD_GLOBAL
12462 # define LT_DLGLOBAL RTLD_GLOBAL
12463 #else
12464 # ifdef DL_GLOBAL
12465 # define LT_DLGLOBAL DL_GLOBAL
12466 # else
12467 # define LT_DLGLOBAL 0
12468 # endif
12469 #endif
12470
12471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12472 find out it does not work in some platform. */
12473 #ifndef LT_DLLAZY_OR_NOW
12474 # ifdef RTLD_LAZY
12475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12476 # else
12477 # ifdef DL_LAZY
12478 # define LT_DLLAZY_OR_NOW DL_LAZY
12479 # else
12480 # ifdef RTLD_NOW
12481 # define LT_DLLAZY_OR_NOW RTLD_NOW
12482 # else
12483 # ifdef DL_NOW
12484 # define LT_DLLAZY_OR_NOW DL_NOW
12485 # else
12486 # define LT_DLLAZY_OR_NOW 0
12487 # endif
12488 # endif
12489 # endif
12490 # endif
12491 #endif
12492
12493 /* When -fvisbility=hidden is used, assume the code has been annotated
12494 correspondingly for the symbols needed. */
12495 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12496 void fnord () __attribute__((visibility("default")));
12497 #endif
12498
12499 void fnord () { int i=42; }
12500 int main ()
12501 {
12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12503 int status = $lt_dlunknown;
12504
12505 if (self)
12506 {
12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12508 else
12509 {
12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12511 else puts (dlerror ());
12512 }
12513 /* dlclose (self); */
12514 }
12515 else
12516 puts (dlerror ());
12517
12518 return status;
12519 }
12520 _LT_EOF
12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12522 (eval $ac_link) 2>&5
12523 ac_status=$?
12524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12526 (./conftest; exit; ) >&5 2>/dev/null
12527 lt_status=$?
12528 case x$lt_status in
12529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12531 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12532 esac
12533 else :
12534 # compilation failed
12535 lt_cv_dlopen_self=no
12536 fi
12537 fi
12538 rm -fr conftest*
12539
12540
12541 fi
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12543 $as_echo "$lt_cv_dlopen_self" >&6; }
12544
12545 if test "x$lt_cv_dlopen_self" = xyes; then
12546 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12548 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12549 if ${lt_cv_dlopen_self_static+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 if test "$cross_compiling" = yes; then :
12553 lt_cv_dlopen_self_static=cross
12554 else
12555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12556 lt_status=$lt_dlunknown
12557 cat > conftest.$ac_ext <<_LT_EOF
12558 #line 12558 "configure"
12559 #include "confdefs.h"
12560
12561 #if HAVE_DLFCN_H
12562 #include <dlfcn.h>
12563 #endif
12564
12565 #include <stdio.h>
12566
12567 #ifdef RTLD_GLOBAL
12568 # define LT_DLGLOBAL RTLD_GLOBAL
12569 #else
12570 # ifdef DL_GLOBAL
12571 # define LT_DLGLOBAL DL_GLOBAL
12572 # else
12573 # define LT_DLGLOBAL 0
12574 # endif
12575 #endif
12576
12577 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12578 find out it does not work in some platform. */
12579 #ifndef LT_DLLAZY_OR_NOW
12580 # ifdef RTLD_LAZY
12581 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12582 # else
12583 # ifdef DL_LAZY
12584 # define LT_DLLAZY_OR_NOW DL_LAZY
12585 # else
12586 # ifdef RTLD_NOW
12587 # define LT_DLLAZY_OR_NOW RTLD_NOW
12588 # else
12589 # ifdef DL_NOW
12590 # define LT_DLLAZY_OR_NOW DL_NOW
12591 # else
12592 # define LT_DLLAZY_OR_NOW 0
12593 # endif
12594 # endif
12595 # endif
12596 # endif
12597 #endif
12598
12599 /* When -fvisbility=hidden is used, assume the code has been annotated
12600 correspondingly for the symbols needed. */
12601 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12602 void fnord () __attribute__((visibility("default")));
12603 #endif
12604
12605 void fnord () { int i=42; }
12606 int main ()
12607 {
12608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12609 int status = $lt_dlunknown;
12610
12611 if (self)
12612 {
12613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12614 else
12615 {
12616 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12617 else puts (dlerror ());
12618 }
12619 /* dlclose (self); */
12620 }
12621 else
12622 puts (dlerror ());
12623
12624 return status;
12625 }
12626 _LT_EOF
12627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12628 (eval $ac_link) 2>&5
12629 ac_status=$?
12630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12631 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12632 (./conftest; exit; ) >&5 2>/dev/null
12633 lt_status=$?
12634 case x$lt_status in
12635 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12636 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12637 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12638 esac
12639 else :
12640 # compilation failed
12641 lt_cv_dlopen_self_static=no
12642 fi
12643 fi
12644 rm -fr conftest*
12645
12646
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12649 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12650 fi
12651
12652 CPPFLAGS="$save_CPPFLAGS"
12653 LDFLAGS="$save_LDFLAGS"
12654 LIBS="$save_LIBS"
12655 ;;
12656 esac
12657
12658 case $lt_cv_dlopen_self in
12659 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12660 *) enable_dlopen_self=unknown ;;
12661 esac
12662
12663 case $lt_cv_dlopen_self_static in
12664 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12665 *) enable_dlopen_self_static=unknown ;;
12666 esac
12667 fi
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685 striplib=
12686 old_striplib=
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12688 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12689 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12690 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12691 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12693 $as_echo "yes" >&6; }
12694 else
12695 # FIXME - insert some real tests, host_os isn't really good enough
12696 case $host_os in
12697 darwin*)
12698 if test -n "$STRIP" ; then
12699 striplib="$STRIP -x"
12700 old_striplib="$STRIP -S"
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12702 $as_echo "yes" >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 fi
12707 ;;
12708 *)
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12711 ;;
12712 esac
12713 fi
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726 # Report which library types will actually be built
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12728 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12730 $as_echo "$can_build_shared" >&6; }
12731
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12733 $as_echo_n "checking whether to build shared libraries... " >&6; }
12734 test "$can_build_shared" = "no" && enable_shared=no
12735
12736 # On AIX, shared libraries and static libraries use the same namespace, and
12737 # are all built from PIC.
12738 case $host_os in
12739 aix3*)
12740 test "$enable_shared" = yes && enable_static=no
12741 if test -n "$RANLIB"; then
12742 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12743 postinstall_cmds='$RANLIB $lib'
12744 fi
12745 ;;
12746
12747 aix[4-9]*)
12748 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12749 test "$enable_shared" = yes && enable_static=no
12750 fi
12751 ;;
12752 esac
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12754 $as_echo "$enable_shared" >&6; }
12755
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12757 $as_echo_n "checking whether to build static libraries... " >&6; }
12758 # Make sure either enable_shared or enable_static is yes.
12759 test "$enable_shared" = yes || enable_static=yes
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12761 $as_echo "$enable_static" >&6; }
12762
12763
12764
12765
12766 fi
12767 ac_ext=c
12768 ac_cpp='$CPP $CPPFLAGS'
12769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12772
12773 CC="$lt_save_CC"
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787 ac_config_commands="$ac_config_commands libtool"
12788
12789
12790
12791
12792 # Only expand once:
12793
12794
12795
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12797 $as_echo_n "checking for library containing bind... " >&6; }
12798 if ${ac_cv_search_bind+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 ac_func_search_save_LIBS=$LIBS
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char bind ();
12812 int
12813 main ()
12814 {
12815 return bind ();
12816 ;
12817 return 0;
12818 }
12819 _ACEOF
12820 for ac_lib in '' socket; do
12821 if test -z "$ac_lib"; then
12822 ac_res="none required"
12823 else
12824 ac_res=-l$ac_lib
12825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12826 fi
12827 if ac_fn_c_try_link "$LINENO"; then :
12828 ac_cv_search_bind=$ac_res
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext
12832 if ${ac_cv_search_bind+:} false; then :
12833 break
12834 fi
12835 done
12836 if ${ac_cv_search_bind+:} false; then :
12837
12838 else
12839 ac_cv_search_bind=no
12840 fi
12841 rm conftest.$ac_ext
12842 LIBS=$ac_func_search_save_LIBS
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
12845 $as_echo "$ac_cv_search_bind" >&6; }
12846 ac_res=$ac_cv_search_bind
12847 if test "$ac_res" != no; then :
12848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12849
12850 fi
12851
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12853 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12854 if ${ac_cv_search_gethostbyname+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 ac_func_search_save_LIBS=$LIBS
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12860
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 char gethostbyname ();
12868 int
12869 main ()
12870 {
12871 return gethostbyname ();
12872 ;
12873 return 0;
12874 }
12875 _ACEOF
12876 for ac_lib in '' nsl; do
12877 if test -z "$ac_lib"; then
12878 ac_res="none required"
12879 else
12880 ac_res=-l$ac_lib
12881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12882 fi
12883 if ac_fn_c_try_link "$LINENO"; then :
12884 ac_cv_search_gethostbyname=$ac_res
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext
12888 if ${ac_cv_search_gethostbyname+:} false; then :
12889 break
12890 fi
12891 done
12892 if ${ac_cv_search_gethostbyname+:} false; then :
12893
12894 else
12895 ac_cv_search_gethostbyname=no
12896 fi
12897 rm conftest.$ac_ext
12898 LIBS=$ac_func_search_save_LIBS
12899 fi
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12901 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12902 ac_res=$ac_cv_search_gethostbyname
12903 if test "$ac_res" != no; then :
12904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12905
12906 fi
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12909 $as_echo_n "checking for library containing fabs... " >&6; }
12910 if ${ac_cv_search_fabs+:} false; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 ac_func_search_save_LIBS=$LIBS
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916
12917 /* Override any GCC internal prototype to avoid an error.
12918 Use char because int might match the return type of a GCC
12919 builtin and then its argument prototype would still apply. */
12920 #ifdef __cplusplus
12921 extern "C"
12922 #endif
12923 char fabs ();
12924 int
12925 main ()
12926 {
12927 return fabs ();
12928 ;
12929 return 0;
12930 }
12931 _ACEOF
12932 for ac_lib in '' m; do
12933 if test -z "$ac_lib"; then
12934 ac_res="none required"
12935 else
12936 ac_res=-l$ac_lib
12937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12938 fi
12939 if ac_fn_c_try_link "$LINENO"; then :
12940 ac_cv_search_fabs=$ac_res
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext
12944 if ${ac_cv_search_fabs+:} false; then :
12945 break
12946 fi
12947 done
12948 if ${ac_cv_search_fabs+:} false; then :
12949
12950 else
12951 ac_cv_search_fabs=no
12952 fi
12953 rm conftest.$ac_ext
12954 LIBS=$ac_func_search_save_LIBS
12955 fi
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12957 $as_echo "$ac_cv_search_fabs" >&6; }
12958 ac_res=$ac_cv_search_fabs
12959 if test "$ac_res" != no; then :
12960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12961
12962 fi
12963
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
12965 $as_echo_n "checking for library containing log2... " >&6; }
12966 if ${ac_cv_search_log2+:} false; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 ac_func_search_save_LIBS=$LIBS
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12976 #ifdef __cplusplus
12977 extern "C"
12978 #endif
12979 char log2 ();
12980 int
12981 main ()
12982 {
12983 return log2 ();
12984 ;
12985 return 0;
12986 }
12987 _ACEOF
12988 for ac_lib in '' m; do
12989 if test -z "$ac_lib"; then
12990 ac_res="none required"
12991 else
12992 ac_res=-l$ac_lib
12993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12994 fi
12995 if ac_fn_c_try_link "$LINENO"; then :
12996 ac_cv_search_log2=$ac_res
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext
13000 if ${ac_cv_search_log2+:} false; then :
13001 break
13002 fi
13003 done
13004 if ${ac_cv_search_log2+:} false; then :
13005
13006 else
13007 ac_cv_search_log2=no
13008 fi
13009 rm conftest.$ac_ext
13010 LIBS=$ac_func_search_save_LIBS
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
13013 $as_echo "$ac_cv_search_log2" >&6; }
13014 ac_res=$ac_cv_search_log2
13015 if test "$ac_res" != no; then :
13016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13017
13018 fi
13019
13020
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13022 $as_echo_n "checking for library containing dlopen... " >&6; }
13023 if ${ac_cv_search_dlopen+:} false; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 ac_func_search_save_LIBS=$LIBS
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029
13030 /* Override any GCC internal prototype to avoid an error.
13031 Use char because int might match the return type of a GCC
13032 builtin and then its argument prototype would still apply. */
13033 #ifdef __cplusplus
13034 extern "C"
13035 #endif
13036 char dlopen ();
13037 int
13038 main ()
13039 {
13040 return dlopen ();
13041 ;
13042 return 0;
13043 }
13044 _ACEOF
13045 for ac_lib in '' dl; do
13046 if test -z "$ac_lib"; then
13047 ac_res="none required"
13048 else
13049 ac_res=-l$ac_lib
13050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13051 fi
13052 if ac_fn_c_try_link "$LINENO"; then :
13053 ac_cv_search_dlopen=$ac_res
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext
13057 if ${ac_cv_search_dlopen+:} false; then :
13058 break
13059 fi
13060 done
13061 if ${ac_cv_search_dlopen+:} false; then :
13062
13063 else
13064 ac_cv_search_dlopen=no
13065 fi
13066 rm conftest.$ac_ext
13067 LIBS=$ac_func_search_save_LIBS
13068 fi
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13070 $as_echo "$ac_cv_search_dlopen" >&6; }
13071 ac_res=$ac_cv_search_dlopen
13072 if test "$ac_res" != no; then :
13073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13074
13075 fi
13076
13077 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13078
13079 pkg_failed=no
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13081 $as_echo_n "checking for sdl2... " >&6; }
13082
13083 if test -n "$SDL_CFLAGS"; then
13084 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13085 elif test -n "$PKG_CONFIG"; then
13086 if test -n "$PKG_CONFIG" && \
13087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13088 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13089 ac_status=$?
13090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13091 test $ac_status = 0; }; then
13092 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13093 test "x$?" != "x0" && pkg_failed=yes
13094 else
13095 pkg_failed=yes
13096 fi
13097 else
13098 pkg_failed=untried
13099 fi
13100 if test -n "$SDL_LIBS"; then
13101 pkg_cv_SDL_LIBS="$SDL_LIBS"
13102 elif test -n "$PKG_CONFIG"; then
13103 if test -n "$PKG_CONFIG" && \
13104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13105 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13106 ac_status=$?
13107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108 test $ac_status = 0; }; then
13109 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13110 test "x$?" != "x0" && pkg_failed=yes
13111 else
13112 pkg_failed=yes
13113 fi
13114 else
13115 pkg_failed=untried
13116 fi
13117
13118 if test $pkg_failed = no; then
13119 pkg_save_LDFLAGS="$LDFLAGS"
13120 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13123
13124 int
13125 main ()
13126 {
13127
13128 ;
13129 return 0;
13130 }
13131 _ACEOF
13132 if ac_fn_c_try_link "$LINENO"; then :
13133
13134 else
13135 pkg_failed=yes
13136 fi
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139 LDFLAGS=$pkg_save_LDFLAGS
13140 fi
13141
13142
13143
13144 if test $pkg_failed = yes; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13147
13148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13149 _pkg_short_errors_supported=yes
13150 else
13151 _pkg_short_errors_supported=no
13152 fi
13153 if test $_pkg_short_errors_supported = yes; then
13154 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13155 else
13156 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13157 fi
13158 # Put the nasty error message in config.log where it belongs
13159 echo "$SDL_PKG_ERRORS" >&5
13160
13161
13162
13163 pkg_failed=no
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13165 $as_echo_n "checking for sdl... " >&6; }
13166
13167 if test -n "$SDL_CFLAGS"; then
13168 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13169 elif test -n "$PKG_CONFIG"; then
13170 if test -n "$PKG_CONFIG" && \
13171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13172 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13173 ac_status=$?
13174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175 test $ac_status = 0; }; then
13176 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13177 test "x$?" != "x0" && pkg_failed=yes
13178 else
13179 pkg_failed=yes
13180 fi
13181 else
13182 pkg_failed=untried
13183 fi
13184 if test -n "$SDL_LIBS"; then
13185 pkg_cv_SDL_LIBS="$SDL_LIBS"
13186 elif test -n "$PKG_CONFIG"; then
13187 if test -n "$PKG_CONFIG" && \
13188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13189 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13190 ac_status=$?
13191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13192 test $ac_status = 0; }; then
13193 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13194 test "x$?" != "x0" && pkg_failed=yes
13195 else
13196 pkg_failed=yes
13197 fi
13198 else
13199 pkg_failed=untried
13200 fi
13201
13202 if test $pkg_failed = no; then
13203 pkg_save_LDFLAGS="$LDFLAGS"
13204 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207
13208 int
13209 main ()
13210 {
13211
13212 ;
13213 return 0;
13214 }
13215 _ACEOF
13216 if ac_fn_c_try_link "$LINENO"; then :
13217
13218 else
13219 pkg_failed=yes
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext \
13222 conftest$ac_exeext conftest.$ac_ext
13223 LDFLAGS=$pkg_save_LDFLAGS
13224 fi
13225
13226
13227
13228 if test $pkg_failed = yes; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13231
13232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13233 _pkg_short_errors_supported=yes
13234 else
13235 _pkg_short_errors_supported=no
13236 fi
13237 if test $_pkg_short_errors_supported = yes; then
13238 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13239 else
13240 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13241 fi
13242 # Put the nasty error message in config.log where it belongs
13243 echo "$SDL_PKG_ERRORS" >&5
13244
13245 :
13246 elif test $pkg_failed = untried; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13249 :
13250 else
13251 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13252 SDL_LIBS=$pkg_cv_SDL_LIBS
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13254 $as_echo "yes" >&6; }
13255 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13256
13257 fi
13258
13259 elif test $pkg_failed = untried; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13262
13263
13264 pkg_failed=no
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13266 $as_echo_n "checking for sdl... " >&6; }
13267
13268 if test -n "$SDL_CFLAGS"; then
13269 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13270 elif test -n "$PKG_CONFIG"; then
13271 if test -n "$PKG_CONFIG" && \
13272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13273 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13274 ac_status=$?
13275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13276 test $ac_status = 0; }; then
13277 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13278 test "x$?" != "x0" && pkg_failed=yes
13279 else
13280 pkg_failed=yes
13281 fi
13282 else
13283 pkg_failed=untried
13284 fi
13285 if test -n "$SDL_LIBS"; then
13286 pkg_cv_SDL_LIBS="$SDL_LIBS"
13287 elif test -n "$PKG_CONFIG"; then
13288 if test -n "$PKG_CONFIG" && \
13289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13290 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13291 ac_status=$?
13292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13293 test $ac_status = 0; }; then
13294 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13295 test "x$?" != "x0" && pkg_failed=yes
13296 else
13297 pkg_failed=yes
13298 fi
13299 else
13300 pkg_failed=untried
13301 fi
13302
13303 if test $pkg_failed = no; then
13304 pkg_save_LDFLAGS="$LDFLAGS"
13305 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308
13309 int
13310 main ()
13311 {
13312
13313 ;
13314 return 0;
13315 }
13316 _ACEOF
13317 if ac_fn_c_try_link "$LINENO"; then :
13318
13319 else
13320 pkg_failed=yes
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13324 LDFLAGS=$pkg_save_LDFLAGS
13325 fi
13326
13327
13328
13329 if test $pkg_failed = yes; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332
13333 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13334 _pkg_short_errors_supported=yes
13335 else
13336 _pkg_short_errors_supported=no
13337 fi
13338 if test $_pkg_short_errors_supported = yes; then
13339 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13340 else
13341 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13342 fi
13343 # Put the nasty error message in config.log where it belongs
13344 echo "$SDL_PKG_ERRORS" >&5
13345
13346 :
13347 elif test $pkg_failed = untried; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13350 :
13351 else
13352 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13353 SDL_LIBS=$pkg_cv_SDL_LIBS
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13355 $as_echo "yes" >&6; }
13356 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13357
13358 fi
13359
13360 else
13361 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13362 SDL_LIBS=$pkg_cv_SDL_LIBS
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13364 $as_echo "yes" >&6; }
13365 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13366
13367 fi
13368 if test -n "$SDL_CFLAGS"; then :
13369 if test "$ac_cv_search_dlopen" = no; then :
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13371 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13372
13373 fi
13374
13375 fi
13376 else
13377 SDL_CFLAGS=
13378 fi
13379 SDL_LIBS=
13380
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13383 $as_echo_n "checking for cygwin... " >&6; }
13384 if ${sim_cv_os_cygwin+:} false; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13389
13390 #ifdef __CYGWIN__
13391 lose
13392 #endif
13393 _ACEOF
13394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13395 $EGREP "lose" >/dev/null 2>&1; then :
13396 sim_cv_os_cygwin=yes
13397 else
13398 sim_cv_os_cygwin=no
13399 fi
13400 rm -f conftest*
13401
13402 fi
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13404 $as_echo "$sim_cv_os_cygwin" >&6; }
13405
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13407 $as_echo_n "checking for library containing tgetent... " >&6; }
13408 if ${ac_cv_search_tgetent+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 ac_func_search_save_LIBS=$LIBS
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414
13415 /* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply. */
13418 #ifdef __cplusplus
13419 extern "C"
13420 #endif
13421 char tgetent ();
13422 int
13423 main ()
13424 {
13425 return tgetent ();
13426 ;
13427 return 0;
13428 }
13429 _ACEOF
13430 for ac_lib in '' termcap tinfo curses ncurses; do
13431 if test -z "$ac_lib"; then
13432 ac_res="none required"
13433 else
13434 ac_res=-l$ac_lib
13435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13436 fi
13437 if ac_fn_c_try_link "$LINENO"; then :
13438 ac_cv_search_tgetent=$ac_res
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext
13442 if ${ac_cv_search_tgetent+:} false; then :
13443 break
13444 fi
13445 done
13446 if ${ac_cv_search_tgetent+:} false; then :
13447
13448 else
13449 ac_cv_search_tgetent=no
13450 fi
13451 rm conftest.$ac_ext
13452 LIBS=$ac_func_search_save_LIBS
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13455 $as_echo "$ac_cv_search_tgetent" >&6; }
13456 ac_res=$ac_cv_search_tgetent
13457 if test "$ac_res" != no; then :
13458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13459 TERMCAP_LIB=$ac_cv_search_tgetent
13460 else
13461 TERMCAP_LIB=""
13462 fi
13463
13464 if test x$sim_cv_os_cygwin = xyes; then
13465 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13466 fi
13467
13468
13469 if test -r ../readline/Makefile; then
13470 READLINE_LIB=../readline/readline/libreadline.a
13471 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13472 else
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13474 $as_echo_n "checking for readline in -lreadline... " >&6; }
13475 if ${ac_cv_lib_readline_readline+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13482
13483 /* Override any GCC internal prototype to avoid an error.
13484 Use char because int might match the return type of a GCC
13485 builtin and then its argument prototype would still apply. */
13486 #ifdef __cplusplus
13487 extern "C"
13488 #endif
13489 char readline ();
13490 int
13491 main ()
13492 {
13493 return readline ();
13494 ;
13495 return 0;
13496 }
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_lib_readline_readline=yes
13500 else
13501 ac_cv_lib_readline_readline=no
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 LIBS=$ac_check_lib_save_LIBS
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13508 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13509 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13510 READLINE_LIB=-lreadline
13511 else
13512 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13513 fi
13514
13515 READLINE_CFLAGS=
13516 fi
13517
13518
13519
13520
13521
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13523 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13524 # Check whether --enable-maintainer-mode was given.
13525 if test "${enable_maintainer_mode+set}" = set; then :
13526 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13527 else
13528 USE_MAINTAINER_MODE=no
13529 fi
13530
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13532 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13533 if test $USE_MAINTAINER_MODE = yes; then
13534 MAINTAINER_MODE_TRUE=
13535 MAINTAINER_MODE_FALSE='#'
13536 else
13537 MAINTAINER_MODE_TRUE='#'
13538 MAINTAINER_MODE_FALSE=
13539 fi
13540
13541 MAINT=$MAINTAINER_MODE_TRUE
13542
13543
13544 am__api_version='1.15'
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13547 $as_echo_n "checking whether build environment is sane... " >&6; }
13548 # Reject unsafe characters in $srcdir or the absolute working directory
13549 # name. Accept space and tab only in the latter.
13550 am_lf='
13551 '
13552 case `pwd` in
13553 *[\\\"\#\$\&\'\`$am_lf]*)
13554 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13555 esac
13556 case $srcdir in
13557 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13558 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13559 esac
13560
13561 # Do 'set' in a subshell so we don't clobber the current shell's
13562 # arguments. Must try -L first in case configure is actually a
13563 # symlink; some systems play weird games with the mod time of symlinks
13564 # (eg FreeBSD returns the mod time of the symlink's containing
13565 # directory).
13566 if (
13567 am_has_slept=no
13568 for am_try in 1 2; do
13569 echo "timestamp, slept: $am_has_slept" > conftest.file
13570 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13571 if test "$*" = "X"; then
13572 # -L didn't work.
13573 set X `ls -t "$srcdir/configure" conftest.file`
13574 fi
13575 if test "$*" != "X $srcdir/configure conftest.file" \
13576 && test "$*" != "X conftest.file $srcdir/configure"; then
13577
13578 # If neither matched, then we have a broken ls. This can happen
13579 # if, for instance, CONFIG_SHELL is bash and it inherits a
13580 # broken ls alias from the environment. This has actually
13581 # happened. Such a system could not be considered "sane".
13582 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13583 alias in your environment" "$LINENO" 5
13584 fi
13585 if test "$2" = conftest.file || test $am_try -eq 2; then
13586 break
13587 fi
13588 # Just in case.
13589 sleep 1
13590 am_has_slept=yes
13591 done
13592 test "$2" = conftest.file
13593 )
13594 then
13595 # Ok.
13596 :
13597 else
13598 as_fn_error $? "newly created file is older than distributed files!
13599 Check your system clock" "$LINENO" 5
13600 fi
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13602 $as_echo "yes" >&6; }
13603 # If we didn't sleep, we still need to ensure time stamps of config.status and
13604 # generated files are strictly newer.
13605 am_sleep_pid=
13606 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13607 ( sleep 1 ) &
13608 am_sleep_pid=$!
13609 fi
13610
13611 rm -f conftest.file
13612
13613 if test x"${MISSING+set}" != xset; then
13614 case $am_aux_dir in
13615 *\ * | *\ *)
13616 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13617 *)
13618 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13619 esac
13620 fi
13621 # Use eval to expand $SHELL
13622 if eval "$MISSING --is-lightweight"; then
13623 am_missing_run="$MISSING "
13624 else
13625 am_missing_run=
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13627 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13628 fi
13629
13630 if test x"${install_sh+set}" != xset; then
13631 case $am_aux_dir in
13632 *\ * | *\ *)
13633 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13634 *)
13635 install_sh="\${SHELL} $am_aux_dir/install-sh"
13636 esac
13637 fi
13638
13639 # Installed binaries are usually stripped using 'strip' when the user
13640 # run "make install-strip". However 'strip' might not be the right
13641 # tool to use in cross-compilation environments, therefore Automake
13642 # will honor the 'STRIP' environment variable to overrule this program.
13643 if test "$cross_compiling" != no; then
13644 if test -n "$ac_tool_prefix"; then
13645 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13646 set dummy ${ac_tool_prefix}strip; ac_word=$2
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13648 $as_echo_n "checking for $ac_word... " >&6; }
13649 if ${ac_cv_prog_STRIP+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 if test -n "$STRIP"; then
13653 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13654 else
13655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656 for as_dir in $PATH
13657 do
13658 IFS=$as_save_IFS
13659 test -z "$as_dir" && as_dir=.
13660 for ac_exec_ext in '' $ac_executable_extensions; do
13661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13662 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13664 break 2
13665 fi
13666 done
13667 done
13668 IFS=$as_save_IFS
13669
13670 fi
13671 fi
13672 STRIP=$ac_cv_prog_STRIP
13673 if test -n "$STRIP"; then
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13675 $as_echo "$STRIP" >&6; }
13676 else
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13678 $as_echo "no" >&6; }
13679 fi
13680
13681
13682 fi
13683 if test -z "$ac_cv_prog_STRIP"; then
13684 ac_ct_STRIP=$STRIP
13685 # Extract the first word of "strip", so it can be a program name with args.
13686 set dummy strip; ac_word=$2
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13688 $as_echo_n "checking for $ac_word... " >&6; }
13689 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 if test -n "$ac_ct_STRIP"; then
13693 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13694 else
13695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13696 for as_dir in $PATH
13697 do
13698 IFS=$as_save_IFS
13699 test -z "$as_dir" && as_dir=.
13700 for ac_exec_ext in '' $ac_executable_extensions; do
13701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13702 ac_cv_prog_ac_ct_STRIP="strip"
13703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13704 break 2
13705 fi
13706 done
13707 done
13708 IFS=$as_save_IFS
13709
13710 fi
13711 fi
13712 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13713 if test -n "$ac_ct_STRIP"; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13715 $as_echo "$ac_ct_STRIP" >&6; }
13716 else
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 $as_echo "no" >&6; }
13719 fi
13720
13721 if test "x$ac_ct_STRIP" = x; then
13722 STRIP=":"
13723 else
13724 case $cross_compiling:$ac_tool_warned in
13725 yes:)
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13728 ac_tool_warned=yes ;;
13729 esac
13730 STRIP=$ac_ct_STRIP
13731 fi
13732 else
13733 STRIP="$ac_cv_prog_STRIP"
13734 fi
13735
13736 fi
13737 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13738
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13740 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13741 if test -z "$MKDIR_P"; then
13742 if ${ac_cv_path_mkdir+:} false; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13747 do
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_prog in mkdir gmkdir; do
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13753 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13754 'mkdir (GNU coreutils) '* | \
13755 'mkdir (coreutils) '* | \
13756 'mkdir (fileutils) '4.1*)
13757 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13758 break 3;;
13759 esac
13760 done
13761 done
13762 done
13763 IFS=$as_save_IFS
13764
13765 fi
13766
13767 test -d ./--version && rmdir ./--version
13768 if test "${ac_cv_path_mkdir+set}" = set; then
13769 MKDIR_P="$ac_cv_path_mkdir -p"
13770 else
13771 # As a last resort, use the slow shell script. Don't cache a
13772 # value for MKDIR_P within a source directory, because that will
13773 # break other packages using the cache if that directory is
13774 # removed, or if the value is a relative name.
13775 MKDIR_P="$ac_install_sh -d"
13776 fi
13777 fi
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13779 $as_echo "$MKDIR_P" >&6; }
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13782 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13783 set x ${MAKE-make}
13784 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13785 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 cat >conftest.make <<\_ACEOF
13789 SHELL = /bin/sh
13790 all:
13791 @echo '@@@%%%=$(MAKE)=@@@%%%'
13792 _ACEOF
13793 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13794 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13795 *@@@%%%=?*=@@@%%%*)
13796 eval ac_cv_prog_make_${ac_make}_set=yes;;
13797 *)
13798 eval ac_cv_prog_make_${ac_make}_set=no;;
13799 esac
13800 rm -f conftest.make
13801 fi
13802 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13804 $as_echo "yes" >&6; }
13805 SET_MAKE=
13806 else
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809 SET_MAKE="MAKE=${MAKE-make}"
13810 fi
13811
13812 rm -rf .tst 2>/dev/null
13813 mkdir .tst 2>/dev/null
13814 if test -d .tst; then
13815 am__leading_dot=.
13816 else
13817 am__leading_dot=_
13818 fi
13819 rmdir .tst 2>/dev/null
13820
13821 DEPDIR="${am__leading_dot}deps"
13822
13823 ac_config_commands="$ac_config_commands depfiles"
13824
13825
13826 am_make=${MAKE-make}
13827 cat > confinc << 'END'
13828 am__doit:
13829 @echo this is the am__doit target
13830 .PHONY: am__doit
13831 END
13832 # If we don't find an include directive, just comment out the code.
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13834 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13835 am__include="#"
13836 am__quote=
13837 _am_result=none
13838 # First try GNU make style include.
13839 echo "include confinc" > confmf
13840 # Ignore all kinds of additional output from 'make'.
13841 case `$am_make -s -f confmf 2> /dev/null` in #(
13842 *the\ am__doit\ target*)
13843 am__include=include
13844 am__quote=
13845 _am_result=GNU
13846 ;;
13847 esac
13848 # Now try BSD make style include.
13849 if test "$am__include" = "#"; then
13850 echo '.include "confinc"' > confmf
13851 case `$am_make -s -f confmf 2> /dev/null` in #(
13852 *the\ am__doit\ target*)
13853 am__include=.include
13854 am__quote="\""
13855 _am_result=BSD
13856 ;;
13857 esac
13858 fi
13859
13860
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13862 $as_echo "$_am_result" >&6; }
13863 rm -f confinc confmf
13864
13865 # Check whether --enable-dependency-tracking was given.
13866 if test "${enable_dependency_tracking+set}" = set; then :
13867 enableval=$enable_dependency_tracking;
13868 fi
13869
13870 if test "x$enable_dependency_tracking" != xno; then
13871 am_depcomp="$ac_aux_dir/depcomp"
13872 AMDEPBACKSLASH='\'
13873 am__nodep='_no'
13874 fi
13875 if test "x$enable_dependency_tracking" != xno; then
13876 AMDEP_TRUE=
13877 AMDEP_FALSE='#'
13878 else
13879 AMDEP_TRUE='#'
13880 AMDEP_FALSE=
13881 fi
13882
13883
13884 # Check whether --enable-silent-rules was given.
13885 if test "${enable_silent_rules+set}" = set; then :
13886 enableval=$enable_silent_rules;
13887 fi
13888
13889 case $enable_silent_rules in # (((
13890 yes) AM_DEFAULT_VERBOSITY=0;;
13891 no) AM_DEFAULT_VERBOSITY=1;;
13892 *) AM_DEFAULT_VERBOSITY=1;;
13893 esac
13894 am_make=${MAKE-make}
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13896 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13897 if ${am_cv_make_support_nested_variables+:} false; then :
13898 $as_echo_n "(cached) " >&6
13899 else
13900 if $as_echo 'TRUE=$(BAR$(V))
13901 BAR0=false
13902 BAR1=true
13903 V=1
13904 am__doit:
13905 @$(TRUE)
13906 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13907 am_cv_make_support_nested_variables=yes
13908 else
13909 am_cv_make_support_nested_variables=no
13910 fi
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13913 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13914 if test $am_cv_make_support_nested_variables = yes; then
13915 AM_V='$(V)'
13916 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13917 else
13918 AM_V=$AM_DEFAULT_VERBOSITY
13919 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13920 fi
13921 AM_BACKSLASH='\'
13922
13923 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13924 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13925 # is not polluted with repeated "-I."
13926 am__isrc=' -I$(srcdir)'
13927 # test to see if srcdir already configured
13928 if test -f $srcdir/config.status; then
13929 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13930 fi
13931 fi
13932
13933 # test whether we have cygpath
13934 if test -z "$CYGPATH_W"; then
13935 if (cygpath --version) >/dev/null 2>/dev/null; then
13936 CYGPATH_W='cygpath -w'
13937 else
13938 CYGPATH_W=echo
13939 fi
13940 fi
13941
13942
13943 # Define the identity of the package.
13944 PACKAGE='sim'
13945 VERSION='0'
13946
13947
13948 cat >>confdefs.h <<_ACEOF
13949 #define PACKAGE "$PACKAGE"
13950 _ACEOF
13951
13952
13953 cat >>confdefs.h <<_ACEOF
13954 #define VERSION "$VERSION"
13955 _ACEOF
13956
13957 # Some tools Automake needs.
13958
13959 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13960
13961
13962 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13963
13964
13965 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13966
13967
13968 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13969
13970
13971 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13972
13973 # For better backward compatibility. To be removed once Automake 1.9.x
13974 # dies out for good. For more background, see:
13975 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13976 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13977 mkdir_p='$(MKDIR_P)'
13978
13979 # We need awk for the "check" target (and possibly the TAP driver). The
13980 # system "awk" is bad on some platforms.
13981 # Always define AMTAR for backward compatibility. Yes, it's still used
13982 # in the wild :-( We should find a proper way to deprecate it ...
13983 AMTAR='$${TAR-tar}'
13984
13985
13986 # We'll loop over all known methods to create a tar archive until one works.
13987 _am_tools='gnutar pax cpio none'
13988
13989 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13990
13991
13992
13993
13994
13995 depcc="$CC" am_compiler_list=
13996
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13998 $as_echo_n "checking dependency style of $depcc... " >&6; }
13999 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14003 # We make a subdir and do the tests there. Otherwise we can end up
14004 # making bogus files that we don't know about and never remove. For
14005 # instance it was reported that on HP-UX the gcc test will end up
14006 # making a dummy file named 'D' -- because '-MD' means "put the output
14007 # in D".
14008 rm -rf conftest.dir
14009 mkdir conftest.dir
14010 # Copy depcomp to subdir because otherwise we won't find it if we're
14011 # using a relative directory.
14012 cp "$am_depcomp" conftest.dir
14013 cd conftest.dir
14014 # We will build objects and dependencies in a subdirectory because
14015 # it helps to detect inapplicable dependency modes. For instance
14016 # both Tru64's cc and ICC support -MD to output dependencies as a
14017 # side effect of compilation, but ICC will put the dependencies in
14018 # the current directory while Tru64 will put them in the object
14019 # directory.
14020 mkdir sub
14021
14022 am_cv_CC_dependencies_compiler_type=none
14023 if test "$am_compiler_list" = ""; then
14024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14025 fi
14026 am__universal=false
14027 case " $depcc " in #(
14028 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14029 esac
14030
14031 for depmode in $am_compiler_list; do
14032 # Setup a source with many dependencies, because some compilers
14033 # like to wrap large dependency lists on column 80 (with \), and
14034 # we should not choose a depcomp mode which is confused by this.
14035 #
14036 # We need to recreate these files for each test, as the compiler may
14037 # overwrite some of them when testing with obscure command lines.
14038 # This happens at least with the AIX C compiler.
14039 : > sub/conftest.c
14040 for i in 1 2 3 4 5 6; do
14041 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14042 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14043 # Solaris 10 /bin/sh.
14044 echo '/* dummy */' > sub/conftst$i.h
14045 done
14046 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14047
14048 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14049 # mode. It turns out that the SunPro C++ compiler does not properly
14050 # handle '-M -o', and we need to detect this. Also, some Intel
14051 # versions had trouble with output in subdirs.
14052 am__obj=sub/conftest.${OBJEXT-o}
14053 am__minus_obj="-o $am__obj"
14054 case $depmode in
14055 gcc)
14056 # This depmode causes a compiler race in universal mode.
14057 test "$am__universal" = false || continue
14058 ;;
14059 nosideeffect)
14060 # After this tag, mechanisms are not by side-effect, so they'll
14061 # only be used when explicitly requested.
14062 if test "x$enable_dependency_tracking" = xyes; then
14063 continue
14064 else
14065 break
14066 fi
14067 ;;
14068 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14069 # This compiler won't grok '-c -o', but also, the minuso test has
14070 # not run yet. These depmodes are late enough in the game, and
14071 # so weak that their functioning should not be impacted.
14072 am__obj=conftest.${OBJEXT-o}
14073 am__minus_obj=
14074 ;;
14075 none) break ;;
14076 esac
14077 if depmode=$depmode \
14078 source=sub/conftest.c object=$am__obj \
14079 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14080 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14081 >/dev/null 2>conftest.err &&
14082 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14083 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14084 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14085 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14086 # icc doesn't choke on unknown options, it will just issue warnings
14087 # or remarks (even with -Werror). So we grep stderr for any message
14088 # that says an option was ignored or not supported.
14089 # When given -MP, icc 7.0 and 7.1 complain thusly:
14090 # icc: Command line warning: ignoring option '-M'; no argument required
14091 # The diagnosis changed in icc 8.0:
14092 # icc: Command line remark: option '-MP' not supported
14093 if (grep 'ignoring option' conftest.err ||
14094 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14095 am_cv_CC_dependencies_compiler_type=$depmode
14096 break
14097 fi
14098 fi
14099 done
14100
14101 cd ..
14102 rm -rf conftest.dir
14103 else
14104 am_cv_CC_dependencies_compiler_type=none
14105 fi
14106
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14109 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14110 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14111
14112 if
14113 test "x$enable_dependency_tracking" != xno \
14114 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14115 am__fastdepCC_TRUE=
14116 am__fastdepCC_FALSE='#'
14117 else
14118 am__fastdepCC_TRUE='#'
14119 am__fastdepCC_FALSE=
14120 fi
14121
14122
14123
14124 # POSIX will say in a future version that running "rm -f" with no argument
14125 # is OK; and we want to be able to make that assumption in our Makefile
14126 # recipes. So use an aggressive probe to check that the usage we want is
14127 # actually supported "in the wild" to an acceptable degree.
14128 # See automake bug#10828.
14129 # To make any issue more visible, cause the running configure to be aborted
14130 # by default if the 'rm' program in use doesn't match our expectations; the
14131 # user can still override this though.
14132 if rm -f && rm -fr && rm -rf; then : OK; else
14133 cat >&2 <<'END'
14134 Oops!
14135
14136 Your 'rm' program seems unable to run without file operands specified
14137 on the command line, even when the '-f' option is present. This is contrary
14138 to the behaviour of most rm programs out there, and not conforming with
14139 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14140
14141 Please tell bug-automake@gnu.org about your system, including the value
14142 of your $PATH and any error possibly output before this message. This
14143 can help us improve future automake versions.
14144
14145 END
14146 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14147 echo 'Configuration will proceed anyway, since you have set the' >&2
14148 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14149 echo >&2
14150 else
14151 cat >&2 <<'END'
14152 Aborting the configuration process, to ensure you take notice of the issue.
14153
14154 You can download and install GNU coreutils to get an 'rm' implementation
14155 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14156
14157 If you want to complete the configuration process using your problematic
14158 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14159 to "yes", and re-run configure.
14160
14161 END
14162 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14163 fi
14164 fi
14165
14166 # Check whether --enable-silent-rules was given.
14167 if test "${enable_silent_rules+set}" = set; then :
14168 enableval=$enable_silent_rules;
14169 fi
14170
14171 case $enable_silent_rules in # (((
14172 yes) AM_DEFAULT_VERBOSITY=0;;
14173 no) AM_DEFAULT_VERBOSITY=1;;
14174 *) AM_DEFAULT_VERBOSITY=0;;
14175 esac
14176 am_make=${MAKE-make}
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14178 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14179 if ${am_cv_make_support_nested_variables+:} false; then :
14180 $as_echo_n "(cached) " >&6
14181 else
14182 if $as_echo 'TRUE=$(BAR$(V))
14183 BAR0=false
14184 BAR1=true
14185 V=1
14186 am__doit:
14187 @$(TRUE)
14188 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14189 am_cv_make_support_nested_variables=yes
14190 else
14191 am_cv_make_support_nested_variables=no
14192 fi
14193 fi
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14195 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14196 if test $am_cv_make_support_nested_variables = yes; then
14197 AM_V='$(V)'
14198 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14199 else
14200 AM_V=$AM_DEFAULT_VERBOSITY
14201 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14202 fi
14203 AM_BACKSLASH='\'
14204
14205
14206 # If a cpu ever has more than one simulator to choose from, use
14207 # --enable-sim=... to choose.
14208 # Check whether --enable-sim was given.
14209 if test "${enable_sim+set}" = set; then :
14210 enableval=$enable_sim; case "${enableval}" in
14211 yes | no) ;;
14212 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14213 esac
14214 fi
14215
14216
14217 # Check whether --enable-example-sims was given.
14218 if test "${enable_example_sims+set}" = set; then :
14219 enableval=$enable_example_sims;
14220 fi
14221
14222
14223 # Check whether --enable-targets was given.
14224 if test "${enable_targets+set}" = set; then :
14225 enableval=$enable_targets; case "${enableval}" in
14226 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14227 ;;
14228 no) enable_targets= ;;
14229 *) enable_targets=$enableval ;;
14230 esac
14231 fi
14232
14233
14234 SIM_PRIMARY_TARGET=
14235
14236
14237 SIM_SUBDIRS=
14238
14239
14240 SIM_ENABLED_ARCHES=
14241
14242
14243 SIM_COMMON_BUILD_TRUE=
14244 SIM_COMMON_BUILD_FALSE='#'
14245
14246
14247
14248 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
14249
14250
14251
14252
14253 if test "${enable_sim}" != no; then
14254 sim_igen=no
14255 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14256 do
14257 sim_enable_arch_aarch64=false
14258 case "${targ}" in
14259 all|aarch64*-*-*)
14260 if test "${targ}" = "${target}"; then
14261 SIM_PRIMARY_TARGET=aarch64
14262 fi
14263 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14264 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
14265
14266 ac_config_commands="$ac_config_commands aarch64/Makefile"
14267
14268 as_fn_append SIM_SUBDIRS " aarch64"
14269
14270 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14271
14272 ac_config_commands="$ac_config_commands depdir-aarch64"
14273
14274
14275 sim_enable_arch_aarch64=true
14276
14277 ;;
14278 esac
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14280 $as_echo_n "checking where to find the target cc... " >&6; }
14281 if test "x${build}" != "x${host}" ; then
14282 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14283 # We already found the complete path
14284 ac_dir=`dirname $CC_FOR_TARGET`
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14286 $as_echo "pre-installed in $ac_dir" >&6; }
14287 else
14288 # Canadian cross, just use what we found
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14290 $as_echo "pre-installed" >&6; }
14291 fi
14292 else
14293 ok=yes
14294 case " ${configdirs} " in
14295 *" ${target_alias}-gcc "*) ;;
14296 *) ok=no ;;
14297 esac
14298
14299 if test $ok = yes; then
14300 # An in-tree tool is available and we can use it
14301 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14303 $as_echo "just compiled" >&6; }
14304 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14305 # We already found the complete path
14306 ac_dir=`dirname $CC_FOR_TARGET`
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14308 $as_echo "pre-installed in $ac_dir" >&6; }
14309 elif test "x$target" = "x$host"; then
14310 # We can use an host tool
14311 CC_FOR_TARGET='$(CC)'
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14313 $as_echo "host tool" >&6; }
14314 else
14315 # We need a cross tool
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14317 $as_echo "pre-installed" >&6; }
14318 fi
14319 fi
14320
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14322 $as_echo_n "checking where to find the target as... " >&6; }
14323 if test "x${build}" != "x${host}" ; then
14324 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14325 # We already found the complete path
14326 ac_dir=`dirname $AS_FOR_TARGET`
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14328 $as_echo "pre-installed in $ac_dir" >&6; }
14329 else
14330 # Canadian cross, just use what we found
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14332 $as_echo "pre-installed" >&6; }
14333 fi
14334 else
14335 ok=yes
14336 case " ${configdirs} " in
14337 *" \$(abs_builddir) "*) ;;
14338 *) ok=no ;;
14339 esac
14340
14341 if test $ok = yes; then
14342 # An in-tree tool is available and we can use it
14343 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14345 $as_echo "just compiled" >&6; }
14346 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14347 # We already found the complete path
14348 ac_dir=`dirname $AS_FOR_TARGET`
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14350 $as_echo "pre-installed in $ac_dir" >&6; }
14351 elif test "x$target" = "x$host"; then
14352 # We can use an host tool
14353 AS_FOR_TARGET='$(AS)'
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14355 $as_echo "host tool" >&6; }
14356 else
14357 # We need a cross tool
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14359 $as_echo "pre-installed" >&6; }
14360 fi
14361 fi
14362
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14364 $as_echo_n "checking where to find the target ld... " >&6; }
14365 if test "x${build}" != "x${host}" ; then
14366 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14367 # We already found the complete path
14368 ac_dir=`dirname $LD_FOR_TARGET`
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14370 $as_echo "pre-installed in $ac_dir" >&6; }
14371 else
14372 # Canadian cross, just use what we found
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14374 $as_echo "pre-installed" >&6; }
14375 fi
14376 else
14377 ok=yes
14378 case " ${configdirs} " in
14379 *" \$(abs_builddir) "*) ;;
14380 *) ok=no ;;
14381 esac
14382
14383 if test $ok = yes; then
14384 # An in-tree tool is available and we can use it
14385 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14387 $as_echo "just compiled" >&6; }
14388 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14389 # We already found the complete path
14390 ac_dir=`dirname $LD_FOR_TARGET`
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14392 $as_echo "pre-installed in $ac_dir" >&6; }
14393 elif test "x$target" = "x$host"; then
14394 # We can use an host tool
14395 LD_FOR_TARGET='$(LD)'
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14397 $as_echo "host tool" >&6; }
14398 else
14399 # We need a cross tool
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14401 $as_echo "pre-installed" >&6; }
14402 fi
14403 fi
14404
14405
14406
14407
14408
14409
14410 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14411 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14412 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14413 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14414
14415 fi
14416
14417 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14418
14419 if ${sim_enable_arch_aarch64}; then
14420 SIM_ENABLE_ARCH_aarch64_TRUE=
14421 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14422 else
14423 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14424 SIM_ENABLE_ARCH_aarch64_FALSE=
14425 fi
14426
14427
14428 sim_enable_arch_arm=false
14429 case "${targ}" in
14430 all|arm*-*-*)
14431 if test "${targ}" = "${target}"; then
14432 SIM_PRIMARY_TARGET=arm
14433 fi
14434 as_fn_append SIM_ENABLED_ARCHES " arm"
14435 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
14436
14437 ac_config_commands="$ac_config_commands arm/Makefile"
14438
14439 as_fn_append SIM_SUBDIRS " arm"
14440
14441 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14442
14443 ac_config_commands="$ac_config_commands depdir-arm"
14444
14445
14446 sim_enable_arch_arm=true
14447
14448 ;;
14449 esac
14450
14451
14452
14453
14454 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14455 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14456 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14457 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14458
14459 fi
14460
14461 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14462
14463 if ${sim_enable_arch_arm}; then
14464 SIM_ENABLE_ARCH_arm_TRUE=
14465 SIM_ENABLE_ARCH_arm_FALSE='#'
14466 else
14467 SIM_ENABLE_ARCH_arm_TRUE='#'
14468 SIM_ENABLE_ARCH_arm_FALSE=
14469 fi
14470
14471
14472 sim_enable_arch_avr=false
14473 case "${targ}" in
14474 all|avr*-*-*)
14475 if test "${targ}" = "${target}"; then
14476 SIM_PRIMARY_TARGET=avr
14477 fi
14478 as_fn_append SIM_ENABLED_ARCHES " avr"
14479 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
14480
14481 ac_config_commands="$ac_config_commands avr/Makefile"
14482
14483 as_fn_append SIM_SUBDIRS " avr"
14484
14485 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14486
14487 ac_config_commands="$ac_config_commands depdir-avr"
14488
14489
14490 sim_enable_arch_avr=true
14491
14492 ;;
14493 esac
14494
14495
14496
14497
14498 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14499 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14500 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14501 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14502
14503 fi
14504
14505 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14506
14507 if ${sim_enable_arch_avr}; then
14508 SIM_ENABLE_ARCH_avr_TRUE=
14509 SIM_ENABLE_ARCH_avr_FALSE='#'
14510 else
14511 SIM_ENABLE_ARCH_avr_TRUE='#'
14512 SIM_ENABLE_ARCH_avr_FALSE=
14513 fi
14514
14515
14516 sim_enable_arch_bfin=false
14517 case "${targ}" in
14518 all|bfin-*-*)
14519 if test "${targ}" = "${target}"; then
14520 SIM_PRIMARY_TARGET=bfin
14521 fi
14522 as_fn_append SIM_ENABLED_ARCHES " bfin"
14523 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
14524
14525 ac_config_commands="$ac_config_commands bfin/Makefile"
14526
14527 as_fn_append SIM_SUBDIRS " bfin"
14528
14529 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14530
14531 ac_config_commands="$ac_config_commands depdir-bfin"
14532
14533
14534 sim_enable_arch_bfin=true
14535
14536 ;;
14537 esac
14538
14539
14540
14541
14542 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14543 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14544 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14545 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14546
14547 fi
14548
14549 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14550
14551 if ${sim_enable_arch_bfin}; then
14552 SIM_ENABLE_ARCH_bfin_TRUE=
14553 SIM_ENABLE_ARCH_bfin_FALSE='#'
14554 else
14555 SIM_ENABLE_ARCH_bfin_TRUE='#'
14556 SIM_ENABLE_ARCH_bfin_FALSE=
14557 fi
14558
14559
14560 sim_enable_arch_bpf=false
14561 case "${targ}" in
14562 all|bpf-*-*)
14563 if test "${targ}" = "${target}"; then
14564 SIM_PRIMARY_TARGET=bpf
14565 fi
14566 as_fn_append SIM_ENABLED_ARCHES " bpf"
14567 ac_config_files="$ac_config_files bpf/Makefile.sim:bpf/Makefile.in"
14568
14569 ac_config_commands="$ac_config_commands bpf/Makefile"
14570
14571 as_fn_append SIM_SUBDIRS " bpf"
14572
14573 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14574
14575 ac_config_commands="$ac_config_commands depdir-bpf"
14576
14577
14578 sim_enable_arch_bpf=true
14579
14580 ;;
14581 esac
14582
14583
14584
14585
14586 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14587 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14588 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14589 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14590
14591 fi
14592
14593 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14594
14595 if ${sim_enable_arch_bpf}; then
14596 SIM_ENABLE_ARCH_bpf_TRUE=
14597 SIM_ENABLE_ARCH_bpf_FALSE='#'
14598 else
14599 SIM_ENABLE_ARCH_bpf_TRUE='#'
14600 SIM_ENABLE_ARCH_bpf_FALSE=
14601 fi
14602
14603
14604 sim_enable_arch_cr16=false
14605 case "${targ}" in
14606 all|cr16*-*-*)
14607 if test "${targ}" = "${target}"; then
14608 SIM_PRIMARY_TARGET=cr16
14609 fi
14610 as_fn_append SIM_ENABLED_ARCHES " cr16"
14611 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
14612
14613 ac_config_commands="$ac_config_commands cr16/Makefile"
14614
14615 as_fn_append SIM_SUBDIRS " cr16"
14616
14617 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14618
14619 ac_config_commands="$ac_config_commands depdir-cr16"
14620
14621
14622 sim_enable_arch_cr16=true
14623
14624 ;;
14625 esac
14626
14627
14628
14629
14630 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14631 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14632 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14633 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14634
14635 fi
14636
14637 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14638
14639 if ${sim_enable_arch_cr16}; then
14640 SIM_ENABLE_ARCH_cr16_TRUE=
14641 SIM_ENABLE_ARCH_cr16_FALSE='#'
14642 else
14643 SIM_ENABLE_ARCH_cr16_TRUE='#'
14644 SIM_ENABLE_ARCH_cr16_FALSE=
14645 fi
14646
14647
14648 sim_enable_arch_cris=false
14649 case "${targ}" in
14650 all|cris-*-* | crisv32-*-*)
14651 if test "${targ}" = "${target}"; then
14652 SIM_PRIMARY_TARGET=cris
14653 fi
14654 as_fn_append SIM_ENABLED_ARCHES " cris"
14655 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
14656
14657 ac_config_commands="$ac_config_commands cris/Makefile"
14658
14659 as_fn_append SIM_SUBDIRS " cris"
14660
14661 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14662
14663 ac_config_commands="$ac_config_commands depdir-cris"
14664
14665
14666 sim_enable_arch_cris=true
14667
14668 ;;
14669 esac
14670
14671
14672
14673
14674 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14675 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14676 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14677 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14678
14679 fi
14680
14681 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14682
14683 if ${sim_enable_arch_cris}; then
14684 SIM_ENABLE_ARCH_cris_TRUE=
14685 SIM_ENABLE_ARCH_cris_FALSE='#'
14686 else
14687 SIM_ENABLE_ARCH_cris_TRUE='#'
14688 SIM_ENABLE_ARCH_cris_FALSE=
14689 fi
14690
14691
14692 sim_enable_arch_d10v=false
14693 case "${targ}" in
14694 all|d10v-*-*)
14695 if test "${targ}" = "${target}"; then
14696 SIM_PRIMARY_TARGET=d10v
14697 fi
14698 as_fn_append SIM_ENABLED_ARCHES " d10v"
14699 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
14700
14701 ac_config_commands="$ac_config_commands d10v/Makefile"
14702
14703 as_fn_append SIM_SUBDIRS " d10v"
14704
14705 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14706
14707 ac_config_commands="$ac_config_commands depdir-d10v"
14708
14709
14710 sim_enable_arch_d10v=true
14711
14712 ;;
14713 esac
14714
14715
14716
14717
14718 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14719 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14720 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14721 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14722
14723 fi
14724
14725 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14726
14727 if ${sim_enable_arch_d10v}; then
14728 SIM_ENABLE_ARCH_d10v_TRUE=
14729 SIM_ENABLE_ARCH_d10v_FALSE='#'
14730 else
14731 SIM_ENABLE_ARCH_d10v_TRUE='#'
14732 SIM_ENABLE_ARCH_d10v_FALSE=
14733 fi
14734
14735
14736 sim_enable_arch_frv=false
14737 case "${targ}" in
14738 all|frv-*-*)
14739 if test "${targ}" = "${target}"; then
14740 SIM_PRIMARY_TARGET=frv
14741 fi
14742 as_fn_append SIM_ENABLED_ARCHES " frv"
14743 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
14744
14745 ac_config_commands="$ac_config_commands frv/Makefile"
14746
14747 as_fn_append SIM_SUBDIRS " frv"
14748
14749 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14750
14751 ac_config_commands="$ac_config_commands depdir-frv"
14752
14753
14754 sim_enable_arch_frv=true
14755
14756 ;;
14757 esac
14758
14759
14760
14761
14762 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14763 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14764 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14765 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14766
14767 fi
14768
14769 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14770
14771 if ${sim_enable_arch_frv}; then
14772 SIM_ENABLE_ARCH_frv_TRUE=
14773 SIM_ENABLE_ARCH_frv_FALSE='#'
14774 else
14775 SIM_ENABLE_ARCH_frv_TRUE='#'
14776 SIM_ENABLE_ARCH_frv_FALSE=
14777 fi
14778
14779
14780 sim_enable_arch_ft32=false
14781 case "${targ}" in
14782 all|ft32-*-*)
14783 if test "${targ}" = "${target}"; then
14784 SIM_PRIMARY_TARGET=ft32
14785 fi
14786 as_fn_append SIM_ENABLED_ARCHES " ft32"
14787 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
14788
14789 ac_config_commands="$ac_config_commands ft32/Makefile"
14790
14791 as_fn_append SIM_SUBDIRS " ft32"
14792
14793 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14794
14795 ac_config_commands="$ac_config_commands depdir-ft32"
14796
14797
14798 sim_enable_arch_ft32=true
14799
14800 ;;
14801 esac
14802
14803
14804
14805
14806 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14807 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14808 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14809 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14810
14811 fi
14812
14813 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14814
14815 if ${sim_enable_arch_ft32}; then
14816 SIM_ENABLE_ARCH_ft32_TRUE=
14817 SIM_ENABLE_ARCH_ft32_FALSE='#'
14818 else
14819 SIM_ENABLE_ARCH_ft32_TRUE='#'
14820 SIM_ENABLE_ARCH_ft32_FALSE=
14821 fi
14822
14823
14824 sim_enable_arch_h8300=false
14825 case "${targ}" in
14826 all|h8300*-*-*)
14827 if test "${targ}" = "${target}"; then
14828 SIM_PRIMARY_TARGET=h8300
14829 fi
14830 as_fn_append SIM_ENABLED_ARCHES " h8300"
14831 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
14832
14833 ac_config_commands="$ac_config_commands h8300/Makefile"
14834
14835 as_fn_append SIM_SUBDIRS " h8300"
14836
14837 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14838
14839 ac_config_commands="$ac_config_commands depdir-h8300"
14840
14841
14842 sim_enable_arch_h8300=true
14843
14844 ;;
14845 esac
14846
14847
14848
14849
14850 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14851 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14852 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14853 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14854
14855 fi
14856
14857 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14858
14859 if ${sim_enable_arch_h8300}; then
14860 SIM_ENABLE_ARCH_h8300_TRUE=
14861 SIM_ENABLE_ARCH_h8300_FALSE='#'
14862 else
14863 SIM_ENABLE_ARCH_h8300_TRUE='#'
14864 SIM_ENABLE_ARCH_h8300_FALSE=
14865 fi
14866
14867
14868 sim_enable_arch_iq2000=false
14869 case "${targ}" in
14870 all|iq2000-*-*)
14871 if test "${targ}" = "${target}"; then
14872 SIM_PRIMARY_TARGET=iq2000
14873 fi
14874 as_fn_append SIM_ENABLED_ARCHES " iq2000"
14875 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
14876
14877 ac_config_commands="$ac_config_commands iq2000/Makefile"
14878
14879 as_fn_append SIM_SUBDIRS " iq2000"
14880
14881 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14882
14883 ac_config_commands="$ac_config_commands depdir-iq2000"
14884
14885
14886 sim_enable_arch_iq2000=true
14887
14888 ;;
14889 esac
14890
14891
14892
14893
14894 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14895 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14896 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14897 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14898
14899 fi
14900
14901 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14902
14903 if ${sim_enable_arch_iq2000}; then
14904 SIM_ENABLE_ARCH_iq2000_TRUE=
14905 SIM_ENABLE_ARCH_iq2000_FALSE='#'
14906 else
14907 SIM_ENABLE_ARCH_iq2000_TRUE='#'
14908 SIM_ENABLE_ARCH_iq2000_FALSE=
14909 fi
14910
14911
14912 sim_enable_arch_lm32=false
14913 case "${targ}" in
14914 all|lm32-*-*)
14915 if test "${targ}" = "${target}"; then
14916 SIM_PRIMARY_TARGET=lm32
14917 fi
14918 as_fn_append SIM_ENABLED_ARCHES " lm32"
14919 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
14920
14921 ac_config_commands="$ac_config_commands lm32/Makefile"
14922
14923 as_fn_append SIM_SUBDIRS " lm32"
14924
14925 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
14926
14927 ac_config_commands="$ac_config_commands depdir-lm32"
14928
14929
14930 sim_enable_arch_lm32=true
14931
14932 ;;
14933 esac
14934
14935
14936
14937
14938 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
14939 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
14940 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
14941 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
14942
14943 fi
14944
14945 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
14946
14947 if ${sim_enable_arch_lm32}; then
14948 SIM_ENABLE_ARCH_lm32_TRUE=
14949 SIM_ENABLE_ARCH_lm32_FALSE='#'
14950 else
14951 SIM_ENABLE_ARCH_lm32_TRUE='#'
14952 SIM_ENABLE_ARCH_lm32_FALSE=
14953 fi
14954
14955
14956 sim_enable_arch_m32c=false
14957 case "${targ}" in
14958 all|m32c-*-*)
14959 if test "${targ}" = "${target}"; then
14960 SIM_PRIMARY_TARGET=m32c
14961 fi
14962 as_fn_append SIM_ENABLED_ARCHES " m32c"
14963 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
14964
14965 ac_config_commands="$ac_config_commands m32c/Makefile"
14966
14967 as_fn_append SIM_SUBDIRS " m32c"
14968
14969 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
14970
14971 ac_config_commands="$ac_config_commands depdir-m32c"
14972
14973
14974 sim_enable_arch_m32c=true
14975
14976 ;;
14977 esac
14978
14979
14980
14981
14982 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
14983 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
14984 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
14985 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
14986
14987 fi
14988
14989 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
14990
14991 if ${sim_enable_arch_m32c}; then
14992 SIM_ENABLE_ARCH_m32c_TRUE=
14993 SIM_ENABLE_ARCH_m32c_FALSE='#'
14994 else
14995 SIM_ENABLE_ARCH_m32c_TRUE='#'
14996 SIM_ENABLE_ARCH_m32c_FALSE=
14997 fi
14998
14999
15000 sim_enable_arch_m32r=false
15001 case "${targ}" in
15002 all|m32r-*-*)
15003 if test "${targ}" = "${target}"; then
15004 SIM_PRIMARY_TARGET=m32r
15005 fi
15006 as_fn_append SIM_ENABLED_ARCHES " m32r"
15007 ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
15008
15009 ac_config_commands="$ac_config_commands m32r/Makefile"
15010
15011 as_fn_append SIM_SUBDIRS " m32r"
15012
15013 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
15014
15015 ac_config_commands="$ac_config_commands depdir-m32r"
15016
15017
15018 sim_enable_arch_m32r=true
15019
15020 ;;
15021 esac
15022
15023
15024
15025
15026 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15027 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15028 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15029 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15030
15031 fi
15032
15033 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15034
15035 if ${sim_enable_arch_m32r}; then
15036 SIM_ENABLE_ARCH_m32r_TRUE=
15037 SIM_ENABLE_ARCH_m32r_FALSE='#'
15038 else
15039 SIM_ENABLE_ARCH_m32r_TRUE='#'
15040 SIM_ENABLE_ARCH_m32r_FALSE=
15041 fi
15042
15043
15044 sim_enable_arch_m68hc11=false
15045 case "${targ}" in
15046 all|m68hc11-*-*|m6811-*-*)
15047 if test "${targ}" = "${target}"; then
15048 SIM_PRIMARY_TARGET=m68hc11
15049 fi
15050 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
15051 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
15052
15053 ac_config_commands="$ac_config_commands m68hc11/Makefile"
15054
15055 as_fn_append SIM_SUBDIRS " m68hc11"
15056
15057 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15058
15059 ac_config_commands="$ac_config_commands depdir-m68hc11"
15060
15061
15062 sim_enable_arch_m68hc11=true
15063
15064 ;;
15065 esac
15066
15067
15068
15069
15070 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15071 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15072 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15073 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15074
15075 fi
15076
15077 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15078
15079 if ${sim_enable_arch_m68hc11}; then
15080 SIM_ENABLE_ARCH_m68hc11_TRUE=
15081 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15082 else
15083 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15084 SIM_ENABLE_ARCH_m68hc11_FALSE=
15085 fi
15086
15087
15088 sim_enable_arch_mcore=false
15089 case "${targ}" in
15090 all|mcore-*-*)
15091 if test "${targ}" = "${target}"; then
15092 SIM_PRIMARY_TARGET=mcore
15093 fi
15094 as_fn_append SIM_ENABLED_ARCHES " mcore"
15095 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
15096
15097 ac_config_commands="$ac_config_commands mcore/Makefile"
15098
15099 as_fn_append SIM_SUBDIRS " mcore"
15100
15101 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15102
15103 ac_config_commands="$ac_config_commands depdir-mcore"
15104
15105
15106 sim_enable_arch_mcore=true
15107
15108 ;;
15109 esac
15110
15111
15112
15113
15114 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15115 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15116 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15117 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15118
15119 fi
15120
15121 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15122
15123 if ${sim_enable_arch_mcore}; then
15124 SIM_ENABLE_ARCH_mcore_TRUE=
15125 SIM_ENABLE_ARCH_mcore_FALSE='#'
15126 else
15127 SIM_ENABLE_ARCH_mcore_TRUE='#'
15128 SIM_ENABLE_ARCH_mcore_FALSE=
15129 fi
15130
15131
15132 sim_enable_arch_microblaze=false
15133 case "${targ}" in
15134 all|microblaze*-*-*)
15135 if test "${targ}" = "${target}"; then
15136 SIM_PRIMARY_TARGET=microblaze
15137 fi
15138 as_fn_append SIM_ENABLED_ARCHES " microblaze"
15139 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
15140
15141 ac_config_commands="$ac_config_commands microblaze/Makefile"
15142
15143 as_fn_append SIM_SUBDIRS " microblaze"
15144
15145 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15146
15147 ac_config_commands="$ac_config_commands depdir-microblaze"
15148
15149
15150 sim_enable_arch_microblaze=true
15151
15152 ;;
15153 esac
15154
15155
15156
15157
15158 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15159 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15160 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15161 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15162
15163 fi
15164
15165 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15166
15167 if ${sim_enable_arch_microblaze}; then
15168 SIM_ENABLE_ARCH_microblaze_TRUE=
15169 SIM_ENABLE_ARCH_microblaze_FALSE='#'
15170 else
15171 SIM_ENABLE_ARCH_microblaze_TRUE='#'
15172 SIM_ENABLE_ARCH_microblaze_FALSE=
15173 fi
15174
15175
15176 sim_enable_arch_mips=false
15177 case "${targ}" in
15178 all|mips*-*-*)
15179 if test "${targ}" = "${target}"; then
15180 SIM_PRIMARY_TARGET=mips
15181 fi
15182 as_fn_append SIM_ENABLED_ARCHES " mips"
15183 ac_config_files="$ac_config_files mips/Makefile.sim:mips/Makefile.in"
15184
15185 ac_config_commands="$ac_config_commands mips/Makefile"
15186
15187 as_fn_append SIM_SUBDIRS " mips"
15188
15189 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15190
15191 ac_config_commands="$ac_config_commands depdir-mips"
15192
15193
15194 sim_enable_arch_mips=true
15195 sim_igen=yes
15196 ;;
15197 esac
15198
15199
15200
15201
15202 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15203 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15204 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15205 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15206
15207 fi
15208
15209 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15210
15211 if ${sim_enable_arch_mips}; then
15212 SIM_ENABLE_ARCH_mips_TRUE=
15213 SIM_ENABLE_ARCH_mips_FALSE='#'
15214 else
15215 SIM_ENABLE_ARCH_mips_TRUE='#'
15216 SIM_ENABLE_ARCH_mips_FALSE=
15217 fi
15218
15219
15220 sim_enable_arch_mn10300=false
15221 case "${targ}" in
15222 all|mn10300*-*-*)
15223 if test "${targ}" = "${target}"; then
15224 SIM_PRIMARY_TARGET=mn10300
15225 fi
15226 as_fn_append SIM_ENABLED_ARCHES " mn10300"
15227 ac_config_files="$ac_config_files mn10300/Makefile.sim:mn10300/Makefile.in"
15228
15229 ac_config_commands="$ac_config_commands mn10300/Makefile"
15230
15231 as_fn_append SIM_SUBDIRS " mn10300"
15232
15233 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15234
15235 ac_config_commands="$ac_config_commands depdir-mn10300"
15236
15237
15238 sim_enable_arch_mn10300=true
15239 sim_igen=yes
15240 ;;
15241 esac
15242
15243
15244
15245
15246 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15247 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15248 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15249 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15250
15251 fi
15252
15253 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15254
15255 if ${sim_enable_arch_mn10300}; then
15256 SIM_ENABLE_ARCH_mn10300_TRUE=
15257 SIM_ENABLE_ARCH_mn10300_FALSE='#'
15258 else
15259 SIM_ENABLE_ARCH_mn10300_TRUE='#'
15260 SIM_ENABLE_ARCH_mn10300_FALSE=
15261 fi
15262
15263
15264 sim_enable_arch_moxie=false
15265 case "${targ}" in
15266 all|moxie-*-*)
15267 if test "${targ}" = "${target}"; then
15268 SIM_PRIMARY_TARGET=moxie
15269 fi
15270 as_fn_append SIM_ENABLED_ARCHES " moxie"
15271 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
15272
15273 ac_config_commands="$ac_config_commands moxie/Makefile"
15274
15275 as_fn_append SIM_SUBDIRS " moxie"
15276
15277 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15278
15279 ac_config_commands="$ac_config_commands depdir-moxie"
15280
15281
15282 sim_enable_arch_moxie=true
15283
15284 ;;
15285 esac
15286
15287
15288
15289
15290 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15291 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15292 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15293 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15294
15295 fi
15296
15297 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15298
15299 if ${sim_enable_arch_moxie}; then
15300 SIM_ENABLE_ARCH_moxie_TRUE=
15301 SIM_ENABLE_ARCH_moxie_FALSE='#'
15302 else
15303 SIM_ENABLE_ARCH_moxie_TRUE='#'
15304 SIM_ENABLE_ARCH_moxie_FALSE=
15305 fi
15306
15307
15308 sim_enable_arch_msp430=false
15309 case "${targ}" in
15310 all|msp430*-*-*)
15311 if test "${targ}" = "${target}"; then
15312 SIM_PRIMARY_TARGET=msp430
15313 fi
15314 as_fn_append SIM_ENABLED_ARCHES " msp430"
15315 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
15316
15317 ac_config_commands="$ac_config_commands msp430/Makefile"
15318
15319 as_fn_append SIM_SUBDIRS " msp430"
15320
15321 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15322
15323 ac_config_commands="$ac_config_commands depdir-msp430"
15324
15325
15326 sim_enable_arch_msp430=true
15327
15328 ;;
15329 esac
15330
15331
15332
15333
15334 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15335 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15336 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15337 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15338
15339 fi
15340
15341 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15342
15343 if ${sim_enable_arch_msp430}; then
15344 SIM_ENABLE_ARCH_msp430_TRUE=
15345 SIM_ENABLE_ARCH_msp430_FALSE='#'
15346 else
15347 SIM_ENABLE_ARCH_msp430_TRUE='#'
15348 SIM_ENABLE_ARCH_msp430_FALSE=
15349 fi
15350
15351
15352 sim_enable_arch_or1k=false
15353 case "${targ}" in
15354 all|or1k*-*-*)
15355 if test "${targ}" = "${target}"; then
15356 SIM_PRIMARY_TARGET=or1k
15357 fi
15358 as_fn_append SIM_ENABLED_ARCHES " or1k"
15359 ac_config_files="$ac_config_files or1k/Makefile.sim:or1k/Makefile.in"
15360
15361 ac_config_commands="$ac_config_commands or1k/Makefile"
15362
15363 as_fn_append SIM_SUBDIRS " or1k"
15364
15365 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15366
15367 ac_config_commands="$ac_config_commands depdir-or1k"
15368
15369
15370 sim_enable_arch_or1k=true
15371
15372 ;;
15373 esac
15374
15375
15376
15377
15378 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15379 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15380 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15381 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15382
15383 fi
15384
15385 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15386
15387 if ${sim_enable_arch_or1k}; then
15388 SIM_ENABLE_ARCH_or1k_TRUE=
15389 SIM_ENABLE_ARCH_or1k_FALSE='#'
15390 else
15391 SIM_ENABLE_ARCH_or1k_TRUE='#'
15392 SIM_ENABLE_ARCH_or1k_FALSE=
15393 fi
15394
15395
15396 sim_enable_arch_ppc=false
15397 case "${targ}" in
15398 all|powerpc*-*-*)
15399 if test "${targ}" = "${target}"; then
15400 SIM_PRIMARY_TARGET=ppc
15401 fi
15402 as_fn_append SIM_ENABLED_ARCHES " ppc"
15403
15404
15405 subdirs="$subdirs ppc"
15406
15407
15408 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15409
15410 ac_config_commands="$ac_config_commands depdir-ppc"
15411
15412
15413 sim_enable_arch_ppc=true
15414
15415 ;;
15416 esac
15417
15418
15419
15420
15421 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15422 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15423 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15424 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15425
15426 fi
15427
15428 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15429
15430 if ${sim_enable_arch_ppc}; then
15431 SIM_ENABLE_ARCH_ppc_TRUE=
15432 SIM_ENABLE_ARCH_ppc_FALSE='#'
15433 else
15434 SIM_ENABLE_ARCH_ppc_TRUE='#'
15435 SIM_ENABLE_ARCH_ppc_FALSE=
15436 fi
15437
15438
15439 sim_enable_arch_pru=false
15440 case "${targ}" in
15441 all|pru*-*-*)
15442 if test "${targ}" = "${target}"; then
15443 SIM_PRIMARY_TARGET=pru
15444 fi
15445 as_fn_append SIM_ENABLED_ARCHES " pru"
15446 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
15447
15448 ac_config_commands="$ac_config_commands pru/Makefile"
15449
15450 as_fn_append SIM_SUBDIRS " pru"
15451
15452 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15453
15454 ac_config_commands="$ac_config_commands depdir-pru"
15455
15456
15457 sim_enable_arch_pru=true
15458
15459 ;;
15460 esac
15461
15462
15463
15464
15465 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15466 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15467 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15468 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15469
15470 fi
15471
15472 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15473
15474 if ${sim_enable_arch_pru}; then
15475 SIM_ENABLE_ARCH_pru_TRUE=
15476 SIM_ENABLE_ARCH_pru_FALSE='#'
15477 else
15478 SIM_ENABLE_ARCH_pru_TRUE='#'
15479 SIM_ENABLE_ARCH_pru_FALSE=
15480 fi
15481
15482
15483 sim_enable_arch_riscv=false
15484 case "${targ}" in
15485 all|riscv*-*-*)
15486 if test "${targ}" = "${target}"; then
15487 SIM_PRIMARY_TARGET=riscv
15488 fi
15489 as_fn_append SIM_ENABLED_ARCHES " riscv"
15490 ac_config_files="$ac_config_files riscv/Makefile.sim:riscv/Makefile.in"
15491
15492 ac_config_commands="$ac_config_commands riscv/Makefile"
15493
15494 as_fn_append SIM_SUBDIRS " riscv"
15495
15496 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15497
15498 ac_config_commands="$ac_config_commands depdir-riscv"
15499
15500
15501 sim_enable_arch_riscv=true
15502
15503 ;;
15504 esac
15505
15506
15507
15508
15509 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15510 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15511 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15512 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15513
15514 fi
15515
15516 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15517
15518 if ${sim_enable_arch_riscv}; then
15519 SIM_ENABLE_ARCH_riscv_TRUE=
15520 SIM_ENABLE_ARCH_riscv_FALSE='#'
15521 else
15522 SIM_ENABLE_ARCH_riscv_TRUE='#'
15523 SIM_ENABLE_ARCH_riscv_FALSE=
15524 fi
15525
15526
15527 sim_enable_arch_rl78=false
15528 case "${targ}" in
15529 all|rl78-*-*)
15530 if test "${targ}" = "${target}"; then
15531 SIM_PRIMARY_TARGET=rl78
15532 fi
15533 as_fn_append SIM_ENABLED_ARCHES " rl78"
15534 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
15535
15536 ac_config_commands="$ac_config_commands rl78/Makefile"
15537
15538 as_fn_append SIM_SUBDIRS " rl78"
15539
15540 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15541
15542 ac_config_commands="$ac_config_commands depdir-rl78"
15543
15544
15545 sim_enable_arch_rl78=true
15546
15547 ;;
15548 esac
15549
15550
15551
15552
15553 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15554 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15555 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15556 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15557
15558 fi
15559
15560 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15561
15562 if ${sim_enable_arch_rl78}; then
15563 SIM_ENABLE_ARCH_rl78_TRUE=
15564 SIM_ENABLE_ARCH_rl78_FALSE='#'
15565 else
15566 SIM_ENABLE_ARCH_rl78_TRUE='#'
15567 SIM_ENABLE_ARCH_rl78_FALSE=
15568 fi
15569
15570
15571 sim_enable_arch_rx=false
15572 case "${targ}" in
15573 all|rx-*-*)
15574 if test "${targ}" = "${target}"; then
15575 SIM_PRIMARY_TARGET=rx
15576 fi
15577 as_fn_append SIM_ENABLED_ARCHES " rx"
15578 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
15579
15580 ac_config_commands="$ac_config_commands rx/Makefile"
15581
15582 as_fn_append SIM_SUBDIRS " rx"
15583
15584 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15585
15586 ac_config_commands="$ac_config_commands depdir-rx"
15587
15588
15589 sim_enable_arch_rx=true
15590
15591 ;;
15592 esac
15593
15594
15595
15596
15597 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15598 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15599 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15600 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15601
15602 fi
15603
15604 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15605
15606 if ${sim_enable_arch_rx}; then
15607 SIM_ENABLE_ARCH_rx_TRUE=
15608 SIM_ENABLE_ARCH_rx_FALSE='#'
15609 else
15610 SIM_ENABLE_ARCH_rx_TRUE='#'
15611 SIM_ENABLE_ARCH_rx_FALSE=
15612 fi
15613
15614
15615 sim_enable_arch_sh=false
15616 case "${targ}" in
15617 all|sh*-*-*)
15618 if test "${targ}" = "${target}"; then
15619 SIM_PRIMARY_TARGET=sh
15620 fi
15621 as_fn_append SIM_ENABLED_ARCHES " sh"
15622 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
15623
15624 ac_config_commands="$ac_config_commands sh/Makefile"
15625
15626 as_fn_append SIM_SUBDIRS " sh"
15627
15628 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15629
15630 ac_config_commands="$ac_config_commands depdir-sh"
15631
15632
15633 sim_enable_arch_sh=true
15634
15635 ;;
15636 esac
15637
15638
15639
15640
15641 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15642 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15643 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15644 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15645
15646 fi
15647
15648 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15649
15650 if ${sim_enable_arch_sh}; then
15651 SIM_ENABLE_ARCH_sh_TRUE=
15652 SIM_ENABLE_ARCH_sh_FALSE='#'
15653 else
15654 SIM_ENABLE_ARCH_sh_TRUE='#'
15655 SIM_ENABLE_ARCH_sh_FALSE=
15656 fi
15657
15658
15659 sim_enable_arch_erc32=false
15660 case "${targ}" in
15661 all|sparc-*-*)
15662 if test "${targ}" = "${target}"; then
15663 SIM_PRIMARY_TARGET=erc32
15664 fi
15665 as_fn_append SIM_ENABLED_ARCHES " erc32"
15666 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
15667
15668 ac_config_commands="$ac_config_commands erc32/Makefile"
15669
15670 as_fn_append SIM_SUBDIRS " erc32"
15671
15672 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15673
15674 ac_config_commands="$ac_config_commands depdir-erc32"
15675
15676
15677 sim_enable_arch_erc32=true
15678
15679 ;;
15680 esac
15681
15682
15683
15684
15685 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15686 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15687 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15688 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15689
15690 fi
15691
15692 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15693
15694 if ${sim_enable_arch_erc32}; then
15695 SIM_ENABLE_ARCH_erc32_TRUE=
15696 SIM_ENABLE_ARCH_erc32_FALSE='#'
15697 else
15698 SIM_ENABLE_ARCH_erc32_TRUE='#'
15699 SIM_ENABLE_ARCH_erc32_FALSE=
15700 fi
15701
15702
15703 sim_enable_arch_v850=false
15704 case "${targ}" in
15705 all|v850*-*-*)
15706 if test "${targ}" = "${target}"; then
15707 SIM_PRIMARY_TARGET=v850
15708 fi
15709 as_fn_append SIM_ENABLED_ARCHES " v850"
15710 ac_config_files="$ac_config_files v850/Makefile.sim:v850/Makefile.in"
15711
15712 ac_config_commands="$ac_config_commands v850/Makefile"
15713
15714 as_fn_append SIM_SUBDIRS " v850"
15715
15716 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15717
15718 ac_config_commands="$ac_config_commands depdir-v850"
15719
15720
15721 sim_enable_arch_v850=true
15722 sim_igen=yes
15723 ;;
15724 esac
15725
15726
15727
15728
15729 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15730 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15731 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15732 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15733
15734 fi
15735
15736 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15737
15738 if ${sim_enable_arch_v850}; then
15739 SIM_ENABLE_ARCH_v850_TRUE=
15740 SIM_ENABLE_ARCH_v850_FALSE='#'
15741 else
15742 SIM_ENABLE_ARCH_v850_TRUE='#'
15743 SIM_ENABLE_ARCH_v850_FALSE=
15744 fi
15745
15746
15747 done
15748
15749 if test "x${enable_example_sims}" = xyes; then
15750
15751
15752
15753
15754 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15755 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15756 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15757
15758 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15759
15760 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15761 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
15762
15763 ac_config_commands="$ac_config_commands example-synacor/Makefile"
15764
15765 as_fn_append SIM_SUBDIRS " example-synacor"
15766
15767 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15768
15769 ac_config_commands="$ac_config_commands depdir-example-synacor"
15770
15771
15772 fi
15773 if test "${enable_example_sims}" = "yes"; then
15774 SIM_ENABLE_ARCH_examples_TRUE=
15775 SIM_ENABLE_ARCH_examples_FALSE='#'
15776 else
15777 SIM_ENABLE_ARCH_examples_TRUE='#'
15778 SIM_ENABLE_ARCH_examples_FALSE=
15779 fi
15780
15781 fi
15782 if test "$sim_igen" = "yes"; then
15783 SIM_ENABLE_IGEN_TRUE=
15784 SIM_ENABLE_IGEN_FALSE='#'
15785 else
15786 SIM_ENABLE_IGEN_TRUE='#'
15787 SIM_ENABLE_IGEN_FALSE=
15788 fi
15789
15790 if test -n "$SIM_SUBDIRS"; then
15791 ENABLE_SIM_TRUE=
15792 ENABLE_SIM_FALSE='#'
15793 else
15794 ENABLE_SIM_TRUE='#'
15795 ENABLE_SIM_FALSE=
15796 fi
15797
15798
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15800 $as_echo_n "checking whether to force sim alignment... " >&6; }
15801 sim_alignment=
15802 # Check whether --enable-sim-alignment was given.
15803 if test "${enable_sim_alignment+set}" = set; then :
15804 enableval=$enable_sim_alignment; case "${enableval}" in
15805 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15806 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15807 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15808 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15809 esac
15810 fi
15811
15812 cat >>confdefs.h <<_ACEOF
15813 #define WITH_ALIGNMENT ${sim_alignment:-0}
15814 _ACEOF
15815
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15817 $as_echo "${sim_alignment:-no}" >&6; }
15818
15819
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15821 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15822 sim_assert="1"
15823 # Check whether --enable-sim-assert was given.
15824 if test "${enable_sim_assert+set}" = set; then :
15825 enableval=$enable_sim_assert; case "${enableval}" in
15826 yes) sim_assert="1";;
15827 no) sim_assert="0";;
15828 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15829 esac
15830 fi
15831
15832 cat >>confdefs.h <<_ACEOF
15833 #define WITH_ASSERT $sim_assert
15834 _ACEOF
15835
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15837 $as_echo "$sim_assert" >&6; }
15838
15839
15840 cgen_maint=no
15841 cgen=guile
15842 cgendir='$(srcdir)/../../cgen'
15843 # Check whether --enable-cgen-maint was given.
15844 if test "${enable_cgen_maint+set}" = set; then :
15845 enableval=$enable_cgen_maint; case "${enableval}" in
15846 yes) cgen_maint=yes ;;
15847 no) cgen_maint=no ;;
15848 *)
15849 # Argument is a directory where cgen can be found. In some
15850 # future world cgen could be installable, but right now this
15851 # is not the case. Instead we assume the directory is a path
15852 # to the cgen source tree.
15853 cgen_maint=yes
15854 if test -r ${enableval}/iformat.scm; then
15855 # This looks like a cgen source tree.
15856 cgendir=${enableval}
15857 else
15858 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15859 fi
15860 ;;
15861 esac
15862 fi
15863 if test x${cgen_maint} != xno ; then
15864 CGEN_MAINT=''
15865 else
15866 CGEN_MAINT='#'
15867 fi
15868
15869
15870
15871
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15873 $as_echo_n "checking for sim debug setting... " >&6; }
15874 sim_debug="0"
15875 # Check whether --enable-sim-debug was given.
15876 if test "${enable_sim_debug+set}" = set; then :
15877 enableval=$enable_sim_debug; case "${enableval}" in
15878 yes) sim_debug="7";;
15879 no) sim_debug="0";;
15880 *) sim_debug="($enableval)";;
15881 esac
15882 fi
15883 if test "$sim_debug" != "0"; then
15884
15885 cat >>confdefs.h <<_ACEOF
15886 #define DEBUG $sim_debug
15887 _ACEOF
15888
15889 fi
15890
15891 cat >>confdefs.h <<_ACEOF
15892 #define WITH_DEBUG $sim_debug
15893 _ACEOF
15894
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15896 $as_echo "$sim_debug" >&6; }
15897
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15899 $as_echo_n "checking whether to force sim endianness... " >&6; }
15900 sim_endian=
15901 # Check whether --enable-sim-endian was given.
15902 if test "${enable_sim_endian+set}" = set; then :
15903 enableval=$enable_sim_endian; case "${enableval}" in
15904 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15905 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15906 yes | no) ;;
15907 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15908 esac
15909 fi
15910
15911 cat >>confdefs.h <<_ACEOF
15912 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15913 _ACEOF
15914
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15916 $as_echo "${sim_alignment:-no}" >&6; }
15917
15918
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15920 $as_echo_n "checking default sim environment setting... " >&6; }
15921 sim_environment="ALL_ENVIRONMENT"
15922 # Check whether --enable-sim-environment was given.
15923 if test "${enable_sim_environment+set}" = set; then :
15924 enableval=$enable_sim_environment; case "${enableval}" in
15925 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15926 user | USER) sim_environment="USER_ENVIRONMENT";;
15927 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15928 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15929 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15930 esac
15931 fi
15932
15933 cat >>confdefs.h <<_ACEOF
15934 #define WITH_ENVIRONMENT $sim_environment
15935 _ACEOF
15936
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15938 $as_echo "$sim_environment" >&6; }
15939
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15941 $as_echo_n "checking for sim hardware settings... " >&6; }
15942 # Check whether --enable-sim-hardware was given.
15943 if test "${enable_sim_hardware+set}" = set; then :
15944 enableval=$enable_sim_hardware;
15945 else
15946 enable_sim_hardware="yes"
15947 fi
15948
15949 sim_hw_sockser=
15950 if test "$enable_sim_hardware" = no; then
15951 sim_hw_cflags="-DWITH_HW=0"
15952 elif test "$enable_sim_hardware" = yes; then
15953 sim_hw_cflags="-DWITH_HW=1"
15954 sim_hw_sockser="dv-sockser.o"
15955 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15956 else
15957 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15958 fi
15959 if test "$enable_sim_hardware" = "yes"; then
15960 SIM_ENABLE_HW_TRUE=
15961 SIM_ENABLE_HW_FALSE='#'
15962 else
15963 SIM_ENABLE_HW_TRUE='#'
15964 SIM_ENABLE_HW_FALSE=
15965 fi
15966
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15968 $as_echo "${enable_sim_hardware}" >&6; }
15969 SIM_HW_CFLAGS=$sim_hw_cflags
15970
15971 SIM_HW_SOCKSER=$sim_hw_sockser
15972
15973
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15975 $as_echo_n "checking sim inline settings... " >&6; }
15976 sim_inline="-DDEFAULT_INLINE=0"
15977 # Check whether --enable-sim-inline was given.
15978 if test "${enable_sim_inline+set}" = set; then :
15979 enableval=$enable_sim_inline; sim_inline=""
15980 case "$enableval" in
15981 no) sim_inline="-DDEFAULT_INLINE=0";;
15982 0) sim_inline="-DDEFAULT_INLINE=0";;
15983 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15984 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15985 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15986 new_flag=""
15987 case "$x" in
15988 *_INLINE=*) new_flag="-D$x";;
15989 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15990 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15991 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15992 esac
15993 if test x"$sim_inline" = x""; then
15994 sim_inline="$new_flag"
15995 else
15996 sim_inline="$sim_inline $new_flag"
15997 fi
15998 done;;
15999 esac
16000
16001 fi
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
16003 $as_echo "$sim_inline" >&6; }
16004 SIM_INLINE=$sim_inline
16005
16006
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
16008 $as_echo_n "checking for sim profile settings... " >&6; }
16009 profile="1"
16010 sim_profile="-1"
16011 # Check whether --enable-sim-profile was given.
16012 if test "${enable_sim_profile+set}" = set; then :
16013 enableval=$enable_sim_profile; case "${enableval}" in
16014 yes) profile="1" sim_profile="-1";;
16015 no) profile="0" sim_profile="0";;
16016 [-0-9]*)
16017 profile="(${enableval})" sim_profile="(${enableval})";;
16018 [a-z]*)
16019 profile="1"
16020 sim_profile=""
16021 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16022 if test x"$sim_profile" = x; then
16023 sim_profile="(PROFILE_$x"
16024 else
16025 sim_profile="${sim_profile}|PROFILE_$x"
16026 fi
16027 done
16028 sim_profile="$sim_profile)" ;;
16029 esac
16030 fi
16031
16032 cat >>confdefs.h <<_ACEOF
16033 #define PROFILE $profile
16034 _ACEOF
16035
16036
16037 cat >>confdefs.h <<_ACEOF
16038 #define WITH_PROFILE $sim_profile
16039 _ACEOF
16040
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16042 $as_echo "$sim_profile" >&6; }
16043
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16045 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16046 # Check whether --enable-sim-reserved-bits was given.
16047 if test "${enable_sim_reserved_bits+set}" = set; then :
16048 enableval=$enable_sim_reserved_bits; case "${enableval}" in
16049 yes|no) ;;
16050 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16051 esac
16052 fi
16053
16054 if test "x${enable_sim_reserved_bits}" != xno; then
16055 sim_reserved_bits=1
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16057 $as_echo "yes" >&6; }
16058 else
16059 sim_reserved_bits=0
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16061 $as_echo "no" >&6; }
16062 fi
16063
16064 cat >>confdefs.h <<_ACEOF
16065 #define WITH_RESERVED_BITS $sim_reserved_bits
16066 _ACEOF
16067
16068
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16070 $as_echo_n "checking for sim cache size... " >&6; }
16071 sim_scache="16384"
16072 # Check whether --enable-sim-scache was given.
16073 if test "${enable_sim_scache+set}" = set; then :
16074 enableval=$enable_sim_scache; case "${enableval}" in
16075 yes) ;;
16076 no) sim_scache="0";;
16077 [0-9]*) sim_scache="${enableval}";;
16078 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16079 esac
16080 fi
16081
16082
16083 cat >>confdefs.h <<_ACEOF
16084 #define WITH_SCACHE $sim_scache
16085 _ACEOF
16086
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16088 $as_echo "$sim_scache" >&6; }
16089
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
16091 $as_echo_n "checking number of sim cpus to support... " >&6; }
16092 default_sim_smp="0"
16093 sim_smp="$default_sim_smp"
16094 # Check whether --enable-sim-smp was given.
16095 if test "${enable_sim_smp+set}" = set; then :
16096 enableval=$enable_sim_smp; case "${enableval}" in
16097 yes) sim_smp="5";;
16098 no) sim_smp="0";;
16099 *) sim_smp="$enableval";;
16100 esac
16101 fi
16102 IGEN_FLAGS_SMP="-N ${sim_smp}"
16103
16104 if test "x$sim_smp" = x0; then :
16105
16106 else
16107
16108 cat >>confdefs.h <<_ACEOF
16109 #define WITH_SMP $sim_smp
16110 _ACEOF
16111
16112 fi
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
16114 $as_echo "$sim_smp" >&6; }
16115
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16117 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16118 sim_stdio="0"
16119 # Check whether --enable-sim-stdio was given.
16120 if test "${enable_sim_stdio+set}" = set; then :
16121 enableval=$enable_sim_stdio; case "${enableval}" in
16122 yes) sim_stdio="DO_USE_STDIO";;
16123 no) sim_stdio="DONT_USE_STDIO";;
16124 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16125 esac
16126 fi
16127
16128 cat >>confdefs.h <<_ACEOF
16129 #define WITH_STDIO $sim_stdio
16130 _ACEOF
16131
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16133 $as_echo "$sim_stdio" >&6; }
16134
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16136 $as_echo_n "checking for sim trace settings... " >&6; }
16137 sim_trace="~TRACE_debug"
16138 # Check whether --enable-sim-trace was given.
16139 if test "${enable_sim_trace+set}" = set; then :
16140 enableval=$enable_sim_trace; case "${enableval}" in
16141 yes) sim_trace="-1";;
16142 no) sim_trace="0";;
16143 [-0-9]*)
16144 sim_trace="'(${enableval})'";;
16145 [[:lower:]]*)
16146 sim_trace=""
16147 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16148 if test x"$sim_trace" = x; then
16149 sim_trace="(TRACE_$x"
16150 else
16151 sim_trace="${sim_trace}|TRACE_$x"
16152 fi
16153 done
16154 sim_trace="$sim_trace)" ;;
16155 esac
16156 fi
16157
16158 cat >>confdefs.h <<_ACEOF
16159 #define WITH_TRACE $sim_trace
16160 _ACEOF
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16163 $as_echo "$sim_trace" >&6; }
16164
16165
16166 # Check whether --enable-werror was given.
16167 if test "${enable_werror+set}" = set; then :
16168 enableval=$enable_werror; case "${enableval}" in
16169 yes | y) ERROR_ON_WARNING="yes" ;;
16170 no | n) ERROR_ON_WARNING="no" ;;
16171 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16172 esac
16173 fi
16174
16175
16176 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16177 ERROR_ON_WARNING=yes
16178 fi
16179
16180 WERROR_CFLAGS=""
16181 if test "${ERROR_ON_WARNING}" = yes ; then
16182 WERROR_CFLAGS="-Werror"
16183 fi
16184
16185 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
16186 -Wno-unused -Wunused-value -Wunused-function
16187 -Wno-switch -Wno-char-subscripts
16188 -Wempty-body -Wunused-but-set-parameter
16189 -Wno-error=maybe-uninitialized
16190 -Wmissing-declarations
16191 -Wmissing-prototypes
16192 -Wdeclaration-after-statement -Wmissing-parameter-type
16193 -Wpointer-sign
16194 -Wold-style-declaration -Wold-style-definition
16195 "
16196
16197 # Enable -Wno-format by default when using gcc on mingw since many
16198 # GCC versions complain about %I64.
16199 case "${host}" in
16200 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
16201 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
16202 esac
16203
16204 # Check whether --enable-build-warnings was given.
16205 if test "${enable_build_warnings+set}" = set; then :
16206 enableval=$enable_build_warnings; case "${enableval}" in
16207 yes) ;;
16208 no) build_warnings="-w";;
16209 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16210 build_warnings="${build_warnings} ${t}";;
16211 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16212 build_warnings="${t} ${build_warnings}";;
16213 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16214 esac
16215 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16216 echo "Setting compiler warning flags = $build_warnings" 6>&1
16217 fi
16218 fi
16219 # Check whether --enable-sim-build-warnings was given.
16220 if test "${enable_sim_build_warnings+set}" = set; then :
16221 enableval=$enable_sim_build_warnings; case "${enableval}" in
16222 yes) ;;
16223 no) build_warnings="-w";;
16224 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16225 build_warnings="${build_warnings} ${t}";;
16226 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16227 build_warnings="${t} ${build_warnings}";;
16228 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16229 esac
16230 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16231 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16232 fi
16233 fi
16234 WARN_CFLAGS=""
16235 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16236 then
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16238 $as_echo_n "checking compiler warning flags... " >&6; }
16239 # Separate out the -Werror flag as some files just cannot be
16240 # compiled with it enabled.
16241 for w in ${build_warnings}; do
16242 case $w in
16243 -Werr*) WERROR_CFLAGS=-Werror ;;
16244 *) # Check that GCC accepts it
16245 saved_CFLAGS="$CFLAGS"
16246 CFLAGS="$CFLAGS -Werror $w"
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249
16250 int
16251 main ()
16252 {
16253
16254 ;
16255 return 0;
16256 }
16257 _ACEOF
16258 if ac_fn_c_try_compile "$LINENO"; then :
16259 WARN_CFLAGS="${WARN_CFLAGS} $w"
16260 fi
16261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 CFLAGS="$saved_CFLAGS"
16263 esac
16264 done
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16266 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16267 fi
16268
16269
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16271 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16272 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
16273 $as_echo_n "(cached) " >&6
16274 else
16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h. */
16277 #include <unistd.h>
16278 int
16279 main ()
16280 {
16281 extern int getopt (int, char *const*, const char *);
16282 ;
16283 return 0;
16284 }
16285 _ACEOF
16286 if ac_fn_c_try_compile "$LINENO"; then :
16287 sim_cv_decl_getopt_unistd_h=yes
16288 else
16289 sim_cv_decl_getopt_unistd_h=no
16290 fi
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292 fi
16293
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
16295 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
16296 if test $sim_cv_decl_getopt_unistd_h = yes; then
16297
16298 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16299
16300 fi
16301
16302
16303
16304
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16306 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16307 # Check whether --enable-sim-frv-trapdump was given.
16308 if test "${enable_sim_frv_trapdump+set}" = set; then :
16309 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16310 yes|no) ;;
16311 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16312 esac
16313 fi
16314
16315 if test "x${enable_sim_frv_trapdump}" = xyes; then
16316 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16318 $as_echo "yes" >&6; }
16319 else
16320 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16322 $as_echo "no" >&6; }
16323 fi
16324
16325
16326
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
16328 $as_echo_n "checking mips subtarget... " >&6; }
16329 SIM_MIPS_SUBTARGET=
16330 case ${target} in #(
16331 mips64vr*-*-*) :
16332 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16333 mips*tx39*) :
16334 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
16335 mips*-sde-elf*) :
16336 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16337 mips*-mti-elf*) :
16338 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16339 mipsisa32*-*-*) :
16340 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16341 mipsisa64*-*-*) :
16342 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16343 *) :
16344 ;;
16345 esac
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
16347 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
16348
16349
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
16351 $as_echo_n "checking mips bitsize... " >&6; }
16352 SIM_MIPS_BITSIZE=64
16353 case ${target} in #(
16354 mips*-sde-elf*) :
16355 SIM_MIPS_BITSIZE=64 ;; #(
16356 mips*-mti-elf*) :
16357 SIM_MIPS_BITSIZE=64 ;; #(
16358 mips64*-*-*) :
16359 SIM_MIPS_BITSIZE=64 ;; #(
16360 mips16*-*-*) :
16361 SIM_MIPS_BITSIZE=64 ;; #(
16362 mipsisa32*-*-*) :
16363 SIM_MIPS_BITSIZE=32 ;; #(
16364 mipsisa64*-*-*) :
16365 SIM_MIPS_BITSIZE=64 ;; #(
16366 mips*-*-*) :
16367 SIM_MIPS_BITSIZE=32 ;; #(
16368 *) :
16369 ;;
16370 esac
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
16372 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
16373
16374
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
16376 $as_echo_n "checking mips fpu bitsize... " >&6; }
16377 SIM_MIPS_FPU_BITSIZE=64
16378 case ${target} in #(
16379 mips*tx39*) :
16380 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16381 mips*-sde-elf*) :
16382 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16383 mips*-mti-elf*) :
16384 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16385 mipsisa32*-*-*) :
16386 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16387 mipsisa64*-*-*) :
16388 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16389 mips*-*-*) :
16390 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16391 *) :
16392 ;;
16393 esac
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
16395 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16396
16397
16398 SIM_MIPS_GEN=SINGLE
16399 sim_mips_single_machine="-M mipsIV"
16400 sim_mips_m16_machine="-M mips16,mipsIII"
16401 sim_mips_single_filter="32,64,f"
16402 sim_mips_m16_filter="16"
16403 case ${target} in #(
16404 mips*tx39*) :
16405 SIM_MIPS_GEN=SINGLE
16406 sim_mips_single_filter="32,f"
16407 sim_mips_single_machine="-M r3900" ;; #(
16408 mips64vr41*) :
16409 SIM_MIPS_GEN=M16
16410 sim_mips_single_machine="-M vr4100"
16411 sim_mips_m16_machine="-M vr4100" ;; #(
16412 mips64*) :
16413 SIM_MIPS_GEN=MULTI
16414 sim_mips_multi_configs="\
16415 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16416 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16417 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16418 vr5400:mipsIV,vr5400:32,64,f:mips5400\
16419 vr5500:mipsIV,vr5500:32,64,f:mips5500"
16420 sim_mips_multi_default=mips5000 ;; #(
16421 mips*-sde-elf* | mips*-mti-elf*) :
16422 SIM_MIPS_GEN=MULTI
16423 sim_mips_multi_configs="\
16424 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16425 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16426 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16427 sim_mips_multi_default=mipsisa64r2 ;; #(
16428 mips16*) :
16429 SIM_MIPS_GEN=M16 ;; #(
16430 mipsisa32r2*) :
16431 SIM_MIPS_GEN=MULTI
16432 sim_mips_multi_configs="\
16433 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16434 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16435 sim_mips_multi_default=mipsisa32r2 ;; #(
16436 mipsisa32r6*) :
16437 SIM_MIPS_GEN=SINGLE
16438 sim_mips_single_machine="-M mips32r6"
16439 sim_mips_single_filter="32,f" ;; #(
16440 mipsisa32*) :
16441 SIM_MIPS_GEN=M16
16442 sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips"
16443 sim_mips_m16_machine="-M mips16,mips16e,mips32"
16444 sim_mips_single_filter="32,f" ;; #(
16445 mipsisa64r2*) :
16446 SIM_MIPS_GEN=M16
16447 sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16448 sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #(
16449 mipsisa64r6*) :
16450 SIM_MIPS_GEN=SINGLE
16451 sim_mips_single_machine="-M mips64r6" ;; #(
16452 mipsisa64sb1*) :
16453 SIM_MIPS_GEN=SINGLE
16454 sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #(
16455 mipsisa64*) :
16456 SIM_MIPS_GEN=M16
16457 sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
16458 sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #(
16459 mips*lsi*) :
16460 SIM_MIPS_GEN=M16
16461 sim_mips_single_machine="-M mipsIII,mips16"
16462 sim_mips_m16_machine="-M mips16,mipsIII"
16463 sim_mips_single_filter="32,f" ;; #(
16464 mips*) :
16465 SIM_MIPS_GEN=SINGLE
16466 sim_mips_single_filter="32,f" ;; #(
16467 *) :
16468 ;;
16469 esac
16470
16471 SIM_MIPS_IGEN_ITABLE_FLAGS=
16472 SIM_MIPS_MULTI_SRC=
16473 SIM_MIPS_MULTI_OBJ=
16474 SIM_MIPS_MULTI_IGEN_CONFIGS=
16475 if test "x$SIM_MIPS_GEN" = x"MULTI"; then :
16476 if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16477 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16478 fi
16479
16480 as_dir=mips; as_fn_mkdir_p
16481 rm -f mips/multi-include.h mips/multi-run.c
16482 sim_mips_seen_default=no
16483
16484 cat << __EOF__ > mips/multi-run.c
16485 /* Main entry point for MULTI simulators.
16486 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16487
16488 This program is free software; you can redistribute it and/or modify
16489 it under the terms of the GNU General Public License as published by
16490 the Free Software Foundation; either version 3 of the License, or
16491 (at your option) any later version.
16492
16493 This program is distributed in the hope that it will be useful,
16494 but WITHOUT ANY WARRANTY; without even the implied warranty of
16495 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16496 GNU General Public License for more details.
16497
16498 You should have received a copy of the GNU General Public License
16499 along with this program. If not, see <http://www.gnu.org/licenses/>.
16500
16501 --
16502
16503 This file was generated by sim/mips/configure. */
16504
16505 #include "sim-main.h"
16506 #include "multi-include.h"
16507 #include "bfd/elf-bfd.h"
16508 #include "bfd/elfxx-mips.h"
16509 #include "elf/mips.h"
16510
16511 #define SD sd
16512 #define CPU cpu
16513
16514 void
16515 sim_engine_run (SIM_DESC sd,
16516 int next_cpu_nr,
16517 int nr_cpus,
16518 int signal) /* ignore */
16519 {
16520 int mach;
16521
16522 if (STATE_ARCHITECTURE (sd) == NULL)
16523 mach = bfd_mach_${sim_mips_multi_default};
16524 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16525 & EF_MIPS_ARCH_ASE_MICROMIPS)
16526 mach = bfd_mach_mips_micromips;
16527 else
16528 {
16529 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16530 if (!mach)
16531 mach = STATE_ARCHITECTURE (SD)->mach;
16532 }
16533
16534 switch (mach)
16535 {
16536 __EOF__
16537
16538 for fc in ${sim_mips_multi_configs}; do
16539
16540 c=`echo ${fc} | sed 's/:[^:]*$//'`
16541 bfdmachs=`echo ${fc} | sed 's/.*://'`
16542 name=`echo ${c} | sed 's/:.*//'`
16543 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16544 filter=`echo ${c} | sed 's/.*://'`
16545
16546 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
16547
16548 case ${c} in #(
16549 *:*mips16*:*) :
16550 ws="m32 m16"
16551
16552 as_fn_append SIM_MIPS_MULTI_SRC " m16${name}_run.c"
16553 as_fn_append SIM_MIPS_MULTI_OBJ " m16${name}_run.o"
16554 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
16555 ;; #(
16556 *:*micromips32*:*) :
16557 ws="micromips_m32 micromips16 micromips32"
16558
16559 as_fn_append SIM_MIPS_MULTI_SRC " micromips${name}_run.c"
16560 as_fn_append SIM_MIPS_MULTI_OBJ " micromips${name}_run.o"
16561 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
16562 ;; #(
16563 *:*micromips64*:*) :
16564 ws="micromips_m64 micromips16 micromips64"
16565
16566 as_fn_append SIM_MIPS_MULTI_SRC " micromips${name}_run.c"
16567 as_fn_append SIM_MIPS_MULTI_OBJ " micromips${name}_run.o"
16568 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
16569 ;; #(
16570 *) :
16571 ws=m32 ;;
16572 esac
16573
16574 for w in ${ws}; do
16575 for base in engine icache idecode model semantics support; do
16576 as_fn_append SIM_MIPS_MULTI_SRC " ${w}${name}_${base}.c"
16577 as_fn_append SIM_MIPS_MULTI_SRC " ${w}${name}_${base}.h"
16578 as_fn_append SIM_MIPS_MULTI_OBJ " ${w}${name}_${base}.o"
16579 done
16580 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
16581 done
16582
16583 echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
16584
16585 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16586 echo " case bfd_mach_${mach}:" >> mips/multi-run.c
16587 if test "x$mach" = x"${sim_mips_multi_default}"; then :
16588 echo " default:" >> mips/multi-run.c
16589 sim_mips_seen_default=yes
16590
16591 fi
16592 done
16593 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16594 >> mips/multi-run.c
16595 echo " break;" >> mips/multi-run.c
16596 done
16597
16598 if test "x$sim_mips_seen_default" = xno; then :
16599 as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16600 fi
16601
16602 cat << __EOF__ >> mips/multi-run.c
16603 }
16604 }
16605 __EOF__
16606
16607 else
16608 SIM_MIPS_MULTI_SRC=doesnt-exist.c
16609 SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)'
16610 if test "x$SIM_MIPS_GEN" = x"M16"; then :
16611 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)'
16612 fi
16613
16614 fi
16615 SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
16616 SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
16617
16618
16619
16620
16621
16622
16623
16624 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16625 SIM_MIPS_GEN_MODE_SINGLE_TRUE=
16626 SIM_MIPS_GEN_MODE_SINGLE_FALSE='#'
16627 else
16628 SIM_MIPS_GEN_MODE_SINGLE_TRUE='#'
16629 SIM_MIPS_GEN_MODE_SINGLE_FALSE=
16630 fi
16631
16632 if test "$SIM_MIPS_GEN" = "M16"; then
16633 SIM_MIPS_GEN_MODE_M16_TRUE=
16634 SIM_MIPS_GEN_MODE_M16_FALSE='#'
16635 else
16636 SIM_MIPS_GEN_MODE_M16_TRUE='#'
16637 SIM_MIPS_GEN_MODE_M16_FALSE=
16638 fi
16639
16640 if test "$SIM_MIPS_GEN" = "MULTI"; then
16641 SIM_MIPS_GEN_MODE_MULTI_TRUE=
16642 SIM_MIPS_GEN_MODE_MULTI_FALSE='#'
16643 else
16644 SIM_MIPS_GEN_MODE_MULTI_TRUE='#'
16645 SIM_MIPS_GEN_MODE_MULTI_FALSE=
16646 fi
16647
16648
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16650 $as_echo_n "checking riscv bitsize... " >&6; }
16651 SIM_RISCV_BITSIZE=64
16652 case $target in #(
16653 riscv32*) :
16654 SIM_RISCV_BITSIZE=32 ;; #(
16655 *) :
16656 ;;
16657 esac
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
16659 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
16660
16661
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16663 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16664 # Check whether --enable-sim-rx-cycle-accurate was given.
16665 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16666 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16667 yes | no) ;;
16668 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16669 esac
16670 fi
16671
16672 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16673 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16675 $as_echo "yes" >&6; }
16676 else
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16678 $as_echo "no" >&6; }
16679 fi
16680
16681
16682
16683 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16684
16685 cat >confcache <<\_ACEOF
16686 # This file is a shell script that caches the results of configure
16687 # tests run on this system so they can be shared between configure
16688 # scripts and configure runs, see configure's option --config-cache.
16689 # It is not useful on other systems. If it contains results you don't
16690 # want to keep, you may remove or edit it.
16691 #
16692 # config.status only pays attention to the cache file if you give it
16693 # the --recheck option to rerun configure.
16694 #
16695 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16696 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16697 # following values.
16698
16699 _ACEOF
16700
16701 # The following way of writing the cache mishandles newlines in values,
16702 # but we know of no workaround that is simple, portable, and efficient.
16703 # So, we kill variables containing newlines.
16704 # Ultrix sh set writes to stderr and can't be redirected directly,
16705 # and sets the high bit in the cache file unless we assign to the vars.
16706 (
16707 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16708 eval ac_val=\$$ac_var
16709 case $ac_val in #(
16710 *${as_nl}*)
16711 case $ac_var in #(
16712 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16713 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16714 esac
16715 case $ac_var in #(
16716 _ | IFS | as_nl) ;; #(
16717 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16718 *) { eval $ac_var=; unset $ac_var;} ;;
16719 esac ;;
16720 esac
16721 done
16722
16723 (set) 2>&1 |
16724 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16725 *${as_nl}ac_space=\ *)
16726 # `set' does not quote correctly, so add quotes: double-quote
16727 # substitution turns \\\\ into \\, and sed turns \\ into \.
16728 sed -n \
16729 "s/'/'\\\\''/g;
16730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16731 ;; #(
16732 *)
16733 # `set' quotes correctly as required by POSIX, so do not add quotes.
16734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16735 ;;
16736 esac |
16737 sort
16738 ) |
16739 sed '
16740 /^ac_cv_env_/b end
16741 t clear
16742 :clear
16743 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16744 t end
16745 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16746 :end' >>confcache
16747 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16748 if test -w "$cache_file"; then
16749 if test "x$cache_file" != "x/dev/null"; then
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16751 $as_echo "$as_me: updating cache $cache_file" >&6;}
16752 if test ! -f "$cache_file" || test -h "$cache_file"; then
16753 cat confcache >"$cache_file"
16754 else
16755 case $cache_file in #(
16756 */* | ?:*)
16757 mv -f confcache "$cache_file"$$ &&
16758 mv -f "$cache_file"$$ "$cache_file" ;; #(
16759 *)
16760 mv -f confcache "$cache_file" ;;
16761 esac
16762 fi
16763 fi
16764 else
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16767 fi
16768 fi
16769 rm -f confcache
16770
16771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16772 # Let make expand exec_prefix.
16773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16774
16775 DEFS=-DHAVE_CONFIG_H
16776
16777 ac_libobjs=
16778 ac_ltlibobjs=
16779 U=
16780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16781 # 1. Remove the extension, and $U if already installed.
16782 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16783 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16785 # will be set to the directory where LIBOBJS objects are built.
16786 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16787 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16788 done
16789 LIBOBJS=$ac_libobjs
16790
16791 LTLIBOBJS=$ac_ltlibobjs
16792
16793
16794
16795 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16796 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16798 fi
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16800 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16801 if test -n "$am_sleep_pid"; then
16802 # Hide warnings about reused PIDs.
16803 wait $am_sleep_pid 2>/dev/null
16804 fi
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16806 $as_echo "done" >&6; }
16807 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16808 as_fn_error $? "conditional \"AMDEP\" was never defined.
16809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16810 fi
16811 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16812 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16814 fi
16815 if test -n "$EXEEXT"; then
16816 am__EXEEXT_TRUE=
16817 am__EXEEXT_FALSE='#'
16818 else
16819 am__EXEEXT_TRUE='#'
16820 am__EXEEXT_FALSE=
16821 fi
16822
16823 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16824 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16826 fi
16827 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16828 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16830 fi
16831 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16832 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16834 fi
16835 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16836 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16838 fi
16839 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16840 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16842 fi
16843 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16844 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16846 fi
16847 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16848 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16850 fi
16851 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16852 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16854 fi
16855 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16856 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16858 fi
16859 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16860 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16862 fi
16863 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16864 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16866 fi
16867 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16868 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16870 fi
16871 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16872 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16874 fi
16875 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16876 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16878 fi
16879 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16880 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16882 fi
16883 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16884 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16886 fi
16887 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16888 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16890 fi
16891 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16892 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16894 fi
16895 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16896 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16898 fi
16899 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16900 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16902 fi
16903 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16904 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16906 fi
16907 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16908 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16910 fi
16911 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16912 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16914 fi
16915 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16916 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16918 fi
16919 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16920 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 fi
16923 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16924 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 fi
16927 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16928 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 fi
16931 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16932 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 fi
16935 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16936 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 fi
16939 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16940 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 fi
16943 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16944 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946 fi
16947 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16948 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16950 fi
16951 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
16952 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
16953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16954 fi
16955 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16956 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16958 fi
16959 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16960 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16962 fi
16963 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
16964 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16966 fi
16967 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
16968 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16970 fi
16971 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
16972 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 fi
16975
16976 : "${CONFIG_STATUS=./config.status}"
16977 ac_write_fail=0
16978 ac_clean_files_save=$ac_clean_files
16979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16981 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16982 as_write_fail=0
16983 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16984 #! $SHELL
16985 # Generated by $as_me.
16986 # Run this file to recreate the current configuration.
16987 # Compiler output produced by configure, useful for debugging
16988 # configure, is in config.log if it exists.
16989
16990 debug=false
16991 ac_cs_recheck=false
16992 ac_cs_silent=false
16993
16994 SHELL=\${CONFIG_SHELL-$SHELL}
16995 export SHELL
16996 _ASEOF
16997 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16998 ## -------------------- ##
16999 ## M4sh Initialization. ##
17000 ## -------------------- ##
17001
17002 # Be more Bourne compatible
17003 DUALCASE=1; export DUALCASE # for MKS sh
17004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17005 emulate sh
17006 NULLCMD=:
17007 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17008 # is contrary to our usage. Disable this feature.
17009 alias -g '${1+"$@"}'='"$@"'
17010 setopt NO_GLOB_SUBST
17011 else
17012 case `(set -o) 2>/dev/null` in #(
17013 *posix*) :
17014 set -o posix ;; #(
17015 *) :
17016 ;;
17017 esac
17018 fi
17019
17020
17021 as_nl='
17022 '
17023 export as_nl
17024 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17025 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17027 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17028 # Prefer a ksh shell builtin over an external printf program on Solaris,
17029 # but without wasting forks for bash or zsh.
17030 if test -z "$BASH_VERSION$ZSH_VERSION" \
17031 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17032 as_echo='print -r --'
17033 as_echo_n='print -rn --'
17034 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17035 as_echo='printf %s\n'
17036 as_echo_n='printf %s'
17037 else
17038 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17039 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17040 as_echo_n='/usr/ucb/echo -n'
17041 else
17042 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17043 as_echo_n_body='eval
17044 arg=$1;
17045 case $arg in #(
17046 *"$as_nl"*)
17047 expr "X$arg" : "X\\(.*\\)$as_nl";
17048 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17049 esac;
17050 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17051 '
17052 export as_echo_n_body
17053 as_echo_n='sh -c $as_echo_n_body as_echo'
17054 fi
17055 export as_echo_body
17056 as_echo='sh -c $as_echo_body as_echo'
17057 fi
17058
17059 # The user is always right.
17060 if test "${PATH_SEPARATOR+set}" != set; then
17061 PATH_SEPARATOR=:
17062 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17063 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17064 PATH_SEPARATOR=';'
17065 }
17066 fi
17067
17068
17069 # IFS
17070 # We need space, tab and new line, in precisely that order. Quoting is
17071 # there to prevent editors from complaining about space-tab.
17072 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17073 # splitting by setting IFS to empty value.)
17074 IFS=" "" $as_nl"
17075
17076 # Find who we are. Look in the path if we contain no directory separator.
17077 as_myself=
17078 case $0 in #((
17079 *[\\/]* ) as_myself=$0 ;;
17080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17081 for as_dir in $PATH
17082 do
17083 IFS=$as_save_IFS
17084 test -z "$as_dir" && as_dir=.
17085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17086 done
17087 IFS=$as_save_IFS
17088
17089 ;;
17090 esac
17091 # We did not find ourselves, most probably we were run as `sh COMMAND'
17092 # in which case we are not to be found in the path.
17093 if test "x$as_myself" = x; then
17094 as_myself=$0
17095 fi
17096 if test ! -f "$as_myself"; then
17097 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17098 exit 1
17099 fi
17100
17101 # Unset variables that we do not need and which cause bugs (e.g. in
17102 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17103 # suppresses any "Segmentation fault" message there. '((' could
17104 # trigger a bug in pdksh 5.2.14.
17105 for as_var in BASH_ENV ENV MAIL MAILPATH
17106 do eval test x\${$as_var+set} = xset \
17107 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17108 done
17109 PS1='$ '
17110 PS2='> '
17111 PS4='+ '
17112
17113 # NLS nuisances.
17114 LC_ALL=C
17115 export LC_ALL
17116 LANGUAGE=C
17117 export LANGUAGE
17118
17119 # CDPATH.
17120 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17121
17122
17123 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17124 # ----------------------------------------
17125 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17126 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17127 # script with STATUS, using 1 if that was 0.
17128 as_fn_error ()
17129 {
17130 as_status=$1; test $as_status -eq 0 && as_status=1
17131 if test "$4"; then
17132 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17133 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17134 fi
17135 $as_echo "$as_me: error: $2" >&2
17136 as_fn_exit $as_status
17137 } # as_fn_error
17138
17139
17140 # as_fn_set_status STATUS
17141 # -----------------------
17142 # Set $? to STATUS, without forking.
17143 as_fn_set_status ()
17144 {
17145 return $1
17146 } # as_fn_set_status
17147
17148 # as_fn_exit STATUS
17149 # -----------------
17150 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17151 as_fn_exit ()
17152 {
17153 set +e
17154 as_fn_set_status $1
17155 exit $1
17156 } # as_fn_exit
17157
17158 # as_fn_unset VAR
17159 # ---------------
17160 # Portably unset VAR.
17161 as_fn_unset ()
17162 {
17163 { eval $1=; unset $1;}
17164 }
17165 as_unset=as_fn_unset
17166 # as_fn_append VAR VALUE
17167 # ----------------------
17168 # Append the text in VALUE to the end of the definition contained in VAR. Take
17169 # advantage of any shell optimizations that allow amortized linear growth over
17170 # repeated appends, instead of the typical quadratic growth present in naive
17171 # implementations.
17172 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17173 eval 'as_fn_append ()
17174 {
17175 eval $1+=\$2
17176 }'
17177 else
17178 as_fn_append ()
17179 {
17180 eval $1=\$$1\$2
17181 }
17182 fi # as_fn_append
17183
17184 # as_fn_arith ARG...
17185 # ------------------
17186 # Perform arithmetic evaluation on the ARGs, and store the result in the
17187 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17188 # must be portable across $(()) and expr.
17189 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17190 eval 'as_fn_arith ()
17191 {
17192 as_val=$(( $* ))
17193 }'
17194 else
17195 as_fn_arith ()
17196 {
17197 as_val=`expr "$@" || test $? -eq 1`
17198 }
17199 fi # as_fn_arith
17200
17201
17202 if expr a : '\(a\)' >/dev/null 2>&1 &&
17203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17204 as_expr=expr
17205 else
17206 as_expr=false
17207 fi
17208
17209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17210 as_basename=basename
17211 else
17212 as_basename=false
17213 fi
17214
17215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17216 as_dirname=dirname
17217 else
17218 as_dirname=false
17219 fi
17220
17221 as_me=`$as_basename -- "$0" ||
17222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17223 X"$0" : 'X\(//\)$' \| \
17224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17225 $as_echo X/"$0" |
17226 sed '/^.*\/\([^/][^/]*\)\/*$/{
17227 s//\1/
17228 q
17229 }
17230 /^X\/\(\/\/\)$/{
17231 s//\1/
17232 q
17233 }
17234 /^X\/\(\/\).*/{
17235 s//\1/
17236 q
17237 }
17238 s/.*/./; q'`
17239
17240 # Avoid depending upon Character Ranges.
17241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17244 as_cr_digits='0123456789'
17245 as_cr_alnum=$as_cr_Letters$as_cr_digits
17246
17247 ECHO_C= ECHO_N= ECHO_T=
17248 case `echo -n x` in #(((((
17249 -n*)
17250 case `echo 'xy\c'` in
17251 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17252 xy) ECHO_C='\c';;
17253 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17254 ECHO_T=' ';;
17255 esac;;
17256 *)
17257 ECHO_N='-n';;
17258 esac
17259
17260 rm -f conf$$ conf$$.exe conf$$.file
17261 if test -d conf$$.dir; then
17262 rm -f conf$$.dir/conf$$.file
17263 else
17264 rm -f conf$$.dir
17265 mkdir conf$$.dir 2>/dev/null
17266 fi
17267 if (echo >conf$$.file) 2>/dev/null; then
17268 if ln -s conf$$.file conf$$ 2>/dev/null; then
17269 as_ln_s='ln -s'
17270 # ... but there are two gotchas:
17271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17273 # In both cases, we have to default to `cp -pR'.
17274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17275 as_ln_s='cp -pR'
17276 elif ln conf$$.file conf$$ 2>/dev/null; then
17277 as_ln_s=ln
17278 else
17279 as_ln_s='cp -pR'
17280 fi
17281 else
17282 as_ln_s='cp -pR'
17283 fi
17284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17285 rmdir conf$$.dir 2>/dev/null
17286
17287
17288 # as_fn_mkdir_p
17289 # -------------
17290 # Create "$as_dir" as a directory, including parents if necessary.
17291 as_fn_mkdir_p ()
17292 {
17293
17294 case $as_dir in #(
17295 -*) as_dir=./$as_dir;;
17296 esac
17297 test -d "$as_dir" || eval $as_mkdir_p || {
17298 as_dirs=
17299 while :; do
17300 case $as_dir in #(
17301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17302 *) as_qdir=$as_dir;;
17303 esac
17304 as_dirs="'$as_qdir' $as_dirs"
17305 as_dir=`$as_dirname -- "$as_dir" ||
17306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17307 X"$as_dir" : 'X\(//\)[^/]' \| \
17308 X"$as_dir" : 'X\(//\)$' \| \
17309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17310 $as_echo X"$as_dir" |
17311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17312 s//\1/
17313 q
17314 }
17315 /^X\(\/\/\)[^/].*/{
17316 s//\1/
17317 q
17318 }
17319 /^X\(\/\/\)$/{
17320 s//\1/
17321 q
17322 }
17323 /^X\(\/\).*/{
17324 s//\1/
17325 q
17326 }
17327 s/.*/./; q'`
17328 test -d "$as_dir" && break
17329 done
17330 test -z "$as_dirs" || eval "mkdir $as_dirs"
17331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17332
17333
17334 } # as_fn_mkdir_p
17335 if mkdir -p . 2>/dev/null; then
17336 as_mkdir_p='mkdir -p "$as_dir"'
17337 else
17338 test -d ./-p && rmdir ./-p
17339 as_mkdir_p=false
17340 fi
17341
17342
17343 # as_fn_executable_p FILE
17344 # -----------------------
17345 # Test if FILE is an executable regular file.
17346 as_fn_executable_p ()
17347 {
17348 test -f "$1" && test -x "$1"
17349 } # as_fn_executable_p
17350 as_test_x='test -x'
17351 as_executable_p=as_fn_executable_p
17352
17353 # Sed expression to map a string onto a valid CPP name.
17354 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17355
17356 # Sed expression to map a string onto a valid variable name.
17357 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17358
17359
17360 exec 6>&1
17361 ## ----------------------------------- ##
17362 ## Main body of $CONFIG_STATUS script. ##
17363 ## ----------------------------------- ##
17364 _ASEOF
17365 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17366
17367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17368 # Save the log message, to keep $0 and so on meaningful, and to
17369 # report actual input values of CONFIG_FILES etc. instead of their
17370 # values after options handling.
17371 ac_log="
17372 This file was extended by sim $as_me 0, which was
17373 generated by GNU Autoconf 2.69. Invocation command line was
17374
17375 CONFIG_FILES = $CONFIG_FILES
17376 CONFIG_HEADERS = $CONFIG_HEADERS
17377 CONFIG_LINKS = $CONFIG_LINKS
17378 CONFIG_COMMANDS = $CONFIG_COMMANDS
17379 $ $0 $@
17380
17381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17382 "
17383
17384 _ACEOF
17385
17386 case $ac_config_files in *"
17387 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17388 esac
17389
17390 case $ac_config_headers in *"
17391 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17392 esac
17393
17394
17395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17396 # Files that config.status was made for.
17397 config_files="$ac_config_files"
17398 config_headers="$ac_config_headers"
17399 config_commands="$ac_config_commands"
17400
17401 _ACEOF
17402
17403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17404 ac_cs_usage="\
17405 \`$as_me' instantiates files and other configuration actions
17406 from templates according to the current configuration. Unless the files
17407 and actions are specified as TAGs, all are instantiated by default.
17408
17409 Usage: $0 [OPTION]... [TAG]...
17410
17411 -h, --help print this help, then exit
17412 -V, --version print version number and configuration settings, then exit
17413 --config print configuration, then exit
17414 -q, --quiet, --silent
17415 do not print progress messages
17416 -d, --debug don't remove temporary files
17417 --recheck update $as_me by reconfiguring in the same conditions
17418 --file=FILE[:TEMPLATE]
17419 instantiate the configuration file FILE
17420 --header=FILE[:TEMPLATE]
17421 instantiate the configuration header FILE
17422
17423 Configuration files:
17424 $config_files
17425
17426 Configuration headers:
17427 $config_headers
17428
17429 Configuration commands:
17430 $config_commands
17431
17432 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17433 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17434
17435 _ACEOF
17436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17437 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17438 ac_cs_version="\\
17439 sim config.status 0
17440 configured by $0, generated by GNU Autoconf 2.69,
17441 with options \\"\$ac_cs_config\\"
17442
17443 Copyright (C) 2012 Free Software Foundation, Inc.
17444 This config.status script is free software; the Free Software Foundation
17445 gives unlimited permission to copy, distribute and modify it."
17446
17447 ac_pwd='$ac_pwd'
17448 srcdir='$srcdir'
17449 INSTALL='$INSTALL'
17450 MKDIR_P='$MKDIR_P'
17451 AWK='$AWK'
17452 test -n "\$AWK" || AWK=awk
17453 _ACEOF
17454
17455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17456 # The default lists apply if the user does not specify any file.
17457 ac_need_defaults=:
17458 while test $# != 0
17459 do
17460 case $1 in
17461 --*=?*)
17462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17463 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17464 ac_shift=:
17465 ;;
17466 --*=)
17467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17468 ac_optarg=
17469 ac_shift=:
17470 ;;
17471 *)
17472 ac_option=$1
17473 ac_optarg=$2
17474 ac_shift=shift
17475 ;;
17476 esac
17477
17478 case $ac_option in
17479 # Handling of the options.
17480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17481 ac_cs_recheck=: ;;
17482 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17483 $as_echo "$ac_cs_version"; exit ;;
17484 --config | --confi | --conf | --con | --co | --c )
17485 $as_echo "$ac_cs_config"; exit ;;
17486 --debug | --debu | --deb | --de | --d | -d )
17487 debug=: ;;
17488 --file | --fil | --fi | --f )
17489 $ac_shift
17490 case $ac_optarg in
17491 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17492 '') as_fn_error $? "missing file argument" ;;
17493 esac
17494 as_fn_append CONFIG_FILES " '$ac_optarg'"
17495 ac_need_defaults=false;;
17496 --header | --heade | --head | --hea )
17497 $ac_shift
17498 case $ac_optarg in
17499 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17500 esac
17501 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17502 ac_need_defaults=false;;
17503 --he | --h)
17504 # Conflict between --help and --header
17505 as_fn_error $? "ambiguous option: \`$1'
17506 Try \`$0 --help' for more information.";;
17507 --help | --hel | -h )
17508 $as_echo "$ac_cs_usage"; exit ;;
17509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17511 ac_cs_silent=: ;;
17512
17513 # This is an error.
17514 -*) as_fn_error $? "unrecognized option: \`$1'
17515 Try \`$0 --help' for more information." ;;
17516
17517 *) as_fn_append ac_config_targets " $1"
17518 ac_need_defaults=false ;;
17519
17520 esac
17521 shift
17522 done
17523
17524 ac_configure_extra_args=
17525
17526 if $ac_cs_silent; then
17527 exec 6>/dev/null
17528 ac_configure_extra_args="$ac_configure_extra_args --silent"
17529 fi
17530
17531 _ACEOF
17532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17533 if \$ac_cs_recheck; then
17534 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17535 shift
17536 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17537 CONFIG_SHELL='$SHELL'
17538 export CONFIG_SHELL
17539 exec "\$@"
17540 fi
17541
17542 _ACEOF
17543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17544 exec 5>>config.log
17545 {
17546 echo
17547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17548 ## Running $as_me. ##
17549 _ASBOX
17550 $as_echo "$ac_log"
17551 } >&5
17552
17553 _ACEOF
17554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17555 #
17556 # INIT-COMMANDS
17557 #
17558
17559
17560 # The HP-UX ksh and POSIX shell print the target directory to stdout
17561 # if CDPATH is set.
17562 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17563
17564 sed_quote_subst='$sed_quote_subst'
17565 double_quote_subst='$double_quote_subst'
17566 delay_variable_subst='$delay_variable_subst'
17567 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17568 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17569 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17570 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17571 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17572 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17573 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17574 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17575 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17576 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17577 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17578 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17579 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17580 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17581 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17582 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17583 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17584 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17585 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17586 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17587 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17588 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17589 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17590 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17591 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17592 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17593 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17594 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17595 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17596 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17597 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17598 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17599 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17600 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17601 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17602 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17603 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17604 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17605 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17606 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17607 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17608 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17609 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17610 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17611 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17612 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17613 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17614 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17615 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"`'
17616 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17617 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17618 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17619 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17620 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17621 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17622 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17623 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17624 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17625 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17626 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17627 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17628 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17629 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17630 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17631 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17632 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17633 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17634 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17635 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17636 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17637 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17638 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17639 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17640 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17641 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17642 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17643 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17644 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17645 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17646 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17647 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17648 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17649 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17650 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17651 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17652 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17653 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17654 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17655 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17656 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17657 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17658 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17659 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17660 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17661 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17662 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17663 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17664 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17665 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17666 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17667 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17668 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17669 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17670 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17671 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17672 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17673 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17674 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17675 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17676 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17677 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17678 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17679 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17680 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17681 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17682 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17683 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17684 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17685 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17686 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17687
17688 LTCC='$LTCC'
17689 LTCFLAGS='$LTCFLAGS'
17690 compiler='$compiler_DEFAULT'
17691
17692 # A function that is used when there is no print builtin or printf.
17693 func_fallback_echo ()
17694 {
17695 eval 'cat <<_LTECHO_EOF
17696 \$1
17697 _LTECHO_EOF'
17698 }
17699
17700 # Quote evaled strings.
17701 for var in SHELL \
17702 ECHO \
17703 SED \
17704 GREP \
17705 EGREP \
17706 FGREP \
17707 LD \
17708 NM \
17709 LN_S \
17710 lt_SP2NL \
17711 lt_NL2SP \
17712 reload_flag \
17713 OBJDUMP \
17714 deplibs_check_method \
17715 file_magic_cmd \
17716 AR \
17717 AR_FLAGS \
17718 STRIP \
17719 RANLIB \
17720 CC \
17721 CFLAGS \
17722 compiler \
17723 lt_cv_sys_global_symbol_pipe \
17724 lt_cv_sys_global_symbol_to_cdecl \
17725 lt_cv_sys_global_symbol_to_c_name_address \
17726 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17727 lt_prog_compiler_no_builtin_flag \
17728 lt_prog_compiler_wl \
17729 lt_prog_compiler_pic \
17730 lt_prog_compiler_static \
17731 lt_cv_prog_compiler_c_o \
17732 need_locks \
17733 DSYMUTIL \
17734 NMEDIT \
17735 LIPO \
17736 OTOOL \
17737 OTOOL64 \
17738 shrext_cmds \
17739 export_dynamic_flag_spec \
17740 whole_archive_flag_spec \
17741 compiler_needs_object \
17742 with_gnu_ld \
17743 allow_undefined_flag \
17744 no_undefined_flag \
17745 hardcode_libdir_flag_spec \
17746 hardcode_libdir_flag_spec_ld \
17747 hardcode_libdir_separator \
17748 fix_srcfile_path \
17749 exclude_expsyms \
17750 include_expsyms \
17751 file_list_spec \
17752 variables_saved_for_relink \
17753 libname_spec \
17754 library_names_spec \
17755 soname_spec \
17756 install_override_mode \
17757 finish_eval \
17758 old_striplib \
17759 striplib; do
17760 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17761 *[\\\\\\\`\\"\\\$]*)
17762 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17763 ;;
17764 *)
17765 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17766 ;;
17767 esac
17768 done
17769
17770 # Double-quote double-evaled strings.
17771 for var in reload_cmds \
17772 old_postinstall_cmds \
17773 old_postuninstall_cmds \
17774 old_archive_cmds \
17775 extract_expsyms_cmds \
17776 old_archive_from_new_cmds \
17777 old_archive_from_expsyms_cmds \
17778 archive_cmds \
17779 archive_expsym_cmds \
17780 module_cmds \
17781 module_expsym_cmds \
17782 export_symbols_cmds \
17783 prelink_cmds \
17784 postinstall_cmds \
17785 postuninstall_cmds \
17786 finish_cmds \
17787 sys_lib_search_path_spec \
17788 sys_lib_dlsearch_path_spec; do
17789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17790 *[\\\\\\\`\\"\\\$]*)
17791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17792 ;;
17793 *)
17794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17795 ;;
17796 esac
17797 done
17798
17799 ac_aux_dir='$ac_aux_dir'
17800 xsi_shell='$xsi_shell'
17801 lt_shell_append='$lt_shell_append'
17802
17803 # See if we are running on zsh, and set the options which allow our
17804 # commands through without removal of \ escapes INIT.
17805 if test -n "\${ZSH_VERSION+set}" ; then
17806 setopt NO_GLOB_SUBST
17807 fi
17808
17809
17810 PACKAGE='$PACKAGE'
17811 VERSION='$VERSION'
17812 TIMESTAMP='$TIMESTAMP'
17813 RM='$RM'
17814 ofile='$ofile'
17815
17816
17817
17818 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17819 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17820 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17821 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17822 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17823 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17824 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17825 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17826 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17827 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17828 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17829 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17830 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17831 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17832 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17833 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17834 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17835 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17836 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17837 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17838 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17839 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17840 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17841 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17842 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17843 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17844 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17845 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17846 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17847 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17848 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17849 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17850 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17851
17852 _ACEOF
17853
17854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17855
17856 # Handling of arguments.
17857 for ac_config_target in $ac_config_targets
17858 do
17859 case $ac_config_target in
17860 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17861 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17862 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17863 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
17864 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
17865 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
17866 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17867 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
17868 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
17869 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
17870 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17871 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
17872 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
17873 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
17874 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17875 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
17876 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
17877 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
17878 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17879 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
17880 "bpf/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bpf/Makefile.sim:bpf/Makefile.in" ;;
17881 "bpf/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bpf/Makefile" ;;
17882 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17883 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
17884 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
17885 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
17886 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17887 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
17888 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
17889 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
17890 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17891 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
17892 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
17893 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
17894 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17895 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
17896 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
17897 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
17898 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17899 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
17900 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
17901 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
17902 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17903 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
17904 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
17905 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
17906 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17907 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
17908 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
17909 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
17910 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17911 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
17912 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
17913 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
17914 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17915 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
17916 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
17917 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
17918 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17919 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
17920 "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
17921 "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
17922 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17923 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
17924 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
17925 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
17926 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17927 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
17928 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
17929 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
17930 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17931 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
17932 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
17933 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
17934 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17935 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
17936 "mips/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mips/Makefile.sim:mips/Makefile.in" ;;
17937 "mips/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mips/Makefile" ;;
17938 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17939 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
17940 "mn10300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mn10300/Makefile.sim:mn10300/Makefile.in" ;;
17941 "mn10300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mn10300/Makefile" ;;
17942 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17943 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
17944 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
17945 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
17946 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17947 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
17948 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
17949 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
17950 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17951 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
17952 "or1k/Makefile.sim") CONFIG_FILES="$CONFIG_FILES or1k/Makefile.sim:or1k/Makefile.in" ;;
17953 "or1k/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS or1k/Makefile" ;;
17954 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17955 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
17956 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17957 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
17958 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
17959 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
17960 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17961 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
17962 "riscv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES riscv/Makefile.sim:riscv/Makefile.in" ;;
17963 "riscv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS riscv/Makefile" ;;
17964 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17965 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
17966 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
17967 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
17968 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17969 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
17970 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
17971 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
17972 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17973 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
17974 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
17975 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
17976 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17977 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
17978 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
17979 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
17980 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17981 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
17982 "v850/Makefile.sim") CONFIG_FILES="$CONFIG_FILES v850/Makefile.sim:v850/Makefile.in" ;;
17983 "v850/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS v850/Makefile" ;;
17984 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17985 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
17986 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
17987 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
17988 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17989 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
17990 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17991 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17992 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17993
17994 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17995 esac
17996 done
17997
17998
17999 # If the user did not use the arguments to specify the items to instantiate,
18000 # then the envvar interface is used. Set only those that are not.
18001 # We use the long form for the default assignment because of an extremely
18002 # bizarre bug on SunOS 4.1.3.
18003 if $ac_need_defaults; then
18004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18007 fi
18008
18009 # Have a temporary directory for convenience. Make it in the build tree
18010 # simply because there is no reason against having it here, and in addition,
18011 # creating and moving files from /tmp can sometimes cause problems.
18012 # Hook for its removal unless debugging.
18013 # Note that there is a small window in which the directory will not be cleaned:
18014 # after its creation but before its name has been assigned to `$tmp'.
18015 $debug ||
18016 {
18017 tmp= ac_tmp=
18018 trap 'exit_status=$?
18019 : "${ac_tmp:=$tmp}"
18020 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18021 ' 0
18022 trap 'as_fn_exit 1' 1 2 13 15
18023 }
18024 # Create a (secure) tmp directory for tmp files.
18025
18026 {
18027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18028 test -d "$tmp"
18029 } ||
18030 {
18031 tmp=./conf$$-$RANDOM
18032 (umask 077 && mkdir "$tmp")
18033 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18034 ac_tmp=$tmp
18035
18036 # Set up the scripts for CONFIG_FILES section.
18037 # No need to generate them if there are no CONFIG_FILES.
18038 # This happens for instance with `./config.status config.h'.
18039 if test -n "$CONFIG_FILES"; then
18040
18041
18042 ac_cr=`echo X | tr X '\015'`
18043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18044 # But we know of no other shell where ac_cr would be empty at this
18045 # point, so we can use a bashism as a fallback.
18046 if test "x$ac_cr" = x; then
18047 eval ac_cr=\$\'\\r\'
18048 fi
18049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18051 ac_cs_awk_cr='\\r'
18052 else
18053 ac_cs_awk_cr=$ac_cr
18054 fi
18055
18056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18057 _ACEOF
18058
18059
18060 {
18061 echo "cat >conf$$subs.awk <<_ACEOF" &&
18062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18063 echo "_ACEOF"
18064 } >conf$$subs.sh ||
18065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18067 ac_delim='%!_!# '
18068 for ac_last_try in false false false false false :; do
18069 . ./conf$$subs.sh ||
18070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18071
18072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18073 if test $ac_delim_n = $ac_delim_num; then
18074 break
18075 elif $ac_last_try; then
18076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18077 else
18078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18079 fi
18080 done
18081 rm -f conf$$subs.sh
18082
18083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18085 _ACEOF
18086 sed -n '
18087 h
18088 s/^/S["/; s/!.*/"]=/
18089 p
18090 g
18091 s/^[^!]*!//
18092 :repl
18093 t repl
18094 s/'"$ac_delim"'$//
18095 t delim
18096 :nl
18097 h
18098 s/\(.\{148\}\)..*/\1/
18099 t more1
18100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18101 p
18102 n
18103 b repl
18104 :more1
18105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18106 p
18107 g
18108 s/.\{148\}//
18109 t nl
18110 :delim
18111 h
18112 s/\(.\{148\}\)..*/\1/
18113 t more2
18114 s/["\\]/\\&/g; s/^/"/; s/$/"/
18115 p
18116 b
18117 :more2
18118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18119 p
18120 g
18121 s/.\{148\}//
18122 t delim
18123 ' <conf$$subs.awk | sed '
18124 /^[^""]/{
18125 N
18126 s/\n//
18127 }
18128 ' >>$CONFIG_STATUS || ac_write_fail=1
18129 rm -f conf$$subs.awk
18130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18131 _ACAWK
18132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18133 for (key in S) S_is_set[key] = 1
18134 FS = "\a"
18135
18136 }
18137 {
18138 line = $ 0
18139 nfields = split(line, field, "@")
18140 substed = 0
18141 len = length(field[1])
18142 for (i = 2; i < nfields; i++) {
18143 key = field[i]
18144 keylen = length(key)
18145 if (S_is_set[key]) {
18146 value = S[key]
18147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18148 len += length(value) + length(field[++i])
18149 substed = 1
18150 } else
18151 len += 1 + keylen
18152 }
18153
18154 print line
18155 }
18156
18157 _ACAWK
18158 _ACEOF
18159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18161 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18162 else
18163 cat
18164 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18165 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18166 _ACEOF
18167
18168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18170 # trailing colons and then remove the whole line if VPATH becomes empty
18171 # (actually we leave an empty line to preserve line numbers).
18172 if test "x$srcdir" = x.; then
18173 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18174 h
18175 s///
18176 s/^/:/
18177 s/[ ]*$/:/
18178 s/:\$(srcdir):/:/g
18179 s/:\${srcdir}:/:/g
18180 s/:@srcdir@:/:/g
18181 s/^:*//
18182 s/:*$//
18183 x
18184 s/\(=[ ]*\).*/\1/
18185 G
18186 s/\n//
18187 s/^[^=]*=[ ]*$//
18188 }'
18189 fi
18190
18191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18192 fi # test -n "$CONFIG_FILES"
18193
18194 # Set up the scripts for CONFIG_HEADERS section.
18195 # No need to generate them if there are no CONFIG_HEADERS.
18196 # This happens for instance with `./config.status Makefile'.
18197 if test -n "$CONFIG_HEADERS"; then
18198 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18199 BEGIN {
18200 _ACEOF
18201
18202 # Transform confdefs.h into an awk script `defines.awk', embedded as
18203 # here-document in config.status, that substitutes the proper values into
18204 # config.h.in to produce config.h.
18205
18206 # Create a delimiter string that does not exist in confdefs.h, to ease
18207 # handling of long lines.
18208 ac_delim='%!_!# '
18209 for ac_last_try in false false :; do
18210 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18211 if test -z "$ac_tt"; then
18212 break
18213 elif $ac_last_try; then
18214 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18215 else
18216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18217 fi
18218 done
18219
18220 # For the awk script, D is an array of macro values keyed by name,
18221 # likewise P contains macro parameters if any. Preserve backslash
18222 # newline sequences.
18223
18224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18225 sed -n '
18226 s/.\{148\}/&'"$ac_delim"'/g
18227 t rset
18228 :rset
18229 s/^[ ]*#[ ]*define[ ][ ]*/ /
18230 t def
18231 d
18232 :def
18233 s/\\$//
18234 t bsnl
18235 s/["\\]/\\&/g
18236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18237 D["\1"]=" \3"/p
18238 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18239 d
18240 :bsnl
18241 s/["\\]/\\&/g
18242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18243 D["\1"]=" \3\\\\\\n"\\/p
18244 t cont
18245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18246 t cont
18247 d
18248 :cont
18249 n
18250 s/.\{148\}/&'"$ac_delim"'/g
18251 t clear
18252 :clear
18253 s/\\$//
18254 t bsnlc
18255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18256 d
18257 :bsnlc
18258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18259 b cont
18260 ' <confdefs.h | sed '
18261 s/'"$ac_delim"'/"\\\
18262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18263
18264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18265 for (key in D) D_is_set[key] = 1
18266 FS = "\a"
18267 }
18268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18269 line = \$ 0
18270 split(line, arg, " ")
18271 if (arg[1] == "#") {
18272 defundef = arg[2]
18273 mac1 = arg[3]
18274 } else {
18275 defundef = substr(arg[1], 2)
18276 mac1 = arg[2]
18277 }
18278 split(mac1, mac2, "(") #)
18279 macro = mac2[1]
18280 prefix = substr(line, 1, index(line, defundef) - 1)
18281 if (D_is_set[macro]) {
18282 # Preserve the white space surrounding the "#".
18283 print prefix "define", macro P[macro] D[macro]
18284 next
18285 } else {
18286 # Replace #undef with comments. This is necessary, for example,
18287 # in the case of _POSIX_SOURCE, which is predefined and required
18288 # on some systems where configure will not decide to define it.
18289 if (defundef == "undef") {
18290 print "/*", prefix defundef, macro, "*/"
18291 next
18292 }
18293 }
18294 }
18295 { print }
18296 _ACAWK
18297 _ACEOF
18298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18299 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18300 fi # test -n "$CONFIG_HEADERS"
18301
18302
18303 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18304 shift
18305 for ac_tag
18306 do
18307 case $ac_tag in
18308 :[FHLC]) ac_mode=$ac_tag; continue;;
18309 esac
18310 case $ac_mode$ac_tag in
18311 :[FHL]*:*);;
18312 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18313 :[FH]-) ac_tag=-:-;;
18314 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18315 esac
18316 ac_save_IFS=$IFS
18317 IFS=:
18318 set x $ac_tag
18319 IFS=$ac_save_IFS
18320 shift
18321 ac_file=$1
18322 shift
18323
18324 case $ac_mode in
18325 :L) ac_source=$1;;
18326 :[FH])
18327 ac_file_inputs=
18328 for ac_f
18329 do
18330 case $ac_f in
18331 -) ac_f="$ac_tmp/stdin";;
18332 *) # Look for the file first in the build tree, then in the source tree
18333 # (if the path is not absolute). The absolute path cannot be DOS-style,
18334 # because $ac_f cannot contain `:'.
18335 test -f "$ac_f" ||
18336 case $ac_f in
18337 [\\/$]*) false;;
18338 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18339 esac ||
18340 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18341 esac
18342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18343 as_fn_append ac_file_inputs " '$ac_f'"
18344 done
18345
18346 # Let's still pretend it is `configure' which instantiates (i.e., don't
18347 # use $as_me), people would be surprised to read:
18348 # /* config.h. Generated by config.status. */
18349 configure_input='Generated from '`
18350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18351 `' by configure.'
18352 if test x"$ac_file" != x-; then
18353 configure_input="$ac_file. $configure_input"
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18355 $as_echo "$as_me: creating $ac_file" >&6;}
18356 fi
18357 # Neutralize special characters interpreted by sed in replacement strings.
18358 case $configure_input in #(
18359 *\&* | *\|* | *\\* )
18360 ac_sed_conf_input=`$as_echo "$configure_input" |
18361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18362 *) ac_sed_conf_input=$configure_input;;
18363 esac
18364
18365 case $ac_tag in
18366 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18368 esac
18369 ;;
18370 esac
18371
18372 ac_dir=`$as_dirname -- "$ac_file" ||
18373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18374 X"$ac_file" : 'X\(//\)[^/]' \| \
18375 X"$ac_file" : 'X\(//\)$' \| \
18376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18377 $as_echo X"$ac_file" |
18378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18379 s//\1/
18380 q
18381 }
18382 /^X\(\/\/\)[^/].*/{
18383 s//\1/
18384 q
18385 }
18386 /^X\(\/\/\)$/{
18387 s//\1/
18388 q
18389 }
18390 /^X\(\/\).*/{
18391 s//\1/
18392 q
18393 }
18394 s/.*/./; q'`
18395 as_dir="$ac_dir"; as_fn_mkdir_p
18396 ac_builddir=.
18397
18398 case "$ac_dir" in
18399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18400 *)
18401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18402 # A ".." for each directory in $ac_dir_suffix.
18403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18404 case $ac_top_builddir_sub in
18405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18407 esac ;;
18408 esac
18409 ac_abs_top_builddir=$ac_pwd
18410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18411 # for backward compatibility:
18412 ac_top_builddir=$ac_top_build_prefix
18413
18414 case $srcdir in
18415 .) # We are building in place.
18416 ac_srcdir=.
18417 ac_top_srcdir=$ac_top_builddir_sub
18418 ac_abs_top_srcdir=$ac_pwd ;;
18419 [\\/]* | ?:[\\/]* ) # Absolute name.
18420 ac_srcdir=$srcdir$ac_dir_suffix;
18421 ac_top_srcdir=$srcdir
18422 ac_abs_top_srcdir=$srcdir ;;
18423 *) # Relative name.
18424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18425 ac_top_srcdir=$ac_top_build_prefix$srcdir
18426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18427 esac
18428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18429
18430
18431 case $ac_mode in
18432 :F)
18433 #
18434 # CONFIG_FILE
18435 #
18436
18437 case $INSTALL in
18438 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18439 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18440 esac
18441 ac_MKDIR_P=$MKDIR_P
18442 case $MKDIR_P in
18443 [\\/$]* | ?:[\\/]* ) ;;
18444 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18445 esac
18446 _ACEOF
18447
18448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18449 # If the template does not know about datarootdir, expand it.
18450 # FIXME: This hack should be removed a few years after 2.60.
18451 ac_datarootdir_hack=; ac_datarootdir_seen=
18452 ac_sed_dataroot='
18453 /datarootdir/ {
18454 p
18455 q
18456 }
18457 /@datadir@/p
18458 /@docdir@/p
18459 /@infodir@/p
18460 /@localedir@/p
18461 /@mandir@/p'
18462 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18463 *datarootdir*) ac_datarootdir_seen=yes;;
18464 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18466 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18467 _ACEOF
18468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18469 ac_datarootdir_hack='
18470 s&@datadir@&$datadir&g
18471 s&@docdir@&$docdir&g
18472 s&@infodir@&$infodir&g
18473 s&@localedir@&$localedir&g
18474 s&@mandir@&$mandir&g
18475 s&\\\${datarootdir}&$datarootdir&g' ;;
18476 esac
18477 _ACEOF
18478
18479 # Neutralize VPATH when `$srcdir' = `.'.
18480 # Shell code in configure.ac might set extrasub.
18481 # FIXME: do we really want to maintain this feature?
18482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18483 ac_sed_extra="$ac_vpsub
18484 $extrasub
18485 _ACEOF
18486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18487 :t
18488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18489 s|@configure_input@|$ac_sed_conf_input|;t t
18490 s&@top_builddir@&$ac_top_builddir_sub&;t t
18491 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18492 s&@srcdir@&$ac_srcdir&;t t
18493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18494 s&@top_srcdir@&$ac_top_srcdir&;t t
18495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18496 s&@builddir@&$ac_builddir&;t t
18497 s&@abs_builddir@&$ac_abs_builddir&;t t
18498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18499 s&@INSTALL@&$ac_INSTALL&;t t
18500 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18501 $ac_datarootdir_hack
18502 "
18503 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18504 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18505
18506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18507 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18509 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18511 which seems to be undefined. Please make sure it is defined" >&5
18512 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18513 which seems to be undefined. Please make sure it is defined" >&2;}
18514
18515 rm -f "$ac_tmp/stdin"
18516 case $ac_file in
18517 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18518 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18519 esac \
18520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18521 ;;
18522 :H)
18523 #
18524 # CONFIG_HEADER
18525 #
18526 if test x"$ac_file" != x-; then
18527 {
18528 $as_echo "/* $configure_input */" \
18529 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18530 } >"$ac_tmp/config.h" \
18531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18532 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18535 else
18536 rm -f "$ac_file"
18537 mv "$ac_tmp/config.h" "$ac_file" \
18538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18539 fi
18540 else
18541 $as_echo "/* $configure_input */" \
18542 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18543 || as_fn_error $? "could not create -" "$LINENO" 5
18544 fi
18545 # Compute "$ac_file"'s index in $config_headers.
18546 _am_arg="$ac_file"
18547 _am_stamp_count=1
18548 for _am_header in $config_headers :; do
18549 case $_am_header in
18550 $_am_arg | $_am_arg:* )
18551 break ;;
18552 * )
18553 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18554 esac
18555 done
18556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18558 X"$_am_arg" : 'X\(//\)[^/]' \| \
18559 X"$_am_arg" : 'X\(//\)$' \| \
18560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18561 $as_echo X"$_am_arg" |
18562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18563 s//\1/
18564 q
18565 }
18566 /^X\(\/\/\)[^/].*/{
18567 s//\1/
18568 q
18569 }
18570 /^X\(\/\/\)$/{
18571 s//\1/
18572 q
18573 }
18574 /^X\(\/\).*/{
18575 s//\1/
18576 q
18577 }
18578 s/.*/./; q'`/stamp-h$_am_stamp_count
18579 ;;
18580
18581 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18582 $as_echo "$as_me: executing $ac_file commands" >&6;}
18583 ;;
18584 esac
18585
18586
18587 case $ac_file$ac_mode in
18588 "libtool":C)
18589
18590 # See if we are running on zsh, and set the options which allow our
18591 # commands through without removal of \ escapes.
18592 if test -n "${ZSH_VERSION+set}" ; then
18593 setopt NO_GLOB_SUBST
18594 fi
18595
18596 cfgfile="${ofile}T"
18597 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18598 $RM "$cfgfile"
18599
18600 cat <<_LT_EOF >> "$cfgfile"
18601 #! $SHELL
18602
18603 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18604 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18606 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18607 #
18608 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18609 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18610 # Written by Gordon Matzigkeit, 1996
18611 #
18612 # This file is part of GNU Libtool.
18613 #
18614 # GNU Libtool is free software; you can redistribute it and/or
18615 # modify it under the terms of the GNU General Public License as
18616 # published by the Free Software Foundation; either version 2 of
18617 # the License, or (at your option) any later version.
18618 #
18619 # As a special exception to the GNU General Public License,
18620 # if you distribute this file as part of a program or library that
18621 # is built using GNU Libtool, you may include this file under the
18622 # same distribution terms that you use for the rest of that program.
18623 #
18624 # GNU Libtool is distributed in the hope that it will be useful,
18625 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18626 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18627 # GNU General Public License for more details.
18628 #
18629 # You should have received a copy of the GNU General Public License
18630 # along with GNU Libtool; see the file COPYING. If not, a copy
18631 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18632 # obtained by writing to the Free Software Foundation, Inc.,
18633 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18634
18635
18636 # The names of the tagged configurations supported by this script.
18637 available_tags=""
18638
18639 # ### BEGIN LIBTOOL CONFIG
18640
18641 # Which release of libtool.m4 was used?
18642 macro_version=$macro_version
18643 macro_revision=$macro_revision
18644
18645 # Whether or not to build shared libraries.
18646 build_libtool_libs=$enable_shared
18647
18648 # Whether or not to build static libraries.
18649 build_old_libs=$enable_static
18650
18651 # What type of objects to build.
18652 pic_mode=$pic_mode
18653
18654 # Whether or not to optimize for fast installation.
18655 fast_install=$enable_fast_install
18656
18657 # Shell to use when invoking shell scripts.
18658 SHELL=$lt_SHELL
18659
18660 # An echo program that protects backslashes.
18661 ECHO=$lt_ECHO
18662
18663 # The host system.
18664 host_alias=$host_alias
18665 host=$host
18666 host_os=$host_os
18667
18668 # The build system.
18669 build_alias=$build_alias
18670 build=$build
18671 build_os=$build_os
18672
18673 # A sed program that does not truncate output.
18674 SED=$lt_SED
18675
18676 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18677 Xsed="\$SED -e 1s/^X//"
18678
18679 # A grep program that handles long lines.
18680 GREP=$lt_GREP
18681
18682 # An ERE matcher.
18683 EGREP=$lt_EGREP
18684
18685 # A literal string matcher.
18686 FGREP=$lt_FGREP
18687
18688 # A BSD- or MS-compatible name lister.
18689 NM=$lt_NM
18690
18691 # Whether we need soft or hard links.
18692 LN_S=$lt_LN_S
18693
18694 # What is the maximum length of a command?
18695 max_cmd_len=$max_cmd_len
18696
18697 # Object file suffix (normally "o").
18698 objext=$ac_objext
18699
18700 # Executable file suffix (normally "").
18701 exeext=$exeext
18702
18703 # whether the shell understands "unset".
18704 lt_unset=$lt_unset
18705
18706 # turn spaces into newlines.
18707 SP2NL=$lt_lt_SP2NL
18708
18709 # turn newlines into spaces.
18710 NL2SP=$lt_lt_NL2SP
18711
18712 # An object symbol dumper.
18713 OBJDUMP=$lt_OBJDUMP
18714
18715 # Method to check whether dependent libraries are shared objects.
18716 deplibs_check_method=$lt_deplibs_check_method
18717
18718 # Command to use when deplibs_check_method == "file_magic".
18719 file_magic_cmd=$lt_file_magic_cmd
18720
18721 # The archiver.
18722 AR=$lt_AR
18723 AR_FLAGS=$lt_AR_FLAGS
18724
18725 # A symbol stripping program.
18726 STRIP=$lt_STRIP
18727
18728 # Commands used to install an old-style archive.
18729 RANLIB=$lt_RANLIB
18730 old_postinstall_cmds=$lt_old_postinstall_cmds
18731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18732
18733 # Whether to use a lock for old archive extraction.
18734 lock_old_archive_extraction=$lock_old_archive_extraction
18735
18736 # A C compiler.
18737 LTCC=$lt_CC
18738
18739 # LTCC compiler flags.
18740 LTCFLAGS=$lt_CFLAGS
18741
18742 # Take the output of nm and produce a listing of raw symbols and C names.
18743 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18744
18745 # Transform the output of nm in a proper C declaration.
18746 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18747
18748 # Transform the output of nm in a C name address pair.
18749 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18750
18751 # Transform the output of nm in a C name address pair when lib prefix is needed.
18752 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18753
18754 # The name of the directory that contains temporary libtool files.
18755 objdir=$objdir
18756
18757 # Used to examine libraries when file_magic_cmd begins with "file".
18758 MAGIC_CMD=$MAGIC_CMD
18759
18760 # Must we lock files when doing compilation?
18761 need_locks=$lt_need_locks
18762
18763 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18764 DSYMUTIL=$lt_DSYMUTIL
18765
18766 # Tool to change global to local symbols on Mac OS X.
18767 NMEDIT=$lt_NMEDIT
18768
18769 # Tool to manipulate fat objects and archives on Mac OS X.
18770 LIPO=$lt_LIPO
18771
18772 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18773 OTOOL=$lt_OTOOL
18774
18775 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18776 OTOOL64=$lt_OTOOL64
18777
18778 # Old archive suffix (normally "a").
18779 libext=$libext
18780
18781 # Shared library suffix (normally ".so").
18782 shrext_cmds=$lt_shrext_cmds
18783
18784 # The commands to extract the exported symbol list from a shared archive.
18785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18786
18787 # Variables whose values should be saved in libtool wrapper scripts and
18788 # restored at link time.
18789 variables_saved_for_relink=$lt_variables_saved_for_relink
18790
18791 # Do we need the "lib" prefix for modules?
18792 need_lib_prefix=$need_lib_prefix
18793
18794 # Do we need a version for libraries?
18795 need_version=$need_version
18796
18797 # Library versioning type.
18798 version_type=$version_type
18799
18800 # Shared library runtime path variable.
18801 runpath_var=$runpath_var
18802
18803 # Shared library path variable.
18804 shlibpath_var=$shlibpath_var
18805
18806 # Is shlibpath searched before the hard-coded library search path?
18807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18808
18809 # Format of library name prefix.
18810 libname_spec=$lt_libname_spec
18811
18812 # List of archive names. First name is the real one, the rest are links.
18813 # The last name is the one that the linker finds with -lNAME
18814 library_names_spec=$lt_library_names_spec
18815
18816 # The coded name of the library, if different from the real name.
18817 soname_spec=$lt_soname_spec
18818
18819 # Permission mode override for installation of shared libraries.
18820 install_override_mode=$lt_install_override_mode
18821
18822 # Command to use after installation of a shared archive.
18823 postinstall_cmds=$lt_postinstall_cmds
18824
18825 # Command to use after uninstallation of a shared archive.
18826 postuninstall_cmds=$lt_postuninstall_cmds
18827
18828 # Commands used to finish a libtool library installation in a directory.
18829 finish_cmds=$lt_finish_cmds
18830
18831 # As "finish_cmds", except a single script fragment to be evaled but
18832 # not shown.
18833 finish_eval=$lt_finish_eval
18834
18835 # Whether we should hardcode library paths into libraries.
18836 hardcode_into_libs=$hardcode_into_libs
18837
18838 # Compile-time system search path for libraries.
18839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18840
18841 # Run-time system search path for libraries.
18842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18843
18844 # Whether dlopen is supported.
18845 dlopen_support=$enable_dlopen
18846
18847 # Whether dlopen of programs is supported.
18848 dlopen_self=$enable_dlopen_self
18849
18850 # Whether dlopen of statically linked programs is supported.
18851 dlopen_self_static=$enable_dlopen_self_static
18852
18853 # Commands to strip libraries.
18854 old_striplib=$lt_old_striplib
18855 striplib=$lt_striplib
18856
18857
18858 # The linker used to build libraries.
18859 LD=$lt_LD
18860
18861 # How to create reloadable object files.
18862 reload_flag=$lt_reload_flag
18863 reload_cmds=$lt_reload_cmds
18864
18865 # Commands used to build an old-style archive.
18866 old_archive_cmds=$lt_old_archive_cmds
18867
18868 # A language specific compiler.
18869 CC=$lt_compiler
18870
18871 # Is the compiler the GNU compiler?
18872 with_gcc=$GCC
18873
18874 # Compiler flag to turn off builtin functions.
18875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18876
18877 # How to pass a linker flag through the compiler.
18878 wl=$lt_lt_prog_compiler_wl
18879
18880 # Additional compiler flags for building library objects.
18881 pic_flag=$lt_lt_prog_compiler_pic
18882
18883 # Compiler flag to prevent dynamic linking.
18884 link_static_flag=$lt_lt_prog_compiler_static
18885
18886 # Does compiler simultaneously support -c and -o options?
18887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18888
18889 # Whether or not to add -lc for building shared libraries.
18890 build_libtool_need_lc=$archive_cmds_need_lc
18891
18892 # Whether or not to disallow shared libs when runtime libs are static.
18893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18894
18895 # Compiler flag to allow reflexive dlopens.
18896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18897
18898 # Compiler flag to generate shared objects directly from archives.
18899 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18900
18901 # Whether the compiler copes with passing no objects directly.
18902 compiler_needs_object=$lt_compiler_needs_object
18903
18904 # Create an old-style archive from a shared archive.
18905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18906
18907 # Create a temporary old-style archive to link instead of a shared archive.
18908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18909
18910 # Commands used to build a shared archive.
18911 archive_cmds=$lt_archive_cmds
18912 archive_expsym_cmds=$lt_archive_expsym_cmds
18913
18914 # Commands used to build a loadable module if different from building
18915 # a shared archive.
18916 module_cmds=$lt_module_cmds
18917 module_expsym_cmds=$lt_module_expsym_cmds
18918
18919 # Whether we are building with GNU ld or not.
18920 with_gnu_ld=$lt_with_gnu_ld
18921
18922 # Flag that allows shared libraries with undefined symbols to be built.
18923 allow_undefined_flag=$lt_allow_undefined_flag
18924
18925 # Flag that enforces no undefined symbols.
18926 no_undefined_flag=$lt_no_undefined_flag
18927
18928 # Flag to hardcode \$libdir into a binary during linking.
18929 # This must work even if \$libdir does not exist
18930 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18931
18932 # If ld is used when linking, flag to hardcode \$libdir into a binary
18933 # during linking. This must work even if \$libdir does not exist.
18934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18935
18936 # Whether we need a single "-rpath" flag with a separated argument.
18937 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18938
18939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18940 # DIR into the resulting binary.
18941 hardcode_direct=$hardcode_direct
18942
18943 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18944 # DIR into the resulting binary and the resulting library dependency is
18945 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18946 # library is relocated.
18947 hardcode_direct_absolute=$hardcode_direct_absolute
18948
18949 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18950 # into the resulting binary.
18951 hardcode_minus_L=$hardcode_minus_L
18952
18953 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18954 # into the resulting binary.
18955 hardcode_shlibpath_var=$hardcode_shlibpath_var
18956
18957 # Set to "yes" if building a shared library automatically hardcodes DIR
18958 # into the library and all subsequent libraries and executables linked
18959 # against it.
18960 hardcode_automatic=$hardcode_automatic
18961
18962 # Set to yes if linker adds runtime paths of dependent libraries
18963 # to runtime path list.
18964 inherit_rpath=$inherit_rpath
18965
18966 # Whether libtool must link a program against all its dependency libraries.
18967 link_all_deplibs=$link_all_deplibs
18968
18969 # Fix the shell variable \$srcfile for the compiler.
18970 fix_srcfile_path=$lt_fix_srcfile_path
18971
18972 # Set to "yes" if exported symbols are required.
18973 always_export_symbols=$always_export_symbols
18974
18975 # The commands to list exported symbols.
18976 export_symbols_cmds=$lt_export_symbols_cmds
18977
18978 # Symbols that should not be listed in the preloaded symbols.
18979 exclude_expsyms=$lt_exclude_expsyms
18980
18981 # Symbols that must always be exported.
18982 include_expsyms=$lt_include_expsyms
18983
18984 # Commands necessary for linking programs (against libraries) with templates.
18985 prelink_cmds=$lt_prelink_cmds
18986
18987 # Specify filename containing input files.
18988 file_list_spec=$lt_file_list_spec
18989
18990 # How to hardcode a shared library path into an executable.
18991 hardcode_action=$hardcode_action
18992
18993 # ### END LIBTOOL CONFIG
18994
18995 _LT_EOF
18996
18997 case $host_os in
18998 aix3*)
18999 cat <<\_LT_EOF >> "$cfgfile"
19000 # AIX sometimes has problems with the GCC collect2 program. For some
19001 # reason, if we set the COLLECT_NAMES environment variable, the problems
19002 # vanish in a puff of smoke.
19003 if test "X${COLLECT_NAMES+set}" != Xset; then
19004 COLLECT_NAMES=
19005 export COLLECT_NAMES
19006 fi
19007 _LT_EOF
19008 ;;
19009 esac
19010
19011
19012 ltmain="$ac_aux_dir/ltmain.sh"
19013
19014
19015 # We use sed instead of cat because bash on DJGPP gets confused if
19016 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19017 # text mode, it properly converts lines to CR/LF. This bash problem
19018 # is reportedly fixed, but why not run on old versions too?
19019 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19020 || (rm -f "$cfgfile"; exit 1)
19021
19022 case $xsi_shell in
19023 yes)
19024 cat << \_LT_EOF >> "$cfgfile"
19025
19026 # func_dirname file append nondir_replacement
19027 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19028 # otherwise set result to NONDIR_REPLACEMENT.
19029 func_dirname ()
19030 {
19031 case ${1} in
19032 */*) func_dirname_result="${1%/*}${2}" ;;
19033 * ) func_dirname_result="${3}" ;;
19034 esac
19035 }
19036
19037 # func_basename file
19038 func_basename ()
19039 {
19040 func_basename_result="${1##*/}"
19041 }
19042
19043 # func_dirname_and_basename file append nondir_replacement
19044 # perform func_basename and func_dirname in a single function
19045 # call:
19046 # dirname: Compute the dirname of FILE. If nonempty,
19047 # add APPEND to the result, otherwise set result
19048 # to NONDIR_REPLACEMENT.
19049 # value returned in "$func_dirname_result"
19050 # basename: Compute filename of FILE.
19051 # value retuned in "$func_basename_result"
19052 # Implementation must be kept synchronized with func_dirname
19053 # and func_basename. For efficiency, we do not delegate to
19054 # those functions but instead duplicate the functionality here.
19055 func_dirname_and_basename ()
19056 {
19057 case ${1} in
19058 */*) func_dirname_result="${1%/*}${2}" ;;
19059 * ) func_dirname_result="${3}" ;;
19060 esac
19061 func_basename_result="${1##*/}"
19062 }
19063
19064 # func_stripname prefix suffix name
19065 # strip PREFIX and SUFFIX off of NAME.
19066 # PREFIX and SUFFIX must not contain globbing or regex special
19067 # characters, hashes, percent signs, but SUFFIX may contain a leading
19068 # dot (in which case that matches only a dot).
19069 func_stripname ()
19070 {
19071 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19072 # positional parameters, so assign one to ordinary parameter first.
19073 func_stripname_result=${3}
19074 func_stripname_result=${func_stripname_result#"${1}"}
19075 func_stripname_result=${func_stripname_result%"${2}"}
19076 }
19077
19078 # func_opt_split
19079 func_opt_split ()
19080 {
19081 func_opt_split_opt=${1%%=*}
19082 func_opt_split_arg=${1#*=}
19083 }
19084
19085 # func_lo2o object
19086 func_lo2o ()
19087 {
19088 case ${1} in
19089 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19090 *) func_lo2o_result=${1} ;;
19091 esac
19092 }
19093
19094 # func_xform libobj-or-source
19095 func_xform ()
19096 {
19097 func_xform_result=${1%.*}.lo
19098 }
19099
19100 # func_arith arithmetic-term...
19101 func_arith ()
19102 {
19103 func_arith_result=$(( $* ))
19104 }
19105
19106 # func_len string
19107 # STRING may not start with a hyphen.
19108 func_len ()
19109 {
19110 func_len_result=${#1}
19111 }
19112
19113 _LT_EOF
19114 ;;
19115 *) # Bourne compatible functions.
19116 cat << \_LT_EOF >> "$cfgfile"
19117
19118 # func_dirname file append nondir_replacement
19119 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19120 # otherwise set result to NONDIR_REPLACEMENT.
19121 func_dirname ()
19122 {
19123 # Extract subdirectory from the argument.
19124 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19125 if test "X$func_dirname_result" = "X${1}"; then
19126 func_dirname_result="${3}"
19127 else
19128 func_dirname_result="$func_dirname_result${2}"
19129 fi
19130 }
19131
19132 # func_basename file
19133 func_basename ()
19134 {
19135 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19136 }
19137
19138
19139 # func_stripname prefix suffix name
19140 # strip PREFIX and SUFFIX off of NAME.
19141 # PREFIX and SUFFIX must not contain globbing or regex special
19142 # characters, hashes, percent signs, but SUFFIX may contain a leading
19143 # dot (in which case that matches only a dot).
19144 # func_strip_suffix prefix name
19145 func_stripname ()
19146 {
19147 case ${2} in
19148 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19149 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19150 esac
19151 }
19152
19153 # sed scripts:
19154 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19155 my_sed_long_arg='1s/^-[^=]*=//'
19156
19157 # func_opt_split
19158 func_opt_split ()
19159 {
19160 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19161 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19162 }
19163
19164 # func_lo2o object
19165 func_lo2o ()
19166 {
19167 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19168 }
19169
19170 # func_xform libobj-or-source
19171 func_xform ()
19172 {
19173 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19174 }
19175
19176 # func_arith arithmetic-term...
19177 func_arith ()
19178 {
19179 func_arith_result=`expr "$@"`
19180 }
19181
19182 # func_len string
19183 # STRING may not start with a hyphen.
19184 func_len ()
19185 {
19186 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19187 }
19188
19189 _LT_EOF
19190 esac
19191
19192 case $lt_shell_append in
19193 yes)
19194 cat << \_LT_EOF >> "$cfgfile"
19195
19196 # func_append var value
19197 # Append VALUE to the end of shell variable VAR.
19198 func_append ()
19199 {
19200 eval "$1+=\$2"
19201 }
19202 _LT_EOF
19203 ;;
19204 *)
19205 cat << \_LT_EOF >> "$cfgfile"
19206
19207 # func_append var value
19208 # Append VALUE to the end of shell variable VAR.
19209 func_append ()
19210 {
19211 eval "$1=\$$1\$2"
19212 }
19213
19214 _LT_EOF
19215 ;;
19216 esac
19217
19218
19219 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19220 || (rm -f "$cfgfile"; exit 1)
19221
19222 mv -f "$cfgfile" "$ofile" ||
19223 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19224 chmod +x "$ofile"
19225
19226 ;;
19227 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19228 # Older Autoconf quotes --file arguments for eval, but not when files
19229 # are listed without --file. Let's play safe and only enable the eval
19230 # if we detect the quoting.
19231 case $CONFIG_FILES in
19232 *\'*) eval set x "$CONFIG_FILES" ;;
19233 *) set x $CONFIG_FILES ;;
19234 esac
19235 shift
19236 for mf
19237 do
19238 # Strip MF so we end up with the name of the file.
19239 mf=`echo "$mf" | sed -e 's/:.*$//'`
19240 # Check whether this is an Automake generated Makefile or not.
19241 # We used to match only the files named 'Makefile.in', but
19242 # some people rename them; so instead we look at the file content.
19243 # Grep'ing the first line is not enough: some people post-process
19244 # each Makefile.in and add a new line on top of each file to say so.
19245 # Grep'ing the whole file is not good either: AIX grep has a line
19246 # limit of 2048, but all sed's we know have understand at least 4000.
19247 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19248 dirpart=`$as_dirname -- "$mf" ||
19249 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19250 X"$mf" : 'X\(//\)[^/]' \| \
19251 X"$mf" : 'X\(//\)$' \| \
19252 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19253 $as_echo X"$mf" |
19254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19255 s//\1/
19256 q
19257 }
19258 /^X\(\/\/\)[^/].*/{
19259 s//\1/
19260 q
19261 }
19262 /^X\(\/\/\)$/{
19263 s//\1/
19264 q
19265 }
19266 /^X\(\/\).*/{
19267 s//\1/
19268 q
19269 }
19270 s/.*/./; q'`
19271 else
19272 continue
19273 fi
19274 # Extract the definition of DEPDIR, am__include, and am__quote
19275 # from the Makefile without running 'make'.
19276 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19277 test -z "$DEPDIR" && continue
19278 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19279 test -z "$am__include" && continue
19280 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19281 # Find all dependency output files, they are included files with
19282 # $(DEPDIR) in their names. We invoke sed twice because it is the
19283 # simplest approach to changing $(DEPDIR) to its actual value in the
19284 # expansion.
19285 for file in `sed -n "
19286 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19287 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19288 # Make sure the directory exists.
19289 test -f "$dirpart/$file" && continue
19290 fdir=`$as_dirname -- "$file" ||
19291 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19292 X"$file" : 'X\(//\)[^/]' \| \
19293 X"$file" : 'X\(//\)$' \| \
19294 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19295 $as_echo X"$file" |
19296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19297 s//\1/
19298 q
19299 }
19300 /^X\(\/\/\)[^/].*/{
19301 s//\1/
19302 q
19303 }
19304 /^X\(\/\/\)$/{
19305 s//\1/
19306 q
19307 }
19308 /^X\(\/\).*/{
19309 s//\1/
19310 q
19311 }
19312 s/.*/./; q'`
19313 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19314 # echo "creating $dirpart/$file"
19315 echo '# dummy' > "$dirpart/$file"
19316 done
19317 done
19318 }
19319 ;;
19320 "aarch64/Makefile":C) sed -n \
19321 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19322 /^srcdir = / s:$:/aarch64:
19323 p
19324 }' \
19325 <Make-common.sim >aarch64/Makesim1.tmp
19326 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
19327 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
19328 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
19329 <aarch64/Makefile.sim >aarch64/Makefile
19330 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
19331 ;;
19332 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
19333 "arm/Makefile":C) sed -n \
19334 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19335 /^srcdir = / s:$:/arm:
19336 p
19337 }' \
19338 <Make-common.sim >arm/Makesim1.tmp
19339 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
19340 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
19341 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
19342 <arm/Makefile.sim >arm/Makefile
19343 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
19344 ;;
19345 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
19346 "avr/Makefile":C) sed -n \
19347 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19348 /^srcdir = / s:$:/avr:
19349 p
19350 }' \
19351 <Make-common.sim >avr/Makesim1.tmp
19352 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
19353 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
19354 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
19355 <avr/Makefile.sim >avr/Makefile
19356 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
19357 ;;
19358 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
19359 "bfin/Makefile":C) sed -n \
19360 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19361 /^srcdir = / s:$:/bfin:
19362 p
19363 }' \
19364 <Make-common.sim >bfin/Makesim1.tmp
19365 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
19366 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
19367 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
19368 <bfin/Makefile.sim >bfin/Makefile
19369 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
19370 ;;
19371 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
19372 "bpf/Makefile":C) sed -n \
19373 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19374 /^srcdir = / s:$:/bpf:
19375 p
19376 }' \
19377 <Make-common.sim >bpf/Makesim1.tmp
19378 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bpf/Makesim2.tmp
19379 sed -e '/^## COMMON_PRE_/ r bpf/Makesim1.tmp' \
19380 -e '/^## COMMON_POST_/ r bpf/Makesim2.tmp' \
19381 <bpf/Makefile.sim >bpf/Makefile
19382 rm -f bpf/Makesim1.tmp bpf/Makesim2.tmp
19383 ;;
19384 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
19385 "cr16/Makefile":C) sed -n \
19386 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19387 /^srcdir = / s:$:/cr16:
19388 p
19389 }' \
19390 <Make-common.sim >cr16/Makesim1.tmp
19391 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
19392 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
19393 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
19394 <cr16/Makefile.sim >cr16/Makefile
19395 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
19396 ;;
19397 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
19398 "cris/Makefile":C) sed -n \
19399 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19400 /^srcdir = / s:$:/cris:
19401 p
19402 }' \
19403 <Make-common.sim >cris/Makesim1.tmp
19404 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
19405 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
19406 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
19407 <cris/Makefile.sim >cris/Makefile
19408 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
19409 ;;
19410 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
19411 "d10v/Makefile":C) sed -n \
19412 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19413 /^srcdir = / s:$:/d10v:
19414 p
19415 }' \
19416 <Make-common.sim >d10v/Makesim1.tmp
19417 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
19418 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
19419 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
19420 <d10v/Makefile.sim >d10v/Makefile
19421 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
19422 ;;
19423 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
19424 "frv/Makefile":C) sed -n \
19425 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19426 /^srcdir = / s:$:/frv:
19427 p
19428 }' \
19429 <Make-common.sim >frv/Makesim1.tmp
19430 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
19431 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
19432 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
19433 <frv/Makefile.sim >frv/Makefile
19434 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
19435 ;;
19436 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
19437 "ft32/Makefile":C) sed -n \
19438 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19439 /^srcdir = / s:$:/ft32:
19440 p
19441 }' \
19442 <Make-common.sim >ft32/Makesim1.tmp
19443 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
19444 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
19445 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
19446 <ft32/Makefile.sim >ft32/Makefile
19447 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
19448 ;;
19449 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
19450 "h8300/Makefile":C) sed -n \
19451 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19452 /^srcdir = / s:$:/h8300:
19453 p
19454 }' \
19455 <Make-common.sim >h8300/Makesim1.tmp
19456 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
19457 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
19458 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
19459 <h8300/Makefile.sim >h8300/Makefile
19460 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
19461 ;;
19462 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
19463 "iq2000/Makefile":C) sed -n \
19464 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19465 /^srcdir = / s:$:/iq2000:
19466 p
19467 }' \
19468 <Make-common.sim >iq2000/Makesim1.tmp
19469 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
19470 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
19471 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
19472 <iq2000/Makefile.sim >iq2000/Makefile
19473 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
19474 ;;
19475 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
19476 "lm32/Makefile":C) sed -n \
19477 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19478 /^srcdir = / s:$:/lm32:
19479 p
19480 }' \
19481 <Make-common.sim >lm32/Makesim1.tmp
19482 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
19483 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
19484 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
19485 <lm32/Makefile.sim >lm32/Makefile
19486 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
19487 ;;
19488 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
19489 "m32c/Makefile":C) sed -n \
19490 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19491 /^srcdir = / s:$:/m32c:
19492 p
19493 }' \
19494 <Make-common.sim >m32c/Makesim1.tmp
19495 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
19496 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
19497 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
19498 <m32c/Makefile.sim >m32c/Makefile
19499 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
19500 ;;
19501 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
19502 "m32r/Makefile":C) sed -n \
19503 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19504 /^srcdir = / s:$:/m32r:
19505 p
19506 }' \
19507 <Make-common.sim >m32r/Makesim1.tmp
19508 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
19509 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
19510 -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
19511 <m32r/Makefile.sim >m32r/Makefile
19512 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
19513 ;;
19514 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
19515 "m68hc11/Makefile":C) sed -n \
19516 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19517 /^srcdir = / s:$:/m68hc11:
19518 p
19519 }' \
19520 <Make-common.sim >m68hc11/Makesim1.tmp
19521 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
19522 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
19523 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
19524 <m68hc11/Makefile.sim >m68hc11/Makefile
19525 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
19526 ;;
19527 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
19528 "mcore/Makefile":C) sed -n \
19529 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19530 /^srcdir = / s:$:/mcore:
19531 p
19532 }' \
19533 <Make-common.sim >mcore/Makesim1.tmp
19534 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
19535 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
19536 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
19537 <mcore/Makefile.sim >mcore/Makefile
19538 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
19539 ;;
19540 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
19541 "microblaze/Makefile":C) sed -n \
19542 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19543 /^srcdir = / s:$:/microblaze:
19544 p
19545 }' \
19546 <Make-common.sim >microblaze/Makesim1.tmp
19547 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
19548 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
19549 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
19550 <microblaze/Makefile.sim >microblaze/Makefile
19551 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
19552 ;;
19553 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
19554 "mips/Makefile":C) sed -n \
19555 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19556 /^srcdir = / s:$:/mips:
19557 p
19558 }' \
19559 <Make-common.sim >mips/Makesim1.tmp
19560 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mips/Makesim2.tmp
19561 sed -e '/^## COMMON_PRE_/ r mips/Makesim1.tmp' \
19562 -e '/^## COMMON_POST_/ r mips/Makesim2.tmp' \
19563 <mips/Makefile.sim >mips/Makefile
19564 rm -f mips/Makesim1.tmp mips/Makesim2.tmp
19565 ;;
19566 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
19567 "mn10300/Makefile":C) sed -n \
19568 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19569 /^srcdir = / s:$:/mn10300:
19570 p
19571 }' \
19572 <Make-common.sim >mn10300/Makesim1.tmp
19573 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mn10300/Makesim2.tmp
19574 sed -e '/^## COMMON_PRE_/ r mn10300/Makesim1.tmp' \
19575 -e '/^## COMMON_POST_/ r mn10300/Makesim2.tmp' \
19576 <mn10300/Makefile.sim >mn10300/Makefile
19577 rm -f mn10300/Makesim1.tmp mn10300/Makesim2.tmp
19578 ;;
19579 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
19580 "moxie/Makefile":C) sed -n \
19581 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19582 /^srcdir = / s:$:/moxie:
19583 p
19584 }' \
19585 <Make-common.sim >moxie/Makesim1.tmp
19586 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
19587 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
19588 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
19589 <moxie/Makefile.sim >moxie/Makefile
19590 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
19591 ;;
19592 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
19593 "msp430/Makefile":C) sed -n \
19594 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19595 /^srcdir = / s:$:/msp430:
19596 p
19597 }' \
19598 <Make-common.sim >msp430/Makesim1.tmp
19599 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
19600 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
19601 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
19602 <msp430/Makefile.sim >msp430/Makefile
19603 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
19604 ;;
19605 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
19606 "or1k/Makefile":C) sed -n \
19607 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19608 /^srcdir = / s:$:/or1k:
19609 p
19610 }' \
19611 <Make-common.sim >or1k/Makesim1.tmp
19612 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >or1k/Makesim2.tmp
19613 sed -e '/^## COMMON_PRE_/ r or1k/Makesim1.tmp' \
19614 -e '/^## COMMON_POST_/ r or1k/Makesim2.tmp' \
19615 <or1k/Makefile.sim >or1k/Makefile
19616 rm -f or1k/Makesim1.tmp or1k/Makesim2.tmp
19617 ;;
19618 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
19619 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
19620 "pru/Makefile":C) sed -n \
19621 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19622 /^srcdir = / s:$:/pru:
19623 p
19624 }' \
19625 <Make-common.sim >pru/Makesim1.tmp
19626 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
19627 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
19628 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
19629 <pru/Makefile.sim >pru/Makefile
19630 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
19631 ;;
19632 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
19633 "riscv/Makefile":C) sed -n \
19634 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19635 /^srcdir = / s:$:/riscv:
19636 p
19637 }' \
19638 <Make-common.sim >riscv/Makesim1.tmp
19639 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >riscv/Makesim2.tmp
19640 sed -e '/^## COMMON_PRE_/ r riscv/Makesim1.tmp' \
19641 -e '/^## COMMON_POST_/ r riscv/Makesim2.tmp' \
19642 <riscv/Makefile.sim >riscv/Makefile
19643 rm -f riscv/Makesim1.tmp riscv/Makesim2.tmp
19644 ;;
19645 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
19646 "rl78/Makefile":C) sed -n \
19647 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19648 /^srcdir = / s:$:/rl78:
19649 p
19650 }' \
19651 <Make-common.sim >rl78/Makesim1.tmp
19652 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
19653 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
19654 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
19655 <rl78/Makefile.sim >rl78/Makefile
19656 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
19657 ;;
19658 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
19659 "rx/Makefile":C) sed -n \
19660 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19661 /^srcdir = / s:$:/rx:
19662 p
19663 }' \
19664 <Make-common.sim >rx/Makesim1.tmp
19665 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
19666 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
19667 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
19668 <rx/Makefile.sim >rx/Makefile
19669 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
19670 ;;
19671 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
19672 "sh/Makefile":C) sed -n \
19673 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19674 /^srcdir = / s:$:/sh:
19675 p
19676 }' \
19677 <Make-common.sim >sh/Makesim1.tmp
19678 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
19679 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
19680 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
19681 <sh/Makefile.sim >sh/Makefile
19682 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
19683 ;;
19684 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
19685 "erc32/Makefile":C) sed -n \
19686 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19687 /^srcdir = / s:$:/erc32:
19688 p
19689 }' \
19690 <Make-common.sim >erc32/Makesim1.tmp
19691 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
19692 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
19693 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
19694 <erc32/Makefile.sim >erc32/Makefile
19695 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
19696 ;;
19697 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
19698 "v850/Makefile":C) sed -n \
19699 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19700 /^srcdir = / s:$:/v850:
19701 p
19702 }' \
19703 <Make-common.sim >v850/Makesim1.tmp
19704 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >v850/Makesim2.tmp
19705 sed -e '/^## COMMON_PRE_/ r v850/Makesim1.tmp' \
19706 -e '/^## COMMON_POST_/ r v850/Makesim2.tmp' \
19707 <v850/Makefile.sim >v850/Makefile
19708 rm -f v850/Makesim1.tmp v850/Makesim2.tmp
19709 ;;
19710 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
19711 "example-synacor/Makefile":C) sed -n \
19712 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19713 /^srcdir = / s:$:/example-synacor:
19714 p
19715 }' \
19716 <Make-common.sim >example-synacor/Makesim1.tmp
19717 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
19718 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
19719 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
19720 <example-synacor/Makefile.sim >example-synacor/Makefile
19721 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
19722 ;;
19723 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
19724
19725 esac
19726 done # for ac_tag
19727
19728
19729 as_fn_exit 0
19730 _ACEOF
19731 ac_clean_files=$ac_clean_files_save
19732
19733 test $ac_write_fail = 0 ||
19734 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19735
19736
19737 # configure is writing to config.log, and then calls config.status.
19738 # config.status does its own redirection, appending to config.log.
19739 # Unfortunately, on DOS this fails, as config.log is still kept open
19740 # by configure, so config.status won't be able to write to it; its
19741 # output is simply discarded. So we exec the FD to /dev/null,
19742 # effectively closing config.log, so it can be properly (re)opened and
19743 # appended to by config.status. When coming back to configure, we
19744 # need to make the FD available again.
19745 if test "$no_create" != yes; then
19746 ac_cs_success=:
19747 ac_config_status_args=
19748 test "$silent" = yes &&
19749 ac_config_status_args="$ac_config_status_args --quiet"
19750 exec 5>/dev/null
19751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19752 exec 5>>config.log
19753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19754 # would make configure fail if this is the last instruction.
19755 $ac_cs_success || as_fn_exit 1
19756 fi
19757
19758 #
19759 # CONFIG_SUBDIRS section.
19760 #
19761 if test "$no_recursion" != yes; then
19762
19763 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19764 # so they do not pile up.
19765 ac_sub_configure_args=
19766 ac_prev=
19767 eval "set x $ac_configure_args"
19768 shift
19769 for ac_arg
19770 do
19771 if test -n "$ac_prev"; then
19772 ac_prev=
19773 continue
19774 fi
19775 case $ac_arg in
19776 -cache-file | --cache-file | --cache-fil | --cache-fi \
19777 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19778 ac_prev=cache_file ;;
19779 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19780 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19781 | --c=*)
19782 ;;
19783 --config-cache | -C)
19784 ;;
19785 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19786 ac_prev=srcdir ;;
19787 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19788 ;;
19789 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19790 ac_prev=prefix ;;
19791 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19792 ;;
19793 --disable-option-checking)
19794 ;;
19795 *)
19796 case $ac_arg in
19797 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19798 esac
19799 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19800 esac
19801 done
19802
19803 # Always prepend --prefix to ensure using the same prefix
19804 # in subdir configurations.
19805 ac_arg="--prefix=$prefix"
19806 case $ac_arg in
19807 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19808 esac
19809 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19810
19811 # Pass --silent
19812 if test "$silent" = yes; then
19813 ac_sub_configure_args="--silent $ac_sub_configure_args"
19814 fi
19815
19816 # Always prepend --disable-option-checking to silence warnings, since
19817 # different subdirs can have different --enable and --with options.
19818 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19819
19820 ac_popdir=`pwd`
19821 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19822
19823 # Do not complain, so a configure script can configure whichever
19824 # parts of a large source tree are present.
19825 test -d "$srcdir/$ac_dir" || continue
19826
19827 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19828 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19829 $as_echo "$ac_msg" >&6
19830 as_dir="$ac_dir"; as_fn_mkdir_p
19831 ac_builddir=.
19832
19833 case "$ac_dir" in
19834 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19835 *)
19836 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19837 # A ".." for each directory in $ac_dir_suffix.
19838 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19839 case $ac_top_builddir_sub in
19840 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19841 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19842 esac ;;
19843 esac
19844 ac_abs_top_builddir=$ac_pwd
19845 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19846 # for backward compatibility:
19847 ac_top_builddir=$ac_top_build_prefix
19848
19849 case $srcdir in
19850 .) # We are building in place.
19851 ac_srcdir=.
19852 ac_top_srcdir=$ac_top_builddir_sub
19853 ac_abs_top_srcdir=$ac_pwd ;;
19854 [\\/]* | ?:[\\/]* ) # Absolute name.
19855 ac_srcdir=$srcdir$ac_dir_suffix;
19856 ac_top_srcdir=$srcdir
19857 ac_abs_top_srcdir=$srcdir ;;
19858 *) # Relative name.
19859 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19860 ac_top_srcdir=$ac_top_build_prefix$srcdir
19861 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19862 esac
19863 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19864
19865
19866 cd "$ac_dir"
19867
19868 # Check for guested configure; otherwise get Cygnus style configure.
19869 if test -f "$ac_srcdir/configure.gnu"; then
19870 ac_sub_configure=$ac_srcdir/configure.gnu
19871 elif test -f "$ac_srcdir/configure"; then
19872 ac_sub_configure=$ac_srcdir/configure
19873 elif test -f "$ac_srcdir/configure.in"; then
19874 # This should be Cygnus configure.
19875 ac_sub_configure=$ac_aux_dir/configure
19876 else
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19878 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19879 ac_sub_configure=
19880 fi
19881
19882 # The recursion is here.
19883 if test -n "$ac_sub_configure"; then
19884 # Make the cache file name correct relative to the subdirectory.
19885 case $cache_file in
19886 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19887 *) # Relative name.
19888 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19889 esac
19890
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19892 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19893 # The eval makes quoting arguments work.
19894 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19895 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19896 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19897 fi
19898
19899 cd "$ac_popdir"
19900 done
19901 fi
19902 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19904 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19905 fi
19906