]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: mips: move fpu bitsize defines to top-level configure
[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 include_makefile
642 SIM_RX_CYCLE_ACCURATE_FLAGS
643 SIM_RISCV_BITSIZE
644 SIM_MIPS_FPU_BITSIZE
645 SIM_MIPS_BITSIZE
646 SIM_MIPS_SUBTARGET
647 SIM_FRV_TRAPDUMP_FLAGS
648 sim_float
649 sim_bitsize
650 SIM_INLINE
651 SIM_HW_SOCKSER
652 SIM_HW_CFLAGS
653 SIM_ENABLE_HW_FALSE
654 SIM_ENABLE_HW_TRUE
655 cgen
656 cgendir
657 CGEN_MAINT
658 ENABLE_SIM_FALSE
659 ENABLE_SIM_TRUE
660 SIM_ENABLE_IGEN_FALSE
661 SIM_ENABLE_IGEN_TRUE
662 SIM_ENABLE_ARCH_examples_FALSE
663 SIM_ENABLE_ARCH_examples_TRUE
664 CC_FOR_TARGET_EXAMPLE_SYNACOR
665 LD_FOR_TARGET_EXAMPLE_SYNACOR
666 AS_FOR_TARGET_EXAMPLE_SYNACOR
667 SIM_ENABLE_ARCH_v850_FALSE
668 SIM_ENABLE_ARCH_v850_TRUE
669 CC_FOR_TARGET_V850
670 LD_FOR_TARGET_V850
671 AS_FOR_TARGET_V850
672 SIM_ENABLE_ARCH_erc32_FALSE
673 SIM_ENABLE_ARCH_erc32_TRUE
674 CC_FOR_TARGET_ERC32
675 LD_FOR_TARGET_ERC32
676 AS_FOR_TARGET_ERC32
677 SIM_ENABLE_ARCH_sh_FALSE
678 SIM_ENABLE_ARCH_sh_TRUE
679 CC_FOR_TARGET_SH
680 LD_FOR_TARGET_SH
681 AS_FOR_TARGET_SH
682 SIM_ENABLE_ARCH_rx_FALSE
683 SIM_ENABLE_ARCH_rx_TRUE
684 CC_FOR_TARGET_RX
685 LD_FOR_TARGET_RX
686 AS_FOR_TARGET_RX
687 SIM_ENABLE_ARCH_rl78_FALSE
688 SIM_ENABLE_ARCH_rl78_TRUE
689 CC_FOR_TARGET_RL78
690 LD_FOR_TARGET_RL78
691 AS_FOR_TARGET_RL78
692 SIM_ENABLE_ARCH_riscv_FALSE
693 SIM_ENABLE_ARCH_riscv_TRUE
694 CC_FOR_TARGET_RISCV
695 LD_FOR_TARGET_RISCV
696 AS_FOR_TARGET_RISCV
697 SIM_ENABLE_ARCH_pru_FALSE
698 SIM_ENABLE_ARCH_pru_TRUE
699 CC_FOR_TARGET_PRU
700 LD_FOR_TARGET_PRU
701 AS_FOR_TARGET_PRU
702 SIM_ENABLE_ARCH_ppc_FALSE
703 SIM_ENABLE_ARCH_ppc_TRUE
704 CC_FOR_TARGET_PPC
705 LD_FOR_TARGET_PPC
706 AS_FOR_TARGET_PPC
707 SIM_ENABLE_ARCH_or1k_FALSE
708 SIM_ENABLE_ARCH_or1k_TRUE
709 CC_FOR_TARGET_OR1K
710 LD_FOR_TARGET_OR1K
711 AS_FOR_TARGET_OR1K
712 SIM_ENABLE_ARCH_msp430_FALSE
713 SIM_ENABLE_ARCH_msp430_TRUE
714 CC_FOR_TARGET_MSP430
715 LD_FOR_TARGET_MSP430
716 AS_FOR_TARGET_MSP430
717 SIM_ENABLE_ARCH_moxie_FALSE
718 SIM_ENABLE_ARCH_moxie_TRUE
719 CC_FOR_TARGET_MOXIE
720 LD_FOR_TARGET_MOXIE
721 AS_FOR_TARGET_MOXIE
722 SIM_ENABLE_ARCH_mn10300_FALSE
723 SIM_ENABLE_ARCH_mn10300_TRUE
724 CC_FOR_TARGET_MN10300
725 LD_FOR_TARGET_MN10300
726 AS_FOR_TARGET_MN10300
727 SIM_ENABLE_ARCH_mips_FALSE
728 SIM_ENABLE_ARCH_mips_TRUE
729 CC_FOR_TARGET_MIPS
730 LD_FOR_TARGET_MIPS
731 AS_FOR_TARGET_MIPS
732 subdirs
733 SIM_ENABLE_ARCH_microblaze_FALSE
734 SIM_ENABLE_ARCH_microblaze_TRUE
735 CC_FOR_TARGET_MICROBLAZE
736 LD_FOR_TARGET_MICROBLAZE
737 AS_FOR_TARGET_MICROBLAZE
738 SIM_ENABLE_ARCH_mcore_FALSE
739 SIM_ENABLE_ARCH_mcore_TRUE
740 CC_FOR_TARGET_MCORE
741 LD_FOR_TARGET_MCORE
742 AS_FOR_TARGET_MCORE
743 SIM_ENABLE_ARCH_m68hc11_FALSE
744 SIM_ENABLE_ARCH_m68hc11_TRUE
745 CC_FOR_TARGET_M68HC11
746 LD_FOR_TARGET_M68HC11
747 AS_FOR_TARGET_M68HC11
748 SIM_ENABLE_ARCH_m32r_FALSE
749 SIM_ENABLE_ARCH_m32r_TRUE
750 CC_FOR_TARGET_M32R
751 LD_FOR_TARGET_M32R
752 AS_FOR_TARGET_M32R
753 SIM_ENABLE_ARCH_m32c_FALSE
754 SIM_ENABLE_ARCH_m32c_TRUE
755 CC_FOR_TARGET_M32C
756 LD_FOR_TARGET_M32C
757 AS_FOR_TARGET_M32C
758 SIM_ENABLE_ARCH_lm32_FALSE
759 SIM_ENABLE_ARCH_lm32_TRUE
760 CC_FOR_TARGET_LM32
761 LD_FOR_TARGET_LM32
762 AS_FOR_TARGET_LM32
763 SIM_ENABLE_ARCH_iq2000_FALSE
764 SIM_ENABLE_ARCH_iq2000_TRUE
765 CC_FOR_TARGET_IQ2000
766 LD_FOR_TARGET_IQ2000
767 AS_FOR_TARGET_IQ2000
768 SIM_ENABLE_ARCH_h8300_FALSE
769 SIM_ENABLE_ARCH_h8300_TRUE
770 CC_FOR_TARGET_H8300
771 LD_FOR_TARGET_H8300
772 AS_FOR_TARGET_H8300
773 SIM_ENABLE_ARCH_ft32_FALSE
774 SIM_ENABLE_ARCH_ft32_TRUE
775 CC_FOR_TARGET_FT32
776 LD_FOR_TARGET_FT32
777 AS_FOR_TARGET_FT32
778 SIM_ENABLE_ARCH_frv_FALSE
779 SIM_ENABLE_ARCH_frv_TRUE
780 CC_FOR_TARGET_FRV
781 LD_FOR_TARGET_FRV
782 AS_FOR_TARGET_FRV
783 SIM_ENABLE_ARCH_d10v_FALSE
784 SIM_ENABLE_ARCH_d10v_TRUE
785 CC_FOR_TARGET_D10V
786 LD_FOR_TARGET_D10V
787 AS_FOR_TARGET_D10V
788 SIM_ENABLE_ARCH_cris_FALSE
789 SIM_ENABLE_ARCH_cris_TRUE
790 CC_FOR_TARGET_CRIS
791 LD_FOR_TARGET_CRIS
792 AS_FOR_TARGET_CRIS
793 SIM_ENABLE_ARCH_cr16_FALSE
794 SIM_ENABLE_ARCH_cr16_TRUE
795 CC_FOR_TARGET_CR16
796 LD_FOR_TARGET_CR16
797 AS_FOR_TARGET_CR16
798 SIM_ENABLE_ARCH_bpf_FALSE
799 SIM_ENABLE_ARCH_bpf_TRUE
800 CC_FOR_TARGET_BPF
801 LD_FOR_TARGET_BPF
802 AS_FOR_TARGET_BPF
803 SIM_ENABLE_ARCH_bfin_FALSE
804 SIM_ENABLE_ARCH_bfin_TRUE
805 CC_FOR_TARGET_BFIN
806 LD_FOR_TARGET_BFIN
807 AS_FOR_TARGET_BFIN
808 SIM_ENABLE_ARCH_avr_FALSE
809 SIM_ENABLE_ARCH_avr_TRUE
810 CC_FOR_TARGET_AVR
811 LD_FOR_TARGET_AVR
812 AS_FOR_TARGET_AVR
813 SIM_ENABLE_ARCH_arm_FALSE
814 SIM_ENABLE_ARCH_arm_TRUE
815 CC_FOR_TARGET_ARM
816 LD_FOR_TARGET_ARM
817 AS_FOR_TARGET_ARM
818 SIM_ENABLE_ARCH_aarch64_FALSE
819 SIM_ENABLE_ARCH_aarch64_TRUE
820 CC_FOR_TARGET_AARCH64
821 LD_FOR_TARGET_AARCH64
822 AS_FOR_TARGET_AARCH64
823 LD_FOR_TARGET
824 AS_FOR_TARGET
825 CC_FOR_TARGET
826 SIM_COMMON_BUILD_FALSE
827 SIM_COMMON_BUILD_TRUE
828 SIM_ENABLED_ARCHES
829 SIM_SUBDIRS
830 SIM_PRIMARY_TARGET
831 AM_BACKSLASH
832 AM_DEFAULT_VERBOSITY
833 AM_DEFAULT_V
834 AM_V
835 am__fastdepCC_FALSE
836 am__fastdepCC_TRUE
837 CCDEPMODE
838 am__nodep
839 AMDEPBACKSLASH
840 AMDEP_FALSE
841 AMDEP_TRUE
842 am__quote
843 am__include
844 DEPDIR
845 am__untar
846 am__tar
847 AMTAR
848 am__leading_dot
849 SET_MAKE
850 mkdir_p
851 MKDIR_P
852 INSTALL_STRIP_PROGRAM
853 install_sh
854 MAKEINFO
855 AUTOHEADER
856 AUTOMAKE
857 AUTOCONF
858 ACLOCAL
859 VERSION
860 PACKAGE
861 CYGPATH_W
862 am__isrc
863 MAINT
864 MAINTAINER_MODE_FALSE
865 MAINTAINER_MODE_TRUE
866 READLINE_CFLAGS
867 READLINE_LIB
868 TERMCAP_LIB
869 SDL_LIBS
870 SDL_CFLAGS
871 OTOOL64
872 OTOOL
873 LIPO
874 NMEDIT
875 DSYMUTIL
876 AWK
877 STRIP
878 OBJDUMP
879 LN_S
880 NM
881 ac_ct_DUMPBIN
882 DUMPBIN
883 LD
884 FGREP
885 SED
886 LIBTOOL
887 LIBOBJS
888 C_DIALECT
889 PKG_CONFIG_LIBDIR
890 PKG_CONFIG_PATH
891 PKG_CONFIG
892 RANLIB
893 AR
894 LDFLAGS_FOR_BUILD
895 CPPFLAGS_FOR_BUILD
896 CFLAGS_FOR_BUILD
897 RANLIB_FOR_BUILD
898 CC_FOR_BUILD
899 AR_FOR_BUILD
900 DTC
901 INSTALL_DATA
902 INSTALL_SCRIPT
903 INSTALL_PROGRAM
904 EGREP
905 GREP
906 CPP
907 OBJEXT
908 EXEEXT
909 ac_ct_CC
910 CPPFLAGS
911 LDFLAGS
912 CFLAGS
913 CC
914 target_os
915 target_vendor
916 target_cpu
917 target
918 host_os
919 host_vendor
920 host_cpu
921 host
922 build_os
923 build_vendor
924 build_cpu
925 build
926 REPORT_BUGS_TEXI
927 REPORT_BUGS_TO
928 PKGVERSION
929 target_alias
930 host_alias
931 build_alias
932 LIBS
933 ECHO_T
934 ECHO_N
935 ECHO_C
936 DEFS
937 mandir
938 localedir
939 libdir
940 psdir
941 pdfdir
942 dvidir
943 htmldir
944 infodir
945 docdir
946 oldincludedir
947 includedir
948 localstatedir
949 sharedstatedir
950 sysconfdir
951 datadir
952 datarootdir
953 libexecdir
954 sbindir
955 bindir
956 program_transform_name
957 prefix
958 exec_prefix
959 PACKAGE_URL
960 PACKAGE_BUGREPORT
961 PACKAGE_STRING
962 PACKAGE_VERSION
963 PACKAGE_TARNAME
964 PACKAGE_NAME
965 PATH_SEPARATOR
966 SHELL
967 SIM_TOOLCHAIN_VARS
968 WERROR_CFLAGS
969 WARN_CFLAGS'
970 ac_subst_files=''
971 ac_user_opts='
972 enable_option_checking
973 with_pkgversion
974 with_bugurl
975 enable_shared
976 enable_static
977 with_pic
978 enable_fast_install
979 with_gnu_ld
980 enable_libtool_lock
981 enable_maintainer_mode
982 enable_dependency_tracking
983 enable_silent_rules
984 enable_sim
985 enable_example_sims
986 enable_targets
987 enable_sim_alignment
988 enable_sim_assert
989 enable_cgen_maint
990 enable_sim_debug
991 enable_sim_endian
992 enable_sim_environment
993 enable_sim_hardware
994 enable_sim_inline
995 enable_sim_profile
996 enable_sim_reserved_bits
997 enable_sim_scache
998 enable_sim_stdio
999 enable_sim_trace
1000 enable_werror
1001 enable_build_warnings
1002 enable_sim_build_warnings
1003 enable_sim_frv_trapdump
1004 enable_sim_rx_cycle_accurate
1005 '
1006 ac_precious_vars='build_alias
1007 host_alias
1008 target_alias
1009 CC
1010 CFLAGS
1011 LDFLAGS
1012 LIBS
1013 CPPFLAGS
1014 CPP
1015 PKG_CONFIG
1016 PKG_CONFIG_PATH
1017 PKG_CONFIG_LIBDIR
1018 SDL_CFLAGS
1019 SDL_LIBS
1020 AS_FOR_TARGET_AARCH64
1021 LD_FOR_TARGET_AARCH64
1022 CC_FOR_TARGET_AARCH64
1023 AS_FOR_TARGET_ARM
1024 LD_FOR_TARGET_ARM
1025 CC_FOR_TARGET_ARM
1026 AS_FOR_TARGET_AVR
1027 LD_FOR_TARGET_AVR
1028 CC_FOR_TARGET_AVR
1029 AS_FOR_TARGET_BFIN
1030 LD_FOR_TARGET_BFIN
1031 CC_FOR_TARGET_BFIN
1032 AS_FOR_TARGET_BPF
1033 LD_FOR_TARGET_BPF
1034 CC_FOR_TARGET_BPF
1035 AS_FOR_TARGET_CR16
1036 LD_FOR_TARGET_CR16
1037 CC_FOR_TARGET_CR16
1038 AS_FOR_TARGET_CRIS
1039 LD_FOR_TARGET_CRIS
1040 CC_FOR_TARGET_CRIS
1041 AS_FOR_TARGET_D10V
1042 LD_FOR_TARGET_D10V
1043 CC_FOR_TARGET_D10V
1044 AS_FOR_TARGET_FRV
1045 LD_FOR_TARGET_FRV
1046 CC_FOR_TARGET_FRV
1047 AS_FOR_TARGET_FT32
1048 LD_FOR_TARGET_FT32
1049 CC_FOR_TARGET_FT32
1050 AS_FOR_TARGET_H8300
1051 LD_FOR_TARGET_H8300
1052 CC_FOR_TARGET_H8300
1053 AS_FOR_TARGET_IQ2000
1054 LD_FOR_TARGET_IQ2000
1055 CC_FOR_TARGET_IQ2000
1056 AS_FOR_TARGET_LM32
1057 LD_FOR_TARGET_LM32
1058 CC_FOR_TARGET_LM32
1059 AS_FOR_TARGET_M32C
1060 LD_FOR_TARGET_M32C
1061 CC_FOR_TARGET_M32C
1062 AS_FOR_TARGET_M32R
1063 LD_FOR_TARGET_M32R
1064 CC_FOR_TARGET_M32R
1065 AS_FOR_TARGET_M68HC11
1066 LD_FOR_TARGET_M68HC11
1067 CC_FOR_TARGET_M68HC11
1068 AS_FOR_TARGET_MCORE
1069 LD_FOR_TARGET_MCORE
1070 CC_FOR_TARGET_MCORE
1071 AS_FOR_TARGET_MICROBLAZE
1072 LD_FOR_TARGET_MICROBLAZE
1073 CC_FOR_TARGET_MICROBLAZE
1074 AS_FOR_TARGET_MIPS
1075 LD_FOR_TARGET_MIPS
1076 CC_FOR_TARGET_MIPS
1077 AS_FOR_TARGET_MN10300
1078 LD_FOR_TARGET_MN10300
1079 CC_FOR_TARGET_MN10300
1080 AS_FOR_TARGET_MOXIE
1081 LD_FOR_TARGET_MOXIE
1082 CC_FOR_TARGET_MOXIE
1083 AS_FOR_TARGET_MSP430
1084 LD_FOR_TARGET_MSP430
1085 CC_FOR_TARGET_MSP430
1086 AS_FOR_TARGET_OR1K
1087 LD_FOR_TARGET_OR1K
1088 CC_FOR_TARGET_OR1K
1089 AS_FOR_TARGET_PPC
1090 LD_FOR_TARGET_PPC
1091 CC_FOR_TARGET_PPC
1092 AS_FOR_TARGET_PRU
1093 LD_FOR_TARGET_PRU
1094 CC_FOR_TARGET_PRU
1095 AS_FOR_TARGET_RISCV
1096 LD_FOR_TARGET_RISCV
1097 CC_FOR_TARGET_RISCV
1098 AS_FOR_TARGET_RL78
1099 LD_FOR_TARGET_RL78
1100 CC_FOR_TARGET_RL78
1101 AS_FOR_TARGET_RX
1102 LD_FOR_TARGET_RX
1103 CC_FOR_TARGET_RX
1104 AS_FOR_TARGET_SH
1105 LD_FOR_TARGET_SH
1106 CC_FOR_TARGET_SH
1107 AS_FOR_TARGET_ERC32
1108 LD_FOR_TARGET_ERC32
1109 CC_FOR_TARGET_ERC32
1110 AS_FOR_TARGET_V850
1111 LD_FOR_TARGET_V850
1112 CC_FOR_TARGET_V850
1113 AS_FOR_TARGET_EXAMPLE_SYNACOR
1114 LD_FOR_TARGET_EXAMPLE_SYNACOR
1115 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1116 ac_subdirs_all='mips
1117 ppc'
1118
1119 # Initialize some variables set by options.
1120 ac_init_help=
1121 ac_init_version=false
1122 ac_unrecognized_opts=
1123 ac_unrecognized_sep=
1124 # The variables have the same names as the options, with
1125 # dashes changed to underlines.
1126 cache_file=/dev/null
1127 exec_prefix=NONE
1128 no_create=
1129 no_recursion=
1130 prefix=NONE
1131 program_prefix=NONE
1132 program_suffix=NONE
1133 program_transform_name=s,x,x,
1134 silent=
1135 site=
1136 srcdir=
1137 verbose=
1138 x_includes=NONE
1139 x_libraries=NONE
1140
1141 # Installation directory options.
1142 # These are left unexpanded so users can "make install exec_prefix=/foo"
1143 # and all the variables that are supposed to be based on exec_prefix
1144 # by default will actually change.
1145 # Use braces instead of parens because sh, perl, etc. also accept them.
1146 # (The list follows the same order as the GNU Coding Standards.)
1147 bindir='${exec_prefix}/bin'
1148 sbindir='${exec_prefix}/sbin'
1149 libexecdir='${exec_prefix}/libexec'
1150 datarootdir='${prefix}/share'
1151 datadir='${datarootdir}'
1152 sysconfdir='${prefix}/etc'
1153 sharedstatedir='${prefix}/com'
1154 localstatedir='${prefix}/var'
1155 includedir='${prefix}/include'
1156 oldincludedir='/usr/include'
1157 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1158 infodir='${datarootdir}/info'
1159 htmldir='${docdir}'
1160 dvidir='${docdir}'
1161 pdfdir='${docdir}'
1162 psdir='${docdir}'
1163 libdir='${exec_prefix}/lib'
1164 localedir='${datarootdir}/locale'
1165 mandir='${datarootdir}/man'
1166
1167 ac_prev=
1168 ac_dashdash=
1169 for ac_option
1170 do
1171 # If the previous option needs an argument, assign it.
1172 if test -n "$ac_prev"; then
1173 eval $ac_prev=\$ac_option
1174 ac_prev=
1175 continue
1176 fi
1177
1178 case $ac_option in
1179 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1180 *=) ac_optarg= ;;
1181 *) ac_optarg=yes ;;
1182 esac
1183
1184 # Accept the important Cygnus configure options, so we can diagnose typos.
1185
1186 case $ac_dashdash$ac_option in
1187 --)
1188 ac_dashdash=yes ;;
1189
1190 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1191 ac_prev=bindir ;;
1192 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1193 bindir=$ac_optarg ;;
1194
1195 -build | --build | --buil | --bui | --bu)
1196 ac_prev=build_alias ;;
1197 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1198 build_alias=$ac_optarg ;;
1199
1200 -cache-file | --cache-file | --cache-fil | --cache-fi \
1201 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1202 ac_prev=cache_file ;;
1203 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1204 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1205 cache_file=$ac_optarg ;;
1206
1207 --config-cache | -C)
1208 cache_file=config.cache ;;
1209
1210 -datadir | --datadir | --datadi | --datad)
1211 ac_prev=datadir ;;
1212 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1213 datadir=$ac_optarg ;;
1214
1215 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1216 | --dataroo | --dataro | --datar)
1217 ac_prev=datarootdir ;;
1218 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1219 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1220 datarootdir=$ac_optarg ;;
1221
1222 -disable-* | --disable-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid feature name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "enable_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval enable_$ac_useropt=no ;;
1237
1238 -docdir | --docdir | --docdi | --doc | --do)
1239 ac_prev=docdir ;;
1240 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1241 docdir=$ac_optarg ;;
1242
1243 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1244 ac_prev=dvidir ;;
1245 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1246 dvidir=$ac_optarg ;;
1247
1248 -enable-* | --enable-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid feature name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "enable_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval enable_$ac_useropt=\$ac_optarg ;;
1263
1264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1266 | --exec | --exe | --ex)
1267 ac_prev=exec_prefix ;;
1268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1270 | --exec=* | --exe=* | --ex=*)
1271 exec_prefix=$ac_optarg ;;
1272
1273 -gas | --gas | --ga | --g)
1274 # Obsolete; use --with-gas.
1275 with_gas=yes ;;
1276
1277 -help | --help | --hel | --he | -h)
1278 ac_init_help=long ;;
1279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1280 ac_init_help=recursive ;;
1281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1282 ac_init_help=short ;;
1283
1284 -host | --host | --hos | --ho)
1285 ac_prev=host_alias ;;
1286 -host=* | --host=* | --hos=* | --ho=*)
1287 host_alias=$ac_optarg ;;
1288
1289 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1290 ac_prev=htmldir ;;
1291 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1292 | --ht=*)
1293 htmldir=$ac_optarg ;;
1294
1295 -includedir | --includedir | --includedi | --included | --include \
1296 | --includ | --inclu | --incl | --inc)
1297 ac_prev=includedir ;;
1298 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1299 | --includ=* | --inclu=* | --incl=* | --inc=*)
1300 includedir=$ac_optarg ;;
1301
1302 -infodir | --infodir | --infodi | --infod | --info | --inf)
1303 ac_prev=infodir ;;
1304 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1305 infodir=$ac_optarg ;;
1306
1307 -libdir | --libdir | --libdi | --libd)
1308 ac_prev=libdir ;;
1309 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1310 libdir=$ac_optarg ;;
1311
1312 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1313 | --libexe | --libex | --libe)
1314 ac_prev=libexecdir ;;
1315 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1316 | --libexe=* | --libex=* | --libe=*)
1317 libexecdir=$ac_optarg ;;
1318
1319 -localedir | --localedir | --localedi | --localed | --locale)
1320 ac_prev=localedir ;;
1321 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1322 localedir=$ac_optarg ;;
1323
1324 -localstatedir | --localstatedir | --localstatedi | --localstated \
1325 | --localstate | --localstat | --localsta | --localst | --locals)
1326 ac_prev=localstatedir ;;
1327 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1328 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1329 localstatedir=$ac_optarg ;;
1330
1331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1332 ac_prev=mandir ;;
1333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1334 mandir=$ac_optarg ;;
1335
1336 -nfp | --nfp | --nf)
1337 # Obsolete; use --without-fp.
1338 with_fp=no ;;
1339
1340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1341 | --no-cr | --no-c | -n)
1342 no_create=yes ;;
1343
1344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1346 no_recursion=yes ;;
1347
1348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1350 | --oldin | --oldi | --old | --ol | --o)
1351 ac_prev=oldincludedir ;;
1352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1355 oldincludedir=$ac_optarg ;;
1356
1357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1358 ac_prev=prefix ;;
1359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1360 prefix=$ac_optarg ;;
1361
1362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1363 | --program-pre | --program-pr | --program-p)
1364 ac_prev=program_prefix ;;
1365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1367 program_prefix=$ac_optarg ;;
1368
1369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1370 | --program-suf | --program-su | --program-s)
1371 ac_prev=program_suffix ;;
1372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1374 program_suffix=$ac_optarg ;;
1375
1376 -program-transform-name | --program-transform-name \
1377 | --program-transform-nam | --program-transform-na \
1378 | --program-transform-n | --program-transform- \
1379 | --program-transform | --program-transfor \
1380 | --program-transfo | --program-transf \
1381 | --program-trans | --program-tran \
1382 | --progr-tra | --program-tr | --program-t)
1383 ac_prev=program_transform_name ;;
1384 -program-transform-name=* | --program-transform-name=* \
1385 | --program-transform-nam=* | --program-transform-na=* \
1386 | --program-transform-n=* | --program-transform-=* \
1387 | --program-transform=* | --program-transfor=* \
1388 | --program-transfo=* | --program-transf=* \
1389 | --program-trans=* | --program-tran=* \
1390 | --progr-tra=* | --program-tr=* | --program-t=*)
1391 program_transform_name=$ac_optarg ;;
1392
1393 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1394 ac_prev=pdfdir ;;
1395 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1396 pdfdir=$ac_optarg ;;
1397
1398 -psdir | --psdir | --psdi | --psd | --ps)
1399 ac_prev=psdir ;;
1400 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1401 psdir=$ac_optarg ;;
1402
1403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1404 | -silent | --silent | --silen | --sile | --sil)
1405 silent=yes ;;
1406
1407 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1408 ac_prev=sbindir ;;
1409 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1410 | --sbi=* | --sb=*)
1411 sbindir=$ac_optarg ;;
1412
1413 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1414 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1415 | --sharedst | --shareds | --shared | --share | --shar \
1416 | --sha | --sh)
1417 ac_prev=sharedstatedir ;;
1418 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1419 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1420 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1421 | --sha=* | --sh=*)
1422 sharedstatedir=$ac_optarg ;;
1423
1424 -site | --site | --sit)
1425 ac_prev=site ;;
1426 -site=* | --site=* | --sit=*)
1427 site=$ac_optarg ;;
1428
1429 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1430 ac_prev=srcdir ;;
1431 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1432 srcdir=$ac_optarg ;;
1433
1434 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1435 | --syscon | --sysco | --sysc | --sys | --sy)
1436 ac_prev=sysconfdir ;;
1437 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1438 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1439 sysconfdir=$ac_optarg ;;
1440
1441 -target | --target | --targe | --targ | --tar | --ta | --t)
1442 ac_prev=target_alias ;;
1443 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1444 target_alias=$ac_optarg ;;
1445
1446 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1447 verbose=yes ;;
1448
1449 -version | --version | --versio | --versi | --vers | -V)
1450 ac_init_version=: ;;
1451
1452 -with-* | --with-*)
1453 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1454 # Reject names that are not valid shell variable names.
1455 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456 as_fn_error $? "invalid package name: $ac_useropt"
1457 ac_useropt_orig=$ac_useropt
1458 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459 case $ac_user_opts in
1460 *"
1461 "with_$ac_useropt"
1462 "*) ;;
1463 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1464 ac_unrecognized_sep=', ';;
1465 esac
1466 eval with_$ac_useropt=\$ac_optarg ;;
1467
1468 -without-* | --without-*)
1469 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1470 # Reject names that are not valid shell variable names.
1471 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1472 as_fn_error $? "invalid package name: $ac_useropt"
1473 ac_useropt_orig=$ac_useropt
1474 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1475 case $ac_user_opts in
1476 *"
1477 "with_$ac_useropt"
1478 "*) ;;
1479 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1480 ac_unrecognized_sep=', ';;
1481 esac
1482 eval with_$ac_useropt=no ;;
1483
1484 --x)
1485 # Obsolete; use --with-x.
1486 with_x=yes ;;
1487
1488 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1489 | --x-incl | --x-inc | --x-in | --x-i)
1490 ac_prev=x_includes ;;
1491 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1492 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1493 x_includes=$ac_optarg ;;
1494
1495 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1496 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1497 ac_prev=x_libraries ;;
1498 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1499 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1500 x_libraries=$ac_optarg ;;
1501
1502 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1503 Try \`$0 --help' for more information"
1504 ;;
1505
1506 *=*)
1507 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1508 # Reject names that are not valid shell variable names.
1509 case $ac_envvar in #(
1510 '' | [0-9]* | *[!_$as_cr_alnum]* )
1511 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1512 esac
1513 eval $ac_envvar=\$ac_optarg
1514 export $ac_envvar ;;
1515
1516 *)
1517 # FIXME: should be removed in autoconf 3.0.
1518 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1519 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1520 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1521 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1522 ;;
1523
1524 esac
1525 done
1526
1527 if test -n "$ac_prev"; then
1528 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1529 as_fn_error $? "missing argument to $ac_option"
1530 fi
1531
1532 if test -n "$ac_unrecognized_opts"; then
1533 case $enable_option_checking in
1534 no) ;;
1535 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1536 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1537 esac
1538 fi
1539
1540 # Check all directory arguments for consistency.
1541 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1542 datadir sysconfdir sharedstatedir localstatedir includedir \
1543 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1544 libdir localedir mandir
1545 do
1546 eval ac_val=\$$ac_var
1547 # Remove trailing slashes.
1548 case $ac_val in
1549 */ )
1550 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1551 eval $ac_var=\$ac_val;;
1552 esac
1553 # Be sure to have absolute directory names.
1554 case $ac_val in
1555 [\\/$]* | ?:[\\/]* ) continue;;
1556 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1557 esac
1558 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1559 done
1560
1561 # There might be people who depend on the old broken behavior: `$host'
1562 # used to hold the argument of --host etc.
1563 # FIXME: To remove some day.
1564 build=$build_alias
1565 host=$host_alias
1566 target=$target_alias
1567
1568 # FIXME: To remove some day.
1569 if test "x$host_alias" != x; then
1570 if test "x$build_alias" = x; then
1571 cross_compiling=maybe
1572 elif test "x$build_alias" != "x$host_alias"; then
1573 cross_compiling=yes
1574 fi
1575 fi
1576
1577 ac_tool_prefix=
1578 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1579
1580 test "$silent" = yes && exec 6>/dev/null
1581
1582
1583 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1584 ac_ls_di=`ls -di .` &&
1585 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1586 as_fn_error $? "working directory cannot be determined"
1587 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1588 as_fn_error $? "pwd does not report name of working directory"
1589
1590
1591 # Find the source files, if location was not specified.
1592 if test -z "$srcdir"; then
1593 ac_srcdir_defaulted=yes
1594 # Try the directory containing this script, then the parent directory.
1595 ac_confdir=`$as_dirname -- "$as_myself" ||
1596 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1597 X"$as_myself" : 'X\(//\)[^/]' \| \
1598 X"$as_myself" : 'X\(//\)$' \| \
1599 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1600 $as_echo X"$as_myself" |
1601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1602 s//\1/
1603 q
1604 }
1605 /^X\(\/\/\)[^/].*/{
1606 s//\1/
1607 q
1608 }
1609 /^X\(\/\/\)$/{
1610 s//\1/
1611 q
1612 }
1613 /^X\(\/\).*/{
1614 s//\1/
1615 q
1616 }
1617 s/.*/./; q'`
1618 srcdir=$ac_confdir
1619 if test ! -r "$srcdir/$ac_unique_file"; then
1620 srcdir=..
1621 fi
1622 else
1623 ac_srcdir_defaulted=no
1624 fi
1625 if test ! -r "$srcdir/$ac_unique_file"; then
1626 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1627 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1628 fi
1629 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1630 ac_abs_confdir=`(
1631 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1632 pwd)`
1633 # When building in place, set srcdir=.
1634 if test "$ac_abs_confdir" = "$ac_pwd"; then
1635 srcdir=.
1636 fi
1637 # Remove unnecessary trailing slashes from srcdir.
1638 # Double slashes in file names in object file debugging info
1639 # mess up M-x gdb in Emacs.
1640 case $srcdir in
1641 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1642 esac
1643 for ac_var in $ac_precious_vars; do
1644 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1645 eval ac_env_${ac_var}_value=\$${ac_var}
1646 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1647 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1648 done
1649
1650 #
1651 # Report the --help message.
1652 #
1653 if test "$ac_init_help" = "long"; then
1654 # Omit some internal or obsolete options to make the list less imposing.
1655 # This message is too long to be a string in the A/UX 3.1 sh.
1656 cat <<_ACEOF
1657 \`configure' configures sim 0 to adapt to many kinds of systems.
1658
1659 Usage: $0 [OPTION]... [VAR=VALUE]...
1660
1661 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1662 VAR=VALUE. See below for descriptions of some of the useful variables.
1663
1664 Defaults for the options are specified in brackets.
1665
1666 Configuration:
1667 -h, --help display this help and exit
1668 --help=short display options specific to this package
1669 --help=recursive display the short help of all the included packages
1670 -V, --version display version information and exit
1671 -q, --quiet, --silent do not print \`checking ...' messages
1672 --cache-file=FILE cache test results in FILE [disabled]
1673 -C, --config-cache alias for \`--cache-file=config.cache'
1674 -n, --no-create do not create output files
1675 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1676
1677 Installation directories:
1678 --prefix=PREFIX install architecture-independent files in PREFIX
1679 [$ac_default_prefix]
1680 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1681 [PREFIX]
1682
1683 By default, \`make install' will install all the files in
1684 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1685 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1686 for instance \`--prefix=\$HOME'.
1687
1688 For better control, use the options below.
1689
1690 Fine tuning of the installation directories:
1691 --bindir=DIR user executables [EPREFIX/bin]
1692 --sbindir=DIR system admin executables [EPREFIX/sbin]
1693 --libexecdir=DIR program executables [EPREFIX/libexec]
1694 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1695 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1696 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1697 --libdir=DIR object code libraries [EPREFIX/lib]
1698 --includedir=DIR C header files [PREFIX/include]
1699 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1700 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1701 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1702 --infodir=DIR info documentation [DATAROOTDIR/info]
1703 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1704 --mandir=DIR man documentation [DATAROOTDIR/man]
1705 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1706 --htmldir=DIR html documentation [DOCDIR]
1707 --dvidir=DIR dvi documentation [DOCDIR]
1708 --pdfdir=DIR pdf documentation [DOCDIR]
1709 --psdir=DIR ps documentation [DOCDIR]
1710 _ACEOF
1711
1712 cat <<\_ACEOF
1713
1714 Program names:
1715 --program-prefix=PREFIX prepend PREFIX to installed program names
1716 --program-suffix=SUFFIX append SUFFIX to installed program names
1717 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1718
1719 System types:
1720 --build=BUILD configure for building on BUILD [guessed]
1721 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1722 --target=TARGET configure for building compilers for TARGET [HOST]
1723 _ACEOF
1724 fi
1725
1726 if test -n "$ac_init_help"; then
1727 case $ac_init_help in
1728 short | recursive ) echo "Configuration of sim 0:";;
1729 esac
1730 cat <<\_ACEOF
1731
1732 Optional Features:
1733 --disable-option-checking ignore unrecognized --enable/--with options
1734 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1735 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1736 --enable-shared[=PKGS] build shared libraries [default=yes]
1737 --enable-static[=PKGS] build static libraries [default=yes]
1738 --enable-fast-install[=PKGS]
1739 optimize for fast installation [default=yes]
1740 --disable-libtool-lock avoid locking (might break parallel builds)
1741 --enable-maintainer-mode
1742 enable make rules and dependencies not useful (and
1743 sometimes confusing) to the casual installer
1744 --enable-dependency-tracking
1745 do not reject slow dependency extractors
1746 --disable-dependency-tracking
1747 speeds up one-time build
1748 --enable-silent-rules less verbose build output (undo: "make V=1")
1749 --disable-silent-rules verbose build output (undo: "make V=0")
1750 --enable-sim Enable the GNU simulator
1751 --enable-example-sims enable example GNU simulators
1752 --enable-targets alternative target configurations
1753 --enable-sim-alignment=align
1754 Specify strict, nonstrict or forced alignment of
1755 memory accesses
1756 --enable-sim-assert Specify whether to perform random assertions
1757 --enable-cgen-maint=DIR build cgen generated files
1758 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1759 itself)
1760 --enable-sim-endian=endian
1761 Specify target byte endian orientation
1762 --enable-sim-environment=environment
1763 Specify mixed, user, virtual or operating
1764 environment
1765 --enable-sim-hardware Whether to enable hardware/device simulation
1766 --enable-sim-inline=inlines
1767 Specify which functions should be inlined
1768 --enable-sim-profile=opts
1769 Enable profiling flags
1770 --enable-sim-reserved-bits
1771 Specify whether to check reserved bits in
1772 instruction
1773 --enable-sim-scache=size
1774 Specify simulator execution cache size
1775 --enable-sim-stdio Specify whether to use stdio for console
1776 input/output
1777 --enable-sim-trace=opts Enable tracing of simulated programs
1778 --enable-werror treat compile warnings as errors
1779 --enable-build-warnings enable build-time compiler warnings if gcc is used
1780 --enable-sim-build-warnings
1781 enable SIM specific build-time compiler warnings if
1782 gcc is used
1783 --enable-sim-frv-trapdump
1784 Make unknown traps dump the registers
1785 --disable-sim-rx-cycle-accurate
1786 Disable cycle accurate simulation (faster runtime)
1787
1788 Optional Packages:
1789 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1790 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1791 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1792 --with-bugurl=URL Direct users to URL to report a bug
1793 --with-pic try to use only PIC/non-PIC objects [default=use
1794 both]
1795 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1796
1797 Some influential environment variables:
1798 CC C compiler command
1799 CFLAGS C compiler flags
1800 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1801 nonstandard directory <lib dir>
1802 LIBS libraries to pass to the linker, e.g. -l<library>
1803 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1804 you have headers in a nonstandard directory <include dir>
1805 CPP C preprocessor
1806 PKG_CONFIG path to pkg-config utility
1807 PKG_CONFIG_PATH
1808 directories to add to pkg-config's search path
1809 PKG_CONFIG_LIBDIR
1810 path overriding pkg-config's built-in search path
1811 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1812 SDL_LIBS linker flags for SDL, overriding pkg-config
1813 AS_FOR_TARGET_AARCH64
1814 Assembler for aarch64 tests
1815 LD_FOR_TARGET_AARCH64
1816 Linker for aarch64 tests
1817 CC_FOR_TARGET_AARCH64
1818 C compiler for aarch64 tests
1819 AS_FOR_TARGET_ARM
1820 Assembler for arm tests
1821 LD_FOR_TARGET_ARM
1822 Linker for arm tests
1823 CC_FOR_TARGET_ARM
1824 C compiler for arm tests
1825 AS_FOR_TARGET_AVR
1826 Assembler for avr tests
1827 LD_FOR_TARGET_AVR
1828 Linker for avr tests
1829 CC_FOR_TARGET_AVR
1830 C compiler for avr tests
1831 AS_FOR_TARGET_BFIN
1832 Assembler for bfin tests
1833 LD_FOR_TARGET_BFIN
1834 Linker for bfin tests
1835 CC_FOR_TARGET_BFIN
1836 C compiler for bfin tests
1837 AS_FOR_TARGET_BPF
1838 Assembler for bpf tests
1839 LD_FOR_TARGET_BPF
1840 Linker for bpf tests
1841 CC_FOR_TARGET_BPF
1842 C compiler for bpf tests
1843 AS_FOR_TARGET_CR16
1844 Assembler for cr16 tests
1845 LD_FOR_TARGET_CR16
1846 Linker for cr16 tests
1847 CC_FOR_TARGET_CR16
1848 C compiler for cr16 tests
1849 AS_FOR_TARGET_CRIS
1850 Assembler for cris tests
1851 LD_FOR_TARGET_CRIS
1852 Linker for cris tests
1853 CC_FOR_TARGET_CRIS
1854 C compiler for cris tests
1855 AS_FOR_TARGET_D10V
1856 Assembler for d10v tests
1857 LD_FOR_TARGET_D10V
1858 Linker for d10v tests
1859 CC_FOR_TARGET_D10V
1860 C compiler for d10v tests
1861 AS_FOR_TARGET_FRV
1862 Assembler for frv tests
1863 LD_FOR_TARGET_FRV
1864 Linker for frv tests
1865 CC_FOR_TARGET_FRV
1866 C compiler for frv tests
1867 AS_FOR_TARGET_FT32
1868 Assembler for ft32 tests
1869 LD_FOR_TARGET_FT32
1870 Linker for ft32 tests
1871 CC_FOR_TARGET_FT32
1872 C compiler for ft32 tests
1873 AS_FOR_TARGET_H8300
1874 Assembler for h8300 tests
1875 LD_FOR_TARGET_H8300
1876 Linker for h8300 tests
1877 CC_FOR_TARGET_H8300
1878 C compiler for h8300 tests
1879 AS_FOR_TARGET_IQ2000
1880 Assembler for iq2000 tests
1881 LD_FOR_TARGET_IQ2000
1882 Linker for iq2000 tests
1883 CC_FOR_TARGET_IQ2000
1884 C compiler for iq2000 tests
1885 AS_FOR_TARGET_LM32
1886 Assembler for lm32 tests
1887 LD_FOR_TARGET_LM32
1888 Linker for lm32 tests
1889 CC_FOR_TARGET_LM32
1890 C compiler for lm32 tests
1891 AS_FOR_TARGET_M32C
1892 Assembler for m32c tests
1893 LD_FOR_TARGET_M32C
1894 Linker for m32c tests
1895 CC_FOR_TARGET_M32C
1896 C compiler for m32c tests
1897 AS_FOR_TARGET_M32R
1898 Assembler for m32r tests
1899 LD_FOR_TARGET_M32R
1900 Linker for m32r tests
1901 CC_FOR_TARGET_M32R
1902 C compiler for m32r tests
1903 AS_FOR_TARGET_M68HC11
1904 Assembler for m68hc11 tests
1905 LD_FOR_TARGET_M68HC11
1906 Linker for m68hc11 tests
1907 CC_FOR_TARGET_M68HC11
1908 C compiler for m68hc11 tests
1909 AS_FOR_TARGET_MCORE
1910 Assembler for mcore tests
1911 LD_FOR_TARGET_MCORE
1912 Linker for mcore tests
1913 CC_FOR_TARGET_MCORE
1914 C compiler for mcore tests
1915 AS_FOR_TARGET_MICROBLAZE
1916 Assembler for microblaze tests
1917 LD_FOR_TARGET_MICROBLAZE
1918 Linker for microblaze tests
1919 CC_FOR_TARGET_MICROBLAZE
1920 C compiler for microblaze tests
1921 AS_FOR_TARGET_MIPS
1922 Assembler for mips tests
1923 LD_FOR_TARGET_MIPS
1924 Linker for mips tests
1925 CC_FOR_TARGET_MIPS
1926 C compiler for mips tests
1927 AS_FOR_TARGET_MN10300
1928 Assembler for mn10300 tests
1929 LD_FOR_TARGET_MN10300
1930 Linker for mn10300 tests
1931 CC_FOR_TARGET_MN10300
1932 C compiler for mn10300 tests
1933 AS_FOR_TARGET_MOXIE
1934 Assembler for moxie tests
1935 LD_FOR_TARGET_MOXIE
1936 Linker for moxie tests
1937 CC_FOR_TARGET_MOXIE
1938 C compiler for moxie tests
1939 AS_FOR_TARGET_MSP430
1940 Assembler for msp430 tests
1941 LD_FOR_TARGET_MSP430
1942 Linker for msp430 tests
1943 CC_FOR_TARGET_MSP430
1944 C compiler for msp430 tests
1945 AS_FOR_TARGET_OR1K
1946 Assembler for or1k tests
1947 LD_FOR_TARGET_OR1K
1948 Linker for or1k tests
1949 CC_FOR_TARGET_OR1K
1950 C compiler for or1k tests
1951 AS_FOR_TARGET_PPC
1952 Assembler for ppc tests
1953 LD_FOR_TARGET_PPC
1954 Linker for ppc tests
1955 CC_FOR_TARGET_PPC
1956 C compiler for ppc tests
1957 AS_FOR_TARGET_PRU
1958 Assembler for pru tests
1959 LD_FOR_TARGET_PRU
1960 Linker for pru tests
1961 CC_FOR_TARGET_PRU
1962 C compiler for pru tests
1963 AS_FOR_TARGET_RISCV
1964 Assembler for riscv tests
1965 LD_FOR_TARGET_RISCV
1966 Linker for riscv tests
1967 CC_FOR_TARGET_RISCV
1968 C compiler for riscv tests
1969 AS_FOR_TARGET_RL78
1970 Assembler for rl78 tests
1971 LD_FOR_TARGET_RL78
1972 Linker for rl78 tests
1973 CC_FOR_TARGET_RL78
1974 C compiler for rl78 tests
1975 AS_FOR_TARGET_RX
1976 Assembler for rx tests
1977 LD_FOR_TARGET_RX
1978 Linker for rx tests
1979 CC_FOR_TARGET_RX
1980 C compiler for rx tests
1981 AS_FOR_TARGET_SH
1982 Assembler for sh tests
1983 LD_FOR_TARGET_SH
1984 Linker for sh tests
1985 CC_FOR_TARGET_SH
1986 C compiler for sh tests
1987 AS_FOR_TARGET_ERC32
1988 Assembler for erc32 tests
1989 LD_FOR_TARGET_ERC32
1990 Linker for erc32 tests
1991 CC_FOR_TARGET_ERC32
1992 C compiler for erc32 tests
1993 AS_FOR_TARGET_V850
1994 Assembler for v850 tests
1995 LD_FOR_TARGET_V850
1996 Linker for v850 tests
1997 CC_FOR_TARGET_V850
1998 C compiler for v850 tests
1999 AS_FOR_TARGET_EXAMPLE_SYNACOR
2000 Assembler for example-synacor tests
2001 LD_FOR_TARGET_EXAMPLE_SYNACOR
2002 Linker for example-synacor tests
2003 CC_FOR_TARGET_EXAMPLE_SYNACOR
2004 C compiler for example-synacor tests
2005
2006 Use these variables to override the choices made by `configure' or to help
2007 it to find libraries and programs with nonstandard names/locations.
2008
2009 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2010 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2011 _ACEOF
2012 ac_status=$?
2013 fi
2014
2015 if test "$ac_init_help" = "recursive"; then
2016 # If there are subdirs, report their specific --help.
2017 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2018 test -d "$ac_dir" ||
2019 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2020 continue
2021 ac_builddir=.
2022
2023 case "$ac_dir" in
2024 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2025 *)
2026 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2027 # A ".." for each directory in $ac_dir_suffix.
2028 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2029 case $ac_top_builddir_sub in
2030 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2031 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2032 esac ;;
2033 esac
2034 ac_abs_top_builddir=$ac_pwd
2035 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2036 # for backward compatibility:
2037 ac_top_builddir=$ac_top_build_prefix
2038
2039 case $srcdir in
2040 .) # We are building in place.
2041 ac_srcdir=.
2042 ac_top_srcdir=$ac_top_builddir_sub
2043 ac_abs_top_srcdir=$ac_pwd ;;
2044 [\\/]* | ?:[\\/]* ) # Absolute name.
2045 ac_srcdir=$srcdir$ac_dir_suffix;
2046 ac_top_srcdir=$srcdir
2047 ac_abs_top_srcdir=$srcdir ;;
2048 *) # Relative name.
2049 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2050 ac_top_srcdir=$ac_top_build_prefix$srcdir
2051 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2052 esac
2053 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2054
2055 cd "$ac_dir" || { ac_status=$?; continue; }
2056 # Check for guested configure.
2057 if test -f "$ac_srcdir/configure.gnu"; then
2058 echo &&
2059 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2060 elif test -f "$ac_srcdir/configure"; then
2061 echo &&
2062 $SHELL "$ac_srcdir/configure" --help=recursive
2063 else
2064 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2065 fi || ac_status=$?
2066 cd "$ac_pwd" || { ac_status=$?; break; }
2067 done
2068 fi
2069
2070 test -n "$ac_init_help" && exit $ac_status
2071 if $ac_init_version; then
2072 cat <<\_ACEOF
2073 sim configure 0
2074 generated by GNU Autoconf 2.69
2075
2076 Copyright (C) 2012 Free Software Foundation, Inc.
2077 This configure script is free software; the Free Software Foundation
2078 gives unlimited permission to copy, distribute and modify it.
2079 _ACEOF
2080 exit
2081 fi
2082
2083 ## ------------------------ ##
2084 ## Autoconf initialization. ##
2085 ## ------------------------ ##
2086
2087 # ac_fn_c_try_compile LINENO
2088 # --------------------------
2089 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2090 ac_fn_c_try_compile ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 rm -f conftest.$ac_objext
2094 if { { ac_try="$ac_compile"
2095 case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098 esac
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_compile") 2>conftest.err
2102 ac_status=$?
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2107 fi
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } && {
2110 test -z "$ac_c_werror_flag" ||
2111 test ! -s conftest.err
2112 } && test -s conftest.$ac_objext; then :
2113 ac_retval=0
2114 else
2115 $as_echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_retval=1
2119 fi
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status $ac_retval
2122
2123 } # ac_fn_c_try_compile
2124
2125 # ac_fn_c_try_cpp LINENO
2126 # ----------------------
2127 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_c_try_cpp ()
2129 {
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if { { ac_try="$ac_cpp conftest.$ac_ext"
2132 case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2144 fi
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } > conftest.i && {
2147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2148 test ! -s conftest.err
2149 }; then :
2150 ac_retval=0
2151 else
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=1
2156 fi
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2159
2160 } # ac_fn_c_try_cpp
2161
2162 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2163 # -------------------------------------------------------
2164 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2165 # the include files in INCLUDES and setting the cache variable VAR
2166 # accordingly.
2167 ac_fn_c_check_header_mongrel ()
2168 {
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 if eval \${$3+:} false; then :
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if eval \${$3+:} false; then :
2174 $as_echo_n "(cached) " >&6
2175 fi
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 else
2180 # Is the header compilable?
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2182 $as_echo_n "checking $2 usability... " >&6; }
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2185 $4
2186 #include <$2>
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189 ac_header_compiler=yes
2190 else
2191 ac_header_compiler=no
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2195 $as_echo "$ac_header_compiler" >&6; }
2196
2197 # Is the header present?
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2199 $as_echo_n "checking $2 presence... " >&6; }
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 #include <$2>
2203 _ACEOF
2204 if ac_fn_c_try_cpp "$LINENO"; then :
2205 ac_header_preproc=yes
2206 else
2207 ac_header_preproc=no
2208 fi
2209 rm -f conftest.err conftest.i conftest.$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2211 $as_echo "$ac_header_preproc" >&6; }
2212
2213 # So? What about this header?
2214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2215 yes:no: )
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2217 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2219 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2220 ;;
2221 no:yes:* )
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2223 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2225 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2227 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2229 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2231 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2232 ( $as_echo "## -------------------------------------------------------------------------------------- ##
2233 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
2234 ## -------------------------------------------------------------------------------------- ##"
2235 ) | sed "s/^/$as_me: WARNING: /" >&2
2236 ;;
2237 esac
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if eval \${$3+:} false; then :
2241 $as_echo_n "(cached) " >&6
2242 else
2243 eval "$3=\$ac_header_compiler"
2244 fi
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 fi
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250
2251 } # ac_fn_c_check_header_mongrel
2252
2253 # ac_fn_c_try_run LINENO
2254 # ----------------------
2255 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2256 # that executables *can* be run.
2257 ac_fn_c_try_run ()
2258 {
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 if { { ac_try="$ac_link"
2261 case "(($ac_try" in
2262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263 *) ac_try_echo=$ac_try;;
2264 esac
2265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2266 $as_echo "$ac_try_echo"; } >&5
2267 (eval "$ac_link") 2>&5
2268 ac_status=$?
2269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2270 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2271 { { case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274 esac
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_try") 2>&5
2278 ac_status=$?
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; }; }; then :
2281 ac_retval=0
2282 else
2283 $as_echo "$as_me: program exited with status $ac_status" >&5
2284 $as_echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 ac_retval=$ac_status
2288 fi
2289 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 as_fn_set_status $ac_retval
2292
2293 } # ac_fn_c_try_run
2294
2295 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2296 # -------------------------------------------------------
2297 # Tests whether HEADER exists and can be compiled using the include files in
2298 # INCLUDES, setting the cache variable VAR accordingly.
2299 ac_fn_c_check_header_compile ()
2300 {
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if eval \${$3+:} false; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $4
2310 #include <$2>
2311 _ACEOF
2312 if ac_fn_c_try_compile "$LINENO"; then :
2313 eval "$3=yes"
2314 else
2315 eval "$3=no"
2316 fi
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 fi
2319 eval ac_res=\$$3
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323
2324 } # ac_fn_c_check_header_compile
2325
2326 # ac_fn_c_try_link LINENO
2327 # -----------------------
2328 # Try to link conftest.$ac_ext, and return whether this succeeded.
2329 ac_fn_c_try_link ()
2330 {
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 rm -f conftest.$ac_objext conftest$ac_exeext
2333 if { { ac_try="$ac_link"
2334 case "(($ac_try" in
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2337 esac
2338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2339 $as_echo "$ac_try_echo"; } >&5
2340 (eval "$ac_link") 2>conftest.err
2341 ac_status=$?
2342 if test -s conftest.err; then
2343 grep -v '^ *+' conftest.err >conftest.er1
2344 cat conftest.er1 >&5
2345 mv -f conftest.er1 conftest.err
2346 fi
2347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348 test $ac_status = 0; } && {
2349 test -z "$ac_c_werror_flag" ||
2350 test ! -s conftest.err
2351 } && test -s conftest$ac_exeext && {
2352 test "$cross_compiling" = yes ||
2353 test -x conftest$ac_exeext
2354 }; then :
2355 ac_retval=0
2356 else
2357 $as_echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 ac_retval=1
2361 fi
2362 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2363 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2364 # interfere with the next link command; also delete a directory that is
2365 # left behind by Apple's compiler. We do this before executing the actions.
2366 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 as_fn_set_status $ac_retval
2369
2370 } # ac_fn_c_try_link
2371
2372 # ac_fn_c_check_func LINENO FUNC VAR
2373 # ----------------------------------
2374 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2375 ac_fn_c_check_func ()
2376 {
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379 $as_echo_n "checking for $2... " >&6; }
2380 if eval \${$3+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2385 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2387 #define $2 innocuous_$2
2388
2389 /* System header to define __stub macros and hopefully few prototypes,
2390 which can conflict with char $2 (); below.
2391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2392 <limits.h> exists even on freestanding compilers. */
2393
2394 #ifdef __STDC__
2395 # include <limits.h>
2396 #else
2397 # include <assert.h>
2398 #endif
2399
2400 #undef $2
2401
2402 /* Override any GCC internal prototype to avoid an error.
2403 Use char because int might match the return type of a GCC
2404 builtin and then its argument prototype would still apply. */
2405 #ifdef __cplusplus
2406 extern "C"
2407 #endif
2408 char $2 ();
2409 /* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412 #if defined __stub_$2 || defined __stub___$2
2413 choke me
2414 #endif
2415
2416 int
2417 main ()
2418 {
2419 return $2 ();
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_link "$LINENO"; then :
2425 eval "$3=yes"
2426 else
2427 eval "$3=no"
2428 fi
2429 rm -f core conftest.err conftest.$ac_objext \
2430 conftest$ac_exeext conftest.$ac_ext
2431 fi
2432 eval ac_res=\$$3
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436
2437 } # ac_fn_c_check_func
2438
2439 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2440 # ----------------------------------------------------
2441 # Tries to find if the field MEMBER exists in type AGGR, after including
2442 # INCLUDES, setting cache variable VAR accordingly.
2443 ac_fn_c_check_member ()
2444 {
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2447 $as_echo_n "checking for $2.$3... " >&6; }
2448 if eval \${$4+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2453 $5
2454 int
2455 main ()
2456 {
2457 static $2 ac_aggr;
2458 if (ac_aggr.$3)
2459 return 0;
2460 ;
2461 return 0;
2462 }
2463 _ACEOF
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465 eval "$4=yes"
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 $5
2470 int
2471 main ()
2472 {
2473 static $2 ac_aggr;
2474 if (sizeof ac_aggr.$3)
2475 return 0;
2476 ;
2477 return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481 eval "$4=yes"
2482 else
2483 eval "$4=no"
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 fi
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 fi
2489 eval ac_res=\$$4
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493
2494 } # ac_fn_c_check_member
2495
2496 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2497 # ---------------------------------------------
2498 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2499 # accordingly.
2500 ac_fn_c_check_decl ()
2501 {
2502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503 as_decl_name=`echo $2|sed 's/ *(.*//'`
2504 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2506 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2507 if eval \${$3+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $4
2513 int
2514 main ()
2515 {
2516 #ifndef $as_decl_name
2517 #ifdef __cplusplus
2518 (void) $as_decl_use;
2519 #else
2520 (void) $as_decl_name;
2521 #endif
2522 #endif
2523
2524 ;
2525 return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_c_try_compile "$LINENO"; then :
2529 eval "$3=yes"
2530 else
2531 eval "$3=no"
2532 fi
2533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 fi
2535 eval ac_res=\$$3
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2539
2540 } # ac_fn_c_check_decl
2541
2542 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2543 # -------------------------------------------
2544 # Tests whether TYPE exists after having included INCLUDES, setting cache
2545 # variable VAR accordingly.
2546 ac_fn_c_check_type ()
2547 {
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if eval \${$3+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 eval "$3=no"
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 $4
2558 int
2559 main ()
2560 {
2561 if (sizeof ($2))
2562 return 0;
2563 ;
2564 return 0;
2565 }
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 $4
2571 int
2572 main ()
2573 {
2574 if (sizeof (($2)))
2575 return 0;
2576 ;
2577 return 0;
2578 }
2579 _ACEOF
2580 if ac_fn_c_try_compile "$LINENO"; then :
2581
2582 else
2583 eval "$3=yes"
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 fi
2589 eval ac_res=\$$3
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593
2594 } # ac_fn_c_check_type
2595 cat >config.log <<_ACEOF
2596 This file contains any messages produced by compilers while
2597 running configure, to aid debugging if configure makes a mistake.
2598
2599 It was created by sim $as_me 0, which was
2600 generated by GNU Autoconf 2.69. Invocation command line was
2601
2602 $ $0 $@
2603
2604 _ACEOF
2605 exec 5>>config.log
2606 {
2607 cat <<_ASUNAME
2608 ## --------- ##
2609 ## Platform. ##
2610 ## --------- ##
2611
2612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2617
2618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2619 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2620
2621 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2622 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2624 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2625 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2626 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2627 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2628
2629 _ASUNAME
2630
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 $as_echo "PATH: $as_dir"
2637 done
2638 IFS=$as_save_IFS
2639
2640 } >&5
2641
2642 cat >&5 <<_ACEOF
2643
2644
2645 ## ----------- ##
2646 ## Core tests. ##
2647 ## ----------- ##
2648
2649 _ACEOF
2650
2651
2652 # Keep a trace of the command line.
2653 # Strip out --no-create and --no-recursion so they do not pile up.
2654 # Strip out --silent because we don't want to record it for future runs.
2655 # Also quote any args containing shell meta-characters.
2656 # Make two passes to allow for proper duplicate-argument suppression.
2657 ac_configure_args=
2658 ac_configure_args0=
2659 ac_configure_args1=
2660 ac_must_keep_next=false
2661 for ac_pass in 1 2
2662 do
2663 for ac_arg
2664 do
2665 case $ac_arg in
2666 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2668 | -silent | --silent | --silen | --sile | --sil)
2669 continue ;;
2670 *\'*)
2671 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2672 esac
2673 case $ac_pass in
2674 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2675 2)
2676 as_fn_append ac_configure_args1 " '$ac_arg'"
2677 if test $ac_must_keep_next = true; then
2678 ac_must_keep_next=false # Got value, back to normal.
2679 else
2680 case $ac_arg in
2681 *=* | --config-cache | -C | -disable-* | --disable-* \
2682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2684 | -with-* | --with-* | -without-* | --without-* | --x)
2685 case "$ac_configure_args0 " in
2686 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2687 esac
2688 ;;
2689 -* ) ac_must_keep_next=true ;;
2690 esac
2691 fi
2692 as_fn_append ac_configure_args " '$ac_arg'"
2693 ;;
2694 esac
2695 done
2696 done
2697 { ac_configure_args0=; unset ac_configure_args0;}
2698 { ac_configure_args1=; unset ac_configure_args1;}
2699
2700 # When interrupted or exit'd, cleanup temporary files, and complete
2701 # config.log. We remove comments because anyway the quotes in there
2702 # would cause problems or look ugly.
2703 # WARNING: Use '\'' to represent an apostrophe within the trap.
2704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2705 trap 'exit_status=$?
2706 # Save into config.log some information that might help in debugging.
2707 {
2708 echo
2709
2710 $as_echo "## ---------------- ##
2711 ## Cache variables. ##
2712 ## ---------------- ##"
2713 echo
2714 # The following way of writing the cache mishandles newlines in values,
2715 (
2716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2717 eval ac_val=\$$ac_var
2718 case $ac_val in #(
2719 *${as_nl}*)
2720 case $ac_var in #(
2721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2723 esac
2724 case $ac_var in #(
2725 _ | IFS | as_nl) ;; #(
2726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2727 *) { eval $ac_var=; unset $ac_var;} ;;
2728 esac ;;
2729 esac
2730 done
2731 (set) 2>&1 |
2732 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2733 *${as_nl}ac_space=\ *)
2734 sed -n \
2735 "s/'\''/'\''\\\\'\'''\''/g;
2736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2737 ;; #(
2738 *)
2739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2740 ;;
2741 esac |
2742 sort
2743 )
2744 echo
2745
2746 $as_echo "## ----------------- ##
2747 ## Output variables. ##
2748 ## ----------------- ##"
2749 echo
2750 for ac_var in $ac_subst_vars
2751 do
2752 eval ac_val=\$$ac_var
2753 case $ac_val in
2754 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2755 esac
2756 $as_echo "$ac_var='\''$ac_val'\''"
2757 done | sort
2758 echo
2759
2760 if test -n "$ac_subst_files"; then
2761 $as_echo "## ------------------- ##
2762 ## File substitutions. ##
2763 ## ------------------- ##"
2764 echo
2765 for ac_var in $ac_subst_files
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 fi
2775
2776 if test -s confdefs.h; then
2777 $as_echo "## ----------- ##
2778 ## confdefs.h. ##
2779 ## ----------- ##"
2780 echo
2781 cat confdefs.h
2782 echo
2783 fi
2784 test "$ac_signal" != 0 &&
2785 $as_echo "$as_me: caught signal $ac_signal"
2786 $as_echo "$as_me: exit $exit_status"
2787 } >&5
2788 rm -f core *.core core.conftest.* &&
2789 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2790 exit $exit_status
2791 ' 0
2792 for ac_signal in 1 2 13 15; do
2793 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2794 done
2795 ac_signal=0
2796
2797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2798 rm -f -r conftest* confdefs.h
2799
2800 $as_echo "/* confdefs.h */" > confdefs.h
2801
2802 # Predefined preprocessor variables.
2803
2804 cat >>confdefs.h <<_ACEOF
2805 #define PACKAGE_NAME "$PACKAGE_NAME"
2806 _ACEOF
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2810 _ACEOF
2811
2812 cat >>confdefs.h <<_ACEOF
2813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2814 _ACEOF
2815
2816 cat >>confdefs.h <<_ACEOF
2817 #define PACKAGE_STRING "$PACKAGE_STRING"
2818 _ACEOF
2819
2820 cat >>confdefs.h <<_ACEOF
2821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2822 _ACEOF
2823
2824 cat >>confdefs.h <<_ACEOF
2825 #define PACKAGE_URL "$PACKAGE_URL"
2826 _ACEOF
2827
2828
2829 # Let the site file select an alternate cache file if it wants to.
2830 # Prefer an explicitly selected file to automatically selected ones.
2831 ac_site_file1=NONE
2832 ac_site_file2=NONE
2833 if test -n "$CONFIG_SITE"; then
2834 # We do not want a PATH search for config.site.
2835 case $CONFIG_SITE in #((
2836 -*) ac_site_file1=./$CONFIG_SITE;;
2837 */*) ac_site_file1=$CONFIG_SITE;;
2838 *) ac_site_file1=./$CONFIG_SITE;;
2839 esac
2840 elif test "x$prefix" != xNONE; then
2841 ac_site_file1=$prefix/share/config.site
2842 ac_site_file2=$prefix/etc/config.site
2843 else
2844 ac_site_file1=$ac_default_prefix/share/config.site
2845 ac_site_file2=$ac_default_prefix/etc/config.site
2846 fi
2847 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2848 do
2849 test "x$ac_site_file" = xNONE && continue
2850 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2852 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2853 sed 's/^/| /' "$ac_site_file" >&5
2854 . "$ac_site_file" \
2855 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 as_fn_error $? "failed to load site script $ac_site_file
2858 See \`config.log' for more details" "$LINENO" 5; }
2859 fi
2860 done
2861
2862 if test -r "$cache_file"; then
2863 # Some versions of bash will fail to source /dev/null (special files
2864 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2865 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2867 $as_echo "$as_me: loading cache $cache_file" >&6;}
2868 case $cache_file in
2869 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2870 *) . "./$cache_file";;
2871 esac
2872 fi
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2875 $as_echo "$as_me: creating cache $cache_file" >&6;}
2876 >$cache_file
2877 fi
2878
2879 as_fn_append ac_header_list " dlfcn.h"
2880 as_fn_append ac_header_list " fcntl.h"
2881 as_fn_append ac_header_list " fpu_control.h"
2882 as_fn_append ac_header_list " termios.h"
2883 as_fn_append ac_header_list " unistd.h"
2884 as_fn_append ac_header_list " utime.h"
2885 as_fn_append ac_header_list " linux/if_tun.h"
2886 as_fn_append ac_header_list " linux/mii.h"
2887 as_fn_append ac_header_list " linux/types.h"
2888 as_fn_append ac_header_list " net/if.h"
2889 as_fn_append ac_header_list " netinet/in.h"
2890 as_fn_append ac_header_list " netinet/tcp.h"
2891 as_fn_append ac_header_list " sys/ioctl.h"
2892 as_fn_append ac_header_list " sys/mman.h"
2893 as_fn_append ac_header_list " sys/mount.h"
2894 as_fn_append ac_header_list " sys/param.h"
2895 as_fn_append ac_header_list " sys/resource.h"
2896 as_fn_append ac_header_list " sys/socket.h"
2897 as_fn_append ac_header_list " sys/stat.h"
2898 as_fn_append ac_header_list " sys/statfs.h"
2899 as_fn_append ac_header_list " sys/termio.h"
2900 as_fn_append ac_header_list " sys/termios.h"
2901 as_fn_append ac_header_list " sys/types.h"
2902 as_fn_append ac_header_list " sys/vfs.h"
2903 as_fn_append ac_func_list " __setfpucw"
2904 as_fn_append ac_func_list " access"
2905 as_fn_append ac_func_list " aint"
2906 as_fn_append ac_func_list " anint"
2907 as_fn_append ac_func_list " cfgetispeed"
2908 as_fn_append ac_func_list " cfgetospeed"
2909 as_fn_append ac_func_list " cfsetispeed"
2910 as_fn_append ac_func_list " cfsetospeed"
2911 as_fn_append ac_func_list " chdir"
2912 as_fn_append ac_func_list " chmod"
2913 as_fn_append ac_func_list " dup"
2914 as_fn_append ac_func_list " dup2"
2915 as_fn_append ac_func_list " execv"
2916 as_fn_append ac_func_list " execve"
2917 as_fn_append ac_func_list " fcntl"
2918 as_fn_append ac_func_list " fork"
2919 as_fn_append ac_func_list " fstat"
2920 as_fn_append ac_func_list " fstatfs"
2921 as_fn_append ac_func_list " ftruncate"
2922 as_fn_append ac_func_list " getdirentries"
2923 as_fn_append ac_func_list " getegid"
2924 as_fn_append ac_func_list " geteuid"
2925 as_fn_append ac_func_list " getgid"
2926 as_fn_append ac_func_list " getpid"
2927 as_fn_append ac_func_list " getppid"
2928 as_fn_append ac_func_list " getrusage"
2929 as_fn_append ac_func_list " gettimeofday"
2930 as_fn_append ac_func_list " getuid"
2931 as_fn_append ac_func_list " ioctl"
2932 as_fn_append ac_func_list " kill"
2933 as_fn_append ac_func_list " link"
2934 as_fn_append ac_func_list " lseek"
2935 as_fn_append ac_func_list " lstat"
2936 as_fn_append ac_func_list " mkdir"
2937 as_fn_append ac_func_list " mmap"
2938 as_fn_append ac_func_list " munmap"
2939 as_fn_append ac_func_list " pipe"
2940 as_fn_append ac_func_list " posix_fallocate"
2941 as_fn_append ac_func_list " pread"
2942 as_fn_append ac_func_list " rmdir"
2943 as_fn_append ac_func_list " setregid"
2944 as_fn_append ac_func_list " setreuid"
2945 as_fn_append ac_func_list " setgid"
2946 as_fn_append ac_func_list " setuid"
2947 as_fn_append ac_func_list " sigaction"
2948 as_fn_append ac_func_list " sigprocmask"
2949 as_fn_append ac_func_list " sqrt"
2950 as_fn_append ac_func_list " stat"
2951 as_fn_append ac_func_list " strsignal"
2952 as_fn_append ac_func_list " symlink"
2953 as_fn_append ac_func_list " tcdrain"
2954 as_fn_append ac_func_list " tcflow"
2955 as_fn_append ac_func_list " tcflush"
2956 as_fn_append ac_func_list " tcgetattr"
2957 as_fn_append ac_func_list " tcgetpgrp"
2958 as_fn_append ac_func_list " tcsendbreak"
2959 as_fn_append ac_func_list " tcsetattr"
2960 as_fn_append ac_func_list " tcsetpgrp"
2961 as_fn_append ac_func_list " time"
2962 as_fn_append ac_func_list " truncate"
2963 as_fn_append ac_func_list " umask"
2964 as_fn_append ac_func_list " unlink"
2965 as_fn_append ac_func_list " utime"
2966 # Check that the precious variables saved in the cache have kept the same
2967 # value.
2968 ac_cache_corrupted=false
2969 for ac_var in $ac_precious_vars; do
2970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2971 eval ac_new_set=\$ac_env_${ac_var}_set
2972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2973 eval ac_new_val=\$ac_env_${ac_var}_value
2974 case $ac_old_set,$ac_new_set in
2975 set,)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,set)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2983 ,);;
2984 *)
2985 if test "x$ac_old_val" != "x$ac_new_val"; then
2986 # differences in whitespace do not lead to failure.
2987 ac_old_val_w=`echo x $ac_old_val`
2988 ac_new_val_w=`echo x $ac_new_val`
2989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992 ac_cache_corrupted=:
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996 eval $ac_var=\$ac_old_val
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3002 fi;;
3003 esac
3004 # Pass precious variables to config.status.
3005 if test "$ac_new_set" = set; then
3006 case $ac_new_val in
3007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 *) ac_arg=$ac_var=$ac_new_val ;;
3009 esac
3010 case " $ac_configure_args " in
3011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3012 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3013 esac
3014 fi
3015 done
3016 if $ac_cache_corrupted; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3021 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3022 fi
3023 ## -------------------- ##
3024 ## Main body of script. ##
3025 ## -------------------- ##
3026
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032
3033
3034
3035
3036
3037
3038
3039
3040 # Check whether --with-pkgversion was given.
3041 if test "${with_pkgversion+set}" = set; then :
3042 withval=$with_pkgversion; case "$withval" in
3043 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3044 no) PKGVERSION= ;;
3045 *) PKGVERSION="($withval) " ;;
3046 esac
3047 else
3048 PKGVERSION="(SIM) "
3049
3050 fi
3051
3052
3053
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define PKGVERSION "$PKGVERSION"
3057 _ACEOF
3058
3059
3060
3061 # Check whether --with-bugurl was given.
3062 if test "${with_bugurl+set}" = set; then :
3063 withval=$with_bugurl; case "$withval" in
3064 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3065 no) BUGURL=
3066 ;;
3067 *) BUGURL="$withval"
3068 ;;
3069 esac
3070 else
3071 BUGURL="$PACKAGE_BUGREPORT"
3072
3073 fi
3074
3075 case ${BUGURL} in
3076 "")
3077 REPORT_BUGS_TO=
3078 REPORT_BUGS_TEXI=
3079 ;;
3080 *)
3081 REPORT_BUGS_TO="<$BUGURL>"
3082 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3083 ;;
3084 esac;
3085
3086
3087
3088
3089 cat >>confdefs.h <<_ACEOF
3090 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3091 _ACEOF
3092
3093
3094 ac_config_headers="$ac_config_headers config.h"
3095
3096
3097 ac_aux_dir=
3098 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3099 if test -f "$ac_dir/install-sh"; then
3100 ac_aux_dir=$ac_dir
3101 ac_install_sh="$ac_aux_dir/install-sh -c"
3102 break
3103 elif test -f "$ac_dir/install.sh"; then
3104 ac_aux_dir=$ac_dir
3105 ac_install_sh="$ac_aux_dir/install.sh -c"
3106 break
3107 elif test -f "$ac_dir/shtool"; then
3108 ac_aux_dir=$ac_dir
3109 ac_install_sh="$ac_aux_dir/shtool install -c"
3110 break
3111 fi
3112 done
3113 if test -z "$ac_aux_dir"; then
3114 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3115 fi
3116
3117 # These three variables are undocumented and unsupported,
3118 # and are intended to be withdrawn in a future Autoconf release.
3119 # They can cause serious problems if a builder's source tree is in a directory
3120 # whose full name contains unusual characters.
3121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3124
3125
3126 # Make sure we can run config.sub.
3127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3128 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3129
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3131 $as_echo_n "checking build system type... " >&6; }
3132 if ${ac_cv_build+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 ac_build_alias=$build_alias
3136 test "x$ac_build_alias" = x &&
3137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3138 test "x$ac_build_alias" = x &&
3139 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3141 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3142
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3145 $as_echo "$ac_cv_build" >&6; }
3146 case $ac_cv_build in
3147 *-*-*) ;;
3148 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3149 esac
3150 build=$ac_cv_build
3151 ac_save_IFS=$IFS; IFS='-'
3152 set x $ac_cv_build
3153 shift
3154 build_cpu=$1
3155 build_vendor=$2
3156 shift; shift
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3159 build_os=$*
3160 IFS=$ac_save_IFS
3161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3162
3163
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3165 $as_echo_n "checking host system type... " >&6; }
3166 if ${ac_cv_host+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test "x$host_alias" = x; then
3170 ac_cv_host=$ac_cv_build
3171 else
3172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3173 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3174 fi
3175
3176 fi
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3178 $as_echo "$ac_cv_host" >&6; }
3179 case $ac_cv_host in
3180 *-*-*) ;;
3181 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3182 esac
3183 host=$ac_cv_host
3184 ac_save_IFS=$IFS; IFS='-'
3185 set x $ac_cv_host
3186 shift
3187 host_cpu=$1
3188 host_vendor=$2
3189 shift; shift
3190 # Remember, the first character of IFS is used to create $*,
3191 # except with old shells:
3192 host_os=$*
3193 IFS=$ac_save_IFS
3194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3195
3196
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3198 $as_echo_n "checking target system type... " >&6; }
3199 if ${ac_cv_target+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test "x$target_alias" = x; then
3203 ac_cv_target=$ac_cv_host
3204 else
3205 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3206 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3207 fi
3208
3209 fi
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3211 $as_echo "$ac_cv_target" >&6; }
3212 case $ac_cv_target in
3213 *-*-*) ;;
3214 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3215 esac
3216 target=$ac_cv_target
3217 ac_save_IFS=$IFS; IFS='-'
3218 set x $ac_cv_target
3219 shift
3220 target_cpu=$1
3221 target_vendor=$2
3222 shift; shift
3223 # Remember, the first character of IFS is used to create $*,
3224 # except with old shells:
3225 target_os=$*
3226 IFS=$ac_save_IFS
3227 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3228
3229
3230 # The aliases save the names the user supplied, while $host etc.
3231 # will get canonicalized.
3232 test -n "$target_alias" &&
3233 test "$program_prefix$program_suffix$program_transform_name" = \
3234 NONENONEs,x,x, &&
3235 program_prefix=${target_alias}-
3236 # Expand $ac_aux_dir to an absolute path.
3237 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3238
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281
3282 fi
3283 if test -z "$ac_cv_prog_CC"; then
3284 ac_ct_CC=$CC
3285 # Extract the first word of "gcc", so it can be a program name with args.
3286 set dummy gcc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_ac_ct_CC="gcc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313 if test -n "$ac_ct_CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315 $as_echo "$ac_ct_CC" >&6; }
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325 yes:)
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328 ac_tool_warned=yes ;;
3329 esac
3330 CC=$ac_ct_CC
3331 fi
3332 else
3333 CC="$ac_cv_prog_CC"
3334 fi
3335
3336 if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}cc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_CC+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_CC="${ac_tool_prefix}cc"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359 done
3360 done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374
3375 fi
3376 fi
3377 if test -z "$CC"; then
3378 # Extract the first word of "cc", so it can be a program name with args.
3379 set dummy cc; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_CC+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3387 else
3388 ac_prog_rejected=no
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3397 ac_prog_rejected=yes
3398 continue
3399 fi
3400 ac_cv_prog_CC="cc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404 done
3405 done
3406 IFS=$as_save_IFS
3407
3408 if test $ac_prog_rejected = yes; then
3409 # We found a bogon in the path, so make sure we never use it.
3410 set dummy $ac_cv_prog_CC
3411 shift
3412 if test $# != 0; then
3413 # We chose a different compiler from the bogus one.
3414 # However, it has the same basename, so the bogon will be chosen
3415 # first if we set CC to just the basename; use the full file name.
3416 shift
3417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 fi
3419 fi
3420 fi
3421 fi
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432 fi
3433 if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 for ac_prog in cl.exe
3436 do
3437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 CC=$ac_cv_prog_CC
3465 if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467 $as_echo "$CC" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473
3474 test -n "$CC" && break
3475 done
3476 fi
3477 if test -z "$CC"; then
3478 ac_ct_CC=$CC
3479 for ac_prog in cl.exe
3480 do
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482 set dummy $ac_prog; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_ac_ct_CC="$ac_prog"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505
3506 fi
3507 fi
3508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3509 if test -n "$ac_ct_CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3511 $as_echo "$ac_ct_CC" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3515 fi
3516
3517
3518 test -n "$ac_ct_CC" && break
3519 done
3520
3521 if test "x$ac_ct_CC" = x; then
3522 CC=""
3523 else
3524 case $cross_compiling:$ac_tool_warned in
3525 yes:)
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528 ac_tool_warned=yes ;;
3529 esac
3530 CC=$ac_ct_CC
3531 fi
3532 fi
3533
3534 fi
3535
3536
3537 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $? "no acceptable C compiler found in \$PATH
3540 See \`config.log' for more details" "$LINENO" 5; }
3541
3542 # Provide some information about the compiler.
3543 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3544 set X $ac_compile
3545 ac_compiler=$2
3546 for ac_option in --version -v -V -qversion; do
3547 { { ac_try="$ac_compiler $ac_option >&5"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3555 ac_status=$?
3556 if test -s conftest.err; then
3557 sed '10a\
3558 ... rest of stderr output deleted ...
3559 10q' conftest.err >conftest.er1
3560 cat conftest.er1 >&5
3561 fi
3562 rm -f conftest.er1 conftest.err
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }
3565 done
3566
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569
3570 int
3571 main ()
3572 {
3573
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 ac_clean_files_save=$ac_clean_files
3579 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3580 # Try to create an executable without -o first, disregard a.out.
3581 # It will help us diagnose broken compilers, and finding out an intuition
3582 # of exeext.
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3584 $as_echo_n "checking whether the C compiler works... " >&6; }
3585 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3586
3587 # The possible output files:
3588 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3589
3590 ac_rmfiles=
3591 for ac_file in $ac_files
3592 do
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3596 esac
3597 done
3598 rm -f $ac_rmfiles
3599
3600 if { { ac_try="$ac_link_default"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link_default") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3612 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3613 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3614 # so that the user can short-circuit this test for compilers unknown to
3615 # Autoconf.
3616 for ac_file in $ac_files ''
3617 do
3618 test -f "$ac_file" || continue
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3621 ;;
3622 [ab].out )
3623 # We found the default executable, but exeext='' is most
3624 # certainly right.
3625 break;;
3626 *.* )
3627 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3628 then :; else
3629 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 fi
3631 # We set ac_cv_exeext here because the later test for it is not
3632 # safe: cross compilers may not add the suffix if given an `-o'
3633 # argument, so we may need to know it at that point already.
3634 # Even if this section looks crufty: it has the advantage of
3635 # actually working.
3636 break;;
3637 * )
3638 break;;
3639 esac
3640 done
3641 test "$ac_cv_exeext" = no && ac_cv_exeext=
3642
3643 else
3644 ac_file=''
3645 fi
3646 if test -z "$ac_file"; then :
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3649 $as_echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error 77 "C compiler cannot create executables
3655 See \`config.log' for more details" "$LINENO" 5; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3658 $as_echo "yes" >&6; }
3659 fi
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3661 $as_echo_n "checking for C compiler default output file name... " >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3663 $as_echo "$ac_file" >&6; }
3664 ac_exeext=$ac_cv_exeext
3665
3666 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3667 ac_clean_files=$ac_clean_files_save
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3669 $as_echo_n "checking for suffix of executables... " >&6; }
3670 if { { ac_try="$ac_link"
3671 case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3683 # work properly (i.e., refer to `conftest.exe'), while it won't with
3684 # `rm'.
3685 for ac_file in conftest.exe conftest conftest.*; do
3686 test -f "$ac_file" || continue
3687 case $ac_file in
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 break;;
3691 * ) break;;
3692 esac
3693 done
3694 else
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details" "$LINENO" 5; }
3699 fi
3700 rm -f conftest conftest$ac_cv_exeext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3702 $as_echo "$ac_cv_exeext" >&6; }
3703
3704 rm -f conftest.$ac_ext
3705 EXEEXT=$ac_cv_exeext
3706 ac_exeext=$EXEEXT
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709 #include <stdio.h>
3710 int
3711 main ()
3712 {
3713 FILE *f = fopen ("conftest.out", "w");
3714 return ferror (f) || fclose (f) != 0;
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 ac_clean_files="$ac_clean_files conftest.out"
3721 # Check that the compiler produces executables we can run. If not, either
3722 # the compiler is broken, or we cross compile.
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3724 $as_echo_n "checking whether we are cross compiling... " >&6; }
3725 if test "$cross_compiling" != yes; then
3726 { { ac_try="$ac_link"
3727 case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_link") 2>&5
3734 ac_status=$?
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }
3737 if { ac_try='./conftest$ac_cv_exeext'
3738 { { case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 $as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_try") 2>&5
3745 ac_status=$?
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }; }; then
3748 cross_compiling=no
3749 else
3750 if test "$cross_compiling" = maybe; then
3751 cross_compiling=yes
3752 else
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot run C compiled programs.
3756 If you meant to cross compile, use \`--host'.
3757 See \`config.log' for more details" "$LINENO" 5; }
3758 fi
3759 fi
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3762 $as_echo "$cross_compiling" >&6; }
3763
3764 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3765 ac_clean_files=$ac_clean_files_save
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3767 $as_echo_n "checking for suffix of object files... " >&6; }
3768 if ${ac_cv_objext+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773
3774 int
3775 main ()
3776 {
3777
3778 ;
3779 return 0;
3780 }
3781 _ACEOF
3782 rm -f conftest.o conftest.obj
3783 if { { ac_try="$ac_compile"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_compile") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then :
3794 for ac_file in conftest.o conftest.obj conftest.*; do
3795 test -f "$ac_file" || continue;
3796 case $ac_file in
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3799 break;;
3800 esac
3801 done
3802 else
3803 $as_echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "cannot compute suffix of object files: cannot compile
3809 See \`config.log' for more details" "$LINENO" 5; }
3810 fi
3811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3814 $as_echo "$ac_cv_objext" >&6; }
3815 OBJEXT=$ac_cv_objext
3816 ac_objext=$OBJEXT
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3818 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3819 if ${ac_cv_c_compiler_gnu+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824
3825 int
3826 main ()
3827 {
3828 #ifndef __GNUC__
3829 choke me
3830 #endif
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_compiler_gnu=yes
3838 else
3839 ac_compiler_gnu=no
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3843
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3846 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3847 if test $ac_compiler_gnu = yes; then
3848 GCC=yes
3849 else
3850 GCC=
3851 fi
3852 ac_test_CFLAGS=${CFLAGS+set}
3853 ac_save_CFLAGS=$CFLAGS
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3855 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3856 if ${ac_cv_prog_cc_g+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 ac_save_c_werror_flag=$ac_c_werror_flag
3860 ac_c_werror_flag=yes
3861 ac_cv_prog_cc_g=no
3862 CFLAGS="-g"
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_g=yes
3876 else
3877 CFLAGS=""
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
3891 else
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3893 CFLAGS="-g"
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896
3897 int
3898 main ()
3899 {
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_prog_cc_g=yes
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 fi
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 fi
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3916 $as_echo "$ac_cv_prog_cc_g" >&6; }
3917 if test "$ac_test_CFLAGS" = set; then
3918 CFLAGS=$ac_save_CFLAGS
3919 elif test $ac_cv_prog_cc_g = yes; then
3920 if test "$GCC" = yes; then
3921 CFLAGS="-g -O2"
3922 else
3923 CFLAGS="-g"
3924 fi
3925 else
3926 if test "$GCC" = yes; then
3927 CFLAGS="-O2"
3928 else
3929 CFLAGS=
3930 fi
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3933 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3934 if ${ac_cv_prog_cc_c89+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 ac_cv_prog_cc_c89=no
3938 ac_save_CC=$CC
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #include <stdarg.h>
3942 #include <stdio.h>
3943 struct stat;
3944 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3945 struct buf { int x; };
3946 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3947 static char *e (p, i)
3948 char **p;
3949 int i;
3950 {
3951 return p[i];
3952 }
3953 static char *f (char * (*g) (char **, int), char **p, ...)
3954 {
3955 char *s;
3956 va_list v;
3957 va_start (v,p);
3958 s = g (p, va_arg (v,int));
3959 va_end (v);
3960 return s;
3961 }
3962
3963 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3964 function prototypes and stuff, but not '\xHH' hex character constants.
3965 These don't provoke an error unfortunately, instead are silently treated
3966 as 'x'. The following induces an error, until -std is added to get
3967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3968 array size at least. It's necessary to write '\x00'==0 to get something
3969 that's true only with -std. */
3970 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3971
3972 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3973 inside strings and character constants. */
3974 #define FOO(x) 'x'
3975 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3976
3977 int test (int i, double x);
3978 struct s1 {int (*f) (int a);};
3979 struct s2 {int (*f) (double a);};
3980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3981 int argc;
3982 char **argv;
3983 int
3984 main ()
3985 {
3986 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3992 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3993 do
3994 CC="$ac_save_CC $ac_arg"
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_cv_prog_cc_c89=$ac_arg
3997 fi
3998 rm -f core conftest.err conftest.$ac_objext
3999 test "x$ac_cv_prog_cc_c89" != "xno" && break
4000 done
4001 rm -f conftest.$ac_ext
4002 CC=$ac_save_CC
4003
4004 fi
4005 # AC_CACHE_VAL
4006 case "x$ac_cv_prog_cc_c89" in
4007 x)
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4009 $as_echo "none needed" >&6; } ;;
4010 xno)
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4012 $as_echo "unsupported" >&6; } ;;
4013 *)
4014 CC="$CC $ac_cv_prog_cc_c89"
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4016 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4017 esac
4018 if test "x$ac_cv_prog_cc_c89" != xno; then :
4019
4020 fi
4021
4022 ac_ext=c
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4034 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4035 if ${am_cv_prog_cc_c_o+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040
4041 int
4042 main ()
4043 {
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 # Make sure it works both with $CC and with simple cc.
4050 # Following AC_PROG_CC_C_O, we do the test twice because some
4051 # compilers refuse to overwrite an existing .o file with -o,
4052 # though they will create one.
4053 am_cv_prog_cc_c_o=yes
4054 for am_i in 1 2; do
4055 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4056 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } \
4060 && test -f conftest2.$ac_objext; then
4061 : OK
4062 else
4063 am_cv_prog_cc_c_o=no
4064 break
4065 fi
4066 done
4067 rm -f core conftest*
4068 unset am_i
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4071 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4072 if test "$am_cv_prog_cc_c_o" != yes; then
4073 # Losing compiler, so override with the script.
4074 # FIXME: It is wrong to rewrite CC.
4075 # But if we don't then we get into trouble of one sort or another.
4076 # A longer-term fix would be to have automake use am__CC in this case,
4077 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4078 CC="$am_aux_dir/compile $CC"
4079 fi
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086
4087
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4094 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4095 # On Suns, sometimes $CPP names a directory.
4096 if test -n "$CPP" && test -d "$CPP"; then
4097 CPP=
4098 fi
4099 if test -z "$CPP"; then
4100 if ${ac_cv_prog_CPP+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 # Double quotes because CPP needs to be expanded
4104 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4105 do
4106 ac_preproc_ok=false
4107 for ac_c_preproc_warn_flag in '' yes
4108 do
4109 # Use a header file that comes with gcc, so configuring glibc
4110 # with a fresh cross-compiler works.
4111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112 # <limits.h> exists even on freestanding compilers.
4113 # On the NeXT, cc -E runs the code through the compiler's parser,
4114 # not just through cpp. "Syntax error" is here to catch this case.
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #ifdef __STDC__
4118 # include <limits.h>
4119 #else
4120 # include <assert.h>
4121 #endif
4122 Syntax error
4123 _ACEOF
4124 if ac_fn_c_try_cpp "$LINENO"; then :
4125
4126 else
4127 # Broken: fails on valid input.
4128 continue
4129 fi
4130 rm -f conftest.err conftest.i conftest.$ac_ext
4131
4132 # OK, works on sane cases. Now check whether nonexistent headers
4133 # can be detected and how.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4136 #include <ac_nonexistent.h>
4137 _ACEOF
4138 if ac_fn_c_try_cpp "$LINENO"; then :
4139 # Broken: success on invalid input.
4140 continue
4141 else
4142 # Passes both tests.
4143 ac_preproc_ok=:
4144 break
4145 fi
4146 rm -f conftest.err conftest.i conftest.$ac_ext
4147
4148 done
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.i conftest.err conftest.$ac_ext
4151 if $ac_preproc_ok; then :
4152 break
4153 fi
4154
4155 done
4156 ac_cv_prog_CPP=$CPP
4157
4158 fi
4159 CPP=$ac_cv_prog_CPP
4160 else
4161 ac_cv_prog_CPP=$CPP
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4164 $as_echo "$CPP" >&6; }
4165 ac_preproc_ok=false
4166 for ac_c_preproc_warn_flag in '' yes
4167 do
4168 # Use a header file that comes with gcc, so configuring glibc
4169 # with a fresh cross-compiler works.
4170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4171 # <limits.h> exists even on freestanding compilers.
4172 # On the NeXT, cc -E runs the code through the compiler's parser,
4173 # not just through cpp. "Syntax error" is here to catch this case.
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 #ifdef __STDC__
4177 # include <limits.h>
4178 #else
4179 # include <assert.h>
4180 #endif
4181 Syntax error
4182 _ACEOF
4183 if ac_fn_c_try_cpp "$LINENO"; then :
4184
4185 else
4186 # Broken: fails on valid input.
4187 continue
4188 fi
4189 rm -f conftest.err conftest.i conftest.$ac_ext
4190
4191 # OK, works on sane cases. Now check whether nonexistent headers
4192 # can be detected and how.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #include <ac_nonexistent.h>
4196 _ACEOF
4197 if ac_fn_c_try_cpp "$LINENO"; then :
4198 # Broken: success on invalid input.
4199 continue
4200 else
4201 # Passes both tests.
4202 ac_preproc_ok=:
4203 break
4204 fi
4205 rm -f conftest.err conftest.i conftest.$ac_ext
4206
4207 done
4208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4209 rm -f conftest.i conftest.err conftest.$ac_ext
4210 if $ac_preproc_ok; then :
4211
4212 else
4213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4215 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4216 See \`config.log' for more details" "$LINENO" 5; }
4217 fi
4218
4219 ac_ext=c
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4227 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4228 if ${ac_cv_path_GREP+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -z "$GREP"; then
4232 ac_path_GREP_found=false
4233 # Loop through the user's path and test for each of PROGNAME-LIST
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_prog in grep ggrep; do
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4242 as_fn_executable_p "$ac_path_GREP" || continue
4243 # Check for GNU ac_path_GREP and select it if it is found.
4244 # Check for GNU $ac_path_GREP
4245 case `"$ac_path_GREP" --version 2>&1` in
4246 *GNU*)
4247 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4248 *)
4249 ac_count=0
4250 $as_echo_n 0123456789 >"conftest.in"
4251 while :
4252 do
4253 cat "conftest.in" "conftest.in" >"conftest.tmp"
4254 mv "conftest.tmp" "conftest.in"
4255 cp "conftest.in" "conftest.nl"
4256 $as_echo 'GREP' >> "conftest.nl"
4257 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4259 as_fn_arith $ac_count + 1 && ac_count=$as_val
4260 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4261 # Best one so far, save it but keep looking for a better one
4262 ac_cv_path_GREP="$ac_path_GREP"
4263 ac_path_GREP_max=$ac_count
4264 fi
4265 # 10*(2^10) chars as input seems more than enough
4266 test $ac_count -gt 10 && break
4267 done
4268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4269 esac
4270
4271 $ac_path_GREP_found && break 3
4272 done
4273 done
4274 done
4275 IFS=$as_save_IFS
4276 if test -z "$ac_cv_path_GREP"; then
4277 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4278 fi
4279 else
4280 ac_cv_path_GREP=$GREP
4281 fi
4282
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4285 $as_echo "$ac_cv_path_GREP" >&6; }
4286 GREP="$ac_cv_path_GREP"
4287
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4290 $as_echo_n "checking for egrep... " >&6; }
4291 if ${ac_cv_path_EGREP+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4295 then ac_cv_path_EGREP="$GREP -E"
4296 else
4297 if test -z "$EGREP"; then
4298 ac_path_EGREP_found=false
4299 # Loop through the user's path and test for each of PROGNAME-LIST
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4302 do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_prog in egrep; do
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4308 as_fn_executable_p "$ac_path_EGREP" || continue
4309 # Check for GNU ac_path_EGREP and select it if it is found.
4310 # Check for GNU $ac_path_EGREP
4311 case `"$ac_path_EGREP" --version 2>&1` in
4312 *GNU*)
4313 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4314 *)
4315 ac_count=0
4316 $as_echo_n 0123456789 >"conftest.in"
4317 while :
4318 do
4319 cat "conftest.in" "conftest.in" >"conftest.tmp"
4320 mv "conftest.tmp" "conftest.in"
4321 cp "conftest.in" "conftest.nl"
4322 $as_echo 'EGREP' >> "conftest.nl"
4323 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4325 as_fn_arith $ac_count + 1 && ac_count=$as_val
4326 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4327 # Best one so far, save it but keep looking for a better one
4328 ac_cv_path_EGREP="$ac_path_EGREP"
4329 ac_path_EGREP_max=$ac_count
4330 fi
4331 # 10*(2^10) chars as input seems more than enough
4332 test $ac_count -gt 10 && break
4333 done
4334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4335 esac
4336
4337 $ac_path_EGREP_found && break 3
4338 done
4339 done
4340 done
4341 IFS=$as_save_IFS
4342 if test -z "$ac_cv_path_EGREP"; then
4343 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4344 fi
4345 else
4346 ac_cv_path_EGREP=$EGREP
4347 fi
4348
4349 fi
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4352 $as_echo "$ac_cv_path_EGREP" >&6; }
4353 EGREP="$ac_cv_path_EGREP"
4354
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4357 $as_echo_n "checking for ANSI C header files... " >&6; }
4358 if ${ac_cv_header_stdc+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363 #include <stdlib.h>
4364 #include <stdarg.h>
4365 #include <string.h>
4366 #include <float.h>
4367
4368 int
4369 main ()
4370 {
4371
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377 ac_cv_header_stdc=yes
4378 else
4379 ac_cv_header_stdc=no
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382
4383 if test $ac_cv_header_stdc = yes; then
4384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 #include <string.h>
4388
4389 _ACEOF
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "memchr" >/dev/null 2>&1; then :
4392
4393 else
4394 ac_cv_header_stdc=no
4395 fi
4396 rm -f conftest*
4397
4398 fi
4399
4400 if test $ac_cv_header_stdc = yes; then
4401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404 #include <stdlib.h>
4405
4406 _ACEOF
4407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4408 $EGREP "free" >/dev/null 2>&1; then :
4409
4410 else
4411 ac_cv_header_stdc=no
4412 fi
4413 rm -f conftest*
4414
4415 fi
4416
4417 if test $ac_cv_header_stdc = yes; then
4418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4419 if test "$cross_compiling" = yes; then :
4420 :
4421 else
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424 #include <ctype.h>
4425 #include <stdlib.h>
4426 #if ((' ' & 0x0FF) == 0x020)
4427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4429 #else
4430 # define ISLOWER(c) \
4431 (('a' <= (c) && (c) <= 'i') \
4432 || ('j' <= (c) && (c) <= 'r') \
4433 || ('s' <= (c) && (c) <= 'z'))
4434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4435 #endif
4436
4437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4438 int
4439 main ()
4440 {
4441 int i;
4442 for (i = 0; i < 256; i++)
4443 if (XOR (islower (i), ISLOWER (i))
4444 || toupper (i) != TOUPPER (i))
4445 return 2;
4446 return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_c_try_run "$LINENO"; then :
4450
4451 else
4452 ac_cv_header_stdc=no
4453 fi
4454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4455 conftest.$ac_objext conftest.beam conftest.$ac_ext
4456 fi
4457
4458 fi
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4461 $as_echo "$ac_cv_header_stdc" >&6; }
4462 if test $ac_cv_header_stdc = yes; then
4463
4464 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4465
4466 fi
4467
4468 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4469 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4470 inttypes.h stdint.h unistd.h
4471 do :
4472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4473 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4474 "
4475 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4476 cat >>confdefs.h <<_ACEOF
4477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4478 _ACEOF
4479
4480 fi
4481
4482 done
4483
4484
4485
4486 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4487 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4488 MINIX=yes
4489 else
4490 MINIX=
4491 fi
4492
4493
4494 if test "$MINIX" = yes; then
4495
4496 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4497
4498
4499 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4500
4501
4502 $as_echo "#define _MINIX 1" >>confdefs.h
4503
4504 fi
4505
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4508 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4509 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514
4515 # define __EXTENSIONS__ 1
4516 $ac_includes_default
4517 int
4518 main ()
4519 {
4520
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526 ac_cv_safe_to_define___extensions__=yes
4527 else
4528 ac_cv_safe_to_define___extensions__=no
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4533 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4534 test $ac_cv_safe_to_define___extensions__ = yes &&
4535 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4536
4537 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4538
4539 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4540
4541 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4542
4543 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4544
4545
4546 test "$program_prefix" != NONE &&
4547 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4548 # Use a double $ so make ignores it.
4549 test "$program_suffix" != NONE &&
4550 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4551 # Double any \ or $.
4552 # By default was `s,x,x', remove it if useless.
4553 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4555
4556 # Find a good install program. We prefer a C program (faster),
4557 # so one script is as good as another. But avoid the broken or
4558 # incompatible versions:
4559 # SysV /etc/install, /usr/sbin/install
4560 # SunOS /usr/etc/install
4561 # IRIX /sbin/install
4562 # AIX /bin/install
4563 # AmigaOS /C/install, which installs bootblocks on floppy discs
4564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4567 # OS/2's system install, which has a completely different semantic
4568 # ./install, which can be erroneously created by make from ./install.sh.
4569 # Reject install programs that cannot install multiple files.
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4571 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4572 if test -z "$INSTALL"; then
4573 if ${ac_cv_path_install+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 # Account for people who put trailing slashes in PATH elements.
4582 case $as_dir/ in #((
4583 ./ | .// | /[cC]/* | \
4584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4585 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4586 /usr/ucb/* ) ;;
4587 *)
4588 # OSF1 and SCO ODT 3.0 have their own names for install.
4589 # Don't use installbsd from OSF since it installs stuff as root
4590 # by default.
4591 for ac_prog in ginstall scoinst install; do
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4594 if test $ac_prog = install &&
4595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4596 # AIX install. It has an incompatible calling convention.
4597 :
4598 elif test $ac_prog = install &&
4599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4600 # program-specific install script used by HP pwplus--don't use.
4601 :
4602 else
4603 rm -rf conftest.one conftest.two conftest.dir
4604 echo one > conftest.one
4605 echo two > conftest.two
4606 mkdir conftest.dir
4607 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4608 test -s conftest.one && test -s conftest.two &&
4609 test -s conftest.dir/conftest.one &&
4610 test -s conftest.dir/conftest.two
4611 then
4612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4613 break 3
4614 fi
4615 fi
4616 fi
4617 done
4618 done
4619 ;;
4620 esac
4621
4622 done
4623 IFS=$as_save_IFS
4624
4625 rm -rf conftest.one conftest.two conftest.dir
4626
4627 fi
4628 if test "${ac_cv_path_install+set}" = set; then
4629 INSTALL=$ac_cv_path_install
4630 else
4631 # As a last resort, use the slow shell script. Don't cache a
4632 # value for INSTALL within a source directory, because that will
4633 # break other packages using the cache if that directory is
4634 # removed, or if the value is a relative name.
4635 INSTALL=$ac_install_sh
4636 fi
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4639 $as_echo "$INSTALL" >&6; }
4640
4641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4642 # It thinks the first close brace ends the variable substitution.
4643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4644
4645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4646
4647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4648
4649
4650
4651
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4654 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4655 if ${ac_cv_c_bigendian+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 ac_cv_c_bigendian=unknown
4659 # See if we're dealing with a universal compiler.
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #ifndef __APPLE_CC__
4663 not a universal capable compiler
4664 #endif
4665 typedef int dummy;
4666
4667 _ACEOF
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669
4670 # Check for potential -arch flags. It is not universal unless
4671 # there are at least two -arch flags with different values.
4672 ac_arch=
4673 ac_prev=
4674 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4675 if test -n "$ac_prev"; then
4676 case $ac_word in
4677 i?86 | x86_64 | ppc | ppc64)
4678 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4679 ac_arch=$ac_word
4680 else
4681 ac_cv_c_bigendian=universal
4682 break
4683 fi
4684 ;;
4685 esac
4686 ac_prev=
4687 elif test "x$ac_word" = "x-arch"; then
4688 ac_prev=arch
4689 fi
4690 done
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 if test $ac_cv_c_bigendian = unknown; then
4694 # See if sys/param.h defines the BYTE_ORDER macro.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <sys/types.h>
4698 #include <sys/param.h>
4699
4700 int
4701 main ()
4702 {
4703 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4704 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4705 && LITTLE_ENDIAN)
4706 bogus endian macros
4707 #endif
4708
4709 ;
4710 return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 # It does; now see whether it defined to BIG_ENDIAN or not.
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #include <sys/types.h>
4718 #include <sys/param.h>
4719
4720 int
4721 main ()
4722 {
4723 #if BYTE_ORDER != BIG_ENDIAN
4724 not big endian
4725 #endif
4726
4727 ;
4728 return 0;
4729 }
4730 _ACEOF
4731 if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_cv_c_bigendian=yes
4733 else
4734 ac_cv_c_bigendian=no
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 fi
4740 if test $ac_cv_c_bigendian = unknown; then
4741 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 #include <limits.h>
4745
4746 int
4747 main ()
4748 {
4749 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4750 bogus endian macros
4751 #endif
4752
4753 ;
4754 return 0;
4755 }
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 # It does; now see whether it defined to _BIG_ENDIAN or not.
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <limits.h>
4762
4763 int
4764 main ()
4765 {
4766 #ifndef _BIG_ENDIAN
4767 not big endian
4768 #endif
4769
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_cv_c_bigendian=yes
4776 else
4777 ac_cv_c_bigendian=no
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 fi
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 fi
4783 if test $ac_cv_c_bigendian = unknown; then
4784 # Compile a test program.
4785 if test "$cross_compiling" = yes; then :
4786 # Try to guess by grepping values from an object file.
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 short int ascii_mm[] =
4790 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4791 short int ascii_ii[] =
4792 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4793 int use_ascii (int i) {
4794 return ascii_mm[i] + ascii_ii[i];
4795 }
4796 short int ebcdic_ii[] =
4797 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4798 short int ebcdic_mm[] =
4799 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4800 int use_ebcdic (int i) {
4801 return ebcdic_mm[i] + ebcdic_ii[i];
4802 }
4803 extern int foo;
4804
4805 int
4806 main ()
4807 {
4808 return use_ascii (foo) == use_ebcdic (foo);
4809 ;
4810 return 0;
4811 }
4812 _ACEOF
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4815 ac_cv_c_bigendian=yes
4816 fi
4817 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4818 if test "$ac_cv_c_bigendian" = unknown; then
4819 ac_cv_c_bigendian=no
4820 else
4821 # finding both strings is unlikely to happen, but who knows?
4822 ac_cv_c_bigendian=unknown
4823 fi
4824 fi
4825 fi
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 else
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 $ac_includes_default
4831 int
4832 main ()
4833 {
4834
4835 /* Are we little or big endian? From Harbison&Steele. */
4836 union
4837 {
4838 long int l;
4839 char c[sizeof (long int)];
4840 } u;
4841 u.l = 1;
4842 return u.c[sizeof (long int) - 1] == 1;
4843
4844 ;
4845 return 0;
4846 }
4847 _ACEOF
4848 if ac_fn_c_try_run "$LINENO"; then :
4849 ac_cv_c_bigendian=no
4850 else
4851 ac_cv_c_bigendian=yes
4852 fi
4853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4854 conftest.$ac_objext conftest.beam conftest.$ac_ext
4855 fi
4856
4857 fi
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4860 $as_echo "$ac_cv_c_bigendian" >&6; }
4861 case $ac_cv_c_bigendian in #(
4862 yes)
4863 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4864 ;; #(
4865 no)
4866 ;; #(
4867 universal)
4868
4869 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4870
4871 ;; #(
4872 *)
4873 as_fn_error $? "unknown endianness
4874 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4875 esac
4876
4877
4878
4879
4880 if test -n "$ac_tool_prefix"; then
4881 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4882 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_prog_DTC+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if test -n "$DTC"; then
4889 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4901 fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906 fi
4907 fi
4908 DTC=$ac_cv_prog_DTC
4909 if test -n "$DTC"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4911 $as_echo "$DTC" >&6; }
4912 else
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4915 fi
4916
4917
4918 fi
4919 if test -z "$ac_cv_prog_DTC"; then
4920 ac_ct_DTC=$DTC
4921 # Extract the first word of "dtc", so it can be a program name with args.
4922 set dummy dtc; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$ac_ct_DTC"; then
4929 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_ac_ct_DTC="dtc"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4941 fi
4942 done
4943 done
4944 IFS=$as_save_IFS
4945
4946 fi
4947 fi
4948 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4949 if test -n "$ac_ct_DTC"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4951 $as_echo "$ac_ct_DTC" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 fi
4956
4957 if test "x$ac_ct_DTC" = x; then
4958 DTC=""
4959 else
4960 case $cross_compiling:$ac_tool_warned in
4961 yes:)
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4964 ac_tool_warned=yes ;;
4965 esac
4966 DTC=$ac_ct_DTC
4967 fi
4968 else
4969 DTC="$ac_cv_prog_DTC"
4970 fi
4971
4972
4973 if test "x$cross_compiling" = "xno"; then
4974 : "${AR_FOR_BUILD:=\$(AR)}"
4975 : "${CC_FOR_BUILD:=\$(CC)}"
4976 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4977 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4978 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4979 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4980 else
4981 : "${AR_FOR_BUILD:=ar}"
4982 : "${CC_FOR_BUILD:=gcc}"
4983 : "${RANLIB_FOR_BUILD:=ranlib}"
4984 : "${CFLAGS_FOR_BUILD:=-g -O}"
4985 : "${CPPFLAGS_FOR_BUILD:=}"
4986 : "${LDLFAGS_FOR_BUILD:=}"
4987 fi
4988
4989
4990
4991
4992
4993
4994
4995
4996 if test -n "$ac_tool_prefix"; then
4997 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4998 set dummy ${ac_tool_prefix}ar; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if ${ac_cv_prog_AR+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -n "$AR"; then
5005 ac_cv_prog_AR="$AR" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_AR="${ac_tool_prefix}ar"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018 done
5019 done
5020 IFS=$as_save_IFS
5021
5022 fi
5023 fi
5024 AR=$ac_cv_prog_AR
5025 if test -n "$AR"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5027 $as_echo "$AR" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 fi
5032
5033
5034 fi
5035 if test -z "$ac_cv_prog_AR"; then
5036 ac_ct_AR=$AR
5037 # Extract the first word of "ar", so it can be a program name with args.
5038 set dummy ar; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 if test -n "$ac_ct_AR"; then
5045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_ac_ct_AR="ar"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5057 fi
5058 done
5059 done
5060 IFS=$as_save_IFS
5061
5062 fi
5063 fi
5064 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5065 if test -n "$ac_ct_AR"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5067 $as_echo "$ac_ct_AR" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072
5073 if test "x$ac_ct_AR" = x; then
5074 AR=""
5075 else
5076 case $cross_compiling:$ac_tool_warned in
5077 yes:)
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5080 ac_tool_warned=yes ;;
5081 esac
5082 AR=$ac_ct_AR
5083 fi
5084 else
5085 AR="$ac_cv_prog_AR"
5086 fi
5087
5088 if test -n "$ac_tool_prefix"; then
5089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_RANLIB+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$RANLIB"; then
5097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 RANLIB=$ac_cv_prog_RANLIB
5117 if test -n "$RANLIB"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5119 $as_echo "$RANLIB" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125
5126 fi
5127 if test -z "$ac_cv_prog_RANLIB"; then
5128 ac_ct_RANLIB=$RANLIB
5129 # Extract the first word of "ranlib", so it can be a program name with args.
5130 set dummy ranlib; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$ac_ct_RANLIB"; then
5137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_ac_ct_RANLIB="ranlib"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5157 if test -n "$ac_ct_RANLIB"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5159 $as_echo "$ac_ct_RANLIB" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165 if test "x$ac_ct_RANLIB" = x; then
5166 RANLIB=":"
5167 else
5168 case $cross_compiling:$ac_tool_warned in
5169 yes:)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5173 esac
5174 RANLIB=$ac_ct_RANLIB
5175 fi
5176 else
5177 RANLIB="$ac_cv_prog_RANLIB"
5178 fi
5179
5180
5181
5182
5183
5184
5185
5186
5187 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5190 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 case $PKG_CONFIG in
5197 [\\/]* | ?:[\\/]*)
5198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5199 ;;
5200 *)
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214 IFS=$as_save_IFS
5215
5216 ;;
5217 esac
5218 fi
5219 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5220 if test -n "$PKG_CONFIG"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5222 $as_echo "$PKG_CONFIG" >&6; }
5223 else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 $as_echo "no" >&6; }
5226 fi
5227
5228
5229 fi
5230 if test -z "$ac_cv_path_PKG_CONFIG"; then
5231 ac_pt_PKG_CONFIG=$PKG_CONFIG
5232 # Extract the first word of "pkg-config", so it can be a program name with args.
5233 set dummy pkg-config; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 case $ac_pt_PKG_CONFIG in
5240 [\\/]* | ?:[\\/]*)
5241 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5242 ;;
5243 *)
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 ;;
5260 esac
5261 fi
5262 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5263 if test -n "$ac_pt_PKG_CONFIG"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5265 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271 if test "x$ac_pt_PKG_CONFIG" = x; then
5272 PKG_CONFIG=""
5273 else
5274 case $cross_compiling:$ac_tool_warned in
5275 yes:)
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5279 esac
5280 PKG_CONFIG=$ac_pt_PKG_CONFIG
5281 fi
5282 else
5283 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5284 fi
5285
5286 fi
5287 if test -n "$PKG_CONFIG"; then
5288 _pkg_min_version=0.9.0
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5290 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5291 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293 $as_echo "yes" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 PKG_CONFIG=""
5298 fi
5299 fi
5300
5301 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5302 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5303 # is C99. So handle it ourselves.
5304 :
5305 C_DIALECT=
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5307 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310
5311 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5312 # error "C11 support not found"
5313 #endif
5314
5315 _ACEOF
5316 if ac_fn_c_try_compile "$LINENO"; then :
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5318 $as_echo "yes" >&6; }
5319 else
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5324 $as_echo_n "checking for -std=c11 support... " >&6; }
5325 ac_save_CC="$CC"
5326 CC="$CC -std=c11"
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329
5330 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5331 # error "C11 support not found"
5332 #endif
5333
5334 _ACEOF
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5338 $as_echo "yes" >&6; }
5339 CC="$ac_save_CC"
5340 C_DIALECT="-std=c11"
5341
5342 else
5343 as_fn_error $? "C11 is required" "$LINENO" 5
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348
5349
5350
5351
5352
5353 for ac_header in $ac_header_list
5354 do :
5355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5357 "
5358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 _ACEOF
5362
5363 fi
5364
5365 done
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
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 for ac_func in $ac_func_list
5419 do :
5420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5421 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5422 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5423 cat >>confdefs.h <<_ACEOF
5424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5425 _ACEOF
5426
5427 fi
5428 done
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5557 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5558 if ${ac_cv_struct_tm+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 #include <sys/types.h>
5564 #include <time.h>
5565
5566 int
5567 main ()
5568 {
5569 struct tm tm;
5570 int *p = &tm.tm_sec;
5571 return !p;
5572 ;
5573 return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_struct_tm=time.h
5578 else
5579 ac_cv_struct_tm=sys/time.h
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5584 $as_echo "$ac_cv_struct_tm" >&6; }
5585 if test $ac_cv_struct_tm = sys/time.h; then
5586
5587 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5588
5589 fi
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5592 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5593 if ${ac_cv_type_uid_t+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #include <sys/types.h>
5599
5600 _ACEOF
5601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5602 $EGREP "uid_t" >/dev/null 2>&1; then :
5603 ac_cv_type_uid_t=yes
5604 else
5605 ac_cv_type_uid_t=no
5606 fi
5607 rm -f conftest*
5608
5609 fi
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5611 $as_echo "$ac_cv_type_uid_t" >&6; }
5612 if test $ac_cv_type_uid_t = no; then
5613
5614 $as_echo "#define uid_t int" >>confdefs.h
5615
5616
5617 $as_echo "#define gid_t int" >>confdefs.h
5618
5619 fi
5620
5621 case `pwd` in
5622 *\ * | *\ *)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5624 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5625 esac
5626
5627
5628
5629 macro_version='2.2.7a'
5630 macro_revision='1.3134'
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 ltmain="$ac_aux_dir/ltmain.sh"
5645
5646 # Backslashify metacharacters that are still active within
5647 # double-quoted strings.
5648 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5649
5650 # Same as above, but do not quote variable references.
5651 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5652
5653 # Sed substitution to delay expansion of an escaped shell variable in a
5654 # double_quote_subst'ed string.
5655 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5656
5657 # Sed substitution to delay expansion of an escaped single quote.
5658 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5659
5660 # Sed substitution to avoid accidental globbing in evaled expressions
5661 no_glob_subst='s/\*/\\\*/g'
5662
5663 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5664 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5668 $as_echo_n "checking how to print strings... " >&6; }
5669 # Test print first, because it will be a builtin if present.
5670 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5671 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5672 ECHO='print -r --'
5673 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5674 ECHO='printf %s\n'
5675 else
5676 # Use this function as a fallback that always works.
5677 func_fallback_echo ()
5678 {
5679 eval 'cat <<_LTECHO_EOF
5680 $1
5681 _LTECHO_EOF'
5682 }
5683 ECHO='func_fallback_echo'
5684 fi
5685
5686 # func_echo_all arg...
5687 # Invoke $ECHO with all args, space-separated.
5688 func_echo_all ()
5689 {
5690 $ECHO ""
5691 }
5692
5693 case "$ECHO" in
5694 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5695 $as_echo "printf" >&6; } ;;
5696 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5697 $as_echo "print -r" >&6; } ;;
5698 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5699 $as_echo "cat" >&6; } ;;
5700 esac
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5716 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5717 if ${ac_cv_path_SED+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5721 for ac_i in 1 2 3 4 5 6 7; do
5722 ac_script="$ac_script$as_nl$ac_script"
5723 done
5724 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5725 { ac_script=; unset ac_script;}
5726 if test -z "$SED"; then
5727 ac_path_SED_found=false
5728 # Loop through the user's path and test for each of PROGNAME-LIST
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_prog in sed gsed; do
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5737 as_fn_executable_p "$ac_path_SED" || continue
5738 # Check for GNU ac_path_SED and select it if it is found.
5739 # Check for GNU $ac_path_SED
5740 case `"$ac_path_SED" --version 2>&1` in
5741 *GNU*)
5742 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5743 *)
5744 ac_count=0
5745 $as_echo_n 0123456789 >"conftest.in"
5746 while :
5747 do
5748 cat "conftest.in" "conftest.in" >"conftest.tmp"
5749 mv "conftest.tmp" "conftest.in"
5750 cp "conftest.in" "conftest.nl"
5751 $as_echo '' >> "conftest.nl"
5752 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5754 as_fn_arith $ac_count + 1 && ac_count=$as_val
5755 if test $ac_count -gt ${ac_path_SED_max-0}; then
5756 # Best one so far, save it but keep looking for a better one
5757 ac_cv_path_SED="$ac_path_SED"
5758 ac_path_SED_max=$ac_count
5759 fi
5760 # 10*(2^10) chars as input seems more than enough
5761 test $ac_count -gt 10 && break
5762 done
5763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5764 esac
5765
5766 $ac_path_SED_found && break 3
5767 done
5768 done
5769 done
5770 IFS=$as_save_IFS
5771 if test -z "$ac_cv_path_SED"; then
5772 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5773 fi
5774 else
5775 ac_cv_path_SED=$SED
5776 fi
5777
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5780 $as_echo "$ac_cv_path_SED" >&6; }
5781 SED="$ac_cv_path_SED"
5782 rm -f conftest.sed
5783
5784 test -z "$SED" && SED=sed
5785 Xsed="$SED -e 1s/^X//"
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5798 $as_echo_n "checking for fgrep... " >&6; }
5799 if ${ac_cv_path_FGREP+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5803 then ac_cv_path_FGREP="$GREP -F"
5804 else
5805 if test -z "$FGREP"; then
5806 ac_path_FGREP_found=false
5807 # Loop through the user's path and test for each of PROGNAME-LIST
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5810 do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_prog in fgrep; do
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5816 as_fn_executable_p "$ac_path_FGREP" || continue
5817 # Check for GNU ac_path_FGREP and select it if it is found.
5818 # Check for GNU $ac_path_FGREP
5819 case `"$ac_path_FGREP" --version 2>&1` in
5820 *GNU*)
5821 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5822 *)
5823 ac_count=0
5824 $as_echo_n 0123456789 >"conftest.in"
5825 while :
5826 do
5827 cat "conftest.in" "conftest.in" >"conftest.tmp"
5828 mv "conftest.tmp" "conftest.in"
5829 cp "conftest.in" "conftest.nl"
5830 $as_echo 'FGREP' >> "conftest.nl"
5831 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5833 as_fn_arith $ac_count + 1 && ac_count=$as_val
5834 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5835 # Best one so far, save it but keep looking for a better one
5836 ac_cv_path_FGREP="$ac_path_FGREP"
5837 ac_path_FGREP_max=$ac_count
5838 fi
5839 # 10*(2^10) chars as input seems more than enough
5840 test $ac_count -gt 10 && break
5841 done
5842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5843 esac
5844
5845 $ac_path_FGREP_found && break 3
5846 done
5847 done
5848 done
5849 IFS=$as_save_IFS
5850 if test -z "$ac_cv_path_FGREP"; then
5851 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5852 fi
5853 else
5854 ac_cv_path_FGREP=$FGREP
5855 fi
5856
5857 fi
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5860 $as_echo "$ac_cv_path_FGREP" >&6; }
5861 FGREP="$ac_cv_path_FGREP"
5862
5863
5864 test -z "$GREP" && GREP=grep
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884 # Check whether --with-gnu-ld was given.
5885 if test "${with_gnu_ld+set}" = set; then :
5886 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5887 else
5888 with_gnu_ld=no
5889 fi
5890
5891 ac_prog=ld
5892 if test "$GCC" = yes; then
5893 # Check if gcc -print-prog-name=ld gives a path.
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5895 $as_echo_n "checking for ld used by $CC... " >&6; }
5896 case $host in
5897 *-*-mingw*)
5898 # gcc leaves a trailing carriage return which upsets mingw
5899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5900 *)
5901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5902 esac
5903 case $ac_prog in
5904 # Accept absolute paths.
5905 [\\/]* | ?:[\\/]*)
5906 re_direlt='/[^/][^/]*/\.\./'
5907 # Canonicalize the pathname of ld
5908 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5909 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5910 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5911 done
5912 test -z "$LD" && LD="$ac_prog"
5913 ;;
5914 "")
5915 # If it fails, then pretend we aren't using GCC.
5916 ac_prog=ld
5917 ;;
5918 *)
5919 # If it is relative, then search for the first ld in PATH.
5920 with_gnu_ld=unknown
5921 ;;
5922 esac
5923 elif test "$with_gnu_ld" = yes; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5925 $as_echo_n "checking for GNU ld... " >&6; }
5926 else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5928 $as_echo_n "checking for non-GNU ld... " >&6; }
5929 fi
5930 if ${lt_cv_path_LD+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -z "$LD"; then
5934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5935 for ac_dir in $PATH; do
5936 IFS="$lt_save_ifs"
5937 test -z "$ac_dir" && ac_dir=.
5938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5939 lt_cv_path_LD="$ac_dir/$ac_prog"
5940 # Check to see if the program is GNU ld. I'd rather use --version,
5941 # but apparently some variants of GNU ld only accept -v.
5942 # Break only if it was the GNU/non-GNU ld that we prefer.
5943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5944 *GNU* | *'with BFD'*)
5945 test "$with_gnu_ld" != no && break
5946 ;;
5947 *)
5948 test "$with_gnu_ld" != yes && break
5949 ;;
5950 esac
5951 fi
5952 done
5953 IFS="$lt_save_ifs"
5954 else
5955 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5956 fi
5957 fi
5958
5959 LD="$lt_cv_path_LD"
5960 if test -n "$LD"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5962 $as_echo "$LD" >&6; }
5963 else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5969 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5970 if ${lt_cv_prog_gnu_ld+:} false; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5974 case `$LD -v 2>&1 </dev/null` in
5975 *GNU* | *'with BFD'*)
5976 lt_cv_prog_gnu_ld=yes
5977 ;;
5978 *)
5979 lt_cv_prog_gnu_ld=no
5980 ;;
5981 esac
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5984 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5985 with_gnu_ld=$lt_cv_prog_gnu_ld
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5996 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5997 if ${lt_cv_path_NM+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if test -n "$NM"; then
6001 # Let the user override the nm to test.
6002 lt_nm_to_check="$NM"
6003 else
6004 lt_nm_to_check="${ac_tool_prefix}nm"
6005 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6006 lt_nm_to_check="$lt_nm_to_check nm"
6007 fi
6008 fi
6009 for lt_tmp_nm in "$lt_nm_to_check"; do
6010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6011 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6012 IFS="$lt_save_ifs"
6013 test -z "$ac_dir" && ac_dir=.
6014 # Strip out any user-provided options from the nm to test twice,
6015 # the first time to test to see if nm (rather than its options) has
6016 # an explicit path, the second time to yield a file which can be
6017 # nm'ed itself.
6018 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6019 case "$tmp_nm_path" in
6020 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6021 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6022 esac
6023 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6024 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6025 # Check to see if the nm accepts a BSD-compat flag.
6026 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6027 # nm: unknown option "B" ignored
6028 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6029 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6030 break
6031 ;;
6032 *)
6033 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6034 *$tmp_nm*)
6035 lt_cv_path_NM="$tmp_nm -p"
6036 break
6037 ;;
6038 *)
6039 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6040 continue # so that we can try to find one that supports BSD flags
6041 ;;
6042 esac
6043 ;;
6044 esac
6045 fi
6046 done
6047 IFS="$lt_save_ifs"
6048 done
6049 : ${lt_cv_path_NM=no}
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6052 $as_echo "$lt_cv_path_NM" >&6; }
6053 if test "$lt_cv_path_NM" != "no"; then
6054 NM="$lt_cv_path_NM"
6055 else
6056 # Didn't find any BSD compatible name lister, look for dumpbin.
6057 if test -n "$DUMPBIN"; then :
6058 # Let the user override the test.
6059 else
6060 if test -n "$ac_tool_prefix"; then
6061 for ac_prog in dumpbin "link -dump"
6062 do
6063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_DUMPBIN+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$DUMPBIN"; then
6071 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 DUMPBIN=$ac_cv_prog_DUMPBIN
6091 if test -n "$DUMPBIN"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6093 $as_echo "$DUMPBIN" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099
6100 test -n "$DUMPBIN" && break
6101 done
6102 fi
6103 if test -z "$DUMPBIN"; then
6104 ac_ct_DUMPBIN=$DUMPBIN
6105 for ac_prog in dumpbin "link -dump"
6106 do
6107 # Extract the first word of "$ac_prog", so it can be a program name with args.
6108 set dummy $ac_prog; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 if test -n "$ac_ct_DUMPBIN"; then
6115 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6135 if test -n "$ac_ct_DUMPBIN"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6137 $as_echo "$ac_ct_DUMPBIN" >&6; }
6138 else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142
6143
6144 test -n "$ac_ct_DUMPBIN" && break
6145 done
6146
6147 if test "x$ac_ct_DUMPBIN" = x; then
6148 DUMPBIN=":"
6149 else
6150 case $cross_compiling:$ac_tool_warned in
6151 yes:)
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6154 ac_tool_warned=yes ;;
6155 esac
6156 DUMPBIN=$ac_ct_DUMPBIN
6157 fi
6158 fi
6159
6160 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6161 *COFF*)
6162 DUMPBIN="$DUMPBIN -symbols"
6163 ;;
6164 *)
6165 DUMPBIN=:
6166 ;;
6167 esac
6168 fi
6169
6170 if test "$DUMPBIN" != ":"; then
6171 NM="$DUMPBIN"
6172 fi
6173 fi
6174 test -z "$NM" && NM=nm
6175
6176
6177
6178
6179
6180
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6182 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6183 if ${lt_cv_nm_interface+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 lt_cv_nm_interface="BSD nm"
6187 echo "int some_variable = 0;" > conftest.$ac_ext
6188 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6189 (eval "$ac_compile" 2>conftest.err)
6190 cat conftest.err >&5
6191 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6192 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6193 cat conftest.err >&5
6194 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6195 cat conftest.out >&5
6196 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6197 lt_cv_nm_interface="MS dumpbin"
6198 fi
6199 rm -f conftest*
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6202 $as_echo "$lt_cv_nm_interface" >&6; }
6203
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6205 $as_echo_n "checking whether ln -s works... " >&6; }
6206 LN_S=$as_ln_s
6207 if test "$LN_S" = "ln -s"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6209 $as_echo "yes" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6212 $as_echo "no, using $LN_S" >&6; }
6213 fi
6214
6215 # find the maximum length of command line arguments
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6217 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6218 if ${lt_cv_sys_max_cmd_len+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 i=0
6222 teststring="ABCD"
6223
6224 case $build_os in
6225 msdosdjgpp*)
6226 # On DJGPP, this test can blow up pretty badly due to problems in libc
6227 # (any single argument exceeding 2000 bytes causes a buffer overrun
6228 # during glob expansion). Even if it were fixed, the result of this
6229 # check would be larger than it should be.
6230 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6231 ;;
6232
6233 gnu*)
6234 # Under GNU Hurd, this test is not required because there is
6235 # no limit to the length of command line arguments.
6236 # Libtool will interpret -1 as no limit whatsoever
6237 lt_cv_sys_max_cmd_len=-1;
6238 ;;
6239
6240 cygwin* | mingw* | cegcc*)
6241 # On Win9x/ME, this test blows up -- it succeeds, but takes
6242 # about 5 minutes as the teststring grows exponentially.
6243 # Worse, since 9x/ME are not pre-emptively multitasking,
6244 # you end up with a "frozen" computer, even though with patience
6245 # the test eventually succeeds (with a max line length of 256k).
6246 # Instead, let's just punt: use the minimum linelength reported by
6247 # all of the supported platforms: 8192 (on NT/2K/XP).
6248 lt_cv_sys_max_cmd_len=8192;
6249 ;;
6250
6251 mint*)
6252 # On MiNT this can take a long time and run out of memory.
6253 lt_cv_sys_max_cmd_len=8192;
6254 ;;
6255
6256 amigaos*)
6257 # On AmigaOS with pdksh, this test takes hours, literally.
6258 # So we just punt and use a minimum line length of 8192.
6259 lt_cv_sys_max_cmd_len=8192;
6260 ;;
6261
6262 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6263 # This has been around since 386BSD, at least. Likely further.
6264 if test -x /sbin/sysctl; then
6265 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6266 elif test -x /usr/sbin/sysctl; then
6267 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6268 else
6269 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6270 fi
6271 # And add a safety zone
6272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6274 ;;
6275
6276 interix*)
6277 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6278 lt_cv_sys_max_cmd_len=196608
6279 ;;
6280
6281 osf*)
6282 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6283 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6284 # nice to cause kernel panics so lets avoid the loop below.
6285 # First set a reasonable default.
6286 lt_cv_sys_max_cmd_len=16384
6287 #
6288 if test -x /sbin/sysconfig; then
6289 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6290 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6291 esac
6292 fi
6293 ;;
6294 sco3.2v5*)
6295 lt_cv_sys_max_cmd_len=102400
6296 ;;
6297 sysv5* | sco5v6* | sysv4.2uw2*)
6298 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6299 if test -n "$kargmax"; then
6300 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6301 else
6302 lt_cv_sys_max_cmd_len=32768
6303 fi
6304 ;;
6305 *)
6306 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6307 if test -n "$lt_cv_sys_max_cmd_len"; then
6308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6310 else
6311 # Make teststring a little bigger before we do anything with it.
6312 # a 1K string should be a reasonable start.
6313 for i in 1 2 3 4 5 6 7 8 ; do
6314 teststring=$teststring$teststring
6315 done
6316 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6317 # If test is not a shell built-in, we'll probably end up computing a
6318 # maximum length that is only half of the actual maximum length, but
6319 # we can't tell.
6320 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6321 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6322 test $i != 17 # 1/2 MB should be enough
6323 do
6324 i=`expr $i + 1`
6325 teststring=$teststring$teststring
6326 done
6327 # Only check the string length outside the loop.
6328 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6329 teststring=
6330 # Add a significant safety factor because C++ compilers can tack on
6331 # massive amounts of additional arguments before passing them to the
6332 # linker. It appears as though 1/2 is a usable value.
6333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6334 fi
6335 ;;
6336 esac
6337
6338 fi
6339
6340 if test -n $lt_cv_sys_max_cmd_len ; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6342 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6345 $as_echo "none" >&6; }
6346 fi
6347 max_cmd_len=$lt_cv_sys_max_cmd_len
6348
6349
6350
6351
6352
6353
6354 : ${CP="cp -f"}
6355 : ${MV="mv -f"}
6356 : ${RM="rm -f"}
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6359 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6360 # Try some XSI features
6361 xsi_shell=no
6362 ( _lt_dummy="a/b/c"
6363 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6364 = c,a/b,, \
6365 && eval 'test $(( 1 + 1 )) -eq 2 \
6366 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6367 && xsi_shell=yes
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6369 $as_echo "$xsi_shell" >&6; }
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6373 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6374 lt_shell_append=no
6375 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6376 >/dev/null 2>&1 \
6377 && lt_shell_append=yes
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6379 $as_echo "$lt_shell_append" >&6; }
6380
6381
6382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6383 lt_unset=unset
6384 else
6385 lt_unset=false
6386 fi
6387
6388
6389
6390
6391
6392 # test EBCDIC or ASCII
6393 case `echo X|tr X '\101'` in
6394 A) # ASCII based system
6395 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6396 lt_SP2NL='tr \040 \012'
6397 lt_NL2SP='tr \015\012 \040\040'
6398 ;;
6399 *) # EBCDIC based system
6400 lt_SP2NL='tr \100 \n'
6401 lt_NL2SP='tr \r\n \100\100'
6402 ;;
6403 esac
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6414 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6415 if ${lt_cv_ld_reload_flag+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 lt_cv_ld_reload_flag='-r'
6419 fi
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6421 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6422 reload_flag=$lt_cv_ld_reload_flag
6423 case $reload_flag in
6424 "" | " "*) ;;
6425 *) reload_flag=" $reload_flag" ;;
6426 esac
6427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6428 case $host_os in
6429 darwin*)
6430 if test "$GCC" = yes; then
6431 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6432 else
6433 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6434 fi
6435 ;;
6436 esac
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_OBJDUMP+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$OBJDUMP"; then
6455 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 OBJDUMP=$ac_cv_prog_OBJDUMP
6475 if test -n "$OBJDUMP"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6477 $as_echo "$OBJDUMP" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483
6484 fi
6485 if test -z "$ac_cv_prog_OBJDUMP"; then
6486 ac_ct_OBJDUMP=$OBJDUMP
6487 # Extract the first word of "objdump", so it can be a program name with args.
6488 set dummy objdump; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 if test -n "$ac_ct_OBJDUMP"; then
6495 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6515 if test -n "$ac_ct_OBJDUMP"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6517 $as_echo "$ac_ct_OBJDUMP" >&6; }
6518 else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523 if test "x$ac_ct_OBJDUMP" = x; then
6524 OBJDUMP="false"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532 OBJDUMP=$ac_ct_OBJDUMP
6533 fi
6534 else
6535 OBJDUMP="$ac_cv_prog_OBJDUMP"
6536 fi
6537
6538 test -z "$OBJDUMP" && OBJDUMP=objdump
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6549 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6550 if ${lt_cv_deplibs_check_method+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 lt_cv_file_magic_cmd='$MAGIC_CMD'
6554 lt_cv_file_magic_test_file=
6555 lt_cv_deplibs_check_method='unknown'
6556 # Need to set the preceding variable on all platforms that support
6557 # interlibrary dependencies.
6558 # 'none' -- dependencies not supported.
6559 # `unknown' -- same as none, but documents that we really don't know.
6560 # 'pass_all' -- all dependencies passed with no checks.
6561 # 'test_compile' -- check by making test program.
6562 # 'file_magic [[regex]]' -- check by looking for files in library path
6563 # which responds to the $file_magic_cmd with a given extended regex.
6564 # If you have `file' or equivalent on your system and you're not sure
6565 # whether `pass_all' will *always* work, you probably want this one.
6566
6567 case $host_os in
6568 aix[4-9]*)
6569 lt_cv_deplibs_check_method=pass_all
6570 ;;
6571
6572 beos*)
6573 lt_cv_deplibs_check_method=pass_all
6574 ;;
6575
6576 bsdi[45]*)
6577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6578 lt_cv_file_magic_cmd='/usr/bin/file -L'
6579 lt_cv_file_magic_test_file=/shlib/libc.so
6580 ;;
6581
6582 cygwin*)
6583 # func_win32_libid is a shell function defined in ltmain.sh
6584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6585 lt_cv_file_magic_cmd='func_win32_libid'
6586 ;;
6587
6588 mingw* | pw32*)
6589 # Base MSYS/MinGW do not provide the 'file' command needed by
6590 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6591 # unless we find 'file', for example because we are cross-compiling.
6592 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6593 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6595 lt_cv_file_magic_cmd='func_win32_libid'
6596 else
6597 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6598 lt_cv_file_magic_cmd='$OBJDUMP -f'
6599 fi
6600 ;;
6601
6602 cegcc*)
6603 # use the weaker test based on 'objdump'. See mingw*.
6604 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6605 lt_cv_file_magic_cmd='$OBJDUMP -f'
6606 ;;
6607
6608 darwin* | rhapsody*)
6609 lt_cv_deplibs_check_method=pass_all
6610 ;;
6611
6612 freebsd* | dragonfly*)
6613 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6614 case $host_cpu in
6615 i*86 )
6616 # Not sure whether the presence of OpenBSD here was a mistake.
6617 # Let's accept both of them until this is cleared up.
6618 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6619 lt_cv_file_magic_cmd=/usr/bin/file
6620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6621 ;;
6622 esac
6623 else
6624 lt_cv_deplibs_check_method=pass_all
6625 fi
6626 ;;
6627
6628 gnu*)
6629 lt_cv_deplibs_check_method=pass_all
6630 ;;
6631
6632 haiku*)
6633 lt_cv_deplibs_check_method=pass_all
6634 ;;
6635
6636 hpux10.20* | hpux11*)
6637 lt_cv_file_magic_cmd=/usr/bin/file
6638 case $host_cpu in
6639 ia64*)
6640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6642 ;;
6643 hppa*64*)
6644 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]'
6645 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6646 ;;
6647 *)
6648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6649 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6650 ;;
6651 esac
6652 ;;
6653
6654 interix[3-9]*)
6655 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6657 ;;
6658
6659 irix5* | irix6* | nonstopux*)
6660 case $LD in
6661 *-32|*"-32 ") libmagic=32-bit;;
6662 *-n32|*"-n32 ") libmagic=N32;;
6663 *-64|*"-64 ") libmagic=64-bit;;
6664 *) libmagic=never-match;;
6665 esac
6666 lt_cv_deplibs_check_method=pass_all
6667 ;;
6668
6669 # This must be Linux ELF.
6670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6671 lt_cv_deplibs_check_method=pass_all
6672 ;;
6673
6674 netbsd*)
6675 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6677 else
6678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6679 fi
6680 ;;
6681
6682 newos6*)
6683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6684 lt_cv_file_magic_cmd=/usr/bin/file
6685 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6686 ;;
6687
6688 *nto* | *qnx*)
6689 lt_cv_deplibs_check_method=pass_all
6690 ;;
6691
6692 openbsd*)
6693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6695 else
6696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6697 fi
6698 ;;
6699
6700 osf3* | osf4* | osf5*)
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
6703
6704 rdos*)
6705 lt_cv_deplibs_check_method=pass_all
6706 ;;
6707
6708 solaris*)
6709 lt_cv_deplibs_check_method=pass_all
6710 ;;
6711
6712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6713 lt_cv_deplibs_check_method=pass_all
6714 ;;
6715
6716 sysv4 | sysv4.3*)
6717 case $host_vendor in
6718 motorola)
6719 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]'
6720 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6721 ;;
6722 ncr)
6723 lt_cv_deplibs_check_method=pass_all
6724 ;;
6725 sequent)
6726 lt_cv_file_magic_cmd='/bin/file'
6727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6728 ;;
6729 sni)
6730 lt_cv_file_magic_cmd='/bin/file'
6731 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6732 lt_cv_file_magic_test_file=/lib/libc.so
6733 ;;
6734 siemens)
6735 lt_cv_deplibs_check_method=pass_all
6736 ;;
6737 pc)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740 esac
6741 ;;
6742
6743 tpf*)
6744 lt_cv_deplibs_check_method=pass_all
6745 ;;
6746 esac
6747
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6750 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6751 file_magic_cmd=$lt_cv_file_magic_cmd
6752 deplibs_check_method=$lt_cv_deplibs_check_method
6753 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766 plugin_option=
6767 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6768 for plugin in $plugin_names; do
6769 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6770 if test x$plugin_so = x$plugin; then
6771 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6772 fi
6773 if test x$plugin_so != x$plugin; then
6774 plugin_option="--plugin $plugin_so"
6775 break
6776 fi
6777 done
6778
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}ar; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_AR+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test -n "$AR"; then
6788 ac_cv_prog_AR="$AR" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_AR="${ac_tool_prefix}ar"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 AR=$ac_cv_prog_AR
6808 if test -n "$AR"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6810 $as_echo "$AR" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_AR"; then
6819 ac_ct_AR=$AR
6820 # Extract the first word of "ar", so it can be a program name with args.
6821 set dummy ar; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 if test -n "$ac_ct_AR"; then
6828 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6837 ac_cv_prog_ac_ct_AR="ar"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6848 if test -n "$ac_ct_AR"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6850 $as_echo "$ac_ct_AR" >&6; }
6851 else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856 if test "x$ac_ct_AR" = x; then
6857 AR="false"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865 AR=$ac_ct_AR
6866 fi
6867 else
6868 AR="$ac_cv_prog_AR"
6869 fi
6870
6871 test -z "$AR" && AR=ar
6872 if test -n "$plugin_option"; then
6873 if $AR --help 2>&1 | grep -q "\--plugin"; then
6874 touch conftest.c
6875 $AR $plugin_option rc conftest.a conftest.c
6876 if test "$?" != 0; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6878 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6879 else
6880 AR="$AR $plugin_option"
6881 fi
6882 rm -f conftest.*
6883 fi
6884 fi
6885 test -z "$AR_FLAGS" && AR_FLAGS=cru
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897 if test -n "$ac_tool_prefix"; then
6898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}strip; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_prog_STRIP+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 if test -n "$STRIP"; then
6906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 STRIP=$ac_cv_prog_STRIP
6926 if test -n "$STRIP"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6928 $as_echo "$STRIP" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_STRIP"; then
6937 ac_ct_STRIP=$STRIP
6938 # Extract the first word of "strip", so it can be a program name with args.
6939 set dummy strip; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$ac_ct_STRIP"; then
6946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_ac_ct_STRIP="strip"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6966 if test -n "$ac_ct_STRIP"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6968 $as_echo "$ac_ct_STRIP" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974 if test "x$ac_ct_STRIP" = x; then
6975 STRIP=":"
6976 else
6977 case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983 STRIP=$ac_ct_STRIP
6984 fi
6985 else
6986 STRIP="$ac_cv_prog_STRIP"
6987 fi
6988
6989 test -z "$STRIP" && STRIP=:
6990
6991
6992
6993
6994
6995
6996 if test -n "$ac_tool_prefix"; then
6997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if ${ac_cv_prog_RANLIB+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 if test -n "$RANLIB"; then
7005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7017 fi
7018 done
7019 done
7020 IFS=$as_save_IFS
7021
7022 fi
7023 fi
7024 RANLIB=$ac_cv_prog_RANLIB
7025 if test -n "$RANLIB"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7027 $as_echo "$RANLIB" >&6; }
7028 else
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031 fi
7032
7033
7034 fi
7035 if test -z "$ac_cv_prog_RANLIB"; then
7036 ac_ct_RANLIB=$RANLIB
7037 # Extract the first word of "ranlib", so it can be a program name with args.
7038 set dummy ranlib; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test -n "$ac_ct_RANLIB"; then
7045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054 ac_cv_prog_ac_ct_RANLIB="ranlib"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058 done
7059 done
7060 IFS=$as_save_IFS
7061
7062 fi
7063 fi
7064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7065 if test -n "$ac_ct_RANLIB"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7067 $as_echo "$ac_ct_RANLIB" >&6; }
7068 else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7072
7073 if test "x$ac_ct_RANLIB" = x; then
7074 RANLIB=":"
7075 else
7076 case $cross_compiling:$ac_tool_warned in
7077 yes:)
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080 ac_tool_warned=yes ;;
7081 esac
7082 RANLIB=$ac_ct_RANLIB
7083 fi
7084 else
7085 RANLIB="$ac_cv_prog_RANLIB"
7086 fi
7087
7088 test -z "$RANLIB" && RANLIB=:
7089 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7090 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7091 RANLIB="$RANLIB $plugin_option"
7092 fi
7093 fi
7094
7095
7096
7097
7098
7099
7100 # Determine commands to create old-style static archives.
7101 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7102 old_postinstall_cmds='chmod 644 $oldlib'
7103 old_postuninstall_cmds=
7104
7105 if test -n "$RANLIB"; then
7106 case $host_os in
7107 openbsd*)
7108 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7109 ;;
7110 *)
7111 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7112 ;;
7113 esac
7114 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7115 fi
7116
7117 case $host_os in
7118 darwin*)
7119 lock_old_archive_extraction=yes ;;
7120 *)
7121 lock_old_archive_extraction=no ;;
7122 esac
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144 for ac_prog in gawk mawk nawk awk
7145 do
7146 # Extract the first word of "$ac_prog", so it can be a program name with args.
7147 set dummy $ac_prog; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_AWK+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$AWK"; then
7154 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_AWK="$ac_prog"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 AWK=$ac_cv_prog_AWK
7174 if test -n "$AWK"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7176 $as_echo "$AWK" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182
7183 test -n "$AWK" && break
7184 done
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 # If no C compiler was specified, use CC.
7205 LTCC=${LTCC-"$CC"}
7206
7207 # If no C compiler flags were specified, use CFLAGS.
7208 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7209
7210 # Allow CC to be a program name with arguments.
7211 compiler=$CC
7212
7213
7214 # Check for command to grab the raw symbol name followed by C symbol from nm.
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7216 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7217 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220
7221 # These are sane defaults that work on at least a few old systems.
7222 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7223
7224 # Character class describing NM global symbol codes.
7225 symcode='[BCDEGRST]'
7226
7227 # Regexp to match symbols that can be accessed directly from C.
7228 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7229
7230 # Define system-specific variables.
7231 case $host_os in
7232 aix*)
7233 symcode='[BCDT]'
7234 ;;
7235 cygwin* | mingw* | pw32* | cegcc*)
7236 symcode='[ABCDGISTW]'
7237 ;;
7238 hpux*)
7239 if test "$host_cpu" = ia64; then
7240 symcode='[ABCDEGRST]'
7241 fi
7242 ;;
7243 irix* | nonstopux*)
7244 symcode='[BCDEGRST]'
7245 ;;
7246 osf*)
7247 symcode='[BCDEGQRST]'
7248 ;;
7249 solaris*)
7250 symcode='[BCDRT]'
7251 ;;
7252 sco3.2v5*)
7253 symcode='[DT]'
7254 ;;
7255 sysv4.2uw2*)
7256 symcode='[DT]'
7257 ;;
7258 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7259 symcode='[ABDT]'
7260 ;;
7261 sysv4)
7262 symcode='[DFNSTU]'
7263 ;;
7264 esac
7265
7266 # If we're using GNU nm, then use its standard symbol codes.
7267 case `$NM -V 2>&1` in
7268 *GNU* | *'with BFD'*)
7269 symcode='[ABCDGIRSTW]' ;;
7270 esac
7271
7272 # Transform an extracted symbol line into a proper C declaration.
7273 # Some systems (esp. on ia64) link data and code symbols differently,
7274 # so use this general approach.
7275 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7276
7277 # Transform an extracted symbol line into symbol name and symbol address
7278 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7279 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'"
7280
7281 # Handle CRLF in mingw tool chain
7282 opt_cr=
7283 case $build_os in
7284 mingw*)
7285 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7286 ;;
7287 esac
7288
7289 # Try without a prefix underscore, then with it.
7290 for ac_symprfx in "" "_"; do
7291
7292 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7293 symxfrm="\\1 $ac_symprfx\\2 \\2"
7294
7295 # Write the raw and C identifiers.
7296 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7297 # Fake it for dumpbin and say T for any non-static function
7298 # and D for any global variable.
7299 # Also find C++ and __fastcall symbols from MSVC++,
7300 # which start with @ or ?.
7301 lt_cv_sys_global_symbol_pipe="$AWK '"\
7302 " {last_section=section; section=\$ 3};"\
7303 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7304 " \$ 0!~/External *\|/{next};"\
7305 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7306 " {if(hide[section]) next};"\
7307 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7308 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7309 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7310 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7311 " ' prfx=^$ac_symprfx"
7312 else
7313 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7314 fi
7315
7316 # Check to see that the pipe works correctly.
7317 pipe_works=no
7318
7319 rm -f conftest*
7320 cat > conftest.$ac_ext <<_LT_EOF
7321 #ifdef __cplusplus
7322 extern "C" {
7323 #endif
7324 char nm_test_var;
7325 void nm_test_func(void);
7326 void nm_test_func(void){}
7327 #ifdef __cplusplus
7328 }
7329 #endif
7330 int main(){nm_test_var='a';nm_test_func();return(0);}
7331 _LT_EOF
7332
7333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7334 (eval $ac_compile) 2>&5
7335 ac_status=$?
7336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337 test $ac_status = 0; }; then
7338 # Now try to grab the symbols.
7339 nlist=conftest.nm
7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7341 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7342 ac_status=$?
7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; } && test -s "$nlist"; then
7345 # Try sorting and uniquifying the output.
7346 if sort "$nlist" | uniq > "$nlist"T; then
7347 mv -f "$nlist"T "$nlist"
7348 else
7349 rm -f "$nlist"T
7350 fi
7351
7352 # Make sure that we snagged all the symbols we need.
7353 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7354 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7355 cat <<_LT_EOF > conftest.$ac_ext
7356 #ifdef __cplusplus
7357 extern "C" {
7358 #endif
7359
7360 _LT_EOF
7361 # Now generate the symbol file.
7362 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7363
7364 cat <<_LT_EOF >> conftest.$ac_ext
7365
7366 /* The mapping between symbol names and symbols. */
7367 const struct {
7368 const char *name;
7369 void *address;
7370 }
7371 lt__PROGRAM__LTX_preloaded_symbols[] =
7372 {
7373 { "@PROGRAM@", (void *) 0 },
7374 _LT_EOF
7375 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7376 cat <<\_LT_EOF >> conftest.$ac_ext
7377 {0, (void *) 0}
7378 };
7379
7380 /* This works around a problem in FreeBSD linker */
7381 #ifdef FREEBSD_WORKAROUND
7382 static const void *lt_preloaded_setup() {
7383 return lt__PROGRAM__LTX_preloaded_symbols;
7384 }
7385 #endif
7386
7387 #ifdef __cplusplus
7388 }
7389 #endif
7390 _LT_EOF
7391 # Now try linking the two files.
7392 mv conftest.$ac_objext conftstm.$ac_objext
7393 lt_save_LIBS="$LIBS"
7394 lt_save_CFLAGS="$CFLAGS"
7395 LIBS="conftstm.$ac_objext"
7396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7398 (eval $ac_link) 2>&5
7399 ac_status=$?
7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7402 pipe_works=yes
7403 fi
7404 LIBS="$lt_save_LIBS"
7405 CFLAGS="$lt_save_CFLAGS"
7406 else
7407 echo "cannot find nm_test_func in $nlist" >&5
7408 fi
7409 else
7410 echo "cannot find nm_test_var in $nlist" >&5
7411 fi
7412 else
7413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7414 fi
7415 else
7416 echo "$progname: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7418 fi
7419 rm -rf conftest* conftst*
7420
7421 # Do not use the global_symbol_pipe unless it works.
7422 if test "$pipe_works" = yes; then
7423 break
7424 else
7425 lt_cv_sys_global_symbol_pipe=
7426 fi
7427 done
7428
7429 fi
7430
7431 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7432 lt_cv_sys_global_symbol_to_cdecl=
7433 fi
7434 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7436 $as_echo "failed" >&6; }
7437 else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7439 $as_echo "ok" >&6; }
7440 fi
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463 # Check whether --enable-libtool-lock was given.
7464 if test "${enable_libtool_lock+set}" = set; then :
7465 enableval=$enable_libtool_lock;
7466 fi
7467
7468 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7469
7470 # Some flags need to be propagated to the compiler or linker for good
7471 # libtool support.
7472 case $host in
7473 ia64-*-hpux*)
7474 # Find out which ABI we are using.
7475 echo 'int i;' > conftest.$ac_ext
7476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7477 (eval $ac_compile) 2>&5
7478 ac_status=$?
7479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480 test $ac_status = 0; }; then
7481 case `/usr/bin/file conftest.$ac_objext` in
7482 *ELF-32*)
7483 HPUX_IA64_MODE="32"
7484 ;;
7485 *ELF-64*)
7486 HPUX_IA64_MODE="64"
7487 ;;
7488 esac
7489 fi
7490 rm -rf conftest*
7491 ;;
7492 *-*-irix6*)
7493 # Find out which ABI we are using.
7494 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496 (eval $ac_compile) 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 if test "$lt_cv_prog_gnu_ld" = yes; then
7501 case `/usr/bin/file conftest.$ac_objext` in
7502 *32-bit*)
7503 LD="${LD-ld} -melf32bsmip"
7504 ;;
7505 *N32*)
7506 LD="${LD-ld} -melf32bmipn32"
7507 ;;
7508 *64-bit*)
7509 LD="${LD-ld} -melf64bmip"
7510 ;;
7511 esac
7512 else
7513 case `/usr/bin/file conftest.$ac_objext` in
7514 *32-bit*)
7515 LD="${LD-ld} -32"
7516 ;;
7517 *N32*)
7518 LD="${LD-ld} -n32"
7519 ;;
7520 *64-bit*)
7521 LD="${LD-ld} -64"
7522 ;;
7523 esac
7524 fi
7525 fi
7526 rm -rf conftest*
7527 ;;
7528
7529 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7530 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7531 # Find out which ABI we are using.
7532 echo 'int i;' > conftest.$ac_ext
7533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7534 (eval $ac_compile) 2>&5
7535 ac_status=$?
7536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537 test $ac_status = 0; }; then
7538 case `/usr/bin/file conftest.o` in
7539 *32-bit*)
7540 case $host in
7541 x86_64-*kfreebsd*-gnu)
7542 LD="${LD-ld} -m elf_i386_fbsd"
7543 ;;
7544 x86_64-*linux*)
7545 case `/usr/bin/file conftest.o` in
7546 *x86-64*)
7547 LD="${LD-ld} -m elf32_x86_64"
7548 ;;
7549 *)
7550 LD="${LD-ld} -m elf_i386"
7551 ;;
7552 esac
7553 ;;
7554 powerpc64le-*linux*)
7555 LD="${LD-ld} -m elf32lppclinux"
7556 ;;
7557 powerpc64-*linux*)
7558 LD="${LD-ld} -m elf32ppclinux"
7559 ;;
7560 s390x-*linux*)
7561 LD="${LD-ld} -m elf_s390"
7562 ;;
7563 sparc64-*linux*)
7564 LD="${LD-ld} -m elf32_sparc"
7565 ;;
7566 esac
7567 ;;
7568 *64-bit*)
7569 case $host in
7570 x86_64-*kfreebsd*-gnu)
7571 LD="${LD-ld} -m elf_x86_64_fbsd"
7572 ;;
7573 x86_64-*linux*)
7574 LD="${LD-ld} -m elf_x86_64"
7575 ;;
7576 powerpcle-*linux*)
7577 LD="${LD-ld} -m elf64lppc"
7578 ;;
7579 powerpc-*linux*)
7580 LD="${LD-ld} -m elf64ppc"
7581 ;;
7582 s390*-*linux*|s390*-*tpf*)
7583 LD="${LD-ld} -m elf64_s390"
7584 ;;
7585 sparc*-*linux*)
7586 LD="${LD-ld} -m elf64_sparc"
7587 ;;
7588 esac
7589 ;;
7590 esac
7591 fi
7592 rm -rf conftest*
7593 ;;
7594
7595 *-*-sco3.2v5*)
7596 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7597 SAVE_CFLAGS="$CFLAGS"
7598 CFLAGS="$CFLAGS -belf"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7600 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7601 if ${lt_cv_cc_needs_belf+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 ac_ext=c
7605 ac_cpp='$CPP $CPPFLAGS'
7606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7609
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612
7613 int
7614 main ()
7615 {
7616
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_link "$LINENO"; then :
7622 lt_cv_cc_needs_belf=yes
7623 else
7624 lt_cv_cc_needs_belf=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext \
7627 conftest$ac_exeext conftest.$ac_ext
7628 ac_ext=c
7629 ac_cpp='$CPP $CPPFLAGS'
7630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7633
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7636 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7639 CFLAGS="$SAVE_CFLAGS"
7640 fi
7641 ;;
7642 sparc*-*solaris*)
7643 # Find out which ABI we are using.
7644 echo 'int i;' > conftest.$ac_ext
7645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7646 (eval $ac_compile) 2>&5
7647 ac_status=$?
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 case `/usr/bin/file conftest.o` in
7651 *64-bit*)
7652 case $lt_cv_prog_gnu_ld in
7653 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7654 *)
7655 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7656 LD="${LD-ld} -64"
7657 fi
7658 ;;
7659 esac
7660 ;;
7661 esac
7662 fi
7663 rm -rf conftest*
7664 ;;
7665 esac
7666
7667 need_locks="$enable_libtool_lock"
7668
7669
7670 case $host_os in
7671 rhapsody* | darwin*)
7672 if test -n "$ac_tool_prefix"; then
7673 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7674 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 if test -n "$DSYMUTIL"; then
7681 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698 fi
7699 fi
7700 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7701 if test -n "$DSYMUTIL"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7703 $as_echo "$DSYMUTIL" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708
7709
7710 fi
7711 if test -z "$ac_cv_prog_DSYMUTIL"; then
7712 ac_ct_DSYMUTIL=$DSYMUTIL
7713 # Extract the first word of "dsymutil", so it can be a program name with args.
7714 set dummy dsymutil; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$ac_ct_DSYMUTIL"; then
7721 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7741 if test -n "$ac_ct_DSYMUTIL"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7743 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748
7749 if test "x$ac_ct_DSYMUTIL" = x; then
7750 DSYMUTIL=":"
7751 else
7752 case $cross_compiling:$ac_tool_warned in
7753 yes:)
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 ac_tool_warned=yes ;;
7757 esac
7758 DSYMUTIL=$ac_ct_DSYMUTIL
7759 fi
7760 else
7761 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7762 fi
7763
7764 if test -n "$ac_tool_prefix"; then
7765 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7766 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_prog_NMEDIT+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$NMEDIT"; then
7773 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 NMEDIT=$ac_cv_prog_NMEDIT
7793 if test -n "$NMEDIT"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7795 $as_echo "$NMEDIT" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801
7802 fi
7803 if test -z "$ac_cv_prog_NMEDIT"; then
7804 ac_ct_NMEDIT=$NMEDIT
7805 # Extract the first word of "nmedit", so it can be a program name with args.
7806 set dummy nmedit; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$ac_ct_NMEDIT"; then
7813 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7833 if test -n "$ac_ct_NMEDIT"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7835 $as_echo "$ac_ct_NMEDIT" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841 if test "x$ac_ct_NMEDIT" = x; then
7842 NMEDIT=":"
7843 else
7844 case $cross_compiling:$ac_tool_warned in
7845 yes:)
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848 ac_tool_warned=yes ;;
7849 esac
7850 NMEDIT=$ac_ct_NMEDIT
7851 fi
7852 else
7853 NMEDIT="$ac_cv_prog_NMEDIT"
7854 fi
7855
7856 if test -n "$ac_tool_prefix"; then
7857 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7858 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_LIPO+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test -n "$LIPO"; then
7865 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 LIPO=$ac_cv_prog_LIPO
7885 if test -n "$LIPO"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7887 $as_echo "$LIPO" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893
7894 fi
7895 if test -z "$ac_cv_prog_LIPO"; then
7896 ac_ct_LIPO=$LIPO
7897 # Extract the first word of "lipo", so it can be a program name with args.
7898 set dummy lipo; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 if test -n "$ac_ct_LIPO"; then
7905 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_ac_ct_LIPO="lipo"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7925 if test -n "$ac_ct_LIPO"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7927 $as_echo "$ac_ct_LIPO" >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933 if test "x$ac_ct_LIPO" = x; then
7934 LIPO=":"
7935 else
7936 case $cross_compiling:$ac_tool_warned in
7937 yes:)
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7940 ac_tool_warned=yes ;;
7941 esac
7942 LIPO=$ac_ct_LIPO
7943 fi
7944 else
7945 LIPO="$ac_cv_prog_LIPO"
7946 fi
7947
7948 if test -n "$ac_tool_prefix"; then
7949 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7950 set dummy ${ac_tool_prefix}otool; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if ${ac_cv_prog_OTOOL+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$OTOOL"; then
7957 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi
7975 fi
7976 OTOOL=$ac_cv_prog_OTOOL
7977 if test -n "$OTOOL"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7979 $as_echo "$OTOOL" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985
7986 fi
7987 if test -z "$ac_cv_prog_OTOOL"; then
7988 ac_ct_OTOOL=$OTOOL
7989 # Extract the first word of "otool", so it can be a program name with args.
7990 set dummy otool; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$ac_ct_OTOOL"; then
7997 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_ac_ct_OTOOL="otool"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8017 if test -n "$ac_ct_OTOOL"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8019 $as_echo "$ac_ct_OTOOL" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 fi
8024
8025 if test "x$ac_ct_OTOOL" = x; then
8026 OTOOL=":"
8027 else
8028 case $cross_compiling:$ac_tool_warned in
8029 yes:)
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8032 ac_tool_warned=yes ;;
8033 esac
8034 OTOOL=$ac_ct_OTOOL
8035 fi
8036 else
8037 OTOOL="$ac_cv_prog_OTOOL"
8038 fi
8039
8040 if test -n "$ac_tool_prefix"; then
8041 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8042 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_prog_OTOOL64+:} false; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 if test -n "$OTOOL64"; then
8049 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062 done
8063 done
8064 IFS=$as_save_IFS
8065
8066 fi
8067 fi
8068 OTOOL64=$ac_cv_prog_OTOOL64
8069 if test -n "$OTOOL64"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8071 $as_echo "$OTOOL64" >&6; }
8072 else
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8075 fi
8076
8077
8078 fi
8079 if test -z "$ac_cv_prog_OTOOL64"; then
8080 ac_ct_OTOOL64=$OTOOL64
8081 # Extract the first word of "otool64", so it can be a program name with args.
8082 set dummy otool64; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$ac_ct_OTOOL64"; then
8089 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_ac_ct_OTOOL64="otool64"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8109 if test -n "$ac_ct_OTOOL64"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8111 $as_echo "$ac_ct_OTOOL64" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117 if test "x$ac_ct_OTOOL64" = x; then
8118 OTOOL64=":"
8119 else
8120 case $cross_compiling:$ac_tool_warned in
8121 yes:)
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8124 ac_tool_warned=yes ;;
8125 esac
8126 OTOOL64=$ac_ct_OTOOL64
8127 fi
8128 else
8129 OTOOL64="$ac_cv_prog_OTOOL64"
8130 fi
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8159 $as_echo_n "checking for -single_module linker flag... " >&6; }
8160 if ${lt_cv_apple_cc_single_mod+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 lt_cv_apple_cc_single_mod=no
8164 if test -z "${LT_MULTI_MODULE}"; then
8165 # By default we will add the -single_module flag. You can override
8166 # by either setting the environment variable LT_MULTI_MODULE
8167 # non-empty at configure time, or by adding -multi_module to the
8168 # link flags.
8169 rm -rf libconftest.dylib*
8170 echo "int foo(void){return 1;}" > conftest.c
8171 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8172 -dynamiclib -Wl,-single_module conftest.c" >&5
8173 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8174 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8175 _lt_result=$?
8176 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8177 lt_cv_apple_cc_single_mod=yes
8178 else
8179 cat conftest.err >&5
8180 fi
8181 rm -rf libconftest.dylib*
8182 rm -f conftest.*
8183 fi
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8186 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8188 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8189 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 lt_cv_ld_exported_symbols_list=no
8193 save_LDFLAGS=$LDFLAGS
8194 echo "_main" > conftest.sym
8195 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198
8199 int
8200 main ()
8201 {
8202
8203 ;
8204 return 0;
8205 }
8206 _ACEOF
8207 if ac_fn_c_try_link "$LINENO"; then :
8208 lt_cv_ld_exported_symbols_list=yes
8209 else
8210 lt_cv_ld_exported_symbols_list=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
8214 LDFLAGS="$save_LDFLAGS"
8215
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8218 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8220 $as_echo_n "checking for -force_load linker flag... " >&6; }
8221 if ${lt_cv_ld_force_load+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 lt_cv_ld_force_load=no
8225 cat > conftest.c << _LT_EOF
8226 int forced_loaded() { return 2;}
8227 _LT_EOF
8228 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8229 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8230 echo "$AR cru libconftest.a conftest.o" >&5
8231 $AR cru libconftest.a conftest.o 2>&5
8232 cat > conftest.c << _LT_EOF
8233 int main() { return 0;}
8234 _LT_EOF
8235 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8236 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8237 _lt_result=$?
8238 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8239 lt_cv_ld_force_load=yes
8240 else
8241 cat conftest.err >&5
8242 fi
8243 rm -f conftest.err libconftest.a conftest conftest.c
8244 rm -rf conftest.dSYM
8245
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8248 $as_echo "$lt_cv_ld_force_load" >&6; }
8249 case $host_os in
8250 rhapsody* | darwin1.[012])
8251 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8252 darwin1.*)
8253 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8254 darwin*) # darwin 5.x on
8255 # if running on 10.5 or later, the deployment target defaults
8256 # to the OS version, if on x86, and 10.4, the deployment
8257 # target defaults to 10.4. Don't you love it?
8258 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8259 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8260 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8261 10.[012][,.]*)
8262 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8263 10.*)
8264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8265 esac
8266 ;;
8267 esac
8268 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8269 _lt_dar_single_mod='$single_module'
8270 fi
8271 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8272 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8273 else
8274 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8275 fi
8276 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8277 _lt_dsymutil='~$DSYMUTIL $lib || :'
8278 else
8279 _lt_dsymutil=
8280 fi
8281 ;;
8282 esac
8283
8284 for ac_header in dlfcn.h
8285 do :
8286 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8287 "
8288 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8289 cat >>confdefs.h <<_ACEOF
8290 #define HAVE_DLFCN_H 1
8291 _ACEOF
8292
8293 fi
8294
8295 done
8296
8297
8298 ac_header_dirent=no
8299 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8300 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8302 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8303 if eval \${$as_ac_Header+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #include <sys/types.h>
8309 #include <$ac_hdr>
8310
8311 int
8312 main ()
8313 {
8314 if ((DIR *) 0)
8315 return 0;
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321 eval "$as_ac_Header=yes"
8322 else
8323 eval "$as_ac_Header=no"
8324 fi
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 eval ac_res=\$$as_ac_Header
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8329 $as_echo "$ac_res" >&6; }
8330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8331 cat >>confdefs.h <<_ACEOF
8332 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8333 _ACEOF
8334
8335 ac_header_dirent=$ac_hdr; break
8336 fi
8337
8338 done
8339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8340 if test $ac_header_dirent = dirent.h; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8342 $as_echo_n "checking for library containing opendir... " >&6; }
8343 if ${ac_cv_search_opendir+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 ac_func_search_save_LIBS=$LIBS
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349
8350 /* Override any GCC internal prototype to avoid an error.
8351 Use char because int might match the return type of a GCC
8352 builtin and then its argument prototype would still apply. */
8353 #ifdef __cplusplus
8354 extern "C"
8355 #endif
8356 char opendir ();
8357 int
8358 main ()
8359 {
8360 return opendir ();
8361 ;
8362 return 0;
8363 }
8364 _ACEOF
8365 for ac_lib in '' dir; do
8366 if test -z "$ac_lib"; then
8367 ac_res="none required"
8368 else
8369 ac_res=-l$ac_lib
8370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8371 fi
8372 if ac_fn_c_try_link "$LINENO"; then :
8373 ac_cv_search_opendir=$ac_res
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext
8377 if ${ac_cv_search_opendir+:} false; then :
8378 break
8379 fi
8380 done
8381 if ${ac_cv_search_opendir+:} false; then :
8382
8383 else
8384 ac_cv_search_opendir=no
8385 fi
8386 rm conftest.$ac_ext
8387 LIBS=$ac_func_search_save_LIBS
8388 fi
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8390 $as_echo "$ac_cv_search_opendir" >&6; }
8391 ac_res=$ac_cv_search_opendir
8392 if test "$ac_res" != no; then :
8393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8394
8395 fi
8396
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8399 $as_echo_n "checking for library containing opendir... " >&6; }
8400 if ${ac_cv_search_opendir+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 ac_func_search_save_LIBS=$LIBS
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406
8407 /* Override any GCC internal prototype to avoid an error.
8408 Use char because int might match the return type of a GCC
8409 builtin and then its argument prototype would still apply. */
8410 #ifdef __cplusplus
8411 extern "C"
8412 #endif
8413 char opendir ();
8414 int
8415 main ()
8416 {
8417 return opendir ();
8418 ;
8419 return 0;
8420 }
8421 _ACEOF
8422 for ac_lib in '' x; do
8423 if test -z "$ac_lib"; then
8424 ac_res="none required"
8425 else
8426 ac_res=-l$ac_lib
8427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8428 fi
8429 if ac_fn_c_try_link "$LINENO"; then :
8430 ac_cv_search_opendir=$ac_res
8431 fi
8432 rm -f core conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext
8434 if ${ac_cv_search_opendir+:} false; then :
8435 break
8436 fi
8437 done
8438 if ${ac_cv_search_opendir+:} false; then :
8439
8440 else
8441 ac_cv_search_opendir=no
8442 fi
8443 rm conftest.$ac_ext
8444 LIBS=$ac_func_search_save_LIBS
8445 fi
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8447 $as_echo "$ac_cv_search_opendir" >&6; }
8448 ac_res=$ac_cv_search_opendir
8449 if test "$ac_res" != no; then :
8450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8451
8452 fi
8453
8454 fi
8455
8456
8457
8458
8459 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8460 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8461
8462 cat >>confdefs.h <<_ACEOF
8463 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8464 _ACEOF
8465
8466
8467 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8468
8469 fi
8470
8471
8472 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8473 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8474
8475 cat >>confdefs.h <<_ACEOF
8476 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8477 _ACEOF
8478
8479
8480 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8481
8482 else
8483 case " $LIBOBJS " in
8484 *" fileblocks.$ac_objext "* ) ;;
8485 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8486 ;;
8487 esac
8488
8489 fi
8490
8491
8492 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8493 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8494
8495 cat >>confdefs.h <<_ACEOF
8496 #define HAVE_STRUCT_STAT_ST_RDEV 1
8497 _ACEOF
8498
8499
8500 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8501
8502 fi
8503
8504
8505 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8506 #include <$ac_cv_struct_tm>
8507
8508 "
8509 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8510
8511 cat >>confdefs.h <<_ACEOF
8512 #define HAVE_STRUCT_TM_TM_ZONE 1
8513 _ACEOF
8514
8515
8516 fi
8517
8518 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8519
8520 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8521
8522 else
8523 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8524 "
8525 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8526 ac_have_decl=1
8527 else
8528 ac_have_decl=0
8529 fi
8530
8531 cat >>confdefs.h <<_ACEOF
8532 #define HAVE_DECL_TZNAME $ac_have_decl
8533 _ACEOF
8534
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8536 $as_echo_n "checking for tzname... " >&6; }
8537 if ${ac_cv_var_tzname+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 #include <time.h>
8543 #if !HAVE_DECL_TZNAME
8544 extern char *tzname[];
8545 #endif
8546
8547 int
8548 main ()
8549 {
8550 return tzname[0][0];
8551 ;
8552 return 0;
8553 }
8554 _ACEOF
8555 if ac_fn_c_try_link "$LINENO"; then :
8556 ac_cv_var_tzname=yes
8557 else
8558 ac_cv_var_tzname=no
8559 fi
8560 rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8564 $as_echo "$ac_cv_var_tzname" >&6; }
8565 if test $ac_cv_var_tzname = yes; then
8566
8567 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8568
8569 fi
8570 fi
8571
8572
8573 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8574 #include <sys/types.h>
8575 #endif
8576 #ifdef HAVE_SYS_STAT_H
8577 #include <sys/stat.h>
8578 #endif
8579 "
8580 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8581
8582 cat >>confdefs.h <<_ACEOF
8583 #define HAVE_STRUCT_STAT_ST_DEV 1
8584 _ACEOF
8585
8586
8587 fi
8588 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#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_ino" = xyes; then :
8596
8597 cat >>confdefs.h <<_ACEOF
8598 #define HAVE_STRUCT_STAT_ST_INO 1
8599 _ACEOF
8600
8601
8602 fi
8603 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#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_mode" = xyes; then :
8611
8612 cat >>confdefs.h <<_ACEOF
8613 #define HAVE_STRUCT_STAT_ST_MODE 1
8614 _ACEOF
8615
8616
8617 fi
8618 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#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_nlink" = xyes; then :
8626
8627 cat >>confdefs.h <<_ACEOF
8628 #define HAVE_STRUCT_STAT_ST_NLINK 1
8629 _ACEOF
8630
8631
8632 fi
8633 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#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_uid" = xyes; then :
8641
8642 cat >>confdefs.h <<_ACEOF
8643 #define HAVE_STRUCT_STAT_ST_UID 1
8644 _ACEOF
8645
8646
8647 fi
8648 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#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_gid" = xyes; then :
8656
8657 cat >>confdefs.h <<_ACEOF
8658 #define HAVE_STRUCT_STAT_ST_GID 1
8659 _ACEOF
8660
8661
8662 fi
8663 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#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_rdev" = xyes; then :
8671
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_STRUCT_STAT_ST_RDEV 1
8674 _ACEOF
8675
8676
8677 fi
8678 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#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_size" = xyes; then :
8686
8687 cat >>confdefs.h <<_ACEOF
8688 #define HAVE_STRUCT_STAT_ST_SIZE 1
8689 _ACEOF
8690
8691
8692 fi
8693 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#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_blksize" = xyes; then :
8701
8702 cat >>confdefs.h <<_ACEOF
8703 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8704 _ACEOF
8705
8706
8707 fi
8708 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#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_blocks" = xyes; then :
8716
8717 cat >>confdefs.h <<_ACEOF
8718 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8719 _ACEOF
8720
8721
8722 fi
8723 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#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_atime" = xyes; then :
8731
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_STRUCT_STAT_ST_ATIME 1
8734 _ACEOF
8735
8736
8737 fi
8738 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#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_mtime" = xyes; then :
8746
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_STRUCT_STAT_ST_MTIME 1
8749 _ACEOF
8750
8751
8752 fi
8753 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#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_ctime" = xyes; then :
8761
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_STRUCT_STAT_ST_CTIME 1
8764 _ACEOF
8765
8766
8767 fi
8768
8769
8770 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8771 if test "x$ac_cv_type___int128" = xyes; then :
8772
8773 cat >>confdefs.h <<_ACEOF
8774 #define HAVE___INT128 1
8775 _ACEOF
8776
8777
8778 fi
8779
8780 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8781 #include <sys/socket.h>
8782
8783 "
8784 if test "x$ac_cv_type_socklen_t" = xyes; then :
8785
8786 cat >>confdefs.h <<_ACEOF
8787 #define HAVE_SOCKLEN_T 1
8788 _ACEOF
8789
8790
8791 fi
8792
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8795 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8796 if ${ac_cv_type_getgroups+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 if test "$cross_compiling" = yes; then :
8800 ac_cv_type_getgroups=cross
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 /* Thanks to Mike Rendell for this test. */
8805 $ac_includes_default
8806 #define NGID 256
8807 #undef MAX
8808 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8809
8810 int
8811 main ()
8812 {
8813 gid_t gidset[NGID];
8814 int i, n;
8815 union { gid_t gval; long int lval; } val;
8816
8817 val.lval = -1;
8818 for (i = 0; i < NGID; i++)
8819 gidset[i] = val.gval;
8820 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8821 gidset);
8822 /* Exit non-zero if getgroups seems to require an array of ints. This
8823 happens when gid_t is short int but getgroups modifies an array
8824 of ints. */
8825 return n > 0 && gidset[n] != val.gval;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_run "$LINENO"; then :
8829 ac_cv_type_getgroups=gid_t
8830 else
8831 ac_cv_type_getgroups=int
8832 fi
8833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8834 conftest.$ac_objext conftest.beam conftest.$ac_ext
8835 fi
8836
8837 if test $ac_cv_type_getgroups = cross; then
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include <unistd.h>
8841
8842 _ACEOF
8843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8844 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8845 ac_cv_type_getgroups=gid_t
8846 else
8847 ac_cv_type_getgroups=int
8848 fi
8849 rm -f conftest*
8850
8851 fi
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8854 $as_echo "$ac_cv_type_getgroups" >&6; }
8855
8856 cat >>confdefs.h <<_ACEOF
8857 #define GETGROUPS_T $ac_cv_type_getgroups
8858 _ACEOF
8859
8860
8861 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8862 if test "x$ac_cv_type_mode_t" = xyes; then :
8863
8864 else
8865
8866 cat >>confdefs.h <<_ACEOF
8867 #define mode_t int
8868 _ACEOF
8869
8870 fi
8871
8872 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8873 if test "x$ac_cv_type_off_t" = xyes; then :
8874
8875 else
8876
8877 cat >>confdefs.h <<_ACEOF
8878 #define off_t long int
8879 _ACEOF
8880
8881 fi
8882
8883 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8884 if test "x$ac_cv_type_pid_t" = xyes; then :
8885
8886 else
8887
8888 cat >>confdefs.h <<_ACEOF
8889 #define pid_t int
8890 _ACEOF
8891
8892 fi
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8895 $as_echo_n "checking return type of signal handlers... " >&6; }
8896 if ${ac_cv_type_signal+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 #include <sys/types.h>
8902 #include <signal.h>
8903
8904 int
8905 main ()
8906 {
8907 return *(signal (0, 0)) (0) == 1;
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_compile "$LINENO"; then :
8913 ac_cv_type_signal=int
8914 else
8915 ac_cv_type_signal=void
8916 fi
8917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8918 fi
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8920 $as_echo "$ac_cv_type_signal" >&6; }
8921
8922 cat >>confdefs.h <<_ACEOF
8923 #define RETSIGTYPE $ac_cv_type_signal
8924 _ACEOF
8925
8926
8927 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8928 if test "x$ac_cv_type_size_t" = xyes; then :
8929
8930 else
8931
8932 cat >>confdefs.h <<_ACEOF
8933 #define size_t unsigned int
8934 _ACEOF
8935
8936 fi
8937
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8939 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8940 if ${ac_cv_type_uid_t+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <sys/types.h>
8946
8947 _ACEOF
8948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8949 $EGREP "uid_t" >/dev/null 2>&1; then :
8950 ac_cv_type_uid_t=yes
8951 else
8952 ac_cv_type_uid_t=no
8953 fi
8954 rm -f conftest*
8955
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8958 $as_echo "$ac_cv_type_uid_t" >&6; }
8959 if test $ac_cv_type_uid_t = no; then
8960
8961 $as_echo "#define uid_t int" >>confdefs.h
8962
8963
8964 $as_echo "#define gid_t int" >>confdefs.h
8965
8966 fi
8967
8968
8969
8970
8971
8972
8973 # Set options
8974
8975
8976
8977 enable_dlopen=no
8978
8979
8980 enable_win32_dll=no
8981
8982
8983 # Check whether --enable-shared was given.
8984 if test "${enable_shared+set}" = set; then :
8985 enableval=$enable_shared; p=${PACKAGE-default}
8986 case $enableval in
8987 yes) enable_shared=yes ;;
8988 no) enable_shared=no ;;
8989 *)
8990 enable_shared=no
8991 # Look at the argument we got. We use all the common list separators.
8992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8993 for pkg in $enableval; do
8994 IFS="$lt_save_ifs"
8995 if test "X$pkg" = "X$p"; then
8996 enable_shared=yes
8997 fi
8998 done
8999 IFS="$lt_save_ifs"
9000 ;;
9001 esac
9002 else
9003 enable_shared=yes
9004 fi
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014 # Check whether --enable-static was given.
9015 if test "${enable_static+set}" = set; then :
9016 enableval=$enable_static; p=${PACKAGE-default}
9017 case $enableval in
9018 yes) enable_static=yes ;;
9019 no) enable_static=no ;;
9020 *)
9021 enable_static=no
9022 # Look at the argument we got. We use all the common list separators.
9023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9024 for pkg in $enableval; do
9025 IFS="$lt_save_ifs"
9026 if test "X$pkg" = "X$p"; then
9027 enable_static=yes
9028 fi
9029 done
9030 IFS="$lt_save_ifs"
9031 ;;
9032 esac
9033 else
9034 enable_static=yes
9035 fi
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046 # Check whether --with-pic was given.
9047 if test "${with_pic+set}" = set; then :
9048 withval=$with_pic; pic_mode="$withval"
9049 else
9050 pic_mode=default
9051 fi
9052
9053
9054 test -z "$pic_mode" && pic_mode=default
9055
9056
9057
9058
9059
9060
9061
9062 # Check whether --enable-fast-install was given.
9063 if test "${enable_fast_install+set}" = set; then :
9064 enableval=$enable_fast_install; p=${PACKAGE-default}
9065 case $enableval in
9066 yes) enable_fast_install=yes ;;
9067 no) enable_fast_install=no ;;
9068 *)
9069 enable_fast_install=no
9070 # Look at the argument we got. We use all the common list separators.
9071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9072 for pkg in $enableval; do
9073 IFS="$lt_save_ifs"
9074 if test "X$pkg" = "X$p"; then
9075 enable_fast_install=yes
9076 fi
9077 done
9078 IFS="$lt_save_ifs"
9079 ;;
9080 esac
9081 else
9082 enable_fast_install=yes
9083 fi
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 # This can be used to rebuild libtool when needed
9096 LIBTOOL_DEPS="$ltmain"
9097
9098 # Always use our own libtool.
9099 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126 test -z "$LN_S" && LN_S="ln -s"
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141 if test -n "${ZSH_VERSION+set}" ; then
9142 setopt NO_GLOB_SUBST
9143 fi
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9146 $as_echo_n "checking for objdir... " >&6; }
9147 if ${lt_cv_objdir+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 rm -f .libs 2>/dev/null
9151 mkdir .libs 2>/dev/null
9152 if test -d .libs; then
9153 lt_cv_objdir=.libs
9154 else
9155 # MS-DOS does not allow filenames that begin with a dot.
9156 lt_cv_objdir=_libs
9157 fi
9158 rmdir .libs 2>/dev/null
9159 fi
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9161 $as_echo "$lt_cv_objdir" >&6; }
9162 objdir=$lt_cv_objdir
9163
9164
9165
9166
9167
9168 cat >>confdefs.h <<_ACEOF
9169 #define LT_OBJDIR "$lt_cv_objdir/"
9170 _ACEOF
9171
9172
9173
9174
9175 case $host_os in
9176 aix3*)
9177 # AIX sometimes has problems with the GCC collect2 program. For some
9178 # reason, if we set the COLLECT_NAMES environment variable, the problems
9179 # vanish in a puff of smoke.
9180 if test "X${COLLECT_NAMES+set}" != Xset; then
9181 COLLECT_NAMES=
9182 export COLLECT_NAMES
9183 fi
9184 ;;
9185 esac
9186
9187 # Global variables:
9188 ofile=libtool
9189 can_build_shared=yes
9190
9191 # All known linkers require a `.a' archive for static linking (except MSVC,
9192 # which needs '.lib').
9193 libext=a
9194
9195 with_gnu_ld="$lt_cv_prog_gnu_ld"
9196
9197 old_CC="$CC"
9198 old_CFLAGS="$CFLAGS"
9199
9200 # Set sane defaults for various variables
9201 test -z "$CC" && CC=cc
9202 test -z "$LTCC" && LTCC=$CC
9203 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9204 test -z "$LD" && LD=ld
9205 test -z "$ac_objext" && ac_objext=o
9206
9207 for cc_temp in $compiler""; do
9208 case $cc_temp in
9209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9211 \-*) ;;
9212 *) break;;
9213 esac
9214 done
9215 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9216
9217
9218 # Only perform the check for file, if the check method requires it
9219 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9220 case $deplibs_check_method in
9221 file_magic*)
9222 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9224 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9225 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 case $MAGIC_CMD in
9229 [\\/*] | ?:[\\/]*)
9230 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9231 ;;
9232 *)
9233 lt_save_MAGIC_CMD="$MAGIC_CMD"
9234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9235 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9236 for ac_dir in $ac_dummy; do
9237 IFS="$lt_save_ifs"
9238 test -z "$ac_dir" && ac_dir=.
9239 if test -f $ac_dir/${ac_tool_prefix}file; then
9240 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9241 if test -n "$file_magic_test_file"; then
9242 case $deplibs_check_method in
9243 "file_magic "*)
9244 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9246 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9247 $EGREP "$file_magic_regex" > /dev/null; then
9248 :
9249 else
9250 cat <<_LT_EOF 1>&2
9251
9252 *** Warning: the command libtool uses to detect shared libraries,
9253 *** $file_magic_cmd, produces output that libtool cannot recognize.
9254 *** The result is that libtool may fail to recognize shared libraries
9255 *** as such. This will affect the creation of libtool libraries that
9256 *** depend on shared libraries, but programs linked with such libtool
9257 *** libraries will work regardless of this problem. Nevertheless, you
9258 *** may want to report the problem to your system manager and/or to
9259 *** bug-libtool@gnu.org
9260
9261 _LT_EOF
9262 fi ;;
9263 esac
9264 fi
9265 break
9266 fi
9267 done
9268 IFS="$lt_save_ifs"
9269 MAGIC_CMD="$lt_save_MAGIC_CMD"
9270 ;;
9271 esac
9272 fi
9273
9274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9275 if test -n "$MAGIC_CMD"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9277 $as_echo "$MAGIC_CMD" >&6; }
9278 else
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9281 fi
9282
9283
9284
9285
9286
9287 if test -z "$lt_cv_path_MAGIC_CMD"; then
9288 if test -n "$ac_tool_prefix"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9290 $as_echo_n "checking for file... " >&6; }
9291 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 case $MAGIC_CMD in
9295 [\\/*] | ?:[\\/]*)
9296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9297 ;;
9298 *)
9299 lt_save_MAGIC_CMD="$MAGIC_CMD"
9300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9302 for ac_dir in $ac_dummy; do
9303 IFS="$lt_save_ifs"
9304 test -z "$ac_dir" && ac_dir=.
9305 if test -f $ac_dir/file; then
9306 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9307 if test -n "$file_magic_test_file"; then
9308 case $deplibs_check_method in
9309 "file_magic "*)
9310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9313 $EGREP "$file_magic_regex" > /dev/null; then
9314 :
9315 else
9316 cat <<_LT_EOF 1>&2
9317
9318 *** Warning: the command libtool uses to detect shared libraries,
9319 *** $file_magic_cmd, produces output that libtool cannot recognize.
9320 *** The result is that libtool may fail to recognize shared libraries
9321 *** as such. This will affect the creation of libtool libraries that
9322 *** depend on shared libraries, but programs linked with such libtool
9323 *** libraries will work regardless of this problem. Nevertheless, you
9324 *** may want to report the problem to your system manager and/or to
9325 *** bug-libtool@gnu.org
9326
9327 _LT_EOF
9328 fi ;;
9329 esac
9330 fi
9331 break
9332 fi
9333 done
9334 IFS="$lt_save_ifs"
9335 MAGIC_CMD="$lt_save_MAGIC_CMD"
9336 ;;
9337 esac
9338 fi
9339
9340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9341 if test -n "$MAGIC_CMD"; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9343 $as_echo "$MAGIC_CMD" >&6; }
9344 else
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 $as_echo "no" >&6; }
9347 fi
9348
9349
9350 else
9351 MAGIC_CMD=:
9352 fi
9353 fi
9354
9355 fi
9356 ;;
9357 esac
9358
9359 # Use C for the default configuration in the libtool script
9360
9361 lt_save_CC="$CC"
9362 ac_ext=c
9363 ac_cpp='$CPP $CPPFLAGS'
9364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9367
9368
9369 # Source file extension for C test sources.
9370 ac_ext=c
9371
9372 # Object file extension for compiled C test sources.
9373 objext=o
9374 objext=$objext
9375
9376 # Code to be used in simple compile tests
9377 lt_simple_compile_test_code="int some_variable = 0;"
9378
9379 # Code to be used in simple link tests
9380 lt_simple_link_test_code='int main(){return(0);}'
9381
9382
9383
9384
9385
9386
9387
9388 # If no C compiler was specified, use CC.
9389 LTCC=${LTCC-"$CC"}
9390
9391 # If no C compiler flags were specified, use CFLAGS.
9392 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9393
9394 # Allow CC to be a program name with arguments.
9395 compiler=$CC
9396
9397 # Save the default compiler, since it gets overwritten when the other
9398 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9399 compiler_DEFAULT=$CC
9400
9401 # save warnings/boilerplate of simple test code
9402 ac_outfile=conftest.$ac_objext
9403 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9404 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9405 _lt_compiler_boilerplate=`cat conftest.err`
9406 $RM conftest*
9407
9408 ac_outfile=conftest.$ac_objext
9409 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9410 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9411 _lt_linker_boilerplate=`cat conftest.err`
9412 $RM -r conftest*
9413
9414
9415 ## CAVEAT EMPTOR:
9416 ## There is no encapsulation within the following macros, do not change
9417 ## the running order or otherwise move them around unless you know exactly
9418 ## what you are doing...
9419 if test -n "$compiler"; then
9420
9421 lt_prog_compiler_no_builtin_flag=
9422
9423 if test "$GCC" = yes; then
9424 case $cc_basename in
9425 nvcc*)
9426 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9427 *)
9428 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9429 esac
9430
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9432 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9433 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 lt_cv_prog_compiler_rtti_exceptions=no
9437 ac_outfile=conftest.$ac_objext
9438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9439 lt_compiler_flag="-fno-rtti -fno-exceptions"
9440 # Insert the option either (1) after the last *FLAGS variable, or
9441 # (2) before a word containing "conftest.", or (3) at the end.
9442 # Note that $ac_compile itself does not contain backslashes and begins
9443 # with a dollar sign (not a hyphen), so the echo should work correctly.
9444 # The option is referenced via a variable to avoid confusing sed.
9445 lt_compile=`echo "$ac_compile" | $SED \
9446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9448 -e 's:$: $lt_compiler_flag:'`
9449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9450 (eval "$lt_compile" 2>conftest.err)
9451 ac_status=$?
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 if (exit $ac_status) && test -s "$ac_outfile"; then
9455 # The compiler can only warn and ignore the option if not recognized
9456 # So say no if there are warnings other than the usual output.
9457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9460 lt_cv_prog_compiler_rtti_exceptions=yes
9461 fi
9462 fi
9463 $RM conftest*
9464
9465 fi
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9467 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9468
9469 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9471 else
9472 :
9473 fi
9474
9475 fi
9476
9477
9478
9479
9480
9481
9482 lt_prog_compiler_wl=
9483 lt_prog_compiler_pic=
9484 lt_prog_compiler_static=
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9487 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9488
9489 if test "$GCC" = yes; then
9490 lt_prog_compiler_wl='-Wl,'
9491 lt_prog_compiler_static='-static'
9492
9493 case $host_os in
9494 aix*)
9495 # All AIX code is PIC.
9496 if test "$host_cpu" = ia64; then
9497 # AIX 5 now supports IA64 processor
9498 lt_prog_compiler_static='-Bstatic'
9499 fi
9500 lt_prog_compiler_pic='-fPIC'
9501 ;;
9502
9503 amigaos*)
9504 case $host_cpu in
9505 powerpc)
9506 # see comment about AmigaOS4 .so support
9507 lt_prog_compiler_pic='-fPIC'
9508 ;;
9509 m68k)
9510 # FIXME: we need at least 68020 code to build shared libraries, but
9511 # adding the `-m68020' flag to GCC prevents building anything better,
9512 # like `-m68040'.
9513 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9514 ;;
9515 esac
9516 ;;
9517
9518 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9519 # PIC is the default for these OSes.
9520 ;;
9521
9522 mingw* | cygwin* | pw32* | os2* | cegcc*)
9523 # This hack is so that the source file can tell whether it is being
9524 # built for inclusion in a dll (and should export symbols for example).
9525 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9526 # (--disable-auto-import) libraries
9527 lt_prog_compiler_pic='-DDLL_EXPORT'
9528 ;;
9529
9530 darwin* | rhapsody*)
9531 # PIC is the default on this platform
9532 # Common symbols not allowed in MH_DYLIB files
9533 lt_prog_compiler_pic='-fno-common'
9534 ;;
9535
9536 haiku*)
9537 # PIC is the default for Haiku.
9538 # The "-static" flag exists, but is broken.
9539 lt_prog_compiler_static=
9540 ;;
9541
9542 hpux*)
9543 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9544 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9545 # sets the default TLS model and affects inlining.
9546 case $host_cpu in
9547 hppa*64*)
9548 # +Z the default
9549 ;;
9550 *)
9551 lt_prog_compiler_pic='-fPIC'
9552 ;;
9553 esac
9554 ;;
9555
9556 interix[3-9]*)
9557 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9558 # Instead, we relocate shared libraries at runtime.
9559 ;;
9560
9561 msdosdjgpp*)
9562 # Just because we use GCC doesn't mean we suddenly get shared libraries
9563 # on systems that don't support them.
9564 lt_prog_compiler_can_build_shared=no
9565 enable_shared=no
9566 ;;
9567
9568 *nto* | *qnx*)
9569 # QNX uses GNU C++, but need to define -shared option too, otherwise
9570 # it will coredump.
9571 lt_prog_compiler_pic='-fPIC -shared'
9572 ;;
9573
9574 sysv4*MP*)
9575 if test -d /usr/nec; then
9576 lt_prog_compiler_pic=-Kconform_pic
9577 fi
9578 ;;
9579
9580 *)
9581 lt_prog_compiler_pic='-fPIC'
9582 ;;
9583 esac
9584
9585 case $cc_basename in
9586 nvcc*) # Cuda Compiler Driver 2.2
9587 lt_prog_compiler_wl='-Xlinker '
9588 lt_prog_compiler_pic='-Xcompiler -fPIC'
9589 ;;
9590 esac
9591 else
9592 # PORTME Check for flag to pass linker flags through the system compiler.
9593 case $host_os in
9594 aix*)
9595 lt_prog_compiler_wl='-Wl,'
9596 if test "$host_cpu" = ia64; then
9597 # AIX 5 now supports IA64 processor
9598 lt_prog_compiler_static='-Bstatic'
9599 else
9600 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9601 fi
9602 ;;
9603
9604 mingw* | cygwin* | pw32* | os2* | cegcc*)
9605 # This hack is so that the source file can tell whether it is being
9606 # built for inclusion in a dll (and should export symbols for example).
9607 lt_prog_compiler_pic='-DDLL_EXPORT'
9608 ;;
9609
9610 hpux9* | hpux10* | hpux11*)
9611 lt_prog_compiler_wl='-Wl,'
9612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9613 # not for PA HP-UX.
9614 case $host_cpu in
9615 hppa*64*|ia64*)
9616 # +Z the default
9617 ;;
9618 *)
9619 lt_prog_compiler_pic='+Z'
9620 ;;
9621 esac
9622 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9623 lt_prog_compiler_static='${wl}-a ${wl}archive'
9624 ;;
9625
9626 irix5* | irix6* | nonstopux*)
9627 lt_prog_compiler_wl='-Wl,'
9628 # PIC (with -KPIC) is the default.
9629 lt_prog_compiler_static='-non_shared'
9630 ;;
9631
9632 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9633 case $cc_basename in
9634 # old Intel for x86_64 which still supported -KPIC.
9635 ecc*)
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_pic='-KPIC'
9638 lt_prog_compiler_static='-static'
9639 ;;
9640 # icc used to be incompatible with GCC.
9641 # ICC 10 doesn't accept -KPIC any more.
9642 icc* | ifort*)
9643 lt_prog_compiler_wl='-Wl,'
9644 lt_prog_compiler_pic='-fPIC'
9645 lt_prog_compiler_static='-static'
9646 ;;
9647 # Lahey Fortran 8.1.
9648 lf95*)
9649 lt_prog_compiler_wl='-Wl,'
9650 lt_prog_compiler_pic='--shared'
9651 lt_prog_compiler_static='--static'
9652 ;;
9653 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9654 # Portland Group compilers (*not* the Pentium gcc compiler,
9655 # which looks to be a dead project)
9656 lt_prog_compiler_wl='-Wl,'
9657 lt_prog_compiler_pic='-fpic'
9658 lt_prog_compiler_static='-Bstatic'
9659 ;;
9660 ccc*)
9661 lt_prog_compiler_wl='-Wl,'
9662 # All Alpha code is PIC.
9663 lt_prog_compiler_static='-non_shared'
9664 ;;
9665 xl* | bgxl* | bgf* | mpixl*)
9666 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9667 lt_prog_compiler_wl='-Wl,'
9668 lt_prog_compiler_pic='-qpic'
9669 lt_prog_compiler_static='-qstaticlink'
9670 ;;
9671 *)
9672 case `$CC -V 2>&1 | sed 5q` in
9673 *Sun\ F* | *Sun*Fortran*)
9674 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9675 lt_prog_compiler_pic='-KPIC'
9676 lt_prog_compiler_static='-Bstatic'
9677 lt_prog_compiler_wl=''
9678 ;;
9679 *Sun\ C*)
9680 # Sun C 5.9
9681 lt_prog_compiler_pic='-KPIC'
9682 lt_prog_compiler_static='-Bstatic'
9683 lt_prog_compiler_wl='-Wl,'
9684 ;;
9685 esac
9686 ;;
9687 esac
9688 ;;
9689
9690 newsos6)
9691 lt_prog_compiler_pic='-KPIC'
9692 lt_prog_compiler_static='-Bstatic'
9693 ;;
9694
9695 *nto* | *qnx*)
9696 # QNX uses GNU C++, but need to define -shared option too, otherwise
9697 # it will coredump.
9698 lt_prog_compiler_pic='-fPIC -shared'
9699 ;;
9700
9701 osf3* | osf4* | osf5*)
9702 lt_prog_compiler_wl='-Wl,'
9703 # All OSF/1 code is PIC.
9704 lt_prog_compiler_static='-non_shared'
9705 ;;
9706
9707 rdos*)
9708 lt_prog_compiler_static='-non_shared'
9709 ;;
9710
9711 solaris*)
9712 lt_prog_compiler_pic='-KPIC'
9713 lt_prog_compiler_static='-Bstatic'
9714 case $cc_basename in
9715 f77* | f90* | f95*)
9716 lt_prog_compiler_wl='-Qoption ld ';;
9717 *)
9718 lt_prog_compiler_wl='-Wl,';;
9719 esac
9720 ;;
9721
9722 sunos4*)
9723 lt_prog_compiler_wl='-Qoption ld '
9724 lt_prog_compiler_pic='-PIC'
9725 lt_prog_compiler_static='-Bstatic'
9726 ;;
9727
9728 sysv4 | sysv4.2uw2* | sysv4.3*)
9729 lt_prog_compiler_wl='-Wl,'
9730 lt_prog_compiler_pic='-KPIC'
9731 lt_prog_compiler_static='-Bstatic'
9732 ;;
9733
9734 sysv4*MP*)
9735 if test -d /usr/nec ;then
9736 lt_prog_compiler_pic='-Kconform_pic'
9737 lt_prog_compiler_static='-Bstatic'
9738 fi
9739 ;;
9740
9741 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9742 lt_prog_compiler_wl='-Wl,'
9743 lt_prog_compiler_pic='-KPIC'
9744 lt_prog_compiler_static='-Bstatic'
9745 ;;
9746
9747 unicos*)
9748 lt_prog_compiler_wl='-Wl,'
9749 lt_prog_compiler_can_build_shared=no
9750 ;;
9751
9752 uts4*)
9753 lt_prog_compiler_pic='-pic'
9754 lt_prog_compiler_static='-Bstatic'
9755 ;;
9756
9757 *)
9758 lt_prog_compiler_can_build_shared=no
9759 ;;
9760 esac
9761 fi
9762
9763 case $host_os in
9764 # For platforms which do not support PIC, -DPIC is meaningless:
9765 *djgpp*)
9766 lt_prog_compiler_pic=
9767 ;;
9768 *)
9769 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9770 ;;
9771 esac
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9773 $as_echo "$lt_prog_compiler_pic" >&6; }
9774
9775
9776
9777
9778
9779
9780 #
9781 # Check to make sure the PIC flag actually works.
9782 #
9783 if test -n "$lt_prog_compiler_pic"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9785 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9786 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 lt_cv_prog_compiler_pic_works=no
9790 ac_outfile=conftest.$ac_objext
9791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9792 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9793 # Insert the option either (1) after the last *FLAGS variable, or
9794 # (2) before a word containing "conftest.", or (3) at the end.
9795 # Note that $ac_compile itself does not contain backslashes and begins
9796 # with a dollar sign (not a hyphen), so the echo should work correctly.
9797 # The option is referenced via a variable to avoid confusing sed.
9798 lt_compile=`echo "$ac_compile" | $SED \
9799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9801 -e 's:$: $lt_compiler_flag:'`
9802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9803 (eval "$lt_compile" 2>conftest.err)
9804 ac_status=$?
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 if (exit $ac_status) && test -s "$ac_outfile"; then
9808 # The compiler can only warn and ignore the option if not recognized
9809 # So say no if there are warnings other than the usual output.
9810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9813 lt_cv_prog_compiler_pic_works=yes
9814 fi
9815 fi
9816 $RM conftest*
9817
9818 fi
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9820 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9821
9822 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9823 case $lt_prog_compiler_pic in
9824 "" | " "*) ;;
9825 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9826 esac
9827 else
9828 lt_prog_compiler_pic=
9829 lt_prog_compiler_can_build_shared=no
9830 fi
9831
9832 fi
9833
9834
9835
9836
9837
9838
9839 #
9840 # Check to make sure the static flag actually works.
9841 #
9842 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9844 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9845 if ${lt_cv_prog_compiler_static_works+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 lt_cv_prog_compiler_static_works=no
9849 save_LDFLAGS="$LDFLAGS"
9850 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9851 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9853 # The linker can only warn and ignore the option if not recognized
9854 # So say no if there are warnings
9855 if test -s conftest.err; then
9856 # Append any errors to the config.log.
9857 cat conftest.err 1>&5
9858 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9860 if diff conftest.exp conftest.er2 >/dev/null; then
9861 lt_cv_prog_compiler_static_works=yes
9862 fi
9863 else
9864 lt_cv_prog_compiler_static_works=yes
9865 fi
9866 fi
9867 $RM -r conftest*
9868 LDFLAGS="$save_LDFLAGS"
9869
9870 fi
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9872 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9873
9874 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9875 :
9876 else
9877 lt_prog_compiler_static=
9878 fi
9879
9880
9881
9882
9883
9884
9885
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9887 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9888 if ${lt_cv_prog_compiler_c_o+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 lt_cv_prog_compiler_c_o=no
9892 $RM -r conftest 2>/dev/null
9893 mkdir conftest
9894 cd conftest
9895 mkdir out
9896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9897
9898 lt_compiler_flag="-o out/conftest2.$ac_objext"
9899 # Insert the option either (1) after the last *FLAGS variable, or
9900 # (2) before a word containing "conftest.", or (3) at the end.
9901 # Note that $ac_compile itself does not contain backslashes and begins
9902 # with a dollar sign (not a hyphen), so the echo should work correctly.
9903 lt_compile=`echo "$ac_compile" | $SED \
9904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9906 -e 's:$: $lt_compiler_flag:'`
9907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9908 (eval "$lt_compile" 2>out/conftest.err)
9909 ac_status=$?
9910 cat out/conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9913 then
9914 # The compiler can only warn and ignore the option if not recognized
9915 # So say no if there are warnings
9916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9919 lt_cv_prog_compiler_c_o=yes
9920 fi
9921 fi
9922 chmod u+w . 2>&5
9923 $RM conftest*
9924 # SGI C++ compiler will create directory out/ii_files/ for
9925 # template instantiation
9926 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9927 $RM out/* && rmdir out
9928 cd ..
9929 $RM -r conftest
9930 $RM conftest*
9931
9932 fi
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9934 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9935
9936
9937
9938
9939
9940
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9942 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9943 if ${lt_cv_prog_compiler_c_o+:} false; then :
9944 $as_echo_n "(cached) " >&6
9945 else
9946 lt_cv_prog_compiler_c_o=no
9947 $RM -r conftest 2>/dev/null
9948 mkdir conftest
9949 cd conftest
9950 mkdir out
9951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9952
9953 lt_compiler_flag="-o out/conftest2.$ac_objext"
9954 # Insert the option either (1) after the last *FLAGS variable, or
9955 # (2) before a word containing "conftest.", or (3) at the end.
9956 # Note that $ac_compile itself does not contain backslashes and begins
9957 # with a dollar sign (not a hyphen), so the echo should work correctly.
9958 lt_compile=`echo "$ac_compile" | $SED \
9959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9961 -e 's:$: $lt_compiler_flag:'`
9962 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9963 (eval "$lt_compile" 2>out/conftest.err)
9964 ac_status=$?
9965 cat out/conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9968 then
9969 # The compiler can only warn and ignore the option if not recognized
9970 # So say no if there are warnings
9971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9972 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9973 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9974 lt_cv_prog_compiler_c_o=yes
9975 fi
9976 fi
9977 chmod u+w . 2>&5
9978 $RM conftest*
9979 # SGI C++ compiler will create directory out/ii_files/ for
9980 # template instantiation
9981 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9982 $RM out/* && rmdir out
9983 cd ..
9984 $RM -r conftest
9985 $RM conftest*
9986
9987 fi
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9989 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9990
9991
9992
9993
9994 hard_links="nottested"
9995 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9996 # do not overwrite the value of need_locks provided by the user
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9998 $as_echo_n "checking if we can lock with hard links... " >&6; }
9999 hard_links=yes
10000 $RM conftest*
10001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10002 touch conftest.a
10003 ln conftest.a conftest.b 2>&5 || hard_links=no
10004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10006 $as_echo "$hard_links" >&6; }
10007 if test "$hard_links" = no; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10009 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10010 need_locks=warn
10011 fi
10012 else
10013 need_locks=no
10014 fi
10015
10016
10017
10018
10019
10020
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10022 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10023
10024 runpath_var=
10025 allow_undefined_flag=
10026 always_export_symbols=no
10027 archive_cmds=
10028 archive_expsym_cmds=
10029 compiler_needs_object=no
10030 enable_shared_with_static_runtimes=no
10031 export_dynamic_flag_spec=
10032 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10033 hardcode_automatic=no
10034 hardcode_direct=no
10035 hardcode_direct_absolute=no
10036 hardcode_libdir_flag_spec=
10037 hardcode_libdir_flag_spec_ld=
10038 hardcode_libdir_separator=
10039 hardcode_minus_L=no
10040 hardcode_shlibpath_var=unsupported
10041 inherit_rpath=no
10042 link_all_deplibs=unknown
10043 module_cmds=
10044 module_expsym_cmds=
10045 old_archive_from_new_cmds=
10046 old_archive_from_expsyms_cmds=
10047 thread_safe_flag_spec=
10048 whole_archive_flag_spec=
10049 # include_expsyms should be a list of space-separated symbols to be *always*
10050 # included in the symbol list
10051 include_expsyms=
10052 # exclude_expsyms can be an extended regexp of symbols to exclude
10053 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10054 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10055 # as well as any symbol that contains `d'.
10056 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10057 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10058 # platforms (ab)use it in PIC code, but their linkers get confused if
10059 # the symbol is explicitly referenced. Since portable code cannot
10060 # rely on this symbol name, it's probably fine to never include it in
10061 # preloaded symbol tables.
10062 # Exclude shared library initialization/finalization symbols.
10063 extract_expsyms_cmds=
10064
10065 case $host_os in
10066 cygwin* | mingw* | pw32* | cegcc*)
10067 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10068 # When not using gcc, we currently assume that we are using
10069 # Microsoft Visual C++.
10070 if test "$GCC" != yes; then
10071 with_gnu_ld=no
10072 fi
10073 ;;
10074 interix*)
10075 # we just hope/assume this is gcc and not c89 (= MSVC++)
10076 with_gnu_ld=yes
10077 ;;
10078 openbsd*)
10079 with_gnu_ld=no
10080 ;;
10081 esac
10082
10083 ld_shlibs=yes
10084
10085 # On some targets, GNU ld is compatible enough with the native linker
10086 # that we're better off using the native interface for both.
10087 lt_use_gnu_ld_interface=no
10088 if test "$with_gnu_ld" = yes; then
10089 case $host_os in
10090 aix*)
10091 # The AIX port of GNU ld has always aspired to compatibility
10092 # with the native linker. However, as the warning in the GNU ld
10093 # block says, versions before 2.19.5* couldn't really create working
10094 # shared libraries, regardless of the interface used.
10095 case `$LD -v 2>&1` in
10096 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10097 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10098 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10099 *)
10100 lt_use_gnu_ld_interface=yes
10101 ;;
10102 esac
10103 ;;
10104 *)
10105 lt_use_gnu_ld_interface=yes
10106 ;;
10107 esac
10108 fi
10109
10110 if test "$lt_use_gnu_ld_interface" = yes; then
10111 # If archive_cmds runs LD, not CC, wlarc should be empty
10112 wlarc='${wl}'
10113
10114 # Set some defaults for GNU ld with shared library support. These
10115 # are reset later if shared libraries are not supported. Putting them
10116 # here allows them to be overridden if necessary.
10117 runpath_var=LD_RUN_PATH
10118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10119 export_dynamic_flag_spec='${wl}--export-dynamic'
10120 # ancient GNU ld didn't support --whole-archive et. al.
10121 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10122 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10123 else
10124 whole_archive_flag_spec=
10125 fi
10126 supports_anon_versioning=no
10127 case `$LD -v 2>&1` in
10128 *GNU\ gold*) supports_anon_versioning=yes ;;
10129 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10130 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10131 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10132 *\ 2.11.*) ;; # other 2.11 versions
10133 *) supports_anon_versioning=yes ;;
10134 esac
10135
10136 # See if GNU ld supports shared libraries.
10137 case $host_os in
10138 aix[3-9]*)
10139 # On AIX/PPC, the GNU linker is very broken
10140 if test "$host_cpu" != ia64; then
10141 ld_shlibs=no
10142 cat <<_LT_EOF 1>&2
10143
10144 *** Warning: the GNU linker, at least up to release 2.19, is reported
10145 *** to be unable to reliably create shared libraries on AIX.
10146 *** Therefore, libtool is disabling shared libraries support. If you
10147 *** really care for shared libraries, you may want to install binutils
10148 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10149 *** You will then need to restart the configuration process.
10150
10151 _LT_EOF
10152 fi
10153 ;;
10154
10155 amigaos*)
10156 case $host_cpu in
10157 powerpc)
10158 # see comment about AmigaOS4 .so support
10159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160 archive_expsym_cmds=''
10161 ;;
10162 m68k)
10163 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)'
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 hardcode_minus_L=yes
10166 ;;
10167 esac
10168 ;;
10169
10170 beos*)
10171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10172 allow_undefined_flag=unsupported
10173 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10174 # support --undefined. This deserves some investigation. FIXME
10175 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10176 else
10177 ld_shlibs=no
10178 fi
10179 ;;
10180
10181 cygwin* | mingw* | pw32* | cegcc*)
10182 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10183 # as there is no search path for DLLs.
10184 hardcode_libdir_flag_spec='-L$libdir'
10185 export_dynamic_flag_spec='${wl}--export-all-symbols'
10186 allow_undefined_flag=unsupported
10187 always_export_symbols=no
10188 enable_shared_with_static_runtimes=yes
10189 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10190
10191 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10193 # If the export-symbols file already is a .def file (1st line
10194 # is EXPORTS), use it as is; otherwise, prepend...
10195 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10196 cp $export_symbols $output_objdir/$soname.def;
10197 else
10198 echo EXPORTS > $output_objdir/$soname.def;
10199 cat $export_symbols >> $output_objdir/$soname.def;
10200 fi~
10201 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10202 else
10203 ld_shlibs=no
10204 fi
10205 ;;
10206
10207 haiku*)
10208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209 link_all_deplibs=yes
10210 ;;
10211
10212 interix[3-9]*)
10213 hardcode_direct=no
10214 hardcode_shlibpath_var=no
10215 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10216 export_dynamic_flag_spec='${wl}-E'
10217 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10218 # Instead, shared libraries are loaded at an image base (0x10000000 by
10219 # default) and relocated if they conflict, which is a slow very memory
10220 # consuming and fragmenting process. To avoid this, we pick a random,
10221 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10222 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10223 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10224 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'
10225 ;;
10226
10227 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10228 tmp_diet=no
10229 if test "$host_os" = linux-dietlibc; then
10230 case $cc_basename in
10231 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10232 esac
10233 fi
10234 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10235 && test "$tmp_diet" = no
10236 then
10237 tmp_addflag=' $pic_flag'
10238 tmp_sharedflag='-shared'
10239 case $cc_basename,$host_cpu in
10240 pgcc*) # Portland Group C compiler
10241 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'
10242 tmp_addflag=' $pic_flag'
10243 ;;
10244 pgf77* | pgf90* | pgf95* | pgfortran*)
10245 # Portland Group f77 and f90 compilers
10246 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'
10247 tmp_addflag=' $pic_flag -Mnomain' ;;
10248 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10249 tmp_addflag=' -i_dynamic' ;;
10250 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10251 tmp_addflag=' -i_dynamic -nofor_main' ;;
10252 ifc* | ifort*) # Intel Fortran compiler
10253 tmp_addflag=' -nofor_main' ;;
10254 lf95*) # Lahey Fortran 8.1
10255 whole_archive_flag_spec=
10256 tmp_sharedflag='--shared' ;;
10257 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10258 tmp_sharedflag='-qmkshrobj'
10259 tmp_addflag= ;;
10260 nvcc*) # Cuda Compiler Driver 2.2
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 compiler_needs_object=yes
10263 ;;
10264 esac
10265 case `$CC -V 2>&1 | sed 5q` in
10266 *Sun\ C*) # Sun C 5.9
10267 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'
10268 compiler_needs_object=yes
10269 tmp_sharedflag='-G' ;;
10270 *Sun\ F*) # Sun Fortran 8.3
10271 tmp_sharedflag='-G' ;;
10272 esac
10273 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10274
10275 if test "x$supports_anon_versioning" = xyes; then
10276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10278 echo "local: *; };" >> $output_objdir/$libname.ver~
10279 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10280 fi
10281
10282 case $cc_basename in
10283 xlf* | bgf* | bgxlf* | mpixlf*)
10284 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10285 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10286 hardcode_libdir_flag_spec=
10287 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10288 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10289 if test "x$supports_anon_versioning" = xyes; then
10290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10292 echo "local: *; };" >> $output_objdir/$libname.ver~
10293 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10294 fi
10295 ;;
10296 esac
10297 else
10298 ld_shlibs=no
10299 fi
10300 ;;
10301
10302 netbsd*)
10303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10304 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10305 wlarc=
10306 else
10307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10309 fi
10310 ;;
10311
10312 solaris*)
10313 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10314 ld_shlibs=no
10315 cat <<_LT_EOF 1>&2
10316
10317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10318 *** create shared libraries on Solaris systems. Therefore, libtool
10319 *** is disabling shared libraries support. We urge you to upgrade GNU
10320 *** binutils to release 2.9.1 or newer. Another option is to modify
10321 *** your PATH or compiler configuration so that the native linker is
10322 *** used, and then restart.
10323
10324 _LT_EOF
10325 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10328 else
10329 ld_shlibs=no
10330 fi
10331 ;;
10332
10333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10334 case `$LD -v 2>&1` in
10335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10336 ld_shlibs=no
10337 cat <<_LT_EOF 1>&2
10338
10339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10340 *** reliably create shared libraries on SCO systems. Therefore, libtool
10341 *** is disabling shared libraries support. We urge you to upgrade GNU
10342 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10343 *** your PATH or compiler configuration so that the native linker is
10344 *** used, and then restart.
10345
10346 _LT_EOF
10347 ;;
10348 *)
10349 # For security reasons, it is highly recommended that you always
10350 # use absolute paths for naming shared libraries, and exclude the
10351 # DT_RUNPATH tag from executables and libraries. But doing so
10352 # requires that you compile everything twice, which is a pain.
10353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10357 else
10358 ld_shlibs=no
10359 fi
10360 ;;
10361 esac
10362 ;;
10363
10364 sunos4*)
10365 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10366 wlarc=
10367 hardcode_direct=yes
10368 hardcode_shlibpath_var=no
10369 ;;
10370
10371 *)
10372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10375 else
10376 ld_shlibs=no
10377 fi
10378 ;;
10379 esac
10380
10381 if test "$ld_shlibs" = no; then
10382 runpath_var=
10383 hardcode_libdir_flag_spec=
10384 export_dynamic_flag_spec=
10385 whole_archive_flag_spec=
10386 fi
10387 else
10388 # PORTME fill in a description of your system's linker (not GNU ld)
10389 case $host_os in
10390 aix3*)
10391 allow_undefined_flag=unsupported
10392 always_export_symbols=yes
10393 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'
10394 # Note: this linker hardcodes the directories in LIBPATH if there
10395 # are no directories specified by -L.
10396 hardcode_minus_L=yes
10397 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10398 # Neither direct hardcoding nor static linking is supported with a
10399 # broken collect2.
10400 hardcode_direct=unsupported
10401 fi
10402 ;;
10403
10404 aix[4-9]*)
10405 if test "$host_cpu" = ia64; then
10406 # On IA64, the linker does run time linking by default, so we don't
10407 # have to do anything special.
10408 aix_use_runtimelinking=no
10409 exp_sym_flag='-Bexport'
10410 no_entry_flag=""
10411 else
10412 # If we're using GNU nm, then we don't want the "-C" option.
10413 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10414 # Also, AIX nm treats weak defined symbols like other global
10415 # defined symbols, whereas GNU nm marks them as "W".
10416 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10417 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'
10418 else
10419 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'
10420 fi
10421 aix_use_runtimelinking=no
10422
10423 # Test if we are trying to use run time linking or normal
10424 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10425 # need to do runtime linking.
10426 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10427 for ld_flag in $LDFLAGS; do
10428 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10429 aix_use_runtimelinking=yes
10430 break
10431 fi
10432 done
10433 ;;
10434 esac
10435
10436 exp_sym_flag='-bexport'
10437 no_entry_flag='-bnoentry'
10438 fi
10439
10440 # When large executables or shared objects are built, AIX ld can
10441 # have problems creating the table of contents. If linking a library
10442 # or program results in "error TOC overflow" add -mminimal-toc to
10443 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10445
10446 archive_cmds=''
10447 hardcode_direct=yes
10448 hardcode_direct_absolute=yes
10449 hardcode_libdir_separator=':'
10450 link_all_deplibs=yes
10451 file_list_spec='${wl}-f,'
10452
10453 if test "$GCC" = yes; then
10454 case $host_os in aix4.[012]|aix4.[012].*)
10455 # We only want to do this on AIX 4.2 and lower, the check
10456 # below for broken collect2 doesn't work under 4.3+
10457 collect2name=`${CC} -print-prog-name=collect2`
10458 if test -f "$collect2name" &&
10459 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10460 then
10461 # We have reworked collect2
10462 :
10463 else
10464 # We have old collect2
10465 hardcode_direct=unsupported
10466 # It fails to find uninstalled libraries when the uninstalled
10467 # path is not listed in the libpath. Setting hardcode_minus_L
10468 # to unsupported forces relinking
10469 hardcode_minus_L=yes
10470 hardcode_libdir_flag_spec='-L$libdir'
10471 hardcode_libdir_separator=
10472 fi
10473 ;;
10474 esac
10475 shared_flag='-shared'
10476 if test "$aix_use_runtimelinking" = yes; then
10477 shared_flag="$shared_flag "'${wl}-G'
10478 fi
10479 else
10480 # not using gcc
10481 if test "$host_cpu" = ia64; then
10482 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10483 # chokes on -Wl,-G. The following line is correct:
10484 shared_flag='-G'
10485 else
10486 if test "$aix_use_runtimelinking" = yes; then
10487 shared_flag='${wl}-G'
10488 else
10489 shared_flag='${wl}-bM:SRE'
10490 fi
10491 fi
10492 fi
10493
10494 export_dynamic_flag_spec='${wl}-bexpall'
10495 # It seems that -bexpall does not export symbols beginning with
10496 # underscore (_), so it is better to generate a list of symbols to export.
10497 always_export_symbols=yes
10498 if test "$aix_use_runtimelinking" = yes; then
10499 # Warning - without using the other runtime loading flags (-brtl),
10500 # -berok will link without error, but may produce a broken library.
10501 allow_undefined_flag='-berok'
10502 # Determine the default libpath from the value encoded in an
10503 # empty executable.
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506
10507 int
10508 main ()
10509 {
10510
10511 ;
10512 return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516
10517 lt_aix_libpath_sed='
10518 /Import File Strings/,/^$/ {
10519 /^0/ {
10520 s/^0 *\(.*\)$/\1/
10521 p
10522 }
10523 }'
10524 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10525 # Check for a 64-bit object if we didn't find anything.
10526 if test -z "$aix_libpath"; then
10527 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10528 fi
10529 fi
10530 rm -f core conftest.err conftest.$ac_objext \
10531 conftest$ac_exeext conftest.$ac_ext
10532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10533
10534 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10535 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"
10536 else
10537 if test "$host_cpu" = ia64; then
10538 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10539 allow_undefined_flag="-z nodefs"
10540 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"
10541 else
10542 # Determine the default libpath from the value encoded in an
10543 # empty executable.
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546
10547 int
10548 main ()
10549 {
10550
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 if ac_fn_c_try_link "$LINENO"; then :
10556
10557 lt_aix_libpath_sed='
10558 /Import File Strings/,/^$/ {
10559 /^0/ {
10560 s/^0 *\(.*\)$/\1/
10561 p
10562 }
10563 }'
10564 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10565 # Check for a 64-bit object if we didn't find anything.
10566 if test -z "$aix_libpath"; then
10567 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10568 fi
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10573
10574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10575 # Warning - without using the other run time loading flags,
10576 # -berok will link without error, but may produce a broken library.
10577 no_undefined_flag=' ${wl}-bernotok'
10578 allow_undefined_flag=' ${wl}-berok'
10579 if test "$with_gnu_ld" = yes; then
10580 # We only use this code for GNU lds that support --whole-archive.
10581 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10582 else
10583 # Exported symbols can be pulled into shared objects from archives
10584 whole_archive_flag_spec='$convenience'
10585 fi
10586 archive_cmds_need_lc=yes
10587 # This is similar to how AIX traditionally builds its shared libraries.
10588 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'
10589 fi
10590 fi
10591 ;;
10592
10593 amigaos*)
10594 case $host_cpu in
10595 powerpc)
10596 # see comment about AmigaOS4 .so support
10597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10598 archive_expsym_cmds=''
10599 ;;
10600 m68k)
10601 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)'
10602 hardcode_libdir_flag_spec='-L$libdir'
10603 hardcode_minus_L=yes
10604 ;;
10605 esac
10606 ;;
10607
10608 bsdi[45]*)
10609 export_dynamic_flag_spec=-rdynamic
10610 ;;
10611
10612 cygwin* | mingw* | pw32* | cegcc*)
10613 # When not using gcc, we currently assume that we are using
10614 # Microsoft Visual C++.
10615 # hardcode_libdir_flag_spec is actually meaningless, as there is
10616 # no search path for DLLs.
10617 hardcode_libdir_flag_spec=' '
10618 allow_undefined_flag=unsupported
10619 # Tell ltmain to make .lib files, not .a files.
10620 libext=lib
10621 # Tell ltmain to make .dll files, not .so files.
10622 shrext_cmds=".dll"
10623 # FIXME: Setting linknames here is a bad hack.
10624 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10625 # The linker will automatically build a .lib file if we build a DLL.
10626 old_archive_from_new_cmds='true'
10627 # FIXME: Should let the user specify the lib program.
10628 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10629 fix_srcfile_path='`cygpath -w "$srcfile"`'
10630 enable_shared_with_static_runtimes=yes
10631 ;;
10632
10633 darwin* | rhapsody*)
10634
10635
10636 archive_cmds_need_lc=no
10637 hardcode_direct=no
10638 hardcode_automatic=yes
10639 hardcode_shlibpath_var=unsupported
10640 if test "$lt_cv_ld_force_load" = "yes"; then
10641 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\"`'
10642 else
10643 whole_archive_flag_spec=''
10644 fi
10645 link_all_deplibs=yes
10646 allow_undefined_flag="$_lt_dar_allow_undefined"
10647 case $cc_basename in
10648 ifort*) _lt_dar_can_shared=yes ;;
10649 *) _lt_dar_can_shared=$GCC ;;
10650 esac
10651 if test "$_lt_dar_can_shared" = "yes"; then
10652 output_verbose_link_cmd=func_echo_all
10653 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10654 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10655 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}"
10656 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}"
10657
10658 else
10659 ld_shlibs=no
10660 fi
10661
10662 ;;
10663
10664 dgux*)
10665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_libdir_flag_spec='-L$libdir'
10667 hardcode_shlibpath_var=no
10668 ;;
10669
10670 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10671 # support. Future versions do this automatically, but an explicit c++rt0.o
10672 # does not break anything, and helps significantly (at the cost of a little
10673 # extra space).
10674 freebsd2.2*)
10675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10676 hardcode_libdir_flag_spec='-R$libdir'
10677 hardcode_direct=yes
10678 hardcode_shlibpath_var=no
10679 ;;
10680
10681 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10682 freebsd2.*)
10683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10684 hardcode_direct=yes
10685 hardcode_minus_L=yes
10686 hardcode_shlibpath_var=no
10687 ;;
10688
10689 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10690 freebsd* | dragonfly*)
10691 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10692 hardcode_libdir_flag_spec='-R$libdir'
10693 hardcode_direct=yes
10694 hardcode_shlibpath_var=no
10695 ;;
10696
10697 hpux9*)
10698 if test "$GCC" = yes; then
10699 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'
10700 else
10701 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'
10702 fi
10703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10704 hardcode_libdir_separator=:
10705 hardcode_direct=yes
10706
10707 # hardcode_minus_L: Not really in the search PATH,
10708 # but as the default location of the library.
10709 hardcode_minus_L=yes
10710 export_dynamic_flag_spec='${wl}-E'
10711 ;;
10712
10713 hpux10*)
10714 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10715 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10716 else
10717 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10718 fi
10719 if test "$with_gnu_ld" = no; then
10720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10721 hardcode_libdir_flag_spec_ld='+b $libdir'
10722 hardcode_libdir_separator=:
10723 hardcode_direct=yes
10724 hardcode_direct_absolute=yes
10725 export_dynamic_flag_spec='${wl}-E'
10726 # hardcode_minus_L: Not really in the search PATH,
10727 # but as the default location of the library.
10728 hardcode_minus_L=yes
10729 fi
10730 ;;
10731
10732 hpux11*)
10733 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10734 case $host_cpu in
10735 hppa*64*)
10736 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 ;;
10738 ia64*)
10739 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10740 ;;
10741 *)
10742 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10743 ;;
10744 esac
10745 else
10746 case $host_cpu in
10747 hppa*64*)
10748 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 ;;
10750 ia64*)
10751 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10752 ;;
10753 *)
10754
10755 # Older versions of the 11.00 compiler do not understand -b yet
10756 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10758 $as_echo_n "checking if $CC understands -b... " >&6; }
10759 if ${lt_cv_prog_compiler__b+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 lt_cv_prog_compiler__b=no
10763 save_LDFLAGS="$LDFLAGS"
10764 LDFLAGS="$LDFLAGS -b"
10765 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10766 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10767 # The linker can only warn and ignore the option if not recognized
10768 # So say no if there are warnings
10769 if test -s conftest.err; then
10770 # Append any errors to the config.log.
10771 cat conftest.err 1>&5
10772 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10774 if diff conftest.exp conftest.er2 >/dev/null; then
10775 lt_cv_prog_compiler__b=yes
10776 fi
10777 else
10778 lt_cv_prog_compiler__b=yes
10779 fi
10780 fi
10781 $RM -r conftest*
10782 LDFLAGS="$save_LDFLAGS"
10783
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10786 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10787
10788 if test x"$lt_cv_prog_compiler__b" = xyes; then
10789 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10790 else
10791 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10792 fi
10793
10794 ;;
10795 esac
10796 fi
10797 if test "$with_gnu_ld" = no; then
10798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10799 hardcode_libdir_separator=:
10800
10801 case $host_cpu in
10802 hppa*64*|ia64*)
10803 hardcode_direct=no
10804 hardcode_shlibpath_var=no
10805 ;;
10806 *)
10807 hardcode_direct=yes
10808 hardcode_direct_absolute=yes
10809 export_dynamic_flag_spec='${wl}-E'
10810
10811 # hardcode_minus_L: Not really in the search PATH,
10812 # but as the default location of the library.
10813 hardcode_minus_L=yes
10814 ;;
10815 esac
10816 fi
10817 ;;
10818
10819 irix5* | irix6* | nonstopux*)
10820 if test "$GCC" = yes; then
10821 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'
10822 # Try to use the -exported_symbol ld option, if it does not
10823 # work, assume that -exports_file does not work either and
10824 # implicitly export all symbols.
10825 save_LDFLAGS="$LDFLAGS"
10826 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 int foo(void) {}
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"; then :
10832 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'
10833
10834 fi
10835 rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837 LDFLAGS="$save_LDFLAGS"
10838 else
10839 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'
10840 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'
10841 fi
10842 archive_cmds_need_lc='no'
10843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10844 hardcode_libdir_separator=:
10845 inherit_rpath=yes
10846 link_all_deplibs=yes
10847 ;;
10848
10849 netbsd*)
10850 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10852 else
10853 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10854 fi
10855 hardcode_libdir_flag_spec='-R$libdir'
10856 hardcode_direct=yes
10857 hardcode_shlibpath_var=no
10858 ;;
10859
10860 newsos6)
10861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10862 hardcode_direct=yes
10863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10864 hardcode_libdir_separator=:
10865 hardcode_shlibpath_var=no
10866 ;;
10867
10868 *nto* | *qnx*)
10869 ;;
10870
10871 openbsd*)
10872 if test -f /usr/libexec/ld.so; then
10873 hardcode_direct=yes
10874 hardcode_shlibpath_var=no
10875 hardcode_direct_absolute=yes
10876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10878 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10880 export_dynamic_flag_spec='${wl}-E'
10881 else
10882 case $host_os in
10883 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10884 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10885 hardcode_libdir_flag_spec='-R$libdir'
10886 ;;
10887 *)
10888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10890 ;;
10891 esac
10892 fi
10893 else
10894 ld_shlibs=no
10895 fi
10896 ;;
10897
10898 os2*)
10899 hardcode_libdir_flag_spec='-L$libdir'
10900 hardcode_minus_L=yes
10901 allow_undefined_flag=unsupported
10902 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'
10903 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10904 ;;
10905
10906 osf3*)
10907 if test "$GCC" = yes; then
10908 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10909 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'
10910 else
10911 allow_undefined_flag=' -expect_unresolved \*'
10912 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'
10913 fi
10914 archive_cmds_need_lc='no'
10915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10916 hardcode_libdir_separator=:
10917 ;;
10918
10919 osf4* | osf5*) # as osf3* with the addition of -msym flag
10920 if test "$GCC" = yes; then
10921 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10922 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'
10923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10924 else
10925 allow_undefined_flag=' -expect_unresolved \*'
10926 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'
10927 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~
10928 $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'
10929
10930 # Both c and cxx compiler support -rpath directly
10931 hardcode_libdir_flag_spec='-rpath $libdir'
10932 fi
10933 archive_cmds_need_lc='no'
10934 hardcode_libdir_separator=:
10935 ;;
10936
10937 solaris*)
10938 no_undefined_flag=' -z defs'
10939 if test "$GCC" = yes; then
10940 wlarc='${wl}'
10941 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10943 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10944 else
10945 case `$CC -V 2>&1` in
10946 *"Compilers 5.0"*)
10947 wlarc=''
10948 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10949 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10950 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10951 ;;
10952 *)
10953 wlarc='${wl}'
10954 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10956 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10957 ;;
10958 esac
10959 fi
10960 hardcode_libdir_flag_spec='-R$libdir'
10961 hardcode_shlibpath_var=no
10962 case $host_os in
10963 solaris2.[0-5] | solaris2.[0-5].*) ;;
10964 *)
10965 # The compiler driver will combine and reorder linker options,
10966 # but understands `-z linker_flag'. GCC discards it without `$wl',
10967 # but is careful enough not to reorder.
10968 # Supported since Solaris 2.6 (maybe 2.5.1?)
10969 if test "$GCC" = yes; then
10970 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10971 else
10972 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10973 fi
10974 ;;
10975 esac
10976 link_all_deplibs=yes
10977 ;;
10978
10979 sunos4*)
10980 if test "x$host_vendor" = xsequent; then
10981 # Use $CC to link under sequent, because it throws in some extra .o
10982 # files that make .init and .fini sections work.
10983 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10984 else
10985 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10986 fi
10987 hardcode_libdir_flag_spec='-L$libdir'
10988 hardcode_direct=yes
10989 hardcode_minus_L=yes
10990 hardcode_shlibpath_var=no
10991 ;;
10992
10993 sysv4)
10994 case $host_vendor in
10995 sni)
10996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10997 hardcode_direct=yes # is this really true???
10998 ;;
10999 siemens)
11000 ## LD is ld it makes a PLAMLIB
11001 ## CC just makes a GrossModule.
11002 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11003 reload_cmds='$CC -r -o $output$reload_objs'
11004 hardcode_direct=no
11005 ;;
11006 motorola)
11007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11008 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11009 ;;
11010 esac
11011 runpath_var='LD_RUN_PATH'
11012 hardcode_shlibpath_var=no
11013 ;;
11014
11015 sysv4.3*)
11016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11017 hardcode_shlibpath_var=no
11018 export_dynamic_flag_spec='-Bexport'
11019 ;;
11020
11021 sysv4*MP*)
11022 if test -d /usr/nec; then
11023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11024 hardcode_shlibpath_var=no
11025 runpath_var=LD_RUN_PATH
11026 hardcode_runpath_var=yes
11027 ld_shlibs=yes
11028 fi
11029 ;;
11030
11031 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11032 no_undefined_flag='${wl}-z,text'
11033 archive_cmds_need_lc=no
11034 hardcode_shlibpath_var=no
11035 runpath_var='LD_RUN_PATH'
11036
11037 if test "$GCC" = yes; then
11038 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040 else
11041 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043 fi
11044 ;;
11045
11046 sysv5* | sco3.2v5* | sco5v6*)
11047 # Note: We can NOT use -z defs as we might desire, because we do not
11048 # link with -lc, and that would cause any symbols used from libc to
11049 # always be unresolved, which means just about no library would
11050 # ever link correctly. If we're not using GNU ld we use -z text
11051 # though, which does catch some bad symbols but isn't as heavy-handed
11052 # as -z defs.
11053 no_undefined_flag='${wl}-z,text'
11054 allow_undefined_flag='${wl}-z,nodefs'
11055 archive_cmds_need_lc=no
11056 hardcode_shlibpath_var=no
11057 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11058 hardcode_libdir_separator=':'
11059 link_all_deplibs=yes
11060 export_dynamic_flag_spec='${wl}-Bexport'
11061 runpath_var='LD_RUN_PATH'
11062
11063 if test "$GCC" = yes; then
11064 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11065 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11066 else
11067 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11068 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11069 fi
11070 ;;
11071
11072 uts4*)
11073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11074 hardcode_libdir_flag_spec='-L$libdir'
11075 hardcode_shlibpath_var=no
11076 ;;
11077
11078 *)
11079 ld_shlibs=no
11080 ;;
11081 esac
11082
11083 if test x$host_vendor = xsni; then
11084 case $host in
11085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11086 export_dynamic_flag_spec='${wl}-Blargedynsym'
11087 ;;
11088 esac
11089 fi
11090 fi
11091
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11093 $as_echo "$ld_shlibs" >&6; }
11094 test "$ld_shlibs" = no && can_build_shared=no
11095
11096 with_gnu_ld=$with_gnu_ld
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112 #
11113 # Do we need to explicitly link libc?
11114 #
11115 case "x$archive_cmds_need_lc" in
11116 x|xyes)
11117 # Assume -lc should be added
11118 archive_cmds_need_lc=yes
11119
11120 if test "$enable_shared" = yes && test "$GCC" = yes; then
11121 case $archive_cmds in
11122 *'~'*)
11123 # FIXME: we may have to deal with multi-command sequences.
11124 ;;
11125 '$CC '*)
11126 # Test whether the compiler implicitly links with -lc since on some
11127 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11128 # to ld, don't add -lc before -lgcc.
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11130 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11131 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 $RM conftest*
11135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11136
11137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11138 (eval $ac_compile) 2>&5
11139 ac_status=$?
11140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11141 test $ac_status = 0; } 2>conftest.err; then
11142 soname=conftest
11143 lib=conftest
11144 libobjs=conftest.$ac_objext
11145 deplibs=
11146 wl=$lt_prog_compiler_wl
11147 pic_flag=$lt_prog_compiler_pic
11148 compiler_flags=-v
11149 linker_flags=-v
11150 verstring=
11151 output_objdir=.
11152 libname=conftest
11153 lt_save_allow_undefined_flag=$allow_undefined_flag
11154 allow_undefined_flag=
11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11156 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11157 ac_status=$?
11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; }
11160 then
11161 lt_cv_archive_cmds_need_lc=no
11162 else
11163 lt_cv_archive_cmds_need_lc=yes
11164 fi
11165 allow_undefined_flag=$lt_save_allow_undefined_flag
11166 else
11167 cat conftest.err 1>&5
11168 fi
11169 $RM conftest*
11170
11171 fi
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11173 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11174 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11175 ;;
11176 esac
11177 fi
11178 ;;
11179 esac
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11338 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11339
11340 if test "$GCC" = yes; then
11341 case $host_os in
11342 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11343 *) lt_awk_arg="/^libraries:/" ;;
11344 esac
11345 case $host_os in
11346 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11347 *) lt_sed_strip_eq="s,=/,/,g" ;;
11348 esac
11349 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11350 case $lt_search_path_spec in
11351 *\;*)
11352 # if the path contains ";" then we assume it to be the separator
11353 # otherwise default to the standard path separator (i.e. ":") - it is
11354 # assumed that no part of a normal pathname contains ";" but that should
11355 # okay in the real world where ";" in dirpaths is itself problematic.
11356 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11357 ;;
11358 *)
11359 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11360 ;;
11361 esac
11362 # Ok, now we have the path, separated by spaces, we can step through it
11363 # and add multilib dir if necessary.
11364 lt_tmp_lt_search_path_spec=
11365 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11366 for lt_sys_path in $lt_search_path_spec; do
11367 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11368 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11369 else
11370 test -d "$lt_sys_path" && \
11371 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11372 fi
11373 done
11374 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11375 BEGIN {RS=" "; FS="/|\n";} {
11376 lt_foo="";
11377 lt_count=0;
11378 for (lt_i = NF; lt_i > 0; lt_i--) {
11379 if ($lt_i != "" && $lt_i != ".") {
11380 if ($lt_i == "..") {
11381 lt_count++;
11382 } else {
11383 if (lt_count == 0) {
11384 lt_foo="/" $lt_i lt_foo;
11385 } else {
11386 lt_count--;
11387 }
11388 }
11389 }
11390 }
11391 if (lt_foo != "") { lt_freq[lt_foo]++; }
11392 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11393 }'`
11394 # AWK program above erroneously prepends '/' to C:/dos/paths
11395 # for these hosts.
11396 case $host_os in
11397 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11398 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11399 esac
11400 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11401 else
11402 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11403 fi
11404 library_names_spec=
11405 libname_spec='lib$name'
11406 soname_spec=
11407 shrext_cmds=".so"
11408 postinstall_cmds=
11409 postuninstall_cmds=
11410 finish_cmds=
11411 finish_eval=
11412 shlibpath_var=
11413 shlibpath_overrides_runpath=unknown
11414 version_type=none
11415 dynamic_linker="$host_os ld.so"
11416 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11417 need_lib_prefix=unknown
11418 hardcode_into_libs=no
11419
11420 # when you set need_version to no, make sure it does not cause -set_version
11421 # flags to be left without arguments
11422 need_version=unknown
11423
11424 case $host_os in
11425 aix3*)
11426 version_type=linux
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11428 shlibpath_var=LIBPATH
11429
11430 # AIX 3 has no versioning support, so we append a major version to the name.
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 ;;
11433
11434 aix[4-9]*)
11435 version_type=linux
11436 need_lib_prefix=no
11437 need_version=no
11438 hardcode_into_libs=yes
11439 if test "$host_cpu" = ia64; then
11440 # AIX 5 supports IA64
11441 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 else
11444 # With GCC up to 2.95.x, collect2 would create an import file
11445 # for dependence libraries. The import file would start with
11446 # the line `#! .'. This would cause the generated library to
11447 # depend on `.', always an invalid library. This was fixed in
11448 # development snapshots of GCC prior to 3.0.
11449 case $host_os in
11450 aix4 | aix4.[01] | aix4.[01].*)
11451 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11452 echo ' yes '
11453 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11454 :
11455 else
11456 can_build_shared=no
11457 fi
11458 ;;
11459 esac
11460 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11461 # soname into executable. Probably we can add versioning support to
11462 # collect2, so additional links can be useful in future.
11463 if test "$aix_use_runtimelinking" = yes; then
11464 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11465 # instead of lib<name>.a to let people know that these are not
11466 # typical AIX shared libraries.
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 else
11469 # We preserve .a as extension for shared libraries through AIX4.2
11470 # and later when we are not doing run time linking.
11471 library_names_spec='${libname}${release}.a $libname.a'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 fi
11474 shlibpath_var=LIBPATH
11475 fi
11476 ;;
11477
11478 amigaos*)
11479 case $host_cpu in
11480 powerpc)
11481 # Since July 2007 AmigaOS4 officially supports .so libraries.
11482 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484 ;;
11485 m68k)
11486 library_names_spec='$libname.ixlibrary $libname.a'
11487 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11488 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'
11489 ;;
11490 esac
11491 ;;
11492
11493 beos*)
11494 library_names_spec='${libname}${shared_ext}'
11495 dynamic_linker="$host_os ld.so"
11496 shlibpath_var=LIBRARY_PATH
11497 ;;
11498
11499 bsdi[45]*)
11500 version_type=linux
11501 need_version=no
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503 soname_spec='${libname}${release}${shared_ext}$major'
11504 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11505 shlibpath_var=LD_LIBRARY_PATH
11506 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11507 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11508 # the default ld.so.conf also contains /usr/contrib/lib and
11509 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11510 # libtool to hard-code these into programs
11511 ;;
11512
11513 cygwin* | mingw* | pw32* | cegcc*)
11514 version_type=windows
11515 shrext_cmds=".dll"
11516 need_version=no
11517 need_lib_prefix=no
11518
11519 case $GCC,$host_os in
11520 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11521 library_names_spec='$libname.dll.a'
11522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11523 postinstall_cmds='base_file=`basename \${file}`~
11524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11525 dldir=$destdir/`dirname \$dlpath`~
11526 test -d \$dldir || mkdir -p \$dldir~
11527 $install_prog $dir/$dlname \$dldir/$dlname~
11528 chmod a+x \$dldir/$dlname~
11529 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11530 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11531 fi'
11532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11533 dlpath=$dir/\$dldll~
11534 $RM \$dlpath'
11535 shlibpath_overrides_runpath=yes
11536
11537 case $host_os in
11538 cygwin*)
11539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11541
11542 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11543 ;;
11544 mingw* | cegcc*)
11545 # MinGW DLLs use traditional 'lib' prefix
11546 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11547 ;;
11548 pw32*)
11549 # pw32 DLLs use 'pw' prefix rather than 'lib'
11550 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11551 ;;
11552 esac
11553 ;;
11554
11555 *)
11556 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11557 ;;
11558 esac
11559 dynamic_linker='Win32 ld.exe'
11560 # FIXME: first we should search . and the directory the executable is in
11561 shlibpath_var=PATH
11562 ;;
11563
11564 darwin* | rhapsody*)
11565 dynamic_linker="$host_os dyld"
11566 version_type=darwin
11567 need_lib_prefix=no
11568 need_version=no
11569 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11570 soname_spec='${libname}${release}${major}$shared_ext'
11571 shlibpath_overrides_runpath=yes
11572 shlibpath_var=DYLD_LIBRARY_PATH
11573 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11574
11575 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11576 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11577 ;;
11578
11579 dgux*)
11580 version_type=linux
11581 need_lib_prefix=no
11582 need_version=no
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 ;;
11587
11588 freebsd* | dragonfly*)
11589 # DragonFly does not have aout. When/if they implement a new
11590 # versioning mechanism, adjust this.
11591 if test -x /usr/bin/objformat; then
11592 objformat=`/usr/bin/objformat`
11593 else
11594 case $host_os in
11595 freebsd[23].*) objformat=aout ;;
11596 *) objformat=elf ;;
11597 esac
11598 fi
11599 version_type=freebsd-$objformat
11600 case $version_type in
11601 freebsd-elf*)
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11603 need_version=no
11604 need_lib_prefix=no
11605 ;;
11606 freebsd-*)
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11608 need_version=yes
11609 ;;
11610 esac
11611 shlibpath_var=LD_LIBRARY_PATH
11612 case $host_os in
11613 freebsd2.*)
11614 shlibpath_overrides_runpath=yes
11615 ;;
11616 freebsd3.[01]* | freebsdelf3.[01]*)
11617 shlibpath_overrides_runpath=yes
11618 hardcode_into_libs=yes
11619 ;;
11620 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11621 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11622 shlibpath_overrides_runpath=no
11623 hardcode_into_libs=yes
11624 ;;
11625 *) # from 4.6 on, and DragonFly
11626 shlibpath_overrides_runpath=yes
11627 hardcode_into_libs=yes
11628 ;;
11629 esac
11630 ;;
11631
11632 haiku*)
11633 version_type=linux
11634 need_lib_prefix=no
11635 need_version=no
11636 dynamic_linker="$host_os runtime_loader"
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 shlibpath_var=LIBRARY_PATH
11640 shlibpath_overrides_runpath=yes
11641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11642 hardcode_into_libs=yes
11643 ;;
11644
11645 hpux9* | hpux10* | hpux11*)
11646 # Give a soname corresponding to the major version so that dld.sl refuses to
11647 # link against other versions.
11648 version_type=sunos
11649 need_lib_prefix=no
11650 need_version=no
11651 case $host_cpu in
11652 ia64*)
11653 shrext_cmds='.so'
11654 hardcode_into_libs=yes
11655 dynamic_linker="$host_os dld.so"
11656 shlibpath_var=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11660 if test "X$HPUX_IA64_MODE" = X32; then
11661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11662 else
11663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11664 fi
11665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11666 ;;
11667 hppa*64*)
11668 shrext_cmds='.sl'
11669 hardcode_into_libs=yes
11670 dynamic_linker="$host_os dld.sl"
11671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11677 ;;
11678 *)
11679 shrext_cmds='.sl'
11680 dynamic_linker="$host_os dld.sl"
11681 shlibpath_var=SHLIB_PATH
11682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 ;;
11686 esac
11687 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11688 postinstall_cmds='chmod 555 $lib'
11689 # or fails outright, so override atomically:
11690 install_override_mode=555
11691 ;;
11692
11693 interix[3-9]*)
11694 version_type=linux
11695 need_lib_prefix=no
11696 need_version=no
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11698 soname_spec='${libname}${release}${shared_ext}$major'
11699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11700 shlibpath_var=LD_LIBRARY_PATH
11701 shlibpath_overrides_runpath=no
11702 hardcode_into_libs=yes
11703 ;;
11704
11705 irix5* | irix6* | nonstopux*)
11706 case $host_os in
11707 nonstopux*) version_type=nonstopux ;;
11708 *)
11709 if test "$lt_cv_prog_gnu_ld" = yes; then
11710 version_type=linux
11711 else
11712 version_type=irix
11713 fi ;;
11714 esac
11715 need_lib_prefix=no
11716 need_version=no
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11719 case $host_os in
11720 irix5* | nonstopux*)
11721 libsuff= shlibsuff=
11722 ;;
11723 *)
11724 case $LD in # libtool.m4 will add one of these switches to LD
11725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11726 libsuff= shlibsuff= libmagic=32-bit;;
11727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11728 libsuff=32 shlibsuff=N32 libmagic=N32;;
11729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11731 *) libsuff= shlibsuff= libmagic=never-match;;
11732 esac
11733 ;;
11734 esac
11735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11736 shlibpath_overrides_runpath=no
11737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11739 hardcode_into_libs=yes
11740 ;;
11741
11742 # No shared lib support for Linux oldld, aout, or coff.
11743 linux*oldld* | linux*aout* | linux*coff*)
11744 dynamic_linker=no
11745 ;;
11746
11747 # This must be Linux ELF.
11748 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11749 version_type=linux
11750 need_lib_prefix=no
11751 need_version=no
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753 soname_spec='${libname}${release}${shared_ext}$major'
11754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 shlibpath_overrides_runpath=no
11757
11758 # Some binutils ld are patched to set DT_RUNPATH
11759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 lt_cv_shlibpath_overrides_runpath=no
11763 save_LDFLAGS=$LDFLAGS
11764 save_libdir=$libdir
11765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11769
11770 int
11771 main ()
11772 {
11773
11774 ;
11775 return 0;
11776 }
11777 _ACEOF
11778 if ac_fn_c_try_link "$LINENO"; then :
11779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11780 lt_cv_shlibpath_overrides_runpath=yes
11781 fi
11782 fi
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 LDFLAGS=$save_LDFLAGS
11786 libdir=$save_libdir
11787
11788 fi
11789
11790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11791
11792 # This implies no fast_install, which is unacceptable.
11793 # Some rework will be needed to allow for fast_install
11794 # before this can be enabled.
11795 hardcode_into_libs=yes
11796
11797 # Append ld.so.conf contents to the search path
11798 if test -f /etc/ld.so.conf; then
11799 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' ' '`
11800 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11801 fi
11802
11803 # We used to test for /lib/ld.so.1 and disable shared libraries on
11804 # powerpc, because MkLinux only supported shared libraries with the
11805 # GNU dynamic linker. Since this was broken with cross compilers,
11806 # most powerpc-linux boxes support dynamic linking these days and
11807 # people can always --disable-shared, the test was removed, and we
11808 # assume the GNU/Linux dynamic linker is in use.
11809 dynamic_linker='GNU/Linux ld.so'
11810 ;;
11811
11812 netbsd*)
11813 version_type=sunos
11814 need_lib_prefix=no
11815 need_version=no
11816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11819 dynamic_linker='NetBSD (a.out) ld.so'
11820 else
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 dynamic_linker='NetBSD ld.elf_so'
11824 fi
11825 shlibpath_var=LD_LIBRARY_PATH
11826 shlibpath_overrides_runpath=yes
11827 hardcode_into_libs=yes
11828 ;;
11829
11830 newsos6)
11831 version_type=linux
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 shlibpath_overrides_runpath=yes
11835 ;;
11836
11837 *nto* | *qnx*)
11838 version_type=qnx
11839 need_lib_prefix=no
11840 need_version=no
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842 soname_spec='${libname}${release}${shared_ext}$major'
11843 shlibpath_var=LD_LIBRARY_PATH
11844 shlibpath_overrides_runpath=no
11845 hardcode_into_libs=yes
11846 dynamic_linker='ldqnx.so'
11847 ;;
11848
11849 openbsd*)
11850 version_type=sunos
11851 sys_lib_dlsearch_path_spec="/usr/lib"
11852 need_lib_prefix=no
11853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11854 case $host_os in
11855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11856 *) need_version=no ;;
11857 esac
11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11860 shlibpath_var=LD_LIBRARY_PATH
11861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11862 case $host_os in
11863 openbsd2.[89] | openbsd2.[89].*)
11864 shlibpath_overrides_runpath=no
11865 ;;
11866 *)
11867 shlibpath_overrides_runpath=yes
11868 ;;
11869 esac
11870 else
11871 shlibpath_overrides_runpath=yes
11872 fi
11873 ;;
11874
11875 os2*)
11876 libname_spec='$name'
11877 shrext_cmds=".dll"
11878 need_lib_prefix=no
11879 library_names_spec='$libname${shared_ext} $libname.a'
11880 dynamic_linker='OS/2 ld.exe'
11881 shlibpath_var=LIBPATH
11882 ;;
11883
11884 osf3* | osf4* | osf5*)
11885 version_type=osf
11886 need_lib_prefix=no
11887 need_version=no
11888 soname_spec='${libname}${release}${shared_ext}$major'
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11893 ;;
11894
11895 rdos*)
11896 dynamic_linker=no
11897 ;;
11898
11899 solaris*)
11900 version_type=linux
11901 need_lib_prefix=no
11902 need_version=no
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=yes
11907 hardcode_into_libs=yes
11908 # ldd complains unless libraries are executable
11909 postinstall_cmds='chmod +x $lib'
11910 ;;
11911
11912 sunos4*)
11913 version_type=sunos
11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11916 shlibpath_var=LD_LIBRARY_PATH
11917 shlibpath_overrides_runpath=yes
11918 if test "$with_gnu_ld" = yes; then
11919 need_lib_prefix=no
11920 fi
11921 need_version=yes
11922 ;;
11923
11924 sysv4 | sysv4.3*)
11925 version_type=linux
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 case $host_vendor in
11930 sni)
11931 shlibpath_overrides_runpath=no
11932 need_lib_prefix=no
11933 runpath_var=LD_RUN_PATH
11934 ;;
11935 siemens)
11936 need_lib_prefix=no
11937 ;;
11938 motorola)
11939 need_lib_prefix=no
11940 need_version=no
11941 shlibpath_overrides_runpath=no
11942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11943 ;;
11944 esac
11945 ;;
11946
11947 sysv4*MP*)
11948 if test -d /usr/nec ;then
11949 version_type=linux
11950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11951 soname_spec='$libname${shared_ext}.$major'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 fi
11954 ;;
11955
11956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11957 version_type=freebsd-elf
11958 need_lib_prefix=no
11959 need_version=no
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11961 soname_spec='${libname}${release}${shared_ext}$major'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=yes
11964 hardcode_into_libs=yes
11965 if test "$with_gnu_ld" = yes; then
11966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11967 else
11968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11969 case $host_os in
11970 sco3.2v5*)
11971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11972 ;;
11973 esac
11974 fi
11975 sys_lib_dlsearch_path_spec='/usr/lib'
11976 ;;
11977
11978 tpf*)
11979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11980 version_type=linux
11981 need_lib_prefix=no
11982 need_version=no
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11984 shlibpath_var=LD_LIBRARY_PATH
11985 shlibpath_overrides_runpath=no
11986 hardcode_into_libs=yes
11987 ;;
11988
11989 uts4*)
11990 version_type=linux
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 shlibpath_var=LD_LIBRARY_PATH
11994 ;;
11995
11996 *)
11997 dynamic_linker=no
11998 ;;
11999 esac
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12001 $as_echo "$dynamic_linker" >&6; }
12002 test "$dynamic_linker" = no && can_build_shared=no
12003
12004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12005 if test "$GCC" = yes; then
12006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12007 fi
12008
12009 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12011 fi
12012 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12014 fi
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12109 hardcode_action=
12110 if test -n "$hardcode_libdir_flag_spec" ||
12111 test -n "$runpath_var" ||
12112 test "X$hardcode_automatic" = "Xyes" ; then
12113
12114 # We can hardcode non-existent directories.
12115 if test "$hardcode_direct" != no &&
12116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12117 # have to relink, otherwise we might link with an installed library
12118 # when we should be linking with a yet-to-be-installed one
12119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12120 test "$hardcode_minus_L" != no; then
12121 # Linking always hardcodes the temporary library directory.
12122 hardcode_action=relink
12123 else
12124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12125 hardcode_action=immediate
12126 fi
12127 else
12128 # We cannot hardcode anything, or else we can only hardcode existing
12129 # directories.
12130 hardcode_action=unsupported
12131 fi
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12133 $as_echo "$hardcode_action" >&6; }
12134
12135 if test "$hardcode_action" = relink ||
12136 test "$inherit_rpath" = yes; then
12137 # Fast installation is not supported
12138 enable_fast_install=no
12139 elif test "$shlibpath_overrides_runpath" = yes ||
12140 test "$enable_shared" = no; then
12141 # Fast installation is not necessary
12142 enable_fast_install=needless
12143 fi
12144
12145
12146
12147
12148
12149
12150 if test "x$enable_dlopen" != xyes; then
12151 enable_dlopen=unknown
12152 enable_dlopen_self=unknown
12153 enable_dlopen_self_static=unknown
12154 else
12155 lt_cv_dlopen=no
12156 lt_cv_dlopen_libs=
12157
12158 case $host_os in
12159 beos*)
12160 lt_cv_dlopen="load_add_on"
12161 lt_cv_dlopen_libs=
12162 lt_cv_dlopen_self=yes
12163 ;;
12164
12165 mingw* | pw32* | cegcc*)
12166 lt_cv_dlopen="LoadLibrary"
12167 lt_cv_dlopen_libs=
12168 ;;
12169
12170 cygwin*)
12171 lt_cv_dlopen="dlopen"
12172 lt_cv_dlopen_libs=
12173 ;;
12174
12175 darwin*)
12176 # if libdl is installed we need to link against it
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12179 if ${ac_cv_lib_dl_dlopen+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-ldl $LIBS"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12186
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char dlopen ();
12194 int
12195 main ()
12196 {
12197 return dlopen ();
12198 ;
12199 return 0;
12200 }
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 ac_cv_lib_dl_dlopen=yes
12204 else
12205 ac_cv_lib_dl_dlopen=no
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12213 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12215 else
12216
12217 lt_cv_dlopen="dyld"
12218 lt_cv_dlopen_libs=
12219 lt_cv_dlopen_self=yes
12220
12221 fi
12222
12223 ;;
12224
12225 *)
12226 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12227 if test "x$ac_cv_func_shl_load" = xyes; then :
12228 lt_cv_dlopen="shl_load"
12229 else
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12231 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12232 if ${ac_cv_lib_dld_shl_load+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-ldld $LIBS"
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char shl_load ();
12247 int
12248 main ()
12249 {
12250 return shl_load ();
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_lib_dld_shl_load=yes
12257 else
12258 ac_cv_lib_dld_shl_load=no
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12266 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12268 else
12269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12270 if test "x$ac_cv_func_dlopen" = xyes; then :
12271 lt_cv_dlopen="dlopen"
12272 else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12275 if ${ac_cv_lib_dl_dlopen+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 ac_check_lib_save_LIBS=$LIBS
12279 LIBS="-ldl $LIBS"
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12282
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 char dlopen ();
12290 int
12291 main ()
12292 {
12293 return dlopen ();
12294 ;
12295 return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_link "$LINENO"; then :
12299 ac_cv_lib_dl_dlopen=yes
12300 else
12301 ac_cv_lib_dl_dlopen=no
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12309 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12313 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12314 if ${ac_cv_lib_svld_dlopen+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-lsvld $LIBS"
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321
12322 /* Override any GCC internal prototype to avoid an error.
12323 Use char because int might match the return type of a GCC
12324 builtin and then its argument prototype would still apply. */
12325 #ifdef __cplusplus
12326 extern "C"
12327 #endif
12328 char dlopen ();
12329 int
12330 main ()
12331 {
12332 return dlopen ();
12333 ;
12334 return 0;
12335 }
12336 _ACEOF
12337 if ac_fn_c_try_link "$LINENO"; then :
12338 ac_cv_lib_svld_dlopen=yes
12339 else
12340 ac_cv_lib_svld_dlopen=no
12341 fi
12342 rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 LIBS=$ac_check_lib_save_LIBS
12345 fi
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12347 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12348 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12352 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12353 if ${ac_cv_lib_dld_dld_link+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 ac_check_lib_save_LIBS=$LIBS
12357 LIBS="-ldld $LIBS"
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12360
12361 /* Override any GCC internal prototype to avoid an error.
12362 Use char because int might match the return type of a GCC
12363 builtin and then its argument prototype would still apply. */
12364 #ifdef __cplusplus
12365 extern "C"
12366 #endif
12367 char dld_link ();
12368 int
12369 main ()
12370 {
12371 return dld_link ();
12372 ;
12373 return 0;
12374 }
12375 _ACEOF
12376 if ac_fn_c_try_link "$LINENO"; then :
12377 ac_cv_lib_dld_dld_link=yes
12378 else
12379 ac_cv_lib_dld_dld_link=no
12380 fi
12381 rm -f core conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12386 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12387 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12389 fi
12390
12391
12392 fi
12393
12394
12395 fi
12396
12397
12398 fi
12399
12400
12401 fi
12402
12403
12404 fi
12405
12406 ;;
12407 esac
12408
12409 if test "x$lt_cv_dlopen" != xno; then
12410 enable_dlopen=yes
12411 else
12412 enable_dlopen=no
12413 fi
12414
12415 case $lt_cv_dlopen in
12416 dlopen)
12417 save_CPPFLAGS="$CPPFLAGS"
12418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12419
12420 save_LDFLAGS="$LDFLAGS"
12421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12422
12423 save_LIBS="$LIBS"
12424 LIBS="$lt_cv_dlopen_libs $LIBS"
12425
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12427 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12428 if ${lt_cv_dlopen_self+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 if test "$cross_compiling" = yes; then :
12432 lt_cv_dlopen_self=cross
12433 else
12434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12435 lt_status=$lt_dlunknown
12436 cat > conftest.$ac_ext <<_LT_EOF
12437 #line 12437 "configure"
12438 #include "confdefs.h"
12439
12440 #if HAVE_DLFCN_H
12441 #include <dlfcn.h>
12442 #endif
12443
12444 #include <stdio.h>
12445
12446 #ifdef RTLD_GLOBAL
12447 # define LT_DLGLOBAL RTLD_GLOBAL
12448 #else
12449 # ifdef DL_GLOBAL
12450 # define LT_DLGLOBAL DL_GLOBAL
12451 # else
12452 # define LT_DLGLOBAL 0
12453 # endif
12454 #endif
12455
12456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12457 find out it does not work in some platform. */
12458 #ifndef LT_DLLAZY_OR_NOW
12459 # ifdef RTLD_LAZY
12460 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12461 # else
12462 # ifdef DL_LAZY
12463 # define LT_DLLAZY_OR_NOW DL_LAZY
12464 # else
12465 # ifdef RTLD_NOW
12466 # define LT_DLLAZY_OR_NOW RTLD_NOW
12467 # else
12468 # ifdef DL_NOW
12469 # define LT_DLLAZY_OR_NOW DL_NOW
12470 # else
12471 # define LT_DLLAZY_OR_NOW 0
12472 # endif
12473 # endif
12474 # endif
12475 # endif
12476 #endif
12477
12478 /* When -fvisbility=hidden is used, assume the code has been annotated
12479 correspondingly for the symbols needed. */
12480 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12481 void fnord () __attribute__((visibility("default")));
12482 #endif
12483
12484 void fnord () { int i=42; }
12485 int main ()
12486 {
12487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12488 int status = $lt_dlunknown;
12489
12490 if (self)
12491 {
12492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12493 else
12494 {
12495 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12496 else puts (dlerror ());
12497 }
12498 /* dlclose (self); */
12499 }
12500 else
12501 puts (dlerror ());
12502
12503 return status;
12504 }
12505 _LT_EOF
12506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12507 (eval $ac_link) 2>&5
12508 ac_status=$?
12509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12510 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12511 (./conftest; exit; ) >&5 2>/dev/null
12512 lt_status=$?
12513 case x$lt_status in
12514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12517 esac
12518 else :
12519 # compilation failed
12520 lt_cv_dlopen_self=no
12521 fi
12522 fi
12523 rm -fr conftest*
12524
12525
12526 fi
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12528 $as_echo "$lt_cv_dlopen_self" >&6; }
12529
12530 if test "x$lt_cv_dlopen_self" = xyes; then
12531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12533 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12534 if ${lt_cv_dlopen_self_static+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 if test "$cross_compiling" = yes; then :
12538 lt_cv_dlopen_self_static=cross
12539 else
12540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12541 lt_status=$lt_dlunknown
12542 cat > conftest.$ac_ext <<_LT_EOF
12543 #line 12543 "configure"
12544 #include "confdefs.h"
12545
12546 #if HAVE_DLFCN_H
12547 #include <dlfcn.h>
12548 #endif
12549
12550 #include <stdio.h>
12551
12552 #ifdef RTLD_GLOBAL
12553 # define LT_DLGLOBAL RTLD_GLOBAL
12554 #else
12555 # ifdef DL_GLOBAL
12556 # define LT_DLGLOBAL DL_GLOBAL
12557 # else
12558 # define LT_DLGLOBAL 0
12559 # endif
12560 #endif
12561
12562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12563 find out it does not work in some platform. */
12564 #ifndef LT_DLLAZY_OR_NOW
12565 # ifdef RTLD_LAZY
12566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12567 # else
12568 # ifdef DL_LAZY
12569 # define LT_DLLAZY_OR_NOW DL_LAZY
12570 # else
12571 # ifdef RTLD_NOW
12572 # define LT_DLLAZY_OR_NOW RTLD_NOW
12573 # else
12574 # ifdef DL_NOW
12575 # define LT_DLLAZY_OR_NOW DL_NOW
12576 # else
12577 # define LT_DLLAZY_OR_NOW 0
12578 # endif
12579 # endif
12580 # endif
12581 # endif
12582 #endif
12583
12584 /* When -fvisbility=hidden is used, assume the code has been annotated
12585 correspondingly for the symbols needed. */
12586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12587 void fnord () __attribute__((visibility("default")));
12588 #endif
12589
12590 void fnord () { int i=42; }
12591 int main ()
12592 {
12593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12594 int status = $lt_dlunknown;
12595
12596 if (self)
12597 {
12598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12599 else
12600 {
12601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12602 else puts (dlerror ());
12603 }
12604 /* dlclose (self); */
12605 }
12606 else
12607 puts (dlerror ());
12608
12609 return status;
12610 }
12611 _LT_EOF
12612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12613 (eval $ac_link) 2>&5
12614 ac_status=$?
12615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12617 (./conftest; exit; ) >&5 2>/dev/null
12618 lt_status=$?
12619 case x$lt_status in
12620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12622 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12623 esac
12624 else :
12625 # compilation failed
12626 lt_cv_dlopen_self_static=no
12627 fi
12628 fi
12629 rm -fr conftest*
12630
12631
12632 fi
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12634 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12635 fi
12636
12637 CPPFLAGS="$save_CPPFLAGS"
12638 LDFLAGS="$save_LDFLAGS"
12639 LIBS="$save_LIBS"
12640 ;;
12641 esac
12642
12643 case $lt_cv_dlopen_self in
12644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12645 *) enable_dlopen_self=unknown ;;
12646 esac
12647
12648 case $lt_cv_dlopen_self_static in
12649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12650 *) enable_dlopen_self_static=unknown ;;
12651 esac
12652 fi
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670 striplib=
12671 old_striplib=
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12673 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12674 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12675 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12676 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12678 $as_echo "yes" >&6; }
12679 else
12680 # FIXME - insert some real tests, host_os isn't really good enough
12681 case $host_os in
12682 darwin*)
12683 if test -n "$STRIP" ; then
12684 striplib="$STRIP -x"
12685 old_striplib="$STRIP -S"
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12687 $as_echo "yes" >&6; }
12688 else
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690 $as_echo "no" >&6; }
12691 fi
12692 ;;
12693 *)
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12696 ;;
12697 esac
12698 fi
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711 # Report which library types will actually be built
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12713 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12715 $as_echo "$can_build_shared" >&6; }
12716
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12718 $as_echo_n "checking whether to build shared libraries... " >&6; }
12719 test "$can_build_shared" = "no" && enable_shared=no
12720
12721 # On AIX, shared libraries and static libraries use the same namespace, and
12722 # are all built from PIC.
12723 case $host_os in
12724 aix3*)
12725 test "$enable_shared" = yes && enable_static=no
12726 if test -n "$RANLIB"; then
12727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12728 postinstall_cmds='$RANLIB $lib'
12729 fi
12730 ;;
12731
12732 aix[4-9]*)
12733 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12734 test "$enable_shared" = yes && enable_static=no
12735 fi
12736 ;;
12737 esac
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12739 $as_echo "$enable_shared" >&6; }
12740
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12742 $as_echo_n "checking whether to build static libraries... " >&6; }
12743 # Make sure either enable_shared or enable_static is yes.
12744 test "$enable_shared" = yes || enable_static=yes
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12746 $as_echo "$enable_static" >&6; }
12747
12748
12749
12750
12751 fi
12752 ac_ext=c
12753 ac_cpp='$CPP $CPPFLAGS'
12754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12757
12758 CC="$lt_save_CC"
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772 ac_config_commands="$ac_config_commands libtool"
12773
12774
12775
12776
12777 # Only expand once:
12778
12779
12780
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12782 $as_echo_n "checking for library containing bind... " >&6; }
12783 if ${ac_cv_search_bind+:} false; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 ac_func_search_save_LIBS=$LIBS
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12789
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 char bind ();
12797 int
12798 main ()
12799 {
12800 return bind ();
12801 ;
12802 return 0;
12803 }
12804 _ACEOF
12805 for ac_lib in '' socket; do
12806 if test -z "$ac_lib"; then
12807 ac_res="none required"
12808 else
12809 ac_res=-l$ac_lib
12810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12811 fi
12812 if ac_fn_c_try_link "$LINENO"; then :
12813 ac_cv_search_bind=$ac_res
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext
12817 if ${ac_cv_search_bind+:} false; then :
12818 break
12819 fi
12820 done
12821 if ${ac_cv_search_bind+:} false; then :
12822
12823 else
12824 ac_cv_search_bind=no
12825 fi
12826 rm conftest.$ac_ext
12827 LIBS=$ac_func_search_save_LIBS
12828 fi
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
12830 $as_echo "$ac_cv_search_bind" >&6; }
12831 ac_res=$ac_cv_search_bind
12832 if test "$ac_res" != no; then :
12833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12834
12835 fi
12836
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12838 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12839 if ${ac_cv_search_gethostbyname+:} false; then :
12840 $as_echo_n "(cached) " >&6
12841 else
12842 ac_func_search_save_LIBS=$LIBS
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 char gethostbyname ();
12853 int
12854 main ()
12855 {
12856 return gethostbyname ();
12857 ;
12858 return 0;
12859 }
12860 _ACEOF
12861 for ac_lib in '' nsl; do
12862 if test -z "$ac_lib"; then
12863 ac_res="none required"
12864 else
12865 ac_res=-l$ac_lib
12866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12867 fi
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 ac_cv_search_gethostbyname=$ac_res
12870 fi
12871 rm -f core conftest.err conftest.$ac_objext \
12872 conftest$ac_exeext
12873 if ${ac_cv_search_gethostbyname+:} false; then :
12874 break
12875 fi
12876 done
12877 if ${ac_cv_search_gethostbyname+:} false; then :
12878
12879 else
12880 ac_cv_search_gethostbyname=no
12881 fi
12882 rm conftest.$ac_ext
12883 LIBS=$ac_func_search_save_LIBS
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12886 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12887 ac_res=$ac_cv_search_gethostbyname
12888 if test "$ac_res" != no; then :
12889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12890
12891 fi
12892
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12894 $as_echo_n "checking for library containing fabs... " >&6; }
12895 if ${ac_cv_search_fabs+:} false; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 ac_func_search_save_LIBS=$LIBS
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12901
12902 /* Override any GCC internal prototype to avoid an error.
12903 Use char because int might match the return type of a GCC
12904 builtin and then its argument prototype would still apply. */
12905 #ifdef __cplusplus
12906 extern "C"
12907 #endif
12908 char fabs ();
12909 int
12910 main ()
12911 {
12912 return fabs ();
12913 ;
12914 return 0;
12915 }
12916 _ACEOF
12917 for ac_lib in '' m; do
12918 if test -z "$ac_lib"; then
12919 ac_res="none required"
12920 else
12921 ac_res=-l$ac_lib
12922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12923 fi
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 ac_cv_search_fabs=$ac_res
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext
12929 if ${ac_cv_search_fabs+:} false; then :
12930 break
12931 fi
12932 done
12933 if ${ac_cv_search_fabs+:} false; then :
12934
12935 else
12936 ac_cv_search_fabs=no
12937 fi
12938 rm conftest.$ac_ext
12939 LIBS=$ac_func_search_save_LIBS
12940 fi
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12942 $as_echo "$ac_cv_search_fabs" >&6; }
12943 ac_res=$ac_cv_search_fabs
12944 if test "$ac_res" != no; then :
12945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12946
12947 fi
12948
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
12950 $as_echo_n "checking for library containing log2... " >&6; }
12951 if ${ac_cv_search_log2+:} false; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954 ac_func_search_save_LIBS=$LIBS
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char log2 ();
12965 int
12966 main ()
12967 {
12968 return log2 ();
12969 ;
12970 return 0;
12971 }
12972 _ACEOF
12973 for ac_lib in '' m; do
12974 if test -z "$ac_lib"; then
12975 ac_res="none required"
12976 else
12977 ac_res=-l$ac_lib
12978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12979 fi
12980 if ac_fn_c_try_link "$LINENO"; then :
12981 ac_cv_search_log2=$ac_res
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext
12985 if ${ac_cv_search_log2+:} false; then :
12986 break
12987 fi
12988 done
12989 if ${ac_cv_search_log2+:} false; then :
12990
12991 else
12992 ac_cv_search_log2=no
12993 fi
12994 rm conftest.$ac_ext
12995 LIBS=$ac_func_search_save_LIBS
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
12998 $as_echo "$ac_cv_search_log2" >&6; }
12999 ac_res=$ac_cv_search_log2
13000 if test "$ac_res" != no; then :
13001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13002
13003 fi
13004
13005
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13007 $as_echo_n "checking for library containing dlopen... " >&6; }
13008 if ${ac_cv_search_dlopen+:} false; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 ac_func_search_save_LIBS=$LIBS
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014
13015 /* Override any GCC internal prototype to avoid an error.
13016 Use char because int might match the return type of a GCC
13017 builtin and then its argument prototype would still apply. */
13018 #ifdef __cplusplus
13019 extern "C"
13020 #endif
13021 char dlopen ();
13022 int
13023 main ()
13024 {
13025 return dlopen ();
13026 ;
13027 return 0;
13028 }
13029 _ACEOF
13030 for ac_lib in '' dl; do
13031 if test -z "$ac_lib"; then
13032 ac_res="none required"
13033 else
13034 ac_res=-l$ac_lib
13035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13036 fi
13037 if ac_fn_c_try_link "$LINENO"; then :
13038 ac_cv_search_dlopen=$ac_res
13039 fi
13040 rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext
13042 if ${ac_cv_search_dlopen+:} false; then :
13043 break
13044 fi
13045 done
13046 if ${ac_cv_search_dlopen+:} false; then :
13047
13048 else
13049 ac_cv_search_dlopen=no
13050 fi
13051 rm conftest.$ac_ext
13052 LIBS=$ac_func_search_save_LIBS
13053 fi
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13055 $as_echo "$ac_cv_search_dlopen" >&6; }
13056 ac_res=$ac_cv_search_dlopen
13057 if test "$ac_res" != no; then :
13058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13059
13060 fi
13061
13062 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13063
13064 pkg_failed=no
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13066 $as_echo_n "checking for sdl2... " >&6; }
13067
13068 if test -n "$SDL_CFLAGS"; then
13069 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13070 elif test -n "$PKG_CONFIG"; then
13071 if test -n "$PKG_CONFIG" && \
13072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13073 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13074 ac_status=$?
13075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076 test $ac_status = 0; }; then
13077 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13078 test "x$?" != "x0" && pkg_failed=yes
13079 else
13080 pkg_failed=yes
13081 fi
13082 else
13083 pkg_failed=untried
13084 fi
13085 if test -n "$SDL_LIBS"; then
13086 pkg_cv_SDL_LIBS="$SDL_LIBS"
13087 elif test -n "$PKG_CONFIG"; then
13088 if test -n "$PKG_CONFIG" && \
13089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13090 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13091 ac_status=$?
13092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13093 test $ac_status = 0; }; then
13094 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13095 test "x$?" != "x0" && pkg_failed=yes
13096 else
13097 pkg_failed=yes
13098 fi
13099 else
13100 pkg_failed=untried
13101 fi
13102
13103 if test $pkg_failed = no; then
13104 pkg_save_LDFLAGS="$LDFLAGS"
13105 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108
13109 int
13110 main ()
13111 {
13112
13113 ;
13114 return 0;
13115 }
13116 _ACEOF
13117 if ac_fn_c_try_link "$LINENO"; then :
13118
13119 else
13120 pkg_failed=yes
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LDFLAGS=$pkg_save_LDFLAGS
13125 fi
13126
13127
13128
13129 if test $pkg_failed = yes; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132
13133 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13134 _pkg_short_errors_supported=yes
13135 else
13136 _pkg_short_errors_supported=no
13137 fi
13138 if test $_pkg_short_errors_supported = yes; then
13139 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13140 else
13141 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13142 fi
13143 # Put the nasty error message in config.log where it belongs
13144 echo "$SDL_PKG_ERRORS" >&5
13145
13146
13147
13148 pkg_failed=no
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13150 $as_echo_n "checking for sdl... " >&6; }
13151
13152 if test -n "$SDL_CFLAGS"; then
13153 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13154 elif test -n "$PKG_CONFIG"; then
13155 if test -n "$PKG_CONFIG" && \
13156 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13157 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13158 ac_status=$?
13159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13160 test $ac_status = 0; }; then
13161 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13162 test "x$?" != "x0" && pkg_failed=yes
13163 else
13164 pkg_failed=yes
13165 fi
13166 else
13167 pkg_failed=untried
13168 fi
13169 if test -n "$SDL_LIBS"; then
13170 pkg_cv_SDL_LIBS="$SDL_LIBS"
13171 elif test -n "$PKG_CONFIG"; then
13172 if test -n "$PKG_CONFIG" && \
13173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13174 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13175 ac_status=$?
13176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13177 test $ac_status = 0; }; then
13178 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13179 test "x$?" != "x0" && pkg_failed=yes
13180 else
13181 pkg_failed=yes
13182 fi
13183 else
13184 pkg_failed=untried
13185 fi
13186
13187 if test $pkg_failed = no; then
13188 pkg_save_LDFLAGS="$LDFLAGS"
13189 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13192
13193 int
13194 main ()
13195 {
13196
13197 ;
13198 return 0;
13199 }
13200 _ACEOF
13201 if ac_fn_c_try_link "$LINENO"; then :
13202
13203 else
13204 pkg_failed=yes
13205 fi
13206 rm -f core conftest.err conftest.$ac_objext \
13207 conftest$ac_exeext conftest.$ac_ext
13208 LDFLAGS=$pkg_save_LDFLAGS
13209 fi
13210
13211
13212
13213 if test $pkg_failed = yes; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13216
13217 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13218 _pkg_short_errors_supported=yes
13219 else
13220 _pkg_short_errors_supported=no
13221 fi
13222 if test $_pkg_short_errors_supported = yes; then
13223 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13224 else
13225 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13226 fi
13227 # Put the nasty error message in config.log where it belongs
13228 echo "$SDL_PKG_ERRORS" >&5
13229
13230 :
13231 elif test $pkg_failed = untried; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13234 :
13235 else
13236 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13237 SDL_LIBS=$pkg_cv_SDL_LIBS
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13239 $as_echo "yes" >&6; }
13240 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13241
13242 fi
13243
13244 elif test $pkg_failed = untried; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13247
13248
13249 pkg_failed=no
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13251 $as_echo_n "checking for sdl... " >&6; }
13252
13253 if test -n "$SDL_CFLAGS"; then
13254 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13255 elif test -n "$PKG_CONFIG"; then
13256 if test -n "$PKG_CONFIG" && \
13257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13258 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13259 ac_status=$?
13260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13261 test $ac_status = 0; }; then
13262 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13263 test "x$?" != "x0" && pkg_failed=yes
13264 else
13265 pkg_failed=yes
13266 fi
13267 else
13268 pkg_failed=untried
13269 fi
13270 if test -n "$SDL_LIBS"; then
13271 pkg_cv_SDL_LIBS="$SDL_LIBS"
13272 elif test -n "$PKG_CONFIG"; then
13273 if test -n "$PKG_CONFIG" && \
13274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13275 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13276 ac_status=$?
13277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13278 test $ac_status = 0; }; then
13279 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13280 test "x$?" != "x0" && pkg_failed=yes
13281 else
13282 pkg_failed=yes
13283 fi
13284 else
13285 pkg_failed=untried
13286 fi
13287
13288 if test $pkg_failed = no; then
13289 pkg_save_LDFLAGS="$LDFLAGS"
13290 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293
13294 int
13295 main ()
13296 {
13297
13298 ;
13299 return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303
13304 else
13305 pkg_failed=yes
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LDFLAGS=$pkg_save_LDFLAGS
13310 fi
13311
13312
13313
13314 if test $pkg_failed = yes; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316 $as_echo "no" >&6; }
13317
13318 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13319 _pkg_short_errors_supported=yes
13320 else
13321 _pkg_short_errors_supported=no
13322 fi
13323 if test $_pkg_short_errors_supported = yes; then
13324 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13325 else
13326 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13327 fi
13328 # Put the nasty error message in config.log where it belongs
13329 echo "$SDL_PKG_ERRORS" >&5
13330
13331 :
13332 elif test $pkg_failed = untried; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 :
13336 else
13337 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13338 SDL_LIBS=$pkg_cv_SDL_LIBS
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13340 $as_echo "yes" >&6; }
13341 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13342
13343 fi
13344
13345 else
13346 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13347 SDL_LIBS=$pkg_cv_SDL_LIBS
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13349 $as_echo "yes" >&6; }
13350 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13351
13352 fi
13353 if test -n "$SDL_CFLAGS"; then :
13354 if test "$ac_cv_search_dlopen" = no; then :
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13356 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13357
13358 fi
13359
13360 fi
13361 else
13362 SDL_CFLAGS=
13363 fi
13364 SDL_LIBS=
13365
13366
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13368 $as_echo_n "checking for cygwin... " >&6; }
13369 if ${sim_cv_os_cygwin+:} false; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374
13375 #ifdef __CYGWIN__
13376 lose
13377 #endif
13378 _ACEOF
13379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13380 $EGREP "lose" >/dev/null 2>&1; then :
13381 sim_cv_os_cygwin=yes
13382 else
13383 sim_cv_os_cygwin=no
13384 fi
13385 rm -f conftest*
13386
13387 fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13389 $as_echo "$sim_cv_os_cygwin" >&6; }
13390
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13392 $as_echo_n "checking for library containing tgetent... " >&6; }
13393 if ${ac_cv_search_tgetent+:} false; then :
13394 $as_echo_n "(cached) " >&6
13395 else
13396 ac_func_search_save_LIBS=$LIBS
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13399
13400 /* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13403 #ifdef __cplusplus
13404 extern "C"
13405 #endif
13406 char tgetent ();
13407 int
13408 main ()
13409 {
13410 return tgetent ();
13411 ;
13412 return 0;
13413 }
13414 _ACEOF
13415 for ac_lib in '' termcap tinfo curses ncurses; do
13416 if test -z "$ac_lib"; then
13417 ac_res="none required"
13418 else
13419 ac_res=-l$ac_lib
13420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13421 fi
13422 if ac_fn_c_try_link "$LINENO"; then :
13423 ac_cv_search_tgetent=$ac_res
13424 fi
13425 rm -f core conftest.err conftest.$ac_objext \
13426 conftest$ac_exeext
13427 if ${ac_cv_search_tgetent+:} false; then :
13428 break
13429 fi
13430 done
13431 if ${ac_cv_search_tgetent+:} false; then :
13432
13433 else
13434 ac_cv_search_tgetent=no
13435 fi
13436 rm conftest.$ac_ext
13437 LIBS=$ac_func_search_save_LIBS
13438 fi
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13440 $as_echo "$ac_cv_search_tgetent" >&6; }
13441 ac_res=$ac_cv_search_tgetent
13442 if test "$ac_res" != no; then :
13443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13444 TERMCAP_LIB=$ac_cv_search_tgetent
13445 else
13446 TERMCAP_LIB=""
13447 fi
13448
13449 if test x$sim_cv_os_cygwin = xyes; then
13450 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13451 fi
13452
13453
13454 if test -r ../readline/Makefile; then
13455 READLINE_LIB=../readline/readline/libreadline.a
13456 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13457 else
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13459 $as_echo_n "checking for readline in -lreadline... " >&6; }
13460 if ${ac_cv_lib_readline_readline+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 ac_check_lib_save_LIBS=$LIBS
13464 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13467
13468 /* Override any GCC internal prototype to avoid an error.
13469 Use char because int might match the return type of a GCC
13470 builtin and then its argument prototype would still apply. */
13471 #ifdef __cplusplus
13472 extern "C"
13473 #endif
13474 char readline ();
13475 int
13476 main ()
13477 {
13478 return readline ();
13479 ;
13480 return 0;
13481 }
13482 _ACEOF
13483 if ac_fn_c_try_link "$LINENO"; then :
13484 ac_cv_lib_readline_readline=yes
13485 else
13486 ac_cv_lib_readline_readline=no
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
13490 LIBS=$ac_check_lib_save_LIBS
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13493 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13494 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13495 READLINE_LIB=-lreadline
13496 else
13497 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13498 fi
13499
13500 READLINE_CFLAGS=
13501 fi
13502
13503
13504
13505
13506
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13508 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13509 # Check whether --enable-maintainer-mode was given.
13510 if test "${enable_maintainer_mode+set}" = set; then :
13511 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13512 else
13513 USE_MAINTAINER_MODE=no
13514 fi
13515
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13517 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13518 if test $USE_MAINTAINER_MODE = yes; then
13519 MAINTAINER_MODE_TRUE=
13520 MAINTAINER_MODE_FALSE='#'
13521 else
13522 MAINTAINER_MODE_TRUE='#'
13523 MAINTAINER_MODE_FALSE=
13524 fi
13525
13526 MAINT=$MAINTAINER_MODE_TRUE
13527
13528
13529 am__api_version='1.15'
13530
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13532 $as_echo_n "checking whether build environment is sane... " >&6; }
13533 # Reject unsafe characters in $srcdir or the absolute working directory
13534 # name. Accept space and tab only in the latter.
13535 am_lf='
13536 '
13537 case `pwd` in
13538 *[\\\"\#\$\&\'\`$am_lf]*)
13539 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13540 esac
13541 case $srcdir in
13542 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13543 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13544 esac
13545
13546 # Do 'set' in a subshell so we don't clobber the current shell's
13547 # arguments. Must try -L first in case configure is actually a
13548 # symlink; some systems play weird games with the mod time of symlinks
13549 # (eg FreeBSD returns the mod time of the symlink's containing
13550 # directory).
13551 if (
13552 am_has_slept=no
13553 for am_try in 1 2; do
13554 echo "timestamp, slept: $am_has_slept" > conftest.file
13555 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13556 if test "$*" = "X"; then
13557 # -L didn't work.
13558 set X `ls -t "$srcdir/configure" conftest.file`
13559 fi
13560 if test "$*" != "X $srcdir/configure conftest.file" \
13561 && test "$*" != "X conftest.file $srcdir/configure"; then
13562
13563 # If neither matched, then we have a broken ls. This can happen
13564 # if, for instance, CONFIG_SHELL is bash and it inherits a
13565 # broken ls alias from the environment. This has actually
13566 # happened. Such a system could not be considered "sane".
13567 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13568 alias in your environment" "$LINENO" 5
13569 fi
13570 if test "$2" = conftest.file || test $am_try -eq 2; then
13571 break
13572 fi
13573 # Just in case.
13574 sleep 1
13575 am_has_slept=yes
13576 done
13577 test "$2" = conftest.file
13578 )
13579 then
13580 # Ok.
13581 :
13582 else
13583 as_fn_error $? "newly created file is older than distributed files!
13584 Check your system clock" "$LINENO" 5
13585 fi
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13587 $as_echo "yes" >&6; }
13588 # If we didn't sleep, we still need to ensure time stamps of config.status and
13589 # generated files are strictly newer.
13590 am_sleep_pid=
13591 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13592 ( sleep 1 ) &
13593 am_sleep_pid=$!
13594 fi
13595
13596 rm -f conftest.file
13597
13598 if test x"${MISSING+set}" != xset; then
13599 case $am_aux_dir in
13600 *\ * | *\ *)
13601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13602 *)
13603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13604 esac
13605 fi
13606 # Use eval to expand $SHELL
13607 if eval "$MISSING --is-lightweight"; then
13608 am_missing_run="$MISSING "
13609 else
13610 am_missing_run=
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13612 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13613 fi
13614
13615 if test x"${install_sh+set}" != xset; then
13616 case $am_aux_dir in
13617 *\ * | *\ *)
13618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13619 *)
13620 install_sh="\${SHELL} $am_aux_dir/install-sh"
13621 esac
13622 fi
13623
13624 # Installed binaries are usually stripped using 'strip' when the user
13625 # run "make install-strip". However 'strip' might not be the right
13626 # tool to use in cross-compilation environments, therefore Automake
13627 # will honor the 'STRIP' environment variable to overrule this program.
13628 if test "$cross_compiling" != no; then
13629 if test -n "$ac_tool_prefix"; then
13630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13631 set dummy ${ac_tool_prefix}strip; ac_word=$2
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633 $as_echo_n "checking for $ac_word... " >&6; }
13634 if ${ac_cv_prog_STRIP+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 if test -n "$STRIP"; then
13638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13639 else
13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13642 do
13643 IFS=$as_save_IFS
13644 test -z "$as_dir" && as_dir=.
13645 for ac_exec_ext in '' $ac_executable_extensions; do
13646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 break 2
13650 fi
13651 done
13652 done
13653 IFS=$as_save_IFS
13654
13655 fi
13656 fi
13657 STRIP=$ac_cv_prog_STRIP
13658 if test -n "$STRIP"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13660 $as_echo "$STRIP" >&6; }
13661 else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663 $as_echo "no" >&6; }
13664 fi
13665
13666
13667 fi
13668 if test -z "$ac_cv_prog_STRIP"; then
13669 ac_ct_STRIP=$STRIP
13670 # Extract the first word of "strip", so it can be a program name with args.
13671 set dummy strip; ac_word=$2
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13673 $as_echo_n "checking for $ac_word... " >&6; }
13674 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 if test -n "$ac_ct_STRIP"; then
13678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13679 else
13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $PATH
13682 do
13683 IFS=$as_save_IFS
13684 test -z "$as_dir" && as_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13687 ac_cv_prog_ac_ct_STRIP="strip"
13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 break 2
13690 fi
13691 done
13692 done
13693 IFS=$as_save_IFS
13694
13695 fi
13696 fi
13697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13698 if test -n "$ac_ct_STRIP"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13700 $as_echo "$ac_ct_STRIP" >&6; }
13701 else
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13704 fi
13705
13706 if test "x$ac_ct_STRIP" = x; then
13707 STRIP=":"
13708 else
13709 case $cross_compiling:$ac_tool_warned in
13710 yes:)
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13713 ac_tool_warned=yes ;;
13714 esac
13715 STRIP=$ac_ct_STRIP
13716 fi
13717 else
13718 STRIP="$ac_cv_prog_STRIP"
13719 fi
13720
13721 fi
13722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13723
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13726 if test -z "$MKDIR_P"; then
13727 if ${ac_cv_path_mkdir+:} false; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13732 do
13733 IFS=$as_save_IFS
13734 test -z "$as_dir" && as_dir=.
13735 for ac_prog in mkdir gmkdir; do
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13739 'mkdir (GNU coreutils) '* | \
13740 'mkdir (coreutils) '* | \
13741 'mkdir (fileutils) '4.1*)
13742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13743 break 3;;
13744 esac
13745 done
13746 done
13747 done
13748 IFS=$as_save_IFS
13749
13750 fi
13751
13752 test -d ./--version && rmdir ./--version
13753 if test "${ac_cv_path_mkdir+set}" = set; then
13754 MKDIR_P="$ac_cv_path_mkdir -p"
13755 else
13756 # As a last resort, use the slow shell script. Don't cache a
13757 # value for MKDIR_P within a source directory, because that will
13758 # break other packages using the cache if that directory is
13759 # removed, or if the value is a relative name.
13760 MKDIR_P="$ac_install_sh -d"
13761 fi
13762 fi
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13764 $as_echo "$MKDIR_P" >&6; }
13765
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13767 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13768 set x ${MAKE-make}
13769 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13770 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 cat >conftest.make <<\_ACEOF
13774 SHELL = /bin/sh
13775 all:
13776 @echo '@@@%%%=$(MAKE)=@@@%%%'
13777 _ACEOF
13778 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13780 *@@@%%%=?*=@@@%%%*)
13781 eval ac_cv_prog_make_${ac_make}_set=yes;;
13782 *)
13783 eval ac_cv_prog_make_${ac_make}_set=no;;
13784 esac
13785 rm -f conftest.make
13786 fi
13787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13789 $as_echo "yes" >&6; }
13790 SET_MAKE=
13791 else
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793 $as_echo "no" >&6; }
13794 SET_MAKE="MAKE=${MAKE-make}"
13795 fi
13796
13797 rm -rf .tst 2>/dev/null
13798 mkdir .tst 2>/dev/null
13799 if test -d .tst; then
13800 am__leading_dot=.
13801 else
13802 am__leading_dot=_
13803 fi
13804 rmdir .tst 2>/dev/null
13805
13806 DEPDIR="${am__leading_dot}deps"
13807
13808 ac_config_commands="$ac_config_commands depfiles"
13809
13810
13811 am_make=${MAKE-make}
13812 cat > confinc << 'END'
13813 am__doit:
13814 @echo this is the am__doit target
13815 .PHONY: am__doit
13816 END
13817 # If we don't find an include directive, just comment out the code.
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13819 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13820 am__include="#"
13821 am__quote=
13822 _am_result=none
13823 # First try GNU make style include.
13824 echo "include confinc" > confmf
13825 # Ignore all kinds of additional output from 'make'.
13826 case `$am_make -s -f confmf 2> /dev/null` in #(
13827 *the\ am__doit\ target*)
13828 am__include=include
13829 am__quote=
13830 _am_result=GNU
13831 ;;
13832 esac
13833 # Now try BSD make style include.
13834 if test "$am__include" = "#"; then
13835 echo '.include "confinc"' > confmf
13836 case `$am_make -s -f confmf 2> /dev/null` in #(
13837 *the\ am__doit\ target*)
13838 am__include=.include
13839 am__quote="\""
13840 _am_result=BSD
13841 ;;
13842 esac
13843 fi
13844
13845
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13847 $as_echo "$_am_result" >&6; }
13848 rm -f confinc confmf
13849
13850 # Check whether --enable-dependency-tracking was given.
13851 if test "${enable_dependency_tracking+set}" = set; then :
13852 enableval=$enable_dependency_tracking;
13853 fi
13854
13855 if test "x$enable_dependency_tracking" != xno; then
13856 am_depcomp="$ac_aux_dir/depcomp"
13857 AMDEPBACKSLASH='\'
13858 am__nodep='_no'
13859 fi
13860 if test "x$enable_dependency_tracking" != xno; then
13861 AMDEP_TRUE=
13862 AMDEP_FALSE='#'
13863 else
13864 AMDEP_TRUE='#'
13865 AMDEP_FALSE=
13866 fi
13867
13868
13869 # Check whether --enable-silent-rules was given.
13870 if test "${enable_silent_rules+set}" = set; then :
13871 enableval=$enable_silent_rules;
13872 fi
13873
13874 case $enable_silent_rules in # (((
13875 yes) AM_DEFAULT_VERBOSITY=0;;
13876 no) AM_DEFAULT_VERBOSITY=1;;
13877 *) AM_DEFAULT_VERBOSITY=1;;
13878 esac
13879 am_make=${MAKE-make}
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13881 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13882 if ${am_cv_make_support_nested_variables+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 if $as_echo 'TRUE=$(BAR$(V))
13886 BAR0=false
13887 BAR1=true
13888 V=1
13889 am__doit:
13890 @$(TRUE)
13891 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13892 am_cv_make_support_nested_variables=yes
13893 else
13894 am_cv_make_support_nested_variables=no
13895 fi
13896 fi
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13898 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13899 if test $am_cv_make_support_nested_variables = yes; then
13900 AM_V='$(V)'
13901 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13902 else
13903 AM_V=$AM_DEFAULT_VERBOSITY
13904 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13905 fi
13906 AM_BACKSLASH='\'
13907
13908 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13909 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13910 # is not polluted with repeated "-I."
13911 am__isrc=' -I$(srcdir)'
13912 # test to see if srcdir already configured
13913 if test -f $srcdir/config.status; then
13914 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13915 fi
13916 fi
13917
13918 # test whether we have cygpath
13919 if test -z "$CYGPATH_W"; then
13920 if (cygpath --version) >/dev/null 2>/dev/null; then
13921 CYGPATH_W='cygpath -w'
13922 else
13923 CYGPATH_W=echo
13924 fi
13925 fi
13926
13927
13928 # Define the identity of the package.
13929 PACKAGE='sim'
13930 VERSION='0'
13931
13932
13933 cat >>confdefs.h <<_ACEOF
13934 #define PACKAGE "$PACKAGE"
13935 _ACEOF
13936
13937
13938 cat >>confdefs.h <<_ACEOF
13939 #define VERSION "$VERSION"
13940 _ACEOF
13941
13942 # Some tools Automake needs.
13943
13944 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13945
13946
13947 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13948
13949
13950 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13951
13952
13953 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13954
13955
13956 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13957
13958 # For better backward compatibility. To be removed once Automake 1.9.x
13959 # dies out for good. For more background, see:
13960 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13961 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13962 mkdir_p='$(MKDIR_P)'
13963
13964 # We need awk for the "check" target (and possibly the TAP driver). The
13965 # system "awk" is bad on some platforms.
13966 # Always define AMTAR for backward compatibility. Yes, it's still used
13967 # in the wild :-( We should find a proper way to deprecate it ...
13968 AMTAR='$${TAR-tar}'
13969
13970
13971 # We'll loop over all known methods to create a tar archive until one works.
13972 _am_tools='gnutar pax cpio none'
13973
13974 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13975
13976
13977
13978
13979
13980 depcc="$CC" am_compiler_list=
13981
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13983 $as_echo_n "checking dependency style of $depcc... " >&6; }
13984 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13988 # We make a subdir and do the tests there. Otherwise we can end up
13989 # making bogus files that we don't know about and never remove. For
13990 # instance it was reported that on HP-UX the gcc test will end up
13991 # making a dummy file named 'D' -- because '-MD' means "put the output
13992 # in D".
13993 rm -rf conftest.dir
13994 mkdir conftest.dir
13995 # Copy depcomp to subdir because otherwise we won't find it if we're
13996 # using a relative directory.
13997 cp "$am_depcomp" conftest.dir
13998 cd conftest.dir
13999 # We will build objects and dependencies in a subdirectory because
14000 # it helps to detect inapplicable dependency modes. For instance
14001 # both Tru64's cc and ICC support -MD to output dependencies as a
14002 # side effect of compilation, but ICC will put the dependencies in
14003 # the current directory while Tru64 will put them in the object
14004 # directory.
14005 mkdir sub
14006
14007 am_cv_CC_dependencies_compiler_type=none
14008 if test "$am_compiler_list" = ""; then
14009 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14010 fi
14011 am__universal=false
14012 case " $depcc " in #(
14013 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14014 esac
14015
14016 for depmode in $am_compiler_list; do
14017 # Setup a source with many dependencies, because some compilers
14018 # like to wrap large dependency lists on column 80 (with \), and
14019 # we should not choose a depcomp mode which is confused by this.
14020 #
14021 # We need to recreate these files for each test, as the compiler may
14022 # overwrite some of them when testing with obscure command lines.
14023 # This happens at least with the AIX C compiler.
14024 : > sub/conftest.c
14025 for i in 1 2 3 4 5 6; do
14026 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14027 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14028 # Solaris 10 /bin/sh.
14029 echo '/* dummy */' > sub/conftst$i.h
14030 done
14031 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14032
14033 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14034 # mode. It turns out that the SunPro C++ compiler does not properly
14035 # handle '-M -o', and we need to detect this. Also, some Intel
14036 # versions had trouble with output in subdirs.
14037 am__obj=sub/conftest.${OBJEXT-o}
14038 am__minus_obj="-o $am__obj"
14039 case $depmode in
14040 gcc)
14041 # This depmode causes a compiler race in universal mode.
14042 test "$am__universal" = false || continue
14043 ;;
14044 nosideeffect)
14045 # After this tag, mechanisms are not by side-effect, so they'll
14046 # only be used when explicitly requested.
14047 if test "x$enable_dependency_tracking" = xyes; then
14048 continue
14049 else
14050 break
14051 fi
14052 ;;
14053 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14054 # This compiler won't grok '-c -o', but also, the minuso test has
14055 # not run yet. These depmodes are late enough in the game, and
14056 # so weak that their functioning should not be impacted.
14057 am__obj=conftest.${OBJEXT-o}
14058 am__minus_obj=
14059 ;;
14060 none) break ;;
14061 esac
14062 if depmode=$depmode \
14063 source=sub/conftest.c object=$am__obj \
14064 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14065 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14066 >/dev/null 2>conftest.err &&
14067 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14068 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14069 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14070 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14071 # icc doesn't choke on unknown options, it will just issue warnings
14072 # or remarks (even with -Werror). So we grep stderr for any message
14073 # that says an option was ignored or not supported.
14074 # When given -MP, icc 7.0 and 7.1 complain thusly:
14075 # icc: Command line warning: ignoring option '-M'; no argument required
14076 # The diagnosis changed in icc 8.0:
14077 # icc: Command line remark: option '-MP' not supported
14078 if (grep 'ignoring option' conftest.err ||
14079 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14080 am_cv_CC_dependencies_compiler_type=$depmode
14081 break
14082 fi
14083 fi
14084 done
14085
14086 cd ..
14087 rm -rf conftest.dir
14088 else
14089 am_cv_CC_dependencies_compiler_type=none
14090 fi
14091
14092 fi
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14094 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14096
14097 if
14098 test "x$enable_dependency_tracking" != xno \
14099 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14100 am__fastdepCC_TRUE=
14101 am__fastdepCC_FALSE='#'
14102 else
14103 am__fastdepCC_TRUE='#'
14104 am__fastdepCC_FALSE=
14105 fi
14106
14107
14108
14109 # POSIX will say in a future version that running "rm -f" with no argument
14110 # is OK; and we want to be able to make that assumption in our Makefile
14111 # recipes. So use an aggressive probe to check that the usage we want is
14112 # actually supported "in the wild" to an acceptable degree.
14113 # See automake bug#10828.
14114 # To make any issue more visible, cause the running configure to be aborted
14115 # by default if the 'rm' program in use doesn't match our expectations; the
14116 # user can still override this though.
14117 if rm -f && rm -fr && rm -rf; then : OK; else
14118 cat >&2 <<'END'
14119 Oops!
14120
14121 Your 'rm' program seems unable to run without file operands specified
14122 on the command line, even when the '-f' option is present. This is contrary
14123 to the behaviour of most rm programs out there, and not conforming with
14124 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14125
14126 Please tell bug-automake@gnu.org about your system, including the value
14127 of your $PATH and any error possibly output before this message. This
14128 can help us improve future automake versions.
14129
14130 END
14131 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14132 echo 'Configuration will proceed anyway, since you have set the' >&2
14133 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14134 echo >&2
14135 else
14136 cat >&2 <<'END'
14137 Aborting the configuration process, to ensure you take notice of the issue.
14138
14139 You can download and install GNU coreutils to get an 'rm' implementation
14140 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14141
14142 If you want to complete the configuration process using your problematic
14143 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14144 to "yes", and re-run configure.
14145
14146 END
14147 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14148 fi
14149 fi
14150
14151 # Check whether --enable-silent-rules was given.
14152 if test "${enable_silent_rules+set}" = set; then :
14153 enableval=$enable_silent_rules;
14154 fi
14155
14156 case $enable_silent_rules in # (((
14157 yes) AM_DEFAULT_VERBOSITY=0;;
14158 no) AM_DEFAULT_VERBOSITY=1;;
14159 *) AM_DEFAULT_VERBOSITY=0;;
14160 esac
14161 am_make=${MAKE-make}
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14163 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14164 if ${am_cv_make_support_nested_variables+:} false; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 if $as_echo 'TRUE=$(BAR$(V))
14168 BAR0=false
14169 BAR1=true
14170 V=1
14171 am__doit:
14172 @$(TRUE)
14173 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14174 am_cv_make_support_nested_variables=yes
14175 else
14176 am_cv_make_support_nested_variables=no
14177 fi
14178 fi
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14180 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14181 if test $am_cv_make_support_nested_variables = yes; then
14182 AM_V='$(V)'
14183 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14184 else
14185 AM_V=$AM_DEFAULT_VERBOSITY
14186 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14187 fi
14188 AM_BACKSLASH='\'
14189
14190
14191 # If a cpu ever has more than one simulator to choose from, use
14192 # --enable-sim=... to choose.
14193 # Check whether --enable-sim was given.
14194 if test "${enable_sim+set}" = set; then :
14195 enableval=$enable_sim; case "${enableval}" in
14196 yes | no) ;;
14197 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14198 esac
14199 fi
14200
14201
14202 # Check whether --enable-example-sims was given.
14203 if test "${enable_example_sims+set}" = set; then :
14204 enableval=$enable_example_sims;
14205 fi
14206
14207
14208 # Check whether --enable-targets was given.
14209 if test "${enable_targets+set}" = set; then :
14210 enableval=$enable_targets; case "${enableval}" in
14211 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14212 ;;
14213 no) enable_targets= ;;
14214 *) enable_targets=$enableval ;;
14215 esac
14216 fi
14217
14218
14219 SIM_PRIMARY_TARGET=
14220
14221
14222 SIM_SUBDIRS=
14223
14224
14225 SIM_ENABLED_ARCHES=
14226
14227
14228 SIM_COMMON_BUILD_TRUE=
14229 SIM_COMMON_BUILD_FALSE='#'
14230
14231
14232
14233 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
14234
14235
14236
14237
14238 if test "${enable_sim}" != no; then
14239 sim_igen=no
14240 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14241 do
14242 sim_enable_arch_aarch64=false
14243 case "${targ}" in
14244 all|aarch64*-*-*)
14245 if test "${targ}" = "${target}"; then
14246 SIM_PRIMARY_TARGET=aarch64
14247 fi
14248 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14249 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
14250
14251 ac_config_commands="$ac_config_commands aarch64/Makefile"
14252
14253 as_fn_append SIM_SUBDIRS " aarch64"
14254
14255 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14256
14257 ac_config_commands="$ac_config_commands depdir-aarch64"
14258
14259
14260 sim_enable_arch_aarch64=true
14261
14262 ;;
14263 esac
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14265 $as_echo_n "checking where to find the target cc... " >&6; }
14266 if test "x${build}" != "x${host}" ; then
14267 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14268 # We already found the complete path
14269 ac_dir=`dirname $CC_FOR_TARGET`
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14271 $as_echo "pre-installed in $ac_dir" >&6; }
14272 else
14273 # Canadian cross, just use what we found
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275 $as_echo "pre-installed" >&6; }
14276 fi
14277 else
14278 ok=yes
14279 case " ${configdirs} " in
14280 *" ${target_alias}-gcc "*) ;;
14281 *) ok=no ;;
14282 esac
14283
14284 if test $ok = yes; then
14285 # An in-tree tool is available and we can use it
14286 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14288 $as_echo "just compiled" >&6; }
14289 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14290 # We already found the complete path
14291 ac_dir=`dirname $CC_FOR_TARGET`
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14293 $as_echo "pre-installed in $ac_dir" >&6; }
14294 elif test "x$target" = "x$host"; then
14295 # We can use an host tool
14296 CC_FOR_TARGET='$(CC)'
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14298 $as_echo "host tool" >&6; }
14299 else
14300 # We need a cross tool
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14302 $as_echo "pre-installed" >&6; }
14303 fi
14304 fi
14305
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14307 $as_echo_n "checking where to find the target as... " >&6; }
14308 if test "x${build}" != "x${host}" ; then
14309 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14310 # We already found the complete path
14311 ac_dir=`dirname $AS_FOR_TARGET`
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14313 $as_echo "pre-installed in $ac_dir" >&6; }
14314 else
14315 # Canadian cross, just use what we found
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14317 $as_echo "pre-installed" >&6; }
14318 fi
14319 else
14320 ok=yes
14321 case " ${configdirs} " in
14322 *" \$(abs_builddir) "*) ;;
14323 *) ok=no ;;
14324 esac
14325
14326 if test $ok = yes; then
14327 # An in-tree tool is available and we can use it
14328 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14330 $as_echo "just compiled" >&6; }
14331 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14332 # We already found the complete path
14333 ac_dir=`dirname $AS_FOR_TARGET`
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14335 $as_echo "pre-installed in $ac_dir" >&6; }
14336 elif test "x$target" = "x$host"; then
14337 # We can use an host tool
14338 AS_FOR_TARGET='$(AS)'
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14340 $as_echo "host tool" >&6; }
14341 else
14342 # We need a cross tool
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14344 $as_echo "pre-installed" >&6; }
14345 fi
14346 fi
14347
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14349 $as_echo_n "checking where to find the target ld... " >&6; }
14350 if test "x${build}" != "x${host}" ; then
14351 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14352 # We already found the complete path
14353 ac_dir=`dirname $LD_FOR_TARGET`
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14355 $as_echo "pre-installed in $ac_dir" >&6; }
14356 else
14357 # Canadian cross, just use what we found
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14359 $as_echo "pre-installed" >&6; }
14360 fi
14361 else
14362 ok=yes
14363 case " ${configdirs} " in
14364 *" \$(abs_builddir) "*) ;;
14365 *) ok=no ;;
14366 esac
14367
14368 if test $ok = yes; then
14369 # An in-tree tool is available and we can use it
14370 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14372 $as_echo "just compiled" >&6; }
14373 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14374 # We already found the complete path
14375 ac_dir=`dirname $LD_FOR_TARGET`
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14377 $as_echo "pre-installed in $ac_dir" >&6; }
14378 elif test "x$target" = "x$host"; then
14379 # We can use an host tool
14380 LD_FOR_TARGET='$(LD)'
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14382 $as_echo "host tool" >&6; }
14383 else
14384 # We need a cross tool
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14386 $as_echo "pre-installed" >&6; }
14387 fi
14388 fi
14389
14390
14391
14392
14393
14394
14395 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14396 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14397 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14398 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14399
14400 fi
14401
14402 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14403
14404 if ${sim_enable_arch_aarch64}; then
14405 SIM_ENABLE_ARCH_aarch64_TRUE=
14406 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14407 else
14408 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14409 SIM_ENABLE_ARCH_aarch64_FALSE=
14410 fi
14411
14412
14413 sim_enable_arch_arm=false
14414 case "${targ}" in
14415 all|arm*-*-*)
14416 if test "${targ}" = "${target}"; then
14417 SIM_PRIMARY_TARGET=arm
14418 fi
14419 as_fn_append SIM_ENABLED_ARCHES " arm"
14420 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
14421
14422 ac_config_commands="$ac_config_commands arm/Makefile"
14423
14424 as_fn_append SIM_SUBDIRS " arm"
14425
14426 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14427
14428 ac_config_commands="$ac_config_commands depdir-arm"
14429
14430
14431 sim_enable_arch_arm=true
14432
14433 ;;
14434 esac
14435
14436
14437
14438
14439 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14440 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14441 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14442 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14443
14444 fi
14445
14446 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14447
14448 if ${sim_enable_arch_arm}; then
14449 SIM_ENABLE_ARCH_arm_TRUE=
14450 SIM_ENABLE_ARCH_arm_FALSE='#'
14451 else
14452 SIM_ENABLE_ARCH_arm_TRUE='#'
14453 SIM_ENABLE_ARCH_arm_FALSE=
14454 fi
14455
14456
14457 sim_enable_arch_avr=false
14458 case "${targ}" in
14459 all|avr*-*-*)
14460 if test "${targ}" = "${target}"; then
14461 SIM_PRIMARY_TARGET=avr
14462 fi
14463 as_fn_append SIM_ENABLED_ARCHES " avr"
14464 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
14465
14466 ac_config_commands="$ac_config_commands avr/Makefile"
14467
14468 as_fn_append SIM_SUBDIRS " avr"
14469
14470 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14471
14472 ac_config_commands="$ac_config_commands depdir-avr"
14473
14474
14475 sim_enable_arch_avr=true
14476
14477 ;;
14478 esac
14479
14480
14481
14482
14483 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14484 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14485 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14486 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14487
14488 fi
14489
14490 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14491
14492 if ${sim_enable_arch_avr}; then
14493 SIM_ENABLE_ARCH_avr_TRUE=
14494 SIM_ENABLE_ARCH_avr_FALSE='#'
14495 else
14496 SIM_ENABLE_ARCH_avr_TRUE='#'
14497 SIM_ENABLE_ARCH_avr_FALSE=
14498 fi
14499
14500
14501 sim_enable_arch_bfin=false
14502 case "${targ}" in
14503 all|bfin-*-*)
14504 if test "${targ}" = "${target}"; then
14505 SIM_PRIMARY_TARGET=bfin
14506 fi
14507 as_fn_append SIM_ENABLED_ARCHES " bfin"
14508 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
14509
14510 ac_config_commands="$ac_config_commands bfin/Makefile"
14511
14512 as_fn_append SIM_SUBDIRS " bfin"
14513
14514 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14515
14516 ac_config_commands="$ac_config_commands depdir-bfin"
14517
14518
14519 sim_enable_arch_bfin=true
14520
14521 ;;
14522 esac
14523
14524
14525
14526
14527 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14528 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14529 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14530 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14531
14532 fi
14533
14534 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14535
14536 if ${sim_enable_arch_bfin}; then
14537 SIM_ENABLE_ARCH_bfin_TRUE=
14538 SIM_ENABLE_ARCH_bfin_FALSE='#'
14539 else
14540 SIM_ENABLE_ARCH_bfin_TRUE='#'
14541 SIM_ENABLE_ARCH_bfin_FALSE=
14542 fi
14543
14544
14545 sim_enable_arch_bpf=false
14546 case "${targ}" in
14547 all|bpf-*-*)
14548 if test "${targ}" = "${target}"; then
14549 SIM_PRIMARY_TARGET=bpf
14550 fi
14551 as_fn_append SIM_ENABLED_ARCHES " bpf"
14552 ac_config_files="$ac_config_files bpf/Makefile.sim:bpf/Makefile.in"
14553
14554 ac_config_commands="$ac_config_commands bpf/Makefile"
14555
14556 as_fn_append SIM_SUBDIRS " bpf"
14557
14558 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14559
14560 ac_config_commands="$ac_config_commands depdir-bpf"
14561
14562
14563 sim_enable_arch_bpf=true
14564
14565 ;;
14566 esac
14567
14568
14569
14570
14571 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14572 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14573 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14574 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14575
14576 fi
14577
14578 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14579
14580 if ${sim_enable_arch_bpf}; then
14581 SIM_ENABLE_ARCH_bpf_TRUE=
14582 SIM_ENABLE_ARCH_bpf_FALSE='#'
14583 else
14584 SIM_ENABLE_ARCH_bpf_TRUE='#'
14585 SIM_ENABLE_ARCH_bpf_FALSE=
14586 fi
14587
14588
14589 sim_enable_arch_cr16=false
14590 case "${targ}" in
14591 all|cr16*-*-*)
14592 if test "${targ}" = "${target}"; then
14593 SIM_PRIMARY_TARGET=cr16
14594 fi
14595 as_fn_append SIM_ENABLED_ARCHES " cr16"
14596 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
14597
14598 ac_config_commands="$ac_config_commands cr16/Makefile"
14599
14600 as_fn_append SIM_SUBDIRS " cr16"
14601
14602 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14603
14604 ac_config_commands="$ac_config_commands depdir-cr16"
14605
14606
14607 sim_enable_arch_cr16=true
14608
14609 ;;
14610 esac
14611
14612
14613
14614
14615 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14616 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14617 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14618 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14619
14620 fi
14621
14622 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14623
14624 if ${sim_enable_arch_cr16}; then
14625 SIM_ENABLE_ARCH_cr16_TRUE=
14626 SIM_ENABLE_ARCH_cr16_FALSE='#'
14627 else
14628 SIM_ENABLE_ARCH_cr16_TRUE='#'
14629 SIM_ENABLE_ARCH_cr16_FALSE=
14630 fi
14631
14632
14633 sim_enable_arch_cris=false
14634 case "${targ}" in
14635 all|cris-*-* | crisv32-*-*)
14636 if test "${targ}" = "${target}"; then
14637 SIM_PRIMARY_TARGET=cris
14638 fi
14639 as_fn_append SIM_ENABLED_ARCHES " cris"
14640 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
14641
14642 ac_config_commands="$ac_config_commands cris/Makefile"
14643
14644 as_fn_append SIM_SUBDIRS " cris"
14645
14646 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14647
14648 ac_config_commands="$ac_config_commands depdir-cris"
14649
14650
14651 sim_enable_arch_cris=true
14652
14653 ;;
14654 esac
14655
14656
14657
14658
14659 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14660 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14661 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14662 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14663
14664 fi
14665
14666 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14667
14668 if ${sim_enable_arch_cris}; then
14669 SIM_ENABLE_ARCH_cris_TRUE=
14670 SIM_ENABLE_ARCH_cris_FALSE='#'
14671 else
14672 SIM_ENABLE_ARCH_cris_TRUE='#'
14673 SIM_ENABLE_ARCH_cris_FALSE=
14674 fi
14675
14676
14677 sim_enable_arch_d10v=false
14678 case "${targ}" in
14679 all|d10v-*-*)
14680 if test "${targ}" = "${target}"; then
14681 SIM_PRIMARY_TARGET=d10v
14682 fi
14683 as_fn_append SIM_ENABLED_ARCHES " d10v"
14684 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
14685
14686 ac_config_commands="$ac_config_commands d10v/Makefile"
14687
14688 as_fn_append SIM_SUBDIRS " d10v"
14689
14690 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14691
14692 ac_config_commands="$ac_config_commands depdir-d10v"
14693
14694
14695 sim_enable_arch_d10v=true
14696
14697 ;;
14698 esac
14699
14700
14701
14702
14703 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14704 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14705 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14706 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14707
14708 fi
14709
14710 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14711
14712 if ${sim_enable_arch_d10v}; then
14713 SIM_ENABLE_ARCH_d10v_TRUE=
14714 SIM_ENABLE_ARCH_d10v_FALSE='#'
14715 else
14716 SIM_ENABLE_ARCH_d10v_TRUE='#'
14717 SIM_ENABLE_ARCH_d10v_FALSE=
14718 fi
14719
14720
14721 sim_enable_arch_frv=false
14722 case "${targ}" in
14723 all|frv-*-*)
14724 if test "${targ}" = "${target}"; then
14725 SIM_PRIMARY_TARGET=frv
14726 fi
14727 as_fn_append SIM_ENABLED_ARCHES " frv"
14728 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
14729
14730 ac_config_commands="$ac_config_commands frv/Makefile"
14731
14732 as_fn_append SIM_SUBDIRS " frv"
14733
14734 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14735
14736 ac_config_commands="$ac_config_commands depdir-frv"
14737
14738
14739 sim_enable_arch_frv=true
14740
14741 ;;
14742 esac
14743
14744
14745
14746
14747 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14748 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14749 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14750 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14751
14752 fi
14753
14754 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14755
14756 if ${sim_enable_arch_frv}; then
14757 SIM_ENABLE_ARCH_frv_TRUE=
14758 SIM_ENABLE_ARCH_frv_FALSE='#'
14759 else
14760 SIM_ENABLE_ARCH_frv_TRUE='#'
14761 SIM_ENABLE_ARCH_frv_FALSE=
14762 fi
14763
14764
14765 sim_enable_arch_ft32=false
14766 case "${targ}" in
14767 all|ft32-*-*)
14768 if test "${targ}" = "${target}"; then
14769 SIM_PRIMARY_TARGET=ft32
14770 fi
14771 as_fn_append SIM_ENABLED_ARCHES " ft32"
14772 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
14773
14774 ac_config_commands="$ac_config_commands ft32/Makefile"
14775
14776 as_fn_append SIM_SUBDIRS " ft32"
14777
14778 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14779
14780 ac_config_commands="$ac_config_commands depdir-ft32"
14781
14782
14783 sim_enable_arch_ft32=true
14784
14785 ;;
14786 esac
14787
14788
14789
14790
14791 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14792 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14793 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14794 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14795
14796 fi
14797
14798 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14799
14800 if ${sim_enable_arch_ft32}; then
14801 SIM_ENABLE_ARCH_ft32_TRUE=
14802 SIM_ENABLE_ARCH_ft32_FALSE='#'
14803 else
14804 SIM_ENABLE_ARCH_ft32_TRUE='#'
14805 SIM_ENABLE_ARCH_ft32_FALSE=
14806 fi
14807
14808
14809 sim_enable_arch_h8300=false
14810 case "${targ}" in
14811 all|h8300*-*-*)
14812 if test "${targ}" = "${target}"; then
14813 SIM_PRIMARY_TARGET=h8300
14814 fi
14815 as_fn_append SIM_ENABLED_ARCHES " h8300"
14816 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
14817
14818 ac_config_commands="$ac_config_commands h8300/Makefile"
14819
14820 as_fn_append SIM_SUBDIRS " h8300"
14821
14822 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14823
14824 ac_config_commands="$ac_config_commands depdir-h8300"
14825
14826
14827 sim_enable_arch_h8300=true
14828
14829 ;;
14830 esac
14831
14832
14833
14834
14835 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14836 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14837 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14838 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14839
14840 fi
14841
14842 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14843
14844 if ${sim_enable_arch_h8300}; then
14845 SIM_ENABLE_ARCH_h8300_TRUE=
14846 SIM_ENABLE_ARCH_h8300_FALSE='#'
14847 else
14848 SIM_ENABLE_ARCH_h8300_TRUE='#'
14849 SIM_ENABLE_ARCH_h8300_FALSE=
14850 fi
14851
14852
14853 sim_enable_arch_iq2000=false
14854 case "${targ}" in
14855 all|iq2000-*-*)
14856 if test "${targ}" = "${target}"; then
14857 SIM_PRIMARY_TARGET=iq2000
14858 fi
14859 as_fn_append SIM_ENABLED_ARCHES " iq2000"
14860 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
14861
14862 ac_config_commands="$ac_config_commands iq2000/Makefile"
14863
14864 as_fn_append SIM_SUBDIRS " iq2000"
14865
14866 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14867
14868 ac_config_commands="$ac_config_commands depdir-iq2000"
14869
14870
14871 sim_enable_arch_iq2000=true
14872
14873 ;;
14874 esac
14875
14876
14877
14878
14879 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14880 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14881 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14882 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14883
14884 fi
14885
14886 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14887
14888 if ${sim_enable_arch_iq2000}; then
14889 SIM_ENABLE_ARCH_iq2000_TRUE=
14890 SIM_ENABLE_ARCH_iq2000_FALSE='#'
14891 else
14892 SIM_ENABLE_ARCH_iq2000_TRUE='#'
14893 SIM_ENABLE_ARCH_iq2000_FALSE=
14894 fi
14895
14896
14897 sim_enable_arch_lm32=false
14898 case "${targ}" in
14899 all|lm32-*-*)
14900 if test "${targ}" = "${target}"; then
14901 SIM_PRIMARY_TARGET=lm32
14902 fi
14903 as_fn_append SIM_ENABLED_ARCHES " lm32"
14904 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
14905
14906 ac_config_commands="$ac_config_commands lm32/Makefile"
14907
14908 as_fn_append SIM_SUBDIRS " lm32"
14909
14910 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
14911
14912 ac_config_commands="$ac_config_commands depdir-lm32"
14913
14914
14915 sim_enable_arch_lm32=true
14916
14917 ;;
14918 esac
14919
14920
14921
14922
14923 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
14924 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
14925 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
14926 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
14927
14928 fi
14929
14930 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
14931
14932 if ${sim_enable_arch_lm32}; then
14933 SIM_ENABLE_ARCH_lm32_TRUE=
14934 SIM_ENABLE_ARCH_lm32_FALSE='#'
14935 else
14936 SIM_ENABLE_ARCH_lm32_TRUE='#'
14937 SIM_ENABLE_ARCH_lm32_FALSE=
14938 fi
14939
14940
14941 sim_enable_arch_m32c=false
14942 case "${targ}" in
14943 all|m32c-*-*)
14944 if test "${targ}" = "${target}"; then
14945 SIM_PRIMARY_TARGET=m32c
14946 fi
14947 as_fn_append SIM_ENABLED_ARCHES " m32c"
14948 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
14949
14950 ac_config_commands="$ac_config_commands m32c/Makefile"
14951
14952 as_fn_append SIM_SUBDIRS " m32c"
14953
14954 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
14955
14956 ac_config_commands="$ac_config_commands depdir-m32c"
14957
14958
14959 sim_enable_arch_m32c=true
14960
14961 ;;
14962 esac
14963
14964
14965
14966
14967 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
14968 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
14969 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
14970 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
14971
14972 fi
14973
14974 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
14975
14976 if ${sim_enable_arch_m32c}; then
14977 SIM_ENABLE_ARCH_m32c_TRUE=
14978 SIM_ENABLE_ARCH_m32c_FALSE='#'
14979 else
14980 SIM_ENABLE_ARCH_m32c_TRUE='#'
14981 SIM_ENABLE_ARCH_m32c_FALSE=
14982 fi
14983
14984
14985 sim_enable_arch_m32r=false
14986 case "${targ}" in
14987 all|m32r-*-*)
14988 if test "${targ}" = "${target}"; then
14989 SIM_PRIMARY_TARGET=m32r
14990 fi
14991 as_fn_append SIM_ENABLED_ARCHES " m32r"
14992 ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
14993
14994 ac_config_commands="$ac_config_commands m32r/Makefile"
14995
14996 as_fn_append SIM_SUBDIRS " m32r"
14997
14998 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
14999
15000 ac_config_commands="$ac_config_commands depdir-m32r"
15001
15002
15003 sim_enable_arch_m32r=true
15004
15005 ;;
15006 esac
15007
15008
15009
15010
15011 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15012 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15013 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15014 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15015
15016 fi
15017
15018 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15019
15020 if ${sim_enable_arch_m32r}; then
15021 SIM_ENABLE_ARCH_m32r_TRUE=
15022 SIM_ENABLE_ARCH_m32r_FALSE='#'
15023 else
15024 SIM_ENABLE_ARCH_m32r_TRUE='#'
15025 SIM_ENABLE_ARCH_m32r_FALSE=
15026 fi
15027
15028
15029 sim_enable_arch_m68hc11=false
15030 case "${targ}" in
15031 all|m68hc11-*-*|m6811-*-*)
15032 if test "${targ}" = "${target}"; then
15033 SIM_PRIMARY_TARGET=m68hc11
15034 fi
15035 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
15036 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
15037
15038 ac_config_commands="$ac_config_commands m68hc11/Makefile"
15039
15040 as_fn_append SIM_SUBDIRS " m68hc11"
15041
15042 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15043
15044 ac_config_commands="$ac_config_commands depdir-m68hc11"
15045
15046
15047 sim_enable_arch_m68hc11=true
15048
15049 ;;
15050 esac
15051
15052
15053
15054
15055 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15056 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15057 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15058 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15059
15060 fi
15061
15062 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15063
15064 if ${sim_enable_arch_m68hc11}; then
15065 SIM_ENABLE_ARCH_m68hc11_TRUE=
15066 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15067 else
15068 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15069 SIM_ENABLE_ARCH_m68hc11_FALSE=
15070 fi
15071
15072
15073 sim_enable_arch_mcore=false
15074 case "${targ}" in
15075 all|mcore-*-*)
15076 if test "${targ}" = "${target}"; then
15077 SIM_PRIMARY_TARGET=mcore
15078 fi
15079 as_fn_append SIM_ENABLED_ARCHES " mcore"
15080 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
15081
15082 ac_config_commands="$ac_config_commands mcore/Makefile"
15083
15084 as_fn_append SIM_SUBDIRS " mcore"
15085
15086 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15087
15088 ac_config_commands="$ac_config_commands depdir-mcore"
15089
15090
15091 sim_enable_arch_mcore=true
15092
15093 ;;
15094 esac
15095
15096
15097
15098
15099 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15100 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15101 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15102 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15103
15104 fi
15105
15106 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15107
15108 if ${sim_enable_arch_mcore}; then
15109 SIM_ENABLE_ARCH_mcore_TRUE=
15110 SIM_ENABLE_ARCH_mcore_FALSE='#'
15111 else
15112 SIM_ENABLE_ARCH_mcore_TRUE='#'
15113 SIM_ENABLE_ARCH_mcore_FALSE=
15114 fi
15115
15116
15117 sim_enable_arch_microblaze=false
15118 case "${targ}" in
15119 all|microblaze*-*-*)
15120 if test "${targ}" = "${target}"; then
15121 SIM_PRIMARY_TARGET=microblaze
15122 fi
15123 as_fn_append SIM_ENABLED_ARCHES " microblaze"
15124 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
15125
15126 ac_config_commands="$ac_config_commands microblaze/Makefile"
15127
15128 as_fn_append SIM_SUBDIRS " microblaze"
15129
15130 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15131
15132 ac_config_commands="$ac_config_commands depdir-microblaze"
15133
15134
15135 sim_enable_arch_microblaze=true
15136
15137 ;;
15138 esac
15139
15140
15141
15142
15143 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15144 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15145 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15146 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15147
15148 fi
15149
15150 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15151
15152 if ${sim_enable_arch_microblaze}; then
15153 SIM_ENABLE_ARCH_microblaze_TRUE=
15154 SIM_ENABLE_ARCH_microblaze_FALSE='#'
15155 else
15156 SIM_ENABLE_ARCH_microblaze_TRUE='#'
15157 SIM_ENABLE_ARCH_microblaze_FALSE=
15158 fi
15159
15160
15161 sim_enable_arch_mips=false
15162 case "${targ}" in
15163 all|mips*-*-*)
15164 if test "${targ}" = "${target}"; then
15165 SIM_PRIMARY_TARGET=mips
15166 fi
15167 as_fn_append SIM_ENABLED_ARCHES " mips"
15168
15169
15170 subdirs="$subdirs mips"
15171
15172
15173 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15174
15175 ac_config_commands="$ac_config_commands depdir-mips"
15176
15177
15178 sim_enable_arch_mips=true
15179 sim_igen=yes
15180 ;;
15181 esac
15182
15183
15184
15185
15186 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15187 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15188 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15189 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15190
15191 fi
15192
15193 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15194
15195 if ${sim_enable_arch_mips}; then
15196 SIM_ENABLE_ARCH_mips_TRUE=
15197 SIM_ENABLE_ARCH_mips_FALSE='#'
15198 else
15199 SIM_ENABLE_ARCH_mips_TRUE='#'
15200 SIM_ENABLE_ARCH_mips_FALSE=
15201 fi
15202
15203
15204 sim_enable_arch_mn10300=false
15205 case "${targ}" in
15206 all|mn10300*-*-*)
15207 if test "${targ}" = "${target}"; then
15208 SIM_PRIMARY_TARGET=mn10300
15209 fi
15210 as_fn_append SIM_ENABLED_ARCHES " mn10300"
15211 ac_config_files="$ac_config_files mn10300/Makefile.sim:mn10300/Makefile.in"
15212
15213 ac_config_commands="$ac_config_commands mn10300/Makefile"
15214
15215 as_fn_append SIM_SUBDIRS " mn10300"
15216
15217 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15218
15219 ac_config_commands="$ac_config_commands depdir-mn10300"
15220
15221
15222 sim_enable_arch_mn10300=true
15223 sim_igen=yes
15224 ;;
15225 esac
15226
15227
15228
15229
15230 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15231 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15232 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15233 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15234
15235 fi
15236
15237 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15238
15239 if ${sim_enable_arch_mn10300}; then
15240 SIM_ENABLE_ARCH_mn10300_TRUE=
15241 SIM_ENABLE_ARCH_mn10300_FALSE='#'
15242 else
15243 SIM_ENABLE_ARCH_mn10300_TRUE='#'
15244 SIM_ENABLE_ARCH_mn10300_FALSE=
15245 fi
15246
15247
15248 sim_enable_arch_moxie=false
15249 case "${targ}" in
15250 all|moxie-*-*)
15251 if test "${targ}" = "${target}"; then
15252 SIM_PRIMARY_TARGET=moxie
15253 fi
15254 as_fn_append SIM_ENABLED_ARCHES " moxie"
15255 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
15256
15257 ac_config_commands="$ac_config_commands moxie/Makefile"
15258
15259 as_fn_append SIM_SUBDIRS " moxie"
15260
15261 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15262
15263 ac_config_commands="$ac_config_commands depdir-moxie"
15264
15265
15266 sim_enable_arch_moxie=true
15267
15268 ;;
15269 esac
15270
15271
15272
15273
15274 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15275 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15276 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15277 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15278
15279 fi
15280
15281 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15282
15283 if ${sim_enable_arch_moxie}; then
15284 SIM_ENABLE_ARCH_moxie_TRUE=
15285 SIM_ENABLE_ARCH_moxie_FALSE='#'
15286 else
15287 SIM_ENABLE_ARCH_moxie_TRUE='#'
15288 SIM_ENABLE_ARCH_moxie_FALSE=
15289 fi
15290
15291
15292 sim_enable_arch_msp430=false
15293 case "${targ}" in
15294 all|msp430*-*-*)
15295 if test "${targ}" = "${target}"; then
15296 SIM_PRIMARY_TARGET=msp430
15297 fi
15298 as_fn_append SIM_ENABLED_ARCHES " msp430"
15299 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
15300
15301 ac_config_commands="$ac_config_commands msp430/Makefile"
15302
15303 as_fn_append SIM_SUBDIRS " msp430"
15304
15305 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15306
15307 ac_config_commands="$ac_config_commands depdir-msp430"
15308
15309
15310 sim_enable_arch_msp430=true
15311
15312 ;;
15313 esac
15314
15315
15316
15317
15318 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15319 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15320 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15321 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15322
15323 fi
15324
15325 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15326
15327 if ${sim_enable_arch_msp430}; then
15328 SIM_ENABLE_ARCH_msp430_TRUE=
15329 SIM_ENABLE_ARCH_msp430_FALSE='#'
15330 else
15331 SIM_ENABLE_ARCH_msp430_TRUE='#'
15332 SIM_ENABLE_ARCH_msp430_FALSE=
15333 fi
15334
15335
15336 sim_enable_arch_or1k=false
15337 case "${targ}" in
15338 all|or1k*-*-*)
15339 if test "${targ}" = "${target}"; then
15340 SIM_PRIMARY_TARGET=or1k
15341 fi
15342 as_fn_append SIM_ENABLED_ARCHES " or1k"
15343 ac_config_files="$ac_config_files or1k/Makefile.sim:or1k/Makefile.in"
15344
15345 ac_config_commands="$ac_config_commands or1k/Makefile"
15346
15347 as_fn_append SIM_SUBDIRS " or1k"
15348
15349 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15350
15351 ac_config_commands="$ac_config_commands depdir-or1k"
15352
15353
15354 sim_enable_arch_or1k=true
15355
15356 ;;
15357 esac
15358
15359
15360
15361
15362 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15363 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15364 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15365 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15366
15367 fi
15368
15369 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15370
15371 if ${sim_enable_arch_or1k}; then
15372 SIM_ENABLE_ARCH_or1k_TRUE=
15373 SIM_ENABLE_ARCH_or1k_FALSE='#'
15374 else
15375 SIM_ENABLE_ARCH_or1k_TRUE='#'
15376 SIM_ENABLE_ARCH_or1k_FALSE=
15377 fi
15378
15379
15380 sim_enable_arch_ppc=false
15381 case "${targ}" in
15382 all|powerpc*-*-*)
15383 if test "${targ}" = "${target}"; then
15384 SIM_PRIMARY_TARGET=ppc
15385 fi
15386 as_fn_append SIM_ENABLED_ARCHES " ppc"
15387 subdirs="$subdirs ppc"
15388
15389
15390 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15391
15392 ac_config_commands="$ac_config_commands depdir-ppc"
15393
15394
15395 sim_enable_arch_ppc=true
15396
15397 ;;
15398 esac
15399
15400
15401
15402
15403 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15404 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15405 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15406 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15407
15408 fi
15409
15410 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15411
15412 if ${sim_enable_arch_ppc}; then
15413 SIM_ENABLE_ARCH_ppc_TRUE=
15414 SIM_ENABLE_ARCH_ppc_FALSE='#'
15415 else
15416 SIM_ENABLE_ARCH_ppc_TRUE='#'
15417 SIM_ENABLE_ARCH_ppc_FALSE=
15418 fi
15419
15420
15421 sim_enable_arch_pru=false
15422 case "${targ}" in
15423 all|pru*-*-*)
15424 if test "${targ}" = "${target}"; then
15425 SIM_PRIMARY_TARGET=pru
15426 fi
15427 as_fn_append SIM_ENABLED_ARCHES " pru"
15428 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
15429
15430 ac_config_commands="$ac_config_commands pru/Makefile"
15431
15432 as_fn_append SIM_SUBDIRS " pru"
15433
15434 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15435
15436 ac_config_commands="$ac_config_commands depdir-pru"
15437
15438
15439 sim_enable_arch_pru=true
15440
15441 ;;
15442 esac
15443
15444
15445
15446
15447 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15448 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15449 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15450 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15451
15452 fi
15453
15454 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15455
15456 if ${sim_enable_arch_pru}; then
15457 SIM_ENABLE_ARCH_pru_TRUE=
15458 SIM_ENABLE_ARCH_pru_FALSE='#'
15459 else
15460 SIM_ENABLE_ARCH_pru_TRUE='#'
15461 SIM_ENABLE_ARCH_pru_FALSE=
15462 fi
15463
15464
15465 sim_enable_arch_riscv=false
15466 case "${targ}" in
15467 all|riscv*-*-*)
15468 if test "${targ}" = "${target}"; then
15469 SIM_PRIMARY_TARGET=riscv
15470 fi
15471 as_fn_append SIM_ENABLED_ARCHES " riscv"
15472 ac_config_files="$ac_config_files riscv/Makefile.sim:riscv/Makefile.in"
15473
15474 ac_config_commands="$ac_config_commands riscv/Makefile"
15475
15476 as_fn_append SIM_SUBDIRS " riscv"
15477
15478 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15479
15480 ac_config_commands="$ac_config_commands depdir-riscv"
15481
15482
15483 sim_enable_arch_riscv=true
15484
15485 ;;
15486 esac
15487
15488
15489
15490
15491 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15492 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15493 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15494 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15495
15496 fi
15497
15498 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15499
15500 if ${sim_enable_arch_riscv}; then
15501 SIM_ENABLE_ARCH_riscv_TRUE=
15502 SIM_ENABLE_ARCH_riscv_FALSE='#'
15503 else
15504 SIM_ENABLE_ARCH_riscv_TRUE='#'
15505 SIM_ENABLE_ARCH_riscv_FALSE=
15506 fi
15507
15508
15509 sim_enable_arch_rl78=false
15510 case "${targ}" in
15511 all|rl78-*-*)
15512 if test "${targ}" = "${target}"; then
15513 SIM_PRIMARY_TARGET=rl78
15514 fi
15515 as_fn_append SIM_ENABLED_ARCHES " rl78"
15516 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
15517
15518 ac_config_commands="$ac_config_commands rl78/Makefile"
15519
15520 as_fn_append SIM_SUBDIRS " rl78"
15521
15522 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15523
15524 ac_config_commands="$ac_config_commands depdir-rl78"
15525
15526
15527 sim_enable_arch_rl78=true
15528
15529 ;;
15530 esac
15531
15532
15533
15534
15535 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15536 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15537 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15538 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15539
15540 fi
15541
15542 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15543
15544 if ${sim_enable_arch_rl78}; then
15545 SIM_ENABLE_ARCH_rl78_TRUE=
15546 SIM_ENABLE_ARCH_rl78_FALSE='#'
15547 else
15548 SIM_ENABLE_ARCH_rl78_TRUE='#'
15549 SIM_ENABLE_ARCH_rl78_FALSE=
15550 fi
15551
15552
15553 sim_enable_arch_rx=false
15554 case "${targ}" in
15555 all|rx-*-*)
15556 if test "${targ}" = "${target}"; then
15557 SIM_PRIMARY_TARGET=rx
15558 fi
15559 as_fn_append SIM_ENABLED_ARCHES " rx"
15560 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
15561
15562 ac_config_commands="$ac_config_commands rx/Makefile"
15563
15564 as_fn_append SIM_SUBDIRS " rx"
15565
15566 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15567
15568 ac_config_commands="$ac_config_commands depdir-rx"
15569
15570
15571 sim_enable_arch_rx=true
15572
15573 ;;
15574 esac
15575
15576
15577
15578
15579 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15580 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15581 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15582 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15583
15584 fi
15585
15586 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15587
15588 if ${sim_enable_arch_rx}; then
15589 SIM_ENABLE_ARCH_rx_TRUE=
15590 SIM_ENABLE_ARCH_rx_FALSE='#'
15591 else
15592 SIM_ENABLE_ARCH_rx_TRUE='#'
15593 SIM_ENABLE_ARCH_rx_FALSE=
15594 fi
15595
15596
15597 sim_enable_arch_sh=false
15598 case "${targ}" in
15599 all|sh*-*-*)
15600 if test "${targ}" = "${target}"; then
15601 SIM_PRIMARY_TARGET=sh
15602 fi
15603 as_fn_append SIM_ENABLED_ARCHES " sh"
15604 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
15605
15606 ac_config_commands="$ac_config_commands sh/Makefile"
15607
15608 as_fn_append SIM_SUBDIRS " sh"
15609
15610 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15611
15612 ac_config_commands="$ac_config_commands depdir-sh"
15613
15614
15615 sim_enable_arch_sh=true
15616
15617 ;;
15618 esac
15619
15620
15621
15622
15623 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15624 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15625 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15626 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15627
15628 fi
15629
15630 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15631
15632 if ${sim_enable_arch_sh}; then
15633 SIM_ENABLE_ARCH_sh_TRUE=
15634 SIM_ENABLE_ARCH_sh_FALSE='#'
15635 else
15636 SIM_ENABLE_ARCH_sh_TRUE='#'
15637 SIM_ENABLE_ARCH_sh_FALSE=
15638 fi
15639
15640
15641 sim_enable_arch_erc32=false
15642 case "${targ}" in
15643 all|sparc-*-*)
15644 if test "${targ}" = "${target}"; then
15645 SIM_PRIMARY_TARGET=erc32
15646 fi
15647 as_fn_append SIM_ENABLED_ARCHES " erc32"
15648 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
15649
15650 ac_config_commands="$ac_config_commands erc32/Makefile"
15651
15652 as_fn_append SIM_SUBDIRS " erc32"
15653
15654 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15655
15656 ac_config_commands="$ac_config_commands depdir-erc32"
15657
15658
15659 sim_enable_arch_erc32=true
15660
15661 ;;
15662 esac
15663
15664
15665
15666
15667 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15668 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15669 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15670 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15671
15672 fi
15673
15674 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15675
15676 if ${sim_enable_arch_erc32}; then
15677 SIM_ENABLE_ARCH_erc32_TRUE=
15678 SIM_ENABLE_ARCH_erc32_FALSE='#'
15679 else
15680 SIM_ENABLE_ARCH_erc32_TRUE='#'
15681 SIM_ENABLE_ARCH_erc32_FALSE=
15682 fi
15683
15684
15685 sim_enable_arch_v850=false
15686 case "${targ}" in
15687 all|v850*-*-*)
15688 if test "${targ}" = "${target}"; then
15689 SIM_PRIMARY_TARGET=v850
15690 fi
15691 as_fn_append SIM_ENABLED_ARCHES " v850"
15692 ac_config_files="$ac_config_files v850/Makefile.sim:v850/Makefile.in"
15693
15694 ac_config_commands="$ac_config_commands v850/Makefile"
15695
15696 as_fn_append SIM_SUBDIRS " v850"
15697
15698 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15699
15700 ac_config_commands="$ac_config_commands depdir-v850"
15701
15702
15703 sim_enable_arch_v850=true
15704 sim_igen=yes
15705 ;;
15706 esac
15707
15708
15709
15710
15711 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15712 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15713 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15714 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15715
15716 fi
15717
15718 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15719
15720 if ${sim_enable_arch_v850}; then
15721 SIM_ENABLE_ARCH_v850_TRUE=
15722 SIM_ENABLE_ARCH_v850_FALSE='#'
15723 else
15724 SIM_ENABLE_ARCH_v850_TRUE='#'
15725 SIM_ENABLE_ARCH_v850_FALSE=
15726 fi
15727
15728
15729 done
15730
15731 if test "x${enable_example_sims}" = xyes; then
15732
15733
15734
15735
15736 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15737 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15738 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15739
15740 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15741
15742 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15743 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
15744
15745 ac_config_commands="$ac_config_commands example-synacor/Makefile"
15746
15747 as_fn_append SIM_SUBDIRS " example-synacor"
15748
15749 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15750
15751 ac_config_commands="$ac_config_commands depdir-example-synacor"
15752
15753
15754 fi
15755 if test "${enable_example_sims}" = "yes"; then
15756 SIM_ENABLE_ARCH_examples_TRUE=
15757 SIM_ENABLE_ARCH_examples_FALSE='#'
15758 else
15759 SIM_ENABLE_ARCH_examples_TRUE='#'
15760 SIM_ENABLE_ARCH_examples_FALSE=
15761 fi
15762
15763 fi
15764 if test "$sim_igen" = "yes"; then
15765 SIM_ENABLE_IGEN_TRUE=
15766 SIM_ENABLE_IGEN_FALSE='#'
15767 else
15768 SIM_ENABLE_IGEN_TRUE='#'
15769 SIM_ENABLE_IGEN_FALSE=
15770 fi
15771
15772 if test -n "$SIM_SUBDIRS"; then
15773 ENABLE_SIM_TRUE=
15774 ENABLE_SIM_FALSE='#'
15775 else
15776 ENABLE_SIM_TRUE='#'
15777 ENABLE_SIM_FALSE=
15778 fi
15779
15780
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15782 $as_echo_n "checking whether to force sim alignment... " >&6; }
15783 sim_alignment=
15784 # Check whether --enable-sim-alignment was given.
15785 if test "${enable_sim_alignment+set}" = set; then :
15786 enableval=$enable_sim_alignment; case "${enableval}" in
15787 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15788 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15789 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15790 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15791 esac
15792 fi
15793
15794 cat >>confdefs.h <<_ACEOF
15795 #define WITH_ALIGNMENT ${sim_alignment:-0}
15796 _ACEOF
15797
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15799 $as_echo "${sim_alignment:-no}" >&6; }
15800
15801
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15803 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15804 sim_assert="1"
15805 # Check whether --enable-sim-assert was given.
15806 if test "${enable_sim_assert+set}" = set; then :
15807 enableval=$enable_sim_assert; case "${enableval}" in
15808 yes) sim_assert="1";;
15809 no) sim_assert="0";;
15810 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15811 esac
15812 fi
15813
15814 cat >>confdefs.h <<_ACEOF
15815 #define WITH_ASSERT $sim_assert
15816 _ACEOF
15817
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15819 $as_echo "$sim_assert" >&6; }
15820
15821
15822 cgen_maint=no
15823 cgen=guile
15824 cgendir='$(srcdir)/../../cgen'
15825 # Check whether --enable-cgen-maint was given.
15826 if test "${enable_cgen_maint+set}" = set; then :
15827 enableval=$enable_cgen_maint; case "${enableval}" in
15828 yes) cgen_maint=yes ;;
15829 no) cgen_maint=no ;;
15830 *)
15831 # Argument is a directory where cgen can be found. In some
15832 # future world cgen could be installable, but right now this
15833 # is not the case. Instead we assume the directory is a path
15834 # to the cgen source tree.
15835 cgen_maint=yes
15836 if test -r ${enableval}/iformat.scm; then
15837 # This looks like a cgen source tree.
15838 cgendir=${enableval}
15839 else
15840 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15841 fi
15842 ;;
15843 esac
15844 fi
15845 if test x${cgen_maint} != xno ; then
15846 CGEN_MAINT=''
15847 else
15848 CGEN_MAINT='#'
15849 fi
15850
15851
15852
15853
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15855 $as_echo_n "checking for sim debug setting... " >&6; }
15856 sim_debug="0"
15857 # Check whether --enable-sim-debug was given.
15858 if test "${enable_sim_debug+set}" = set; then :
15859 enableval=$enable_sim_debug; case "${enableval}" in
15860 yes) sim_debug="7";;
15861 no) sim_debug="0";;
15862 *) sim_debug="($enableval)";;
15863 esac
15864 fi
15865 if test "$sim_debug" != "0"; then
15866
15867 cat >>confdefs.h <<_ACEOF
15868 #define DEBUG $sim_debug
15869 _ACEOF
15870
15871 fi
15872
15873 cat >>confdefs.h <<_ACEOF
15874 #define WITH_DEBUG $sim_debug
15875 _ACEOF
15876
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15878 $as_echo "$sim_debug" >&6; }
15879
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15881 $as_echo_n "checking whether to force sim endianness... " >&6; }
15882 sim_endian=
15883 # Check whether --enable-sim-endian was given.
15884 if test "${enable_sim_endian+set}" = set; then :
15885 enableval=$enable_sim_endian; case "${enableval}" in
15886 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15887 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15888 yes | no) ;;
15889 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15890 esac
15891 fi
15892
15893 cat >>confdefs.h <<_ACEOF
15894 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15895 _ACEOF
15896
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15898 $as_echo "${sim_alignment:-no}" >&6; }
15899
15900
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15902 $as_echo_n "checking default sim environment setting... " >&6; }
15903 sim_environment="ALL_ENVIRONMENT"
15904 # Check whether --enable-sim-environment was given.
15905 if test "${enable_sim_environment+set}" = set; then :
15906 enableval=$enable_sim_environment; case "${enableval}" in
15907 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15908 user | USER) sim_environment="USER_ENVIRONMENT";;
15909 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15910 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15911 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15912 esac
15913 fi
15914
15915 cat >>confdefs.h <<_ACEOF
15916 #define WITH_ENVIRONMENT $sim_environment
15917 _ACEOF
15918
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15920 $as_echo "$sim_environment" >&6; }
15921
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15923 $as_echo_n "checking for sim hardware settings... " >&6; }
15924 # Check whether --enable-sim-hardware was given.
15925 if test "${enable_sim_hardware+set}" = set; then :
15926 enableval=$enable_sim_hardware;
15927 else
15928 enable_sim_hardware="yes"
15929 fi
15930
15931 sim_hw_sockser=
15932 if test "$enable_sim_hardware" = no; then
15933 sim_hw_cflags="-DWITH_HW=0"
15934 elif test "$enable_sim_hardware" = yes; then
15935 sim_hw_cflags="-DWITH_HW=1"
15936 sim_hw_sockser="dv-sockser.o"
15937 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15938 else
15939 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15940 fi
15941 if test "$enable_sim_hardware" = "yes"; then
15942 SIM_ENABLE_HW_TRUE=
15943 SIM_ENABLE_HW_FALSE='#'
15944 else
15945 SIM_ENABLE_HW_TRUE='#'
15946 SIM_ENABLE_HW_FALSE=
15947 fi
15948
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15950 $as_echo "${enable_sim_hardware}" >&6; }
15951 SIM_HW_CFLAGS=$sim_hw_cflags
15952
15953 SIM_HW_SOCKSER=$sim_hw_sockser
15954
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15957 $as_echo_n "checking sim inline settings... " >&6; }
15958 sim_inline="-DDEFAULT_INLINE=0"
15959 # Check whether --enable-sim-inline was given.
15960 if test "${enable_sim_inline+set}" = set; then :
15961 enableval=$enable_sim_inline; sim_inline=""
15962 case "$enableval" in
15963 no) sim_inline="-DDEFAULT_INLINE=0";;
15964 0) sim_inline="-DDEFAULT_INLINE=0";;
15965 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15966 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15967 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15968 new_flag=""
15969 case "$x" in
15970 *_INLINE=*) new_flag="-D$x";;
15971 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15972 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15973 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15974 esac
15975 if test x"$sim_inline" = x""; then
15976 sim_inline="$new_flag"
15977 else
15978 sim_inline="$sim_inline $new_flag"
15979 fi
15980 done;;
15981 esac
15982
15983 fi
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15985 $as_echo "$sim_inline" >&6; }
15986 SIM_INLINE=$sim_inline
15987
15988
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15990 $as_echo_n "checking for sim profile settings... " >&6; }
15991 profile="1"
15992 sim_profile="-1"
15993 # Check whether --enable-sim-profile was given.
15994 if test "${enable_sim_profile+set}" = set; then :
15995 enableval=$enable_sim_profile; case "${enableval}" in
15996 yes) profile="1" sim_profile="-1";;
15997 no) profile="0" sim_profile="0";;
15998 [-0-9]*)
15999 profile="(${enableval})" sim_profile="(${enableval})";;
16000 [a-z]*)
16001 profile="1"
16002 sim_profile=""
16003 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16004 if test x"$sim_profile" = x; then
16005 sim_profile="(PROFILE_$x"
16006 else
16007 sim_profile="${sim_profile}|PROFILE_$x"
16008 fi
16009 done
16010 sim_profile="$sim_profile)" ;;
16011 esac
16012 fi
16013
16014 cat >>confdefs.h <<_ACEOF
16015 #define PROFILE $profile
16016 _ACEOF
16017
16018
16019 cat >>confdefs.h <<_ACEOF
16020 #define WITH_PROFILE $sim_profile
16021 _ACEOF
16022
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16024 $as_echo "$sim_profile" >&6; }
16025
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16027 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16028 # Check whether --enable-sim-reserved-bits was given.
16029 if test "${enable_sim_reserved_bits+set}" = set; then :
16030 enableval=$enable_sim_reserved_bits; case "${enableval}" in
16031 yes|no) ;;
16032 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16033 esac
16034 fi
16035
16036 if test "x${enable_sim_reserved_bits}" != xno; then
16037 sim_reserved_bits=1
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16039 $as_echo "yes" >&6; }
16040 else
16041 sim_reserved_bits=0
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16043 $as_echo "no" >&6; }
16044 fi
16045
16046 cat >>confdefs.h <<_ACEOF
16047 #define WITH_RESERVED_BITS $sim_reserved_bits
16048 _ACEOF
16049
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16052 $as_echo_n "checking for sim cache size... " >&6; }
16053 sim_scache="16384"
16054 # Check whether --enable-sim-scache was given.
16055 if test "${enable_sim_scache+set}" = set; then :
16056 enableval=$enable_sim_scache; case "${enableval}" in
16057 yes) ;;
16058 no) sim_scache="0";;
16059 [0-9]*) sim_scache="${enableval}";;
16060 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16061 esac
16062 fi
16063
16064
16065 cat >>confdefs.h <<_ACEOF
16066 #define WITH_SCACHE $sim_scache
16067 _ACEOF
16068
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16070 $as_echo "$sim_scache" >&6; }
16071
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16073 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16074 sim_stdio="0"
16075 # Check whether --enable-sim-stdio was given.
16076 if test "${enable_sim_stdio+set}" = set; then :
16077 enableval=$enable_sim_stdio; case "${enableval}" in
16078 yes) sim_stdio="DO_USE_STDIO";;
16079 no) sim_stdio="DONT_USE_STDIO";;
16080 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16081 esac
16082 fi
16083
16084 cat >>confdefs.h <<_ACEOF
16085 #define WITH_STDIO $sim_stdio
16086 _ACEOF
16087
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16089 $as_echo "$sim_stdio" >&6; }
16090
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16092 $as_echo_n "checking for sim trace settings... " >&6; }
16093 sim_trace="~TRACE_debug"
16094 # Check whether --enable-sim-trace was given.
16095 if test "${enable_sim_trace+set}" = set; then :
16096 enableval=$enable_sim_trace; case "${enableval}" in
16097 yes) sim_trace="-1";;
16098 no) sim_trace="0";;
16099 [-0-9]*)
16100 sim_trace="'(${enableval})'";;
16101 [[:lower:]]*)
16102 sim_trace=""
16103 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16104 if test x"$sim_trace" = x; then
16105 sim_trace="(TRACE_$x"
16106 else
16107 sim_trace="${sim_trace}|TRACE_$x"
16108 fi
16109 done
16110 sim_trace="$sim_trace)" ;;
16111 esac
16112 fi
16113
16114 cat >>confdefs.h <<_ACEOF
16115 #define WITH_TRACE $sim_trace
16116 _ACEOF
16117
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16119 $as_echo "$sim_trace" >&6; }
16120
16121
16122 # Check whether --enable-werror was given.
16123 if test "${enable_werror+set}" = set; then :
16124 enableval=$enable_werror; case "${enableval}" in
16125 yes | y) ERROR_ON_WARNING="yes" ;;
16126 no | n) ERROR_ON_WARNING="no" ;;
16127 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16128 esac
16129 fi
16130
16131
16132 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16133 ERROR_ON_WARNING=yes
16134 fi
16135
16136 WERROR_CFLAGS=""
16137 if test "${ERROR_ON_WARNING}" = yes ; then
16138 WERROR_CFLAGS="-Werror"
16139 fi
16140
16141 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
16142 -Wno-unused -Wunused-value -Wunused-function
16143 -Wno-switch -Wno-char-subscripts
16144 -Wempty-body -Wunused-but-set-parameter
16145 -Wno-error=maybe-uninitialized
16146 -Wmissing-declarations
16147 -Wmissing-prototypes
16148 -Wdeclaration-after-statement -Wmissing-parameter-type
16149 -Wpointer-sign
16150 -Wold-style-declaration -Wold-style-definition
16151 "
16152
16153 # Enable -Wno-format by default when using gcc on mingw since many
16154 # GCC versions complain about %I64.
16155 case "${host}" in
16156 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
16157 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
16158 esac
16159
16160 # Check whether --enable-build-warnings was given.
16161 if test "${enable_build_warnings+set}" = set; then :
16162 enableval=$enable_build_warnings; case "${enableval}" in
16163 yes) ;;
16164 no) build_warnings="-w";;
16165 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16166 build_warnings="${build_warnings} ${t}";;
16167 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16168 build_warnings="${t} ${build_warnings}";;
16169 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16170 esac
16171 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16172 echo "Setting compiler warning flags = $build_warnings" 6>&1
16173 fi
16174 fi
16175 # Check whether --enable-sim-build-warnings was given.
16176 if test "${enable_sim_build_warnings+set}" = set; then :
16177 enableval=$enable_sim_build_warnings; case "${enableval}" in
16178 yes) ;;
16179 no) build_warnings="-w";;
16180 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16181 build_warnings="${build_warnings} ${t}";;
16182 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16183 build_warnings="${t} ${build_warnings}";;
16184 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16185 esac
16186 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16187 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16188 fi
16189 fi
16190 WARN_CFLAGS=""
16191 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16192 then
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16194 $as_echo_n "checking compiler warning flags... " >&6; }
16195 # Separate out the -Werror flag as some files just cannot be
16196 # compiled with it enabled.
16197 for w in ${build_warnings}; do
16198 case $w in
16199 -Werr*) WERROR_CFLAGS=-Werror ;;
16200 *) # Check that GCC accepts it
16201 saved_CFLAGS="$CFLAGS"
16202 CFLAGS="$CFLAGS -Werror $w"
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205
16206 int
16207 main ()
16208 {
16209
16210 ;
16211 return 0;
16212 }
16213 _ACEOF
16214 if ac_fn_c_try_compile "$LINENO"; then :
16215 WARN_CFLAGS="${WARN_CFLAGS} $w"
16216 fi
16217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218 CFLAGS="$saved_CFLAGS"
16219 esac
16220 done
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16222 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16223 fi
16224
16225
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16227 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16228 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 #include <unistd.h>
16234 int
16235 main ()
16236 {
16237 extern int getopt (int, char *const*, const char *);
16238 ;
16239 return 0;
16240 }
16241 _ACEOF
16242 if ac_fn_c_try_compile "$LINENO"; then :
16243 sim_cv_decl_getopt_unistd_h=yes
16244 else
16245 sim_cv_decl_getopt_unistd_h=no
16246 fi
16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16248 fi
16249
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
16251 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
16252 if test $sim_cv_decl_getopt_unistd_h = yes; then
16253
16254 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16255
16256 fi
16257
16258
16259
16260
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16262 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16263 # Check whether --enable-sim-frv-trapdump was given.
16264 if test "${enable_sim_frv_trapdump+set}" = set; then :
16265 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16266 yes|no) ;;
16267 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16268 esac
16269 fi
16270
16271 if test "x${enable_sim_frv_trapdump}" = xyes; then
16272 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16274 $as_echo "yes" >&6; }
16275 else
16276 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16278 $as_echo "no" >&6; }
16279 fi
16280
16281
16282
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
16284 $as_echo_n "checking mips subtarget... " >&6; }
16285 SIM_MIPS_SUBTARGET=
16286 case ${target} in #(
16287 mips64vr*-*-*) :
16288 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16289 mips*tx39*) :
16290 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
16291 mips*-sde-elf*) :
16292 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16293 mips*-mti-elf*) :
16294 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16295 mipsisa32*-*-*) :
16296 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16297 mipsisa64*-*-*) :
16298 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16299 *) :
16300 ;;
16301 esac
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
16303 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
16304
16305
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
16307 $as_echo_n "checking mips bitsize... " >&6; }
16308 SIM_MIPS_BITSIZE=64
16309 case ${target} in #(
16310 mips*-sde-elf*) :
16311 SIM_MIPS_BITSIZE=64 ;; #(
16312 mips*-mti-elf*) :
16313 SIM_MIPS_BITSIZE=64 ;; #(
16314 mips64*-*-*) :
16315 SIM_MIPS_BITSIZE=64 ;; #(
16316 mips16*-*-*) :
16317 SIM_MIPS_BITSIZE=64 ;; #(
16318 mipsisa32*-*-*) :
16319 SIM_MIPS_BITSIZE=32 ;; #(
16320 mipsisa64*-*-*) :
16321 SIM_MIPS_BITSIZE=64 ;; #(
16322 mips*-*-*) :
16323 SIM_MIPS_BITSIZE=32 ;; #(
16324 *) :
16325 ;;
16326 esac
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
16328 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
16329
16330
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
16332 $as_echo_n "checking mips fpu bitsize... " >&6; }
16333 SIM_MIPS_FPU_BITSIZE=64
16334 case ${target} in #(
16335 mips*tx39*) :
16336 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16337 mips*-sde-elf*) :
16338 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16339 mips*-mti-elf*) :
16340 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16341 mipsisa32*-*-*) :
16342 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16343 mipsisa64*-*-*) :
16344 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16345 mips*-*-*) :
16346 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16347 *) :
16348 ;;
16349 esac
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
16351 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16352
16353
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16355 $as_echo_n "checking riscv bitsize... " >&6; }
16356 SIM_RISCV_BITSIZE=64
16357 case $target in #(
16358 riscv32*) :
16359 SIM_RISCV_BITSIZE=32 ;; #(
16360 *) :
16361 ;;
16362 esac
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
16364 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
16365
16366
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16368 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16369 # Check whether --enable-sim-rx-cycle-accurate was given.
16370 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16371 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16372 yes | no) ;;
16373 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16374 esac
16375 fi
16376
16377 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16378 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16380 $as_echo "yes" >&6; }
16381 else
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16383 $as_echo "no" >&6; }
16384 fi
16385
16386
16387
16388 include_makefile="include"
16389
16390
16391 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16392
16393 cat >confcache <<\_ACEOF
16394 # This file is a shell script that caches the results of configure
16395 # tests run on this system so they can be shared between configure
16396 # scripts and configure runs, see configure's option --config-cache.
16397 # It is not useful on other systems. If it contains results you don't
16398 # want to keep, you may remove or edit it.
16399 #
16400 # config.status only pays attention to the cache file if you give it
16401 # the --recheck option to rerun configure.
16402 #
16403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16405 # following values.
16406
16407 _ACEOF
16408
16409 # The following way of writing the cache mishandles newlines in values,
16410 # but we know of no workaround that is simple, portable, and efficient.
16411 # So, we kill variables containing newlines.
16412 # Ultrix sh set writes to stderr and can't be redirected directly,
16413 # and sets the high bit in the cache file unless we assign to the vars.
16414 (
16415 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16416 eval ac_val=\$$ac_var
16417 case $ac_val in #(
16418 *${as_nl}*)
16419 case $ac_var in #(
16420 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16421 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16422 esac
16423 case $ac_var in #(
16424 _ | IFS | as_nl) ;; #(
16425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16426 *) { eval $ac_var=; unset $ac_var;} ;;
16427 esac ;;
16428 esac
16429 done
16430
16431 (set) 2>&1 |
16432 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16433 *${as_nl}ac_space=\ *)
16434 # `set' does not quote correctly, so add quotes: double-quote
16435 # substitution turns \\\\ into \\, and sed turns \\ into \.
16436 sed -n \
16437 "s/'/'\\\\''/g;
16438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16439 ;; #(
16440 *)
16441 # `set' quotes correctly as required by POSIX, so do not add quotes.
16442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16443 ;;
16444 esac |
16445 sort
16446 ) |
16447 sed '
16448 /^ac_cv_env_/b end
16449 t clear
16450 :clear
16451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16452 t end
16453 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16454 :end' >>confcache
16455 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16456 if test -w "$cache_file"; then
16457 if test "x$cache_file" != "x/dev/null"; then
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16459 $as_echo "$as_me: updating cache $cache_file" >&6;}
16460 if test ! -f "$cache_file" || test -h "$cache_file"; then
16461 cat confcache >"$cache_file"
16462 else
16463 case $cache_file in #(
16464 */* | ?:*)
16465 mv -f confcache "$cache_file"$$ &&
16466 mv -f "$cache_file"$$ "$cache_file" ;; #(
16467 *)
16468 mv -f confcache "$cache_file" ;;
16469 esac
16470 fi
16471 fi
16472 else
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16474 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16475 fi
16476 fi
16477 rm -f confcache
16478
16479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16480 # Let make expand exec_prefix.
16481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16482
16483 DEFS=-DHAVE_CONFIG_H
16484
16485 ac_libobjs=
16486 ac_ltlibobjs=
16487 U=
16488 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16489 # 1. Remove the extension, and $U if already installed.
16490 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16491 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16492 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16493 # will be set to the directory where LIBOBJS objects are built.
16494 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16495 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16496 done
16497 LIBOBJS=$ac_libobjs
16498
16499 LTLIBOBJS=$ac_ltlibobjs
16500
16501
16502
16503 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16504 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16506 fi
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16508 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16509 if test -n "$am_sleep_pid"; then
16510 # Hide warnings about reused PIDs.
16511 wait $am_sleep_pid 2>/dev/null
16512 fi
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16514 $as_echo "done" >&6; }
16515 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16516 as_fn_error $? "conditional \"AMDEP\" was never defined.
16517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16518 fi
16519 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16520 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16522 fi
16523 if test -n "$EXEEXT"; then
16524 am__EXEEXT_TRUE=
16525 am__EXEEXT_FALSE='#'
16526 else
16527 am__EXEEXT_TRUE='#'
16528 am__EXEEXT_FALSE=
16529 fi
16530
16531 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16532 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16534 fi
16535 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16536 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16538 fi
16539 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16540 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16542 fi
16543 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16544 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16546 fi
16547 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16548 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16550 fi
16551 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16552 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16554 fi
16555 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16556 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16558 fi
16559 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16560 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16562 fi
16563 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16564 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16566 fi
16567 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16568 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16570 fi
16571 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16572 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16574 fi
16575 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16576 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16578 fi
16579 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16580 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16582 fi
16583 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16584 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16586 fi
16587 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16588 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16590 fi
16591 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16592 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16594 fi
16595 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16596 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16598 fi
16599 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16600 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16602 fi
16603 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16604 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16606 fi
16607 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16608 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16610 fi
16611 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16612 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16614 fi
16615 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16616 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16618 fi
16619 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16620 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16622 fi
16623 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16624 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16626 fi
16627 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16628 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16630 fi
16631 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16632 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16634 fi
16635 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16636 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16638 fi
16639 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16640 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16642 fi
16643 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16644 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16646 fi
16647 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16648 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16650 fi
16651 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16652 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16654 fi
16655 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16656 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16658 fi
16659 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
16660 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
16661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16662 fi
16663 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16664 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16666 fi
16667 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16668 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16670 fi
16671
16672 : "${CONFIG_STATUS=./config.status}"
16673 ac_write_fail=0
16674 ac_clean_files_save=$ac_clean_files
16675 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16677 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16678 as_write_fail=0
16679 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16680 #! $SHELL
16681 # Generated by $as_me.
16682 # Run this file to recreate the current configuration.
16683 # Compiler output produced by configure, useful for debugging
16684 # configure, is in config.log if it exists.
16685
16686 debug=false
16687 ac_cs_recheck=false
16688 ac_cs_silent=false
16689
16690 SHELL=\${CONFIG_SHELL-$SHELL}
16691 export SHELL
16692 _ASEOF
16693 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16694 ## -------------------- ##
16695 ## M4sh Initialization. ##
16696 ## -------------------- ##
16697
16698 # Be more Bourne compatible
16699 DUALCASE=1; export DUALCASE # for MKS sh
16700 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16701 emulate sh
16702 NULLCMD=:
16703 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16704 # is contrary to our usage. Disable this feature.
16705 alias -g '${1+"$@"}'='"$@"'
16706 setopt NO_GLOB_SUBST
16707 else
16708 case `(set -o) 2>/dev/null` in #(
16709 *posix*) :
16710 set -o posix ;; #(
16711 *) :
16712 ;;
16713 esac
16714 fi
16715
16716
16717 as_nl='
16718 '
16719 export as_nl
16720 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16721 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16723 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16724 # Prefer a ksh shell builtin over an external printf program on Solaris,
16725 # but without wasting forks for bash or zsh.
16726 if test -z "$BASH_VERSION$ZSH_VERSION" \
16727 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16728 as_echo='print -r --'
16729 as_echo_n='print -rn --'
16730 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16731 as_echo='printf %s\n'
16732 as_echo_n='printf %s'
16733 else
16734 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16735 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16736 as_echo_n='/usr/ucb/echo -n'
16737 else
16738 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16739 as_echo_n_body='eval
16740 arg=$1;
16741 case $arg in #(
16742 *"$as_nl"*)
16743 expr "X$arg" : "X\\(.*\\)$as_nl";
16744 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16745 esac;
16746 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16747 '
16748 export as_echo_n_body
16749 as_echo_n='sh -c $as_echo_n_body as_echo'
16750 fi
16751 export as_echo_body
16752 as_echo='sh -c $as_echo_body as_echo'
16753 fi
16754
16755 # The user is always right.
16756 if test "${PATH_SEPARATOR+set}" != set; then
16757 PATH_SEPARATOR=:
16758 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16759 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16760 PATH_SEPARATOR=';'
16761 }
16762 fi
16763
16764
16765 # IFS
16766 # We need space, tab and new line, in precisely that order. Quoting is
16767 # there to prevent editors from complaining about space-tab.
16768 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16769 # splitting by setting IFS to empty value.)
16770 IFS=" "" $as_nl"
16771
16772 # Find who we are. Look in the path if we contain no directory separator.
16773 as_myself=
16774 case $0 in #((
16775 *[\\/]* ) as_myself=$0 ;;
16776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16777 for as_dir in $PATH
16778 do
16779 IFS=$as_save_IFS
16780 test -z "$as_dir" && as_dir=.
16781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16782 done
16783 IFS=$as_save_IFS
16784
16785 ;;
16786 esac
16787 # We did not find ourselves, most probably we were run as `sh COMMAND'
16788 # in which case we are not to be found in the path.
16789 if test "x$as_myself" = x; then
16790 as_myself=$0
16791 fi
16792 if test ! -f "$as_myself"; then
16793 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16794 exit 1
16795 fi
16796
16797 # Unset variables that we do not need and which cause bugs (e.g. in
16798 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16799 # suppresses any "Segmentation fault" message there. '((' could
16800 # trigger a bug in pdksh 5.2.14.
16801 for as_var in BASH_ENV ENV MAIL MAILPATH
16802 do eval test x\${$as_var+set} = xset \
16803 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16804 done
16805 PS1='$ '
16806 PS2='> '
16807 PS4='+ '
16808
16809 # NLS nuisances.
16810 LC_ALL=C
16811 export LC_ALL
16812 LANGUAGE=C
16813 export LANGUAGE
16814
16815 # CDPATH.
16816 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16817
16818
16819 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16820 # ----------------------------------------
16821 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16822 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16823 # script with STATUS, using 1 if that was 0.
16824 as_fn_error ()
16825 {
16826 as_status=$1; test $as_status -eq 0 && as_status=1
16827 if test "$4"; then
16828 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16829 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16830 fi
16831 $as_echo "$as_me: error: $2" >&2
16832 as_fn_exit $as_status
16833 } # as_fn_error
16834
16835
16836 # as_fn_set_status STATUS
16837 # -----------------------
16838 # Set $? to STATUS, without forking.
16839 as_fn_set_status ()
16840 {
16841 return $1
16842 } # as_fn_set_status
16843
16844 # as_fn_exit STATUS
16845 # -----------------
16846 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16847 as_fn_exit ()
16848 {
16849 set +e
16850 as_fn_set_status $1
16851 exit $1
16852 } # as_fn_exit
16853
16854 # as_fn_unset VAR
16855 # ---------------
16856 # Portably unset VAR.
16857 as_fn_unset ()
16858 {
16859 { eval $1=; unset $1;}
16860 }
16861 as_unset=as_fn_unset
16862 # as_fn_append VAR VALUE
16863 # ----------------------
16864 # Append the text in VALUE to the end of the definition contained in VAR. Take
16865 # advantage of any shell optimizations that allow amortized linear growth over
16866 # repeated appends, instead of the typical quadratic growth present in naive
16867 # implementations.
16868 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16869 eval 'as_fn_append ()
16870 {
16871 eval $1+=\$2
16872 }'
16873 else
16874 as_fn_append ()
16875 {
16876 eval $1=\$$1\$2
16877 }
16878 fi # as_fn_append
16879
16880 # as_fn_arith ARG...
16881 # ------------------
16882 # Perform arithmetic evaluation on the ARGs, and store the result in the
16883 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16884 # must be portable across $(()) and expr.
16885 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16886 eval 'as_fn_arith ()
16887 {
16888 as_val=$(( $* ))
16889 }'
16890 else
16891 as_fn_arith ()
16892 {
16893 as_val=`expr "$@" || test $? -eq 1`
16894 }
16895 fi # as_fn_arith
16896
16897
16898 if expr a : '\(a\)' >/dev/null 2>&1 &&
16899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16900 as_expr=expr
16901 else
16902 as_expr=false
16903 fi
16904
16905 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16906 as_basename=basename
16907 else
16908 as_basename=false
16909 fi
16910
16911 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16912 as_dirname=dirname
16913 else
16914 as_dirname=false
16915 fi
16916
16917 as_me=`$as_basename -- "$0" ||
16918 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16919 X"$0" : 'X\(//\)$' \| \
16920 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16921 $as_echo X/"$0" |
16922 sed '/^.*\/\([^/][^/]*\)\/*$/{
16923 s//\1/
16924 q
16925 }
16926 /^X\/\(\/\/\)$/{
16927 s//\1/
16928 q
16929 }
16930 /^X\/\(\/\).*/{
16931 s//\1/
16932 q
16933 }
16934 s/.*/./; q'`
16935
16936 # Avoid depending upon Character Ranges.
16937 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16938 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16939 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16940 as_cr_digits='0123456789'
16941 as_cr_alnum=$as_cr_Letters$as_cr_digits
16942
16943 ECHO_C= ECHO_N= ECHO_T=
16944 case `echo -n x` in #(((((
16945 -n*)
16946 case `echo 'xy\c'` in
16947 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16948 xy) ECHO_C='\c';;
16949 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16950 ECHO_T=' ';;
16951 esac;;
16952 *)
16953 ECHO_N='-n';;
16954 esac
16955
16956 rm -f conf$$ conf$$.exe conf$$.file
16957 if test -d conf$$.dir; then
16958 rm -f conf$$.dir/conf$$.file
16959 else
16960 rm -f conf$$.dir
16961 mkdir conf$$.dir 2>/dev/null
16962 fi
16963 if (echo >conf$$.file) 2>/dev/null; then
16964 if ln -s conf$$.file conf$$ 2>/dev/null; then
16965 as_ln_s='ln -s'
16966 # ... but there are two gotchas:
16967 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16968 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16969 # In both cases, we have to default to `cp -pR'.
16970 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16971 as_ln_s='cp -pR'
16972 elif ln conf$$.file conf$$ 2>/dev/null; then
16973 as_ln_s=ln
16974 else
16975 as_ln_s='cp -pR'
16976 fi
16977 else
16978 as_ln_s='cp -pR'
16979 fi
16980 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16981 rmdir conf$$.dir 2>/dev/null
16982
16983
16984 # as_fn_mkdir_p
16985 # -------------
16986 # Create "$as_dir" as a directory, including parents if necessary.
16987 as_fn_mkdir_p ()
16988 {
16989
16990 case $as_dir in #(
16991 -*) as_dir=./$as_dir;;
16992 esac
16993 test -d "$as_dir" || eval $as_mkdir_p || {
16994 as_dirs=
16995 while :; do
16996 case $as_dir in #(
16997 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16998 *) as_qdir=$as_dir;;
16999 esac
17000 as_dirs="'$as_qdir' $as_dirs"
17001 as_dir=`$as_dirname -- "$as_dir" ||
17002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17003 X"$as_dir" : 'X\(//\)[^/]' \| \
17004 X"$as_dir" : 'X\(//\)$' \| \
17005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17006 $as_echo X"$as_dir" |
17007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17008 s//\1/
17009 q
17010 }
17011 /^X\(\/\/\)[^/].*/{
17012 s//\1/
17013 q
17014 }
17015 /^X\(\/\/\)$/{
17016 s//\1/
17017 q
17018 }
17019 /^X\(\/\).*/{
17020 s//\1/
17021 q
17022 }
17023 s/.*/./; q'`
17024 test -d "$as_dir" && break
17025 done
17026 test -z "$as_dirs" || eval "mkdir $as_dirs"
17027 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17028
17029
17030 } # as_fn_mkdir_p
17031 if mkdir -p . 2>/dev/null; then
17032 as_mkdir_p='mkdir -p "$as_dir"'
17033 else
17034 test -d ./-p && rmdir ./-p
17035 as_mkdir_p=false
17036 fi
17037
17038
17039 # as_fn_executable_p FILE
17040 # -----------------------
17041 # Test if FILE is an executable regular file.
17042 as_fn_executable_p ()
17043 {
17044 test -f "$1" && test -x "$1"
17045 } # as_fn_executable_p
17046 as_test_x='test -x'
17047 as_executable_p=as_fn_executable_p
17048
17049 # Sed expression to map a string onto a valid CPP name.
17050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17051
17052 # Sed expression to map a string onto a valid variable name.
17053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17054
17055
17056 exec 6>&1
17057 ## ----------------------------------- ##
17058 ## Main body of $CONFIG_STATUS script. ##
17059 ## ----------------------------------- ##
17060 _ASEOF
17061 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17062
17063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17064 # Save the log message, to keep $0 and so on meaningful, and to
17065 # report actual input values of CONFIG_FILES etc. instead of their
17066 # values after options handling.
17067 ac_log="
17068 This file was extended by sim $as_me 0, which was
17069 generated by GNU Autoconf 2.69. Invocation command line was
17070
17071 CONFIG_FILES = $CONFIG_FILES
17072 CONFIG_HEADERS = $CONFIG_HEADERS
17073 CONFIG_LINKS = $CONFIG_LINKS
17074 CONFIG_COMMANDS = $CONFIG_COMMANDS
17075 $ $0 $@
17076
17077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17078 "
17079
17080 _ACEOF
17081
17082 case $ac_config_files in *"
17083 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17084 esac
17085
17086 case $ac_config_headers in *"
17087 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17088 esac
17089
17090
17091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17092 # Files that config.status was made for.
17093 config_files="$ac_config_files"
17094 config_headers="$ac_config_headers"
17095 config_commands="$ac_config_commands"
17096
17097 _ACEOF
17098
17099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17100 ac_cs_usage="\
17101 \`$as_me' instantiates files and other configuration actions
17102 from templates according to the current configuration. Unless the files
17103 and actions are specified as TAGs, all are instantiated by default.
17104
17105 Usage: $0 [OPTION]... [TAG]...
17106
17107 -h, --help print this help, then exit
17108 -V, --version print version number and configuration settings, then exit
17109 --config print configuration, then exit
17110 -q, --quiet, --silent
17111 do not print progress messages
17112 -d, --debug don't remove temporary files
17113 --recheck update $as_me by reconfiguring in the same conditions
17114 --file=FILE[:TEMPLATE]
17115 instantiate the configuration file FILE
17116 --header=FILE[:TEMPLATE]
17117 instantiate the configuration header FILE
17118
17119 Configuration files:
17120 $config_files
17121
17122 Configuration headers:
17123 $config_headers
17124
17125 Configuration commands:
17126 $config_commands
17127
17128 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17129 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17130
17131 _ACEOF
17132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17134 ac_cs_version="\\
17135 sim config.status 0
17136 configured by $0, generated by GNU Autoconf 2.69,
17137 with options \\"\$ac_cs_config\\"
17138
17139 Copyright (C) 2012 Free Software Foundation, Inc.
17140 This config.status script is free software; the Free Software Foundation
17141 gives unlimited permission to copy, distribute and modify it."
17142
17143 ac_pwd='$ac_pwd'
17144 srcdir='$srcdir'
17145 INSTALL='$INSTALL'
17146 MKDIR_P='$MKDIR_P'
17147 AWK='$AWK'
17148 test -n "\$AWK" || AWK=awk
17149 _ACEOF
17150
17151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152 # The default lists apply if the user does not specify any file.
17153 ac_need_defaults=:
17154 while test $# != 0
17155 do
17156 case $1 in
17157 --*=?*)
17158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17159 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17160 ac_shift=:
17161 ;;
17162 --*=)
17163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17164 ac_optarg=
17165 ac_shift=:
17166 ;;
17167 *)
17168 ac_option=$1
17169 ac_optarg=$2
17170 ac_shift=shift
17171 ;;
17172 esac
17173
17174 case $ac_option in
17175 # Handling of the options.
17176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17177 ac_cs_recheck=: ;;
17178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17179 $as_echo "$ac_cs_version"; exit ;;
17180 --config | --confi | --conf | --con | --co | --c )
17181 $as_echo "$ac_cs_config"; exit ;;
17182 --debug | --debu | --deb | --de | --d | -d )
17183 debug=: ;;
17184 --file | --fil | --fi | --f )
17185 $ac_shift
17186 case $ac_optarg in
17187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17188 '') as_fn_error $? "missing file argument" ;;
17189 esac
17190 as_fn_append CONFIG_FILES " '$ac_optarg'"
17191 ac_need_defaults=false;;
17192 --header | --heade | --head | --hea )
17193 $ac_shift
17194 case $ac_optarg in
17195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17196 esac
17197 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17198 ac_need_defaults=false;;
17199 --he | --h)
17200 # Conflict between --help and --header
17201 as_fn_error $? "ambiguous option: \`$1'
17202 Try \`$0 --help' for more information.";;
17203 --help | --hel | -h )
17204 $as_echo "$ac_cs_usage"; exit ;;
17205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17206 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17207 ac_cs_silent=: ;;
17208
17209 # This is an error.
17210 -*) as_fn_error $? "unrecognized option: \`$1'
17211 Try \`$0 --help' for more information." ;;
17212
17213 *) as_fn_append ac_config_targets " $1"
17214 ac_need_defaults=false ;;
17215
17216 esac
17217 shift
17218 done
17219
17220 ac_configure_extra_args=
17221
17222 if $ac_cs_silent; then
17223 exec 6>/dev/null
17224 ac_configure_extra_args="$ac_configure_extra_args --silent"
17225 fi
17226
17227 _ACEOF
17228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17229 if \$ac_cs_recheck; then
17230 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17231 shift
17232 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17233 CONFIG_SHELL='$SHELL'
17234 export CONFIG_SHELL
17235 exec "\$@"
17236 fi
17237
17238 _ACEOF
17239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17240 exec 5>>config.log
17241 {
17242 echo
17243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17244 ## Running $as_me. ##
17245 _ASBOX
17246 $as_echo "$ac_log"
17247 } >&5
17248
17249 _ACEOF
17250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17251 #
17252 # INIT-COMMANDS
17253 #
17254
17255
17256 # The HP-UX ksh and POSIX shell print the target directory to stdout
17257 # if CDPATH is set.
17258 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17259
17260 sed_quote_subst='$sed_quote_subst'
17261 double_quote_subst='$double_quote_subst'
17262 delay_variable_subst='$delay_variable_subst'
17263 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17264 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17265 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17266 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17267 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17268 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17269 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17270 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17271 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17272 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17273 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17274 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17275 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17276 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17277 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17278 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17279 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17280 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17281 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17282 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17283 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17284 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17285 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17286 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17287 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17288 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17289 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17290 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17291 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17292 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17293 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17294 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17295 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17296 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17297 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17298 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17299 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17300 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17301 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17302 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17303 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17304 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17305 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17306 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17307 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17308 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17309 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17310 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17311 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"`'
17312 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17313 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17314 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17315 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17316 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17317 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17318 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17319 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17320 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17321 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17322 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17323 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17324 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17325 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17326 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17327 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17328 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17329 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17330 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17331 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17332 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17333 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17334 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17335 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17336 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17337 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17338 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17339 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17340 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17341 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17342 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17343 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17344 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17345 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17346 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17347 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17348 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17349 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17350 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17351 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17352 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17353 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17354 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17355 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17356 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17357 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17358 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17359 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17360 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17361 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17362 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17363 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17364 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17365 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17366 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17367 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17368 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17369 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17370 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17371 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17372 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17373 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17374 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17375 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17376 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17377 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17378 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17379 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17380 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17381 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17382 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17383
17384 LTCC='$LTCC'
17385 LTCFLAGS='$LTCFLAGS'
17386 compiler='$compiler_DEFAULT'
17387
17388 # A function that is used when there is no print builtin or printf.
17389 func_fallback_echo ()
17390 {
17391 eval 'cat <<_LTECHO_EOF
17392 \$1
17393 _LTECHO_EOF'
17394 }
17395
17396 # Quote evaled strings.
17397 for var in SHELL \
17398 ECHO \
17399 SED \
17400 GREP \
17401 EGREP \
17402 FGREP \
17403 LD \
17404 NM \
17405 LN_S \
17406 lt_SP2NL \
17407 lt_NL2SP \
17408 reload_flag \
17409 OBJDUMP \
17410 deplibs_check_method \
17411 file_magic_cmd \
17412 AR \
17413 AR_FLAGS \
17414 STRIP \
17415 RANLIB \
17416 CC \
17417 CFLAGS \
17418 compiler \
17419 lt_cv_sys_global_symbol_pipe \
17420 lt_cv_sys_global_symbol_to_cdecl \
17421 lt_cv_sys_global_symbol_to_c_name_address \
17422 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17423 lt_prog_compiler_no_builtin_flag \
17424 lt_prog_compiler_wl \
17425 lt_prog_compiler_pic \
17426 lt_prog_compiler_static \
17427 lt_cv_prog_compiler_c_o \
17428 need_locks \
17429 DSYMUTIL \
17430 NMEDIT \
17431 LIPO \
17432 OTOOL \
17433 OTOOL64 \
17434 shrext_cmds \
17435 export_dynamic_flag_spec \
17436 whole_archive_flag_spec \
17437 compiler_needs_object \
17438 with_gnu_ld \
17439 allow_undefined_flag \
17440 no_undefined_flag \
17441 hardcode_libdir_flag_spec \
17442 hardcode_libdir_flag_spec_ld \
17443 hardcode_libdir_separator \
17444 fix_srcfile_path \
17445 exclude_expsyms \
17446 include_expsyms \
17447 file_list_spec \
17448 variables_saved_for_relink \
17449 libname_spec \
17450 library_names_spec \
17451 soname_spec \
17452 install_override_mode \
17453 finish_eval \
17454 old_striplib \
17455 striplib; do
17456 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17457 *[\\\\\\\`\\"\\\$]*)
17458 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17459 ;;
17460 *)
17461 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17462 ;;
17463 esac
17464 done
17465
17466 # Double-quote double-evaled strings.
17467 for var in reload_cmds \
17468 old_postinstall_cmds \
17469 old_postuninstall_cmds \
17470 old_archive_cmds \
17471 extract_expsyms_cmds \
17472 old_archive_from_new_cmds \
17473 old_archive_from_expsyms_cmds \
17474 archive_cmds \
17475 archive_expsym_cmds \
17476 module_cmds \
17477 module_expsym_cmds \
17478 export_symbols_cmds \
17479 prelink_cmds \
17480 postinstall_cmds \
17481 postuninstall_cmds \
17482 finish_cmds \
17483 sys_lib_search_path_spec \
17484 sys_lib_dlsearch_path_spec; do
17485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17486 *[\\\\\\\`\\"\\\$]*)
17487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17488 ;;
17489 *)
17490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17491 ;;
17492 esac
17493 done
17494
17495 ac_aux_dir='$ac_aux_dir'
17496 xsi_shell='$xsi_shell'
17497 lt_shell_append='$lt_shell_append'
17498
17499 # See if we are running on zsh, and set the options which allow our
17500 # commands through without removal of \ escapes INIT.
17501 if test -n "\${ZSH_VERSION+set}" ; then
17502 setopt NO_GLOB_SUBST
17503 fi
17504
17505
17506 PACKAGE='$PACKAGE'
17507 VERSION='$VERSION'
17508 TIMESTAMP='$TIMESTAMP'
17509 RM='$RM'
17510 ofile='$ofile'
17511
17512
17513
17514 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17515 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17516 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17517 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17518 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17519 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17520 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17521 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17522 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17523 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17524 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17525 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17526 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17527 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17528 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17529 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17530 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17531 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17532 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17533 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17534 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17535 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17536 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17537 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17538 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17539 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17540 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17541 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17542 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17543 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17544 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17545 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17546 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17547
17548 _ACEOF
17549
17550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17551
17552 # Handling of arguments.
17553 for ac_config_target in $ac_config_targets
17554 do
17555 case $ac_config_target in
17556 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17557 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17558 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17559 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
17560 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
17561 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
17562 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17563 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
17564 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
17565 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
17566 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17567 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
17568 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
17569 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
17570 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17571 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
17572 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
17573 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
17574 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17575 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
17576 "bpf/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bpf/Makefile.sim:bpf/Makefile.in" ;;
17577 "bpf/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bpf/Makefile" ;;
17578 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17579 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
17580 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
17581 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
17582 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17583 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
17584 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
17585 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
17586 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17587 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
17588 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
17589 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
17590 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17591 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
17592 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
17593 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
17594 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17595 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
17596 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
17597 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
17598 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17599 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
17600 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
17601 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
17602 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17603 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
17604 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
17605 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
17606 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17607 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
17608 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
17609 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
17610 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17611 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
17612 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
17613 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
17614 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17615 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
17616 "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
17617 "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
17618 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17619 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
17620 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
17621 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
17622 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17623 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
17624 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
17625 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
17626 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17627 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
17628 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
17629 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
17630 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17631 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
17632 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17633 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
17634 "mn10300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mn10300/Makefile.sim:mn10300/Makefile.in" ;;
17635 "mn10300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mn10300/Makefile" ;;
17636 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17637 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
17638 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
17639 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
17640 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17641 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
17642 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
17643 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
17644 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17645 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
17646 "or1k/Makefile.sim") CONFIG_FILES="$CONFIG_FILES or1k/Makefile.sim:or1k/Makefile.in" ;;
17647 "or1k/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS or1k/Makefile" ;;
17648 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17649 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
17650 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17651 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
17652 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
17653 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
17654 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17655 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
17656 "riscv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES riscv/Makefile.sim:riscv/Makefile.in" ;;
17657 "riscv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS riscv/Makefile" ;;
17658 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17659 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
17660 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
17661 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
17662 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17663 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
17664 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
17665 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
17666 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17667 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
17668 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
17669 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
17670 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17671 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
17672 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
17673 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
17674 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17675 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
17676 "v850/Makefile.sim") CONFIG_FILES="$CONFIG_FILES v850/Makefile.sim:v850/Makefile.in" ;;
17677 "v850/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS v850/Makefile" ;;
17678 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17679 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
17680 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
17681 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
17682 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17683 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
17684 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17685 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17686 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17687
17688 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17689 esac
17690 done
17691
17692
17693 # If the user did not use the arguments to specify the items to instantiate,
17694 # then the envvar interface is used. Set only those that are not.
17695 # We use the long form for the default assignment because of an extremely
17696 # bizarre bug on SunOS 4.1.3.
17697 if $ac_need_defaults; then
17698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17701 fi
17702
17703 # Have a temporary directory for convenience. Make it in the build tree
17704 # simply because there is no reason against having it here, and in addition,
17705 # creating and moving files from /tmp can sometimes cause problems.
17706 # Hook for its removal unless debugging.
17707 # Note that there is a small window in which the directory will not be cleaned:
17708 # after its creation but before its name has been assigned to `$tmp'.
17709 $debug ||
17710 {
17711 tmp= ac_tmp=
17712 trap 'exit_status=$?
17713 : "${ac_tmp:=$tmp}"
17714 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17715 ' 0
17716 trap 'as_fn_exit 1' 1 2 13 15
17717 }
17718 # Create a (secure) tmp directory for tmp files.
17719
17720 {
17721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17722 test -d "$tmp"
17723 } ||
17724 {
17725 tmp=./conf$$-$RANDOM
17726 (umask 077 && mkdir "$tmp")
17727 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17728 ac_tmp=$tmp
17729
17730 # Set up the scripts for CONFIG_FILES section.
17731 # No need to generate them if there are no CONFIG_FILES.
17732 # This happens for instance with `./config.status config.h'.
17733 if test -n "$CONFIG_FILES"; then
17734
17735
17736 ac_cr=`echo X | tr X '\015'`
17737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17738 # But we know of no other shell where ac_cr would be empty at this
17739 # point, so we can use a bashism as a fallback.
17740 if test "x$ac_cr" = x; then
17741 eval ac_cr=\$\'\\r\'
17742 fi
17743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17745 ac_cs_awk_cr='\\r'
17746 else
17747 ac_cs_awk_cr=$ac_cr
17748 fi
17749
17750 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17751 _ACEOF
17752
17753
17754 {
17755 echo "cat >conf$$subs.awk <<_ACEOF" &&
17756 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17757 echo "_ACEOF"
17758 } >conf$$subs.sh ||
17759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17760 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17761 ac_delim='%!_!# '
17762 for ac_last_try in false false false false false :; do
17763 . ./conf$$subs.sh ||
17764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17765
17766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17767 if test $ac_delim_n = $ac_delim_num; then
17768 break
17769 elif $ac_last_try; then
17770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17771 else
17772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17773 fi
17774 done
17775 rm -f conf$$subs.sh
17776
17777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17778 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17779 _ACEOF
17780 sed -n '
17781 h
17782 s/^/S["/; s/!.*/"]=/
17783 p
17784 g
17785 s/^[^!]*!//
17786 :repl
17787 t repl
17788 s/'"$ac_delim"'$//
17789 t delim
17790 :nl
17791 h
17792 s/\(.\{148\}\)..*/\1/
17793 t more1
17794 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17795 p
17796 n
17797 b repl
17798 :more1
17799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17800 p
17801 g
17802 s/.\{148\}//
17803 t nl
17804 :delim
17805 h
17806 s/\(.\{148\}\)..*/\1/
17807 t more2
17808 s/["\\]/\\&/g; s/^/"/; s/$/"/
17809 p
17810 b
17811 :more2
17812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17813 p
17814 g
17815 s/.\{148\}//
17816 t delim
17817 ' <conf$$subs.awk | sed '
17818 /^[^""]/{
17819 N
17820 s/\n//
17821 }
17822 ' >>$CONFIG_STATUS || ac_write_fail=1
17823 rm -f conf$$subs.awk
17824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17825 _ACAWK
17826 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17827 for (key in S) S_is_set[key] = 1
17828 FS = "\a"
17829
17830 }
17831 {
17832 line = $ 0
17833 nfields = split(line, field, "@")
17834 substed = 0
17835 len = length(field[1])
17836 for (i = 2; i < nfields; i++) {
17837 key = field[i]
17838 keylen = length(key)
17839 if (S_is_set[key]) {
17840 value = S[key]
17841 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17842 len += length(value) + length(field[++i])
17843 substed = 1
17844 } else
17845 len += 1 + keylen
17846 }
17847
17848 print line
17849 }
17850
17851 _ACAWK
17852 _ACEOF
17853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17854 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17855 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17856 else
17857 cat
17858 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17859 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17860 _ACEOF
17861
17862 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17863 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17864 # trailing colons and then remove the whole line if VPATH becomes empty
17865 # (actually we leave an empty line to preserve line numbers).
17866 if test "x$srcdir" = x.; then
17867 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17868 h
17869 s///
17870 s/^/:/
17871 s/[ ]*$/:/
17872 s/:\$(srcdir):/:/g
17873 s/:\${srcdir}:/:/g
17874 s/:@srcdir@:/:/g
17875 s/^:*//
17876 s/:*$//
17877 x
17878 s/\(=[ ]*\).*/\1/
17879 G
17880 s/\n//
17881 s/^[^=]*=[ ]*$//
17882 }'
17883 fi
17884
17885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17886 fi # test -n "$CONFIG_FILES"
17887
17888 # Set up the scripts for CONFIG_HEADERS section.
17889 # No need to generate them if there are no CONFIG_HEADERS.
17890 # This happens for instance with `./config.status Makefile'.
17891 if test -n "$CONFIG_HEADERS"; then
17892 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17893 BEGIN {
17894 _ACEOF
17895
17896 # Transform confdefs.h into an awk script `defines.awk', embedded as
17897 # here-document in config.status, that substitutes the proper values into
17898 # config.h.in to produce config.h.
17899
17900 # Create a delimiter string that does not exist in confdefs.h, to ease
17901 # handling of long lines.
17902 ac_delim='%!_!# '
17903 for ac_last_try in false false :; do
17904 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17905 if test -z "$ac_tt"; then
17906 break
17907 elif $ac_last_try; then
17908 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17909 else
17910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17911 fi
17912 done
17913
17914 # For the awk script, D is an array of macro values keyed by name,
17915 # likewise P contains macro parameters if any. Preserve backslash
17916 # newline sequences.
17917
17918 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17919 sed -n '
17920 s/.\{148\}/&'"$ac_delim"'/g
17921 t rset
17922 :rset
17923 s/^[ ]*#[ ]*define[ ][ ]*/ /
17924 t def
17925 d
17926 :def
17927 s/\\$//
17928 t bsnl
17929 s/["\\]/\\&/g
17930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17931 D["\1"]=" \3"/p
17932 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17933 d
17934 :bsnl
17935 s/["\\]/\\&/g
17936 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17937 D["\1"]=" \3\\\\\\n"\\/p
17938 t cont
17939 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17940 t cont
17941 d
17942 :cont
17943 n
17944 s/.\{148\}/&'"$ac_delim"'/g
17945 t clear
17946 :clear
17947 s/\\$//
17948 t bsnlc
17949 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17950 d
17951 :bsnlc
17952 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17953 b cont
17954 ' <confdefs.h | sed '
17955 s/'"$ac_delim"'/"\\\
17956 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17957
17958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17959 for (key in D) D_is_set[key] = 1
17960 FS = "\a"
17961 }
17962 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17963 line = \$ 0
17964 split(line, arg, " ")
17965 if (arg[1] == "#") {
17966 defundef = arg[2]
17967 mac1 = arg[3]
17968 } else {
17969 defundef = substr(arg[1], 2)
17970 mac1 = arg[2]
17971 }
17972 split(mac1, mac2, "(") #)
17973 macro = mac2[1]
17974 prefix = substr(line, 1, index(line, defundef) - 1)
17975 if (D_is_set[macro]) {
17976 # Preserve the white space surrounding the "#".
17977 print prefix "define", macro P[macro] D[macro]
17978 next
17979 } else {
17980 # Replace #undef with comments. This is necessary, for example,
17981 # in the case of _POSIX_SOURCE, which is predefined and required
17982 # on some systems where configure will not decide to define it.
17983 if (defundef == "undef") {
17984 print "/*", prefix defundef, macro, "*/"
17985 next
17986 }
17987 }
17988 }
17989 { print }
17990 _ACAWK
17991 _ACEOF
17992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17993 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17994 fi # test -n "$CONFIG_HEADERS"
17995
17996
17997 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17998 shift
17999 for ac_tag
18000 do
18001 case $ac_tag in
18002 :[FHLC]) ac_mode=$ac_tag; continue;;
18003 esac
18004 case $ac_mode$ac_tag in
18005 :[FHL]*:*);;
18006 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18007 :[FH]-) ac_tag=-:-;;
18008 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18009 esac
18010 ac_save_IFS=$IFS
18011 IFS=:
18012 set x $ac_tag
18013 IFS=$ac_save_IFS
18014 shift
18015 ac_file=$1
18016 shift
18017
18018 case $ac_mode in
18019 :L) ac_source=$1;;
18020 :[FH])
18021 ac_file_inputs=
18022 for ac_f
18023 do
18024 case $ac_f in
18025 -) ac_f="$ac_tmp/stdin";;
18026 *) # Look for the file first in the build tree, then in the source tree
18027 # (if the path is not absolute). The absolute path cannot be DOS-style,
18028 # because $ac_f cannot contain `:'.
18029 test -f "$ac_f" ||
18030 case $ac_f in
18031 [\\/$]*) false;;
18032 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18033 esac ||
18034 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18035 esac
18036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18037 as_fn_append ac_file_inputs " '$ac_f'"
18038 done
18039
18040 # Let's still pretend it is `configure' which instantiates (i.e., don't
18041 # use $as_me), people would be surprised to read:
18042 # /* config.h. Generated by config.status. */
18043 configure_input='Generated from '`
18044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18045 `' by configure.'
18046 if test x"$ac_file" != x-; then
18047 configure_input="$ac_file. $configure_input"
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18049 $as_echo "$as_me: creating $ac_file" >&6;}
18050 fi
18051 # Neutralize special characters interpreted by sed in replacement strings.
18052 case $configure_input in #(
18053 *\&* | *\|* | *\\* )
18054 ac_sed_conf_input=`$as_echo "$configure_input" |
18055 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18056 *) ac_sed_conf_input=$configure_input;;
18057 esac
18058
18059 case $ac_tag in
18060 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18062 esac
18063 ;;
18064 esac
18065
18066 ac_dir=`$as_dirname -- "$ac_file" ||
18067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18068 X"$ac_file" : 'X\(//\)[^/]' \| \
18069 X"$ac_file" : 'X\(//\)$' \| \
18070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18071 $as_echo X"$ac_file" |
18072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18073 s//\1/
18074 q
18075 }
18076 /^X\(\/\/\)[^/].*/{
18077 s//\1/
18078 q
18079 }
18080 /^X\(\/\/\)$/{
18081 s//\1/
18082 q
18083 }
18084 /^X\(\/\).*/{
18085 s//\1/
18086 q
18087 }
18088 s/.*/./; q'`
18089 as_dir="$ac_dir"; as_fn_mkdir_p
18090 ac_builddir=.
18091
18092 case "$ac_dir" in
18093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18094 *)
18095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18096 # A ".." for each directory in $ac_dir_suffix.
18097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18098 case $ac_top_builddir_sub in
18099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18101 esac ;;
18102 esac
18103 ac_abs_top_builddir=$ac_pwd
18104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18105 # for backward compatibility:
18106 ac_top_builddir=$ac_top_build_prefix
18107
18108 case $srcdir in
18109 .) # We are building in place.
18110 ac_srcdir=.
18111 ac_top_srcdir=$ac_top_builddir_sub
18112 ac_abs_top_srcdir=$ac_pwd ;;
18113 [\\/]* | ?:[\\/]* ) # Absolute name.
18114 ac_srcdir=$srcdir$ac_dir_suffix;
18115 ac_top_srcdir=$srcdir
18116 ac_abs_top_srcdir=$srcdir ;;
18117 *) # Relative name.
18118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18119 ac_top_srcdir=$ac_top_build_prefix$srcdir
18120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18121 esac
18122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18123
18124
18125 case $ac_mode in
18126 :F)
18127 #
18128 # CONFIG_FILE
18129 #
18130
18131 case $INSTALL in
18132 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18133 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18134 esac
18135 ac_MKDIR_P=$MKDIR_P
18136 case $MKDIR_P in
18137 [\\/$]* | ?:[\\/]* ) ;;
18138 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18139 esac
18140 _ACEOF
18141
18142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18143 # If the template does not know about datarootdir, expand it.
18144 # FIXME: This hack should be removed a few years after 2.60.
18145 ac_datarootdir_hack=; ac_datarootdir_seen=
18146 ac_sed_dataroot='
18147 /datarootdir/ {
18148 p
18149 q
18150 }
18151 /@datadir@/p
18152 /@docdir@/p
18153 /@infodir@/p
18154 /@localedir@/p
18155 /@mandir@/p'
18156 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18157 *datarootdir*) ac_datarootdir_seen=yes;;
18158 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18160 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18161 _ACEOF
18162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18163 ac_datarootdir_hack='
18164 s&@datadir@&$datadir&g
18165 s&@docdir@&$docdir&g
18166 s&@infodir@&$infodir&g
18167 s&@localedir@&$localedir&g
18168 s&@mandir@&$mandir&g
18169 s&\\\${datarootdir}&$datarootdir&g' ;;
18170 esac
18171 _ACEOF
18172
18173 # Neutralize VPATH when `$srcdir' = `.'.
18174 # Shell code in configure.ac might set extrasub.
18175 # FIXME: do we really want to maintain this feature?
18176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18177 ac_sed_extra="$ac_vpsub
18178 $extrasub
18179 _ACEOF
18180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18181 :t
18182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18183 s|@configure_input@|$ac_sed_conf_input|;t t
18184 s&@top_builddir@&$ac_top_builddir_sub&;t t
18185 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18186 s&@srcdir@&$ac_srcdir&;t t
18187 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18188 s&@top_srcdir@&$ac_top_srcdir&;t t
18189 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18190 s&@builddir@&$ac_builddir&;t t
18191 s&@abs_builddir@&$ac_abs_builddir&;t t
18192 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18193 s&@INSTALL@&$ac_INSTALL&;t t
18194 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18195 $ac_datarootdir_hack
18196 "
18197 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18198 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18199
18200 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18201 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18202 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18203 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18205 which seems to be undefined. Please make sure it is defined" >&5
18206 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18207 which seems to be undefined. Please make sure it is defined" >&2;}
18208
18209 rm -f "$ac_tmp/stdin"
18210 case $ac_file in
18211 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18212 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18213 esac \
18214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18215 ;;
18216 :H)
18217 #
18218 # CONFIG_HEADER
18219 #
18220 if test x"$ac_file" != x-; then
18221 {
18222 $as_echo "/* $configure_input */" \
18223 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18224 } >"$ac_tmp/config.h" \
18225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18226 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18228 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18229 else
18230 rm -f "$ac_file"
18231 mv "$ac_tmp/config.h" "$ac_file" \
18232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18233 fi
18234 else
18235 $as_echo "/* $configure_input */" \
18236 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18237 || as_fn_error $? "could not create -" "$LINENO" 5
18238 fi
18239 # Compute "$ac_file"'s index in $config_headers.
18240 _am_arg="$ac_file"
18241 _am_stamp_count=1
18242 for _am_header in $config_headers :; do
18243 case $_am_header in
18244 $_am_arg | $_am_arg:* )
18245 break ;;
18246 * )
18247 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18248 esac
18249 done
18250 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18251 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18252 X"$_am_arg" : 'X\(//\)[^/]' \| \
18253 X"$_am_arg" : 'X\(//\)$' \| \
18254 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18255 $as_echo X"$_am_arg" |
18256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18257 s//\1/
18258 q
18259 }
18260 /^X\(\/\/\)[^/].*/{
18261 s//\1/
18262 q
18263 }
18264 /^X\(\/\/\)$/{
18265 s//\1/
18266 q
18267 }
18268 /^X\(\/\).*/{
18269 s//\1/
18270 q
18271 }
18272 s/.*/./; q'`/stamp-h$_am_stamp_count
18273 ;;
18274
18275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18276 $as_echo "$as_me: executing $ac_file commands" >&6;}
18277 ;;
18278 esac
18279
18280
18281 case $ac_file$ac_mode in
18282 "libtool":C)
18283
18284 # See if we are running on zsh, and set the options which allow our
18285 # commands through without removal of \ escapes.
18286 if test -n "${ZSH_VERSION+set}" ; then
18287 setopt NO_GLOB_SUBST
18288 fi
18289
18290 cfgfile="${ofile}T"
18291 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18292 $RM "$cfgfile"
18293
18294 cat <<_LT_EOF >> "$cfgfile"
18295 #! $SHELL
18296
18297 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18298 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18300 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18301 #
18302 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18303 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18304 # Written by Gordon Matzigkeit, 1996
18305 #
18306 # This file is part of GNU Libtool.
18307 #
18308 # GNU Libtool is free software; you can redistribute it and/or
18309 # modify it under the terms of the GNU General Public License as
18310 # published by the Free Software Foundation; either version 2 of
18311 # the License, or (at your option) any later version.
18312 #
18313 # As a special exception to the GNU General Public License,
18314 # if you distribute this file as part of a program or library that
18315 # is built using GNU Libtool, you may include this file under the
18316 # same distribution terms that you use for the rest of that program.
18317 #
18318 # GNU Libtool is distributed in the hope that it will be useful,
18319 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18320 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18321 # GNU General Public License for more details.
18322 #
18323 # You should have received a copy of the GNU General Public License
18324 # along with GNU Libtool; see the file COPYING. If not, a copy
18325 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18326 # obtained by writing to the Free Software Foundation, Inc.,
18327 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18328
18329
18330 # The names of the tagged configurations supported by this script.
18331 available_tags=""
18332
18333 # ### BEGIN LIBTOOL CONFIG
18334
18335 # Which release of libtool.m4 was used?
18336 macro_version=$macro_version
18337 macro_revision=$macro_revision
18338
18339 # Whether or not to build shared libraries.
18340 build_libtool_libs=$enable_shared
18341
18342 # Whether or not to build static libraries.
18343 build_old_libs=$enable_static
18344
18345 # What type of objects to build.
18346 pic_mode=$pic_mode
18347
18348 # Whether or not to optimize for fast installation.
18349 fast_install=$enable_fast_install
18350
18351 # Shell to use when invoking shell scripts.
18352 SHELL=$lt_SHELL
18353
18354 # An echo program that protects backslashes.
18355 ECHO=$lt_ECHO
18356
18357 # The host system.
18358 host_alias=$host_alias
18359 host=$host
18360 host_os=$host_os
18361
18362 # The build system.
18363 build_alias=$build_alias
18364 build=$build
18365 build_os=$build_os
18366
18367 # A sed program that does not truncate output.
18368 SED=$lt_SED
18369
18370 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18371 Xsed="\$SED -e 1s/^X//"
18372
18373 # A grep program that handles long lines.
18374 GREP=$lt_GREP
18375
18376 # An ERE matcher.
18377 EGREP=$lt_EGREP
18378
18379 # A literal string matcher.
18380 FGREP=$lt_FGREP
18381
18382 # A BSD- or MS-compatible name lister.
18383 NM=$lt_NM
18384
18385 # Whether we need soft or hard links.
18386 LN_S=$lt_LN_S
18387
18388 # What is the maximum length of a command?
18389 max_cmd_len=$max_cmd_len
18390
18391 # Object file suffix (normally "o").
18392 objext=$ac_objext
18393
18394 # Executable file suffix (normally "").
18395 exeext=$exeext
18396
18397 # whether the shell understands "unset".
18398 lt_unset=$lt_unset
18399
18400 # turn spaces into newlines.
18401 SP2NL=$lt_lt_SP2NL
18402
18403 # turn newlines into spaces.
18404 NL2SP=$lt_lt_NL2SP
18405
18406 # An object symbol dumper.
18407 OBJDUMP=$lt_OBJDUMP
18408
18409 # Method to check whether dependent libraries are shared objects.
18410 deplibs_check_method=$lt_deplibs_check_method
18411
18412 # Command to use when deplibs_check_method == "file_magic".
18413 file_magic_cmd=$lt_file_magic_cmd
18414
18415 # The archiver.
18416 AR=$lt_AR
18417 AR_FLAGS=$lt_AR_FLAGS
18418
18419 # A symbol stripping program.
18420 STRIP=$lt_STRIP
18421
18422 # Commands used to install an old-style archive.
18423 RANLIB=$lt_RANLIB
18424 old_postinstall_cmds=$lt_old_postinstall_cmds
18425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18426
18427 # Whether to use a lock for old archive extraction.
18428 lock_old_archive_extraction=$lock_old_archive_extraction
18429
18430 # A C compiler.
18431 LTCC=$lt_CC
18432
18433 # LTCC compiler flags.
18434 LTCFLAGS=$lt_CFLAGS
18435
18436 # Take the output of nm and produce a listing of raw symbols and C names.
18437 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18438
18439 # Transform the output of nm in a proper C declaration.
18440 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18441
18442 # Transform the output of nm in a C name address pair.
18443 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18444
18445 # Transform the output of nm in a C name address pair when lib prefix is needed.
18446 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18447
18448 # The name of the directory that contains temporary libtool files.
18449 objdir=$objdir
18450
18451 # Used to examine libraries when file_magic_cmd begins with "file".
18452 MAGIC_CMD=$MAGIC_CMD
18453
18454 # Must we lock files when doing compilation?
18455 need_locks=$lt_need_locks
18456
18457 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18458 DSYMUTIL=$lt_DSYMUTIL
18459
18460 # Tool to change global to local symbols on Mac OS X.
18461 NMEDIT=$lt_NMEDIT
18462
18463 # Tool to manipulate fat objects and archives on Mac OS X.
18464 LIPO=$lt_LIPO
18465
18466 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18467 OTOOL=$lt_OTOOL
18468
18469 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18470 OTOOL64=$lt_OTOOL64
18471
18472 # Old archive suffix (normally "a").
18473 libext=$libext
18474
18475 # Shared library suffix (normally ".so").
18476 shrext_cmds=$lt_shrext_cmds
18477
18478 # The commands to extract the exported symbol list from a shared archive.
18479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18480
18481 # Variables whose values should be saved in libtool wrapper scripts and
18482 # restored at link time.
18483 variables_saved_for_relink=$lt_variables_saved_for_relink
18484
18485 # Do we need the "lib" prefix for modules?
18486 need_lib_prefix=$need_lib_prefix
18487
18488 # Do we need a version for libraries?
18489 need_version=$need_version
18490
18491 # Library versioning type.
18492 version_type=$version_type
18493
18494 # Shared library runtime path variable.
18495 runpath_var=$runpath_var
18496
18497 # Shared library path variable.
18498 shlibpath_var=$shlibpath_var
18499
18500 # Is shlibpath searched before the hard-coded library search path?
18501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18502
18503 # Format of library name prefix.
18504 libname_spec=$lt_libname_spec
18505
18506 # List of archive names. First name is the real one, the rest are links.
18507 # The last name is the one that the linker finds with -lNAME
18508 library_names_spec=$lt_library_names_spec
18509
18510 # The coded name of the library, if different from the real name.
18511 soname_spec=$lt_soname_spec
18512
18513 # Permission mode override for installation of shared libraries.
18514 install_override_mode=$lt_install_override_mode
18515
18516 # Command to use after installation of a shared archive.
18517 postinstall_cmds=$lt_postinstall_cmds
18518
18519 # Command to use after uninstallation of a shared archive.
18520 postuninstall_cmds=$lt_postuninstall_cmds
18521
18522 # Commands used to finish a libtool library installation in a directory.
18523 finish_cmds=$lt_finish_cmds
18524
18525 # As "finish_cmds", except a single script fragment to be evaled but
18526 # not shown.
18527 finish_eval=$lt_finish_eval
18528
18529 # Whether we should hardcode library paths into libraries.
18530 hardcode_into_libs=$hardcode_into_libs
18531
18532 # Compile-time system search path for libraries.
18533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18534
18535 # Run-time system search path for libraries.
18536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18537
18538 # Whether dlopen is supported.
18539 dlopen_support=$enable_dlopen
18540
18541 # Whether dlopen of programs is supported.
18542 dlopen_self=$enable_dlopen_self
18543
18544 # Whether dlopen of statically linked programs is supported.
18545 dlopen_self_static=$enable_dlopen_self_static
18546
18547 # Commands to strip libraries.
18548 old_striplib=$lt_old_striplib
18549 striplib=$lt_striplib
18550
18551
18552 # The linker used to build libraries.
18553 LD=$lt_LD
18554
18555 # How to create reloadable object files.
18556 reload_flag=$lt_reload_flag
18557 reload_cmds=$lt_reload_cmds
18558
18559 # Commands used to build an old-style archive.
18560 old_archive_cmds=$lt_old_archive_cmds
18561
18562 # A language specific compiler.
18563 CC=$lt_compiler
18564
18565 # Is the compiler the GNU compiler?
18566 with_gcc=$GCC
18567
18568 # Compiler flag to turn off builtin functions.
18569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18570
18571 # How to pass a linker flag through the compiler.
18572 wl=$lt_lt_prog_compiler_wl
18573
18574 # Additional compiler flags for building library objects.
18575 pic_flag=$lt_lt_prog_compiler_pic
18576
18577 # Compiler flag to prevent dynamic linking.
18578 link_static_flag=$lt_lt_prog_compiler_static
18579
18580 # Does compiler simultaneously support -c and -o options?
18581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18582
18583 # Whether or not to add -lc for building shared libraries.
18584 build_libtool_need_lc=$archive_cmds_need_lc
18585
18586 # Whether or not to disallow shared libs when runtime libs are static.
18587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18588
18589 # Compiler flag to allow reflexive dlopens.
18590 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18591
18592 # Compiler flag to generate shared objects directly from archives.
18593 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18594
18595 # Whether the compiler copes with passing no objects directly.
18596 compiler_needs_object=$lt_compiler_needs_object
18597
18598 # Create an old-style archive from a shared archive.
18599 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18600
18601 # Create a temporary old-style archive to link instead of a shared archive.
18602 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18603
18604 # Commands used to build a shared archive.
18605 archive_cmds=$lt_archive_cmds
18606 archive_expsym_cmds=$lt_archive_expsym_cmds
18607
18608 # Commands used to build a loadable module if different from building
18609 # a shared archive.
18610 module_cmds=$lt_module_cmds
18611 module_expsym_cmds=$lt_module_expsym_cmds
18612
18613 # Whether we are building with GNU ld or not.
18614 with_gnu_ld=$lt_with_gnu_ld
18615
18616 # Flag that allows shared libraries with undefined symbols to be built.
18617 allow_undefined_flag=$lt_allow_undefined_flag
18618
18619 # Flag that enforces no undefined symbols.
18620 no_undefined_flag=$lt_no_undefined_flag
18621
18622 # Flag to hardcode \$libdir into a binary during linking.
18623 # This must work even if \$libdir does not exist
18624 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18625
18626 # If ld is used when linking, flag to hardcode \$libdir into a binary
18627 # during linking. This must work even if \$libdir does not exist.
18628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18629
18630 # Whether we need a single "-rpath" flag with a separated argument.
18631 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18632
18633 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18634 # DIR into the resulting binary.
18635 hardcode_direct=$hardcode_direct
18636
18637 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18638 # DIR into the resulting binary and the resulting library dependency is
18639 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18640 # library is relocated.
18641 hardcode_direct_absolute=$hardcode_direct_absolute
18642
18643 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18644 # into the resulting binary.
18645 hardcode_minus_L=$hardcode_minus_L
18646
18647 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18648 # into the resulting binary.
18649 hardcode_shlibpath_var=$hardcode_shlibpath_var
18650
18651 # Set to "yes" if building a shared library automatically hardcodes DIR
18652 # into the library and all subsequent libraries and executables linked
18653 # against it.
18654 hardcode_automatic=$hardcode_automatic
18655
18656 # Set to yes if linker adds runtime paths of dependent libraries
18657 # to runtime path list.
18658 inherit_rpath=$inherit_rpath
18659
18660 # Whether libtool must link a program against all its dependency libraries.
18661 link_all_deplibs=$link_all_deplibs
18662
18663 # Fix the shell variable \$srcfile for the compiler.
18664 fix_srcfile_path=$lt_fix_srcfile_path
18665
18666 # Set to "yes" if exported symbols are required.
18667 always_export_symbols=$always_export_symbols
18668
18669 # The commands to list exported symbols.
18670 export_symbols_cmds=$lt_export_symbols_cmds
18671
18672 # Symbols that should not be listed in the preloaded symbols.
18673 exclude_expsyms=$lt_exclude_expsyms
18674
18675 # Symbols that must always be exported.
18676 include_expsyms=$lt_include_expsyms
18677
18678 # Commands necessary for linking programs (against libraries) with templates.
18679 prelink_cmds=$lt_prelink_cmds
18680
18681 # Specify filename containing input files.
18682 file_list_spec=$lt_file_list_spec
18683
18684 # How to hardcode a shared library path into an executable.
18685 hardcode_action=$hardcode_action
18686
18687 # ### END LIBTOOL CONFIG
18688
18689 _LT_EOF
18690
18691 case $host_os in
18692 aix3*)
18693 cat <<\_LT_EOF >> "$cfgfile"
18694 # AIX sometimes has problems with the GCC collect2 program. For some
18695 # reason, if we set the COLLECT_NAMES environment variable, the problems
18696 # vanish in a puff of smoke.
18697 if test "X${COLLECT_NAMES+set}" != Xset; then
18698 COLLECT_NAMES=
18699 export COLLECT_NAMES
18700 fi
18701 _LT_EOF
18702 ;;
18703 esac
18704
18705
18706 ltmain="$ac_aux_dir/ltmain.sh"
18707
18708
18709 # We use sed instead of cat because bash on DJGPP gets confused if
18710 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18711 # text mode, it properly converts lines to CR/LF. This bash problem
18712 # is reportedly fixed, but why not run on old versions too?
18713 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18714 || (rm -f "$cfgfile"; exit 1)
18715
18716 case $xsi_shell in
18717 yes)
18718 cat << \_LT_EOF >> "$cfgfile"
18719
18720 # func_dirname file append nondir_replacement
18721 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18722 # otherwise set result to NONDIR_REPLACEMENT.
18723 func_dirname ()
18724 {
18725 case ${1} in
18726 */*) func_dirname_result="${1%/*}${2}" ;;
18727 * ) func_dirname_result="${3}" ;;
18728 esac
18729 }
18730
18731 # func_basename file
18732 func_basename ()
18733 {
18734 func_basename_result="${1##*/}"
18735 }
18736
18737 # func_dirname_and_basename file append nondir_replacement
18738 # perform func_basename and func_dirname in a single function
18739 # call:
18740 # dirname: Compute the dirname of FILE. If nonempty,
18741 # add APPEND to the result, otherwise set result
18742 # to NONDIR_REPLACEMENT.
18743 # value returned in "$func_dirname_result"
18744 # basename: Compute filename of FILE.
18745 # value retuned in "$func_basename_result"
18746 # Implementation must be kept synchronized with func_dirname
18747 # and func_basename. For efficiency, we do not delegate to
18748 # those functions but instead duplicate the functionality here.
18749 func_dirname_and_basename ()
18750 {
18751 case ${1} in
18752 */*) func_dirname_result="${1%/*}${2}" ;;
18753 * ) func_dirname_result="${3}" ;;
18754 esac
18755 func_basename_result="${1##*/}"
18756 }
18757
18758 # func_stripname prefix suffix name
18759 # strip PREFIX and SUFFIX off of NAME.
18760 # PREFIX and SUFFIX must not contain globbing or regex special
18761 # characters, hashes, percent signs, but SUFFIX may contain a leading
18762 # dot (in which case that matches only a dot).
18763 func_stripname ()
18764 {
18765 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18766 # positional parameters, so assign one to ordinary parameter first.
18767 func_stripname_result=${3}
18768 func_stripname_result=${func_stripname_result#"${1}"}
18769 func_stripname_result=${func_stripname_result%"${2}"}
18770 }
18771
18772 # func_opt_split
18773 func_opt_split ()
18774 {
18775 func_opt_split_opt=${1%%=*}
18776 func_opt_split_arg=${1#*=}
18777 }
18778
18779 # func_lo2o object
18780 func_lo2o ()
18781 {
18782 case ${1} in
18783 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18784 *) func_lo2o_result=${1} ;;
18785 esac
18786 }
18787
18788 # func_xform libobj-or-source
18789 func_xform ()
18790 {
18791 func_xform_result=${1%.*}.lo
18792 }
18793
18794 # func_arith arithmetic-term...
18795 func_arith ()
18796 {
18797 func_arith_result=$(( $* ))
18798 }
18799
18800 # func_len string
18801 # STRING may not start with a hyphen.
18802 func_len ()
18803 {
18804 func_len_result=${#1}
18805 }
18806
18807 _LT_EOF
18808 ;;
18809 *) # Bourne compatible functions.
18810 cat << \_LT_EOF >> "$cfgfile"
18811
18812 # func_dirname file append nondir_replacement
18813 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18814 # otherwise set result to NONDIR_REPLACEMENT.
18815 func_dirname ()
18816 {
18817 # Extract subdirectory from the argument.
18818 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18819 if test "X$func_dirname_result" = "X${1}"; then
18820 func_dirname_result="${3}"
18821 else
18822 func_dirname_result="$func_dirname_result${2}"
18823 fi
18824 }
18825
18826 # func_basename file
18827 func_basename ()
18828 {
18829 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18830 }
18831
18832
18833 # func_stripname prefix suffix name
18834 # strip PREFIX and SUFFIX off of NAME.
18835 # PREFIX and SUFFIX must not contain globbing or regex special
18836 # characters, hashes, percent signs, but SUFFIX may contain a leading
18837 # dot (in which case that matches only a dot).
18838 # func_strip_suffix prefix name
18839 func_stripname ()
18840 {
18841 case ${2} in
18842 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18843 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18844 esac
18845 }
18846
18847 # sed scripts:
18848 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18849 my_sed_long_arg='1s/^-[^=]*=//'
18850
18851 # func_opt_split
18852 func_opt_split ()
18853 {
18854 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18855 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18856 }
18857
18858 # func_lo2o object
18859 func_lo2o ()
18860 {
18861 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18862 }
18863
18864 # func_xform libobj-or-source
18865 func_xform ()
18866 {
18867 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18868 }
18869
18870 # func_arith arithmetic-term...
18871 func_arith ()
18872 {
18873 func_arith_result=`expr "$@"`
18874 }
18875
18876 # func_len string
18877 # STRING may not start with a hyphen.
18878 func_len ()
18879 {
18880 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18881 }
18882
18883 _LT_EOF
18884 esac
18885
18886 case $lt_shell_append in
18887 yes)
18888 cat << \_LT_EOF >> "$cfgfile"
18889
18890 # func_append var value
18891 # Append VALUE to the end of shell variable VAR.
18892 func_append ()
18893 {
18894 eval "$1+=\$2"
18895 }
18896 _LT_EOF
18897 ;;
18898 *)
18899 cat << \_LT_EOF >> "$cfgfile"
18900
18901 # func_append var value
18902 # Append VALUE to the end of shell variable VAR.
18903 func_append ()
18904 {
18905 eval "$1=\$$1\$2"
18906 }
18907
18908 _LT_EOF
18909 ;;
18910 esac
18911
18912
18913 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18914 || (rm -f "$cfgfile"; exit 1)
18915
18916 mv -f "$cfgfile" "$ofile" ||
18917 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18918 chmod +x "$ofile"
18919
18920 ;;
18921 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18922 # Older Autoconf quotes --file arguments for eval, but not when files
18923 # are listed without --file. Let's play safe and only enable the eval
18924 # if we detect the quoting.
18925 case $CONFIG_FILES in
18926 *\'*) eval set x "$CONFIG_FILES" ;;
18927 *) set x $CONFIG_FILES ;;
18928 esac
18929 shift
18930 for mf
18931 do
18932 # Strip MF so we end up with the name of the file.
18933 mf=`echo "$mf" | sed -e 's/:.*$//'`
18934 # Check whether this is an Automake generated Makefile or not.
18935 # We used to match only the files named 'Makefile.in', but
18936 # some people rename them; so instead we look at the file content.
18937 # Grep'ing the first line is not enough: some people post-process
18938 # each Makefile.in and add a new line on top of each file to say so.
18939 # Grep'ing the whole file is not good either: AIX grep has a line
18940 # limit of 2048, but all sed's we know have understand at least 4000.
18941 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18942 dirpart=`$as_dirname -- "$mf" ||
18943 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18944 X"$mf" : 'X\(//\)[^/]' \| \
18945 X"$mf" : 'X\(//\)$' \| \
18946 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18947 $as_echo X"$mf" |
18948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18949 s//\1/
18950 q
18951 }
18952 /^X\(\/\/\)[^/].*/{
18953 s//\1/
18954 q
18955 }
18956 /^X\(\/\/\)$/{
18957 s//\1/
18958 q
18959 }
18960 /^X\(\/\).*/{
18961 s//\1/
18962 q
18963 }
18964 s/.*/./; q'`
18965 else
18966 continue
18967 fi
18968 # Extract the definition of DEPDIR, am__include, and am__quote
18969 # from the Makefile without running 'make'.
18970 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18971 test -z "$DEPDIR" && continue
18972 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18973 test -z "$am__include" && continue
18974 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18975 # Find all dependency output files, they are included files with
18976 # $(DEPDIR) in their names. We invoke sed twice because it is the
18977 # simplest approach to changing $(DEPDIR) to its actual value in the
18978 # expansion.
18979 for file in `sed -n "
18980 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18981 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18982 # Make sure the directory exists.
18983 test -f "$dirpart/$file" && continue
18984 fdir=`$as_dirname -- "$file" ||
18985 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18986 X"$file" : 'X\(//\)[^/]' \| \
18987 X"$file" : 'X\(//\)$' \| \
18988 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18989 $as_echo X"$file" |
18990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18991 s//\1/
18992 q
18993 }
18994 /^X\(\/\/\)[^/].*/{
18995 s//\1/
18996 q
18997 }
18998 /^X\(\/\/\)$/{
18999 s//\1/
19000 q
19001 }
19002 /^X\(\/\).*/{
19003 s//\1/
19004 q
19005 }
19006 s/.*/./; q'`
19007 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19008 # echo "creating $dirpart/$file"
19009 echo '# dummy' > "$dirpart/$file"
19010 done
19011 done
19012 }
19013 ;;
19014 "aarch64/Makefile":C) sed -n \
19015 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19016 /^srcdir = / s:$:/aarch64:
19017 p
19018 }' \
19019 <Make-common.sim >aarch64/Makesim1.tmp
19020 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
19021 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
19022 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
19023 <aarch64/Makefile.sim >aarch64/Makefile
19024 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
19025 ;;
19026 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
19027 "arm/Makefile":C) sed -n \
19028 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19029 /^srcdir = / s:$:/arm:
19030 p
19031 }' \
19032 <Make-common.sim >arm/Makesim1.tmp
19033 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
19034 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
19035 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
19036 <arm/Makefile.sim >arm/Makefile
19037 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
19038 ;;
19039 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
19040 "avr/Makefile":C) sed -n \
19041 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19042 /^srcdir = / s:$:/avr:
19043 p
19044 }' \
19045 <Make-common.sim >avr/Makesim1.tmp
19046 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
19047 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
19048 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
19049 <avr/Makefile.sim >avr/Makefile
19050 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
19051 ;;
19052 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
19053 "bfin/Makefile":C) sed -n \
19054 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19055 /^srcdir = / s:$:/bfin:
19056 p
19057 }' \
19058 <Make-common.sim >bfin/Makesim1.tmp
19059 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
19060 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
19061 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
19062 <bfin/Makefile.sim >bfin/Makefile
19063 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
19064 ;;
19065 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
19066 "bpf/Makefile":C) sed -n \
19067 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19068 /^srcdir = / s:$:/bpf:
19069 p
19070 }' \
19071 <Make-common.sim >bpf/Makesim1.tmp
19072 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bpf/Makesim2.tmp
19073 sed -e '/^## COMMON_PRE_/ r bpf/Makesim1.tmp' \
19074 -e '/^## COMMON_POST_/ r bpf/Makesim2.tmp' \
19075 <bpf/Makefile.sim >bpf/Makefile
19076 rm -f bpf/Makesim1.tmp bpf/Makesim2.tmp
19077 ;;
19078 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
19079 "cr16/Makefile":C) sed -n \
19080 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19081 /^srcdir = / s:$:/cr16:
19082 p
19083 }' \
19084 <Make-common.sim >cr16/Makesim1.tmp
19085 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
19086 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
19087 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
19088 <cr16/Makefile.sim >cr16/Makefile
19089 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
19090 ;;
19091 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
19092 "cris/Makefile":C) sed -n \
19093 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19094 /^srcdir = / s:$:/cris:
19095 p
19096 }' \
19097 <Make-common.sim >cris/Makesim1.tmp
19098 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
19099 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
19100 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
19101 <cris/Makefile.sim >cris/Makefile
19102 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
19103 ;;
19104 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
19105 "d10v/Makefile":C) sed -n \
19106 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19107 /^srcdir = / s:$:/d10v:
19108 p
19109 }' \
19110 <Make-common.sim >d10v/Makesim1.tmp
19111 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
19112 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
19113 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
19114 <d10v/Makefile.sim >d10v/Makefile
19115 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
19116 ;;
19117 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
19118 "frv/Makefile":C) sed -n \
19119 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19120 /^srcdir = / s:$:/frv:
19121 p
19122 }' \
19123 <Make-common.sim >frv/Makesim1.tmp
19124 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
19125 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
19126 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
19127 <frv/Makefile.sim >frv/Makefile
19128 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
19129 ;;
19130 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
19131 "ft32/Makefile":C) sed -n \
19132 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19133 /^srcdir = / s:$:/ft32:
19134 p
19135 }' \
19136 <Make-common.sim >ft32/Makesim1.tmp
19137 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
19138 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
19139 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
19140 <ft32/Makefile.sim >ft32/Makefile
19141 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
19142 ;;
19143 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
19144 "h8300/Makefile":C) sed -n \
19145 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19146 /^srcdir = / s:$:/h8300:
19147 p
19148 }' \
19149 <Make-common.sim >h8300/Makesim1.tmp
19150 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
19151 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
19152 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
19153 <h8300/Makefile.sim >h8300/Makefile
19154 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
19155 ;;
19156 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
19157 "iq2000/Makefile":C) sed -n \
19158 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19159 /^srcdir = / s:$:/iq2000:
19160 p
19161 }' \
19162 <Make-common.sim >iq2000/Makesim1.tmp
19163 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
19164 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
19165 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
19166 <iq2000/Makefile.sim >iq2000/Makefile
19167 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
19168 ;;
19169 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
19170 "lm32/Makefile":C) sed -n \
19171 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19172 /^srcdir = / s:$:/lm32:
19173 p
19174 }' \
19175 <Make-common.sim >lm32/Makesim1.tmp
19176 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
19177 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
19178 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
19179 <lm32/Makefile.sim >lm32/Makefile
19180 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
19181 ;;
19182 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
19183 "m32c/Makefile":C) sed -n \
19184 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19185 /^srcdir = / s:$:/m32c:
19186 p
19187 }' \
19188 <Make-common.sim >m32c/Makesim1.tmp
19189 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
19190 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
19191 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
19192 <m32c/Makefile.sim >m32c/Makefile
19193 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
19194 ;;
19195 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
19196 "m32r/Makefile":C) sed -n \
19197 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19198 /^srcdir = / s:$:/m32r:
19199 p
19200 }' \
19201 <Make-common.sim >m32r/Makesim1.tmp
19202 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
19203 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
19204 -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
19205 <m32r/Makefile.sim >m32r/Makefile
19206 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
19207 ;;
19208 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
19209 "m68hc11/Makefile":C) sed -n \
19210 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19211 /^srcdir = / s:$:/m68hc11:
19212 p
19213 }' \
19214 <Make-common.sim >m68hc11/Makesim1.tmp
19215 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
19216 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
19217 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
19218 <m68hc11/Makefile.sim >m68hc11/Makefile
19219 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
19220 ;;
19221 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
19222 "mcore/Makefile":C) sed -n \
19223 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19224 /^srcdir = / s:$:/mcore:
19225 p
19226 }' \
19227 <Make-common.sim >mcore/Makesim1.tmp
19228 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
19229 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
19230 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
19231 <mcore/Makefile.sim >mcore/Makefile
19232 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
19233 ;;
19234 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
19235 "microblaze/Makefile":C) sed -n \
19236 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19237 /^srcdir = / s:$:/microblaze:
19238 p
19239 }' \
19240 <Make-common.sim >microblaze/Makesim1.tmp
19241 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
19242 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
19243 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
19244 <microblaze/Makefile.sim >microblaze/Makefile
19245 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
19246 ;;
19247 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
19248 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
19249 "mn10300/Makefile":C) sed -n \
19250 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19251 /^srcdir = / s:$:/mn10300:
19252 p
19253 }' \
19254 <Make-common.sim >mn10300/Makesim1.tmp
19255 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mn10300/Makesim2.tmp
19256 sed -e '/^## COMMON_PRE_/ r mn10300/Makesim1.tmp' \
19257 -e '/^## COMMON_POST_/ r mn10300/Makesim2.tmp' \
19258 <mn10300/Makefile.sim >mn10300/Makefile
19259 rm -f mn10300/Makesim1.tmp mn10300/Makesim2.tmp
19260 ;;
19261 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
19262 "moxie/Makefile":C) sed -n \
19263 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19264 /^srcdir = / s:$:/moxie:
19265 p
19266 }' \
19267 <Make-common.sim >moxie/Makesim1.tmp
19268 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
19269 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
19270 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
19271 <moxie/Makefile.sim >moxie/Makefile
19272 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
19273 ;;
19274 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
19275 "msp430/Makefile":C) sed -n \
19276 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19277 /^srcdir = / s:$:/msp430:
19278 p
19279 }' \
19280 <Make-common.sim >msp430/Makesim1.tmp
19281 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
19282 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
19283 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
19284 <msp430/Makefile.sim >msp430/Makefile
19285 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
19286 ;;
19287 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
19288 "or1k/Makefile":C) sed -n \
19289 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19290 /^srcdir = / s:$:/or1k:
19291 p
19292 }' \
19293 <Make-common.sim >or1k/Makesim1.tmp
19294 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >or1k/Makesim2.tmp
19295 sed -e '/^## COMMON_PRE_/ r or1k/Makesim1.tmp' \
19296 -e '/^## COMMON_POST_/ r or1k/Makesim2.tmp' \
19297 <or1k/Makefile.sim >or1k/Makefile
19298 rm -f or1k/Makesim1.tmp or1k/Makesim2.tmp
19299 ;;
19300 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
19301 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
19302 "pru/Makefile":C) sed -n \
19303 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19304 /^srcdir = / s:$:/pru:
19305 p
19306 }' \
19307 <Make-common.sim >pru/Makesim1.tmp
19308 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
19309 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
19310 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
19311 <pru/Makefile.sim >pru/Makefile
19312 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
19313 ;;
19314 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
19315 "riscv/Makefile":C) sed -n \
19316 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19317 /^srcdir = / s:$:/riscv:
19318 p
19319 }' \
19320 <Make-common.sim >riscv/Makesim1.tmp
19321 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >riscv/Makesim2.tmp
19322 sed -e '/^## COMMON_PRE_/ r riscv/Makesim1.tmp' \
19323 -e '/^## COMMON_POST_/ r riscv/Makesim2.tmp' \
19324 <riscv/Makefile.sim >riscv/Makefile
19325 rm -f riscv/Makesim1.tmp riscv/Makesim2.tmp
19326 ;;
19327 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
19328 "rl78/Makefile":C) sed -n \
19329 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19330 /^srcdir = / s:$:/rl78:
19331 p
19332 }' \
19333 <Make-common.sim >rl78/Makesim1.tmp
19334 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
19335 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
19336 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
19337 <rl78/Makefile.sim >rl78/Makefile
19338 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
19339 ;;
19340 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
19341 "rx/Makefile":C) sed -n \
19342 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19343 /^srcdir = / s:$:/rx:
19344 p
19345 }' \
19346 <Make-common.sim >rx/Makesim1.tmp
19347 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
19348 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
19349 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
19350 <rx/Makefile.sim >rx/Makefile
19351 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
19352 ;;
19353 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
19354 "sh/Makefile":C) sed -n \
19355 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19356 /^srcdir = / s:$:/sh:
19357 p
19358 }' \
19359 <Make-common.sim >sh/Makesim1.tmp
19360 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
19361 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
19362 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
19363 <sh/Makefile.sim >sh/Makefile
19364 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
19365 ;;
19366 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
19367 "erc32/Makefile":C) sed -n \
19368 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19369 /^srcdir = / s:$:/erc32:
19370 p
19371 }' \
19372 <Make-common.sim >erc32/Makesim1.tmp
19373 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
19374 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
19375 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
19376 <erc32/Makefile.sim >erc32/Makefile
19377 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
19378 ;;
19379 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
19380 "v850/Makefile":C) sed -n \
19381 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19382 /^srcdir = / s:$:/v850:
19383 p
19384 }' \
19385 <Make-common.sim >v850/Makesim1.tmp
19386 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >v850/Makesim2.tmp
19387 sed -e '/^## COMMON_PRE_/ r v850/Makesim1.tmp' \
19388 -e '/^## COMMON_POST_/ r v850/Makesim2.tmp' \
19389 <v850/Makefile.sim >v850/Makefile
19390 rm -f v850/Makesim1.tmp v850/Makesim2.tmp
19391 ;;
19392 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
19393 "example-synacor/Makefile":C) sed -n \
19394 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19395 /^srcdir = / s:$:/example-synacor:
19396 p
19397 }' \
19398 <Make-common.sim >example-synacor/Makesim1.tmp
19399 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
19400 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
19401 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
19402 <example-synacor/Makefile.sim >example-synacor/Makefile
19403 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
19404 ;;
19405 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
19406
19407 esac
19408 done # for ac_tag
19409
19410
19411 as_fn_exit 0
19412 _ACEOF
19413 ac_clean_files=$ac_clean_files_save
19414
19415 test $ac_write_fail = 0 ||
19416 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19417
19418
19419 # configure is writing to config.log, and then calls config.status.
19420 # config.status does its own redirection, appending to config.log.
19421 # Unfortunately, on DOS this fails, as config.log is still kept open
19422 # by configure, so config.status won't be able to write to it; its
19423 # output is simply discarded. So we exec the FD to /dev/null,
19424 # effectively closing config.log, so it can be properly (re)opened and
19425 # appended to by config.status. When coming back to configure, we
19426 # need to make the FD available again.
19427 if test "$no_create" != yes; then
19428 ac_cs_success=:
19429 ac_config_status_args=
19430 test "$silent" = yes &&
19431 ac_config_status_args="$ac_config_status_args --quiet"
19432 exec 5>/dev/null
19433 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19434 exec 5>>config.log
19435 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19436 # would make configure fail if this is the last instruction.
19437 $ac_cs_success || as_fn_exit 1
19438 fi
19439
19440 #
19441 # CONFIG_SUBDIRS section.
19442 #
19443 if test "$no_recursion" != yes; then
19444
19445 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19446 # so they do not pile up.
19447 ac_sub_configure_args=
19448 ac_prev=
19449 eval "set x $ac_configure_args"
19450 shift
19451 for ac_arg
19452 do
19453 if test -n "$ac_prev"; then
19454 ac_prev=
19455 continue
19456 fi
19457 case $ac_arg in
19458 -cache-file | --cache-file | --cache-fil | --cache-fi \
19459 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19460 ac_prev=cache_file ;;
19461 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19462 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19463 | --c=*)
19464 ;;
19465 --config-cache | -C)
19466 ;;
19467 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19468 ac_prev=srcdir ;;
19469 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19470 ;;
19471 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19472 ac_prev=prefix ;;
19473 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19474 ;;
19475 --disable-option-checking)
19476 ;;
19477 *)
19478 case $ac_arg in
19479 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19480 esac
19481 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19482 esac
19483 done
19484
19485 # Always prepend --prefix to ensure using the same prefix
19486 # in subdir configurations.
19487 ac_arg="--prefix=$prefix"
19488 case $ac_arg in
19489 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19490 esac
19491 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19492
19493 # Pass --silent
19494 if test "$silent" = yes; then
19495 ac_sub_configure_args="--silent $ac_sub_configure_args"
19496 fi
19497
19498 # Always prepend --disable-option-checking to silence warnings, since
19499 # different subdirs can have different --enable and --with options.
19500 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19501
19502 ac_popdir=`pwd`
19503 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19504
19505 # Do not complain, so a configure script can configure whichever
19506 # parts of a large source tree are present.
19507 test -d "$srcdir/$ac_dir" || continue
19508
19509 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19510 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19511 $as_echo "$ac_msg" >&6
19512 as_dir="$ac_dir"; as_fn_mkdir_p
19513 ac_builddir=.
19514
19515 case "$ac_dir" in
19516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19517 *)
19518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19519 # A ".." for each directory in $ac_dir_suffix.
19520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19521 case $ac_top_builddir_sub in
19522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19524 esac ;;
19525 esac
19526 ac_abs_top_builddir=$ac_pwd
19527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19528 # for backward compatibility:
19529 ac_top_builddir=$ac_top_build_prefix
19530
19531 case $srcdir in
19532 .) # We are building in place.
19533 ac_srcdir=.
19534 ac_top_srcdir=$ac_top_builddir_sub
19535 ac_abs_top_srcdir=$ac_pwd ;;
19536 [\\/]* | ?:[\\/]* ) # Absolute name.
19537 ac_srcdir=$srcdir$ac_dir_suffix;
19538 ac_top_srcdir=$srcdir
19539 ac_abs_top_srcdir=$srcdir ;;
19540 *) # Relative name.
19541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19542 ac_top_srcdir=$ac_top_build_prefix$srcdir
19543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19544 esac
19545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19546
19547
19548 cd "$ac_dir"
19549
19550 # Check for guested configure; otherwise get Cygnus style configure.
19551 if test -f "$ac_srcdir/configure.gnu"; then
19552 ac_sub_configure=$ac_srcdir/configure.gnu
19553 elif test -f "$ac_srcdir/configure"; then
19554 ac_sub_configure=$ac_srcdir/configure
19555 elif test -f "$ac_srcdir/configure.in"; then
19556 # This should be Cygnus configure.
19557 ac_sub_configure=$ac_aux_dir/configure
19558 else
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19561 ac_sub_configure=
19562 fi
19563
19564 # The recursion is here.
19565 if test -n "$ac_sub_configure"; then
19566 # Make the cache file name correct relative to the subdirectory.
19567 case $cache_file in
19568 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19569 *) # Relative name.
19570 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19571 esac
19572
19573 { $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
19574 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19575 # The eval makes quoting arguments work.
19576 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19577 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19578 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19579 fi
19580
19581 cd "$ac_popdir"
19582 done
19583 fi
19584 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19586 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19587 fi
19588