PR28827 testcase
[binutils-gdb.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sim 0.
4 #
5 # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='sim'
593 PACKAGE_TARNAME='sim'
594 PACKAGE_VERSION='0'
595 PACKAGE_STRING='sim 0'
596 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597 PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_func_list=
637 enable_option_checking=no
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 SIM_RX_CYCLE_ACCURATE_FLAGS
642 SIM_FRV_TRAPDUMP_FLAGS
643 sim_float
644 sim_bitsize
645 SIM_INLINE
646 sim_hw_sockser
647 sim_hw_cflags
648 SIM_ENABLE_HW_FALSE
649 SIM_ENABLE_HW_TRUE
650 cgen
651 cgendir
652 CGEN_MAINT
653 ENABLE_SIM_FALSE
654 ENABLE_SIM_TRUE
655 SIM_ENABLE_IGEN_FALSE
656 SIM_ENABLE_IGEN_TRUE
657 CC_FOR_TARGET_EXAMPLE_SYNACOR
658 LD_FOR_TARGET_EXAMPLE_SYNACOR
659 AS_FOR_TARGET_EXAMPLE_SYNACOR
660 SIM_ENABLE_ARCH_v850_FALSE
661 SIM_ENABLE_ARCH_v850_TRUE
662 CC_FOR_TARGET_V850
663 LD_FOR_TARGET_V850
664 AS_FOR_TARGET_V850
665 SIM_ENABLE_ARCH_erc32_FALSE
666 SIM_ENABLE_ARCH_erc32_TRUE
667 CC_FOR_TARGET_ERC32
668 LD_FOR_TARGET_ERC32
669 AS_FOR_TARGET_ERC32
670 SIM_ENABLE_ARCH_sh_FALSE
671 SIM_ENABLE_ARCH_sh_TRUE
672 CC_FOR_TARGET_SH
673 LD_FOR_TARGET_SH
674 AS_FOR_TARGET_SH
675 SIM_ENABLE_ARCH_rx_FALSE
676 SIM_ENABLE_ARCH_rx_TRUE
677 CC_FOR_TARGET_RX
678 LD_FOR_TARGET_RX
679 AS_FOR_TARGET_RX
680 SIM_ENABLE_ARCH_rl78_FALSE
681 SIM_ENABLE_ARCH_rl78_TRUE
682 CC_FOR_TARGET_RL78
683 LD_FOR_TARGET_RL78
684 AS_FOR_TARGET_RL78
685 SIM_ENABLE_ARCH_riscv_FALSE
686 SIM_ENABLE_ARCH_riscv_TRUE
687 CC_FOR_TARGET_RISCV
688 LD_FOR_TARGET_RISCV
689 AS_FOR_TARGET_RISCV
690 SIM_ENABLE_ARCH_pru_FALSE
691 SIM_ENABLE_ARCH_pru_TRUE
692 CC_FOR_TARGET_PRU
693 LD_FOR_TARGET_PRU
694 AS_FOR_TARGET_PRU
695 SIM_ENABLE_ARCH_ppc_FALSE
696 SIM_ENABLE_ARCH_ppc_TRUE
697 CC_FOR_TARGET_PPC
698 LD_FOR_TARGET_PPC
699 AS_FOR_TARGET_PPC
700 SIM_ENABLE_ARCH_or1k_FALSE
701 SIM_ENABLE_ARCH_or1k_TRUE
702 CC_FOR_TARGET_OR1K
703 LD_FOR_TARGET_OR1K
704 AS_FOR_TARGET_OR1K
705 SIM_ENABLE_ARCH_msp430_FALSE
706 SIM_ENABLE_ARCH_msp430_TRUE
707 CC_FOR_TARGET_MSP430
708 LD_FOR_TARGET_MSP430
709 AS_FOR_TARGET_MSP430
710 SIM_ENABLE_ARCH_moxie_FALSE
711 SIM_ENABLE_ARCH_moxie_TRUE
712 CC_FOR_TARGET_MOXIE
713 LD_FOR_TARGET_MOXIE
714 AS_FOR_TARGET_MOXIE
715 SIM_ENABLE_ARCH_mn10300_FALSE
716 SIM_ENABLE_ARCH_mn10300_TRUE
717 CC_FOR_TARGET_MN10300
718 LD_FOR_TARGET_MN10300
719 AS_FOR_TARGET_MN10300
720 SIM_ENABLE_ARCH_mips_FALSE
721 SIM_ENABLE_ARCH_mips_TRUE
722 CC_FOR_TARGET_MIPS
723 LD_FOR_TARGET_MIPS
724 AS_FOR_TARGET_MIPS
725 SIM_ENABLE_ARCH_microblaze_FALSE
726 SIM_ENABLE_ARCH_microblaze_TRUE
727 CC_FOR_TARGET_MICROBLAZE
728 LD_FOR_TARGET_MICROBLAZE
729 AS_FOR_TARGET_MICROBLAZE
730 SIM_ENABLE_ARCH_mcore_FALSE
731 SIM_ENABLE_ARCH_mcore_TRUE
732 CC_FOR_TARGET_MCORE
733 LD_FOR_TARGET_MCORE
734 AS_FOR_TARGET_MCORE
735 SIM_ENABLE_ARCH_m68hc11_FALSE
736 SIM_ENABLE_ARCH_m68hc11_TRUE
737 CC_FOR_TARGET_M68HC11
738 LD_FOR_TARGET_M68HC11
739 AS_FOR_TARGET_M68HC11
740 SIM_ENABLE_ARCH_m32r_FALSE
741 SIM_ENABLE_ARCH_m32r_TRUE
742 CC_FOR_TARGET_M32R
743 LD_FOR_TARGET_M32R
744 AS_FOR_TARGET_M32R
745 SIM_ENABLE_ARCH_m32c_FALSE
746 SIM_ENABLE_ARCH_m32c_TRUE
747 CC_FOR_TARGET_M32C
748 LD_FOR_TARGET_M32C
749 AS_FOR_TARGET_M32C
750 SIM_ENABLE_ARCH_lm32_FALSE
751 SIM_ENABLE_ARCH_lm32_TRUE
752 CC_FOR_TARGET_LM32
753 LD_FOR_TARGET_LM32
754 AS_FOR_TARGET_LM32
755 SIM_ENABLE_ARCH_iq2000_FALSE
756 SIM_ENABLE_ARCH_iq2000_TRUE
757 CC_FOR_TARGET_IQ2000
758 LD_FOR_TARGET_IQ2000
759 AS_FOR_TARGET_IQ2000
760 SIM_ENABLE_ARCH_h8300_FALSE
761 SIM_ENABLE_ARCH_h8300_TRUE
762 CC_FOR_TARGET_H8300
763 LD_FOR_TARGET_H8300
764 AS_FOR_TARGET_H8300
765 SIM_ENABLE_ARCH_ft32_FALSE
766 SIM_ENABLE_ARCH_ft32_TRUE
767 CC_FOR_TARGET_FT32
768 LD_FOR_TARGET_FT32
769 AS_FOR_TARGET_FT32
770 SIM_ENABLE_ARCH_frv_FALSE
771 SIM_ENABLE_ARCH_frv_TRUE
772 CC_FOR_TARGET_FRV
773 LD_FOR_TARGET_FRV
774 AS_FOR_TARGET_FRV
775 SIM_ENABLE_ARCH_d10v_FALSE
776 SIM_ENABLE_ARCH_d10v_TRUE
777 CC_FOR_TARGET_D10V
778 LD_FOR_TARGET_D10V
779 AS_FOR_TARGET_D10V
780 SIM_ENABLE_ARCH_cris_FALSE
781 SIM_ENABLE_ARCH_cris_TRUE
782 CC_FOR_TARGET_CRIS
783 LD_FOR_TARGET_CRIS
784 AS_FOR_TARGET_CRIS
785 SIM_ENABLE_ARCH_cr16_FALSE
786 SIM_ENABLE_ARCH_cr16_TRUE
787 CC_FOR_TARGET_CR16
788 LD_FOR_TARGET_CR16
789 AS_FOR_TARGET_CR16
790 SIM_ENABLE_ARCH_bpf_FALSE
791 SIM_ENABLE_ARCH_bpf_TRUE
792 CC_FOR_TARGET_BPF
793 LD_FOR_TARGET_BPF
794 AS_FOR_TARGET_BPF
795 subdirs
796 SIM_ENABLE_ARCH_bfin_FALSE
797 SIM_ENABLE_ARCH_bfin_TRUE
798 CC_FOR_TARGET_BFIN
799 LD_FOR_TARGET_BFIN
800 AS_FOR_TARGET_BFIN
801 SIM_ENABLE_ARCH_avr_FALSE
802 SIM_ENABLE_ARCH_avr_TRUE
803 CC_FOR_TARGET_AVR
804 LD_FOR_TARGET_AVR
805 AS_FOR_TARGET_AVR
806 SIM_ENABLE_ARCH_arm_FALSE
807 SIM_ENABLE_ARCH_arm_TRUE
808 CC_FOR_TARGET_ARM
809 LD_FOR_TARGET_ARM
810 AS_FOR_TARGET_ARM
811 SIM_ENABLE_ARCH_aarch64_FALSE
812 SIM_ENABLE_ARCH_aarch64_TRUE
813 CC_FOR_TARGET_AARCH64
814 LD_FOR_TARGET_AARCH64
815 AS_FOR_TARGET_AARCH64
816 SIM_COMMON_BUILD_FALSE
817 SIM_COMMON_BUILD_TRUE
818 SIM_SUBDIRS
819 SIM_PRIMARY_TARGET
820 AM_BACKSLASH
821 AM_DEFAULT_VERBOSITY
822 AM_DEFAULT_V
823 AM_V
824 am__fastdepCC_FALSE
825 am__fastdepCC_TRUE
826 CCDEPMODE
827 am__nodep
828 AMDEPBACKSLASH
829 AMDEP_FALSE
830 AMDEP_TRUE
831 am__quote
832 am__include
833 DEPDIR
834 am__untar
835 am__tar
836 AMTAR
837 am__leading_dot
838 SET_MAKE
839 mkdir_p
840 MKDIR_P
841 INSTALL_STRIP_PROGRAM
842 install_sh
843 MAKEINFO
844 AUTOHEADER
845 AUTOMAKE
846 AUTOCONF
847 ACLOCAL
848 VERSION
849 PACKAGE
850 CYGPATH_W
851 am__isrc
852 MAINT
853 MAINTAINER_MODE_FALSE
854 MAINTAINER_MODE_TRUE
855 READLINE_CFLAGS
856 READLINE_LIB
857 TERMCAP_LIB
858 SDL_LIBS
859 SDL_CFLAGS
860 lt_cv_dlopen_libs
861 OTOOL64
862 OTOOL
863 LIPO
864 NMEDIT
865 DSYMUTIL
866 AWK
867 STRIP
868 OBJDUMP
869 LN_S
870 NM
871 ac_ct_DUMPBIN
872 DUMPBIN
873 LD
874 FGREP
875 SED
876 LIBTOOL
877 PLUGINS_FALSE
878 PLUGINS_TRUE
879 zlibinc
880 zlibdir
881 CATOBJEXT
882 GENCAT
883 INSTOBJEXT
884 DATADIRNAME
885 CATALOGS
886 POSUB
887 GMSGFMT
888 XGETTEXT
889 INCINTL
890 LIBINTL_DEP
891 LIBINTL
892 USE_NLS
893 LIBOBJS
894 C_DIALECT
895 PKG_CONFIG_LIBDIR
896 PKG_CONFIG_PATH
897 PKG_CONFIG
898 RANLIB
899 AR
900 LDFLAGS_FOR_BUILD
901 CFLAGS_FOR_BUILD
902 RANLIB_FOR_BUILD
903 CC_FOR_BUILD
904 AR_FOR_BUILD
905 DTC
906 INSTALL_DATA
907 INSTALL_SCRIPT
908 INSTALL_PROGRAM
909 EGREP
910 GREP
911 CPP
912 OBJEXT
913 EXEEXT
914 ac_ct_CC
915 CPPFLAGS
916 LDFLAGS
917 CFLAGS
918 CC
919 target_os
920 target_vendor
921 target_cpu
922 target
923 host_os
924 host_vendor
925 host_cpu
926 host
927 build_os
928 build_vendor
929 build_cpu
930 build
931 REPORT_BUGS_TEXI
932 REPORT_BUGS_TO
933 PKGVERSION
934 target_alias
935 host_alias
936 build_alias
937 LIBS
938 ECHO_T
939 ECHO_N
940 ECHO_C
941 DEFS
942 mandir
943 localedir
944 libdir
945 psdir
946 pdfdir
947 dvidir
948 htmldir
949 infodir
950 docdir
951 oldincludedir
952 includedir
953 localstatedir
954 sharedstatedir
955 sysconfdir
956 datadir
957 datarootdir
958 libexecdir
959 sbindir
960 bindir
961 program_transform_name
962 prefix
963 exec_prefix
964 PACKAGE_URL
965 PACKAGE_BUGREPORT
966 PACKAGE_STRING
967 PACKAGE_VERSION
968 PACKAGE_TARNAME
969 PACKAGE_NAME
970 PATH_SEPARATOR
971 SHELL
972 SIM_TOOLCHAIN_VARS
973 WERROR_CFLAGS
974 WARN_CFLAGS'
975 ac_subst_files=''
976 ac_user_opts='
977 enable_option_checking
978 with_pkgversion
979 with_bugurl
980 with_system_zlib
981 enable_plugins
982 enable_shared
983 enable_static
984 with_pic
985 enable_fast_install
986 with_gnu_ld
987 enable_libtool_lock
988 enable_maintainer_mode
989 enable_dependency_tracking
990 enable_silent_rules
991 enable_sim
992 enable_example_sims
993 enable_targets
994 enable_sim_alignment
995 enable_sim_assert
996 enable_cgen_maint
997 enable_sim_debug
998 enable_sim_endian
999 enable_sim_environment
1000 enable_sim_hardware
1001 enable_sim_inline
1002 enable_sim_profile
1003 enable_sim_reserved_bits
1004 enable_sim_scache
1005 enable_sim_stdio
1006 enable_sim_trace
1007 enable_werror
1008 enable_build_warnings
1009 enable_sim_build_warnings
1010 enable_sim_frv_trapdump
1011 enable_sim_rx_cycle_accurate
1012 '
1013 ac_precious_vars='build_alias
1014 host_alias
1015 target_alias
1016 CC
1017 CFLAGS
1018 LDFLAGS
1019 LIBS
1020 CPPFLAGS
1021 CPP
1022 PKG_CONFIG
1023 PKG_CONFIG_PATH
1024 PKG_CONFIG_LIBDIR
1025 SDL_CFLAGS
1026 SDL_LIBS
1027 AS_FOR_TARGET_AARCH64
1028 LD_FOR_TARGET_AARCH64
1029 CC_FOR_TARGET_AARCH64
1030 AS_FOR_TARGET_ARM
1031 LD_FOR_TARGET_ARM
1032 CC_FOR_TARGET_ARM
1033 AS_FOR_TARGET_AVR
1034 LD_FOR_TARGET_AVR
1035 CC_FOR_TARGET_AVR
1036 AS_FOR_TARGET_BFIN
1037 LD_FOR_TARGET_BFIN
1038 CC_FOR_TARGET_BFIN
1039 AS_FOR_TARGET_BPF
1040 LD_FOR_TARGET_BPF
1041 CC_FOR_TARGET_BPF
1042 AS_FOR_TARGET_CR16
1043 LD_FOR_TARGET_CR16
1044 CC_FOR_TARGET_CR16
1045 AS_FOR_TARGET_CRIS
1046 LD_FOR_TARGET_CRIS
1047 CC_FOR_TARGET_CRIS
1048 AS_FOR_TARGET_D10V
1049 LD_FOR_TARGET_D10V
1050 CC_FOR_TARGET_D10V
1051 AS_FOR_TARGET_FRV
1052 LD_FOR_TARGET_FRV
1053 CC_FOR_TARGET_FRV
1054 AS_FOR_TARGET_FT32
1055 LD_FOR_TARGET_FT32
1056 CC_FOR_TARGET_FT32
1057 AS_FOR_TARGET_H8300
1058 LD_FOR_TARGET_H8300
1059 CC_FOR_TARGET_H8300
1060 AS_FOR_TARGET_IQ2000
1061 LD_FOR_TARGET_IQ2000
1062 CC_FOR_TARGET_IQ2000
1063 AS_FOR_TARGET_LM32
1064 LD_FOR_TARGET_LM32
1065 CC_FOR_TARGET_LM32
1066 AS_FOR_TARGET_M32C
1067 LD_FOR_TARGET_M32C
1068 CC_FOR_TARGET_M32C
1069 AS_FOR_TARGET_M32R
1070 LD_FOR_TARGET_M32R
1071 CC_FOR_TARGET_M32R
1072 AS_FOR_TARGET_M68HC11
1073 LD_FOR_TARGET_M68HC11
1074 CC_FOR_TARGET_M68HC11
1075 AS_FOR_TARGET_MCORE
1076 LD_FOR_TARGET_MCORE
1077 CC_FOR_TARGET_MCORE
1078 AS_FOR_TARGET_MICROBLAZE
1079 LD_FOR_TARGET_MICROBLAZE
1080 CC_FOR_TARGET_MICROBLAZE
1081 AS_FOR_TARGET_MIPS
1082 LD_FOR_TARGET_MIPS
1083 CC_FOR_TARGET_MIPS
1084 AS_FOR_TARGET_MN10300
1085 LD_FOR_TARGET_MN10300
1086 CC_FOR_TARGET_MN10300
1087 AS_FOR_TARGET_MOXIE
1088 LD_FOR_TARGET_MOXIE
1089 CC_FOR_TARGET_MOXIE
1090 AS_FOR_TARGET_MSP430
1091 LD_FOR_TARGET_MSP430
1092 CC_FOR_TARGET_MSP430
1093 AS_FOR_TARGET_OR1K
1094 LD_FOR_TARGET_OR1K
1095 CC_FOR_TARGET_OR1K
1096 AS_FOR_TARGET_PPC
1097 LD_FOR_TARGET_PPC
1098 CC_FOR_TARGET_PPC
1099 AS_FOR_TARGET_PRU
1100 LD_FOR_TARGET_PRU
1101 CC_FOR_TARGET_PRU
1102 AS_FOR_TARGET_RISCV
1103 LD_FOR_TARGET_RISCV
1104 CC_FOR_TARGET_RISCV
1105 AS_FOR_TARGET_RL78
1106 LD_FOR_TARGET_RL78
1107 CC_FOR_TARGET_RL78
1108 AS_FOR_TARGET_RX
1109 LD_FOR_TARGET_RX
1110 CC_FOR_TARGET_RX
1111 AS_FOR_TARGET_SH
1112 LD_FOR_TARGET_SH
1113 CC_FOR_TARGET_SH
1114 AS_FOR_TARGET_ERC32
1115 LD_FOR_TARGET_ERC32
1116 CC_FOR_TARGET_ERC32
1117 AS_FOR_TARGET_V850
1118 LD_FOR_TARGET_V850
1119 CC_FOR_TARGET_V850
1120 AS_FOR_TARGET_EXAMPLE_SYNACOR
1121 LD_FOR_TARGET_EXAMPLE_SYNACOR
1122 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1123 ac_subdirs_all='bpf
1124 mips
1125 mn10300
1126 or1k
1127 ppc
1128 riscv
1129 v850'
1130
1131 # Initialize some variables set by options.
1132 ac_init_help=
1133 ac_init_version=false
1134 ac_unrecognized_opts=
1135 ac_unrecognized_sep=
1136 # The variables have the same names as the options, with
1137 # dashes changed to underlines.
1138 cache_file=/dev/null
1139 exec_prefix=NONE
1140 no_create=
1141 no_recursion=
1142 prefix=NONE
1143 program_prefix=NONE
1144 program_suffix=NONE
1145 program_transform_name=s,x,x,
1146 silent=
1147 site=
1148 srcdir=
1149 verbose=
1150 x_includes=NONE
1151 x_libraries=NONE
1152
1153 # Installation directory options.
1154 # These are left unexpanded so users can "make install exec_prefix=/foo"
1155 # and all the variables that are supposed to be based on exec_prefix
1156 # by default will actually change.
1157 # Use braces instead of parens because sh, perl, etc. also accept them.
1158 # (The list follows the same order as the GNU Coding Standards.)
1159 bindir='${exec_prefix}/bin'
1160 sbindir='${exec_prefix}/sbin'
1161 libexecdir='${exec_prefix}/libexec'
1162 datarootdir='${prefix}/share'
1163 datadir='${datarootdir}'
1164 sysconfdir='${prefix}/etc'
1165 sharedstatedir='${prefix}/com'
1166 localstatedir='${prefix}/var'
1167 includedir='${prefix}/include'
1168 oldincludedir='/usr/include'
1169 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1170 infodir='${datarootdir}/info'
1171 htmldir='${docdir}'
1172 dvidir='${docdir}'
1173 pdfdir='${docdir}'
1174 psdir='${docdir}'
1175 libdir='${exec_prefix}/lib'
1176 localedir='${datarootdir}/locale'
1177 mandir='${datarootdir}/man'
1178
1179 ac_prev=
1180 ac_dashdash=
1181 for ac_option
1182 do
1183 # If the previous option needs an argument, assign it.
1184 if test -n "$ac_prev"; then
1185 eval $ac_prev=\$ac_option
1186 ac_prev=
1187 continue
1188 fi
1189
1190 case $ac_option in
1191 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1192 *=) ac_optarg= ;;
1193 *) ac_optarg=yes ;;
1194 esac
1195
1196 # Accept the important Cygnus configure options, so we can diagnose typos.
1197
1198 case $ac_dashdash$ac_option in
1199 --)
1200 ac_dashdash=yes ;;
1201
1202 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1203 ac_prev=bindir ;;
1204 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1205 bindir=$ac_optarg ;;
1206
1207 -build | --build | --buil | --bui | --bu)
1208 ac_prev=build_alias ;;
1209 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1210 build_alias=$ac_optarg ;;
1211
1212 -cache-file | --cache-file | --cache-fil | --cache-fi \
1213 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1214 ac_prev=cache_file ;;
1215 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1216 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1217 cache_file=$ac_optarg ;;
1218
1219 --config-cache | -C)
1220 cache_file=config.cache ;;
1221
1222 -datadir | --datadir | --datadi | --datad)
1223 ac_prev=datadir ;;
1224 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1225 datadir=$ac_optarg ;;
1226
1227 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1228 | --dataroo | --dataro | --datar)
1229 ac_prev=datarootdir ;;
1230 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1231 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1232 datarootdir=$ac_optarg ;;
1233
1234 -disable-* | --disable-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid feature name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243 "enable_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval enable_$ac_useropt=no ;;
1249
1250 -docdir | --docdir | --docdi | --doc | --do)
1251 ac_prev=docdir ;;
1252 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1253 docdir=$ac_optarg ;;
1254
1255 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1256 ac_prev=dvidir ;;
1257 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1258 dvidir=$ac_optarg ;;
1259
1260 -enable-* | --enable-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error $? "invalid feature name: $ac_useropt"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1268 *"
1269 "enable_$ac_useropt"
1270 "*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval enable_$ac_useropt=\$ac_optarg ;;
1275
1276 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1277 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1278 | --exec | --exe | --ex)
1279 ac_prev=exec_prefix ;;
1280 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1281 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1282 | --exec=* | --exe=* | --ex=*)
1283 exec_prefix=$ac_optarg ;;
1284
1285 -gas | --gas | --ga | --g)
1286 # Obsolete; use --with-gas.
1287 with_gas=yes ;;
1288
1289 -help | --help | --hel | --he | -h)
1290 ac_init_help=long ;;
1291 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1292 ac_init_help=recursive ;;
1293 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1294 ac_init_help=short ;;
1295
1296 -host | --host | --hos | --ho)
1297 ac_prev=host_alias ;;
1298 -host=* | --host=* | --hos=* | --ho=*)
1299 host_alias=$ac_optarg ;;
1300
1301 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1302 ac_prev=htmldir ;;
1303 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1304 | --ht=*)
1305 htmldir=$ac_optarg ;;
1306
1307 -includedir | --includedir | --includedi | --included | --include \
1308 | --includ | --inclu | --incl | --inc)
1309 ac_prev=includedir ;;
1310 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1311 | --includ=* | --inclu=* | --incl=* | --inc=*)
1312 includedir=$ac_optarg ;;
1313
1314 -infodir | --infodir | --infodi | --infod | --info | --inf)
1315 ac_prev=infodir ;;
1316 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1317 infodir=$ac_optarg ;;
1318
1319 -libdir | --libdir | --libdi | --libd)
1320 ac_prev=libdir ;;
1321 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1322 libdir=$ac_optarg ;;
1323
1324 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1325 | --libexe | --libex | --libe)
1326 ac_prev=libexecdir ;;
1327 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1328 | --libexe=* | --libex=* | --libe=*)
1329 libexecdir=$ac_optarg ;;
1330
1331 -localedir | --localedir | --localedi | --localed | --locale)
1332 ac_prev=localedir ;;
1333 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1334 localedir=$ac_optarg ;;
1335
1336 -localstatedir | --localstatedir | --localstatedi | --localstated \
1337 | --localstate | --localstat | --localsta | --localst | --locals)
1338 ac_prev=localstatedir ;;
1339 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1340 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1341 localstatedir=$ac_optarg ;;
1342
1343 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1344 ac_prev=mandir ;;
1345 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1346 mandir=$ac_optarg ;;
1347
1348 -nfp | --nfp | --nf)
1349 # Obsolete; use --without-fp.
1350 with_fp=no ;;
1351
1352 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1353 | --no-cr | --no-c | -n)
1354 no_create=yes ;;
1355
1356 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1357 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1358 no_recursion=yes ;;
1359
1360 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1361 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1362 | --oldin | --oldi | --old | --ol | --o)
1363 ac_prev=oldincludedir ;;
1364 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1365 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1366 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1367 oldincludedir=$ac_optarg ;;
1368
1369 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1370 ac_prev=prefix ;;
1371 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1372 prefix=$ac_optarg ;;
1373
1374 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1375 | --program-pre | --program-pr | --program-p)
1376 ac_prev=program_prefix ;;
1377 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1378 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1379 program_prefix=$ac_optarg ;;
1380
1381 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1382 | --program-suf | --program-su | --program-s)
1383 ac_prev=program_suffix ;;
1384 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1385 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1386 program_suffix=$ac_optarg ;;
1387
1388 -program-transform-name | --program-transform-name \
1389 | --program-transform-nam | --program-transform-na \
1390 | --program-transform-n | --program-transform- \
1391 | --program-transform | --program-transfor \
1392 | --program-transfo | --program-transf \
1393 | --program-trans | --program-tran \
1394 | --progr-tra | --program-tr | --program-t)
1395 ac_prev=program_transform_name ;;
1396 -program-transform-name=* | --program-transform-name=* \
1397 | --program-transform-nam=* | --program-transform-na=* \
1398 | --program-transform-n=* | --program-transform-=* \
1399 | --program-transform=* | --program-transfor=* \
1400 | --program-transfo=* | --program-transf=* \
1401 | --program-trans=* | --program-tran=* \
1402 | --progr-tra=* | --program-tr=* | --program-t=*)
1403 program_transform_name=$ac_optarg ;;
1404
1405 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1406 ac_prev=pdfdir ;;
1407 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1408 pdfdir=$ac_optarg ;;
1409
1410 -psdir | --psdir | --psdi | --psd | --ps)
1411 ac_prev=psdir ;;
1412 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1413 psdir=$ac_optarg ;;
1414
1415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1416 | -silent | --silent | --silen | --sile | --sil)
1417 silent=yes ;;
1418
1419 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1420 ac_prev=sbindir ;;
1421 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1422 | --sbi=* | --sb=*)
1423 sbindir=$ac_optarg ;;
1424
1425 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1426 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1427 | --sharedst | --shareds | --shared | --share | --shar \
1428 | --sha | --sh)
1429 ac_prev=sharedstatedir ;;
1430 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1431 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1432 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1433 | --sha=* | --sh=*)
1434 sharedstatedir=$ac_optarg ;;
1435
1436 -site | --site | --sit)
1437 ac_prev=site ;;
1438 -site=* | --site=* | --sit=*)
1439 site=$ac_optarg ;;
1440
1441 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1442 ac_prev=srcdir ;;
1443 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1444 srcdir=$ac_optarg ;;
1445
1446 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1447 | --syscon | --sysco | --sysc | --sys | --sy)
1448 ac_prev=sysconfdir ;;
1449 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1450 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1451 sysconfdir=$ac_optarg ;;
1452
1453 -target | --target | --targe | --targ | --tar | --ta | --t)
1454 ac_prev=target_alias ;;
1455 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1456 target_alias=$ac_optarg ;;
1457
1458 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1459 verbose=yes ;;
1460
1461 -version | --version | --versio | --versi | --vers | -V)
1462 ac_init_version=: ;;
1463
1464 -with-* | --with-*)
1465 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1466 # Reject names that are not valid shell variable names.
1467 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1468 as_fn_error $? "invalid package name: $ac_useropt"
1469 ac_useropt_orig=$ac_useropt
1470 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1471 case $ac_user_opts in
1472 *"
1473 "with_$ac_useropt"
1474 "*) ;;
1475 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1476 ac_unrecognized_sep=', ';;
1477 esac
1478 eval with_$ac_useropt=\$ac_optarg ;;
1479
1480 -without-* | --without-*)
1481 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1482 # Reject names that are not valid shell variable names.
1483 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1484 as_fn_error $? "invalid package name: $ac_useropt"
1485 ac_useropt_orig=$ac_useropt
1486 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1487 case $ac_user_opts in
1488 *"
1489 "with_$ac_useropt"
1490 "*) ;;
1491 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1492 ac_unrecognized_sep=', ';;
1493 esac
1494 eval with_$ac_useropt=no ;;
1495
1496 --x)
1497 # Obsolete; use --with-x.
1498 with_x=yes ;;
1499
1500 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1501 | --x-incl | --x-inc | --x-in | --x-i)
1502 ac_prev=x_includes ;;
1503 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1504 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1505 x_includes=$ac_optarg ;;
1506
1507 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1508 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1509 ac_prev=x_libraries ;;
1510 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1511 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1512 x_libraries=$ac_optarg ;;
1513
1514 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1515 Try \`$0 --help' for more information"
1516 ;;
1517
1518 *=*)
1519 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1520 # Reject names that are not valid shell variable names.
1521 case $ac_envvar in #(
1522 '' | [0-9]* | *[!_$as_cr_alnum]* )
1523 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1524 esac
1525 eval $ac_envvar=\$ac_optarg
1526 export $ac_envvar ;;
1527
1528 *)
1529 # FIXME: should be removed in autoconf 3.0.
1530 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1531 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1532 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1533 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1534 ;;
1535
1536 esac
1537 done
1538
1539 if test -n "$ac_prev"; then
1540 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1541 as_fn_error $? "missing argument to $ac_option"
1542 fi
1543
1544 if test -n "$ac_unrecognized_opts"; then
1545 case $enable_option_checking in
1546 no) ;;
1547 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1548 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1549 esac
1550 fi
1551
1552 # Check all directory arguments for consistency.
1553 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1554 datadir sysconfdir sharedstatedir localstatedir includedir \
1555 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1556 libdir localedir mandir
1557 do
1558 eval ac_val=\$$ac_var
1559 # Remove trailing slashes.
1560 case $ac_val in
1561 */ )
1562 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1563 eval $ac_var=\$ac_val;;
1564 esac
1565 # Be sure to have absolute directory names.
1566 case $ac_val in
1567 [\\/$]* | ?:[\\/]* ) continue;;
1568 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1569 esac
1570 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1571 done
1572
1573 # There might be people who depend on the old broken behavior: `$host'
1574 # used to hold the argument of --host etc.
1575 # FIXME: To remove some day.
1576 build=$build_alias
1577 host=$host_alias
1578 target=$target_alias
1579
1580 # FIXME: To remove some day.
1581 if test "x$host_alias" != x; then
1582 if test "x$build_alias" = x; then
1583 cross_compiling=maybe
1584 elif test "x$build_alias" != "x$host_alias"; then
1585 cross_compiling=yes
1586 fi
1587 fi
1588
1589 ac_tool_prefix=
1590 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1591
1592 test "$silent" = yes && exec 6>/dev/null
1593
1594
1595 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1596 ac_ls_di=`ls -di .` &&
1597 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1598 as_fn_error $? "working directory cannot be determined"
1599 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1600 as_fn_error $? "pwd does not report name of working directory"
1601
1602
1603 # Find the source files, if location was not specified.
1604 if test -z "$srcdir"; then
1605 ac_srcdir_defaulted=yes
1606 # Try the directory containing this script, then the parent directory.
1607 ac_confdir=`$as_dirname -- "$as_myself" ||
1608 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1609 X"$as_myself" : 'X\(//\)[^/]' \| \
1610 X"$as_myself" : 'X\(//\)$' \| \
1611 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1612 $as_echo X"$as_myself" |
1613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1614 s//\1/
1615 q
1616 }
1617 /^X\(\/\/\)[^/].*/{
1618 s//\1/
1619 q
1620 }
1621 /^X\(\/\/\)$/{
1622 s//\1/
1623 q
1624 }
1625 /^X\(\/\).*/{
1626 s//\1/
1627 q
1628 }
1629 s/.*/./; q'`
1630 srcdir=$ac_confdir
1631 if test ! -r "$srcdir/$ac_unique_file"; then
1632 srcdir=..
1633 fi
1634 else
1635 ac_srcdir_defaulted=no
1636 fi
1637 if test ! -r "$srcdir/$ac_unique_file"; then
1638 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1639 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1640 fi
1641 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1642 ac_abs_confdir=`(
1643 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1644 pwd)`
1645 # When building in place, set srcdir=.
1646 if test "$ac_abs_confdir" = "$ac_pwd"; then
1647 srcdir=.
1648 fi
1649 # Remove unnecessary trailing slashes from srcdir.
1650 # Double slashes in file names in object file debugging info
1651 # mess up M-x gdb in Emacs.
1652 case $srcdir in
1653 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1654 esac
1655 for ac_var in $ac_precious_vars; do
1656 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1657 eval ac_env_${ac_var}_value=\$${ac_var}
1658 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1659 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1660 done
1661
1662 #
1663 # Report the --help message.
1664 #
1665 if test "$ac_init_help" = "long"; then
1666 # Omit some internal or obsolete options to make the list less imposing.
1667 # This message is too long to be a string in the A/UX 3.1 sh.
1668 cat <<_ACEOF
1669 \`configure' configures sim 0 to adapt to many kinds of systems.
1670
1671 Usage: $0 [OPTION]... [VAR=VALUE]...
1672
1673 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1674 VAR=VALUE. See below for descriptions of some of the useful variables.
1675
1676 Defaults for the options are specified in brackets.
1677
1678 Configuration:
1679 -h, --help display this help and exit
1680 --help=short display options specific to this package
1681 --help=recursive display the short help of all the included packages
1682 -V, --version display version information and exit
1683 -q, --quiet, --silent do not print \`checking ...' messages
1684 --cache-file=FILE cache test results in FILE [disabled]
1685 -C, --config-cache alias for \`--cache-file=config.cache'
1686 -n, --no-create do not create output files
1687 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1688
1689 Installation directories:
1690 --prefix=PREFIX install architecture-independent files in PREFIX
1691 [$ac_default_prefix]
1692 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1693 [PREFIX]
1694
1695 By default, \`make install' will install all the files in
1696 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1697 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1698 for instance \`--prefix=\$HOME'.
1699
1700 For better control, use the options below.
1701
1702 Fine tuning of the installation directories:
1703 --bindir=DIR user executables [EPREFIX/bin]
1704 --sbindir=DIR system admin executables [EPREFIX/sbin]
1705 --libexecdir=DIR program executables [EPREFIX/libexec]
1706 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1707 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1708 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1709 --libdir=DIR object code libraries [EPREFIX/lib]
1710 --includedir=DIR C header files [PREFIX/include]
1711 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1712 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1713 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1714 --infodir=DIR info documentation [DATAROOTDIR/info]
1715 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1716 --mandir=DIR man documentation [DATAROOTDIR/man]
1717 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1718 --htmldir=DIR html documentation [DOCDIR]
1719 --dvidir=DIR dvi documentation [DOCDIR]
1720 --pdfdir=DIR pdf documentation [DOCDIR]
1721 --psdir=DIR ps documentation [DOCDIR]
1722 _ACEOF
1723
1724 cat <<\_ACEOF
1725
1726 Program names:
1727 --program-prefix=PREFIX prepend PREFIX to installed program names
1728 --program-suffix=SUFFIX append SUFFIX to installed program names
1729 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1730
1731 System types:
1732 --build=BUILD configure for building on BUILD [guessed]
1733 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1734 --target=TARGET configure for building compilers for TARGET [HOST]
1735 _ACEOF
1736 fi
1737
1738 if test -n "$ac_init_help"; then
1739 case $ac_init_help in
1740 short | recursive ) echo "Configuration of sim 0:";;
1741 esac
1742 cat <<\_ACEOF
1743
1744 Optional Features:
1745 --disable-option-checking ignore unrecognized --enable/--with options
1746 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1747 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1748 --enable-plugins Enable support for plugins
1749 --enable-shared[=PKGS] build shared libraries [default=yes]
1750 --enable-static[=PKGS] build static libraries [default=yes]
1751 --enable-fast-install[=PKGS]
1752 optimize for fast installation [default=yes]
1753 --disable-libtool-lock avoid locking (might break parallel builds)
1754 --enable-maintainer-mode
1755 enable make rules and dependencies not useful (and
1756 sometimes confusing) to the casual installer
1757 --enable-dependency-tracking
1758 do not reject slow dependency extractors
1759 --disable-dependency-tracking
1760 speeds up one-time build
1761 --enable-silent-rules less verbose build output (undo: "make V=1")
1762 --disable-silent-rules verbose build output (undo: "make V=0")
1763 --enable-sim Enable the GNU simulator
1764 --enable-example-sims enable example GNU simulators
1765 --enable-targets alternative target configurations
1766 --enable-sim-alignment=align
1767 Specify strict, nonstrict or forced alignment of
1768 memory accesses
1769 --enable-sim-assert Specify whether to perform random assertions
1770 --enable-cgen-maint=DIR build cgen generated files
1771 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1772 itself)
1773 --enable-sim-endian=endian
1774 Specify target byte endian orientation
1775 --enable-sim-environment=environment
1776 Specify mixed, user, virtual or operating
1777 environment
1778 --enable-sim-hardware Whether to enable hardware/device simulation
1779 --enable-sim-inline=inlines
1780 Specify which functions should be inlined
1781 --enable-sim-profile=opts
1782 Enable profiling flags
1783 --enable-sim-reserved-bits
1784 Specify whether to check reserved bits in
1785 instruction
1786 --enable-sim-scache=size
1787 Specify simulator execution cache size
1788 --enable-sim-stdio Specify whether to use stdio for console
1789 input/output
1790 --enable-sim-trace=opts Enable tracing of simulated programs
1791 --enable-werror treat compile warnings as errors
1792 --enable-build-warnings enable build-time compiler warnings if gcc is used
1793 --enable-sim-build-warnings
1794 enable SIM specific build-time compiler warnings if
1795 gcc is used
1796 --enable-sim-frv-trapdump
1797 Make unknown traps dump the registers
1798 --disable-sim-rx-cycle-accurate
1799 Disable cycle accurate simulation (faster runtime)
1800
1801 Optional Packages:
1802 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1803 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1804 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1805 --with-bugurl=URL Direct users to URL to report a bug
1806 --with-system-zlib use installed libz
1807 --with-pic try to use only PIC/non-PIC objects [default=use
1808 both]
1809 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1810
1811 Some influential environment variables:
1812 CC C compiler command
1813 CFLAGS C compiler flags
1814 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1815 nonstandard directory <lib dir>
1816 LIBS libraries to pass to the linker, e.g. -l<library>
1817 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1818 you have headers in a nonstandard directory <include dir>
1819 CPP C preprocessor
1820 PKG_CONFIG path to pkg-config utility
1821 PKG_CONFIG_PATH
1822 directories to add to pkg-config's search path
1823 PKG_CONFIG_LIBDIR
1824 path overriding pkg-config's built-in search path
1825 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1826 SDL_LIBS linker flags for SDL, overriding pkg-config
1827 AS_FOR_TARGET_AARCH64
1828 Assembler for aarch64 tests
1829 LD_FOR_TARGET_AARCH64
1830 Linker for aarch64 tests
1831 CC_FOR_TARGET_AARCH64
1832 C compiler for aarch64 tests
1833 AS_FOR_TARGET_ARM
1834 Assembler for arm tests
1835 LD_FOR_TARGET_ARM
1836 Linker for arm tests
1837 CC_FOR_TARGET_ARM
1838 C compiler for arm tests
1839 AS_FOR_TARGET_AVR
1840 Assembler for avr tests
1841 LD_FOR_TARGET_AVR
1842 Linker for avr tests
1843 CC_FOR_TARGET_AVR
1844 C compiler for avr tests
1845 AS_FOR_TARGET_BFIN
1846 Assembler for bfin tests
1847 LD_FOR_TARGET_BFIN
1848 Linker for bfin tests
1849 CC_FOR_TARGET_BFIN
1850 C compiler for bfin tests
1851 AS_FOR_TARGET_BPF
1852 Assembler for bpf tests
1853 LD_FOR_TARGET_BPF
1854 Linker for bpf tests
1855 CC_FOR_TARGET_BPF
1856 C compiler for bpf tests
1857 AS_FOR_TARGET_CR16
1858 Assembler for cr16 tests
1859 LD_FOR_TARGET_CR16
1860 Linker for cr16 tests
1861 CC_FOR_TARGET_CR16
1862 C compiler for cr16 tests
1863 AS_FOR_TARGET_CRIS
1864 Assembler for cris tests
1865 LD_FOR_TARGET_CRIS
1866 Linker for cris tests
1867 CC_FOR_TARGET_CRIS
1868 C compiler for cris tests
1869 AS_FOR_TARGET_D10V
1870 Assembler for d10v tests
1871 LD_FOR_TARGET_D10V
1872 Linker for d10v tests
1873 CC_FOR_TARGET_D10V
1874 C compiler for d10v tests
1875 AS_FOR_TARGET_FRV
1876 Assembler for frv tests
1877 LD_FOR_TARGET_FRV
1878 Linker for frv tests
1879 CC_FOR_TARGET_FRV
1880 C compiler for frv tests
1881 AS_FOR_TARGET_FT32
1882 Assembler for ft32 tests
1883 LD_FOR_TARGET_FT32
1884 Linker for ft32 tests
1885 CC_FOR_TARGET_FT32
1886 C compiler for ft32 tests
1887 AS_FOR_TARGET_H8300
1888 Assembler for h8300 tests
1889 LD_FOR_TARGET_H8300
1890 Linker for h8300 tests
1891 CC_FOR_TARGET_H8300
1892 C compiler for h8300 tests
1893 AS_FOR_TARGET_IQ2000
1894 Assembler for iq2000 tests
1895 LD_FOR_TARGET_IQ2000
1896 Linker for iq2000 tests
1897 CC_FOR_TARGET_IQ2000
1898 C compiler for iq2000 tests
1899 AS_FOR_TARGET_LM32
1900 Assembler for lm32 tests
1901 LD_FOR_TARGET_LM32
1902 Linker for lm32 tests
1903 CC_FOR_TARGET_LM32
1904 C compiler for lm32 tests
1905 AS_FOR_TARGET_M32C
1906 Assembler for m32c tests
1907 LD_FOR_TARGET_M32C
1908 Linker for m32c tests
1909 CC_FOR_TARGET_M32C
1910 C compiler for m32c tests
1911 AS_FOR_TARGET_M32R
1912 Assembler for m32r tests
1913 LD_FOR_TARGET_M32R
1914 Linker for m32r tests
1915 CC_FOR_TARGET_M32R
1916 C compiler for m32r tests
1917 AS_FOR_TARGET_M68HC11
1918 Assembler for m68hc11 tests
1919 LD_FOR_TARGET_M68HC11
1920 Linker for m68hc11 tests
1921 CC_FOR_TARGET_M68HC11
1922 C compiler for m68hc11 tests
1923 AS_FOR_TARGET_MCORE
1924 Assembler for mcore tests
1925 LD_FOR_TARGET_MCORE
1926 Linker for mcore tests
1927 CC_FOR_TARGET_MCORE
1928 C compiler for mcore tests
1929 AS_FOR_TARGET_MICROBLAZE
1930 Assembler for microblaze tests
1931 LD_FOR_TARGET_MICROBLAZE
1932 Linker for microblaze tests
1933 CC_FOR_TARGET_MICROBLAZE
1934 C compiler for microblaze tests
1935 AS_FOR_TARGET_MIPS
1936 Assembler for mips tests
1937 LD_FOR_TARGET_MIPS
1938 Linker for mips tests
1939 CC_FOR_TARGET_MIPS
1940 C compiler for mips tests
1941 AS_FOR_TARGET_MN10300
1942 Assembler for mn10300 tests
1943 LD_FOR_TARGET_MN10300
1944 Linker for mn10300 tests
1945 CC_FOR_TARGET_MN10300
1946 C compiler for mn10300 tests
1947 AS_FOR_TARGET_MOXIE
1948 Assembler for moxie tests
1949 LD_FOR_TARGET_MOXIE
1950 Linker for moxie tests
1951 CC_FOR_TARGET_MOXIE
1952 C compiler for moxie tests
1953 AS_FOR_TARGET_MSP430
1954 Assembler for msp430 tests
1955 LD_FOR_TARGET_MSP430
1956 Linker for msp430 tests
1957 CC_FOR_TARGET_MSP430
1958 C compiler for msp430 tests
1959 AS_FOR_TARGET_OR1K
1960 Assembler for or1k tests
1961 LD_FOR_TARGET_OR1K
1962 Linker for or1k tests
1963 CC_FOR_TARGET_OR1K
1964 C compiler for or1k tests
1965 AS_FOR_TARGET_PPC
1966 Assembler for ppc tests
1967 LD_FOR_TARGET_PPC
1968 Linker for ppc tests
1969 CC_FOR_TARGET_PPC
1970 C compiler for ppc tests
1971 AS_FOR_TARGET_PRU
1972 Assembler for pru tests
1973 LD_FOR_TARGET_PRU
1974 Linker for pru tests
1975 CC_FOR_TARGET_PRU
1976 C compiler for pru tests
1977 AS_FOR_TARGET_RISCV
1978 Assembler for riscv tests
1979 LD_FOR_TARGET_RISCV
1980 Linker for riscv tests
1981 CC_FOR_TARGET_RISCV
1982 C compiler for riscv tests
1983 AS_FOR_TARGET_RL78
1984 Assembler for rl78 tests
1985 LD_FOR_TARGET_RL78
1986 Linker for rl78 tests
1987 CC_FOR_TARGET_RL78
1988 C compiler for rl78 tests
1989 AS_FOR_TARGET_RX
1990 Assembler for rx tests
1991 LD_FOR_TARGET_RX
1992 Linker for rx tests
1993 CC_FOR_TARGET_RX
1994 C compiler for rx tests
1995 AS_FOR_TARGET_SH
1996 Assembler for sh tests
1997 LD_FOR_TARGET_SH
1998 Linker for sh tests
1999 CC_FOR_TARGET_SH
2000 C compiler for sh tests
2001 AS_FOR_TARGET_ERC32
2002 Assembler for erc32 tests
2003 LD_FOR_TARGET_ERC32
2004 Linker for erc32 tests
2005 CC_FOR_TARGET_ERC32
2006 C compiler for erc32 tests
2007 AS_FOR_TARGET_V850
2008 Assembler for v850 tests
2009 LD_FOR_TARGET_V850
2010 Linker for v850 tests
2011 CC_FOR_TARGET_V850
2012 C compiler for v850 tests
2013 AS_FOR_TARGET_EXAMPLE_SYNACOR
2014 Assembler for example-synacor tests
2015 LD_FOR_TARGET_EXAMPLE_SYNACOR
2016 Linker for example-synacor tests
2017 CC_FOR_TARGET_EXAMPLE_SYNACOR
2018 C compiler for example-synacor tests
2019
2020 Use these variables to override the choices made by `configure' or to help
2021 it to find libraries and programs with nonstandard names/locations.
2022
2023 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2024 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2025 _ACEOF
2026 ac_status=$?
2027 fi
2028
2029 if test "$ac_init_help" = "recursive"; then
2030 # If there are subdirs, report their specific --help.
2031 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2032 test -d "$ac_dir" ||
2033 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2034 continue
2035 ac_builddir=.
2036
2037 case "$ac_dir" in
2038 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *)
2040 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2041 # A ".." for each directory in $ac_dir_suffix.
2042 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2043 case $ac_top_builddir_sub in
2044 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2045 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2046 esac ;;
2047 esac
2048 ac_abs_top_builddir=$ac_pwd
2049 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2050 # for backward compatibility:
2051 ac_top_builddir=$ac_top_build_prefix
2052
2053 case $srcdir in
2054 .) # We are building in place.
2055 ac_srcdir=.
2056 ac_top_srcdir=$ac_top_builddir_sub
2057 ac_abs_top_srcdir=$ac_pwd ;;
2058 [\\/]* | ?:[\\/]* ) # Absolute name.
2059 ac_srcdir=$srcdir$ac_dir_suffix;
2060 ac_top_srcdir=$srcdir
2061 ac_abs_top_srcdir=$srcdir ;;
2062 *) # Relative name.
2063 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2064 ac_top_srcdir=$ac_top_build_prefix$srcdir
2065 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2066 esac
2067 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2068
2069 cd "$ac_dir" || { ac_status=$?; continue; }
2070 # Check for guested configure.
2071 if test -f "$ac_srcdir/configure.gnu"; then
2072 echo &&
2073 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2074 elif test -f "$ac_srcdir/configure"; then
2075 echo &&
2076 $SHELL "$ac_srcdir/configure" --help=recursive
2077 else
2078 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2079 fi || ac_status=$?
2080 cd "$ac_pwd" || { ac_status=$?; break; }
2081 done
2082 fi
2083
2084 test -n "$ac_init_help" && exit $ac_status
2085 if $ac_init_version; then
2086 cat <<\_ACEOF
2087 sim configure 0
2088 generated by GNU Autoconf 2.69
2089
2090 Copyright (C) 2012 Free Software Foundation, Inc.
2091 This configure script is free software; the Free Software Foundation
2092 gives unlimited permission to copy, distribute and modify it.
2093 _ACEOF
2094 exit
2095 fi
2096
2097 ## ------------------------ ##
2098 ## Autoconf initialization. ##
2099 ## ------------------------ ##
2100
2101 # ac_fn_c_try_compile LINENO
2102 # --------------------------
2103 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2104 ac_fn_c_try_compile ()
2105 {
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 rm -f conftest.$ac_objext
2108 if { { ac_try="$ac_compile"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_compile") 2>conftest.err
2116 ac_status=$?
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2121 fi
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } && {
2124 test -z "$ac_c_werror_flag" ||
2125 test ! -s conftest.err
2126 } && test -s conftest.$ac_objext; then :
2127 ac_retval=0
2128 else
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 ac_retval=1
2133 fi
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 as_fn_set_status $ac_retval
2136
2137 } # ac_fn_c_try_compile
2138
2139 # ac_fn_c_try_cpp LINENO
2140 # ----------------------
2141 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2142 ac_fn_c_try_cpp ()
2143 {
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if { { ac_try="$ac_cpp conftest.$ac_ext"
2146 case "(($ac_try" in
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2149 esac
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2153 ac_status=$?
2154 if test -s conftest.err; then
2155 grep -v '^ *+' conftest.err >conftest.er1
2156 cat conftest.er1 >&5
2157 mv -f conftest.er1 conftest.err
2158 fi
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } > conftest.i && {
2161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2162 test ! -s conftest.err
2163 }; then :
2164 ac_retval=0
2165 else
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 ac_retval=1
2170 fi
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 as_fn_set_status $ac_retval
2173
2174 } # ac_fn_c_try_cpp
2175
2176 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2177 # -------------------------------------------------------
2178 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2179 # the include files in INCLUDES and setting the cache variable VAR
2180 # accordingly.
2181 ac_fn_c_check_header_mongrel ()
2182 {
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if eval \${$3+:} false; then :
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if eval \${$3+:} false; then :
2188 $as_echo_n "(cached) " >&6
2189 fi
2190 eval ac_res=\$$3
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 else
2194 # Is the header compilable?
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2196 $as_echo_n "checking $2 usability... " >&6; }
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 $4
2200 #include <$2>
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 ac_header_compiler=yes
2204 else
2205 ac_header_compiler=no
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2209 $as_echo "$ac_header_compiler" >&6; }
2210
2211 # Is the header present?
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2213 $as_echo_n "checking $2 presence... " >&6; }
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 #include <$2>
2217 _ACEOF
2218 if ac_fn_c_try_cpp "$LINENO"; then :
2219 ac_header_preproc=yes
2220 else
2221 ac_header_preproc=no
2222 fi
2223 rm -f conftest.err conftest.i conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2225 $as_echo "$ac_header_preproc" >&6; }
2226
2227 # So? What about this header?
2228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2229 yes:no: )
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2231 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2233 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2234 ;;
2235 no:yes:* )
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2237 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2239 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2241 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2243 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2245 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2246 ( $as_echo "## -------------------------------------------------------------------------------------- ##
2247 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
2248 ## -------------------------------------------------------------------------------------- ##"
2249 ) | sed "s/^/$as_me: WARNING: /" >&2
2250 ;;
2251 esac
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if eval \${$3+:} false; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 eval "$3=\$ac_header_compiler"
2258 fi
2259 eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 fi
2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264
2265 } # ac_fn_c_check_header_mongrel
2266
2267 # ac_fn_c_try_run LINENO
2268 # ----------------------
2269 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2270 # that executables *can* be run.
2271 ac_fn_c_try_run ()
2272 {
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 if { { ac_try="$ac_link"
2275 case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_link") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2285 { { case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_try") 2>&5
2292 ac_status=$?
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; }; }; then :
2295 ac_retval=0
2296 else
2297 $as_echo "$as_me: program exited with status $ac_status" >&5
2298 $as_echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2300
2301 ac_retval=$ac_status
2302 fi
2303 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 as_fn_set_status $ac_retval
2306
2307 } # ac_fn_c_try_run
2308
2309 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2310 # -------------------------------------------------------
2311 # Tests whether HEADER exists and can be compiled using the include files in
2312 # INCLUDES, setting the cache variable VAR accordingly.
2313 ac_fn_c_check_header_compile ()
2314 {
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if eval \${$3+:} false; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 $4
2324 #include <$2>
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 eval "$3=yes"
2328 else
2329 eval "$3=no"
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337
2338 } # ac_fn_c_check_header_compile
2339
2340 # ac_fn_c_try_link LINENO
2341 # -----------------------
2342 # Try to link conftest.$ac_ext, and return whether this succeeded.
2343 ac_fn_c_try_link ()
2344 {
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 rm -f conftest.$ac_objext conftest$ac_exeext
2347 if { { ac_try="$ac_link"
2348 case "(($ac_try" in
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2351 esac
2352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2353 $as_echo "$ac_try_echo"; } >&5
2354 (eval "$ac_link") 2>conftest.err
2355 ac_status=$?
2356 if test -s conftest.err; then
2357 grep -v '^ *+' conftest.err >conftest.er1
2358 cat conftest.er1 >&5
2359 mv -f conftest.er1 conftest.err
2360 fi
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; } && {
2363 test -z "$ac_c_werror_flag" ||
2364 test ! -s conftest.err
2365 } && test -s conftest$ac_exeext && {
2366 test "$cross_compiling" = yes ||
2367 test -x conftest$ac_exeext
2368 }; then :
2369 ac_retval=0
2370 else
2371 $as_echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 ac_retval=1
2375 fi
2376 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2377 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2378 # interfere with the next link command; also delete a directory that is
2379 # left behind by Apple's compiler. We do this before executing the actions.
2380 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382 as_fn_set_status $ac_retval
2383
2384 } # ac_fn_c_try_link
2385
2386 # ac_fn_c_check_func LINENO FUNC VAR
2387 # ----------------------------------
2388 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2389 ac_fn_c_check_func ()
2390 {
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2393 $as_echo_n "checking for $2... " >&6; }
2394 if eval \${$3+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2401 #define $2 innocuous_$2
2402
2403 /* System header to define __stub macros and hopefully few prototypes,
2404 which can conflict with char $2 (); below.
2405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2406 <limits.h> exists even on freestanding compilers. */
2407
2408 #ifdef __STDC__
2409 # include <limits.h>
2410 #else
2411 # include <assert.h>
2412 #endif
2413
2414 #undef $2
2415
2416 /* Override any GCC internal prototype to avoid an error.
2417 Use char because int might match the return type of a GCC
2418 builtin and then its argument prototype would still apply. */
2419 #ifdef __cplusplus
2420 extern "C"
2421 #endif
2422 char $2 ();
2423 /* The GNU C library defines this for functions which it implements
2424 to always fail with ENOSYS. Some functions are actually named
2425 something starting with __ and the normal name is an alias. */
2426 #if defined __stub_$2 || defined __stub___$2
2427 choke me
2428 #endif
2429
2430 int
2431 main ()
2432 {
2433 return $2 ();
2434 ;
2435 return 0;
2436 }
2437 _ACEOF
2438 if ac_fn_c_try_link "$LINENO"; then :
2439 eval "$3=yes"
2440 else
2441 eval "$3=no"
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext \
2444 conftest$ac_exeext conftest.$ac_ext
2445 fi
2446 eval ac_res=\$$3
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2450
2451 } # ac_fn_c_check_func
2452
2453 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2454 # ----------------------------------------------------
2455 # Tries to find if the field MEMBER exists in type AGGR, after including
2456 # INCLUDES, setting cache variable VAR accordingly.
2457 ac_fn_c_check_member ()
2458 {
2459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2461 $as_echo_n "checking for $2.$3... " >&6; }
2462 if eval \${$4+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2467 $5
2468 int
2469 main ()
2470 {
2471 static $2 ac_aggr;
2472 if (ac_aggr.$3)
2473 return 0;
2474 ;
2475 return 0;
2476 }
2477 _ACEOF
2478 if ac_fn_c_try_compile "$LINENO"; then :
2479 eval "$4=yes"
2480 else
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2483 $5
2484 int
2485 main ()
2486 {
2487 static $2 ac_aggr;
2488 if (sizeof ac_aggr.$3)
2489 return 0;
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 if ac_fn_c_try_compile "$LINENO"; then :
2495 eval "$4=yes"
2496 else
2497 eval "$4=no"
2498 fi
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 fi
2501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502 fi
2503 eval ac_res=\$$4
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505 $as_echo "$ac_res" >&6; }
2506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2507
2508 } # ac_fn_c_check_member
2509
2510 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2511 # ---------------------------------------------
2512 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2513 # accordingly.
2514 ac_fn_c_check_decl ()
2515 {
2516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2517 as_decl_name=`echo $2|sed 's/ *(.*//'`
2518 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2520 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2521 if eval \${$3+:} false; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2526 $4
2527 int
2528 main ()
2529 {
2530 #ifndef $as_decl_name
2531 #ifdef __cplusplus
2532 (void) $as_decl_use;
2533 #else
2534 (void) $as_decl_name;
2535 #endif
2536 #endif
2537
2538 ;
2539 return 0;
2540 }
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 eval "$3=yes"
2544 else
2545 eval "$3=no"
2546 fi
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 fi
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553
2554 } # ac_fn_c_check_decl
2555
2556 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2557 # -------------------------------------------
2558 # Tests whether TYPE exists after having included INCLUDES, setting cache
2559 # variable VAR accordingly.
2560 ac_fn_c_check_type ()
2561 {
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if eval \${$3+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 eval "$3=no"
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2571 $4
2572 int
2573 main ()
2574 {
2575 if (sizeof ($2))
2576 return 0;
2577 ;
2578 return 0;
2579 }
2580 _ACEOF
2581 if ac_fn_c_try_compile "$LINENO"; then :
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 $4
2585 int
2586 main ()
2587 {
2588 if (sizeof (($2)))
2589 return 0;
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595
2596 else
2597 eval "$3=yes"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 fi
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 fi
2603 eval ac_res=\$$3
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2607
2608 } # ac_fn_c_check_type
2609 cat >config.log <<_ACEOF
2610 This file contains any messages produced by compilers while
2611 running configure, to aid debugging if configure makes a mistake.
2612
2613 It was created by sim $as_me 0, which was
2614 generated by GNU Autoconf 2.69. Invocation command line was
2615
2616 $ $0 $@
2617
2618 _ACEOF
2619 exec 5>>config.log
2620 {
2621 cat <<_ASUNAME
2622 ## --------- ##
2623 ## Platform. ##
2624 ## --------- ##
2625
2626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2631
2632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2633 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2634
2635 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2636 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2638 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2639 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2640 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2641 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2642
2643 _ASUNAME
2644
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 $as_echo "PATH: $as_dir"
2651 done
2652 IFS=$as_save_IFS
2653
2654 } >&5
2655
2656 cat >&5 <<_ACEOF
2657
2658
2659 ## ----------- ##
2660 ## Core tests. ##
2661 ## ----------- ##
2662
2663 _ACEOF
2664
2665
2666 # Keep a trace of the command line.
2667 # Strip out --no-create and --no-recursion so they do not pile up.
2668 # Strip out --silent because we don't want to record it for future runs.
2669 # Also quote any args containing shell meta-characters.
2670 # Make two passes to allow for proper duplicate-argument suppression.
2671 ac_configure_args=
2672 ac_configure_args0=
2673 ac_configure_args1=
2674 ac_must_keep_next=false
2675 for ac_pass in 1 2
2676 do
2677 for ac_arg
2678 do
2679 case $ac_arg in
2680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2682 | -silent | --silent | --silen | --sile | --sil)
2683 continue ;;
2684 *\'*)
2685 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2686 esac
2687 case $ac_pass in
2688 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2689 2)
2690 as_fn_append ac_configure_args1 " '$ac_arg'"
2691 if test $ac_must_keep_next = true; then
2692 ac_must_keep_next=false # Got value, back to normal.
2693 else
2694 case $ac_arg in
2695 *=* | --config-cache | -C | -disable-* | --disable-* \
2696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2698 | -with-* | --with-* | -without-* | --without-* | --x)
2699 case "$ac_configure_args0 " in
2700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2701 esac
2702 ;;
2703 -* ) ac_must_keep_next=true ;;
2704 esac
2705 fi
2706 as_fn_append ac_configure_args " '$ac_arg'"
2707 ;;
2708 esac
2709 done
2710 done
2711 { ac_configure_args0=; unset ac_configure_args0;}
2712 { ac_configure_args1=; unset ac_configure_args1;}
2713
2714 # When interrupted or exit'd, cleanup temporary files, and complete
2715 # config.log. We remove comments because anyway the quotes in there
2716 # would cause problems or look ugly.
2717 # WARNING: Use '\'' to represent an apostrophe within the trap.
2718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2719 trap 'exit_status=$?
2720 # Save into config.log some information that might help in debugging.
2721 {
2722 echo
2723
2724 $as_echo "## ---------------- ##
2725 ## Cache variables. ##
2726 ## ---------------- ##"
2727 echo
2728 # The following way of writing the cache mishandles newlines in values,
2729 (
2730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2731 eval ac_val=\$$ac_var
2732 case $ac_val in #(
2733 *${as_nl}*)
2734 case $ac_var in #(
2735 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2736 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2737 esac
2738 case $ac_var in #(
2739 _ | IFS | as_nl) ;; #(
2740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2741 *) { eval $ac_var=; unset $ac_var;} ;;
2742 esac ;;
2743 esac
2744 done
2745 (set) 2>&1 |
2746 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2747 *${as_nl}ac_space=\ *)
2748 sed -n \
2749 "s/'\''/'\''\\\\'\'''\''/g;
2750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2751 ;; #(
2752 *)
2753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2754 ;;
2755 esac |
2756 sort
2757 )
2758 echo
2759
2760 $as_echo "## ----------------- ##
2761 ## Output variables. ##
2762 ## ----------------- ##"
2763 echo
2764 for ac_var in $ac_subst_vars
2765 do
2766 eval ac_val=\$$ac_var
2767 case $ac_val in
2768 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2769 esac
2770 $as_echo "$ac_var='\''$ac_val'\''"
2771 done | sort
2772 echo
2773
2774 if test -n "$ac_subst_files"; then
2775 $as_echo "## ------------------- ##
2776 ## File substitutions. ##
2777 ## ------------------- ##"
2778 echo
2779 for ac_var in $ac_subst_files
2780 do
2781 eval ac_val=\$$ac_var
2782 case $ac_val in
2783 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2784 esac
2785 $as_echo "$ac_var='\''$ac_val'\''"
2786 done | sort
2787 echo
2788 fi
2789
2790 if test -s confdefs.h; then
2791 $as_echo "## ----------- ##
2792 ## confdefs.h. ##
2793 ## ----------- ##"
2794 echo
2795 cat confdefs.h
2796 echo
2797 fi
2798 test "$ac_signal" != 0 &&
2799 $as_echo "$as_me: caught signal $ac_signal"
2800 $as_echo "$as_me: exit $exit_status"
2801 } >&5
2802 rm -f core *.core core.conftest.* &&
2803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2804 exit $exit_status
2805 ' 0
2806 for ac_signal in 1 2 13 15; do
2807 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2808 done
2809 ac_signal=0
2810
2811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2812 rm -f -r conftest* confdefs.h
2813
2814 $as_echo "/* confdefs.h */" > confdefs.h
2815
2816 # Predefined preprocessor variables.
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_NAME "$PACKAGE_NAME"
2820 _ACEOF
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2824 _ACEOF
2825
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2828 _ACEOF
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_STRING "$PACKAGE_STRING"
2832 _ACEOF
2833
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2836 _ACEOF
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_URL "$PACKAGE_URL"
2840 _ACEOF
2841
2842
2843 # Let the site file select an alternate cache file if it wants to.
2844 # Prefer an explicitly selected file to automatically selected ones.
2845 ac_site_file1=NONE
2846 ac_site_file2=NONE
2847 if test -n "$CONFIG_SITE"; then
2848 # We do not want a PATH search for config.site.
2849 case $CONFIG_SITE in #((
2850 -*) ac_site_file1=./$CONFIG_SITE;;
2851 */*) ac_site_file1=$CONFIG_SITE;;
2852 *) ac_site_file1=./$CONFIG_SITE;;
2853 esac
2854 elif test "x$prefix" != xNONE; then
2855 ac_site_file1=$prefix/share/config.site
2856 ac_site_file2=$prefix/etc/config.site
2857 else
2858 ac_site_file1=$ac_default_prefix/share/config.site
2859 ac_site_file2=$ac_default_prefix/etc/config.site
2860 fi
2861 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2862 do
2863 test "x$ac_site_file" = xNONE && continue
2864 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2866 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2867 sed 's/^/| /' "$ac_site_file" >&5
2868 . "$ac_site_file" \
2869 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871 as_fn_error $? "failed to load site script $ac_site_file
2872 See \`config.log' for more details" "$LINENO" 5; }
2873 fi
2874 done
2875
2876 if test -r "$cache_file"; then
2877 # Some versions of bash will fail to source /dev/null (special files
2878 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2879 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881 $as_echo "$as_me: loading cache $cache_file" >&6;}
2882 case $cache_file in
2883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2884 *) . "./$cache_file";;
2885 esac
2886 fi
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889 $as_echo "$as_me: creating cache $cache_file" >&6;}
2890 >$cache_file
2891 fi
2892
2893 as_fn_append ac_header_list " dlfcn.h"
2894 as_fn_append ac_header_list " fcntl.h"
2895 as_fn_append ac_header_list " fpu_control.h"
2896 as_fn_append ac_header_list " termios.h"
2897 as_fn_append ac_header_list " unistd.h"
2898 as_fn_append ac_header_list " utime.h"
2899 as_fn_append ac_header_list " linux/if_tun.h"
2900 as_fn_append ac_header_list " linux/mii.h"
2901 as_fn_append ac_header_list " linux/types.h"
2902 as_fn_append ac_header_list " net/if.h"
2903 as_fn_append ac_header_list " netinet/in.h"
2904 as_fn_append ac_header_list " netinet/tcp.h"
2905 as_fn_append ac_header_list " sys/ioctl.h"
2906 as_fn_append ac_header_list " sys/mman.h"
2907 as_fn_append ac_header_list " sys/mount.h"
2908 as_fn_append ac_header_list " sys/param.h"
2909 as_fn_append ac_header_list " sys/resource.h"
2910 as_fn_append ac_header_list " sys/socket.h"
2911 as_fn_append ac_header_list " sys/stat.h"
2912 as_fn_append ac_header_list " sys/statfs.h"
2913 as_fn_append ac_header_list " sys/termio.h"
2914 as_fn_append ac_header_list " sys/termios.h"
2915 as_fn_append ac_header_list " sys/types.h"
2916 as_fn_append ac_header_list " sys/vfs.h"
2917 as_fn_append ac_func_list " __setfpucw"
2918 as_fn_append ac_func_list " access"
2919 as_fn_append ac_func_list " aint"
2920 as_fn_append ac_func_list " anint"
2921 as_fn_append ac_func_list " cfgetispeed"
2922 as_fn_append ac_func_list " cfgetospeed"
2923 as_fn_append ac_func_list " cfsetispeed"
2924 as_fn_append ac_func_list " cfsetospeed"
2925 as_fn_append ac_func_list " chdir"
2926 as_fn_append ac_func_list " chmod"
2927 as_fn_append ac_func_list " dup"
2928 as_fn_append ac_func_list " dup2"
2929 as_fn_append ac_func_list " execv"
2930 as_fn_append ac_func_list " execve"
2931 as_fn_append ac_func_list " fcntl"
2932 as_fn_append ac_func_list " fork"
2933 as_fn_append ac_func_list " fstat"
2934 as_fn_append ac_func_list " fstatfs"
2935 as_fn_append ac_func_list " ftruncate"
2936 as_fn_append ac_func_list " getdirentries"
2937 as_fn_append ac_func_list " getegid"
2938 as_fn_append ac_func_list " geteuid"
2939 as_fn_append ac_func_list " getgid"
2940 as_fn_append ac_func_list " getpid"
2941 as_fn_append ac_func_list " getppid"
2942 as_fn_append ac_func_list " getrusage"
2943 as_fn_append ac_func_list " gettimeofday"
2944 as_fn_append ac_func_list " getuid"
2945 as_fn_append ac_func_list " ioctl"
2946 as_fn_append ac_func_list " kill"
2947 as_fn_append ac_func_list " link"
2948 as_fn_append ac_func_list " lseek"
2949 as_fn_append ac_func_list " mmap"
2950 as_fn_append ac_func_list " munmap"
2951 as_fn_append ac_func_list " pipe"
2952 as_fn_append ac_func_list " posix_fallocate"
2953 as_fn_append ac_func_list " pread"
2954 as_fn_append ac_func_list " rmdir"
2955 as_fn_append ac_func_list " setregid"
2956 as_fn_append ac_func_list " setreuid"
2957 as_fn_append ac_func_list " setgid"
2958 as_fn_append ac_func_list " setuid"
2959 as_fn_append ac_func_list " sigaction"
2960 as_fn_append ac_func_list " sigprocmask"
2961 as_fn_append ac_func_list " sqrt"
2962 as_fn_append ac_func_list " stat"
2963 as_fn_append ac_func_list " strsignal"
2964 as_fn_append ac_func_list " symlink"
2965 as_fn_append ac_func_list " tcdrain"
2966 as_fn_append ac_func_list " tcflow"
2967 as_fn_append ac_func_list " tcflush"
2968 as_fn_append ac_func_list " tcgetattr"
2969 as_fn_append ac_func_list " tcgetpgrp"
2970 as_fn_append ac_func_list " tcsendbreak"
2971 as_fn_append ac_func_list " tcsetattr"
2972 as_fn_append ac_func_list " tcsetpgrp"
2973 as_fn_append ac_func_list " time"
2974 as_fn_append ac_func_list " truncate"
2975 as_fn_append ac_func_list " umask"
2976 as_fn_append ac_func_list " unlink"
2977 as_fn_append ac_func_list " utime"
2978 # Check that the precious variables saved in the cache have kept the same
2979 # value.
2980 ac_cache_corrupted=false
2981 for ac_var in $ac_precious_vars; do
2982 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2983 eval ac_new_set=\$ac_env_${ac_var}_set
2984 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2985 eval ac_new_val=\$ac_env_${ac_var}_value
2986 case $ac_old_set,$ac_new_set in
2987 set,)
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2989 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2990 ac_cache_corrupted=: ;;
2991 ,set)
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2993 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2994 ac_cache_corrupted=: ;;
2995 ,);;
2996 *)
2997 if test "x$ac_old_val" != "x$ac_new_val"; then
2998 # differences in whitespace do not lead to failure.
2999 ac_old_val_w=`echo x $ac_old_val`
3000 ac_new_val_w=`echo x $ac_new_val`
3001 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3003 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3004 ac_cache_corrupted=:
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3007 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3008 eval $ac_var=\$ac_old_val
3009 fi
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3011 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3013 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3014 fi;;
3015 esac
3016 # Pass precious variables to config.status.
3017 if test "$ac_new_set" = set; then
3018 case $ac_new_val in
3019 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3020 *) ac_arg=$ac_var=$ac_new_val ;;
3021 esac
3022 case " $ac_configure_args " in
3023 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3024 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3025 esac
3026 fi
3027 done
3028 if $ac_cache_corrupted; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3032 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3033 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3034 fi
3035 ## -------------------- ##
3036 ## Main body of script. ##
3037 ## -------------------- ##
3038
3039 ac_ext=c
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044
3045
3046
3047
3048
3049
3050
3051
3052 # Check whether --with-pkgversion was given.
3053 if test "${with_pkgversion+set}" = set; then :
3054 withval=$with_pkgversion; case "$withval" in
3055 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3056 no) PKGVERSION= ;;
3057 *) PKGVERSION="($withval) " ;;
3058 esac
3059 else
3060 PKGVERSION="(SIM) "
3061
3062 fi
3063
3064
3065
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define PKGVERSION "$PKGVERSION"
3069 _ACEOF
3070
3071
3072
3073 # Check whether --with-bugurl was given.
3074 if test "${with_bugurl+set}" = set; then :
3075 withval=$with_bugurl; case "$withval" in
3076 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3077 no) BUGURL=
3078 ;;
3079 *) BUGURL="$withval"
3080 ;;
3081 esac
3082 else
3083 BUGURL="$PACKAGE_BUGREPORT"
3084
3085 fi
3086
3087 case ${BUGURL} in
3088 "")
3089 REPORT_BUGS_TO=
3090 REPORT_BUGS_TEXI=
3091 ;;
3092 *)
3093 REPORT_BUGS_TO="<$BUGURL>"
3094 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3095 ;;
3096 esac;
3097
3098
3099
3100
3101 cat >>confdefs.h <<_ACEOF
3102 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3103 _ACEOF
3104
3105
3106 ac_config_headers="$ac_config_headers config.h"
3107
3108
3109 ac_aux_dir=
3110 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3111 if test -f "$ac_dir/install-sh"; then
3112 ac_aux_dir=$ac_dir
3113 ac_install_sh="$ac_aux_dir/install-sh -c"
3114 break
3115 elif test -f "$ac_dir/install.sh"; then
3116 ac_aux_dir=$ac_dir
3117 ac_install_sh="$ac_aux_dir/install.sh -c"
3118 break
3119 elif test -f "$ac_dir/shtool"; then
3120 ac_aux_dir=$ac_dir
3121 ac_install_sh="$ac_aux_dir/shtool install -c"
3122 break
3123 fi
3124 done
3125 if test -z "$ac_aux_dir"; then
3126 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3127 fi
3128
3129 # These three variables are undocumented and unsupported,
3130 # and are intended to be withdrawn in a future Autoconf release.
3131 # They can cause serious problems if a builder's source tree is in a directory
3132 # whose full name contains unusual characters.
3133 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3134 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3135 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3136
3137
3138 # Make sure we can run config.sub.
3139 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3140 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3143 $as_echo_n "checking build system type... " >&6; }
3144 if ${ac_cv_build+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 ac_build_alias=$build_alias
3148 test "x$ac_build_alias" = x &&
3149 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3150 test "x$ac_build_alias" = x &&
3151 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3152 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3153 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3154
3155 fi
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3157 $as_echo "$ac_cv_build" >&6; }
3158 case $ac_cv_build in
3159 *-*-*) ;;
3160 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3161 esac
3162 build=$ac_cv_build
3163 ac_save_IFS=$IFS; IFS='-'
3164 set x $ac_cv_build
3165 shift
3166 build_cpu=$1
3167 build_vendor=$2
3168 shift; shift
3169 # Remember, the first character of IFS is used to create $*,
3170 # except with old shells:
3171 build_os=$*
3172 IFS=$ac_save_IFS
3173 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3174
3175
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3177 $as_echo_n "checking host system type... " >&6; }
3178 if ${ac_cv_host+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test "x$host_alias" = x; then
3182 ac_cv_host=$ac_cv_build
3183 else
3184 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3185 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3186 fi
3187
3188 fi
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3190 $as_echo "$ac_cv_host" >&6; }
3191 case $ac_cv_host in
3192 *-*-*) ;;
3193 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3194 esac
3195 host=$ac_cv_host
3196 ac_save_IFS=$IFS; IFS='-'
3197 set x $ac_cv_host
3198 shift
3199 host_cpu=$1
3200 host_vendor=$2
3201 shift; shift
3202 # Remember, the first character of IFS is used to create $*,
3203 # except with old shells:
3204 host_os=$*
3205 IFS=$ac_save_IFS
3206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3207
3208
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3210 $as_echo_n "checking target system type... " >&6; }
3211 if ${ac_cv_target+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test "x$target_alias" = x; then
3215 ac_cv_target=$ac_cv_host
3216 else
3217 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3218 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3219 fi
3220
3221 fi
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3223 $as_echo "$ac_cv_target" >&6; }
3224 case $ac_cv_target in
3225 *-*-*) ;;
3226 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3227 esac
3228 target=$ac_cv_target
3229 ac_save_IFS=$IFS; IFS='-'
3230 set x $ac_cv_target
3231 shift
3232 target_cpu=$1
3233 target_vendor=$2
3234 shift; shift
3235 # Remember, the first character of IFS is used to create $*,
3236 # except with old shells:
3237 target_os=$*
3238 IFS=$ac_save_IFS
3239 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3240
3241
3242 # The aliases save the names the user supplied, while $host etc.
3243 # will get canonicalized.
3244 test -n "$target_alias" &&
3245 test "$program_prefix$program_suffix$program_transform_name" = \
3246 NONENONEs,x,x, &&
3247 program_prefix=${target_alias}-
3248 # Expand $ac_aux_dir to an absolute path.
3249 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3250
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3258 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 fi
3295 if test -z "$ac_cv_prog_CC"; then
3296 ac_ct_CC=$CC
3297 # Extract the first word of "gcc", so it can be a program name with args.
3298 set dummy gcc; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_prog_ac_ct_CC="gcc"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325 if test -n "$ac_ct_CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327 $as_echo "$ac_ct_CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333 if test "x$ac_ct_CC" = x; then
3334 CC=""
3335 else
3336 case $cross_compiling:$ac_tool_warned in
3337 yes:)
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3340 ac_tool_warned=yes ;;
3341 esac
3342 CC=$ac_ct_CC
3343 fi
3344 else
3345 CC="$ac_cv_prog_CC"
3346 fi
3347
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}cc; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3385
3386
3387 fi
3388 fi
3389 if test -z "$CC"; then
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
3400 ac_prog_rejected=no
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3410 continue
3411 fi
3412 ac_cv_prog_CC="cc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 if test $ac_prog_rejected = yes; then
3421 # We found a bogon in the path, so make sure we never use it.
3422 set dummy $ac_cv_prog_CC
3423 shift
3424 if test $# != 0; then
3425 # We chose a different compiler from the bogus one.
3426 # However, it has the same basename, so the bogon will be chosen
3427 # first if we set CC to just the basename; use the full file name.
3428 shift
3429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3430 fi
3431 fi
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 $as_echo "$CC" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 fi
3442
3443
3444 fi
3445 if test -z "$CC"; then
3446 if test -n "$ac_tool_prefix"; then
3447 for ac_prog in cl.exe
3448 do
3449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_CC+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470 done
3471 done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486 test -n "$CC" && break
3487 done
3488 fi
3489 if test -z "$CC"; then
3490 ac_ct_CC=$CC
3491 for ac_prog in cl.exe
3492 do
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_ac_ct_CC="$ac_prog"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523 $as_echo "$ac_ct_CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530 test -n "$ac_ct_CC" && break
3531 done
3532
3533 if test "x$ac_ct_CC" = x; then
3534 CC=""
3535 else
3536 case $cross_compiling:$ac_tool_warned in
3537 yes:)
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540 ac_tool_warned=yes ;;
3541 esac
3542 CC=$ac_ct_CC
3543 fi
3544 fi
3545
3546 fi
3547
3548
3549 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "no acceptable C compiler found in \$PATH
3552 See \`config.log' for more details" "$LINENO" 5; }
3553
3554 # Provide some information about the compiler.
3555 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3556 set X $ac_compile
3557 ac_compiler=$2
3558 for ac_option in --version -v -V -qversion; do
3559 { { ac_try="$ac_compiler $ac_option >&5"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3567 ac_status=$?
3568 if test -s conftest.err; then
3569 sed '10a\
3570 ... rest of stderr output deleted ...
3571 10q' conftest.err >conftest.er1
3572 cat conftest.er1 >&5
3573 fi
3574 rm -f conftest.er1 conftest.err
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }
3577 done
3578
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581
3582 int
3583 main ()
3584 {
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 ac_clean_files_save=$ac_clean_files
3591 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3592 # Try to create an executable without -o first, disregard a.out.
3593 # It will help us diagnose broken compilers, and finding out an intuition
3594 # of exeext.
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3596 $as_echo_n "checking whether the C compiler works... " >&6; }
3597 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3598
3599 # The possible output files:
3600 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3601
3602 ac_rmfiles=
3603 for ac_file in $ac_files
3604 do
3605 case $ac_file in
3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3608 esac
3609 done
3610 rm -f $ac_rmfiles
3611
3612 if { { ac_try="$ac_link_default"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link_default") 2>&5
3620 ac_status=$?
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3624 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3625 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3626 # so that the user can short-circuit this test for compilers unknown to
3627 # Autoconf.
3628 for ac_file in $ac_files ''
3629 do
3630 test -f "$ac_file" || continue
3631 case $ac_file in
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3633 ;;
3634 [ab].out )
3635 # We found the default executable, but exeext='' is most
3636 # certainly right.
3637 break;;
3638 *.* )
3639 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3640 then :; else
3641 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 fi
3643 # We set ac_cv_exeext here because the later test for it is not
3644 # safe: cross compilers may not add the suffix if given an `-o'
3645 # argument, so we may need to know it at that point already.
3646 # Even if this section looks crufty: it has the advantage of
3647 # actually working.
3648 break;;
3649 * )
3650 break;;
3651 esac
3652 done
3653 test "$ac_cv_exeext" = no && ac_cv_exeext=
3654
3655 else
3656 ac_file=''
3657 fi
3658 if test -z "$ac_file"; then :
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error 77 "C compiler cannot create executables
3667 See \`config.log' for more details" "$LINENO" 5; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3673 $as_echo_n "checking for C compiler default output file name... " >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3675 $as_echo "$ac_file" >&6; }
3676 ac_exeext=$ac_cv_exeext
3677
3678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3681 $as_echo_n "checking for suffix of executables... " >&6; }
3682 if { { ac_try="$ac_link"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3695 # work properly (i.e., refer to `conftest.exe'), while it won't with
3696 # `rm'.
3697 for ac_file in conftest.exe conftest conftest.*; do
3698 test -f "$ac_file" || continue
3699 case $ac_file in
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3702 break;;
3703 * ) break;;
3704 esac
3705 done
3706 else
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3710 See \`config.log' for more details" "$LINENO" 5; }
3711 fi
3712 rm -f conftest conftest$ac_cv_exeext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3715
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3718 ac_exeext=$EXEEXT
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721 #include <stdio.h>
3722 int
3723 main ()
3724 {
3725 FILE *f = fopen ("conftest.out", "w");
3726 return ferror (f) || fclose (f) != 0;
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 ac_clean_files="$ac_clean_files conftest.out"
3733 # Check that the compiler produces executables we can run. If not, either
3734 # the compiler is broken, or we cross compile.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3736 $as_echo_n "checking whether we are cross compiling... " >&6; }
3737 if test "$cross_compiling" != yes; then
3738 { { ac_try="$ac_link"
3739 case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745 (eval "$ac_link") 2>&5
3746 ac_status=$?
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749 if { ac_try='./conftest$ac_cv_exeext'
3750 { { case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_try") 2>&5
3757 ac_status=$?
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; }; then
3760 cross_compiling=no
3761 else
3762 if test "$cross_compiling" = maybe; then
3763 cross_compiling=yes
3764 else
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "cannot run C compiled programs.
3768 If you meant to cross compile, use \`--host'.
3769 See \`config.log' for more details" "$LINENO" 5; }
3770 fi
3771 fi
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774 $as_echo "$cross_compiling" >&6; }
3775
3776 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3779 $as_echo_n "checking for suffix of object files... " >&6; }
3780 if ${ac_cv_objext+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785
3786 int
3787 main ()
3788 {
3789
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.o conftest.obj
3795 if { { ac_try="$ac_compile"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compile") 2>&5
3803 ac_status=$?
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; then :
3806 for ac_file in conftest.o conftest.obj conftest.*; do
3807 test -f "$ac_file" || continue;
3808 case $ac_file in
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3811 break;;
3812 esac
3813 done
3814 else
3815 $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details" "$LINENO" 5; }
3822 fi
3823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3826 $as_echo "$ac_cv_objext" >&6; }
3827 OBJEXT=$ac_cv_objext
3828 ac_objext=$OBJEXT
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831 if ${ac_cv_c_compiler_gnu+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 int
3838 main ()
3839 {
3840 #ifndef __GNUC__
3841 choke me
3842 #endif
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_compiler_gnu=yes
3850 else
3851 ac_compiler_gnu=no
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3855
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3859 if test $ac_compiler_gnu = yes; then
3860 GCC=yes
3861 else
3862 GCC=
3863 fi
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3868 if ${ac_cv_prog_cc_g+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 ac_save_c_werror_flag=$ac_c_werror_flag
3872 ac_c_werror_flag=yes
3873 ac_cv_prog_cc_g=no
3874 CFLAGS="-g"
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877
3878 int
3879 main ()
3880 {
3881
3882 ;
3883 return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv_prog_cc_g=yes
3888 else
3889 CFLAGS=""
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892
3893 int
3894 main ()
3895 {
3896
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902
3903 else
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3905 CFLAGS="-g"
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3908
3909 int
3910 main ()
3911 {
3912
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_cv_prog_cc_g=yes
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3928 $as_echo "$ac_cv_prog_cc_g" >&6; }
3929 if test "$ac_test_CFLAGS" = set; then
3930 CFLAGS=$ac_save_CFLAGS
3931 elif test $ac_cv_prog_cc_g = yes; then
3932 if test "$GCC" = yes; then
3933 CFLAGS="-g -O2"
3934 else
3935 CFLAGS="-g"
3936 fi
3937 else
3938 if test "$GCC" = yes; then
3939 CFLAGS="-O2"
3940 else
3941 CFLAGS=
3942 fi
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3945 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3946 if ${ac_cv_prog_cc_c89+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 ac_cv_prog_cc_c89=no
3950 ac_save_CC=$CC
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <stdarg.h>
3954 #include <stdio.h>
3955 struct stat;
3956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3957 struct buf { int x; };
3958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3959 static char *e (p, i)
3960 char **p;
3961 int i;
3962 {
3963 return p[i];
3964 }
3965 static char *f (char * (*g) (char **, int), char **p, ...)
3966 {
3967 char *s;
3968 va_list v;
3969 va_start (v,p);
3970 s = g (p, va_arg (v,int));
3971 va_end (v);
3972 return s;
3973 }
3974
3975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3976 function prototypes and stuff, but not '\xHH' hex character constants.
3977 These don't provoke an error unfortunately, instead are silently treated
3978 as 'x'. The following induces an error, until -std is added to get
3979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3980 array size at least. It's necessary to write '\x00'==0 to get something
3981 that's true only with -std. */
3982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3983
3984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3985 inside strings and character constants. */
3986 #define FOO(x) 'x'
3987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3988
3989 int test (int i, double x);
3990 struct s1 {int (*f) (int a);};
3991 struct s2 {int (*f) (double a);};
3992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3993 int argc;
3994 char **argv;
3995 int
3996 main ()
3997 {
3998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4005 do
4006 CC="$ac_save_CC $ac_arg"
4007 if ac_fn_c_try_compile "$LINENO"; then :
4008 ac_cv_prog_cc_c89=$ac_arg
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext
4011 test "x$ac_cv_prog_cc_c89" != "xno" && break
4012 done
4013 rm -f conftest.$ac_ext
4014 CC=$ac_save_CC
4015
4016 fi
4017 # AC_CACHE_VAL
4018 case "x$ac_cv_prog_cc_c89" in
4019 x)
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4021 $as_echo "none needed" >&6; } ;;
4022 xno)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4024 $as_echo "unsupported" >&6; } ;;
4025 *)
4026 CC="$CC $ac_cv_prog_cc_c89"
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4029 esac
4030 if test "x$ac_cv_prog_cc_c89" != xno; then :
4031
4032 fi
4033
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4046 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4047 if ${am_cv_prog_cc_c_o+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052
4053 int
4054 main ()
4055 {
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 # Make sure it works both with $CC and with simple cc.
4062 # Following AC_PROG_CC_C_O, we do the test twice because some
4063 # compilers refuse to overwrite an existing .o file with -o,
4064 # though they will create one.
4065 am_cv_prog_cc_c_o=yes
4066 for am_i in 1 2; do
4067 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4068 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } \
4072 && test -f conftest2.$ac_objext; then
4073 : OK
4074 else
4075 am_cv_prog_cc_c_o=no
4076 break
4077 fi
4078 done
4079 rm -f core conftest*
4080 unset am_i
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4083 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4084 if test "$am_cv_prog_cc_c_o" != yes; then
4085 # Losing compiler, so override with the script.
4086 # FIXME: It is wrong to rewrite CC.
4087 # But if we don't then we get into trouble of one sort or another.
4088 # A longer-term fix would be to have automake use am__CC in this case,
4089 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4090 CC="$am_aux_dir/compile $CC"
4091 fi
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097
4098
4099
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4106 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4107 # On Suns, sometimes $CPP names a directory.
4108 if test -n "$CPP" && test -d "$CPP"; then
4109 CPP=
4110 fi
4111 if test -z "$CPP"; then
4112 if ${ac_cv_prog_CPP+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 # Double quotes because CPP needs to be expanded
4116 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4117 do
4118 ac_preproc_ok=false
4119 for ac_c_preproc_warn_flag in '' yes
4120 do
4121 # Use a header file that comes with gcc, so configuring glibc
4122 # with a fresh cross-compiler works.
4123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4124 # <limits.h> exists even on freestanding compilers.
4125 # On the NeXT, cc -E runs the code through the compiler's parser,
4126 # not just through cpp. "Syntax error" is here to catch this case.
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #ifdef __STDC__
4130 # include <limits.h>
4131 #else
4132 # include <assert.h>
4133 #endif
4134 Syntax error
4135 _ACEOF
4136 if ac_fn_c_try_cpp "$LINENO"; then :
4137
4138 else
4139 # Broken: fails on valid input.
4140 continue
4141 fi
4142 rm -f conftest.err conftest.i conftest.$ac_ext
4143
4144 # OK, works on sane cases. Now check whether nonexistent headers
4145 # can be detected and how.
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 #include <ac_nonexistent.h>
4149 _ACEOF
4150 if ac_fn_c_try_cpp "$LINENO"; then :
4151 # Broken: success on invalid input.
4152 continue
4153 else
4154 # Passes both tests.
4155 ac_preproc_ok=:
4156 break
4157 fi
4158 rm -f conftest.err conftest.i conftest.$ac_ext
4159
4160 done
4161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4162 rm -f conftest.i conftest.err conftest.$ac_ext
4163 if $ac_preproc_ok; then :
4164 break
4165 fi
4166
4167 done
4168 ac_cv_prog_CPP=$CPP
4169
4170 fi
4171 CPP=$ac_cv_prog_CPP
4172 else
4173 ac_cv_prog_CPP=$CPP
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4176 $as_echo "$CPP" >&6; }
4177 ac_preproc_ok=false
4178 for ac_c_preproc_warn_flag in '' yes
4179 do
4180 # Use a header file that comes with gcc, so configuring glibc
4181 # with a fresh cross-compiler works.
4182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183 # <limits.h> exists even on freestanding compilers.
4184 # On the NeXT, cc -E runs the code through the compiler's parser,
4185 # not just through cpp. "Syntax error" is here to catch this case.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #ifdef __STDC__
4189 # include <limits.h>
4190 #else
4191 # include <assert.h>
4192 #endif
4193 Syntax error
4194 _ACEOF
4195 if ac_fn_c_try_cpp "$LINENO"; then :
4196
4197 else
4198 # Broken: fails on valid input.
4199 continue
4200 fi
4201 rm -f conftest.err conftest.i conftest.$ac_ext
4202
4203 # OK, works on sane cases. Now check whether nonexistent headers
4204 # can be detected and how.
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207 #include <ac_nonexistent.h>
4208 _ACEOF
4209 if ac_fn_c_try_cpp "$LINENO"; then :
4210 # Broken: success on invalid input.
4211 continue
4212 else
4213 # Passes both tests.
4214 ac_preproc_ok=:
4215 break
4216 fi
4217 rm -f conftest.err conftest.i conftest.$ac_ext
4218
4219 done
4220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4221 rm -f conftest.i conftest.err conftest.$ac_ext
4222 if $ac_preproc_ok; then :
4223
4224 else
4225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4228 See \`config.log' for more details" "$LINENO" 5; }
4229 fi
4230
4231 ac_ext=c
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4239 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4240 if ${ac_cv_path_GREP+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -z "$GREP"; then
4244 ac_path_GREP_found=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4248 do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_prog in grep ggrep; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4254 as_fn_executable_p "$ac_path_GREP" || continue
4255 # Check for GNU ac_path_GREP and select it if it is found.
4256 # Check for GNU $ac_path_GREP
4257 case `"$ac_path_GREP" --version 2>&1` in
4258 *GNU*)
4259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4260 *)
4261 ac_count=0
4262 $as_echo_n 0123456789 >"conftest.in"
4263 while :
4264 do
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
4268 $as_echo 'GREP' >> "conftest.nl"
4269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271 as_fn_arith $ac_count + 1 && ac_count=$as_val
4272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_GREP="$ac_path_GREP"
4275 ac_path_GREP_max=$ac_count
4276 fi
4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4279 done
4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281 esac
4282
4283 $ac_path_GREP_found && break 3
4284 done
4285 done
4286 done
4287 IFS=$as_save_IFS
4288 if test -z "$ac_cv_path_GREP"; then
4289 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4290 fi
4291 else
4292 ac_cv_path_GREP=$GREP
4293 fi
4294
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4297 $as_echo "$ac_cv_path_GREP" >&6; }
4298 GREP="$ac_cv_path_GREP"
4299
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4302 $as_echo_n "checking for egrep... " >&6; }
4303 if ${ac_cv_path_EGREP+:} false; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4307 then ac_cv_path_EGREP="$GREP -E"
4308 else
4309 if test -z "$EGREP"; then
4310 ac_path_EGREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314 do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_prog in egrep; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4320 as_fn_executable_p "$ac_path_EGREP" || continue
4321 # Check for GNU ac_path_EGREP and select it if it is found.
4322 # Check for GNU $ac_path_EGREP
4323 case `"$ac_path_EGREP" --version 2>&1` in
4324 *GNU*)
4325 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4326 *)
4327 ac_count=0
4328 $as_echo_n 0123456789 >"conftest.in"
4329 while :
4330 do
4331 cat "conftest.in" "conftest.in" >"conftest.tmp"
4332 mv "conftest.tmp" "conftest.in"
4333 cp "conftest.in" "conftest.nl"
4334 $as_echo 'EGREP' >> "conftest.nl"
4335 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337 as_fn_arith $ac_count + 1 && ac_count=$as_val
4338 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4339 # Best one so far, save it but keep looking for a better one
4340 ac_cv_path_EGREP="$ac_path_EGREP"
4341 ac_path_EGREP_max=$ac_count
4342 fi
4343 # 10*(2^10) chars as input seems more than enough
4344 test $ac_count -gt 10 && break
4345 done
4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347 esac
4348
4349 $ac_path_EGREP_found && break 3
4350 done
4351 done
4352 done
4353 IFS=$as_save_IFS
4354 if test -z "$ac_cv_path_EGREP"; then
4355 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4356 fi
4357 else
4358 ac_cv_path_EGREP=$EGREP
4359 fi
4360
4361 fi
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4364 $as_echo "$ac_cv_path_EGREP" >&6; }
4365 EGREP="$ac_cv_path_EGREP"
4366
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4369 $as_echo_n "checking for ANSI C header files... " >&6; }
4370 if ${ac_cv_header_stdc+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #include <stdlib.h>
4376 #include <stdarg.h>
4377 #include <string.h>
4378 #include <float.h>
4379
4380 int
4381 main ()
4382 {
4383
4384 ;
4385 return 0;
4386 }
4387 _ACEOF
4388 if ac_fn_c_try_compile "$LINENO"; then :
4389 ac_cv_header_stdc=yes
4390 else
4391 ac_cv_header_stdc=no
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394
4395 if test $ac_cv_header_stdc = yes; then
4396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #include <string.h>
4400
4401 _ACEOF
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then :
4404
4405 else
4406 ac_cv_header_stdc=no
4407 fi
4408 rm -f conftest*
4409
4410 fi
4411
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #include <stdlib.h>
4417
4418 _ACEOF
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "free" >/dev/null 2>&1; then :
4421
4422 else
4423 ac_cv_header_stdc=no
4424 fi
4425 rm -f conftest*
4426
4427 fi
4428
4429 if test $ac_cv_header_stdc = yes; then
4430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4431 if test "$cross_compiling" = yes; then :
4432 :
4433 else
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436 #include <ctype.h>
4437 #include <stdlib.h>
4438 #if ((' ' & 0x0FF) == 0x020)
4439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4441 #else
4442 # define ISLOWER(c) \
4443 (('a' <= (c) && (c) <= 'i') \
4444 || ('j' <= (c) && (c) <= 'r') \
4445 || ('s' <= (c) && (c) <= 'z'))
4446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4447 #endif
4448
4449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4450 int
4451 main ()
4452 {
4453 int i;
4454 for (i = 0; i < 256; i++)
4455 if (XOR (islower (i), ISLOWER (i))
4456 || toupper (i) != TOUPPER (i))
4457 return 2;
4458 return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_run "$LINENO"; then :
4462
4463 else
4464 ac_cv_header_stdc=no
4465 fi
4466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4467 conftest.$ac_objext conftest.beam conftest.$ac_ext
4468 fi
4469
4470 fi
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4473 $as_echo "$ac_cv_header_stdc" >&6; }
4474 if test $ac_cv_header_stdc = yes; then
4475
4476 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4477
4478 fi
4479
4480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4481 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4482 inttypes.h stdint.h unistd.h
4483 do :
4484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4485 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4486 "
4487 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4488 cat >>confdefs.h <<_ACEOF
4489 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 _ACEOF
4491
4492 fi
4493
4494 done
4495
4496
4497
4498 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4499 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4500 MINIX=yes
4501 else
4502 MINIX=
4503 fi
4504
4505
4506 if test "$MINIX" = yes; then
4507
4508 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4509
4510
4511 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4512
4513
4514 $as_echo "#define _MINIX 1" >>confdefs.h
4515
4516 fi
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4520 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4521 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 # define __EXTENSIONS__ 1
4528 $ac_includes_default
4529 int
4530 main ()
4531 {
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_safe_to_define___extensions__=yes
4539 else
4540 ac_cv_safe_to_define___extensions__=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4545 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4546 test $ac_cv_safe_to_define___extensions__ = yes &&
4547 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4548
4549 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4550
4551 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4552
4553 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4554
4555 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4556
4557
4558 test "$program_prefix" != NONE &&
4559 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4560 # Use a double $ so make ignores it.
4561 test "$program_suffix" != NONE &&
4562 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4563 # Double any \ or $.
4564 # By default was `s,x,x', remove it if useless.
4565 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4566 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4567
4568 # Find a good install program. We prefer a C program (faster),
4569 # so one script is as good as another. But avoid the broken or
4570 # incompatible versions:
4571 # SysV /etc/install, /usr/sbin/install
4572 # SunOS /usr/etc/install
4573 # IRIX /sbin/install
4574 # AIX /bin/install
4575 # AmigaOS /C/install, which installs bootblocks on floppy discs
4576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4579 # OS/2's system install, which has a completely different semantic
4580 # ./install, which can be erroneously created by make from ./install.sh.
4581 # Reject install programs that cannot install multiple files.
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4584 if test -z "$INSTALL"; then
4585 if ${ac_cv_path_install+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 # Account for people who put trailing slashes in PATH elements.
4594 case $as_dir/ in #((
4595 ./ | .// | /[cC]/* | \
4596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4598 /usr/ucb/* ) ;;
4599 *)
4600 # OSF1 and SCO ODT 3.0 have their own names for install.
4601 # Don't use installbsd from OSF since it installs stuff as root
4602 # by default.
4603 for ac_prog in ginstall scoinst install; do
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4606 if test $ac_prog = install &&
4607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4608 # AIX install. It has an incompatible calling convention.
4609 :
4610 elif test $ac_prog = install &&
4611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4612 # program-specific install script used by HP pwplus--don't use.
4613 :
4614 else
4615 rm -rf conftest.one conftest.two conftest.dir
4616 echo one > conftest.one
4617 echo two > conftest.two
4618 mkdir conftest.dir
4619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4620 test -s conftest.one && test -s conftest.two &&
4621 test -s conftest.dir/conftest.one &&
4622 test -s conftest.dir/conftest.two
4623 then
4624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4625 break 3
4626 fi
4627 fi
4628 fi
4629 done
4630 done
4631 ;;
4632 esac
4633
4634 done
4635 IFS=$as_save_IFS
4636
4637 rm -rf conftest.one conftest.two conftest.dir
4638
4639 fi
4640 if test "${ac_cv_path_install+set}" = set; then
4641 INSTALL=$ac_cv_path_install
4642 else
4643 # As a last resort, use the slow shell script. Don't cache a
4644 # value for INSTALL within a source directory, because that will
4645 # break other packages using the cache if that directory is
4646 # removed, or if the value is a relative name.
4647 INSTALL=$ac_install_sh
4648 fi
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4651 $as_echo "$INSTALL" >&6; }
4652
4653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4654 # It thinks the first close brace ends the variable substitution.
4655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4656
4657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4658
4659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4660
4661
4662
4663
4664
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4666 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4667 if ${ac_cv_c_bigendian+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 ac_cv_c_bigendian=unknown
4671 # See if we're dealing with a universal compiler.
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674 #ifndef __APPLE_CC__
4675 not a universal capable compiler
4676 #endif
4677 typedef int dummy;
4678
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681
4682 # Check for potential -arch flags. It is not universal unless
4683 # there are at least two -arch flags with different values.
4684 ac_arch=
4685 ac_prev=
4686 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4687 if test -n "$ac_prev"; then
4688 case $ac_word in
4689 i?86 | x86_64 | ppc | ppc64)
4690 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4691 ac_arch=$ac_word
4692 else
4693 ac_cv_c_bigendian=universal
4694 break
4695 fi
4696 ;;
4697 esac
4698 ac_prev=
4699 elif test "x$ac_word" = "x-arch"; then
4700 ac_prev=arch
4701 fi
4702 done
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 if test $ac_cv_c_bigendian = unknown; then
4706 # See if sys/param.h defines the BYTE_ORDER macro.
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <sys/types.h>
4710 #include <sys/param.h>
4711
4712 int
4713 main ()
4714 {
4715 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4716 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4717 && LITTLE_ENDIAN)
4718 bogus endian macros
4719 #endif
4720
4721 ;
4722 return 0;
4723 }
4724 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 # It does; now see whether it defined to BIG_ENDIAN or not.
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 #include <sys/types.h>
4730 #include <sys/param.h>
4731
4732 int
4733 main ()
4734 {
4735 #if BYTE_ORDER != BIG_ENDIAN
4736 not big endian
4737 #endif
4738
4739 ;
4740 return 0;
4741 }
4742 _ACEOF
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_cv_c_bigendian=yes
4745 else
4746 ac_cv_c_bigendian=no
4747 fi
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 fi
4752 if test $ac_cv_c_bigendian = unknown; then
4753 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756 #include <limits.h>
4757
4758 int
4759 main ()
4760 {
4761 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4762 bogus endian macros
4763 #endif
4764
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770 # It does; now see whether it defined to _BIG_ENDIAN or not.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 #include <limits.h>
4774
4775 int
4776 main ()
4777 {
4778 #ifndef _BIG_ENDIAN
4779 not big endian
4780 #endif
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 ac_cv_c_bigendian=yes
4788 else
4789 ac_cv_c_bigendian=no
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 if test $ac_cv_c_bigendian = unknown; then
4796 # Compile a test program.
4797 if test "$cross_compiling" = yes; then :
4798 # Try to guess by grepping values from an object file.
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801 short int ascii_mm[] =
4802 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4803 short int ascii_ii[] =
4804 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4805 int use_ascii (int i) {
4806 return ascii_mm[i] + ascii_ii[i];
4807 }
4808 short int ebcdic_ii[] =
4809 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4810 short int ebcdic_mm[] =
4811 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4812 int use_ebcdic (int i) {
4813 return ebcdic_mm[i] + ebcdic_ii[i];
4814 }
4815 extern int foo;
4816
4817 int
4818 main ()
4819 {
4820 return use_ascii (foo) == use_ebcdic (foo);
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 if ac_fn_c_try_compile "$LINENO"; then :
4826 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4827 ac_cv_c_bigendian=yes
4828 fi
4829 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4830 if test "$ac_cv_c_bigendian" = unknown; then
4831 ac_cv_c_bigendian=no
4832 else
4833 # finding both strings is unlikely to happen, but who knows?
4834 ac_cv_c_bigendian=unknown
4835 fi
4836 fi
4837 fi
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 else
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842 $ac_includes_default
4843 int
4844 main ()
4845 {
4846
4847 /* Are we little or big endian? From Harbison&Steele. */
4848 union
4849 {
4850 long int l;
4851 char c[sizeof (long int)];
4852 } u;
4853 u.l = 1;
4854 return u.c[sizeof (long int) - 1] == 1;
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 if ac_fn_c_try_run "$LINENO"; then :
4861 ac_cv_c_bigendian=no
4862 else
4863 ac_cv_c_bigendian=yes
4864 fi
4865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4866 conftest.$ac_objext conftest.beam conftest.$ac_ext
4867 fi
4868
4869 fi
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4872 $as_echo "$ac_cv_c_bigendian" >&6; }
4873 case $ac_cv_c_bigendian in #(
4874 yes)
4875 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4876 ;; #(
4877 no)
4878 ;; #(
4879 universal)
4880
4881 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4882
4883 ;; #(
4884 *)
4885 as_fn_error $? "unknown endianness
4886 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4887 esac
4888
4889
4890
4891
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_prog_DTC+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$DTC"; then
4901 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 DTC=$ac_cv_prog_DTC
4921 if test -n "$DTC"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4923 $as_echo "$DTC" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 fi
4931 if test -z "$ac_cv_prog_DTC"; then
4932 ac_ct_DTC=$DTC
4933 # Extract the first word of "dtc", so it can be a program name with args.
4934 set dummy dtc; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$ac_ct_DTC"; then
4941 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_ac_ct_DTC="dtc"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4961 if test -n "$ac_ct_DTC"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4963 $as_echo "$ac_ct_DTC" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968
4969 if test "x$ac_ct_DTC" = x; then
4970 DTC=""
4971 else
4972 case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4977 esac
4978 DTC=$ac_ct_DTC
4979 fi
4980 else
4981 DTC="$ac_cv_prog_DTC"
4982 fi
4983
4984
4985 if test "x$cross_compiling" = "xno"; then
4986 : "${AR_FOR_BUILD:=\$(AR)}"
4987 : "${CC_FOR_BUILD:=\$(CC)}"
4988 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4989 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4990 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4991 else
4992 : "${AR_FOR_BUILD:=ar}"
4993 : "${CC_FOR_BUILD:=gcc}"
4994 : "${RANLIB_FOR_BUILD:=ranlib}"
4995 : "${CFLAGS_FOR_BUILD:=-g -O}"
4996 : "${LDLFAGS_FOR_BUILD:=}"
4997 fi
4998
4999
5000
5001
5002
5003
5004
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5007 set dummy ${ac_tool_prefix}ar; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_AR+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$AR"; then
5014 ac_cv_prog_AR="$AR" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_AR="${ac_tool_prefix}ar"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 AR=$ac_cv_prog_AR
5034 if test -n "$AR"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5036 $as_echo "$AR" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042
5043 fi
5044 if test -z "$ac_cv_prog_AR"; then
5045 ac_ct_AR=$AR
5046 # Extract the first word of "ar", so it can be a program name with args.
5047 set dummy ar; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$ac_ct_AR"; then
5054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_ac_ct_AR="ar"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5074 if test -n "$ac_ct_AR"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5076 $as_echo "$ac_ct_AR" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082 if test "x$ac_ct_AR" = x; then
5083 AR=""
5084 else
5085 case $cross_compiling:$ac_tool_warned in
5086 yes:)
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned=yes ;;
5090 esac
5091 AR=$ac_ct_AR
5092 fi
5093 else
5094 AR="$ac_cv_prog_AR"
5095 fi
5096
5097 if test -n "$ac_tool_prefix"; then
5098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_RANLIB+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$RANLIB"; then
5106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 RANLIB=$ac_cv_prog_RANLIB
5126 if test -n "$RANLIB"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5128 $as_echo "$RANLIB" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133
5134
5135 fi
5136 if test -z "$ac_cv_prog_RANLIB"; then
5137 ac_ct_RANLIB=$RANLIB
5138 # Extract the first word of "ranlib", so it can be a program name with args.
5139 set dummy ranlib; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$ac_ct_RANLIB"; then
5146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_ac_ct_RANLIB="ranlib"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5166 if test -n "$ac_ct_RANLIB"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5168 $as_echo "$ac_ct_RANLIB" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 fi
5173
5174 if test "x$ac_ct_RANLIB" = x; then
5175 RANLIB=":"
5176 else
5177 case $cross_compiling:$ac_tool_warned in
5178 yes:)
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181 ac_tool_warned=yes ;;
5182 esac
5183 RANLIB=$ac_ct_RANLIB
5184 fi
5185 else
5186 RANLIB="$ac_cv_prog_RANLIB"
5187 fi
5188
5189
5190
5191
5192
5193
5194
5195
5196 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5197 if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 case $PKG_CONFIG in
5206 [\\/]* | ?:[\\/]*)
5207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5208 ;;
5209 *)
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 ;;
5226 esac
5227 fi
5228 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5229 if test -n "$PKG_CONFIG"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5231 $as_echo "$PKG_CONFIG" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5235 fi
5236
5237
5238 fi
5239 if test -z "$ac_cv_path_PKG_CONFIG"; then
5240 ac_pt_PKG_CONFIG=$PKG_CONFIG
5241 # Extract the first word of "pkg-config", so it can be a program name with args.
5242 set dummy pkg-config; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 case $ac_pt_PKG_CONFIG in
5249 [\\/]* | ?:[\\/]*)
5250 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5251 ;;
5252 *)
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5263 fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268 ;;
5269 esac
5270 fi
5271 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5272 if test -n "$ac_pt_PKG_CONFIG"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5274 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280 if test "x$ac_pt_PKG_CONFIG" = x; then
5281 PKG_CONFIG=""
5282 else
5283 case $cross_compiling:$ac_tool_warned in
5284 yes:)
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287 ac_tool_warned=yes ;;
5288 esac
5289 PKG_CONFIG=$ac_pt_PKG_CONFIG
5290 fi
5291 else
5292 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5293 fi
5294
5295 fi
5296 if test -n "$PKG_CONFIG"; then
5297 _pkg_min_version=0.9.0
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5299 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5300 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5302 $as_echo "yes" >&6; }
5303 else
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5306 PKG_CONFIG=""
5307 fi
5308 fi
5309
5310 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5311 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5312 # is C99. So handle it ourselves.
5313 :
5314 C_DIALECT=
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5316 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5319
5320 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5321 # error "C11 support not found"
5322 #endif
5323
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"; then :
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5327 $as_echo "yes" >&6; }
5328 else
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5333 $as_echo_n "checking for -std=c11 support... " >&6; }
5334 ac_save_CC="$CC"
5335 CC="$CC -std=c11"
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338
5339 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5340 # error "C11 support not found"
5341 #endif
5342
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347 $as_echo "yes" >&6; }
5348 CC="$ac_save_CC"
5349 C_DIALECT="-std=c11"
5350
5351 else
5352 as_fn_error $? "C11 is required" "$LINENO" 5
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357
5358
5359
5360
5361
5362 for ac_header in $ac_header_list
5363 do :
5364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5365 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5366 "
5367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5368 cat >>confdefs.h <<_ACEOF
5369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5370 _ACEOF
5371
5372 fi
5373
5374 done
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
5419
5420
5421
5422
5423
5424
5425
5426
5427 for ac_func in $ac_func_list
5428 do :
5429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5432 cat >>confdefs.h <<_ACEOF
5433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5434 _ACEOF
5435
5436 fi
5437 done
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
5557
5558
5559
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5562 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5563 if ${ac_cv_struct_tm+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #include <sys/types.h>
5569 #include <time.h>
5570
5571 int
5572 main ()
5573 {
5574 struct tm tm;
5575 int *p = &tm.tm_sec;
5576 return !p;
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 ac_cv_struct_tm=time.h
5583 else
5584 ac_cv_struct_tm=sys/time.h
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5589 $as_echo "$ac_cv_struct_tm" >&6; }
5590 if test $ac_cv_struct_tm = sys/time.h; then
5591
5592 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5593
5594 fi
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5597 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5598 if ${ac_cv_type_uid_t+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <sys/types.h>
5604
5605 _ACEOF
5606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5607 $EGREP "uid_t" >/dev/null 2>&1; then :
5608 ac_cv_type_uid_t=yes
5609 else
5610 ac_cv_type_uid_t=no
5611 fi
5612 rm -f conftest*
5613
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5616 $as_echo "$ac_cv_type_uid_t" >&6; }
5617 if test $ac_cv_type_uid_t = no; then
5618
5619 $as_echo "#define uid_t int" >>confdefs.h
5620
5621
5622 $as_echo "#define gid_t int" >>confdefs.h
5623
5624 fi
5625
5626 case `pwd` in
5627 *\ * | *\ *)
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5629 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5630 esac
5631
5632
5633
5634 macro_version='2.2.7a'
5635 macro_revision='1.3134'
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649 ltmain="$ac_aux_dir/ltmain.sh"
5650
5651 # Backslashify metacharacters that are still active within
5652 # double-quoted strings.
5653 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5654
5655 # Same as above, but do not quote variable references.
5656 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5657
5658 # Sed substitution to delay expansion of an escaped shell variable in a
5659 # double_quote_subst'ed string.
5660 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5661
5662 # Sed substitution to delay expansion of an escaped single quote.
5663 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5664
5665 # Sed substitution to avoid accidental globbing in evaled expressions
5666 no_glob_subst='s/\*/\\\*/g'
5667
5668 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5670 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5671
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5673 $as_echo_n "checking how to print strings... " >&6; }
5674 # Test print first, because it will be a builtin if present.
5675 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5676 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5677 ECHO='print -r --'
5678 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5679 ECHO='printf %s\n'
5680 else
5681 # Use this function as a fallback that always works.
5682 func_fallback_echo ()
5683 {
5684 eval 'cat <<_LTECHO_EOF
5685 $1
5686 _LTECHO_EOF'
5687 }
5688 ECHO='func_fallback_echo'
5689 fi
5690
5691 # func_echo_all arg...
5692 # Invoke $ECHO with all args, space-separated.
5693 func_echo_all ()
5694 {
5695 $ECHO ""
5696 }
5697
5698 case "$ECHO" in
5699 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5700 $as_echo "printf" >&6; } ;;
5701 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5702 $as_echo "print -r" >&6; } ;;
5703 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5704 $as_echo "cat" >&6; } ;;
5705 esac
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5721 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5722 if ${ac_cv_path_SED+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5726 for ac_i in 1 2 3 4 5 6 7; do
5727 ac_script="$ac_script$as_nl$ac_script"
5728 done
5729 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5730 { ac_script=; unset ac_script;}
5731 if test -z "$SED"; then
5732 ac_path_SED_found=false
5733 # Loop through the user's path and test for each of PROGNAME-LIST
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_prog in sed gsed; do
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5742 as_fn_executable_p "$ac_path_SED" || continue
5743 # Check for GNU ac_path_SED and select it if it is found.
5744 # Check for GNU $ac_path_SED
5745 case `"$ac_path_SED" --version 2>&1` in
5746 *GNU*)
5747 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5748 *)
5749 ac_count=0
5750 $as_echo_n 0123456789 >"conftest.in"
5751 while :
5752 do
5753 cat "conftest.in" "conftest.in" >"conftest.tmp"
5754 mv "conftest.tmp" "conftest.in"
5755 cp "conftest.in" "conftest.nl"
5756 $as_echo '' >> "conftest.nl"
5757 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5759 as_fn_arith $ac_count + 1 && ac_count=$as_val
5760 if test $ac_count -gt ${ac_path_SED_max-0}; then
5761 # Best one so far, save it but keep looking for a better one
5762 ac_cv_path_SED="$ac_path_SED"
5763 ac_path_SED_max=$ac_count
5764 fi
5765 # 10*(2^10) chars as input seems more than enough
5766 test $ac_count -gt 10 && break
5767 done
5768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5769 esac
5770
5771 $ac_path_SED_found && break 3
5772 done
5773 done
5774 done
5775 IFS=$as_save_IFS
5776 if test -z "$ac_cv_path_SED"; then
5777 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5778 fi
5779 else
5780 ac_cv_path_SED=$SED
5781 fi
5782
5783 fi
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5785 $as_echo "$ac_cv_path_SED" >&6; }
5786 SED="$ac_cv_path_SED"
5787 rm -f conftest.sed
5788
5789 test -z "$SED" && SED=sed
5790 Xsed="$SED -e 1s/^X//"
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5803 $as_echo_n "checking for fgrep... " >&6; }
5804 if ${ac_cv_path_FGREP+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5808 then ac_cv_path_FGREP="$GREP -F"
5809 else
5810 if test -z "$FGREP"; then
5811 ac_path_FGREP_found=false
5812 # Loop through the user's path and test for each of PROGNAME-LIST
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5815 do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_prog in fgrep; do
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5821 as_fn_executable_p "$ac_path_FGREP" || continue
5822 # Check for GNU ac_path_FGREP and select it if it is found.
5823 # Check for GNU $ac_path_FGREP
5824 case `"$ac_path_FGREP" --version 2>&1` in
5825 *GNU*)
5826 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5827 *)
5828 ac_count=0
5829 $as_echo_n 0123456789 >"conftest.in"
5830 while :
5831 do
5832 cat "conftest.in" "conftest.in" >"conftest.tmp"
5833 mv "conftest.tmp" "conftest.in"
5834 cp "conftest.in" "conftest.nl"
5835 $as_echo 'FGREP' >> "conftest.nl"
5836 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5838 as_fn_arith $ac_count + 1 && ac_count=$as_val
5839 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5840 # Best one so far, save it but keep looking for a better one
5841 ac_cv_path_FGREP="$ac_path_FGREP"
5842 ac_path_FGREP_max=$ac_count
5843 fi
5844 # 10*(2^10) chars as input seems more than enough
5845 test $ac_count -gt 10 && break
5846 done
5847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5848 esac
5849
5850 $ac_path_FGREP_found && break 3
5851 done
5852 done
5853 done
5854 IFS=$as_save_IFS
5855 if test -z "$ac_cv_path_FGREP"; then
5856 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5857 fi
5858 else
5859 ac_cv_path_FGREP=$FGREP
5860 fi
5861
5862 fi
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5865 $as_echo "$ac_cv_path_FGREP" >&6; }
5866 FGREP="$ac_cv_path_FGREP"
5867
5868
5869 test -z "$GREP" && GREP=grep
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889 # Check whether --with-gnu-ld was given.
5890 if test "${with_gnu_ld+set}" = set; then :
5891 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5892 else
5893 with_gnu_ld=no
5894 fi
5895
5896 ac_prog=ld
5897 if test "$GCC" = yes; then
5898 # Check if gcc -print-prog-name=ld gives a path.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5900 $as_echo_n "checking for ld used by $CC... " >&6; }
5901 case $host in
5902 *-*-mingw*)
5903 # gcc leaves a trailing carriage return which upsets mingw
5904 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5905 *)
5906 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5907 esac
5908 case $ac_prog in
5909 # Accept absolute paths.
5910 [\\/]* | ?:[\\/]*)
5911 re_direlt='/[^/][^/]*/\.\./'
5912 # Canonicalize the pathname of ld
5913 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5914 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5915 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5916 done
5917 test -z "$LD" && LD="$ac_prog"
5918 ;;
5919 "")
5920 # If it fails, then pretend we aren't using GCC.
5921 ac_prog=ld
5922 ;;
5923 *)
5924 # If it is relative, then search for the first ld in PATH.
5925 with_gnu_ld=unknown
5926 ;;
5927 esac
5928 elif test "$with_gnu_ld" = yes; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5930 $as_echo_n "checking for GNU ld... " >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5933 $as_echo_n "checking for non-GNU ld... " >&6; }
5934 fi
5935 if ${lt_cv_path_LD+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test -z "$LD"; then
5939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5940 for ac_dir in $PATH; do
5941 IFS="$lt_save_ifs"
5942 test -z "$ac_dir" && ac_dir=.
5943 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5944 lt_cv_path_LD="$ac_dir/$ac_prog"
5945 # Check to see if the program is GNU ld. I'd rather use --version,
5946 # but apparently some variants of GNU ld only accept -v.
5947 # Break only if it was the GNU/non-GNU ld that we prefer.
5948 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5949 *GNU* | *'with BFD'*)
5950 test "$with_gnu_ld" != no && break
5951 ;;
5952 *)
5953 test "$with_gnu_ld" != yes && break
5954 ;;
5955 esac
5956 fi
5957 done
5958 IFS="$lt_save_ifs"
5959 else
5960 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5961 fi
5962 fi
5963
5964 LD="$lt_cv_path_LD"
5965 if test -n "$LD"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5967 $as_echo "$LD" >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5974 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5975 if ${lt_cv_prog_gnu_ld+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5979 case `$LD -v 2>&1 </dev/null` in
5980 *GNU* | *'with BFD'*)
5981 lt_cv_prog_gnu_ld=yes
5982 ;;
5983 *)
5984 lt_cv_prog_gnu_ld=no
5985 ;;
5986 esac
5987 fi
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5989 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5990 with_gnu_ld=$lt_cv_prog_gnu_ld
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6001 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6002 if ${lt_cv_path_NM+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if test -n "$NM"; then
6006 # Let the user override the nm to test.
6007 lt_nm_to_check="$NM"
6008 else
6009 lt_nm_to_check="${ac_tool_prefix}nm"
6010 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6011 lt_nm_to_check="$lt_nm_to_check nm"
6012 fi
6013 fi
6014 for lt_tmp_nm in $lt_nm_to_check; do
6015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6016 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6017 IFS="$lt_save_ifs"
6018 test -z "$ac_dir" && ac_dir=.
6019 case "$lt_tmp_nm" in
6020 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6021 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6022 esac
6023 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6024 # Check to see if the nm accepts a BSD-compat flag.
6025 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6026 # nm: unknown option "B" ignored
6027 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6028 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6029 break
6030 ;;
6031 *)
6032 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6033 *$tmp_nm*)
6034 lt_cv_path_NM="$tmp_nm -p"
6035 break
6036 ;;
6037 *)
6038 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6039 continue # so that we can try to find one that supports BSD flags
6040 ;;
6041 esac
6042 ;;
6043 esac
6044 fi
6045 done
6046 IFS="$lt_save_ifs"
6047 done
6048 : ${lt_cv_path_NM=no}
6049 fi
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6051 $as_echo "$lt_cv_path_NM" >&6; }
6052 if test "$lt_cv_path_NM" != "no"; then
6053 NM="$lt_cv_path_NM"
6054 else
6055 # Didn't find any BSD compatible name lister, look for dumpbin.
6056 if test -n "$DUMPBIN"; then :
6057 # Let the user override the test.
6058 else
6059 if test -n "$ac_tool_prefix"; then
6060 for ac_prog in dumpbin "link -dump"
6061 do
6062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_DUMPBIN+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$DUMPBIN"; then
6070 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 DUMPBIN=$ac_cv_prog_DUMPBIN
6090 if test -n "$DUMPBIN"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6092 $as_echo "$DUMPBIN" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098
6099 test -n "$DUMPBIN" && break
6100 done
6101 fi
6102 if test -z "$DUMPBIN"; then
6103 ac_ct_DUMPBIN=$DUMPBIN
6104 for ac_prog in dumpbin "link -dump"
6105 do
6106 # Extract the first word of "$ac_prog", so it can be a program name with args.
6107 set dummy $ac_prog; ac_word=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 if test -n "$ac_ct_DUMPBIN"; then
6114 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6126 fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131 fi
6132 fi
6133 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6134 if test -n "$ac_ct_DUMPBIN"; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6136 $as_echo "$ac_ct_DUMPBIN" >&6; }
6137 else
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139 $as_echo "no" >&6; }
6140 fi
6141
6142
6143 test -n "$ac_ct_DUMPBIN" && break
6144 done
6145
6146 if test "x$ac_ct_DUMPBIN" = x; then
6147 DUMPBIN=":"
6148 else
6149 case $cross_compiling:$ac_tool_warned in
6150 yes:)
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153 ac_tool_warned=yes ;;
6154 esac
6155 DUMPBIN=$ac_ct_DUMPBIN
6156 fi
6157 fi
6158
6159 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6160 *COFF*)
6161 DUMPBIN="$DUMPBIN -symbols"
6162 ;;
6163 *)
6164 DUMPBIN=:
6165 ;;
6166 esac
6167 fi
6168
6169 if test "$DUMPBIN" != ":"; then
6170 NM="$DUMPBIN"
6171 fi
6172 fi
6173 test -z "$NM" && NM=nm
6174
6175
6176
6177
6178
6179
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6181 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6182 if ${lt_cv_nm_interface+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 lt_cv_nm_interface="BSD nm"
6186 echo "int some_variable = 0;" > conftest.$ac_ext
6187 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6188 (eval "$ac_compile" 2>conftest.err)
6189 cat conftest.err >&5
6190 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6192 cat conftest.err >&5
6193 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6194 cat conftest.out >&5
6195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6196 lt_cv_nm_interface="MS dumpbin"
6197 fi
6198 rm -f conftest*
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6201 $as_echo "$lt_cv_nm_interface" >&6; }
6202
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6204 $as_echo_n "checking whether ln -s works... " >&6; }
6205 LN_S=$as_ln_s
6206 if test "$LN_S" = "ln -s"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6208 $as_echo "yes" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6211 $as_echo "no, using $LN_S" >&6; }
6212 fi
6213
6214 # find the maximum length of command line arguments
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6216 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6217 if ${lt_cv_sys_max_cmd_len+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 i=0
6221 teststring="ABCD"
6222
6223 case $build_os in
6224 msdosdjgpp*)
6225 # On DJGPP, this test can blow up pretty badly due to problems in libc
6226 # (any single argument exceeding 2000 bytes causes a buffer overrun
6227 # during glob expansion). Even if it were fixed, the result of this
6228 # check would be larger than it should be.
6229 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6230 ;;
6231
6232 gnu*)
6233 # Under GNU Hurd, this test is not required because there is
6234 # no limit to the length of command line arguments.
6235 # Libtool will interpret -1 as no limit whatsoever
6236 lt_cv_sys_max_cmd_len=-1;
6237 ;;
6238
6239 cygwin* | mingw* | cegcc*)
6240 # On Win9x/ME, this test blows up -- it succeeds, but takes
6241 # about 5 minutes as the teststring grows exponentially.
6242 # Worse, since 9x/ME are not pre-emptively multitasking,
6243 # you end up with a "frozen" computer, even though with patience
6244 # the test eventually succeeds (with a max line length of 256k).
6245 # Instead, let's just punt: use the minimum linelength reported by
6246 # all of the supported platforms: 8192 (on NT/2K/XP).
6247 lt_cv_sys_max_cmd_len=8192;
6248 ;;
6249
6250 mint*)
6251 # On MiNT this can take a long time and run out of memory.
6252 lt_cv_sys_max_cmd_len=8192;
6253 ;;
6254
6255 amigaos*)
6256 # On AmigaOS with pdksh, this test takes hours, literally.
6257 # So we just punt and use a minimum line length of 8192.
6258 lt_cv_sys_max_cmd_len=8192;
6259 ;;
6260
6261 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6262 # This has been around since 386BSD, at least. Likely further.
6263 if test -x /sbin/sysctl; then
6264 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6265 elif test -x /usr/sbin/sysctl; then
6266 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6267 else
6268 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6269 fi
6270 # And add a safety zone
6271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6273 ;;
6274
6275 interix*)
6276 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6277 lt_cv_sys_max_cmd_len=196608
6278 ;;
6279
6280 osf*)
6281 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6282 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6283 # nice to cause kernel panics so lets avoid the loop below.
6284 # First set a reasonable default.
6285 lt_cv_sys_max_cmd_len=16384
6286 #
6287 if test -x /sbin/sysconfig; then
6288 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6289 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6290 esac
6291 fi
6292 ;;
6293 sco3.2v5*)
6294 lt_cv_sys_max_cmd_len=102400
6295 ;;
6296 sysv5* | sco5v6* | sysv4.2uw2*)
6297 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6298 if test -n "$kargmax"; then
6299 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6300 else
6301 lt_cv_sys_max_cmd_len=32768
6302 fi
6303 ;;
6304 *)
6305 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6306 if test -n "$lt_cv_sys_max_cmd_len"; then
6307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6309 else
6310 # Make teststring a little bigger before we do anything with it.
6311 # a 1K string should be a reasonable start.
6312 for i in 1 2 3 4 5 6 7 8 ; do
6313 teststring=$teststring$teststring
6314 done
6315 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6316 # If test is not a shell built-in, we'll probably end up computing a
6317 # maximum length that is only half of the actual maximum length, but
6318 # we can't tell.
6319 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6320 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6321 test $i != 17 # 1/2 MB should be enough
6322 do
6323 i=`expr $i + 1`
6324 teststring=$teststring$teststring
6325 done
6326 # Only check the string length outside the loop.
6327 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6328 teststring=
6329 # Add a significant safety factor because C++ compilers can tack on
6330 # massive amounts of additional arguments before passing them to the
6331 # linker. It appears as though 1/2 is a usable value.
6332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6333 fi
6334 ;;
6335 esac
6336
6337 fi
6338
6339 if test -n $lt_cv_sys_max_cmd_len ; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6341 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6342 else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6344 $as_echo "none" >&6; }
6345 fi
6346 max_cmd_len=$lt_cv_sys_max_cmd_len
6347
6348
6349
6350
6351
6352
6353 : ${CP="cp -f"}
6354 : ${MV="mv -f"}
6355 : ${RM="rm -f"}
6356
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6358 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6359 # Try some XSI features
6360 xsi_shell=no
6361 ( _lt_dummy="a/b/c"
6362 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6363 = c,a/b,, \
6364 && eval 'test $(( 1 + 1 )) -eq 2 \
6365 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6366 && xsi_shell=yes
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6368 $as_echo "$xsi_shell" >&6; }
6369
6370
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6372 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6373 lt_shell_append=no
6374 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6375 >/dev/null 2>&1 \
6376 && lt_shell_append=yes
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6378 $as_echo "$lt_shell_append" >&6; }
6379
6380
6381 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6382 lt_unset=unset
6383 else
6384 lt_unset=false
6385 fi
6386
6387
6388
6389
6390
6391 # test EBCDIC or ASCII
6392 case `echo X|tr X '\101'` in
6393 A) # ASCII based system
6394 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6395 lt_SP2NL='tr \040 \012'
6396 lt_NL2SP='tr \015\012 \040\040'
6397 ;;
6398 *) # EBCDIC based system
6399 lt_SP2NL='tr \100 \n'
6400 lt_NL2SP='tr \r\n \100\100'
6401 ;;
6402 esac
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6413 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6414 if ${lt_cv_ld_reload_flag+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 lt_cv_ld_reload_flag='-r'
6418 fi
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6420 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6421 reload_flag=$lt_cv_ld_reload_flag
6422 case $reload_flag in
6423 "" | " "*) ;;
6424 *) reload_flag=" $reload_flag" ;;
6425 esac
6426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6427 case $host_os in
6428 darwin*)
6429 if test "$GCC" = yes; then
6430 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6431 else
6432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6433 fi
6434 ;;
6435 esac
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_OBJDUMP+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 if test -n "$OBJDUMP"; then
6454 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 OBJDUMP=$ac_cv_prog_OBJDUMP
6474 if test -n "$OBJDUMP"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6476 $as_echo "$OBJDUMP" >&6; }
6477 else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482
6483 fi
6484 if test -z "$ac_cv_prog_OBJDUMP"; then
6485 ac_ct_OBJDUMP=$OBJDUMP
6486 # Extract the first word of "objdump", so it can be a program name with args.
6487 set dummy objdump; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -n "$ac_ct_OBJDUMP"; then
6494 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507 done
6508 done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6514 if test -n "$ac_ct_OBJDUMP"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6516 $as_echo "$ac_ct_OBJDUMP" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522 if test "x$ac_ct_OBJDUMP" = x; then
6523 OBJDUMP="false"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526 yes:)
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6530 esac
6531 OBJDUMP=$ac_ct_OBJDUMP
6532 fi
6533 else
6534 OBJDUMP="$ac_cv_prog_OBJDUMP"
6535 fi
6536
6537 test -z "$OBJDUMP" && OBJDUMP=objdump
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6548 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6549 if ${lt_cv_deplibs_check_method+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 lt_cv_file_magic_cmd='$MAGIC_CMD'
6553 lt_cv_file_magic_test_file=
6554 lt_cv_deplibs_check_method='unknown'
6555 # Need to set the preceding variable on all platforms that support
6556 # interlibrary dependencies.
6557 # 'none' -- dependencies not supported.
6558 # `unknown' -- same as none, but documents that we really don't know.
6559 # 'pass_all' -- all dependencies passed with no checks.
6560 # 'test_compile' -- check by making test program.
6561 # 'file_magic [[regex]]' -- check by looking for files in library path
6562 # which responds to the $file_magic_cmd with a given extended regex.
6563 # If you have `file' or equivalent on your system and you're not sure
6564 # whether `pass_all' will *always* work, you probably want this one.
6565
6566 case $host_os in
6567 aix[4-9]*)
6568 lt_cv_deplibs_check_method=pass_all
6569 ;;
6570
6571 beos*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574
6575 bsdi[45]*)
6576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6577 lt_cv_file_magic_cmd='/usr/bin/file -L'
6578 lt_cv_file_magic_test_file=/shlib/libc.so
6579 ;;
6580
6581 cygwin*)
6582 # func_win32_libid is a shell function defined in ltmain.sh
6583 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6584 lt_cv_file_magic_cmd='func_win32_libid'
6585 ;;
6586
6587 mingw* | pw32*)
6588 # Base MSYS/MinGW do not provide the 'file' command needed by
6589 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6590 # unless we find 'file', for example because we are cross-compiling.
6591 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6592 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6593 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6594 lt_cv_file_magic_cmd='func_win32_libid'
6595 else
6596 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6597 lt_cv_file_magic_cmd='$OBJDUMP -f'
6598 fi
6599 ;;
6600
6601 cegcc*)
6602 # use the weaker test based on 'objdump'. See mingw*.
6603 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6604 lt_cv_file_magic_cmd='$OBJDUMP -f'
6605 ;;
6606
6607 darwin* | rhapsody*)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610
6611 freebsd* | dragonfly*)
6612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6613 case $host_cpu in
6614 i*86 )
6615 # Not sure whether the presence of OpenBSD here was a mistake.
6616 # Let's accept both of them until this is cleared up.
6617 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6618 lt_cv_file_magic_cmd=/usr/bin/file
6619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6620 ;;
6621 esac
6622 else
6623 lt_cv_deplibs_check_method=pass_all
6624 fi
6625 ;;
6626
6627 gnu*)
6628 lt_cv_deplibs_check_method=pass_all
6629 ;;
6630
6631 haiku*)
6632 lt_cv_deplibs_check_method=pass_all
6633 ;;
6634
6635 hpux10.20* | hpux11*)
6636 lt_cv_file_magic_cmd=/usr/bin/file
6637 case $host_cpu in
6638 ia64*)
6639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6641 ;;
6642 hppa*64*)
6643 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]'
6644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6645 ;;
6646 *)
6647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6649 ;;
6650 esac
6651 ;;
6652
6653 interix[3-9]*)
6654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6656 ;;
6657
6658 irix5* | irix6* | nonstopux*)
6659 case $LD in
6660 *-32|*"-32 ") libmagic=32-bit;;
6661 *-n32|*"-n32 ") libmagic=N32;;
6662 *-64|*"-64 ") libmagic=64-bit;;
6663 *) libmagic=never-match;;
6664 esac
6665 lt_cv_deplibs_check_method=pass_all
6666 ;;
6667
6668 # This must be Linux ELF.
6669 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6670 lt_cv_deplibs_check_method=pass_all
6671 ;;
6672
6673 netbsd*)
6674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6676 else
6677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6678 fi
6679 ;;
6680
6681 newos6*)
6682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6683 lt_cv_file_magic_cmd=/usr/bin/file
6684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6685 ;;
6686
6687 *nto* | *qnx*)
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
6690
6691 openbsd*)
6692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6694 else
6695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6696 fi
6697 ;;
6698
6699 osf3* | osf4* | osf5*)
6700 lt_cv_deplibs_check_method=pass_all
6701 ;;
6702
6703 rdos*)
6704 lt_cv_deplibs_check_method=pass_all
6705 ;;
6706
6707 solaris*)
6708 lt_cv_deplibs_check_method=pass_all
6709 ;;
6710
6711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6712 lt_cv_deplibs_check_method=pass_all
6713 ;;
6714
6715 sysv4 | sysv4.3*)
6716 case $host_vendor in
6717 motorola)
6718 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]'
6719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6720 ;;
6721 ncr)
6722 lt_cv_deplibs_check_method=pass_all
6723 ;;
6724 sequent)
6725 lt_cv_file_magic_cmd='/bin/file'
6726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6727 ;;
6728 sni)
6729 lt_cv_file_magic_cmd='/bin/file'
6730 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6731 lt_cv_file_magic_test_file=/lib/libc.so
6732 ;;
6733 siemens)
6734 lt_cv_deplibs_check_method=pass_all
6735 ;;
6736 pc)
6737 lt_cv_deplibs_check_method=pass_all
6738 ;;
6739 esac
6740 ;;
6741
6742 tpf*)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745 esac
6746
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6749 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6750 file_magic_cmd=$lt_cv_file_magic_cmd
6751 deplibs_check_method=$lt_cv_deplibs_check_method
6752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765 plugin_option=
6766 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6767 for plugin in $plugin_names; do
6768 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6769 if test x$plugin_so = x$plugin; then
6770 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6771 fi
6772 if test x$plugin_so != x$plugin; then
6773 plugin_option="--plugin $plugin_so"
6774 break
6775 fi
6776 done
6777
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}ar; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_AR+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 if test -n "$AR"; then
6787 ac_cv_prog_AR="$AR" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_AR="${ac_tool_prefix}ar"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 AR=$ac_cv_prog_AR
6807 if test -n "$AR"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6809 $as_echo "$AR" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_AR"; then
6818 ac_ct_AR=$AR
6819 # Extract the first word of "ar", so it can be a program name with args.
6820 set dummy ar; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 if test -n "$ac_ct_AR"; then
6827 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_ac_ct_AR="ar"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6847 if test -n "$ac_ct_AR"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6849 $as_echo "$ac_ct_AR" >&6; }
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855 if test "x$ac_ct_AR" = x; then
6856 AR="false"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864 AR=$ac_ct_AR
6865 fi
6866 else
6867 AR="$ac_cv_prog_AR"
6868 fi
6869
6870 test -z "$AR" && AR=ar
6871 if test -n "$plugin_option"; then
6872 if $AR --help 2>&1 | grep -q "\--plugin"; then
6873 touch conftest.c
6874 $AR $plugin_option rc conftest.a conftest.c
6875 if test "$?" != 0; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6877 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6878 else
6879 AR="$AR $plugin_option"
6880 fi
6881 rm -f conftest.*
6882 fi
6883 fi
6884 test -z "$AR_FLAGS" && AR_FLAGS=cru
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6898 set dummy ${ac_tool_prefix}strip; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_prog_STRIP+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$STRIP"; then
6905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922 fi
6923 fi
6924 STRIP=$ac_cv_prog_STRIP
6925 if test -n "$STRIP"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6927 $as_echo "$STRIP" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933
6934 fi
6935 if test -z "$ac_cv_prog_STRIP"; then
6936 ac_ct_STRIP=$STRIP
6937 # Extract the first word of "strip", so it can be a program name with args.
6938 set dummy strip; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$ac_ct_STRIP"; then
6945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_STRIP="strip"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965 if test -n "$ac_ct_STRIP"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6967 $as_echo "$ac_ct_STRIP" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972
6973 if test "x$ac_ct_STRIP" = x; then
6974 STRIP=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 STRIP=$ac_ct_STRIP
6983 fi
6984 else
6985 STRIP="$ac_cv_prog_STRIP"
6986 fi
6987
6988 test -z "$STRIP" && STRIP=:
6989
6990
6991
6992
6993
6994
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_RANLIB+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$RANLIB"; then
7004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 RANLIB=$ac_cv_prog_RANLIB
7024 if test -n "$RANLIB"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7026 $as_echo "$RANLIB" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032
7033 fi
7034 if test -z "$ac_cv_prog_RANLIB"; then
7035 ac_ct_RANLIB=$RANLIB
7036 # Extract the first word of "ranlib", so it can be a program name with args.
7037 set dummy ranlib; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$ac_ct_RANLIB"; then
7044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_ac_ct_RANLIB="ranlib"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7064 if test -n "$ac_ct_RANLIB"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7066 $as_echo "$ac_ct_RANLIB" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071
7072 if test "x$ac_ct_RANLIB" = x; then
7073 RANLIB=":"
7074 else
7075 case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081 RANLIB=$ac_ct_RANLIB
7082 fi
7083 else
7084 RANLIB="$ac_cv_prog_RANLIB"
7085 fi
7086
7087 test -z "$RANLIB" && RANLIB=:
7088 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7089 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7090 RANLIB="$RANLIB $plugin_option"
7091 fi
7092 fi
7093
7094
7095
7096
7097
7098
7099 # Determine commands to create old-style static archives.
7100 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7101 old_postinstall_cmds='chmod 644 $oldlib'
7102 old_postuninstall_cmds=
7103
7104 if test -n "$RANLIB"; then
7105 case $host_os in
7106 openbsd*)
7107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7108 ;;
7109 *)
7110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7111 ;;
7112 esac
7113 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7114 fi
7115
7116 case $host_os in
7117 darwin*)
7118 lock_old_archive_extraction=yes ;;
7119 *)
7120 lock_old_archive_extraction=no ;;
7121 esac
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143 for ac_prog in gawk mawk nawk awk
7144 do
7145 # Extract the first word of "$ac_prog", so it can be a program name with args.
7146 set dummy $ac_prog; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if ${ac_cv_prog_AWK+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 if test -n "$AWK"; then
7153 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_AWK="$ac_prog"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166 done
7167 done
7168 IFS=$as_save_IFS
7169
7170 fi
7171 fi
7172 AWK=$ac_cv_prog_AWK
7173 if test -n "$AWK"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7175 $as_echo "$AWK" >&6; }
7176 else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7179 fi
7180
7181
7182 test -n "$AWK" && break
7183 done
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203 # If no C compiler was specified, use CC.
7204 LTCC=${LTCC-"$CC"}
7205
7206 # If no C compiler flags were specified, use CFLAGS.
7207 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7208
7209 # Allow CC to be a program name with arguments.
7210 compiler=$CC
7211
7212
7213 # Check for command to grab the raw symbol name followed by C symbol from nm.
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7215 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7216 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219
7220 # These are sane defaults that work on at least a few old systems.
7221 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7222
7223 # Character class describing NM global symbol codes.
7224 symcode='[BCDEGRST]'
7225
7226 # Regexp to match symbols that can be accessed directly from C.
7227 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7228
7229 # Define system-specific variables.
7230 case $host_os in
7231 aix*)
7232 symcode='[BCDT]'
7233 ;;
7234 cygwin* | mingw* | pw32* | cegcc*)
7235 symcode='[ABCDGISTW]'
7236 ;;
7237 hpux*)
7238 if test "$host_cpu" = ia64; then
7239 symcode='[ABCDEGRST]'
7240 fi
7241 ;;
7242 irix* | nonstopux*)
7243 symcode='[BCDEGRST]'
7244 ;;
7245 osf*)
7246 symcode='[BCDEGQRST]'
7247 ;;
7248 solaris*)
7249 symcode='[BCDRT]'
7250 ;;
7251 sco3.2v5*)
7252 symcode='[DT]'
7253 ;;
7254 sysv4.2uw2*)
7255 symcode='[DT]'
7256 ;;
7257 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7258 symcode='[ABDT]'
7259 ;;
7260 sysv4)
7261 symcode='[DFNSTU]'
7262 ;;
7263 esac
7264
7265 # If we're using GNU nm, then use its standard symbol codes.
7266 case `$NM -V 2>&1` in
7267 *GNU* | *'with BFD'*)
7268 symcode='[ABCDGIRSTW]' ;;
7269 esac
7270
7271 # Transform an extracted symbol line into a proper C declaration.
7272 # Some systems (esp. on ia64) link data and code symbols differently,
7273 # so use this general approach.
7274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7275
7276 # Transform an extracted symbol line into symbol name and symbol address
7277 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7278 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'"
7279
7280 # Handle CRLF in mingw tool chain
7281 opt_cr=
7282 case $build_os in
7283 mingw*)
7284 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7285 ;;
7286 esac
7287
7288 # Try without a prefix underscore, then with it.
7289 for ac_symprfx in "" "_"; do
7290
7291 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7292 symxfrm="\\1 $ac_symprfx\\2 \\2"
7293
7294 # Write the raw and C identifiers.
7295 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7296 # Fake it for dumpbin and say T for any non-static function
7297 # and D for any global variable.
7298 # Also find C++ and __fastcall symbols from MSVC++,
7299 # which start with @ or ?.
7300 lt_cv_sys_global_symbol_pipe="$AWK '"\
7301 " {last_section=section; section=\$ 3};"\
7302 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7303 " \$ 0!~/External *\|/{next};"\
7304 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7305 " {if(hide[section]) next};"\
7306 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7307 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7308 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7309 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7310 " ' prfx=^$ac_symprfx"
7311 else
7312 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7313 fi
7314
7315 # Check to see that the pipe works correctly.
7316 pipe_works=no
7317
7318 rm -f conftest*
7319 cat > conftest.$ac_ext <<_LT_EOF
7320 #ifdef __cplusplus
7321 extern "C" {
7322 #endif
7323 char nm_test_var;
7324 void nm_test_func(void);
7325 void nm_test_func(void){}
7326 #ifdef __cplusplus
7327 }
7328 #endif
7329 int main(){nm_test_var='a';nm_test_func();return(0);}
7330 _LT_EOF
7331
7332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7333 (eval $ac_compile) 2>&5
7334 ac_status=$?
7335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336 test $ac_status = 0; }; then
7337 # Now try to grab the symbols.
7338 nlist=conftest.nm
7339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7340 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7341 ac_status=$?
7342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343 test $ac_status = 0; } && test -s "$nlist"; then
7344 # Try sorting and uniquifying the output.
7345 if sort "$nlist" | uniq > "$nlist"T; then
7346 mv -f "$nlist"T "$nlist"
7347 else
7348 rm -f "$nlist"T
7349 fi
7350
7351 # Make sure that we snagged all the symbols we need.
7352 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7353 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7354 cat <<_LT_EOF > conftest.$ac_ext
7355 #ifdef __cplusplus
7356 extern "C" {
7357 #endif
7358
7359 _LT_EOF
7360 # Now generate the symbol file.
7361 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7362
7363 cat <<_LT_EOF >> conftest.$ac_ext
7364
7365 /* The mapping between symbol names and symbols. */
7366 const struct {
7367 const char *name;
7368 void *address;
7369 }
7370 lt__PROGRAM__LTX_preloaded_symbols[] =
7371 {
7372 { "@PROGRAM@", (void *) 0 },
7373 _LT_EOF
7374 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7375 cat <<\_LT_EOF >> conftest.$ac_ext
7376 {0, (void *) 0}
7377 };
7378
7379 /* This works around a problem in FreeBSD linker */
7380 #ifdef FREEBSD_WORKAROUND
7381 static const void *lt_preloaded_setup() {
7382 return lt__PROGRAM__LTX_preloaded_symbols;
7383 }
7384 #endif
7385
7386 #ifdef __cplusplus
7387 }
7388 #endif
7389 _LT_EOF
7390 # Now try linking the two files.
7391 mv conftest.$ac_objext conftstm.$ac_objext
7392 lt_save_LIBS="$LIBS"
7393 lt_save_CFLAGS="$CFLAGS"
7394 LIBS="conftstm.$ac_objext"
7395 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7397 (eval $ac_link) 2>&5
7398 ac_status=$?
7399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7401 pipe_works=yes
7402 fi
7403 LIBS="$lt_save_LIBS"
7404 CFLAGS="$lt_save_CFLAGS"
7405 else
7406 echo "cannot find nm_test_func in $nlist" >&5
7407 fi
7408 else
7409 echo "cannot find nm_test_var in $nlist" >&5
7410 fi
7411 else
7412 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7413 fi
7414 else
7415 echo "$progname: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 fi
7418 rm -rf conftest* conftst*
7419
7420 # Do not use the global_symbol_pipe unless it works.
7421 if test "$pipe_works" = yes; then
7422 break
7423 else
7424 lt_cv_sys_global_symbol_pipe=
7425 fi
7426 done
7427
7428 fi
7429
7430 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7431 lt_cv_sys_global_symbol_to_cdecl=
7432 fi
7433 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7435 $as_echo "failed" >&6; }
7436 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7438 $as_echo "ok" >&6; }
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462 # Check whether --enable-libtool-lock was given.
7463 if test "${enable_libtool_lock+set}" = set; then :
7464 enableval=$enable_libtool_lock;
7465 fi
7466
7467 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7468
7469 # Some flags need to be propagated to the compiler or linker for good
7470 # libtool support.
7471 case $host in
7472 ia64-*-hpux*)
7473 # Find out which ABI we are using.
7474 echo 'int i;' > conftest.$ac_ext
7475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7476 (eval $ac_compile) 2>&5
7477 ac_status=$?
7478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }; then
7480 case `/usr/bin/file conftest.$ac_objext` in
7481 *ELF-32*)
7482 HPUX_IA64_MODE="32"
7483 ;;
7484 *ELF-64*)
7485 HPUX_IA64_MODE="64"
7486 ;;
7487 esac
7488 fi
7489 rm -rf conftest*
7490 ;;
7491 *-*-irix6*)
7492 # Find out which ABI we are using.
7493 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495 (eval $ac_compile) 2>&5
7496 ac_status=$?
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; }; then
7499 if test "$lt_cv_prog_gnu_ld" = yes; then
7500 case `/usr/bin/file conftest.$ac_objext` in
7501 *32-bit*)
7502 LD="${LD-ld} -melf32bsmip"
7503 ;;
7504 *N32*)
7505 LD="${LD-ld} -melf32bmipn32"
7506 ;;
7507 *64-bit*)
7508 LD="${LD-ld} -melf64bmip"
7509 ;;
7510 esac
7511 else
7512 case `/usr/bin/file conftest.$ac_objext` in
7513 *32-bit*)
7514 LD="${LD-ld} -32"
7515 ;;
7516 *N32*)
7517 LD="${LD-ld} -n32"
7518 ;;
7519 *64-bit*)
7520 LD="${LD-ld} -64"
7521 ;;
7522 esac
7523 fi
7524 fi
7525 rm -rf conftest*
7526 ;;
7527
7528 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7529 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7530 # Find out which ABI we are using.
7531 echo 'int i;' > conftest.$ac_ext
7532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7533 (eval $ac_compile) 2>&5
7534 ac_status=$?
7535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536 test $ac_status = 0; }; then
7537 case `/usr/bin/file conftest.o` in
7538 *32-bit*)
7539 case $host in
7540 x86_64-*kfreebsd*-gnu)
7541 LD="${LD-ld} -m elf_i386_fbsd"
7542 ;;
7543 x86_64-*linux*)
7544 case `/usr/bin/file conftest.o` in
7545 *x86-64*)
7546 LD="${LD-ld} -m elf32_x86_64"
7547 ;;
7548 *)
7549 LD="${LD-ld} -m elf_i386"
7550 ;;
7551 esac
7552 ;;
7553 powerpc64le-*linux*)
7554 LD="${LD-ld} -m elf32lppclinux"
7555 ;;
7556 powerpc64-*linux*)
7557 LD="${LD-ld} -m elf32ppclinux"
7558 ;;
7559 s390x-*linux*)
7560 LD="${LD-ld} -m elf_s390"
7561 ;;
7562 sparc64-*linux*)
7563 LD="${LD-ld} -m elf32_sparc"
7564 ;;
7565 esac
7566 ;;
7567 *64-bit*)
7568 case $host in
7569 x86_64-*kfreebsd*-gnu)
7570 LD="${LD-ld} -m elf_x86_64_fbsd"
7571 ;;
7572 x86_64-*linux*)
7573 LD="${LD-ld} -m elf_x86_64"
7574 ;;
7575 powerpcle-*linux*)
7576 LD="${LD-ld} -m elf64lppc"
7577 ;;
7578 powerpc-*linux*)
7579 LD="${LD-ld} -m elf64ppc"
7580 ;;
7581 s390*-*linux*|s390*-*tpf*)
7582 LD="${LD-ld} -m elf64_s390"
7583 ;;
7584 sparc*-*linux*)
7585 LD="${LD-ld} -m elf64_sparc"
7586 ;;
7587 esac
7588 ;;
7589 esac
7590 fi
7591 rm -rf conftest*
7592 ;;
7593
7594 *-*-sco3.2v5*)
7595 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7596 SAVE_CFLAGS="$CFLAGS"
7597 CFLAGS="$CFLAGS -belf"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7599 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7600 if ${lt_cv_cc_needs_belf+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 ac_ext=c
7604 ac_cpp='$CPP $CPPFLAGS'
7605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7608
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611
7612 int
7613 main ()
7614 {
7615
7616 ;
7617 return 0;
7618 }
7619 _ACEOF
7620 if ac_fn_c_try_link "$LINENO"; then :
7621 lt_cv_cc_needs_belf=yes
7622 else
7623 lt_cv_cc_needs_belf=no
7624 fi
7625 rm -f core conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
7627 ac_ext=c
7628 ac_cpp='$CPP $CPPFLAGS'
7629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7632
7633 fi
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7635 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7636 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7637 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7638 CFLAGS="$SAVE_CFLAGS"
7639 fi
7640 ;;
7641 sparc*-*solaris*)
7642 # Find out which ABI we are using.
7643 echo 'int i;' > conftest.$ac_ext
7644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7645 (eval $ac_compile) 2>&5
7646 ac_status=$?
7647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7648 test $ac_status = 0; }; then
7649 case `/usr/bin/file conftest.o` in
7650 *64-bit*)
7651 case $lt_cv_prog_gnu_ld in
7652 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7653 *)
7654 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7655 LD="${LD-ld} -64"
7656 fi
7657 ;;
7658 esac
7659 ;;
7660 esac
7661 fi
7662 rm -rf conftest*
7663 ;;
7664 esac
7665
7666 need_locks="$enable_libtool_lock"
7667
7668
7669 case $host_os in
7670 rhapsody* | darwin*)
7671 if test -n "$ac_tool_prefix"; then
7672 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7673 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 if test -n "$DSYMUTIL"; then
7680 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697 fi
7698 fi
7699 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7700 if test -n "$DSYMUTIL"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7702 $as_echo "$DSYMUTIL" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7706 fi
7707
7708
7709 fi
7710 if test -z "$ac_cv_prog_DSYMUTIL"; then
7711 ac_ct_DSYMUTIL=$DSYMUTIL
7712 # Extract the first word of "dsymutil", so it can be a program name with args.
7713 set dummy dsymutil; ac_word=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 if test -n "$ac_ct_DSYMUTIL"; then
7720 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7721 else
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH
7724 do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733 done
7734 done
7735 IFS=$as_save_IFS
7736
7737 fi
7738 fi
7739 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7740 if test -n "$ac_ct_DSYMUTIL"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7742 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7743 else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7746 fi
7747
7748 if test "x$ac_ct_DSYMUTIL" = x; then
7749 DSYMUTIL=":"
7750 else
7751 case $cross_compiling:$ac_tool_warned in
7752 yes:)
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7755 ac_tool_warned=yes ;;
7756 esac
7757 DSYMUTIL=$ac_ct_DSYMUTIL
7758 fi
7759 else
7760 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7761 fi
7762
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7765 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_prog_NMEDIT+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$NMEDIT"; then
7772 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 NMEDIT=$ac_cv_prog_NMEDIT
7792 if test -n "$NMEDIT"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7794 $as_echo "$NMEDIT" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800
7801 fi
7802 if test -z "$ac_cv_prog_NMEDIT"; then
7803 ac_ct_NMEDIT=$NMEDIT
7804 # Extract the first word of "nmedit", so it can be a program name with args.
7805 set dummy nmedit; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$ac_ct_NMEDIT"; then
7812 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7832 if test -n "$ac_ct_NMEDIT"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7834 $as_echo "$ac_ct_NMEDIT" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840 if test "x$ac_ct_NMEDIT" = x; then
7841 NMEDIT=":"
7842 else
7843 case $cross_compiling:$ac_tool_warned in
7844 yes:)
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847 ac_tool_warned=yes ;;
7848 esac
7849 NMEDIT=$ac_ct_NMEDIT
7850 fi
7851 else
7852 NMEDIT="$ac_cv_prog_NMEDIT"
7853 fi
7854
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_LIPO+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 if test -n "$LIPO"; then
7864 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 LIPO=$ac_cv_prog_LIPO
7884 if test -n "$LIPO"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7886 $as_echo "$LIPO" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892
7893 fi
7894 if test -z "$ac_cv_prog_LIPO"; then
7895 ac_ct_LIPO=$LIPO
7896 # Extract the first word of "lipo", so it can be a program name with args.
7897 set dummy lipo; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 if test -n "$ac_ct_LIPO"; then
7904 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_ac_ct_LIPO="lipo"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7916 fi
7917 done
7918 done
7919 IFS=$as_save_IFS
7920
7921 fi
7922 fi
7923 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7924 if test -n "$ac_ct_LIPO"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7926 $as_echo "$ac_ct_LIPO" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931
7932 if test "x$ac_ct_LIPO" = x; then
7933 LIPO=":"
7934 else
7935 case $cross_compiling:$ac_tool_warned in
7936 yes:)
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned=yes ;;
7940 esac
7941 LIPO=$ac_ct_LIPO
7942 fi
7943 else
7944 LIPO="$ac_cv_prog_LIPO"
7945 fi
7946
7947 if test -n "$ac_tool_prefix"; then
7948 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}otool; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_OTOOL+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 if test -n "$OTOOL"; then
7956 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 OTOOL=$ac_cv_prog_OTOOL
7976 if test -n "$OTOOL"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7978 $as_echo "$OTOOL" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985 fi
7986 if test -z "$ac_cv_prog_OTOOL"; then
7987 ac_ct_OTOOL=$OTOOL
7988 # Extract the first word of "otool", so it can be a program name with args.
7989 set dummy otool; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 if test -n "$ac_ct_OTOOL"; then
7996 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_ac_ct_OTOOL="otool"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009 done
8010 done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8016 if test -n "$ac_ct_OTOOL"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8018 $as_echo "$ac_ct_OTOOL" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024 if test "x$ac_ct_OTOOL" = x; then
8025 OTOOL=":"
8026 else
8027 case $cross_compiling:$ac_tool_warned in
8028 yes:)
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8032 esac
8033 OTOOL=$ac_ct_OTOOL
8034 fi
8035 else
8036 OTOOL="$ac_cv_prog_OTOOL"
8037 fi
8038
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_OTOOL64+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 if test -n "$OTOOL64"; then
8048 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061 done
8062 done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 OTOOL64=$ac_cv_prog_OTOOL64
8068 if test -n "$OTOOL64"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8070 $as_echo "$OTOOL64" >&6; }
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075
8076
8077 fi
8078 if test -z "$ac_cv_prog_OTOOL64"; then
8079 ac_ct_OTOOL64=$OTOOL64
8080 # Extract the first word of "otool64", so it can be a program name with args.
8081 set dummy otool64; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 if test -n "$ac_ct_OTOOL64"; then
8088 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097 ac_cv_prog_ac_ct_OTOOL64="otool64"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 break 2
8100 fi
8101 done
8102 done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8108 if test -n "$ac_ct_OTOOL64"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8110 $as_echo "$ac_ct_OTOOL64" >&6; }
8111 else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116 if test "x$ac_ct_OTOOL64" = x; then
8117 OTOOL64=":"
8118 else
8119 case $cross_compiling:$ac_tool_warned in
8120 yes:)
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8124 esac
8125 OTOOL64=$ac_ct_OTOOL64
8126 fi
8127 else
8128 OTOOL64="$ac_cv_prog_OTOOL64"
8129 fi
8130
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8158 $as_echo_n "checking for -single_module linker flag... " >&6; }
8159 if ${lt_cv_apple_cc_single_mod+:} false; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 lt_cv_apple_cc_single_mod=no
8163 if test -z "${LT_MULTI_MODULE}"; then
8164 # By default we will add the -single_module flag. You can override
8165 # by either setting the environment variable LT_MULTI_MODULE
8166 # non-empty at configure time, or by adding -multi_module to the
8167 # link flags.
8168 rm -rf libconftest.dylib*
8169 echo "int foo(void){return 1;}" > conftest.c
8170 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8171 -dynamiclib -Wl,-single_module conftest.c" >&5
8172 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8173 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8174 _lt_result=$?
8175 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8176 lt_cv_apple_cc_single_mod=yes
8177 else
8178 cat conftest.err >&5
8179 fi
8180 rm -rf libconftest.dylib*
8181 rm -f conftest.*
8182 fi
8183 fi
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8185 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8187 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8188 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 lt_cv_ld_exported_symbols_list=no
8192 save_LDFLAGS=$LDFLAGS
8193 echo "_main" > conftest.sym
8194 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197
8198 int
8199 main ()
8200 {
8201
8202 ;
8203 return 0;
8204 }
8205 _ACEOF
8206 if ac_fn_c_try_link "$LINENO"; then :
8207 lt_cv_ld_exported_symbols_list=yes
8208 else
8209 lt_cv_ld_exported_symbols_list=no
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 LDFLAGS="$save_LDFLAGS"
8214
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8217 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8219 $as_echo_n "checking for -force_load linker flag... " >&6; }
8220 if ${lt_cv_ld_force_load+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 lt_cv_ld_force_load=no
8224 cat > conftest.c << _LT_EOF
8225 int forced_loaded() { return 2;}
8226 _LT_EOF
8227 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8228 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8229 echo "$AR cru libconftest.a conftest.o" >&5
8230 $AR cru libconftest.a conftest.o 2>&5
8231 cat > conftest.c << _LT_EOF
8232 int main() { return 0;}
8233 _LT_EOF
8234 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8235 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8236 _lt_result=$?
8237 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8238 lt_cv_ld_force_load=yes
8239 else
8240 cat conftest.err >&5
8241 fi
8242 rm -f conftest.err libconftest.a conftest conftest.c
8243 rm -rf conftest.dSYM
8244
8245 fi
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8247 $as_echo "$lt_cv_ld_force_load" >&6; }
8248 case $host_os in
8249 rhapsody* | darwin1.[012])
8250 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8251 darwin1.*)
8252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8253 darwin*) # darwin 5.x on
8254 # if running on 10.5 or later, the deployment target defaults
8255 # to the OS version, if on x86, and 10.4, the deployment
8256 # target defaults to 10.4. Don't you love it?
8257 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8258 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8259 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8260 10.[012][,.]*)
8261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8262 10.*)
8263 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8264 esac
8265 ;;
8266 esac
8267 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8268 _lt_dar_single_mod='$single_module'
8269 fi
8270 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8271 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8272 else
8273 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8274 fi
8275 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8276 _lt_dsymutil='~$DSYMUTIL $lib || :'
8277 else
8278 _lt_dsymutil=
8279 fi
8280 ;;
8281 esac
8282
8283 for ac_header in dlfcn.h
8284 do :
8285 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8286 "
8287 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8288 cat >>confdefs.h <<_ACEOF
8289 #define HAVE_DLFCN_H 1
8290 _ACEOF
8291
8292 fi
8293
8294 done
8295
8296
8297 ac_header_dirent=no
8298 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8299 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8301 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8302 if eval \${$as_ac_Header+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 #include <sys/types.h>
8308 #include <$ac_hdr>
8309
8310 int
8311 main ()
8312 {
8313 if ((DIR *) 0)
8314 return 0;
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 if ac_fn_c_try_compile "$LINENO"; then :
8320 eval "$as_ac_Header=yes"
8321 else
8322 eval "$as_ac_Header=no"
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 fi
8326 eval ac_res=\$$as_ac_Header
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8328 $as_echo "$ac_res" >&6; }
8329 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8330 cat >>confdefs.h <<_ACEOF
8331 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8332 _ACEOF
8333
8334 ac_header_dirent=$ac_hdr; break
8335 fi
8336
8337 done
8338 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8339 if test $ac_header_dirent = dirent.h; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8341 $as_echo_n "checking for library containing opendir... " >&6; }
8342 if ${ac_cv_search_opendir+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 ac_func_search_save_LIBS=$LIBS
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348
8349 /* Override any GCC internal prototype to avoid an error.
8350 Use char because int might match the return type of a GCC
8351 builtin and then its argument prototype would still apply. */
8352 #ifdef __cplusplus
8353 extern "C"
8354 #endif
8355 char opendir ();
8356 int
8357 main ()
8358 {
8359 return opendir ();
8360 ;
8361 return 0;
8362 }
8363 _ACEOF
8364 for ac_lib in '' dir; do
8365 if test -z "$ac_lib"; then
8366 ac_res="none required"
8367 else
8368 ac_res=-l$ac_lib
8369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8370 fi
8371 if ac_fn_c_try_link "$LINENO"; then :
8372 ac_cv_search_opendir=$ac_res
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext \
8375 conftest$ac_exeext
8376 if ${ac_cv_search_opendir+:} false; then :
8377 break
8378 fi
8379 done
8380 if ${ac_cv_search_opendir+:} false; then :
8381
8382 else
8383 ac_cv_search_opendir=no
8384 fi
8385 rm conftest.$ac_ext
8386 LIBS=$ac_func_search_save_LIBS
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8389 $as_echo "$ac_cv_search_opendir" >&6; }
8390 ac_res=$ac_cv_search_opendir
8391 if test "$ac_res" != no; then :
8392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8393
8394 fi
8395
8396 else
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8398 $as_echo_n "checking for library containing opendir... " >&6; }
8399 if ${ac_cv_search_opendir+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 ac_func_search_save_LIBS=$LIBS
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405
8406 /* Override any GCC internal prototype to avoid an error.
8407 Use char because int might match the return type of a GCC
8408 builtin and then its argument prototype would still apply. */
8409 #ifdef __cplusplus
8410 extern "C"
8411 #endif
8412 char opendir ();
8413 int
8414 main ()
8415 {
8416 return opendir ();
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 for ac_lib in '' x; do
8422 if test -z "$ac_lib"; then
8423 ac_res="none required"
8424 else
8425 ac_res=-l$ac_lib
8426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8427 fi
8428 if ac_fn_c_try_link "$LINENO"; then :
8429 ac_cv_search_opendir=$ac_res
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext \
8432 conftest$ac_exeext
8433 if ${ac_cv_search_opendir+:} false; then :
8434 break
8435 fi
8436 done
8437 if ${ac_cv_search_opendir+:} false; then :
8438
8439 else
8440 ac_cv_search_opendir=no
8441 fi
8442 rm conftest.$ac_ext
8443 LIBS=$ac_func_search_save_LIBS
8444 fi
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8446 $as_echo "$ac_cv_search_opendir" >&6; }
8447 ac_res=$ac_cv_search_opendir
8448 if test "$ac_res" != no; then :
8449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8450
8451 fi
8452
8453 fi
8454
8455
8456
8457
8458 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8459 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8460
8461 cat >>confdefs.h <<_ACEOF
8462 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8463 _ACEOF
8464
8465
8466 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8467
8468 fi
8469
8470
8471 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8472 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8473
8474 cat >>confdefs.h <<_ACEOF
8475 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8476 _ACEOF
8477
8478
8479 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8480
8481 else
8482 case " $LIBOBJS " in
8483 *" fileblocks.$ac_objext "* ) ;;
8484 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8485 ;;
8486 esac
8487
8488 fi
8489
8490
8491 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8492 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8493
8494 cat >>confdefs.h <<_ACEOF
8495 #define HAVE_STRUCT_STAT_ST_RDEV 1
8496 _ACEOF
8497
8498
8499 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8500
8501 fi
8502
8503
8504 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8505 #include <$ac_cv_struct_tm>
8506
8507 "
8508 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8509
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_STRUCT_TM_TM_ZONE 1
8512 _ACEOF
8513
8514
8515 fi
8516
8517 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8518
8519 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8520
8521 else
8522 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8523 "
8524 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8525 ac_have_decl=1
8526 else
8527 ac_have_decl=0
8528 fi
8529
8530 cat >>confdefs.h <<_ACEOF
8531 #define HAVE_DECL_TZNAME $ac_have_decl
8532 _ACEOF
8533
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8535 $as_echo_n "checking for tzname... " >&6; }
8536 if ${ac_cv_var_tzname+:} false; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8541 #include <time.h>
8542 #if !HAVE_DECL_TZNAME
8543 extern char *tzname[];
8544 #endif
8545
8546 int
8547 main ()
8548 {
8549 return tzname[0][0];
8550 ;
8551 return 0;
8552 }
8553 _ACEOF
8554 if ac_fn_c_try_link "$LINENO"; then :
8555 ac_cv_var_tzname=yes
8556 else
8557 ac_cv_var_tzname=no
8558 fi
8559 rm -f core conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561 fi
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8563 $as_echo "$ac_cv_var_tzname" >&6; }
8564 if test $ac_cv_var_tzname = yes; then
8565
8566 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8567
8568 fi
8569 fi
8570
8571
8572 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8573 #include <sys/types.h>
8574 #endif
8575 #ifdef HAVE_SYS_STAT_H
8576 #include <sys/stat.h>
8577 #endif
8578 "
8579 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8580
8581 cat >>confdefs.h <<_ACEOF
8582 #define HAVE_STRUCT_STAT_ST_DEV 1
8583 _ACEOF
8584
8585
8586 fi
8587 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8588 #include <sys/types.h>
8589 #endif
8590 #ifdef HAVE_SYS_STAT_H
8591 #include <sys/stat.h>
8592 #endif
8593 "
8594 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8595
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_STRUCT_STAT_ST_INO 1
8598 _ACEOF
8599
8600
8601 fi
8602 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8603 #include <sys/types.h>
8604 #endif
8605 #ifdef HAVE_SYS_STAT_H
8606 #include <sys/stat.h>
8607 #endif
8608 "
8609 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8610
8611 cat >>confdefs.h <<_ACEOF
8612 #define HAVE_STRUCT_STAT_ST_MODE 1
8613 _ACEOF
8614
8615
8616 fi
8617 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8618 #include <sys/types.h>
8619 #endif
8620 #ifdef HAVE_SYS_STAT_H
8621 #include <sys/stat.h>
8622 #endif
8623 "
8624 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8625
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_STRUCT_STAT_ST_NLINK 1
8628 _ACEOF
8629
8630
8631 fi
8632 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8633 #include <sys/types.h>
8634 #endif
8635 #ifdef HAVE_SYS_STAT_H
8636 #include <sys/stat.h>
8637 #endif
8638 "
8639 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8640
8641 cat >>confdefs.h <<_ACEOF
8642 #define HAVE_STRUCT_STAT_ST_UID 1
8643 _ACEOF
8644
8645
8646 fi
8647 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8648 #include <sys/types.h>
8649 #endif
8650 #ifdef HAVE_SYS_STAT_H
8651 #include <sys/stat.h>
8652 #endif
8653 "
8654 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8655
8656 cat >>confdefs.h <<_ACEOF
8657 #define HAVE_STRUCT_STAT_ST_GID 1
8658 _ACEOF
8659
8660
8661 fi
8662 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8663 #include <sys/types.h>
8664 #endif
8665 #ifdef HAVE_SYS_STAT_H
8666 #include <sys/stat.h>
8667 #endif
8668 "
8669 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8670
8671 cat >>confdefs.h <<_ACEOF
8672 #define HAVE_STRUCT_STAT_ST_RDEV 1
8673 _ACEOF
8674
8675
8676 fi
8677 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8678 #include <sys/types.h>
8679 #endif
8680 #ifdef HAVE_SYS_STAT_H
8681 #include <sys/stat.h>
8682 #endif
8683 "
8684 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8685
8686 cat >>confdefs.h <<_ACEOF
8687 #define HAVE_STRUCT_STAT_ST_SIZE 1
8688 _ACEOF
8689
8690
8691 fi
8692 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8693 #include <sys/types.h>
8694 #endif
8695 #ifdef HAVE_SYS_STAT_H
8696 #include <sys/stat.h>
8697 #endif
8698 "
8699 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8700
8701 cat >>confdefs.h <<_ACEOF
8702 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8703 _ACEOF
8704
8705
8706 fi
8707 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8708 #include <sys/types.h>
8709 #endif
8710 #ifdef HAVE_SYS_STAT_H
8711 #include <sys/stat.h>
8712 #endif
8713 "
8714 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8715
8716 cat >>confdefs.h <<_ACEOF
8717 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8718 _ACEOF
8719
8720
8721 fi
8722 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8723 #include <sys/types.h>
8724 #endif
8725 #ifdef HAVE_SYS_STAT_H
8726 #include <sys/stat.h>
8727 #endif
8728 "
8729 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8730
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_STRUCT_STAT_ST_ATIME 1
8733 _ACEOF
8734
8735
8736 fi
8737 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8738 #include <sys/types.h>
8739 #endif
8740 #ifdef HAVE_SYS_STAT_H
8741 #include <sys/stat.h>
8742 #endif
8743 "
8744 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8745
8746 cat >>confdefs.h <<_ACEOF
8747 #define HAVE_STRUCT_STAT_ST_MTIME 1
8748 _ACEOF
8749
8750
8751 fi
8752 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8753 #include <sys/types.h>
8754 #endif
8755 #ifdef HAVE_SYS_STAT_H
8756 #include <sys/stat.h>
8757 #endif
8758 "
8759 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8760
8761 cat >>confdefs.h <<_ACEOF
8762 #define HAVE_STRUCT_STAT_ST_CTIME 1
8763 _ACEOF
8764
8765
8766 fi
8767
8768
8769 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8770 if test "x$ac_cv_type___int128" = xyes; then :
8771
8772 cat >>confdefs.h <<_ACEOF
8773 #define HAVE___INT128 1
8774 _ACEOF
8775
8776
8777 fi
8778
8779 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8780 #include <sys/socket.h>
8781
8782 "
8783 if test "x$ac_cv_type_socklen_t" = xyes; then :
8784
8785 cat >>confdefs.h <<_ACEOF
8786 #define HAVE_SOCKLEN_T 1
8787 _ACEOF
8788
8789
8790 fi
8791
8792
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8794 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8795 if ${ac_cv_type_getgroups+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 if test "$cross_compiling" = yes; then :
8799 ac_cv_type_getgroups=cross
8800 else
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 /* Thanks to Mike Rendell for this test. */
8804 $ac_includes_default
8805 #define NGID 256
8806 #undef MAX
8807 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8808
8809 int
8810 main ()
8811 {
8812 gid_t gidset[NGID];
8813 int i, n;
8814 union { gid_t gval; long int lval; } val;
8815
8816 val.lval = -1;
8817 for (i = 0; i < NGID; i++)
8818 gidset[i] = val.gval;
8819 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8820 gidset);
8821 /* Exit non-zero if getgroups seems to require an array of ints. This
8822 happens when gid_t is short int but getgroups modifies an array
8823 of ints. */
8824 return n > 0 && gidset[n] != val.gval;
8825 }
8826 _ACEOF
8827 if ac_fn_c_try_run "$LINENO"; then :
8828 ac_cv_type_getgroups=gid_t
8829 else
8830 ac_cv_type_getgroups=int
8831 fi
8832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8833 conftest.$ac_objext conftest.beam conftest.$ac_ext
8834 fi
8835
8836 if test $ac_cv_type_getgroups = cross; then
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 #include <unistd.h>
8840
8841 _ACEOF
8842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8843 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8844 ac_cv_type_getgroups=gid_t
8845 else
8846 ac_cv_type_getgroups=int
8847 fi
8848 rm -f conftest*
8849
8850 fi
8851 fi
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8853 $as_echo "$ac_cv_type_getgroups" >&6; }
8854
8855 cat >>confdefs.h <<_ACEOF
8856 #define GETGROUPS_T $ac_cv_type_getgroups
8857 _ACEOF
8858
8859
8860 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8861 if test "x$ac_cv_type_mode_t" = xyes; then :
8862
8863 else
8864
8865 cat >>confdefs.h <<_ACEOF
8866 #define mode_t int
8867 _ACEOF
8868
8869 fi
8870
8871 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8872 if test "x$ac_cv_type_off_t" = xyes; then :
8873
8874 else
8875
8876 cat >>confdefs.h <<_ACEOF
8877 #define off_t long int
8878 _ACEOF
8879
8880 fi
8881
8882 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8883 if test "x$ac_cv_type_pid_t" = xyes; then :
8884
8885 else
8886
8887 cat >>confdefs.h <<_ACEOF
8888 #define pid_t int
8889 _ACEOF
8890
8891 fi
8892
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8894 $as_echo_n "checking return type of signal handlers... " >&6; }
8895 if ${ac_cv_type_signal+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8900 #include <sys/types.h>
8901 #include <signal.h>
8902
8903 int
8904 main ()
8905 {
8906 return *(signal (0, 0)) (0) == 1;
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_compile "$LINENO"; then :
8912 ac_cv_type_signal=int
8913 else
8914 ac_cv_type_signal=void
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 fi
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8919 $as_echo "$ac_cv_type_signal" >&6; }
8920
8921 cat >>confdefs.h <<_ACEOF
8922 #define RETSIGTYPE $ac_cv_type_signal
8923 _ACEOF
8924
8925
8926 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8927 if test "x$ac_cv_type_size_t" = xyes; then :
8928
8929 else
8930
8931 cat >>confdefs.h <<_ACEOF
8932 #define size_t unsigned int
8933 _ACEOF
8934
8935 fi
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8938 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8939 if ${ac_cv_type_uid_t+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 #include <sys/types.h>
8945
8946 _ACEOF
8947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8948 $EGREP "uid_t" >/dev/null 2>&1; then :
8949 ac_cv_type_uid_t=yes
8950 else
8951 ac_cv_type_uid_t=no
8952 fi
8953 rm -f conftest*
8954
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8957 $as_echo "$ac_cv_type_uid_t" >&6; }
8958 if test $ac_cv_type_uid_t = no; then
8959
8960 $as_echo "#define uid_t int" >>confdefs.h
8961
8962
8963 $as_echo "#define gid_t int" >>confdefs.h
8964
8965 fi
8966
8967
8968 ALL_LINGUAS=
8969 # If we haven't got the data from the intl directory,
8970 # assume NLS is disabled.
8971 USE_NLS=no
8972 LIBINTL=
8973 LIBINTL_DEP=
8974 INCINTL=
8975 XGETTEXT=
8976 GMSGFMT=
8977 POSUB=
8978
8979 if test -f ../intl/config.intl; then
8980 . ../intl/config.intl
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8983 $as_echo_n "checking whether NLS is requested... " >&6; }
8984 if test x"$USE_NLS" != xyes; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986 $as_echo "no" >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8989 $as_echo "yes" >&6; }
8990
8991 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8992
8993
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8995 $as_echo_n "checking for catalogs to be installed... " >&6; }
8996 # Look for .po and .gmo files in the source directory.
8997 CATALOGS=
8998 XLINGUAS=
8999 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9000 # If there aren't any .gmo files the shell will give us the
9001 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9002 # weeded out.
9003 case "$cat" in *\**)
9004 continue;;
9005 esac
9006 # The quadruple backslash is collapsed to a double backslash
9007 # by the backticks, then collapsed again by the double quotes,
9008 # leaving us with one backslash in the sed expression (right
9009 # before the dot that mustn't act as a wildcard).
9010 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
9011 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
9012 # The user is allowed to set LINGUAS to a list of languages to
9013 # install catalogs for. If it's empty that means "all of them."
9014 if test "x$LINGUAS" = x; then
9015 CATALOGS="$CATALOGS $cat"
9016 XLINGUAS="$XLINGUAS $lang"
9017 else
9018 case "$LINGUAS" in *$lang*)
9019 CATALOGS="$CATALOGS $cat"
9020 XLINGUAS="$XLINGUAS $lang"
9021 ;;
9022 esac
9023 fi
9024 done
9025 LINGUAS="$XLINGUAS"
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
9027 $as_echo "$LINGUAS" >&6; }
9028
9029
9030 DATADIRNAME=share
9031
9032 INSTOBJEXT=.mo
9033
9034 GENCAT=gencat
9035
9036 CATOBJEXT=.gmo
9037
9038 fi
9039
9040
9041 # Use the system's zlib library.
9042 zlibdir="-L\$(top_builddir)/../zlib"
9043 zlibinc="-I\$(top_srcdir)/../zlib"
9044
9045 # Check whether --with-system-zlib was given.
9046 if test "${with_system_zlib+set}" = set; then :
9047 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9048 zlibdir=
9049 zlibinc=
9050 fi
9051
9052 fi
9053
9054
9055
9056
9057
9058
9059 maybe_plugins=no
9060 for ac_header in dlfcn.h
9061 do :
9062 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9063 "
9064 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9065 cat >>confdefs.h <<_ACEOF
9066 #define HAVE_DLFCN_H 1
9067 _ACEOF
9068 maybe_plugins=yes
9069 fi
9070
9071 done
9072
9073 for ac_header in windows.h
9074 do :
9075 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9076 "
9077 if test "x$ac_cv_header_windows_h" = xyes; then :
9078 cat >>confdefs.h <<_ACEOF
9079 #define HAVE_WINDOWS_H 1
9080 _ACEOF
9081 maybe_plugins=yes
9082 fi
9083
9084 done
9085
9086
9087 # Check whether --enable-plugins was given.
9088 if test "${enable_plugins+set}" = set; then :
9089 enableval=$enable_plugins; case "${enableval}" in
9090 no) plugins=no ;;
9091 *) plugins=yes
9092 if test "$maybe_plugins" != "yes" ; then
9093 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
9094 fi ;;
9095 esac
9096 else
9097 plugins=$maybe_plugins
9098
9099 fi
9100
9101 if test "$plugins" = "yes"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9103 $as_echo_n "checking for library containing dlsym... " >&6; }
9104 if ${ac_cv_search_dlsym+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 ac_func_search_save_LIBS=$LIBS
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110
9111 /* Override any GCC internal prototype to avoid an error.
9112 Use char because int might match the return type of a GCC
9113 builtin and then its argument prototype would still apply. */
9114 #ifdef __cplusplus
9115 extern "C"
9116 #endif
9117 char dlsym ();
9118 int
9119 main ()
9120 {
9121 return dlsym ();
9122 ;
9123 return 0;
9124 }
9125 _ACEOF
9126 for ac_lib in '' dl; do
9127 if test -z "$ac_lib"; then
9128 ac_res="none required"
9129 else
9130 ac_res=-l$ac_lib
9131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9132 fi
9133 if ac_fn_c_try_link "$LINENO"; then :
9134 ac_cv_search_dlsym=$ac_res
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext
9138 if ${ac_cv_search_dlsym+:} false; then :
9139 break
9140 fi
9141 done
9142 if ${ac_cv_search_dlsym+:} false; then :
9143
9144 else
9145 ac_cv_search_dlsym=no
9146 fi
9147 rm conftest.$ac_ext
9148 LIBS=$ac_func_search_save_LIBS
9149 fi
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9151 $as_echo "$ac_cv_search_dlsym" >&6; }
9152 ac_res=$ac_cv_search_dlsym
9153 if test "$ac_res" != no; then :
9154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9155
9156 fi
9157
9158 fi
9159
9160 if test "$plugins" = yes; then
9161 PLUGINS_TRUE=
9162 PLUGINS_FALSE='#'
9163 else
9164 PLUGINS_TRUE='#'
9165 PLUGINS_FALSE=
9166 fi
9167
9168
9169
9170
9171
9172 # Set options
9173 enable_dlopen=yes
9174
9175
9176
9177
9178 enable_win32_dll=no
9179
9180
9181 # Check whether --enable-shared was given.
9182 if test "${enable_shared+set}" = set; then :
9183 enableval=$enable_shared; p=${PACKAGE-default}
9184 case $enableval in
9185 yes) enable_shared=yes ;;
9186 no) enable_shared=no ;;
9187 *)
9188 enable_shared=no
9189 # Look at the argument we got. We use all the common list separators.
9190 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9191 for pkg in $enableval; do
9192 IFS="$lt_save_ifs"
9193 if test "X$pkg" = "X$p"; then
9194 enable_shared=yes
9195 fi
9196 done
9197 IFS="$lt_save_ifs"
9198 ;;
9199 esac
9200 else
9201 enable_shared=yes
9202 fi
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212 # Check whether --enable-static was given.
9213 if test "${enable_static+set}" = set; then :
9214 enableval=$enable_static; p=${PACKAGE-default}
9215 case $enableval in
9216 yes) enable_static=yes ;;
9217 no) enable_static=no ;;
9218 *)
9219 enable_static=no
9220 # Look at the argument we got. We use all the common list separators.
9221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9222 for pkg in $enableval; do
9223 IFS="$lt_save_ifs"
9224 if test "X$pkg" = "X$p"; then
9225 enable_static=yes
9226 fi
9227 done
9228 IFS="$lt_save_ifs"
9229 ;;
9230 esac
9231 else
9232 enable_static=yes
9233 fi
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244 # Check whether --with-pic was given.
9245 if test "${with_pic+set}" = set; then :
9246 withval=$with_pic; pic_mode="$withval"
9247 else
9248 pic_mode=default
9249 fi
9250
9251
9252 test -z "$pic_mode" && pic_mode=default
9253
9254
9255
9256
9257
9258
9259
9260 # Check whether --enable-fast-install was given.
9261 if test "${enable_fast_install+set}" = set; then :
9262 enableval=$enable_fast_install; p=${PACKAGE-default}
9263 case $enableval in
9264 yes) enable_fast_install=yes ;;
9265 no) enable_fast_install=no ;;
9266 *)
9267 enable_fast_install=no
9268 # Look at the argument we got. We use all the common list separators.
9269 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9270 for pkg in $enableval; do
9271 IFS="$lt_save_ifs"
9272 if test "X$pkg" = "X$p"; then
9273 enable_fast_install=yes
9274 fi
9275 done
9276 IFS="$lt_save_ifs"
9277 ;;
9278 esac
9279 else
9280 enable_fast_install=yes
9281 fi
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293 # This can be used to rebuild libtool when needed
9294 LIBTOOL_DEPS="$ltmain"
9295
9296 # Always use our own libtool.
9297 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324 test -z "$LN_S" && LN_S="ln -s"
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339 if test -n "${ZSH_VERSION+set}" ; then
9340 setopt NO_GLOB_SUBST
9341 fi
9342
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9344 $as_echo_n "checking for objdir... " >&6; }
9345 if ${lt_cv_objdir+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 rm -f .libs 2>/dev/null
9349 mkdir .libs 2>/dev/null
9350 if test -d .libs; then
9351 lt_cv_objdir=.libs
9352 else
9353 # MS-DOS does not allow filenames that begin with a dot.
9354 lt_cv_objdir=_libs
9355 fi
9356 rmdir .libs 2>/dev/null
9357 fi
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9359 $as_echo "$lt_cv_objdir" >&6; }
9360 objdir=$lt_cv_objdir
9361
9362
9363
9364
9365
9366 cat >>confdefs.h <<_ACEOF
9367 #define LT_OBJDIR "$lt_cv_objdir/"
9368 _ACEOF
9369
9370
9371
9372
9373 case $host_os in
9374 aix3*)
9375 # AIX sometimes has problems with the GCC collect2 program. For some
9376 # reason, if we set the COLLECT_NAMES environment variable, the problems
9377 # vanish in a puff of smoke.
9378 if test "X${COLLECT_NAMES+set}" != Xset; then
9379 COLLECT_NAMES=
9380 export COLLECT_NAMES
9381 fi
9382 ;;
9383 esac
9384
9385 # Global variables:
9386 ofile=libtool
9387 can_build_shared=yes
9388
9389 # All known linkers require a `.a' archive for static linking (except MSVC,
9390 # which needs '.lib').
9391 libext=a
9392
9393 with_gnu_ld="$lt_cv_prog_gnu_ld"
9394
9395 old_CC="$CC"
9396 old_CFLAGS="$CFLAGS"
9397
9398 # Set sane defaults for various variables
9399 test -z "$CC" && CC=cc
9400 test -z "$LTCC" && LTCC=$CC
9401 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9402 test -z "$LD" && LD=ld
9403 test -z "$ac_objext" && ac_objext=o
9404
9405 for cc_temp in $compiler""; do
9406 case $cc_temp in
9407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9409 \-*) ;;
9410 *) break;;
9411 esac
9412 done
9413 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9414
9415
9416 # Only perform the check for file, if the check method requires it
9417 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9418 case $deplibs_check_method in
9419 file_magic*)
9420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9422 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9423 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 case $MAGIC_CMD in
9427 [\\/*] | ?:[\\/]*)
9428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9429 ;;
9430 *)
9431 lt_save_MAGIC_CMD="$MAGIC_CMD"
9432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9434 for ac_dir in $ac_dummy; do
9435 IFS="$lt_save_ifs"
9436 test -z "$ac_dir" && ac_dir=.
9437 if test -f $ac_dir/${ac_tool_prefix}file; then
9438 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9439 if test -n "$file_magic_test_file"; then
9440 case $deplibs_check_method in
9441 "file_magic "*)
9442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9445 $EGREP "$file_magic_regex" > /dev/null; then
9446 :
9447 else
9448 cat <<_LT_EOF 1>&2
9449
9450 *** Warning: the command libtool uses to detect shared libraries,
9451 *** $file_magic_cmd, produces output that libtool cannot recognize.
9452 *** The result is that libtool may fail to recognize shared libraries
9453 *** as such. This will affect the creation of libtool libraries that
9454 *** depend on shared libraries, but programs linked with such libtool
9455 *** libraries will work regardless of this problem. Nevertheless, you
9456 *** may want to report the problem to your system manager and/or to
9457 *** bug-libtool@gnu.org
9458
9459 _LT_EOF
9460 fi ;;
9461 esac
9462 fi
9463 break
9464 fi
9465 done
9466 IFS="$lt_save_ifs"
9467 MAGIC_CMD="$lt_save_MAGIC_CMD"
9468 ;;
9469 esac
9470 fi
9471
9472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9473 if test -n "$MAGIC_CMD"; then
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9475 $as_echo "$MAGIC_CMD" >&6; }
9476 else
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 $as_echo "no" >&6; }
9479 fi
9480
9481
9482
9483
9484
9485 if test -z "$lt_cv_path_MAGIC_CMD"; then
9486 if test -n "$ac_tool_prefix"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9488 $as_echo_n "checking for file... " >&6; }
9489 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 case $MAGIC_CMD in
9493 [\\/*] | ?:[\\/]*)
9494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9495 ;;
9496 *)
9497 lt_save_MAGIC_CMD="$MAGIC_CMD"
9498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9500 for ac_dir in $ac_dummy; do
9501 IFS="$lt_save_ifs"
9502 test -z "$ac_dir" && ac_dir=.
9503 if test -f $ac_dir/file; then
9504 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9505 if test -n "$file_magic_test_file"; then
9506 case $deplibs_check_method in
9507 "file_magic "*)
9508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9511 $EGREP "$file_magic_regex" > /dev/null; then
9512 :
9513 else
9514 cat <<_LT_EOF 1>&2
9515
9516 *** Warning: the command libtool uses to detect shared libraries,
9517 *** $file_magic_cmd, produces output that libtool cannot recognize.
9518 *** The result is that libtool may fail to recognize shared libraries
9519 *** as such. This will affect the creation of libtool libraries that
9520 *** depend on shared libraries, but programs linked with such libtool
9521 *** libraries will work regardless of this problem. Nevertheless, you
9522 *** may want to report the problem to your system manager and/or to
9523 *** bug-libtool@gnu.org
9524
9525 _LT_EOF
9526 fi ;;
9527 esac
9528 fi
9529 break
9530 fi
9531 done
9532 IFS="$lt_save_ifs"
9533 MAGIC_CMD="$lt_save_MAGIC_CMD"
9534 ;;
9535 esac
9536 fi
9537
9538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9539 if test -n "$MAGIC_CMD"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9541 $as_echo "$MAGIC_CMD" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545 fi
9546
9547
9548 else
9549 MAGIC_CMD=:
9550 fi
9551 fi
9552
9553 fi
9554 ;;
9555 esac
9556
9557 # Use C for the default configuration in the libtool script
9558
9559 lt_save_CC="$CC"
9560 ac_ext=c
9561 ac_cpp='$CPP $CPPFLAGS'
9562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9565
9566
9567 # Source file extension for C test sources.
9568 ac_ext=c
9569
9570 # Object file extension for compiled C test sources.
9571 objext=o
9572 objext=$objext
9573
9574 # Code to be used in simple compile tests
9575 lt_simple_compile_test_code="int some_variable = 0;"
9576
9577 # Code to be used in simple link tests
9578 lt_simple_link_test_code='int main(){return(0);}'
9579
9580
9581
9582
9583
9584
9585
9586 # If no C compiler was specified, use CC.
9587 LTCC=${LTCC-"$CC"}
9588
9589 # If no C compiler flags were specified, use CFLAGS.
9590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9591
9592 # Allow CC to be a program name with arguments.
9593 compiler=$CC
9594
9595 # Save the default compiler, since it gets overwritten when the other
9596 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9597 compiler_DEFAULT=$CC
9598
9599 # save warnings/boilerplate of simple test code
9600 ac_outfile=conftest.$ac_objext
9601 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9602 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9603 _lt_compiler_boilerplate=`cat conftest.err`
9604 $RM conftest*
9605
9606 ac_outfile=conftest.$ac_objext
9607 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9608 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9609 _lt_linker_boilerplate=`cat conftest.err`
9610 $RM -r conftest*
9611
9612
9613 ## CAVEAT EMPTOR:
9614 ## There is no encapsulation within the following macros, do not change
9615 ## the running order or otherwise move them around unless you know exactly
9616 ## what you are doing...
9617 if test -n "$compiler"; then
9618
9619 lt_prog_compiler_no_builtin_flag=
9620
9621 if test "$GCC" = yes; then
9622 case $cc_basename in
9623 nvcc*)
9624 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9625 *)
9626 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9627 esac
9628
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9630 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9631 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 lt_cv_prog_compiler_rtti_exceptions=no
9635 ac_outfile=conftest.$ac_objext
9636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9637 lt_compiler_flag="-fno-rtti -fno-exceptions"
9638 # Insert the option either (1) after the last *FLAGS variable, or
9639 # (2) before a word containing "conftest.", or (3) at the end.
9640 # Note that $ac_compile itself does not contain backslashes and begins
9641 # with a dollar sign (not a hyphen), so the echo should work correctly.
9642 # The option is referenced via a variable to avoid confusing sed.
9643 lt_compile=`echo "$ac_compile" | $SED \
9644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9646 -e 's:$: $lt_compiler_flag:'`
9647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9648 (eval "$lt_compile" 2>conftest.err)
9649 ac_status=$?
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 if (exit $ac_status) && test -s "$ac_outfile"; then
9653 # The compiler can only warn and ignore the option if not recognized
9654 # So say no if there are warnings other than the usual output.
9655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9658 lt_cv_prog_compiler_rtti_exceptions=yes
9659 fi
9660 fi
9661 $RM conftest*
9662
9663 fi
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9665 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9666
9667 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9668 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9669 else
9670 :
9671 fi
9672
9673 fi
9674
9675
9676
9677
9678
9679
9680 lt_prog_compiler_wl=
9681 lt_prog_compiler_pic=
9682 lt_prog_compiler_static=
9683
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9685 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9686
9687 if test "$GCC" = yes; then
9688 lt_prog_compiler_wl='-Wl,'
9689 lt_prog_compiler_static='-static'
9690
9691 case $host_os in
9692 aix*)
9693 # All AIX code is PIC.
9694 if test "$host_cpu" = ia64; then
9695 # AIX 5 now supports IA64 processor
9696 lt_prog_compiler_static='-Bstatic'
9697 fi
9698 lt_prog_compiler_pic='-fPIC'
9699 ;;
9700
9701 amigaos*)
9702 case $host_cpu in
9703 powerpc)
9704 # see comment about AmigaOS4 .so support
9705 lt_prog_compiler_pic='-fPIC'
9706 ;;
9707 m68k)
9708 # FIXME: we need at least 68020 code to build shared libraries, but
9709 # adding the `-m68020' flag to GCC prevents building anything better,
9710 # like `-m68040'.
9711 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9712 ;;
9713 esac
9714 ;;
9715
9716 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9717 # PIC is the default for these OSes.
9718 ;;
9719
9720 mingw* | cygwin* | pw32* | os2* | cegcc*)
9721 # This hack is so that the source file can tell whether it is being
9722 # built for inclusion in a dll (and should export symbols for example).
9723 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9724 # (--disable-auto-import) libraries
9725 lt_prog_compiler_pic='-DDLL_EXPORT'
9726 ;;
9727
9728 darwin* | rhapsody*)
9729 # PIC is the default on this platform
9730 # Common symbols not allowed in MH_DYLIB files
9731 lt_prog_compiler_pic='-fno-common'
9732 ;;
9733
9734 haiku*)
9735 # PIC is the default for Haiku.
9736 # The "-static" flag exists, but is broken.
9737 lt_prog_compiler_static=
9738 ;;
9739
9740 hpux*)
9741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9743 # sets the default TLS model and affects inlining.
9744 case $host_cpu in
9745 hppa*64*)
9746 # +Z the default
9747 ;;
9748 *)
9749 lt_prog_compiler_pic='-fPIC'
9750 ;;
9751 esac
9752 ;;
9753
9754 interix[3-9]*)
9755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9756 # Instead, we relocate shared libraries at runtime.
9757 ;;
9758
9759 msdosdjgpp*)
9760 # Just because we use GCC doesn't mean we suddenly get shared libraries
9761 # on systems that don't support them.
9762 lt_prog_compiler_can_build_shared=no
9763 enable_shared=no
9764 ;;
9765
9766 *nto* | *qnx*)
9767 # QNX uses GNU C++, but need to define -shared option too, otherwise
9768 # it will coredump.
9769 lt_prog_compiler_pic='-fPIC -shared'
9770 ;;
9771
9772 sysv4*MP*)
9773 if test -d /usr/nec; then
9774 lt_prog_compiler_pic=-Kconform_pic
9775 fi
9776 ;;
9777
9778 *)
9779 lt_prog_compiler_pic='-fPIC'
9780 ;;
9781 esac
9782
9783 case $cc_basename in
9784 nvcc*) # Cuda Compiler Driver 2.2
9785 lt_prog_compiler_wl='-Xlinker '
9786 lt_prog_compiler_pic='-Xcompiler -fPIC'
9787 ;;
9788 esac
9789 else
9790 # PORTME Check for flag to pass linker flags through the system compiler.
9791 case $host_os in
9792 aix*)
9793 lt_prog_compiler_wl='-Wl,'
9794 if test "$host_cpu" = ia64; then
9795 # AIX 5 now supports IA64 processor
9796 lt_prog_compiler_static='-Bstatic'
9797 else
9798 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9799 fi
9800 ;;
9801
9802 mingw* | cygwin* | pw32* | os2* | cegcc*)
9803 # This hack is so that the source file can tell whether it is being
9804 # built for inclusion in a dll (and should export symbols for example).
9805 lt_prog_compiler_pic='-DDLL_EXPORT'
9806 ;;
9807
9808 hpux9* | hpux10* | hpux11*)
9809 lt_prog_compiler_wl='-Wl,'
9810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9811 # not for PA HP-UX.
9812 case $host_cpu in
9813 hppa*64*|ia64*)
9814 # +Z the default
9815 ;;
9816 *)
9817 lt_prog_compiler_pic='+Z'
9818 ;;
9819 esac
9820 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9821 lt_prog_compiler_static='${wl}-a ${wl}archive'
9822 ;;
9823
9824 irix5* | irix6* | nonstopux*)
9825 lt_prog_compiler_wl='-Wl,'
9826 # PIC (with -KPIC) is the default.
9827 lt_prog_compiler_static='-non_shared'
9828 ;;
9829
9830 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9831 case $cc_basename in
9832 # old Intel for x86_64 which still supported -KPIC.
9833 ecc*)
9834 lt_prog_compiler_wl='-Wl,'
9835 lt_prog_compiler_pic='-KPIC'
9836 lt_prog_compiler_static='-static'
9837 ;;
9838 # icc used to be incompatible with GCC.
9839 # ICC 10 doesn't accept -KPIC any more.
9840 icc* | ifort*)
9841 lt_prog_compiler_wl='-Wl,'
9842 lt_prog_compiler_pic='-fPIC'
9843 lt_prog_compiler_static='-static'
9844 ;;
9845 # Lahey Fortran 8.1.
9846 lf95*)
9847 lt_prog_compiler_wl='-Wl,'
9848 lt_prog_compiler_pic='--shared'
9849 lt_prog_compiler_static='--static'
9850 ;;
9851 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9852 # Portland Group compilers (*not* the Pentium gcc compiler,
9853 # which looks to be a dead project)
9854 lt_prog_compiler_wl='-Wl,'
9855 lt_prog_compiler_pic='-fpic'
9856 lt_prog_compiler_static='-Bstatic'
9857 ;;
9858 ccc*)
9859 lt_prog_compiler_wl='-Wl,'
9860 # All Alpha code is PIC.
9861 lt_prog_compiler_static='-non_shared'
9862 ;;
9863 xl* | bgxl* | bgf* | mpixl*)
9864 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9865 lt_prog_compiler_wl='-Wl,'
9866 lt_prog_compiler_pic='-qpic'
9867 lt_prog_compiler_static='-qstaticlink'
9868 ;;
9869 *)
9870 case `$CC -V 2>&1 | sed 5q` in
9871 *Sun\ F* | *Sun*Fortran*)
9872 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9873 lt_prog_compiler_pic='-KPIC'
9874 lt_prog_compiler_static='-Bstatic'
9875 lt_prog_compiler_wl=''
9876 ;;
9877 *Sun\ C*)
9878 # Sun C 5.9
9879 lt_prog_compiler_pic='-KPIC'
9880 lt_prog_compiler_static='-Bstatic'
9881 lt_prog_compiler_wl='-Wl,'
9882 ;;
9883 esac
9884 ;;
9885 esac
9886 ;;
9887
9888 newsos6)
9889 lt_prog_compiler_pic='-KPIC'
9890 lt_prog_compiler_static='-Bstatic'
9891 ;;
9892
9893 *nto* | *qnx*)
9894 # QNX uses GNU C++, but need to define -shared option too, otherwise
9895 # it will coredump.
9896 lt_prog_compiler_pic='-fPIC -shared'
9897 ;;
9898
9899 osf3* | osf4* | osf5*)
9900 lt_prog_compiler_wl='-Wl,'
9901 # All OSF/1 code is PIC.
9902 lt_prog_compiler_static='-non_shared'
9903 ;;
9904
9905 rdos*)
9906 lt_prog_compiler_static='-non_shared'
9907 ;;
9908
9909 solaris*)
9910 lt_prog_compiler_pic='-KPIC'
9911 lt_prog_compiler_static='-Bstatic'
9912 case $cc_basename in
9913 f77* | f90* | f95*)
9914 lt_prog_compiler_wl='-Qoption ld ';;
9915 *)
9916 lt_prog_compiler_wl='-Wl,';;
9917 esac
9918 ;;
9919
9920 sunos4*)
9921 lt_prog_compiler_wl='-Qoption ld '
9922 lt_prog_compiler_pic='-PIC'
9923 lt_prog_compiler_static='-Bstatic'
9924 ;;
9925
9926 sysv4 | sysv4.2uw2* | sysv4.3*)
9927 lt_prog_compiler_wl='-Wl,'
9928 lt_prog_compiler_pic='-KPIC'
9929 lt_prog_compiler_static='-Bstatic'
9930 ;;
9931
9932 sysv4*MP*)
9933 if test -d /usr/nec ;then
9934 lt_prog_compiler_pic='-Kconform_pic'
9935 lt_prog_compiler_static='-Bstatic'
9936 fi
9937 ;;
9938
9939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9940 lt_prog_compiler_wl='-Wl,'
9941 lt_prog_compiler_pic='-KPIC'
9942 lt_prog_compiler_static='-Bstatic'
9943 ;;
9944
9945 unicos*)
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_can_build_shared=no
9948 ;;
9949
9950 uts4*)
9951 lt_prog_compiler_pic='-pic'
9952 lt_prog_compiler_static='-Bstatic'
9953 ;;
9954
9955 *)
9956 lt_prog_compiler_can_build_shared=no
9957 ;;
9958 esac
9959 fi
9960
9961 case $host_os in
9962 # For platforms which do not support PIC, -DPIC is meaningless:
9963 *djgpp*)
9964 lt_prog_compiler_pic=
9965 ;;
9966 *)
9967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9968 ;;
9969 esac
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9971 $as_echo "$lt_prog_compiler_pic" >&6; }
9972
9973
9974
9975
9976
9977
9978 #
9979 # Check to make sure the PIC flag actually works.
9980 #
9981 if test -n "$lt_prog_compiler_pic"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9983 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9984 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 lt_cv_prog_compiler_pic_works=no
9988 ac_outfile=conftest.$ac_objext
9989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9990 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9991 # Insert the option either (1) after the last *FLAGS variable, or
9992 # (2) before a word containing "conftest.", or (3) at the end.
9993 # Note that $ac_compile itself does not contain backslashes and begins
9994 # with a dollar sign (not a hyphen), so the echo should work correctly.
9995 # The option is referenced via a variable to avoid confusing sed.
9996 lt_compile=`echo "$ac_compile" | $SED \
9997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9999 -e 's:$: $lt_compiler_flag:'`
10000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10001 (eval "$lt_compile" 2>conftest.err)
10002 ac_status=$?
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 if (exit $ac_status) && test -s "$ac_outfile"; then
10006 # The compiler can only warn and ignore the option if not recognized
10007 # So say no if there are warnings other than the usual output.
10008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10011 lt_cv_prog_compiler_pic_works=yes
10012 fi
10013 fi
10014 $RM conftest*
10015
10016 fi
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10018 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10019
10020 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10021 case $lt_prog_compiler_pic in
10022 "" | " "*) ;;
10023 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10024 esac
10025 else
10026 lt_prog_compiler_pic=
10027 lt_prog_compiler_can_build_shared=no
10028 fi
10029
10030 fi
10031
10032
10033
10034
10035
10036
10037 #
10038 # Check to make sure the static flag actually works.
10039 #
10040 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10042 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10043 if ${lt_cv_prog_compiler_static_works+:} false; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 lt_cv_prog_compiler_static_works=no
10047 save_LDFLAGS="$LDFLAGS"
10048 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10049 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10051 # The linker can only warn and ignore the option if not recognized
10052 # So say no if there are warnings
10053 if test -s conftest.err; then
10054 # Append any errors to the config.log.
10055 cat conftest.err 1>&5
10056 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10058 if diff conftest.exp conftest.er2 >/dev/null; then
10059 lt_cv_prog_compiler_static_works=yes
10060 fi
10061 else
10062 lt_cv_prog_compiler_static_works=yes
10063 fi
10064 fi
10065 $RM -r conftest*
10066 LDFLAGS="$save_LDFLAGS"
10067
10068 fi
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10070 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10071
10072 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10073 :
10074 else
10075 lt_prog_compiler_static=
10076 fi
10077
10078
10079
10080
10081
10082
10083
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10086 if ${lt_cv_prog_compiler_c_o+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 lt_cv_prog_compiler_c_o=no
10090 $RM -r conftest 2>/dev/null
10091 mkdir conftest
10092 cd conftest
10093 mkdir out
10094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10095
10096 lt_compiler_flag="-o out/conftest2.$ac_objext"
10097 # Insert the option either (1) after the last *FLAGS variable, or
10098 # (2) before a word containing "conftest.", or (3) at the end.
10099 # Note that $ac_compile itself does not contain backslashes and begins
10100 # with a dollar sign (not a hyphen), so the echo should work correctly.
10101 lt_compile=`echo "$ac_compile" | $SED \
10102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10104 -e 's:$: $lt_compiler_flag:'`
10105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10106 (eval "$lt_compile" 2>out/conftest.err)
10107 ac_status=$?
10108 cat out/conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10111 then
10112 # The compiler can only warn and ignore the option if not recognized
10113 # So say no if there are warnings
10114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10117 lt_cv_prog_compiler_c_o=yes
10118 fi
10119 fi
10120 chmod u+w . 2>&5
10121 $RM conftest*
10122 # SGI C++ compiler will create directory out/ii_files/ for
10123 # template instantiation
10124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10125 $RM out/* && rmdir out
10126 cd ..
10127 $RM -r conftest
10128 $RM conftest*
10129
10130 fi
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10132 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10133
10134
10135
10136
10137
10138
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10141 if ${lt_cv_prog_compiler_c_o+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 lt_cv_prog_compiler_c_o=no
10145 $RM -r conftest 2>/dev/null
10146 mkdir conftest
10147 cd conftest
10148 mkdir out
10149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10150
10151 lt_compiler_flag="-o out/conftest2.$ac_objext"
10152 # Insert the option either (1) after the last *FLAGS variable, or
10153 # (2) before a word containing "conftest.", or (3) at the end.
10154 # Note that $ac_compile itself does not contain backslashes and begins
10155 # with a dollar sign (not a hyphen), so the echo should work correctly.
10156 lt_compile=`echo "$ac_compile" | $SED \
10157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10159 -e 's:$: $lt_compiler_flag:'`
10160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10161 (eval "$lt_compile" 2>out/conftest.err)
10162 ac_status=$?
10163 cat out/conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10166 then
10167 # The compiler can only warn and ignore the option if not recognized
10168 # So say no if there are warnings
10169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10172 lt_cv_prog_compiler_c_o=yes
10173 fi
10174 fi
10175 chmod u+w . 2>&5
10176 $RM conftest*
10177 # SGI C++ compiler will create directory out/ii_files/ for
10178 # template instantiation
10179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10180 $RM out/* && rmdir out
10181 cd ..
10182 $RM -r conftest
10183 $RM conftest*
10184
10185 fi
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10187 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10188
10189
10190
10191
10192 hard_links="nottested"
10193 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10194 # do not overwrite the value of need_locks provided by the user
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10196 $as_echo_n "checking if we can lock with hard links... " >&6; }
10197 hard_links=yes
10198 $RM conftest*
10199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10200 touch conftest.a
10201 ln conftest.a conftest.b 2>&5 || hard_links=no
10202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10204 $as_echo "$hard_links" >&6; }
10205 if test "$hard_links" = no; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10207 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10208 need_locks=warn
10209 fi
10210 else
10211 need_locks=no
10212 fi
10213
10214
10215
10216
10217
10218
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10220 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10221
10222 runpath_var=
10223 allow_undefined_flag=
10224 always_export_symbols=no
10225 archive_cmds=
10226 archive_expsym_cmds=
10227 compiler_needs_object=no
10228 enable_shared_with_static_runtimes=no
10229 export_dynamic_flag_spec=
10230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10231 hardcode_automatic=no
10232 hardcode_direct=no
10233 hardcode_direct_absolute=no
10234 hardcode_libdir_flag_spec=
10235 hardcode_libdir_flag_spec_ld=
10236 hardcode_libdir_separator=
10237 hardcode_minus_L=no
10238 hardcode_shlibpath_var=unsupported
10239 inherit_rpath=no
10240 link_all_deplibs=unknown
10241 module_cmds=
10242 module_expsym_cmds=
10243 old_archive_from_new_cmds=
10244 old_archive_from_expsyms_cmds=
10245 thread_safe_flag_spec=
10246 whole_archive_flag_spec=
10247 # include_expsyms should be a list of space-separated symbols to be *always*
10248 # included in the symbol list
10249 include_expsyms=
10250 # exclude_expsyms can be an extended regexp of symbols to exclude
10251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10253 # as well as any symbol that contains `d'.
10254 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10256 # platforms (ab)use it in PIC code, but their linkers get confused if
10257 # the symbol is explicitly referenced. Since portable code cannot
10258 # rely on this symbol name, it's probably fine to never include it in
10259 # preloaded symbol tables.
10260 # Exclude shared library initialization/finalization symbols.
10261 extract_expsyms_cmds=
10262
10263 case $host_os in
10264 cygwin* | mingw* | pw32* | cegcc*)
10265 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10266 # When not using gcc, we currently assume that we are using
10267 # Microsoft Visual C++.
10268 if test "$GCC" != yes; then
10269 with_gnu_ld=no
10270 fi
10271 ;;
10272 interix*)
10273 # we just hope/assume this is gcc and not c89 (= MSVC++)
10274 with_gnu_ld=yes
10275 ;;
10276 openbsd*)
10277 with_gnu_ld=no
10278 ;;
10279 esac
10280
10281 ld_shlibs=yes
10282
10283 # On some targets, GNU ld is compatible enough with the native linker
10284 # that we're better off using the native interface for both.
10285 lt_use_gnu_ld_interface=no
10286 if test "$with_gnu_ld" = yes; then
10287 case $host_os in
10288 aix*)
10289 # The AIX port of GNU ld has always aspired to compatibility
10290 # with the native linker. However, as the warning in the GNU ld
10291 # block says, versions before 2.19.5* couldn't really create working
10292 # shared libraries, regardless of the interface used.
10293 case `$LD -v 2>&1` in
10294 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10295 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10296 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10297 *)
10298 lt_use_gnu_ld_interface=yes
10299 ;;
10300 esac
10301 ;;
10302 *)
10303 lt_use_gnu_ld_interface=yes
10304 ;;
10305 esac
10306 fi
10307
10308 if test "$lt_use_gnu_ld_interface" = yes; then
10309 # If archive_cmds runs LD, not CC, wlarc should be empty
10310 wlarc='${wl}'
10311
10312 # Set some defaults for GNU ld with shared library support. These
10313 # are reset later if shared libraries are not supported. Putting them
10314 # here allows them to be overridden if necessary.
10315 runpath_var=LD_RUN_PATH
10316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10317 export_dynamic_flag_spec='${wl}--export-dynamic'
10318 # ancient GNU ld didn't support --whole-archive et. al.
10319 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10320 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10321 else
10322 whole_archive_flag_spec=
10323 fi
10324 supports_anon_versioning=no
10325 case `$LD -v 2>&1` in
10326 *GNU\ gold*) supports_anon_versioning=yes ;;
10327 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10328 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10329 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10330 *\ 2.11.*) ;; # other 2.11 versions
10331 *) supports_anon_versioning=yes ;;
10332 esac
10333
10334 # See if GNU ld supports shared libraries.
10335 case $host_os in
10336 aix[3-9]*)
10337 # On AIX/PPC, the GNU linker is very broken
10338 if test "$host_cpu" != ia64; then
10339 ld_shlibs=no
10340 cat <<_LT_EOF 1>&2
10341
10342 *** Warning: the GNU linker, at least up to release 2.19, is reported
10343 *** to be unable to reliably create shared libraries on AIX.
10344 *** Therefore, libtool is disabling shared libraries support. If you
10345 *** really care for shared libraries, you may want to install binutils
10346 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10347 *** You will then need to restart the configuration process.
10348
10349 _LT_EOF
10350 fi
10351 ;;
10352
10353 amigaos*)
10354 case $host_cpu in
10355 powerpc)
10356 # see comment about AmigaOS4 .so support
10357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10358 archive_expsym_cmds=''
10359 ;;
10360 m68k)
10361 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)'
10362 hardcode_libdir_flag_spec='-L$libdir'
10363 hardcode_minus_L=yes
10364 ;;
10365 esac
10366 ;;
10367
10368 beos*)
10369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10370 allow_undefined_flag=unsupported
10371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10372 # support --undefined. This deserves some investigation. FIXME
10373 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10374 else
10375 ld_shlibs=no
10376 fi
10377 ;;
10378
10379 cygwin* | mingw* | pw32* | cegcc*)
10380 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10381 # as there is no search path for DLLs.
10382 hardcode_libdir_flag_spec='-L$libdir'
10383 export_dynamic_flag_spec='${wl}--export-all-symbols'
10384 allow_undefined_flag=unsupported
10385 always_export_symbols=no
10386 enable_shared_with_static_runtimes=yes
10387 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10388
10389 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10391 # If the export-symbols file already is a .def file (1st line
10392 # is EXPORTS), use it as is; otherwise, prepend...
10393 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10394 cp $export_symbols $output_objdir/$soname.def;
10395 else
10396 echo EXPORTS > $output_objdir/$soname.def;
10397 cat $export_symbols >> $output_objdir/$soname.def;
10398 fi~
10399 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10400 else
10401 ld_shlibs=no
10402 fi
10403 ;;
10404
10405 haiku*)
10406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10407 link_all_deplibs=yes
10408 ;;
10409
10410 interix[3-9]*)
10411 hardcode_direct=no
10412 hardcode_shlibpath_var=no
10413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10414 export_dynamic_flag_spec='${wl}-E'
10415 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10416 # Instead, shared libraries are loaded at an image base (0x10000000 by
10417 # default) and relocated if they conflict, which is a slow very memory
10418 # consuming and fragmenting process. To avoid this, we pick a random,
10419 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10420 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10421 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10422 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'
10423 ;;
10424
10425 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10426 tmp_diet=no
10427 if test "$host_os" = linux-dietlibc; then
10428 case $cc_basename in
10429 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10430 esac
10431 fi
10432 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10433 && test "$tmp_diet" = no
10434 then
10435 tmp_addflag=' $pic_flag'
10436 tmp_sharedflag='-shared'
10437 case $cc_basename,$host_cpu in
10438 pgcc*) # Portland Group C compiler
10439 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'
10440 tmp_addflag=' $pic_flag'
10441 ;;
10442 pgf77* | pgf90* | pgf95* | pgfortran*)
10443 # Portland Group f77 and f90 compilers
10444 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'
10445 tmp_addflag=' $pic_flag -Mnomain' ;;
10446 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10447 tmp_addflag=' -i_dynamic' ;;
10448 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10449 tmp_addflag=' -i_dynamic -nofor_main' ;;
10450 ifc* | ifort*) # Intel Fortran compiler
10451 tmp_addflag=' -nofor_main' ;;
10452 lf95*) # Lahey Fortran 8.1
10453 whole_archive_flag_spec=
10454 tmp_sharedflag='--shared' ;;
10455 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10456 tmp_sharedflag='-qmkshrobj'
10457 tmp_addflag= ;;
10458 nvcc*) # Cuda Compiler Driver 2.2
10459 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'
10460 compiler_needs_object=yes
10461 ;;
10462 esac
10463 case `$CC -V 2>&1 | sed 5q` in
10464 *Sun\ C*) # Sun C 5.9
10465 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'
10466 compiler_needs_object=yes
10467 tmp_sharedflag='-G' ;;
10468 *Sun\ F*) # Sun Fortran 8.3
10469 tmp_sharedflag='-G' ;;
10470 esac
10471 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10472
10473 if test "x$supports_anon_versioning" = xyes; then
10474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10476 echo "local: *; };" >> $output_objdir/$libname.ver~
10477 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10478 fi
10479
10480 case $cc_basename in
10481 xlf* | bgf* | bgxlf* | mpixlf*)
10482 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10483 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10484 hardcode_libdir_flag_spec=
10485 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10486 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10487 if test "x$supports_anon_versioning" = xyes; then
10488 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10490 echo "local: *; };" >> $output_objdir/$libname.ver~
10491 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10492 fi
10493 ;;
10494 esac
10495 else
10496 ld_shlibs=no
10497 fi
10498 ;;
10499
10500 netbsd*)
10501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10502 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10503 wlarc=
10504 else
10505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10507 fi
10508 ;;
10509
10510 solaris*)
10511 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10512 ld_shlibs=no
10513 cat <<_LT_EOF 1>&2
10514
10515 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10516 *** create shared libraries on Solaris systems. Therefore, libtool
10517 *** is disabling shared libraries support. We urge you to upgrade GNU
10518 *** binutils to release 2.9.1 or newer. Another option is to modify
10519 *** your PATH or compiler configuration so that the native linker is
10520 *** used, and then restart.
10521
10522 _LT_EOF
10523 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10525 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10526 else
10527 ld_shlibs=no
10528 fi
10529 ;;
10530
10531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10532 case `$LD -v 2>&1` in
10533 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10534 ld_shlibs=no
10535 cat <<_LT_EOF 1>&2
10536
10537 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10538 *** reliably create shared libraries on SCO systems. Therefore, libtool
10539 *** is disabling shared libraries support. We urge you to upgrade GNU
10540 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10541 *** your PATH or compiler configuration so that the native linker is
10542 *** used, and then restart.
10543
10544 _LT_EOF
10545 ;;
10546 *)
10547 # For security reasons, it is highly recommended that you always
10548 # use absolute paths for naming shared libraries, and exclude the
10549 # DT_RUNPATH tag from executables and libraries. But doing so
10550 # requires that you compile everything twice, which is a pain.
10551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10554 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10555 else
10556 ld_shlibs=no
10557 fi
10558 ;;
10559 esac
10560 ;;
10561
10562 sunos4*)
10563 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10564 wlarc=
10565 hardcode_direct=yes
10566 hardcode_shlibpath_var=no
10567 ;;
10568
10569 *)
10570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10573 else
10574 ld_shlibs=no
10575 fi
10576 ;;
10577 esac
10578
10579 if test "$ld_shlibs" = no; then
10580 runpath_var=
10581 hardcode_libdir_flag_spec=
10582 export_dynamic_flag_spec=
10583 whole_archive_flag_spec=
10584 fi
10585 else
10586 # PORTME fill in a description of your system's linker (not GNU ld)
10587 case $host_os in
10588 aix3*)
10589 allow_undefined_flag=unsupported
10590 always_export_symbols=yes
10591 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'
10592 # Note: this linker hardcodes the directories in LIBPATH if there
10593 # are no directories specified by -L.
10594 hardcode_minus_L=yes
10595 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10596 # Neither direct hardcoding nor static linking is supported with a
10597 # broken collect2.
10598 hardcode_direct=unsupported
10599 fi
10600 ;;
10601
10602 aix[4-9]*)
10603 if test "$host_cpu" = ia64; then
10604 # On IA64, the linker does run time linking by default, so we don't
10605 # have to do anything special.
10606 aix_use_runtimelinking=no
10607 exp_sym_flag='-Bexport'
10608 no_entry_flag=""
10609 else
10610 # If we're using GNU nm, then we don't want the "-C" option.
10611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10612 # Also, AIX nm treats weak defined symbols like other global
10613 # defined symbols, whereas GNU nm marks them as "W".
10614 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10615 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'
10616 else
10617 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'
10618 fi
10619 aix_use_runtimelinking=no
10620
10621 # Test if we are trying to use run time linking or normal
10622 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10623 # need to do runtime linking.
10624 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10625 for ld_flag in $LDFLAGS; do
10626 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10627 aix_use_runtimelinking=yes
10628 break
10629 fi
10630 done
10631 ;;
10632 esac
10633
10634 exp_sym_flag='-bexport'
10635 no_entry_flag='-bnoentry'
10636 fi
10637
10638 # When large executables or shared objects are built, AIX ld can
10639 # have problems creating the table of contents. If linking a library
10640 # or program results in "error TOC overflow" add -mminimal-toc to
10641 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10642 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10643
10644 archive_cmds=''
10645 hardcode_direct=yes
10646 hardcode_direct_absolute=yes
10647 hardcode_libdir_separator=':'
10648 link_all_deplibs=yes
10649 file_list_spec='${wl}-f,'
10650
10651 if test "$GCC" = yes; then
10652 case $host_os in aix4.[012]|aix4.[012].*)
10653 # We only want to do this on AIX 4.2 and lower, the check
10654 # below for broken collect2 doesn't work under 4.3+
10655 collect2name=`${CC} -print-prog-name=collect2`
10656 if test -f "$collect2name" &&
10657 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10658 then
10659 # We have reworked collect2
10660 :
10661 else
10662 # We have old collect2
10663 hardcode_direct=unsupported
10664 # It fails to find uninstalled libraries when the uninstalled
10665 # path is not listed in the libpath. Setting hardcode_minus_L
10666 # to unsupported forces relinking
10667 hardcode_minus_L=yes
10668 hardcode_libdir_flag_spec='-L$libdir'
10669 hardcode_libdir_separator=
10670 fi
10671 ;;
10672 esac
10673 shared_flag='-shared'
10674 if test "$aix_use_runtimelinking" = yes; then
10675 shared_flag="$shared_flag "'${wl}-G'
10676 fi
10677 else
10678 # not using gcc
10679 if test "$host_cpu" = ia64; then
10680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10681 # chokes on -Wl,-G. The following line is correct:
10682 shared_flag='-G'
10683 else
10684 if test "$aix_use_runtimelinking" = yes; then
10685 shared_flag='${wl}-G'
10686 else
10687 shared_flag='${wl}-bM:SRE'
10688 fi
10689 fi
10690 fi
10691
10692 export_dynamic_flag_spec='${wl}-bexpall'
10693 # It seems that -bexpall does not export symbols beginning with
10694 # underscore (_), so it is better to generate a list of symbols to export.
10695 always_export_symbols=yes
10696 if test "$aix_use_runtimelinking" = yes; then
10697 # Warning - without using the other runtime loading flags (-brtl),
10698 # -berok will link without error, but may produce a broken library.
10699 allow_undefined_flag='-berok'
10700 # Determine the default libpath from the value encoded in an
10701 # empty executable.
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704
10705 int
10706 main ()
10707 {
10708
10709 ;
10710 return 0;
10711 }
10712 _ACEOF
10713 if ac_fn_c_try_link "$LINENO"; then :
10714
10715 lt_aix_libpath_sed='
10716 /Import File Strings/,/^$/ {
10717 /^0/ {
10718 s/^0 *\(.*\)$/\1/
10719 p
10720 }
10721 }'
10722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10723 # Check for a 64-bit object if we didn't find anything.
10724 if test -z "$aix_libpath"; then
10725 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10726 fi
10727 fi
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10731
10732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10733 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"
10734 else
10735 if test "$host_cpu" = ia64; then
10736 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10737 allow_undefined_flag="-z nodefs"
10738 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"
10739 else
10740 # Determine the default libpath from the value encoded in an
10741 # empty executable.
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744
10745 int
10746 main ()
10747 {
10748
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"; then :
10754
10755 lt_aix_libpath_sed='
10756 /Import File Strings/,/^$/ {
10757 /^0/ {
10758 s/^0 *\(.*\)$/\1/
10759 p
10760 }
10761 }'
10762 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10763 # Check for a 64-bit object if we didn't find anything.
10764 if test -z "$aix_libpath"; then
10765 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10766 fi
10767 fi
10768 rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10771
10772 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10773 # Warning - without using the other run time loading flags,
10774 # -berok will link without error, but may produce a broken library.
10775 no_undefined_flag=' ${wl}-bernotok'
10776 allow_undefined_flag=' ${wl}-berok'
10777 if test "$with_gnu_ld" = yes; then
10778 # We only use this code for GNU lds that support --whole-archive.
10779 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10780 else
10781 # Exported symbols can be pulled into shared objects from archives
10782 whole_archive_flag_spec='$convenience'
10783 fi
10784 archive_cmds_need_lc=yes
10785 # This is similar to how AIX traditionally builds its shared libraries.
10786 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'
10787 fi
10788 fi
10789 ;;
10790
10791 amigaos*)
10792 case $host_cpu in
10793 powerpc)
10794 # see comment about AmigaOS4 .so support
10795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10796 archive_expsym_cmds=''
10797 ;;
10798 m68k)
10799 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)'
10800 hardcode_libdir_flag_spec='-L$libdir'
10801 hardcode_minus_L=yes
10802 ;;
10803 esac
10804 ;;
10805
10806 bsdi[45]*)
10807 export_dynamic_flag_spec=-rdynamic
10808 ;;
10809
10810 cygwin* | mingw* | pw32* | cegcc*)
10811 # When not using gcc, we currently assume that we are using
10812 # Microsoft Visual C++.
10813 # hardcode_libdir_flag_spec is actually meaningless, as there is
10814 # no search path for DLLs.
10815 hardcode_libdir_flag_spec=' '
10816 allow_undefined_flag=unsupported
10817 # Tell ltmain to make .lib files, not .a files.
10818 libext=lib
10819 # Tell ltmain to make .dll files, not .so files.
10820 shrext_cmds=".dll"
10821 # FIXME: Setting linknames here is a bad hack.
10822 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10823 # The linker will automatically build a .lib file if we build a DLL.
10824 old_archive_from_new_cmds='true'
10825 # FIXME: Should let the user specify the lib program.
10826 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10827 fix_srcfile_path='`cygpath -w "$srcfile"`'
10828 enable_shared_with_static_runtimes=yes
10829 ;;
10830
10831 darwin* | rhapsody*)
10832
10833
10834 archive_cmds_need_lc=no
10835 hardcode_direct=no
10836 hardcode_automatic=yes
10837 hardcode_shlibpath_var=unsupported
10838 if test "$lt_cv_ld_force_load" = "yes"; then
10839 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\"`'
10840 else
10841 whole_archive_flag_spec=''
10842 fi
10843 link_all_deplibs=yes
10844 allow_undefined_flag="$_lt_dar_allow_undefined"
10845 case $cc_basename in
10846 ifort*) _lt_dar_can_shared=yes ;;
10847 *) _lt_dar_can_shared=$GCC ;;
10848 esac
10849 if test "$_lt_dar_can_shared" = "yes"; then
10850 output_verbose_link_cmd=func_echo_all
10851 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10852 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10853 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}"
10854 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}"
10855
10856 else
10857 ld_shlibs=no
10858 fi
10859
10860 ;;
10861
10862 dgux*)
10863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10864 hardcode_libdir_flag_spec='-L$libdir'
10865 hardcode_shlibpath_var=no
10866 ;;
10867
10868 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10869 # support. Future versions do this automatically, but an explicit c++rt0.o
10870 # does not break anything, and helps significantly (at the cost of a little
10871 # extra space).
10872 freebsd2.2*)
10873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10874 hardcode_libdir_flag_spec='-R$libdir'
10875 hardcode_direct=yes
10876 hardcode_shlibpath_var=no
10877 ;;
10878
10879 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10880 freebsd2.*)
10881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10882 hardcode_direct=yes
10883 hardcode_minus_L=yes
10884 hardcode_shlibpath_var=no
10885 ;;
10886
10887 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10888 freebsd* | dragonfly*)
10889 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10890 hardcode_libdir_flag_spec='-R$libdir'
10891 hardcode_direct=yes
10892 hardcode_shlibpath_var=no
10893 ;;
10894
10895 hpux9*)
10896 if test "$GCC" = yes; then
10897 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'
10898 else
10899 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'
10900 fi
10901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10902 hardcode_libdir_separator=:
10903 hardcode_direct=yes
10904
10905 # hardcode_minus_L: Not really in the search PATH,
10906 # but as the default location of the library.
10907 hardcode_minus_L=yes
10908 export_dynamic_flag_spec='${wl}-E'
10909 ;;
10910
10911 hpux10*)
10912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10913 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10914 else
10915 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10916 fi
10917 if test "$with_gnu_ld" = no; then
10918 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10919 hardcode_libdir_flag_spec_ld='+b $libdir'
10920 hardcode_libdir_separator=:
10921 hardcode_direct=yes
10922 hardcode_direct_absolute=yes
10923 export_dynamic_flag_spec='${wl}-E'
10924 # hardcode_minus_L: Not really in the search PATH,
10925 # but as the default location of the library.
10926 hardcode_minus_L=yes
10927 fi
10928 ;;
10929
10930 hpux11*)
10931 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10932 case $host_cpu in
10933 hppa*64*)
10934 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 ;;
10936 ia64*)
10937 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10938 ;;
10939 *)
10940 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10941 ;;
10942 esac
10943 else
10944 case $host_cpu in
10945 hppa*64*)
10946 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 ;;
10948 ia64*)
10949 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10950 ;;
10951 *)
10952
10953 # Older versions of the 11.00 compiler do not understand -b yet
10954 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10956 $as_echo_n "checking if $CC understands -b... " >&6; }
10957 if ${lt_cv_prog_compiler__b+:} false; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 lt_cv_prog_compiler__b=no
10961 save_LDFLAGS="$LDFLAGS"
10962 LDFLAGS="$LDFLAGS -b"
10963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10965 # The linker can only warn and ignore the option if not recognized
10966 # So say no if there are warnings
10967 if test -s conftest.err; then
10968 # Append any errors to the config.log.
10969 cat conftest.err 1>&5
10970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10972 if diff conftest.exp conftest.er2 >/dev/null; then
10973 lt_cv_prog_compiler__b=yes
10974 fi
10975 else
10976 lt_cv_prog_compiler__b=yes
10977 fi
10978 fi
10979 $RM -r conftest*
10980 LDFLAGS="$save_LDFLAGS"
10981
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10984 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10985
10986 if test x"$lt_cv_prog_compiler__b" = xyes; then
10987 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10988 else
10989 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10990 fi
10991
10992 ;;
10993 esac
10994 fi
10995 if test "$with_gnu_ld" = no; then
10996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10997 hardcode_libdir_separator=:
10998
10999 case $host_cpu in
11000 hppa*64*|ia64*)
11001 hardcode_direct=no
11002 hardcode_shlibpath_var=no
11003 ;;
11004 *)
11005 hardcode_direct=yes
11006 hardcode_direct_absolute=yes
11007 export_dynamic_flag_spec='${wl}-E'
11008
11009 # hardcode_minus_L: Not really in the search PATH,
11010 # but as the default location of the library.
11011 hardcode_minus_L=yes
11012 ;;
11013 esac
11014 fi
11015 ;;
11016
11017 irix5* | irix6* | nonstopux*)
11018 if test "$GCC" = yes; then
11019 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'
11020 # Try to use the -exported_symbol ld option, if it does not
11021 # work, assume that -exports_file does not work either and
11022 # implicitly export all symbols.
11023 save_LDFLAGS="$LDFLAGS"
11024 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 int foo(void) {}
11028 _ACEOF
11029 if ac_fn_c_try_link "$LINENO"; then :
11030 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'
11031
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext \
11034 conftest$ac_exeext conftest.$ac_ext
11035 LDFLAGS="$save_LDFLAGS"
11036 else
11037 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'
11038 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'
11039 fi
11040 archive_cmds_need_lc='no'
11041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11042 hardcode_libdir_separator=:
11043 inherit_rpath=yes
11044 link_all_deplibs=yes
11045 ;;
11046
11047 netbsd*)
11048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11050 else
11051 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11052 fi
11053 hardcode_libdir_flag_spec='-R$libdir'
11054 hardcode_direct=yes
11055 hardcode_shlibpath_var=no
11056 ;;
11057
11058 newsos6)
11059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11060 hardcode_direct=yes
11061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11062 hardcode_libdir_separator=:
11063 hardcode_shlibpath_var=no
11064 ;;
11065
11066 *nto* | *qnx*)
11067 ;;
11068
11069 openbsd*)
11070 if test -f /usr/libexec/ld.so; then
11071 hardcode_direct=yes
11072 hardcode_shlibpath_var=no
11073 hardcode_direct_absolute=yes
11074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11076 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11078 export_dynamic_flag_spec='${wl}-E'
11079 else
11080 case $host_os in
11081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11083 hardcode_libdir_flag_spec='-R$libdir'
11084 ;;
11085 *)
11086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11088 ;;
11089 esac
11090 fi
11091 else
11092 ld_shlibs=no
11093 fi
11094 ;;
11095
11096 os2*)
11097 hardcode_libdir_flag_spec='-L$libdir'
11098 hardcode_minus_L=yes
11099 allow_undefined_flag=unsupported
11100 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'
11101 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11102 ;;
11103
11104 osf3*)
11105 if test "$GCC" = yes; then
11106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11107 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'
11108 else
11109 allow_undefined_flag=' -expect_unresolved \*'
11110 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'
11111 fi
11112 archive_cmds_need_lc='no'
11113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11114 hardcode_libdir_separator=:
11115 ;;
11116
11117 osf4* | osf5*) # as osf3* with the addition of -msym flag
11118 if test "$GCC" = yes; then
11119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11120 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'
11121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11122 else
11123 allow_undefined_flag=' -expect_unresolved \*'
11124 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'
11125 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~
11126 $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'
11127
11128 # Both c and cxx compiler support -rpath directly
11129 hardcode_libdir_flag_spec='-rpath $libdir'
11130 fi
11131 archive_cmds_need_lc='no'
11132 hardcode_libdir_separator=:
11133 ;;
11134
11135 solaris*)
11136 no_undefined_flag=' -z defs'
11137 if test "$GCC" = yes; then
11138 wlarc='${wl}'
11139 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11141 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11142 else
11143 case `$CC -V 2>&1` in
11144 *"Compilers 5.0"*)
11145 wlarc=''
11146 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11148 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11149 ;;
11150 *)
11151 wlarc='${wl}'
11152 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11154 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11155 ;;
11156 esac
11157 fi
11158 hardcode_libdir_flag_spec='-R$libdir'
11159 hardcode_shlibpath_var=no
11160 case $host_os in
11161 solaris2.[0-5] | solaris2.[0-5].*) ;;
11162 *)
11163 # The compiler driver will combine and reorder linker options,
11164 # but understands `-z linker_flag'. GCC discards it without `$wl',
11165 # but is careful enough not to reorder.
11166 # Supported since Solaris 2.6 (maybe 2.5.1?)
11167 if test "$GCC" = yes; then
11168 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11169 else
11170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11171 fi
11172 ;;
11173 esac
11174 link_all_deplibs=yes
11175 ;;
11176
11177 sunos4*)
11178 if test "x$host_vendor" = xsequent; then
11179 # Use $CC to link under sequent, because it throws in some extra .o
11180 # files that make .init and .fini sections work.
11181 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11182 else
11183 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11184 fi
11185 hardcode_libdir_flag_spec='-L$libdir'
11186 hardcode_direct=yes
11187 hardcode_minus_L=yes
11188 hardcode_shlibpath_var=no
11189 ;;
11190
11191 sysv4)
11192 case $host_vendor in
11193 sni)
11194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11195 hardcode_direct=yes # is this really true???
11196 ;;
11197 siemens)
11198 ## LD is ld it makes a PLAMLIB
11199 ## CC just makes a GrossModule.
11200 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11201 reload_cmds='$CC -r -o $output$reload_objs'
11202 hardcode_direct=no
11203 ;;
11204 motorola)
11205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11206 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11207 ;;
11208 esac
11209 runpath_var='LD_RUN_PATH'
11210 hardcode_shlibpath_var=no
11211 ;;
11212
11213 sysv4.3*)
11214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11215 hardcode_shlibpath_var=no
11216 export_dynamic_flag_spec='-Bexport'
11217 ;;
11218
11219 sysv4*MP*)
11220 if test -d /usr/nec; then
11221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11222 hardcode_shlibpath_var=no
11223 runpath_var=LD_RUN_PATH
11224 hardcode_runpath_var=yes
11225 ld_shlibs=yes
11226 fi
11227 ;;
11228
11229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11230 no_undefined_flag='${wl}-z,text'
11231 archive_cmds_need_lc=no
11232 hardcode_shlibpath_var=no
11233 runpath_var='LD_RUN_PATH'
11234
11235 if test "$GCC" = yes; then
11236 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11237 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11238 else
11239 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11240 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11241 fi
11242 ;;
11243
11244 sysv5* | sco3.2v5* | sco5v6*)
11245 # Note: We can NOT use -z defs as we might desire, because we do not
11246 # link with -lc, and that would cause any symbols used from libc to
11247 # always be unresolved, which means just about no library would
11248 # ever link correctly. If we're not using GNU ld we use -z text
11249 # though, which does catch some bad symbols but isn't as heavy-handed
11250 # as -z defs.
11251 no_undefined_flag='${wl}-z,text'
11252 allow_undefined_flag='${wl}-z,nodefs'
11253 archive_cmds_need_lc=no
11254 hardcode_shlibpath_var=no
11255 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11256 hardcode_libdir_separator=':'
11257 link_all_deplibs=yes
11258 export_dynamic_flag_spec='${wl}-Bexport'
11259 runpath_var='LD_RUN_PATH'
11260
11261 if test "$GCC" = yes; then
11262 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11263 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11264 else
11265 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11266 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11267 fi
11268 ;;
11269
11270 uts4*)
11271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11272 hardcode_libdir_flag_spec='-L$libdir'
11273 hardcode_shlibpath_var=no
11274 ;;
11275
11276 *)
11277 ld_shlibs=no
11278 ;;
11279 esac
11280
11281 if test x$host_vendor = xsni; then
11282 case $host in
11283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11284 export_dynamic_flag_spec='${wl}-Blargedynsym'
11285 ;;
11286 esac
11287 fi
11288 fi
11289
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11291 $as_echo "$ld_shlibs" >&6; }
11292 test "$ld_shlibs" = no && can_build_shared=no
11293
11294 with_gnu_ld=$with_gnu_ld
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310 #
11311 # Do we need to explicitly link libc?
11312 #
11313 case "x$archive_cmds_need_lc" in
11314 x|xyes)
11315 # Assume -lc should be added
11316 archive_cmds_need_lc=yes
11317
11318 if test "$enable_shared" = yes && test "$GCC" = yes; then
11319 case $archive_cmds in
11320 *'~'*)
11321 # FIXME: we may have to deal with multi-command sequences.
11322 ;;
11323 '$CC '*)
11324 # Test whether the compiler implicitly links with -lc since on some
11325 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11326 # to ld, don't add -lc before -lgcc.
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11328 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11329 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 $RM conftest*
11333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11334
11335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11336 (eval $ac_compile) 2>&5
11337 ac_status=$?
11338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339 test $ac_status = 0; } 2>conftest.err; then
11340 soname=conftest
11341 lib=conftest
11342 libobjs=conftest.$ac_objext
11343 deplibs=
11344 wl=$lt_prog_compiler_wl
11345 pic_flag=$lt_prog_compiler_pic
11346 compiler_flags=-v
11347 linker_flags=-v
11348 verstring=
11349 output_objdir=.
11350 libname=conftest
11351 lt_save_allow_undefined_flag=$allow_undefined_flag
11352 allow_undefined_flag=
11353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11354 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11355 ac_status=$?
11356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11357 test $ac_status = 0; }
11358 then
11359 lt_cv_archive_cmds_need_lc=no
11360 else
11361 lt_cv_archive_cmds_need_lc=yes
11362 fi
11363 allow_undefined_flag=$lt_save_allow_undefined_flag
11364 else
11365 cat conftest.err 1>&5
11366 fi
11367 $RM conftest*
11368
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11371 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11372 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11373 ;;
11374 esac
11375 fi
11376 ;;
11377 esac
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11536 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11537
11538 if test "$GCC" = yes; then
11539 case $host_os in
11540 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11541 *) lt_awk_arg="/^libraries:/" ;;
11542 esac
11543 case $host_os in
11544 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11545 *) lt_sed_strip_eq="s,=/,/,g" ;;
11546 esac
11547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11548 case $lt_search_path_spec in
11549 *\;*)
11550 # if the path contains ";" then we assume it to be the separator
11551 # otherwise default to the standard path separator (i.e. ":") - it is
11552 # assumed that no part of a normal pathname contains ";" but that should
11553 # okay in the real world where ";" in dirpaths is itself problematic.
11554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11555 ;;
11556 *)
11557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11558 ;;
11559 esac
11560 # Ok, now we have the path, separated by spaces, we can step through it
11561 # and add multilib dir if necessary.
11562 lt_tmp_lt_search_path_spec=
11563 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11564 for lt_sys_path in $lt_search_path_spec; do
11565 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11567 else
11568 test -d "$lt_sys_path" && \
11569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11570 fi
11571 done
11572 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11573 BEGIN {RS=" "; FS="/|\n";} {
11574 lt_foo="";
11575 lt_count=0;
11576 for (lt_i = NF; lt_i > 0; lt_i--) {
11577 if ($lt_i != "" && $lt_i != ".") {
11578 if ($lt_i == "..") {
11579 lt_count++;
11580 } else {
11581 if (lt_count == 0) {
11582 lt_foo="/" $lt_i lt_foo;
11583 } else {
11584 lt_count--;
11585 }
11586 }
11587 }
11588 }
11589 if (lt_foo != "") { lt_freq[lt_foo]++; }
11590 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11591 }'`
11592 # AWK program above erroneously prepends '/' to C:/dos/paths
11593 # for these hosts.
11594 case $host_os in
11595 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11596 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11597 esac
11598 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11599 else
11600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11601 fi
11602 library_names_spec=
11603 libname_spec='lib$name'
11604 soname_spec=
11605 shrext_cmds=".so"
11606 postinstall_cmds=
11607 postuninstall_cmds=
11608 finish_cmds=
11609 finish_eval=
11610 shlibpath_var=
11611 shlibpath_overrides_runpath=unknown
11612 version_type=none
11613 dynamic_linker="$host_os ld.so"
11614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11615 need_lib_prefix=unknown
11616 hardcode_into_libs=no
11617
11618 # when you set need_version to no, make sure it does not cause -set_version
11619 # flags to be left without arguments
11620 need_version=unknown
11621
11622 case $host_os in
11623 aix3*)
11624 version_type=linux
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11626 shlibpath_var=LIBPATH
11627
11628 # AIX 3 has no versioning support, so we append a major version to the name.
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 ;;
11631
11632 aix[4-9]*)
11633 version_type=linux
11634 need_lib_prefix=no
11635 need_version=no
11636 hardcode_into_libs=yes
11637 if test "$host_cpu" = ia64; then
11638 # AIX 5 supports IA64
11639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 else
11642 # With GCC up to 2.95.x, collect2 would create an import file
11643 # for dependence libraries. The import file would start with
11644 # the line `#! .'. This would cause the generated library to
11645 # depend on `.', always an invalid library. This was fixed in
11646 # development snapshots of GCC prior to 3.0.
11647 case $host_os in
11648 aix4 | aix4.[01] | aix4.[01].*)
11649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11650 echo ' yes '
11651 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11652 :
11653 else
11654 can_build_shared=no
11655 fi
11656 ;;
11657 esac
11658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11659 # soname into executable. Probably we can add versioning support to
11660 # collect2, so additional links can be useful in future.
11661 if test "$aix_use_runtimelinking" = yes; then
11662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11663 # instead of lib<name>.a to let people know that these are not
11664 # typical AIX shared libraries.
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666 else
11667 # We preserve .a as extension for shared libraries through AIX4.2
11668 # and later when we are not doing run time linking.
11669 library_names_spec='${libname}${release}.a $libname.a'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 fi
11672 shlibpath_var=LIBPATH
11673 fi
11674 ;;
11675
11676 amigaos*)
11677 case $host_cpu in
11678 powerpc)
11679 # Since July 2007 AmigaOS4 officially supports .so libraries.
11680 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 ;;
11683 m68k)
11684 library_names_spec='$libname.ixlibrary $libname.a'
11685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11686 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'
11687 ;;
11688 esac
11689 ;;
11690
11691 beos*)
11692 library_names_spec='${libname}${shared_ext}'
11693 dynamic_linker="$host_os ld.so"
11694 shlibpath_var=LIBRARY_PATH
11695 ;;
11696
11697 bsdi[45]*)
11698 version_type=linux
11699 need_version=no
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11706 # the default ld.so.conf also contains /usr/contrib/lib and
11707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11708 # libtool to hard-code these into programs
11709 ;;
11710
11711 cygwin* | mingw* | pw32* | cegcc*)
11712 version_type=windows
11713 shrext_cmds=".dll"
11714 need_version=no
11715 need_lib_prefix=no
11716
11717 case $GCC,$host_os in
11718 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11719 library_names_spec='$libname.dll.a'
11720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11721 postinstall_cmds='base_file=`basename \${file}`~
11722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11723 dldir=$destdir/`dirname \$dlpath`~
11724 test -d \$dldir || mkdir -p \$dldir~
11725 $install_prog $dir/$dlname \$dldir/$dlname~
11726 chmod a+x \$dldir/$dlname~
11727 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11728 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11729 fi'
11730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11731 dlpath=$dir/\$dldll~
11732 $RM \$dlpath'
11733 shlibpath_overrides_runpath=yes
11734
11735 case $host_os in
11736 cygwin*)
11737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11739
11740 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11741 ;;
11742 mingw* | cegcc*)
11743 # MinGW DLLs use traditional 'lib' prefix
11744 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11745 ;;
11746 pw32*)
11747 # pw32 DLLs use 'pw' prefix rather than 'lib'
11748 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11749 ;;
11750 esac
11751 ;;
11752
11753 *)
11754 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11755 ;;
11756 esac
11757 dynamic_linker='Win32 ld.exe'
11758 # FIXME: first we should search . and the directory the executable is in
11759 shlibpath_var=PATH
11760 ;;
11761
11762 darwin* | rhapsody*)
11763 dynamic_linker="$host_os dyld"
11764 version_type=darwin
11765 need_lib_prefix=no
11766 need_version=no
11767 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11768 soname_spec='${libname}${release}${major}$shared_ext'
11769 shlibpath_overrides_runpath=yes
11770 shlibpath_var=DYLD_LIBRARY_PATH
11771 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11772
11773 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11774 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11775 ;;
11776
11777 dgux*)
11778 version_type=linux
11779 need_lib_prefix=no
11780 need_version=no
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11782 soname_spec='${libname}${release}${shared_ext}$major'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 ;;
11785
11786 freebsd* | dragonfly*)
11787 # DragonFly does not have aout. When/if they implement a new
11788 # versioning mechanism, adjust this.
11789 if test -x /usr/bin/objformat; then
11790 objformat=`/usr/bin/objformat`
11791 else
11792 case $host_os in
11793 freebsd[23].*) objformat=aout ;;
11794 *) objformat=elf ;;
11795 esac
11796 fi
11797 version_type=freebsd-$objformat
11798 case $version_type in
11799 freebsd-elf*)
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11801 need_version=no
11802 need_lib_prefix=no
11803 ;;
11804 freebsd-*)
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11806 need_version=yes
11807 ;;
11808 esac
11809 shlibpath_var=LD_LIBRARY_PATH
11810 case $host_os in
11811 freebsd2.*)
11812 shlibpath_overrides_runpath=yes
11813 ;;
11814 freebsd3.[01]* | freebsdelf3.[01]*)
11815 shlibpath_overrides_runpath=yes
11816 hardcode_into_libs=yes
11817 ;;
11818 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11819 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11820 shlibpath_overrides_runpath=no
11821 hardcode_into_libs=yes
11822 ;;
11823 *) # from 4.6 on, and DragonFly
11824 shlibpath_overrides_runpath=yes
11825 hardcode_into_libs=yes
11826 ;;
11827 esac
11828 ;;
11829
11830 haiku*)
11831 version_type=linux
11832 need_lib_prefix=no
11833 need_version=no
11834 dynamic_linker="$host_os runtime_loader"
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11836 soname_spec='${libname}${release}${shared_ext}$major'
11837 shlibpath_var=LIBRARY_PATH
11838 shlibpath_overrides_runpath=yes
11839 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11840 hardcode_into_libs=yes
11841 ;;
11842
11843 hpux9* | hpux10* | hpux11*)
11844 # Give a soname corresponding to the major version so that dld.sl refuses to
11845 # link against other versions.
11846 version_type=sunos
11847 need_lib_prefix=no
11848 need_version=no
11849 case $host_cpu in
11850 ia64*)
11851 shrext_cmds='.so'
11852 hardcode_into_libs=yes
11853 dynamic_linker="$host_os dld.so"
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11857 soname_spec='${libname}${release}${shared_ext}$major'
11858 if test "X$HPUX_IA64_MODE" = X32; then
11859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11860 else
11861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11862 fi
11863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11864 ;;
11865 hppa*64*)
11866 shrext_cmds='.sl'
11867 hardcode_into_libs=yes
11868 dynamic_linker="$host_os dld.sl"
11869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872 soname_spec='${libname}${release}${shared_ext}$major'
11873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11875 ;;
11876 *)
11877 shrext_cmds='.sl'
11878 dynamic_linker="$host_os dld.sl"
11879 shlibpath_var=SHLIB_PATH
11880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882 soname_spec='${libname}${release}${shared_ext}$major'
11883 ;;
11884 esac
11885 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11886 postinstall_cmds='chmod 555 $lib'
11887 # or fails outright, so override atomically:
11888 install_override_mode=555
11889 ;;
11890
11891 interix[3-9]*)
11892 version_type=linux
11893 need_lib_prefix=no
11894 need_version=no
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11896 soname_spec='${libname}${release}${shared_ext}$major'
11897 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=no
11900 hardcode_into_libs=yes
11901 ;;
11902
11903 irix5* | irix6* | nonstopux*)
11904 case $host_os in
11905 nonstopux*) version_type=nonstopux ;;
11906 *)
11907 if test "$lt_cv_prog_gnu_ld" = yes; then
11908 version_type=linux
11909 else
11910 version_type=irix
11911 fi ;;
11912 esac
11913 need_lib_prefix=no
11914 need_version=no
11915 soname_spec='${libname}${release}${shared_ext}$major'
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11917 case $host_os in
11918 irix5* | nonstopux*)
11919 libsuff= shlibsuff=
11920 ;;
11921 *)
11922 case $LD in # libtool.m4 will add one of these switches to LD
11923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11924 libsuff= shlibsuff= libmagic=32-bit;;
11925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11926 libsuff=32 shlibsuff=N32 libmagic=N32;;
11927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11928 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11929 *) libsuff= shlibsuff= libmagic=never-match;;
11930 esac
11931 ;;
11932 esac
11933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11934 shlibpath_overrides_runpath=no
11935 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11936 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11937 hardcode_into_libs=yes
11938 ;;
11939
11940 # No shared lib support for Linux oldld, aout, or coff.
11941 linux*oldld* | linux*aout* | linux*coff*)
11942 dynamic_linker=no
11943 ;;
11944
11945 # This must be Linux ELF.
11946 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11947 version_type=linux
11948 need_lib_prefix=no
11949 need_version=no
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951 soname_spec='${libname}${release}${shared_ext}$major'
11952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath=no
11955
11956 # Some binutils ld are patched to set DT_RUNPATH
11957 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 lt_cv_shlibpath_overrides_runpath=no
11961 save_LDFLAGS=$LDFLAGS
11962 save_libdir=$libdir
11963 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11964 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967
11968 int
11969 main ()
11970 {
11971
11972 ;
11973 return 0;
11974 }
11975 _ACEOF
11976 if ac_fn_c_try_link "$LINENO"; then :
11977 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11978 lt_cv_shlibpath_overrides_runpath=yes
11979 fi
11980 fi
11981 rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983 LDFLAGS=$save_LDFLAGS
11984 libdir=$save_libdir
11985
11986 fi
11987
11988 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11989
11990 # This implies no fast_install, which is unacceptable.
11991 # Some rework will be needed to allow for fast_install
11992 # before this can be enabled.
11993 hardcode_into_libs=yes
11994
11995 # Append ld.so.conf contents to the search path
11996 if test -f /etc/ld.so.conf; then
11997 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' ' '`
11998 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11999 fi
12000
12001 # We used to test for /lib/ld.so.1 and disable shared libraries on
12002 # powerpc, because MkLinux only supported shared libraries with the
12003 # GNU dynamic linker. Since this was broken with cross compilers,
12004 # most powerpc-linux boxes support dynamic linking these days and
12005 # people can always --disable-shared, the test was removed, and we
12006 # assume the GNU/Linux dynamic linker is in use.
12007 dynamic_linker='GNU/Linux ld.so'
12008 ;;
12009
12010 netbsd*)
12011 version_type=sunos
12012 need_lib_prefix=no
12013 need_version=no
12014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12017 dynamic_linker='NetBSD (a.out) ld.so'
12018 else
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12020 soname_spec='${libname}${release}${shared_ext}$major'
12021 dynamic_linker='NetBSD ld.elf_so'
12022 fi
12023 shlibpath_var=LD_LIBRARY_PATH
12024 shlibpath_overrides_runpath=yes
12025 hardcode_into_libs=yes
12026 ;;
12027
12028 newsos6)
12029 version_type=linux
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=yes
12033 ;;
12034
12035 *nto* | *qnx*)
12036 version_type=qnx
12037 need_lib_prefix=no
12038 need_version=no
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040 soname_spec='${libname}${release}${shared_ext}$major'
12041 shlibpath_var=LD_LIBRARY_PATH
12042 shlibpath_overrides_runpath=no
12043 hardcode_into_libs=yes
12044 dynamic_linker='ldqnx.so'
12045 ;;
12046
12047 openbsd*)
12048 version_type=sunos
12049 sys_lib_dlsearch_path_spec="/usr/lib"
12050 need_lib_prefix=no
12051 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12052 case $host_os in
12053 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12054 *) need_version=no ;;
12055 esac
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12060 case $host_os in
12061 openbsd2.[89] | openbsd2.[89].*)
12062 shlibpath_overrides_runpath=no
12063 ;;
12064 *)
12065 shlibpath_overrides_runpath=yes
12066 ;;
12067 esac
12068 else
12069 shlibpath_overrides_runpath=yes
12070 fi
12071 ;;
12072
12073 os2*)
12074 libname_spec='$name'
12075 shrext_cmds=".dll"
12076 need_lib_prefix=no
12077 library_names_spec='$libname${shared_ext} $libname.a'
12078 dynamic_linker='OS/2 ld.exe'
12079 shlibpath_var=LIBPATH
12080 ;;
12081
12082 osf3* | osf4* | osf5*)
12083 version_type=osf
12084 need_lib_prefix=no
12085 need_version=no
12086 soname_spec='${libname}${release}${shared_ext}$major'
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12091 ;;
12092
12093 rdos*)
12094 dynamic_linker=no
12095 ;;
12096
12097 solaris*)
12098 version_type=linux
12099 need_lib_prefix=no
12100 need_version=no
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102 soname_spec='${libname}${release}${shared_ext}$major'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 shlibpath_overrides_runpath=yes
12105 hardcode_into_libs=yes
12106 # ldd complains unless libraries are executable
12107 postinstall_cmds='chmod +x $lib'
12108 ;;
12109
12110 sunos4*)
12111 version_type=sunos
12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12113 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 shlibpath_overrides_runpath=yes
12116 if test "$with_gnu_ld" = yes; then
12117 need_lib_prefix=no
12118 fi
12119 need_version=yes
12120 ;;
12121
12122 sysv4 | sysv4.3*)
12123 version_type=linux
12124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12125 soname_spec='${libname}${release}${shared_ext}$major'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 case $host_vendor in
12128 sni)
12129 shlibpath_overrides_runpath=no
12130 need_lib_prefix=no
12131 runpath_var=LD_RUN_PATH
12132 ;;
12133 siemens)
12134 need_lib_prefix=no
12135 ;;
12136 motorola)
12137 need_lib_prefix=no
12138 need_version=no
12139 shlibpath_overrides_runpath=no
12140 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12141 ;;
12142 esac
12143 ;;
12144
12145 sysv4*MP*)
12146 if test -d /usr/nec ;then
12147 version_type=linux
12148 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12149 soname_spec='$libname${shared_ext}.$major'
12150 shlibpath_var=LD_LIBRARY_PATH
12151 fi
12152 ;;
12153
12154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12155 version_type=freebsd-elf
12156 need_lib_prefix=no
12157 need_version=no
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 shlibpath_overrides_runpath=yes
12162 hardcode_into_libs=yes
12163 if test "$with_gnu_ld" = yes; then
12164 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12165 else
12166 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12167 case $host_os in
12168 sco3.2v5*)
12169 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12170 ;;
12171 esac
12172 fi
12173 sys_lib_dlsearch_path_spec='/usr/lib'
12174 ;;
12175
12176 tpf*)
12177 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12178 version_type=linux
12179 need_lib_prefix=no
12180 need_version=no
12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12182 shlibpath_var=LD_LIBRARY_PATH
12183 shlibpath_overrides_runpath=no
12184 hardcode_into_libs=yes
12185 ;;
12186
12187 uts4*)
12188 version_type=linux
12189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12190 soname_spec='${libname}${release}${shared_ext}$major'
12191 shlibpath_var=LD_LIBRARY_PATH
12192 ;;
12193
12194 *)
12195 dynamic_linker=no
12196 ;;
12197 esac
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12199 $as_echo "$dynamic_linker" >&6; }
12200 test "$dynamic_linker" = no && can_build_shared=no
12201
12202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12203 if test "$GCC" = yes; then
12204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12205 fi
12206
12207 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12208 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12209 fi
12210 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12211 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12212 fi
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12306 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12307 hardcode_action=
12308 if test -n "$hardcode_libdir_flag_spec" ||
12309 test -n "$runpath_var" ||
12310 test "X$hardcode_automatic" = "Xyes" ; then
12311
12312 # We can hardcode non-existent directories.
12313 if test "$hardcode_direct" != no &&
12314 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12315 # have to relink, otherwise we might link with an installed library
12316 # when we should be linking with a yet-to-be-installed one
12317 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12318 test "$hardcode_minus_L" != no; then
12319 # Linking always hardcodes the temporary library directory.
12320 hardcode_action=relink
12321 else
12322 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12323 hardcode_action=immediate
12324 fi
12325 else
12326 # We cannot hardcode anything, or else we can only hardcode existing
12327 # directories.
12328 hardcode_action=unsupported
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12331 $as_echo "$hardcode_action" >&6; }
12332
12333 if test "$hardcode_action" = relink ||
12334 test "$inherit_rpath" = yes; then
12335 # Fast installation is not supported
12336 enable_fast_install=no
12337 elif test "$shlibpath_overrides_runpath" = yes ||
12338 test "$enable_shared" = no; then
12339 # Fast installation is not necessary
12340 enable_fast_install=needless
12341 fi
12342
12343
12344
12345
12346
12347
12348 if test "x$enable_dlopen" != xyes; then
12349 enable_dlopen=unknown
12350 enable_dlopen_self=unknown
12351 enable_dlopen_self_static=unknown
12352 else
12353 lt_cv_dlopen=no
12354 lt_cv_dlopen_libs=
12355
12356 case $host_os in
12357 beos*)
12358 lt_cv_dlopen="load_add_on"
12359 lt_cv_dlopen_libs=
12360 lt_cv_dlopen_self=yes
12361 ;;
12362
12363 mingw* | pw32* | cegcc*)
12364 lt_cv_dlopen="LoadLibrary"
12365 lt_cv_dlopen_libs=
12366 ;;
12367
12368 cygwin*)
12369 lt_cv_dlopen="dlopen"
12370 lt_cv_dlopen_libs=
12371 ;;
12372
12373 darwin*)
12374 # if libdl is installed we need to link against it
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12376 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12377 if ${ac_cv_lib_dl_dlopen+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 ac_check_lib_save_LIBS=$LIBS
12381 LIBS="-ldl $LIBS"
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char dlopen ();
12392 int
12393 main ()
12394 {
12395 return dlopen ();
12396 ;
12397 return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"; then :
12401 ac_cv_lib_dl_dlopen=yes
12402 else
12403 ac_cv_lib_dl_dlopen=no
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 LIBS=$ac_check_lib_save_LIBS
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12410 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12411 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12413 else
12414
12415 lt_cv_dlopen="dyld"
12416 lt_cv_dlopen_libs=
12417 lt_cv_dlopen_self=yes
12418
12419 fi
12420
12421 ;;
12422
12423 *)
12424 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12425 if test "x$ac_cv_func_shl_load" = xyes; then :
12426 lt_cv_dlopen="shl_load"
12427 else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12429 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12430 if ${ac_cv_lib_dld_shl_load+:} false; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 ac_check_lib_save_LIBS=$LIBS
12434 LIBS="-ldld $LIBS"
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12437
12438 /* Override any GCC internal prototype to avoid an error.
12439 Use char because int might match the return type of a GCC
12440 builtin and then its argument prototype would still apply. */
12441 #ifdef __cplusplus
12442 extern "C"
12443 #endif
12444 char shl_load ();
12445 int
12446 main ()
12447 {
12448 return shl_load ();
12449 ;
12450 return 0;
12451 }
12452 _ACEOF
12453 if ac_fn_c_try_link "$LINENO"; then :
12454 ac_cv_lib_dld_shl_load=yes
12455 else
12456 ac_cv_lib_dld_shl_load=no
12457 fi
12458 rm -f core conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext conftest.$ac_ext
12460 LIBS=$ac_check_lib_save_LIBS
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12463 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12464 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12465 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12466 else
12467 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12468 if test "x$ac_cv_func_dlopen" = xyes; then :
12469 lt_cv_dlopen="dlopen"
12470 else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12472 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12473 if ${ac_cv_lib_dl_dlopen+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-ldl $LIBS"
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480
12481 /* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
12484 #ifdef __cplusplus
12485 extern "C"
12486 #endif
12487 char dlopen ();
12488 int
12489 main ()
12490 {
12491 return dlopen ();
12492 ;
12493 return 0;
12494 }
12495 _ACEOF
12496 if ac_fn_c_try_link "$LINENO"; then :
12497 ac_cv_lib_dl_dlopen=yes
12498 else
12499 ac_cv_lib_dl_dlopen=no
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12504 fi
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12506 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12507 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12509 else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12511 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12512 if ${ac_cv_lib_svld_dlopen+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 ac_check_lib_save_LIBS=$LIBS
12516 LIBS="-lsvld $LIBS"
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519
12520 /* Override any GCC internal prototype to avoid an error.
12521 Use char because int might match the return type of a GCC
12522 builtin and then its argument prototype would still apply. */
12523 #ifdef __cplusplus
12524 extern "C"
12525 #endif
12526 char dlopen ();
12527 int
12528 main ()
12529 {
12530 return dlopen ();
12531 ;
12532 return 0;
12533 }
12534 _ACEOF
12535 if ac_fn_c_try_link "$LINENO"; then :
12536 ac_cv_lib_svld_dlopen=yes
12537 else
12538 ac_cv_lib_svld_dlopen=no
12539 fi
12540 rm -f core conftest.err conftest.$ac_objext \
12541 conftest$ac_exeext conftest.$ac_ext
12542 LIBS=$ac_check_lib_save_LIBS
12543 fi
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12545 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12546 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12550 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12551 if ${ac_cv_lib_dld_dld_link+:} false; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 ac_check_lib_save_LIBS=$LIBS
12555 LIBS="-ldld $LIBS"
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12562 #ifdef __cplusplus
12563 extern "C"
12564 #endif
12565 char dld_link ();
12566 int
12567 main ()
12568 {
12569 return dld_link ();
12570 ;
12571 return 0;
12572 }
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575 ac_cv_lib_dld_dld_link=yes
12576 else
12577 ac_cv_lib_dld_dld_link=no
12578 fi
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12584 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12585 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12586 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12587 fi
12588
12589
12590 fi
12591
12592
12593 fi
12594
12595
12596 fi
12597
12598
12599 fi
12600
12601
12602 fi
12603
12604 ;;
12605 esac
12606
12607 if test "x$lt_cv_dlopen" != xno; then
12608 enable_dlopen=yes
12609 else
12610 enable_dlopen=no
12611 fi
12612
12613 case $lt_cv_dlopen in
12614 dlopen)
12615 save_CPPFLAGS="$CPPFLAGS"
12616 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12617
12618 save_LDFLAGS="$LDFLAGS"
12619 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12620
12621 save_LIBS="$LIBS"
12622 LIBS="$lt_cv_dlopen_libs $LIBS"
12623
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12625 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12626 if ${lt_cv_dlopen_self+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 if test "$cross_compiling" = yes; then :
12630 lt_cv_dlopen_self=cross
12631 else
12632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12633 lt_status=$lt_dlunknown
12634 cat > conftest.$ac_ext <<_LT_EOF
12635 #line 12635 "configure"
12636 #include "confdefs.h"
12637
12638 #if HAVE_DLFCN_H
12639 #include <dlfcn.h>
12640 #endif
12641
12642 #include <stdio.h>
12643
12644 #ifdef RTLD_GLOBAL
12645 # define LT_DLGLOBAL RTLD_GLOBAL
12646 #else
12647 # ifdef DL_GLOBAL
12648 # define LT_DLGLOBAL DL_GLOBAL
12649 # else
12650 # define LT_DLGLOBAL 0
12651 # endif
12652 #endif
12653
12654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12655 find out it does not work in some platform. */
12656 #ifndef LT_DLLAZY_OR_NOW
12657 # ifdef RTLD_LAZY
12658 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12659 # else
12660 # ifdef DL_LAZY
12661 # define LT_DLLAZY_OR_NOW DL_LAZY
12662 # else
12663 # ifdef RTLD_NOW
12664 # define LT_DLLAZY_OR_NOW RTLD_NOW
12665 # else
12666 # ifdef DL_NOW
12667 # define LT_DLLAZY_OR_NOW DL_NOW
12668 # else
12669 # define LT_DLLAZY_OR_NOW 0
12670 # endif
12671 # endif
12672 # endif
12673 # endif
12674 #endif
12675
12676 /* When -fvisbility=hidden is used, assume the code has been annotated
12677 correspondingly for the symbols needed. */
12678 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12679 void fnord () __attribute__((visibility("default")));
12680 #endif
12681
12682 void fnord () { int i=42; }
12683 int main ()
12684 {
12685 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12686 int status = $lt_dlunknown;
12687
12688 if (self)
12689 {
12690 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12691 else
12692 {
12693 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12694 else puts (dlerror ());
12695 }
12696 /* dlclose (self); */
12697 }
12698 else
12699 puts (dlerror ());
12700
12701 return status;
12702 }
12703 _LT_EOF
12704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12705 (eval $ac_link) 2>&5
12706 ac_status=$?
12707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12708 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12709 (./conftest; exit; ) >&5 2>/dev/null
12710 lt_status=$?
12711 case x$lt_status in
12712 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12713 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12714 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12715 esac
12716 else :
12717 # compilation failed
12718 lt_cv_dlopen_self=no
12719 fi
12720 fi
12721 rm -fr conftest*
12722
12723
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12726 $as_echo "$lt_cv_dlopen_self" >&6; }
12727
12728 if test "x$lt_cv_dlopen_self" = xyes; then
12729 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12731 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12732 if ${lt_cv_dlopen_self_static+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 if test "$cross_compiling" = yes; then :
12736 lt_cv_dlopen_self_static=cross
12737 else
12738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12739 lt_status=$lt_dlunknown
12740 cat > conftest.$ac_ext <<_LT_EOF
12741 #line 12741 "configure"
12742 #include "confdefs.h"
12743
12744 #if HAVE_DLFCN_H
12745 #include <dlfcn.h>
12746 #endif
12747
12748 #include <stdio.h>
12749
12750 #ifdef RTLD_GLOBAL
12751 # define LT_DLGLOBAL RTLD_GLOBAL
12752 #else
12753 # ifdef DL_GLOBAL
12754 # define LT_DLGLOBAL DL_GLOBAL
12755 # else
12756 # define LT_DLGLOBAL 0
12757 # endif
12758 #endif
12759
12760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12761 find out it does not work in some platform. */
12762 #ifndef LT_DLLAZY_OR_NOW
12763 # ifdef RTLD_LAZY
12764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12765 # else
12766 # ifdef DL_LAZY
12767 # define LT_DLLAZY_OR_NOW DL_LAZY
12768 # else
12769 # ifdef RTLD_NOW
12770 # define LT_DLLAZY_OR_NOW RTLD_NOW
12771 # else
12772 # ifdef DL_NOW
12773 # define LT_DLLAZY_OR_NOW DL_NOW
12774 # else
12775 # define LT_DLLAZY_OR_NOW 0
12776 # endif
12777 # endif
12778 # endif
12779 # endif
12780 #endif
12781
12782 /* When -fvisbility=hidden is used, assume the code has been annotated
12783 correspondingly for the symbols needed. */
12784 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12785 void fnord () __attribute__((visibility("default")));
12786 #endif
12787
12788 void fnord () { int i=42; }
12789 int main ()
12790 {
12791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12792 int status = $lt_dlunknown;
12793
12794 if (self)
12795 {
12796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12797 else
12798 {
12799 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12800 else puts (dlerror ());
12801 }
12802 /* dlclose (self); */
12803 }
12804 else
12805 puts (dlerror ());
12806
12807 return status;
12808 }
12809 _LT_EOF
12810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12811 (eval $ac_link) 2>&5
12812 ac_status=$?
12813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12814 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12815 (./conftest; exit; ) >&5 2>/dev/null
12816 lt_status=$?
12817 case x$lt_status in
12818 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12819 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12820 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12821 esac
12822 else :
12823 # compilation failed
12824 lt_cv_dlopen_self_static=no
12825 fi
12826 fi
12827 rm -fr conftest*
12828
12829
12830 fi
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12832 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12833 fi
12834
12835 CPPFLAGS="$save_CPPFLAGS"
12836 LDFLAGS="$save_LDFLAGS"
12837 LIBS="$save_LIBS"
12838 ;;
12839 esac
12840
12841 case $lt_cv_dlopen_self in
12842 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12843 *) enable_dlopen_self=unknown ;;
12844 esac
12845
12846 case $lt_cv_dlopen_self_static in
12847 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12848 *) enable_dlopen_self_static=unknown ;;
12849 esac
12850 fi
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868 striplib=
12869 old_striplib=
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12871 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12872 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12873 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12874 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12876 $as_echo "yes" >&6; }
12877 else
12878 # FIXME - insert some real tests, host_os isn't really good enough
12879 case $host_os in
12880 darwin*)
12881 if test -n "$STRIP" ; then
12882 striplib="$STRIP -x"
12883 old_striplib="$STRIP -S"
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12885 $as_echo "yes" >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889 fi
12890 ;;
12891 *)
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 ;;
12895 esac
12896 fi
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909 # Report which library types will actually be built
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12911 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12913 $as_echo "$can_build_shared" >&6; }
12914
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12916 $as_echo_n "checking whether to build shared libraries... " >&6; }
12917 test "$can_build_shared" = "no" && enable_shared=no
12918
12919 # On AIX, shared libraries and static libraries use the same namespace, and
12920 # are all built from PIC.
12921 case $host_os in
12922 aix3*)
12923 test "$enable_shared" = yes && enable_static=no
12924 if test -n "$RANLIB"; then
12925 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12926 postinstall_cmds='$RANLIB $lib'
12927 fi
12928 ;;
12929
12930 aix[4-9]*)
12931 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12932 test "$enable_shared" = yes && enable_static=no
12933 fi
12934 ;;
12935 esac
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12937 $as_echo "$enable_shared" >&6; }
12938
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12940 $as_echo_n "checking whether to build static libraries... " >&6; }
12941 # Make sure either enable_shared or enable_static is yes.
12942 test "$enable_shared" = yes || enable_static=yes
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12944 $as_echo "$enable_static" >&6; }
12945
12946
12947
12948
12949 fi
12950 ac_ext=c
12951 ac_cpp='$CPP $CPPFLAGS'
12952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955
12956 CC="$lt_save_CC"
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970 ac_config_commands="$ac_config_commands libtool"
12971
12972
12973
12974
12975 # Only expand once:
12976
12977
12978
12979
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12981 $as_echo_n "checking for bind in -lsocket... " >&6; }
12982 if ${ac_cv_lib_socket_bind+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lsocket $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12993 #ifdef __cplusplus
12994 extern "C"
12995 #endif
12996 char bind ();
12997 int
12998 main ()
12999 {
13000 return bind ();
13001 ;
13002 return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_link "$LINENO"; then :
13006 ac_cv_lib_socket_bind=yes
13007 else
13008 ac_cv_lib_socket_bind=no
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 LIBS=$ac_check_lib_save_LIBS
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
13015 $as_echo "$ac_cv_lib_socket_bind" >&6; }
13016 if test "x$ac_cv_lib_socket_bind" = xyes; then :
13017 cat >>confdefs.h <<_ACEOF
13018 #define HAVE_LIBSOCKET 1
13019 _ACEOF
13020
13021 LIBS="-lsocket $LIBS"
13022
13023 fi
13024
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13026 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13027 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 ac_check_lib_save_LIBS=$LIBS
13031 LIBS="-lnsl $LIBS"
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char gethostbyname ();
13042 int
13043 main ()
13044 {
13045 return gethostbyname ();
13046 ;
13047 return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 ac_cv_lib_nsl_gethostbyname=yes
13052 else
13053 ac_cv_lib_nsl_gethostbyname=no
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13060 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13061 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13062 cat >>confdefs.h <<_ACEOF
13063 #define HAVE_LIBNSL 1
13064 _ACEOF
13065
13066 LIBS="-lnsl $LIBS"
13067
13068 fi
13069
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
13071 $as_echo_n "checking for fabs in -lm... " >&6; }
13072 if ${ac_cv_lib_m_fabs+:} false; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-lm $LIBS"
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char fabs ();
13087 int
13088 main ()
13089 {
13090 return fabs ();
13091 ;
13092 return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_link "$LINENO"; then :
13096 ac_cv_lib_m_fabs=yes
13097 else
13098 ac_cv_lib_m_fabs=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
13105 $as_echo "$ac_cv_lib_m_fabs" >&6; }
13106 if test "x$ac_cv_lib_m_fabs" = xyes; then :
13107 cat >>confdefs.h <<_ACEOF
13108 #define HAVE_LIBM 1
13109 _ACEOF
13110
13111 LIBS="-lm $LIBS"
13112
13113 fi
13114
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
13116 $as_echo_n "checking for log2 in -lm... " >&6; }
13117 if ${ac_cv_lib_m_log2+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 ac_check_lib_save_LIBS=$LIBS
13121 LIBS="-lm $LIBS"
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13124
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 char log2 ();
13132 int
13133 main ()
13134 {
13135 return log2 ();
13136 ;
13137 return 0;
13138 }
13139 _ACEOF
13140 if ac_fn_c_try_link "$LINENO"; then :
13141 ac_cv_lib_m_log2=yes
13142 else
13143 ac_cv_lib_m_log2=no
13144 fi
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 LIBS=$ac_check_lib_save_LIBS
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
13150 $as_echo "$ac_cv_lib_m_log2" >&6; }
13151 if test "x$ac_cv_lib_m_log2" = xyes; then :
13152 cat >>confdefs.h <<_ACEOF
13153 #define HAVE_LIBM 1
13154 _ACEOF
13155
13156 LIBS="-lm $LIBS"
13157
13158 fi
13159
13160
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13163 if ${ac_cv_lib_dl_dlopen+:} false; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 ac_check_lib_save_LIBS=$LIBS
13167 LIBS="-ldl $LIBS"
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char dlopen ();
13178 int
13179 main ()
13180 {
13181 return dlopen ();
13182 ;
13183 return 0;
13184 }
13185 _ACEOF
13186 if ac_fn_c_try_link "$LINENO"; then :
13187 ac_cv_lib_dl_dlopen=yes
13188 else
13189 ac_cv_lib_dl_dlopen=no
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193 LIBS=$ac_check_lib_save_LIBS
13194 fi
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13196 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13197 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13198 cat >>confdefs.h <<_ACEOF
13199 #define HAVE_LIBDL 1
13200 _ACEOF
13201
13202 LIBS="-ldl $LIBS"
13203
13204 fi
13205
13206 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13207
13208 pkg_failed=no
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13210 $as_echo_n "checking for sdl2... " >&6; }
13211
13212 if test -n "$SDL_CFLAGS"; then
13213 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13214 elif test -n "$PKG_CONFIG"; then
13215 if test -n "$PKG_CONFIG" && \
13216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13217 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13218 ac_status=$?
13219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13220 test $ac_status = 0; }; then
13221 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13222 test "x$?" != "x0" && pkg_failed=yes
13223 else
13224 pkg_failed=yes
13225 fi
13226 else
13227 pkg_failed=untried
13228 fi
13229 if test -n "$SDL_LIBS"; then
13230 pkg_cv_SDL_LIBS="$SDL_LIBS"
13231 elif test -n "$PKG_CONFIG"; then
13232 if test -n "$PKG_CONFIG" && \
13233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13234 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13235 ac_status=$?
13236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13237 test $ac_status = 0; }; then
13238 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13239 test "x$?" != "x0" && pkg_failed=yes
13240 else
13241 pkg_failed=yes
13242 fi
13243 else
13244 pkg_failed=untried
13245 fi
13246
13247 if test $pkg_failed = no; then
13248 pkg_save_LDFLAGS="$LDFLAGS"
13249 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252
13253 int
13254 main ()
13255 {
13256
13257 ;
13258 return 0;
13259 }
13260 _ACEOF
13261 if ac_fn_c_try_link "$LINENO"; then :
13262
13263 else
13264 pkg_failed=yes
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LDFLAGS=$pkg_save_LDFLAGS
13269 fi
13270
13271
13272
13273 if test $pkg_failed = yes; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275 $as_echo "no" >&6; }
13276
13277 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13278 _pkg_short_errors_supported=yes
13279 else
13280 _pkg_short_errors_supported=no
13281 fi
13282 if test $_pkg_short_errors_supported = yes; then
13283 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13284 else
13285 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13286 fi
13287 # Put the nasty error message in config.log where it belongs
13288 echo "$SDL_PKG_ERRORS" >&5
13289
13290
13291
13292 pkg_failed=no
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13294 $as_echo_n "checking for sdl... " >&6; }
13295
13296 if test -n "$SDL_CFLAGS"; then
13297 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13298 elif test -n "$PKG_CONFIG"; then
13299 if test -n "$PKG_CONFIG" && \
13300 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13301 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13302 ac_status=$?
13303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13304 test $ac_status = 0; }; then
13305 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13306 test "x$?" != "x0" && pkg_failed=yes
13307 else
13308 pkg_failed=yes
13309 fi
13310 else
13311 pkg_failed=untried
13312 fi
13313 if test -n "$SDL_LIBS"; then
13314 pkg_cv_SDL_LIBS="$SDL_LIBS"
13315 elif test -n "$PKG_CONFIG"; then
13316 if test -n "$PKG_CONFIG" && \
13317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13318 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13319 ac_status=$?
13320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13321 test $ac_status = 0; }; then
13322 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13323 test "x$?" != "x0" && pkg_failed=yes
13324 else
13325 pkg_failed=yes
13326 fi
13327 else
13328 pkg_failed=untried
13329 fi
13330
13331 if test $pkg_failed = no; then
13332 pkg_save_LDFLAGS="$LDFLAGS"
13333 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336
13337 int
13338 main ()
13339 {
13340
13341 ;
13342 return 0;
13343 }
13344 _ACEOF
13345 if ac_fn_c_try_link "$LINENO"; then :
13346
13347 else
13348 pkg_failed=yes
13349 fi
13350 rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 LDFLAGS=$pkg_save_LDFLAGS
13353 fi
13354
13355
13356
13357 if test $pkg_failed = yes; then
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13360
13361 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13362 _pkg_short_errors_supported=yes
13363 else
13364 _pkg_short_errors_supported=no
13365 fi
13366 if test $_pkg_short_errors_supported = yes; then
13367 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13368 else
13369 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13370 fi
13371 # Put the nasty error message in config.log where it belongs
13372 echo "$SDL_PKG_ERRORS" >&5
13373
13374 :
13375 elif test $pkg_failed = untried; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378 :
13379 else
13380 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13381 SDL_LIBS=$pkg_cv_SDL_LIBS
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13383 $as_echo "yes" >&6; }
13384 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13385 SDL_LIBS="-ldl"
13386
13387 fi
13388
13389 elif test $pkg_failed = untried; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391 $as_echo "no" >&6; }
13392
13393
13394 pkg_failed=no
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13396 $as_echo_n "checking for sdl... " >&6; }
13397
13398 if test -n "$SDL_CFLAGS"; then
13399 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13400 elif test -n "$PKG_CONFIG"; then
13401 if test -n "$PKG_CONFIG" && \
13402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13403 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13404 ac_status=$?
13405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13406 test $ac_status = 0; }; then
13407 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13408 test "x$?" != "x0" && pkg_failed=yes
13409 else
13410 pkg_failed=yes
13411 fi
13412 else
13413 pkg_failed=untried
13414 fi
13415 if test -n "$SDL_LIBS"; then
13416 pkg_cv_SDL_LIBS="$SDL_LIBS"
13417 elif test -n "$PKG_CONFIG"; then
13418 if test -n "$PKG_CONFIG" && \
13419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13420 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13421 ac_status=$?
13422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13423 test $ac_status = 0; }; then
13424 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13425 test "x$?" != "x0" && pkg_failed=yes
13426 else
13427 pkg_failed=yes
13428 fi
13429 else
13430 pkg_failed=untried
13431 fi
13432
13433 if test $pkg_failed = no; then
13434 pkg_save_LDFLAGS="$LDFLAGS"
13435 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438
13439 int
13440 main ()
13441 {
13442
13443 ;
13444 return 0;
13445 }
13446 _ACEOF
13447 if ac_fn_c_try_link "$LINENO"; then :
13448
13449 else
13450 pkg_failed=yes
13451 fi
13452 rm -f core conftest.err conftest.$ac_objext \
13453 conftest$ac_exeext conftest.$ac_ext
13454 LDFLAGS=$pkg_save_LDFLAGS
13455 fi
13456
13457
13458
13459 if test $pkg_failed = yes; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13462
13463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13464 _pkg_short_errors_supported=yes
13465 else
13466 _pkg_short_errors_supported=no
13467 fi
13468 if test $_pkg_short_errors_supported = yes; then
13469 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13470 else
13471 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13472 fi
13473 # Put the nasty error message in config.log where it belongs
13474 echo "$SDL_PKG_ERRORS" >&5
13475
13476 :
13477 elif test $pkg_failed = untried; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13480 :
13481 else
13482 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13483 SDL_LIBS=$pkg_cv_SDL_LIBS
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13485 $as_echo "yes" >&6; }
13486 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13487 SDL_LIBS="-ldl"
13488
13489 fi
13490
13491 else
13492 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13493 SDL_LIBS=$pkg_cv_SDL_LIBS
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13495 $as_echo "yes" >&6; }
13496 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13497 SDL_LIBS="-ldl"
13498
13499 fi
13500 else
13501 SDL_CFLAGS=
13502 SDL_LIBS=
13503 fi
13504
13505
13506
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13508 $as_echo_n "checking for cygwin... " >&6; }
13509 if ${sim_cv_os_cygwin+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514
13515 #ifdef __CYGWIN__
13516 lose
13517 #endif
13518 _ACEOF
13519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13520 $EGREP "lose" >/dev/null 2>&1; then :
13521 sim_cv_os_cygwin=yes
13522 else
13523 sim_cv_os_cygwin=no
13524 fi
13525 rm -f conftest*
13526
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13529 $as_echo "$sim_cv_os_cygwin" >&6; }
13530
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13532 $as_echo_n "checking for library containing tgetent... " >&6; }
13533 if ${ac_cv_search_tgetent+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 ac_func_search_save_LIBS=$LIBS
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539
13540 /* Override any GCC internal prototype to avoid an error.
13541 Use char because int might match the return type of a GCC
13542 builtin and then its argument prototype would still apply. */
13543 #ifdef __cplusplus
13544 extern "C"
13545 #endif
13546 char tgetent ();
13547 int
13548 main ()
13549 {
13550 return tgetent ();
13551 ;
13552 return 0;
13553 }
13554 _ACEOF
13555 for ac_lib in '' termcap tinfo curses ncurses; do
13556 if test -z "$ac_lib"; then
13557 ac_res="none required"
13558 else
13559 ac_res=-l$ac_lib
13560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13561 fi
13562 if ac_fn_c_try_link "$LINENO"; then :
13563 ac_cv_search_tgetent=$ac_res
13564 fi
13565 rm -f core conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext
13567 if ${ac_cv_search_tgetent+:} false; then :
13568 break
13569 fi
13570 done
13571 if ${ac_cv_search_tgetent+:} false; then :
13572
13573 else
13574 ac_cv_search_tgetent=no
13575 fi
13576 rm conftest.$ac_ext
13577 LIBS=$ac_func_search_save_LIBS
13578 fi
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13580 $as_echo "$ac_cv_search_tgetent" >&6; }
13581 ac_res=$ac_cv_search_tgetent
13582 if test "$ac_res" != no; then :
13583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13584 TERMCAP_LIB=$ac_cv_search_tgetent
13585 else
13586 TERMCAP_LIB=""
13587 fi
13588
13589 if test x$sim_cv_os_cygwin = xyes; then
13590 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13591 fi
13592
13593
13594 if test -r ../readline/Makefile; then
13595 READLINE_LIB=../../readline/readline/libreadline.a
13596 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13597 else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13599 $as_echo_n "checking for readline in -lreadline... " >&6; }
13600 if ${ac_cv_lib_readline_readline+:} false; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 ac_check_lib_save_LIBS=$LIBS
13604 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607
13608 /* Override any GCC internal prototype to avoid an error.
13609 Use char because int might match the return type of a GCC
13610 builtin and then its argument prototype would still apply. */
13611 #ifdef __cplusplus
13612 extern "C"
13613 #endif
13614 char readline ();
13615 int
13616 main ()
13617 {
13618 return readline ();
13619 ;
13620 return 0;
13621 }
13622 _ACEOF
13623 if ac_fn_c_try_link "$LINENO"; then :
13624 ac_cv_lib_readline_readline=yes
13625 else
13626 ac_cv_lib_readline_readline=no
13627 fi
13628 rm -f core conftest.err conftest.$ac_objext \
13629 conftest$ac_exeext conftest.$ac_ext
13630 LIBS=$ac_check_lib_save_LIBS
13631 fi
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13633 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13634 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13635 READLINE_LIB=-lreadline
13636 else
13637 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13638 fi
13639
13640 READLINE_CFLAGS=
13641 fi
13642
13643
13644
13645
13646
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13648 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13649 # Check whether --enable-maintainer-mode was given.
13650 if test "${enable_maintainer_mode+set}" = set; then :
13651 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13652 else
13653 USE_MAINTAINER_MODE=no
13654 fi
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13657 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13658 if test $USE_MAINTAINER_MODE = yes; then
13659 MAINTAINER_MODE_TRUE=
13660 MAINTAINER_MODE_FALSE='#'
13661 else
13662 MAINTAINER_MODE_TRUE='#'
13663 MAINTAINER_MODE_FALSE=
13664 fi
13665
13666 MAINT=$MAINTAINER_MODE_TRUE
13667
13668
13669 am__api_version='1.15'
13670
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13672 $as_echo_n "checking whether build environment is sane... " >&6; }
13673 # Reject unsafe characters in $srcdir or the absolute working directory
13674 # name. Accept space and tab only in the latter.
13675 am_lf='
13676 '
13677 case `pwd` in
13678 *[\\\"\#\$\&\'\`$am_lf]*)
13679 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13680 esac
13681 case $srcdir in
13682 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13683 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13684 esac
13685
13686 # Do 'set' in a subshell so we don't clobber the current shell's
13687 # arguments. Must try -L first in case configure is actually a
13688 # symlink; some systems play weird games with the mod time of symlinks
13689 # (eg FreeBSD returns the mod time of the symlink's containing
13690 # directory).
13691 if (
13692 am_has_slept=no
13693 for am_try in 1 2; do
13694 echo "timestamp, slept: $am_has_slept" > conftest.file
13695 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13696 if test "$*" = "X"; then
13697 # -L didn't work.
13698 set X `ls -t "$srcdir/configure" conftest.file`
13699 fi
13700 if test "$*" != "X $srcdir/configure conftest.file" \
13701 && test "$*" != "X conftest.file $srcdir/configure"; then
13702
13703 # If neither matched, then we have a broken ls. This can happen
13704 # if, for instance, CONFIG_SHELL is bash and it inherits a
13705 # broken ls alias from the environment. This has actually
13706 # happened. Such a system could not be considered "sane".
13707 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13708 alias in your environment" "$LINENO" 5
13709 fi
13710 if test "$2" = conftest.file || test $am_try -eq 2; then
13711 break
13712 fi
13713 # Just in case.
13714 sleep 1
13715 am_has_slept=yes
13716 done
13717 test "$2" = conftest.file
13718 )
13719 then
13720 # Ok.
13721 :
13722 else
13723 as_fn_error $? "newly created file is older than distributed files!
13724 Check your system clock" "$LINENO" 5
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13727 $as_echo "yes" >&6; }
13728 # If we didn't sleep, we still need to ensure time stamps of config.status and
13729 # generated files are strictly newer.
13730 am_sleep_pid=
13731 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13732 ( sleep 1 ) &
13733 am_sleep_pid=$!
13734 fi
13735
13736 rm -f conftest.file
13737
13738 if test x"${MISSING+set}" != xset; then
13739 case $am_aux_dir in
13740 *\ * | *\ *)
13741 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13742 *)
13743 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13744 esac
13745 fi
13746 # Use eval to expand $SHELL
13747 if eval "$MISSING --is-lightweight"; then
13748 am_missing_run="$MISSING "
13749 else
13750 am_missing_run=
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13752 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13753 fi
13754
13755 if test x"${install_sh+set}" != xset; then
13756 case $am_aux_dir in
13757 *\ * | *\ *)
13758 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13759 *)
13760 install_sh="\${SHELL} $am_aux_dir/install-sh"
13761 esac
13762 fi
13763
13764 # Installed binaries are usually stripped using 'strip' when the user
13765 # run "make install-strip". However 'strip' might not be the right
13766 # tool to use in cross-compilation environments, therefore Automake
13767 # will honor the 'STRIP' environment variable to overrule this program.
13768 if test "$cross_compiling" != no; then
13769 if test -n "$ac_tool_prefix"; then
13770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13771 set dummy ${ac_tool_prefix}strip; ac_word=$2
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13773 $as_echo_n "checking for $ac_word... " >&6; }
13774 if ${ac_cv_prog_STRIP+:} false; then :
13775 $as_echo_n "(cached) " >&6
13776 else
13777 if test -n "$STRIP"; then
13778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13779 else
13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781 for as_dir in $PATH
13782 do
13783 IFS=$as_save_IFS
13784 test -z "$as_dir" && as_dir=.
13785 for ac_exec_ext in '' $ac_executable_extensions; do
13786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13789 break 2
13790 fi
13791 done
13792 done
13793 IFS=$as_save_IFS
13794
13795 fi
13796 fi
13797 STRIP=$ac_cv_prog_STRIP
13798 if test -n "$STRIP"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13800 $as_echo "$STRIP" >&6; }
13801 else
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13804 fi
13805
13806
13807 fi
13808 if test -z "$ac_cv_prog_STRIP"; then
13809 ac_ct_STRIP=$STRIP
13810 # Extract the first word of "strip", so it can be a program name with args.
13811 set dummy strip; ac_word=$2
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13813 $as_echo_n "checking for $ac_word... " >&6; }
13814 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 if test -n "$ac_ct_STRIP"; then
13818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13819 else
13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821 for as_dir in $PATH
13822 do
13823 IFS=$as_save_IFS
13824 test -z "$as_dir" && as_dir=.
13825 for ac_exec_ext in '' $ac_executable_extensions; do
13826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13827 ac_cv_prog_ac_ct_STRIP="strip"
13828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13829 break 2
13830 fi
13831 done
13832 done
13833 IFS=$as_save_IFS
13834
13835 fi
13836 fi
13837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13838 if test -n "$ac_ct_STRIP"; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13840 $as_echo "$ac_ct_STRIP" >&6; }
13841 else
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 fi
13845
13846 if test "x$ac_ct_STRIP" = x; then
13847 STRIP=":"
13848 else
13849 case $cross_compiling:$ac_tool_warned in
13850 yes:)
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13853 ac_tool_warned=yes ;;
13854 esac
13855 STRIP=$ac_ct_STRIP
13856 fi
13857 else
13858 STRIP="$ac_cv_prog_STRIP"
13859 fi
13860
13861 fi
13862 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13863
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13865 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13866 if test -z "$MKDIR_P"; then
13867 if ${ac_cv_path_mkdir+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13872 do
13873 IFS=$as_save_IFS
13874 test -z "$as_dir" && as_dir=.
13875 for ac_prog in mkdir gmkdir; do
13876 for ac_exec_ext in '' $ac_executable_extensions; do
13877 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13878 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13879 'mkdir (GNU coreutils) '* | \
13880 'mkdir (coreutils) '* | \
13881 'mkdir (fileutils) '4.1*)
13882 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13883 break 3;;
13884 esac
13885 done
13886 done
13887 done
13888 IFS=$as_save_IFS
13889
13890 fi
13891
13892 test -d ./--version && rmdir ./--version
13893 if test "${ac_cv_path_mkdir+set}" = set; then
13894 MKDIR_P="$ac_cv_path_mkdir -p"
13895 else
13896 # As a last resort, use the slow shell script. Don't cache a
13897 # value for MKDIR_P within a source directory, because that will
13898 # break other packages using the cache if that directory is
13899 # removed, or if the value is a relative name.
13900 MKDIR_P="$ac_install_sh -d"
13901 fi
13902 fi
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13904 $as_echo "$MKDIR_P" >&6; }
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13908 set x ${MAKE-make}
13909 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13910 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13911 $as_echo_n "(cached) " >&6
13912 else
13913 cat >conftest.make <<\_ACEOF
13914 SHELL = /bin/sh
13915 all:
13916 @echo '@@@%%%=$(MAKE)=@@@%%%'
13917 _ACEOF
13918 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13920 *@@@%%%=?*=@@@%%%*)
13921 eval ac_cv_prog_make_${ac_make}_set=yes;;
13922 *)
13923 eval ac_cv_prog_make_${ac_make}_set=no;;
13924 esac
13925 rm -f conftest.make
13926 fi
13927 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13929 $as_echo "yes" >&6; }
13930 SET_MAKE=
13931 else
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13934 SET_MAKE="MAKE=${MAKE-make}"
13935 fi
13936
13937 rm -rf .tst 2>/dev/null
13938 mkdir .tst 2>/dev/null
13939 if test -d .tst; then
13940 am__leading_dot=.
13941 else
13942 am__leading_dot=_
13943 fi
13944 rmdir .tst 2>/dev/null
13945
13946 DEPDIR="${am__leading_dot}deps"
13947
13948 ac_config_commands="$ac_config_commands depfiles"
13949
13950
13951 am_make=${MAKE-make}
13952 cat > confinc << 'END'
13953 am__doit:
13954 @echo this is the am__doit target
13955 .PHONY: am__doit
13956 END
13957 # If we don't find an include directive, just comment out the code.
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13959 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13960 am__include="#"
13961 am__quote=
13962 _am_result=none
13963 # First try GNU make style include.
13964 echo "include confinc" > confmf
13965 # Ignore all kinds of additional output from 'make'.
13966 case `$am_make -s -f confmf 2> /dev/null` in #(
13967 *the\ am__doit\ target*)
13968 am__include=include
13969 am__quote=
13970 _am_result=GNU
13971 ;;
13972 esac
13973 # Now try BSD make style include.
13974 if test "$am__include" = "#"; then
13975 echo '.include "confinc"' > confmf
13976 case `$am_make -s -f confmf 2> /dev/null` in #(
13977 *the\ am__doit\ target*)
13978 am__include=.include
13979 am__quote="\""
13980 _am_result=BSD
13981 ;;
13982 esac
13983 fi
13984
13985
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13987 $as_echo "$_am_result" >&6; }
13988 rm -f confinc confmf
13989
13990 # Check whether --enable-dependency-tracking was given.
13991 if test "${enable_dependency_tracking+set}" = set; then :
13992 enableval=$enable_dependency_tracking;
13993 fi
13994
13995 if test "x$enable_dependency_tracking" != xno; then
13996 am_depcomp="$ac_aux_dir/depcomp"
13997 AMDEPBACKSLASH='\'
13998 am__nodep='_no'
13999 fi
14000 if test "x$enable_dependency_tracking" != xno; then
14001 AMDEP_TRUE=
14002 AMDEP_FALSE='#'
14003 else
14004 AMDEP_TRUE='#'
14005 AMDEP_FALSE=
14006 fi
14007
14008
14009 # Check whether --enable-silent-rules was given.
14010 if test "${enable_silent_rules+set}" = set; then :
14011 enableval=$enable_silent_rules;
14012 fi
14013
14014 case $enable_silent_rules in # (((
14015 yes) AM_DEFAULT_VERBOSITY=0;;
14016 no) AM_DEFAULT_VERBOSITY=1;;
14017 *) AM_DEFAULT_VERBOSITY=1;;
14018 esac
14019 am_make=${MAKE-make}
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14021 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14022 if ${am_cv_make_support_nested_variables+:} false; then :
14023 $as_echo_n "(cached) " >&6
14024 else
14025 if $as_echo 'TRUE=$(BAR$(V))
14026 BAR0=false
14027 BAR1=true
14028 V=1
14029 am__doit:
14030 @$(TRUE)
14031 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14032 am_cv_make_support_nested_variables=yes
14033 else
14034 am_cv_make_support_nested_variables=no
14035 fi
14036 fi
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14038 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14039 if test $am_cv_make_support_nested_variables = yes; then
14040 AM_V='$(V)'
14041 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14042 else
14043 AM_V=$AM_DEFAULT_VERBOSITY
14044 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14045 fi
14046 AM_BACKSLASH='\'
14047
14048 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14049 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14050 # is not polluted with repeated "-I."
14051 am__isrc=' -I$(srcdir)'
14052 # test to see if srcdir already configured
14053 if test -f $srcdir/config.status; then
14054 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14055 fi
14056 fi
14057
14058 # test whether we have cygpath
14059 if test -z "$CYGPATH_W"; then
14060 if (cygpath --version) >/dev/null 2>/dev/null; then
14061 CYGPATH_W='cygpath -w'
14062 else
14063 CYGPATH_W=echo
14064 fi
14065 fi
14066
14067
14068 # Define the identity of the package.
14069 PACKAGE='sim'
14070 VERSION='0'
14071
14072
14073 cat >>confdefs.h <<_ACEOF
14074 #define PACKAGE "$PACKAGE"
14075 _ACEOF
14076
14077
14078 cat >>confdefs.h <<_ACEOF
14079 #define VERSION "$VERSION"
14080 _ACEOF
14081
14082 # Some tools Automake needs.
14083
14084 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14085
14086
14087 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14088
14089
14090 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14091
14092
14093 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14094
14095
14096 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14097
14098 # For better backward compatibility. To be removed once Automake 1.9.x
14099 # dies out for good. For more background, see:
14100 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14101 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14102 mkdir_p='$(MKDIR_P)'
14103
14104 # We need awk for the "check" target (and possibly the TAP driver). The
14105 # system "awk" is bad on some platforms.
14106 # Always define AMTAR for backward compatibility. Yes, it's still used
14107 # in the wild :-( We should find a proper way to deprecate it ...
14108 AMTAR='$${TAR-tar}'
14109
14110
14111 # We'll loop over all known methods to create a tar archive until one works.
14112 _am_tools='gnutar pax cpio none'
14113
14114 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
14115
14116
14117
14118
14119
14120 depcc="$CC" am_compiler_list=
14121
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14123 $as_echo_n "checking dependency style of $depcc... " >&6; }
14124 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14125 $as_echo_n "(cached) " >&6
14126 else
14127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14128 # We make a subdir and do the tests there. Otherwise we can end up
14129 # making bogus files that we don't know about and never remove. For
14130 # instance it was reported that on HP-UX the gcc test will end up
14131 # making a dummy file named 'D' -- because '-MD' means "put the output
14132 # in D".
14133 rm -rf conftest.dir
14134 mkdir conftest.dir
14135 # Copy depcomp to subdir because otherwise we won't find it if we're
14136 # using a relative directory.
14137 cp "$am_depcomp" conftest.dir
14138 cd conftest.dir
14139 # We will build objects and dependencies in a subdirectory because
14140 # it helps to detect inapplicable dependency modes. For instance
14141 # both Tru64's cc and ICC support -MD to output dependencies as a
14142 # side effect of compilation, but ICC will put the dependencies in
14143 # the current directory while Tru64 will put them in the object
14144 # directory.
14145 mkdir sub
14146
14147 am_cv_CC_dependencies_compiler_type=none
14148 if test "$am_compiler_list" = ""; then
14149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14150 fi
14151 am__universal=false
14152 case " $depcc " in #(
14153 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14154 esac
14155
14156 for depmode in $am_compiler_list; do
14157 # Setup a source with many dependencies, because some compilers
14158 # like to wrap large dependency lists on column 80 (with \), and
14159 # we should not choose a depcomp mode which is confused by this.
14160 #
14161 # We need to recreate these files for each test, as the compiler may
14162 # overwrite some of them when testing with obscure command lines.
14163 # This happens at least with the AIX C compiler.
14164 : > sub/conftest.c
14165 for i in 1 2 3 4 5 6; do
14166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14167 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14168 # Solaris 10 /bin/sh.
14169 echo '/* dummy */' > sub/conftst$i.h
14170 done
14171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14172
14173 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14174 # mode. It turns out that the SunPro C++ compiler does not properly
14175 # handle '-M -o', and we need to detect this. Also, some Intel
14176 # versions had trouble with output in subdirs.
14177 am__obj=sub/conftest.${OBJEXT-o}
14178 am__minus_obj="-o $am__obj"
14179 case $depmode in
14180 gcc)
14181 # This depmode causes a compiler race in universal mode.
14182 test "$am__universal" = false || continue
14183 ;;
14184 nosideeffect)
14185 # After this tag, mechanisms are not by side-effect, so they'll
14186 # only be used when explicitly requested.
14187 if test "x$enable_dependency_tracking" = xyes; then
14188 continue
14189 else
14190 break
14191 fi
14192 ;;
14193 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14194 # This compiler won't grok '-c -o', but also, the minuso test has
14195 # not run yet. These depmodes are late enough in the game, and
14196 # so weak that their functioning should not be impacted.
14197 am__obj=conftest.${OBJEXT-o}
14198 am__minus_obj=
14199 ;;
14200 none) break ;;
14201 esac
14202 if depmode=$depmode \
14203 source=sub/conftest.c object=$am__obj \
14204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14206 >/dev/null 2>conftest.err &&
14207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14211 # icc doesn't choke on unknown options, it will just issue warnings
14212 # or remarks (even with -Werror). So we grep stderr for any message
14213 # that says an option was ignored or not supported.
14214 # When given -MP, icc 7.0 and 7.1 complain thusly:
14215 # icc: Command line warning: ignoring option '-M'; no argument required
14216 # The diagnosis changed in icc 8.0:
14217 # icc: Command line remark: option '-MP' not supported
14218 if (grep 'ignoring option' conftest.err ||
14219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14220 am_cv_CC_dependencies_compiler_type=$depmode
14221 break
14222 fi
14223 fi
14224 done
14225
14226 cd ..
14227 rm -rf conftest.dir
14228 else
14229 am_cv_CC_dependencies_compiler_type=none
14230 fi
14231
14232 fi
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14234 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14236
14237 if
14238 test "x$enable_dependency_tracking" != xno \
14239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14240 am__fastdepCC_TRUE=
14241 am__fastdepCC_FALSE='#'
14242 else
14243 am__fastdepCC_TRUE='#'
14244 am__fastdepCC_FALSE=
14245 fi
14246
14247
14248
14249 # POSIX will say in a future version that running "rm -f" with no argument
14250 # is OK; and we want to be able to make that assumption in our Makefile
14251 # recipes. So use an aggressive probe to check that the usage we want is
14252 # actually supported "in the wild" to an acceptable degree.
14253 # See automake bug#10828.
14254 # To make any issue more visible, cause the running configure to be aborted
14255 # by default if the 'rm' program in use doesn't match our expectations; the
14256 # user can still override this though.
14257 if rm -f && rm -fr && rm -rf; then : OK; else
14258 cat >&2 <<'END'
14259 Oops!
14260
14261 Your 'rm' program seems unable to run without file operands specified
14262 on the command line, even when the '-f' option is present. This is contrary
14263 to the behaviour of most rm programs out there, and not conforming with
14264 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14265
14266 Please tell bug-automake@gnu.org about your system, including the value
14267 of your $PATH and any error possibly output before this message. This
14268 can help us improve future automake versions.
14269
14270 END
14271 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14272 echo 'Configuration will proceed anyway, since you have set the' >&2
14273 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14274 echo >&2
14275 else
14276 cat >&2 <<'END'
14277 Aborting the configuration process, to ensure you take notice of the issue.
14278
14279 You can download and install GNU coreutils to get an 'rm' implementation
14280 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14281
14282 If you want to complete the configuration process using your problematic
14283 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14284 to "yes", and re-run configure.
14285
14286 END
14287 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14288 fi
14289 fi
14290
14291 # Check whether --enable-silent-rules was given.
14292 if test "${enable_silent_rules+set}" = set; then :
14293 enableval=$enable_silent_rules;
14294 fi
14295
14296 case $enable_silent_rules in # (((
14297 yes) AM_DEFAULT_VERBOSITY=0;;
14298 no) AM_DEFAULT_VERBOSITY=1;;
14299 *) AM_DEFAULT_VERBOSITY=0;;
14300 esac
14301 am_make=${MAKE-make}
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14303 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14304 if ${am_cv_make_support_nested_variables+:} false; then :
14305 $as_echo_n "(cached) " >&6
14306 else
14307 if $as_echo 'TRUE=$(BAR$(V))
14308 BAR0=false
14309 BAR1=true
14310 V=1
14311 am__doit:
14312 @$(TRUE)
14313 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14314 am_cv_make_support_nested_variables=yes
14315 else
14316 am_cv_make_support_nested_variables=no
14317 fi
14318 fi
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14320 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14321 if test $am_cv_make_support_nested_variables = yes; then
14322 AM_V='$(V)'
14323 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14324 else
14325 AM_V=$AM_DEFAULT_VERBOSITY
14326 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14327 fi
14328 AM_BACKSLASH='\'
14329
14330
14331 # If a cpu ever has more than one simulator to choose from, use
14332 # --enable-sim=... to choose.
14333 # Check whether --enable-sim was given.
14334 if test "${enable_sim+set}" = set; then :
14335 enableval=$enable_sim; case "${enableval}" in
14336 yes | no) ;;
14337 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14338 esac
14339 fi
14340
14341
14342 # Check whether --enable-example-sims was given.
14343 if test "${enable_example_sims+set}" = set; then :
14344 enableval=$enable_example_sims;
14345 fi
14346
14347
14348 # Check whether --enable-targets was given.
14349 if test "${enable_targets+set}" = set; then :
14350 enableval=$enable_targets; case "${enableval}" in
14351 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14352 ;;
14353 no) enable_targets= ;;
14354 *) enable_targets=$enableval ;;
14355 esac
14356 fi
14357
14358
14359 SIM_PRIMARY_TARGET=
14360
14361
14362 SIM_SUBDIRS=
14363
14364
14365 SIM_COMMON_BUILD_TRUE=
14366 SIM_COMMON_BUILD_FALSE='#'
14367
14368
14369
14370 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
14371
14372
14373
14374
14375 if test "${enable_sim}" != no; then
14376 sim_igen=no
14377 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14378 do
14379 sim_enable_arch_aarch64=false
14380 case "${targ}" in
14381 all|aarch64*-*-*)
14382 if test "${targ}" = "${target}"; then
14383 SIM_PRIMARY_TARGET=aarch64
14384 fi
14385 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
14386
14387 ac_config_commands="$ac_config_commands aarch64/Makefile"
14388
14389 as_fn_append SIM_SUBDIRS " aarch64"
14390
14391 ac_config_commands="$ac_config_commands depdir-aarch64"
14392
14393
14394 sim_enable_arch_aarch64=true
14395
14396 ;;
14397 esac
14398
14399
14400
14401 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14402 : "${AS_FOR_TARGET_AARCH64:=\$(abs_builddir)/../gas/as-new}"
14403 : "${LD_FOR_TARGET_AARCH64:=\$(abs_builddir)/../ld/ld-new}"
14404 : "${CC_FOR_TARGET_AARCH64:=${target_alias}-gcc}"
14405
14406 fi
14407
14408 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14409
14410 if ${sim_enable_arch_aarch64}; then
14411 SIM_ENABLE_ARCH_aarch64_TRUE=
14412 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14413 else
14414 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14415 SIM_ENABLE_ARCH_aarch64_FALSE=
14416 fi
14417
14418
14419 sim_enable_arch_arm=false
14420 case "${targ}" in
14421 all|arm*-*-*)
14422 if test "${targ}" = "${target}"; then
14423 SIM_PRIMARY_TARGET=arm
14424 fi
14425 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
14426
14427 ac_config_commands="$ac_config_commands arm/Makefile"
14428
14429 as_fn_append SIM_SUBDIRS " arm"
14430
14431 ac_config_commands="$ac_config_commands depdir-arm"
14432
14433
14434 sim_enable_arch_arm=true
14435
14436 ;;
14437 esac
14438
14439
14440
14441 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14442 : "${AS_FOR_TARGET_ARM:=\$(abs_builddir)/../gas/as-new}"
14443 : "${LD_FOR_TARGET_ARM:=\$(abs_builddir)/../ld/ld-new}"
14444 : "${CC_FOR_TARGET_ARM:=${target_alias}-gcc}"
14445
14446 fi
14447
14448 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14449
14450 if ${sim_enable_arch_arm}; then
14451 SIM_ENABLE_ARCH_arm_TRUE=
14452 SIM_ENABLE_ARCH_arm_FALSE='#'
14453 else
14454 SIM_ENABLE_ARCH_arm_TRUE='#'
14455 SIM_ENABLE_ARCH_arm_FALSE=
14456 fi
14457
14458
14459 sim_enable_arch_avr=false
14460 case "${targ}" in
14461 all|avr*-*-*)
14462 if test "${targ}" = "${target}"; then
14463 SIM_PRIMARY_TARGET=avr
14464 fi
14465 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
14466
14467 ac_config_commands="$ac_config_commands avr/Makefile"
14468
14469 as_fn_append SIM_SUBDIRS " avr"
14470
14471 ac_config_commands="$ac_config_commands depdir-avr"
14472
14473
14474 sim_enable_arch_avr=true
14475
14476 ;;
14477 esac
14478
14479
14480
14481 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14482 : "${AS_FOR_TARGET_AVR:=\$(abs_builddir)/../gas/as-new}"
14483 : "${LD_FOR_TARGET_AVR:=\$(abs_builddir)/../ld/ld-new}"
14484 : "${CC_FOR_TARGET_AVR:=${target_alias}-gcc}"
14485
14486 fi
14487
14488 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14489
14490 if ${sim_enable_arch_avr}; then
14491 SIM_ENABLE_ARCH_avr_TRUE=
14492 SIM_ENABLE_ARCH_avr_FALSE='#'
14493 else
14494 SIM_ENABLE_ARCH_avr_TRUE='#'
14495 SIM_ENABLE_ARCH_avr_FALSE=
14496 fi
14497
14498
14499 sim_enable_arch_bfin=false
14500 case "${targ}" in
14501 all|bfin-*-*)
14502 if test "${targ}" = "${target}"; then
14503 SIM_PRIMARY_TARGET=bfin
14504 fi
14505 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
14506
14507 ac_config_commands="$ac_config_commands bfin/Makefile"
14508
14509 as_fn_append SIM_SUBDIRS " bfin"
14510
14511 ac_config_commands="$ac_config_commands depdir-bfin"
14512
14513
14514 sim_enable_arch_bfin=true
14515
14516 ;;
14517 esac
14518
14519
14520
14521 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14522 : "${AS_FOR_TARGET_BFIN:=\$(abs_builddir)/../gas/as-new}"
14523 : "${LD_FOR_TARGET_BFIN:=\$(abs_builddir)/../ld/ld-new}"
14524 : "${CC_FOR_TARGET_BFIN:=${target_alias}-gcc}"
14525
14526 fi
14527
14528 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14529
14530 if ${sim_enable_arch_bfin}; then
14531 SIM_ENABLE_ARCH_bfin_TRUE=
14532 SIM_ENABLE_ARCH_bfin_FALSE='#'
14533 else
14534 SIM_ENABLE_ARCH_bfin_TRUE='#'
14535 SIM_ENABLE_ARCH_bfin_FALSE=
14536 fi
14537
14538
14539 sim_enable_arch_bpf=false
14540 case "${targ}" in
14541 all|bpf-*-*)
14542 if test "${targ}" = "${target}"; then
14543 SIM_PRIMARY_TARGET=bpf
14544 fi
14545
14546
14547 subdirs="$subdirs bpf"
14548
14549
14550 ac_config_commands="$ac_config_commands depdir-bpf"
14551
14552
14553 sim_enable_arch_bpf=true
14554
14555 ;;
14556 esac
14557
14558
14559
14560 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14561 : "${AS_FOR_TARGET_BPF:=\$(abs_builddir)/../gas/as-new}"
14562 : "${LD_FOR_TARGET_BPF:=\$(abs_builddir)/../ld/ld-new}"
14563 : "${CC_FOR_TARGET_BPF:=${target_alias}-gcc}"
14564
14565 fi
14566
14567 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14568
14569 if ${sim_enable_arch_bpf}; then
14570 SIM_ENABLE_ARCH_bpf_TRUE=
14571 SIM_ENABLE_ARCH_bpf_FALSE='#'
14572 else
14573 SIM_ENABLE_ARCH_bpf_TRUE='#'
14574 SIM_ENABLE_ARCH_bpf_FALSE=
14575 fi
14576
14577
14578 sim_enable_arch_cr16=false
14579 case "${targ}" in
14580 all|cr16*-*-*)
14581 if test "${targ}" = "${target}"; then
14582 SIM_PRIMARY_TARGET=cr16
14583 fi
14584 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
14585
14586 ac_config_commands="$ac_config_commands cr16/Makefile"
14587
14588 as_fn_append SIM_SUBDIRS " cr16"
14589
14590 ac_config_commands="$ac_config_commands depdir-cr16"
14591
14592
14593 sim_enable_arch_cr16=true
14594
14595 ;;
14596 esac
14597
14598
14599
14600 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14601 : "${AS_FOR_TARGET_CR16:=\$(abs_builddir)/../gas/as-new}"
14602 : "${LD_FOR_TARGET_CR16:=\$(abs_builddir)/../ld/ld-new}"
14603 : "${CC_FOR_TARGET_CR16:=${target_alias}-gcc}"
14604
14605 fi
14606
14607 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14608
14609 if ${sim_enable_arch_cr16}; then
14610 SIM_ENABLE_ARCH_cr16_TRUE=
14611 SIM_ENABLE_ARCH_cr16_FALSE='#'
14612 else
14613 SIM_ENABLE_ARCH_cr16_TRUE='#'
14614 SIM_ENABLE_ARCH_cr16_FALSE=
14615 fi
14616
14617
14618 sim_enable_arch_cris=false
14619 case "${targ}" in
14620 all|cris-*-* | crisv32-*-*)
14621 if test "${targ}" = "${target}"; then
14622 SIM_PRIMARY_TARGET=cris
14623 fi
14624 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
14625
14626 ac_config_commands="$ac_config_commands cris/Makefile"
14627
14628 as_fn_append SIM_SUBDIRS " cris"
14629
14630 ac_config_commands="$ac_config_commands depdir-cris"
14631
14632
14633 sim_enable_arch_cris=true
14634
14635 ;;
14636 esac
14637
14638
14639
14640 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14641 : "${AS_FOR_TARGET_CRIS:=\$(abs_builddir)/../gas/as-new}"
14642 : "${LD_FOR_TARGET_CRIS:=\$(abs_builddir)/../ld/ld-new}"
14643 : "${CC_FOR_TARGET_CRIS:=${target_alias}-gcc}"
14644
14645 fi
14646
14647 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14648
14649 if ${sim_enable_arch_cris}; then
14650 SIM_ENABLE_ARCH_cris_TRUE=
14651 SIM_ENABLE_ARCH_cris_FALSE='#'
14652 else
14653 SIM_ENABLE_ARCH_cris_TRUE='#'
14654 SIM_ENABLE_ARCH_cris_FALSE=
14655 fi
14656
14657
14658 sim_enable_arch_d10v=false
14659 case "${targ}" in
14660 all|d10v-*-*)
14661 if test "${targ}" = "${target}"; then
14662 SIM_PRIMARY_TARGET=d10v
14663 fi
14664 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
14665
14666 ac_config_commands="$ac_config_commands d10v/Makefile"
14667
14668 as_fn_append SIM_SUBDIRS " d10v"
14669
14670 ac_config_commands="$ac_config_commands depdir-d10v"
14671
14672
14673 sim_enable_arch_d10v=true
14674
14675 ;;
14676 esac
14677
14678
14679
14680 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14681 : "${AS_FOR_TARGET_D10V:=\$(abs_builddir)/../gas/as-new}"
14682 : "${LD_FOR_TARGET_D10V:=\$(abs_builddir)/../ld/ld-new}"
14683 : "${CC_FOR_TARGET_D10V:=${target_alias}-gcc}"
14684
14685 fi
14686
14687 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14688
14689 if ${sim_enable_arch_d10v}; then
14690 SIM_ENABLE_ARCH_d10v_TRUE=
14691 SIM_ENABLE_ARCH_d10v_FALSE='#'
14692 else
14693 SIM_ENABLE_ARCH_d10v_TRUE='#'
14694 SIM_ENABLE_ARCH_d10v_FALSE=
14695 fi
14696
14697
14698 sim_enable_arch_frv=false
14699 case "${targ}" in
14700 all|frv-*-*)
14701 if test "${targ}" = "${target}"; then
14702 SIM_PRIMARY_TARGET=frv
14703 fi
14704 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
14705
14706 ac_config_commands="$ac_config_commands frv/Makefile"
14707
14708 as_fn_append SIM_SUBDIRS " frv"
14709
14710 ac_config_commands="$ac_config_commands depdir-frv"
14711
14712
14713 sim_enable_arch_frv=true
14714
14715 ;;
14716 esac
14717
14718
14719
14720 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14721 : "${AS_FOR_TARGET_FRV:=\$(abs_builddir)/../gas/as-new}"
14722 : "${LD_FOR_TARGET_FRV:=\$(abs_builddir)/../ld/ld-new}"
14723 : "${CC_FOR_TARGET_FRV:=${target_alias}-gcc}"
14724
14725 fi
14726
14727 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14728
14729 if ${sim_enable_arch_frv}; then
14730 SIM_ENABLE_ARCH_frv_TRUE=
14731 SIM_ENABLE_ARCH_frv_FALSE='#'
14732 else
14733 SIM_ENABLE_ARCH_frv_TRUE='#'
14734 SIM_ENABLE_ARCH_frv_FALSE=
14735 fi
14736
14737
14738 sim_enable_arch_ft32=false
14739 case "${targ}" in
14740 all|ft32-*-*)
14741 if test "${targ}" = "${target}"; then
14742 SIM_PRIMARY_TARGET=ft32
14743 fi
14744 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
14745
14746 ac_config_commands="$ac_config_commands ft32/Makefile"
14747
14748 as_fn_append SIM_SUBDIRS " ft32"
14749
14750 ac_config_commands="$ac_config_commands depdir-ft32"
14751
14752
14753 sim_enable_arch_ft32=true
14754
14755 ;;
14756 esac
14757
14758
14759
14760 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14761 : "${AS_FOR_TARGET_FT32:=\$(abs_builddir)/../gas/as-new}"
14762 : "${LD_FOR_TARGET_FT32:=\$(abs_builddir)/../ld/ld-new}"
14763 : "${CC_FOR_TARGET_FT32:=${target_alias}-gcc}"
14764
14765 fi
14766
14767 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14768
14769 if ${sim_enable_arch_ft32}; then
14770 SIM_ENABLE_ARCH_ft32_TRUE=
14771 SIM_ENABLE_ARCH_ft32_FALSE='#'
14772 else
14773 SIM_ENABLE_ARCH_ft32_TRUE='#'
14774 SIM_ENABLE_ARCH_ft32_FALSE=
14775 fi
14776
14777
14778 sim_enable_arch_h8300=false
14779 case "${targ}" in
14780 all|h8300*-*-*)
14781 if test "${targ}" = "${target}"; then
14782 SIM_PRIMARY_TARGET=h8300
14783 fi
14784 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
14785
14786 ac_config_commands="$ac_config_commands h8300/Makefile"
14787
14788 as_fn_append SIM_SUBDIRS " h8300"
14789
14790 ac_config_commands="$ac_config_commands depdir-h8300"
14791
14792
14793 sim_enable_arch_h8300=true
14794
14795 ;;
14796 esac
14797
14798
14799
14800 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14801 : "${AS_FOR_TARGET_H8300:=\$(abs_builddir)/../gas/as-new}"
14802 : "${LD_FOR_TARGET_H8300:=\$(abs_builddir)/../ld/ld-new}"
14803 : "${CC_FOR_TARGET_H8300:=${target_alias}-gcc}"
14804
14805 fi
14806
14807 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14808
14809 if ${sim_enable_arch_h8300}; then
14810 SIM_ENABLE_ARCH_h8300_TRUE=
14811 SIM_ENABLE_ARCH_h8300_FALSE='#'
14812 else
14813 SIM_ENABLE_ARCH_h8300_TRUE='#'
14814 SIM_ENABLE_ARCH_h8300_FALSE=
14815 fi
14816
14817
14818 sim_enable_arch_iq2000=false
14819 case "${targ}" in
14820 all|iq2000-*-*)
14821 if test "${targ}" = "${target}"; then
14822 SIM_PRIMARY_TARGET=iq2000
14823 fi
14824 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
14825
14826 ac_config_commands="$ac_config_commands iq2000/Makefile"
14827
14828 as_fn_append SIM_SUBDIRS " iq2000"
14829
14830 ac_config_commands="$ac_config_commands depdir-iq2000"
14831
14832
14833 sim_enable_arch_iq2000=true
14834
14835 ;;
14836 esac
14837
14838
14839
14840 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14841 : "${AS_FOR_TARGET_IQ2000:=\$(abs_builddir)/../gas/as-new}"
14842 : "${LD_FOR_TARGET_IQ2000:=\$(abs_builddir)/../ld/ld-new}"
14843 : "${CC_FOR_TARGET_IQ2000:=${target_alias}-gcc}"
14844
14845 fi
14846
14847 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14848
14849 if ${sim_enable_arch_iq2000}; then
14850 SIM_ENABLE_ARCH_iq2000_TRUE=
14851 SIM_ENABLE_ARCH_iq2000_FALSE='#'
14852 else
14853 SIM_ENABLE_ARCH_iq2000_TRUE='#'
14854 SIM_ENABLE_ARCH_iq2000_FALSE=
14855 fi
14856
14857
14858 sim_enable_arch_lm32=false
14859 case "${targ}" in
14860 all|lm32-*-*)
14861 if test "${targ}" = "${target}"; then
14862 SIM_PRIMARY_TARGET=lm32
14863 fi
14864 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
14865
14866 ac_config_commands="$ac_config_commands lm32/Makefile"
14867
14868 as_fn_append SIM_SUBDIRS " lm32"
14869
14870 ac_config_commands="$ac_config_commands depdir-lm32"
14871
14872
14873 sim_enable_arch_lm32=true
14874
14875 ;;
14876 esac
14877
14878
14879
14880 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
14881 : "${AS_FOR_TARGET_LM32:=\$(abs_builddir)/../gas/as-new}"
14882 : "${LD_FOR_TARGET_LM32:=\$(abs_builddir)/../ld/ld-new}"
14883 : "${CC_FOR_TARGET_LM32:=${target_alias}-gcc}"
14884
14885 fi
14886
14887 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
14888
14889 if ${sim_enable_arch_lm32}; then
14890 SIM_ENABLE_ARCH_lm32_TRUE=
14891 SIM_ENABLE_ARCH_lm32_FALSE='#'
14892 else
14893 SIM_ENABLE_ARCH_lm32_TRUE='#'
14894 SIM_ENABLE_ARCH_lm32_FALSE=
14895 fi
14896
14897
14898 sim_enable_arch_m32c=false
14899 case "${targ}" in
14900 all|m32c-*-*)
14901 if test "${targ}" = "${target}"; then
14902 SIM_PRIMARY_TARGET=m32c
14903 fi
14904 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
14905
14906 ac_config_commands="$ac_config_commands m32c/Makefile"
14907
14908 as_fn_append SIM_SUBDIRS " m32c"
14909
14910 ac_config_commands="$ac_config_commands depdir-m32c"
14911
14912
14913 sim_enable_arch_m32c=true
14914
14915 ;;
14916 esac
14917
14918
14919
14920 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
14921 : "${AS_FOR_TARGET_M32C:=\$(abs_builddir)/../gas/as-new}"
14922 : "${LD_FOR_TARGET_M32C:=\$(abs_builddir)/../ld/ld-new}"
14923 : "${CC_FOR_TARGET_M32C:=${target_alias}-gcc}"
14924
14925 fi
14926
14927 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
14928
14929 if ${sim_enable_arch_m32c}; then
14930 SIM_ENABLE_ARCH_m32c_TRUE=
14931 SIM_ENABLE_ARCH_m32c_FALSE='#'
14932 else
14933 SIM_ENABLE_ARCH_m32c_TRUE='#'
14934 SIM_ENABLE_ARCH_m32c_FALSE=
14935 fi
14936
14937
14938 sim_enable_arch_m32r=false
14939 case "${targ}" in
14940 all|m32r-*-*)
14941 if test "${targ}" = "${target}"; then
14942 SIM_PRIMARY_TARGET=m32r
14943 fi
14944 ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
14945
14946 ac_config_commands="$ac_config_commands m32r/Makefile"
14947
14948 as_fn_append SIM_SUBDIRS " m32r"
14949
14950 ac_config_commands="$ac_config_commands depdir-m32r"
14951
14952
14953 sim_enable_arch_m32r=true
14954
14955 ;;
14956 esac
14957
14958
14959
14960 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
14961 : "${AS_FOR_TARGET_M32R:=\$(abs_builddir)/../gas/as-new}"
14962 : "${LD_FOR_TARGET_M32R:=\$(abs_builddir)/../ld/ld-new}"
14963 : "${CC_FOR_TARGET_M32R:=${target_alias}-gcc}"
14964
14965 fi
14966
14967 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
14968
14969 if ${sim_enable_arch_m32r}; then
14970 SIM_ENABLE_ARCH_m32r_TRUE=
14971 SIM_ENABLE_ARCH_m32r_FALSE='#'
14972 else
14973 SIM_ENABLE_ARCH_m32r_TRUE='#'
14974 SIM_ENABLE_ARCH_m32r_FALSE=
14975 fi
14976
14977
14978 sim_enable_arch_m68hc11=false
14979 case "${targ}" in
14980 all|m68hc11-*-*|m6811-*-*)
14981 if test "${targ}" = "${target}"; then
14982 SIM_PRIMARY_TARGET=m68hc11
14983 fi
14984 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
14985
14986 ac_config_commands="$ac_config_commands m68hc11/Makefile"
14987
14988 as_fn_append SIM_SUBDIRS " m68hc11"
14989
14990 ac_config_commands="$ac_config_commands depdir-m68hc11"
14991
14992
14993 sim_enable_arch_m68hc11=true
14994
14995 ;;
14996 esac
14997
14998
14999
15000 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15001 : "${AS_FOR_TARGET_M68HC11:=\$(abs_builddir)/../gas/as-new}"
15002 : "${LD_FOR_TARGET_M68HC11:=\$(abs_builddir)/../ld/ld-new}"
15003 : "${CC_FOR_TARGET_M68HC11:=${target_alias}-gcc}"
15004
15005 fi
15006
15007 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15008
15009 if ${sim_enable_arch_m68hc11}; then
15010 SIM_ENABLE_ARCH_m68hc11_TRUE=
15011 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15012 else
15013 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15014 SIM_ENABLE_ARCH_m68hc11_FALSE=
15015 fi
15016
15017
15018 sim_enable_arch_mcore=false
15019 case "${targ}" in
15020 all|mcore-*-*)
15021 if test "${targ}" = "${target}"; then
15022 SIM_PRIMARY_TARGET=mcore
15023 fi
15024 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
15025
15026 ac_config_commands="$ac_config_commands mcore/Makefile"
15027
15028 as_fn_append SIM_SUBDIRS " mcore"
15029
15030 ac_config_commands="$ac_config_commands depdir-mcore"
15031
15032
15033 sim_enable_arch_mcore=true
15034
15035 ;;
15036 esac
15037
15038
15039
15040 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15041 : "${AS_FOR_TARGET_MCORE:=\$(abs_builddir)/../gas/as-new}"
15042 : "${LD_FOR_TARGET_MCORE:=\$(abs_builddir)/../ld/ld-new}"
15043 : "${CC_FOR_TARGET_MCORE:=${target_alias}-gcc}"
15044
15045 fi
15046
15047 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15048
15049 if ${sim_enable_arch_mcore}; then
15050 SIM_ENABLE_ARCH_mcore_TRUE=
15051 SIM_ENABLE_ARCH_mcore_FALSE='#'
15052 else
15053 SIM_ENABLE_ARCH_mcore_TRUE='#'
15054 SIM_ENABLE_ARCH_mcore_FALSE=
15055 fi
15056
15057
15058 sim_enable_arch_microblaze=false
15059 case "${targ}" in
15060 all|microblaze*-*-*)
15061 if test "${targ}" = "${target}"; then
15062 SIM_PRIMARY_TARGET=microblaze
15063 fi
15064 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
15065
15066 ac_config_commands="$ac_config_commands microblaze/Makefile"
15067
15068 as_fn_append SIM_SUBDIRS " microblaze"
15069
15070 ac_config_commands="$ac_config_commands depdir-microblaze"
15071
15072
15073 sim_enable_arch_microblaze=true
15074
15075 ;;
15076 esac
15077
15078
15079
15080 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15081 : "${AS_FOR_TARGET_MICROBLAZE:=\$(abs_builddir)/../gas/as-new}"
15082 : "${LD_FOR_TARGET_MICROBLAZE:=\$(abs_builddir)/../ld/ld-new}"
15083 : "${CC_FOR_TARGET_MICROBLAZE:=${target_alias}-gcc}"
15084
15085 fi
15086
15087 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15088
15089 if ${sim_enable_arch_microblaze}; then
15090 SIM_ENABLE_ARCH_microblaze_TRUE=
15091 SIM_ENABLE_ARCH_microblaze_FALSE='#'
15092 else
15093 SIM_ENABLE_ARCH_microblaze_TRUE='#'
15094 SIM_ENABLE_ARCH_microblaze_FALSE=
15095 fi
15096
15097
15098 sim_enable_arch_mips=false
15099 case "${targ}" in
15100 all|mips*-*-*)
15101 if test "${targ}" = "${target}"; then
15102 SIM_PRIMARY_TARGET=mips
15103 fi
15104 subdirs="$subdirs mips"
15105
15106
15107 ac_config_commands="$ac_config_commands depdir-mips"
15108
15109
15110 sim_enable_arch_mips=true
15111 sim_igen=yes
15112 ;;
15113 esac
15114
15115
15116
15117 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15118 : "${AS_FOR_TARGET_MIPS:=\$(abs_builddir)/../gas/as-new}"
15119 : "${LD_FOR_TARGET_MIPS:=\$(abs_builddir)/../ld/ld-new}"
15120 : "${CC_FOR_TARGET_MIPS:=${target_alias}-gcc}"
15121
15122 fi
15123
15124 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15125
15126 if ${sim_enable_arch_mips}; then
15127 SIM_ENABLE_ARCH_mips_TRUE=
15128 SIM_ENABLE_ARCH_mips_FALSE='#'
15129 else
15130 SIM_ENABLE_ARCH_mips_TRUE='#'
15131 SIM_ENABLE_ARCH_mips_FALSE=
15132 fi
15133
15134
15135 sim_enable_arch_mn10300=false
15136 case "${targ}" in
15137 all|mn10300*-*-*)
15138 if test "${targ}" = "${target}"; then
15139 SIM_PRIMARY_TARGET=mn10300
15140 fi
15141 subdirs="$subdirs mn10300"
15142
15143
15144 ac_config_commands="$ac_config_commands depdir-mn10300"
15145
15146
15147 sim_enable_arch_mn10300=true
15148 sim_igen=yes
15149 ;;
15150 esac
15151
15152
15153
15154 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15155 : "${AS_FOR_TARGET_MN10300:=\$(abs_builddir)/../gas/as-new}"
15156 : "${LD_FOR_TARGET_MN10300:=\$(abs_builddir)/../ld/ld-new}"
15157 : "${CC_FOR_TARGET_MN10300:=${target_alias}-gcc}"
15158
15159 fi
15160
15161 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15162
15163 if ${sim_enable_arch_mn10300}; then
15164 SIM_ENABLE_ARCH_mn10300_TRUE=
15165 SIM_ENABLE_ARCH_mn10300_FALSE='#'
15166 else
15167 SIM_ENABLE_ARCH_mn10300_TRUE='#'
15168 SIM_ENABLE_ARCH_mn10300_FALSE=
15169 fi
15170
15171
15172 sim_enable_arch_moxie=false
15173 case "${targ}" in
15174 all|moxie-*-*)
15175 if test "${targ}" = "${target}"; then
15176 SIM_PRIMARY_TARGET=moxie
15177 fi
15178 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
15179
15180 ac_config_commands="$ac_config_commands moxie/Makefile"
15181
15182 as_fn_append SIM_SUBDIRS " moxie"
15183
15184 ac_config_commands="$ac_config_commands depdir-moxie"
15185
15186
15187 sim_enable_arch_moxie=true
15188
15189 ;;
15190 esac
15191
15192
15193
15194 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15195 : "${AS_FOR_TARGET_MOXIE:=\$(abs_builddir)/../gas/as-new}"
15196 : "${LD_FOR_TARGET_MOXIE:=\$(abs_builddir)/../ld/ld-new}"
15197 : "${CC_FOR_TARGET_MOXIE:=${target_alias}-gcc}"
15198
15199 fi
15200
15201 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15202
15203 if ${sim_enable_arch_moxie}; then
15204 SIM_ENABLE_ARCH_moxie_TRUE=
15205 SIM_ENABLE_ARCH_moxie_FALSE='#'
15206 else
15207 SIM_ENABLE_ARCH_moxie_TRUE='#'
15208 SIM_ENABLE_ARCH_moxie_FALSE=
15209 fi
15210
15211
15212 sim_enable_arch_msp430=false
15213 case "${targ}" in
15214 all|msp430*-*-*)
15215 if test "${targ}" = "${target}"; then
15216 SIM_PRIMARY_TARGET=msp430
15217 fi
15218 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
15219
15220 ac_config_commands="$ac_config_commands msp430/Makefile"
15221
15222 as_fn_append SIM_SUBDIRS " msp430"
15223
15224 ac_config_commands="$ac_config_commands depdir-msp430"
15225
15226
15227 sim_enable_arch_msp430=true
15228
15229 ;;
15230 esac
15231
15232
15233
15234 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15235 : "${AS_FOR_TARGET_MSP430:=\$(abs_builddir)/../gas/as-new}"
15236 : "${LD_FOR_TARGET_MSP430:=\$(abs_builddir)/../ld/ld-new}"
15237 : "${CC_FOR_TARGET_MSP430:=${target_alias}-gcc}"
15238
15239 fi
15240
15241 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15242
15243 if ${sim_enable_arch_msp430}; then
15244 SIM_ENABLE_ARCH_msp430_TRUE=
15245 SIM_ENABLE_ARCH_msp430_FALSE='#'
15246 else
15247 SIM_ENABLE_ARCH_msp430_TRUE='#'
15248 SIM_ENABLE_ARCH_msp430_FALSE=
15249 fi
15250
15251
15252 sim_enable_arch_or1k=false
15253 case "${targ}" in
15254 all|or1k*-*-*)
15255 if test "${targ}" = "${target}"; then
15256 SIM_PRIMARY_TARGET=or1k
15257 fi
15258 subdirs="$subdirs or1k"
15259
15260
15261 ac_config_commands="$ac_config_commands depdir-or1k"
15262
15263
15264 sim_enable_arch_or1k=true
15265
15266 ;;
15267 esac
15268
15269
15270
15271 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15272 : "${AS_FOR_TARGET_OR1K:=\$(abs_builddir)/../gas/as-new}"
15273 : "${LD_FOR_TARGET_OR1K:=\$(abs_builddir)/../ld/ld-new}"
15274 : "${CC_FOR_TARGET_OR1K:=${target_alias}-gcc}"
15275
15276 fi
15277
15278 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15279
15280 if ${sim_enable_arch_or1k}; then
15281 SIM_ENABLE_ARCH_or1k_TRUE=
15282 SIM_ENABLE_ARCH_or1k_FALSE='#'
15283 else
15284 SIM_ENABLE_ARCH_or1k_TRUE='#'
15285 SIM_ENABLE_ARCH_or1k_FALSE=
15286 fi
15287
15288
15289 sim_enable_arch_ppc=false
15290 case "${targ}" in
15291 all|powerpc*-*-*)
15292 if test "${targ}" = "${target}"; then
15293 SIM_PRIMARY_TARGET=ppc
15294 fi
15295 subdirs="$subdirs ppc"
15296
15297
15298 ac_config_commands="$ac_config_commands depdir-ppc"
15299
15300
15301 sim_enable_arch_ppc=true
15302
15303 ;;
15304 esac
15305
15306
15307
15308 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15309 : "${AS_FOR_TARGET_PPC:=\$(abs_builddir)/../gas/as-new}"
15310 : "${LD_FOR_TARGET_PPC:=\$(abs_builddir)/../ld/ld-new}"
15311 : "${CC_FOR_TARGET_PPC:=${target_alias}-gcc}"
15312
15313 fi
15314
15315 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15316
15317 if ${sim_enable_arch_ppc}; then
15318 SIM_ENABLE_ARCH_ppc_TRUE=
15319 SIM_ENABLE_ARCH_ppc_FALSE='#'
15320 else
15321 SIM_ENABLE_ARCH_ppc_TRUE='#'
15322 SIM_ENABLE_ARCH_ppc_FALSE=
15323 fi
15324
15325
15326 sim_enable_arch_pru=false
15327 case "${targ}" in
15328 all|pru*-*-*)
15329 if test "${targ}" = "${target}"; then
15330 SIM_PRIMARY_TARGET=pru
15331 fi
15332 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
15333
15334 ac_config_commands="$ac_config_commands pru/Makefile"
15335
15336 as_fn_append SIM_SUBDIRS " pru"
15337
15338 ac_config_commands="$ac_config_commands depdir-pru"
15339
15340
15341 sim_enable_arch_pru=true
15342
15343 ;;
15344 esac
15345
15346
15347
15348 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15349 : "${AS_FOR_TARGET_PRU:=\$(abs_builddir)/../gas/as-new}"
15350 : "${LD_FOR_TARGET_PRU:=\$(abs_builddir)/../ld/ld-new}"
15351 : "${CC_FOR_TARGET_PRU:=${target_alias}-gcc}"
15352
15353 fi
15354
15355 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15356
15357 if ${sim_enable_arch_pru}; then
15358 SIM_ENABLE_ARCH_pru_TRUE=
15359 SIM_ENABLE_ARCH_pru_FALSE='#'
15360 else
15361 SIM_ENABLE_ARCH_pru_TRUE='#'
15362 SIM_ENABLE_ARCH_pru_FALSE=
15363 fi
15364
15365
15366 sim_enable_arch_riscv=false
15367 case "${targ}" in
15368 all|riscv*-*-*)
15369 if test "${targ}" = "${target}"; then
15370 SIM_PRIMARY_TARGET=riscv
15371 fi
15372 subdirs="$subdirs riscv"
15373
15374
15375 ac_config_commands="$ac_config_commands depdir-riscv"
15376
15377
15378 sim_enable_arch_riscv=true
15379
15380 ;;
15381 esac
15382
15383
15384
15385 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15386 : "${AS_FOR_TARGET_RISCV:=\$(abs_builddir)/../gas/as-new}"
15387 : "${LD_FOR_TARGET_RISCV:=\$(abs_builddir)/../ld/ld-new}"
15388 : "${CC_FOR_TARGET_RISCV:=${target_alias}-gcc}"
15389
15390 fi
15391
15392 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15393
15394 if ${sim_enable_arch_riscv}; then
15395 SIM_ENABLE_ARCH_riscv_TRUE=
15396 SIM_ENABLE_ARCH_riscv_FALSE='#'
15397 else
15398 SIM_ENABLE_ARCH_riscv_TRUE='#'
15399 SIM_ENABLE_ARCH_riscv_FALSE=
15400 fi
15401
15402
15403 sim_enable_arch_rl78=false
15404 case "${targ}" in
15405 all|rl78-*-*)
15406 if test "${targ}" = "${target}"; then
15407 SIM_PRIMARY_TARGET=rl78
15408 fi
15409 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
15410
15411 ac_config_commands="$ac_config_commands rl78/Makefile"
15412
15413 as_fn_append SIM_SUBDIRS " rl78"
15414
15415 ac_config_commands="$ac_config_commands depdir-rl78"
15416
15417
15418 sim_enable_arch_rl78=true
15419
15420 ;;
15421 esac
15422
15423
15424
15425 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15426 : "${AS_FOR_TARGET_RL78:=\$(abs_builddir)/../gas/as-new}"
15427 : "${LD_FOR_TARGET_RL78:=\$(abs_builddir)/../ld/ld-new}"
15428 : "${CC_FOR_TARGET_RL78:=${target_alias}-gcc}"
15429
15430 fi
15431
15432 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15433
15434 if ${sim_enable_arch_rl78}; then
15435 SIM_ENABLE_ARCH_rl78_TRUE=
15436 SIM_ENABLE_ARCH_rl78_FALSE='#'
15437 else
15438 SIM_ENABLE_ARCH_rl78_TRUE='#'
15439 SIM_ENABLE_ARCH_rl78_FALSE=
15440 fi
15441
15442
15443 sim_enable_arch_rx=false
15444 case "${targ}" in
15445 all|rx-*-*)
15446 if test "${targ}" = "${target}"; then
15447 SIM_PRIMARY_TARGET=rx
15448 fi
15449 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
15450
15451 ac_config_commands="$ac_config_commands rx/Makefile"
15452
15453 as_fn_append SIM_SUBDIRS " rx"
15454
15455 ac_config_commands="$ac_config_commands depdir-rx"
15456
15457
15458 sim_enable_arch_rx=true
15459
15460 ;;
15461 esac
15462
15463
15464
15465 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15466 : "${AS_FOR_TARGET_RX:=\$(abs_builddir)/../gas/as-new}"
15467 : "${LD_FOR_TARGET_RX:=\$(abs_builddir)/../ld/ld-new}"
15468 : "${CC_FOR_TARGET_RX:=${target_alias}-gcc}"
15469
15470 fi
15471
15472 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15473
15474 if ${sim_enable_arch_rx}; then
15475 SIM_ENABLE_ARCH_rx_TRUE=
15476 SIM_ENABLE_ARCH_rx_FALSE='#'
15477 else
15478 SIM_ENABLE_ARCH_rx_TRUE='#'
15479 SIM_ENABLE_ARCH_rx_FALSE=
15480 fi
15481
15482
15483 sim_enable_arch_sh=false
15484 case "${targ}" in
15485 all|sh*-*-*)
15486 if test "${targ}" = "${target}"; then
15487 SIM_PRIMARY_TARGET=sh
15488 fi
15489 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
15490
15491 ac_config_commands="$ac_config_commands sh/Makefile"
15492
15493 as_fn_append SIM_SUBDIRS " sh"
15494
15495 ac_config_commands="$ac_config_commands depdir-sh"
15496
15497
15498 sim_enable_arch_sh=true
15499
15500 ;;
15501 esac
15502
15503
15504
15505 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15506 : "${AS_FOR_TARGET_SH:=\$(abs_builddir)/../gas/as-new}"
15507 : "${LD_FOR_TARGET_SH:=\$(abs_builddir)/../ld/ld-new}"
15508 : "${CC_FOR_TARGET_SH:=${target_alias}-gcc}"
15509
15510 fi
15511
15512 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15513
15514 if ${sim_enable_arch_sh}; then
15515 SIM_ENABLE_ARCH_sh_TRUE=
15516 SIM_ENABLE_ARCH_sh_FALSE='#'
15517 else
15518 SIM_ENABLE_ARCH_sh_TRUE='#'
15519 SIM_ENABLE_ARCH_sh_FALSE=
15520 fi
15521
15522
15523 sim_enable_arch_erc32=false
15524 case "${targ}" in
15525 all|sparc-*-*)
15526 if test "${targ}" = "${target}"; then
15527 SIM_PRIMARY_TARGET=erc32
15528 fi
15529 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
15530
15531 ac_config_commands="$ac_config_commands erc32/Makefile"
15532
15533 as_fn_append SIM_SUBDIRS " erc32"
15534
15535 ac_config_commands="$ac_config_commands depdir-erc32"
15536
15537
15538 sim_enable_arch_erc32=true
15539
15540 ;;
15541 esac
15542
15543
15544
15545 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15546 : "${AS_FOR_TARGET_ERC32:=\$(abs_builddir)/../gas/as-new}"
15547 : "${LD_FOR_TARGET_ERC32:=\$(abs_builddir)/../ld/ld-new}"
15548 : "${CC_FOR_TARGET_ERC32:=${target_alias}-gcc}"
15549
15550 fi
15551
15552 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15553
15554 if ${sim_enable_arch_erc32}; then
15555 SIM_ENABLE_ARCH_erc32_TRUE=
15556 SIM_ENABLE_ARCH_erc32_FALSE='#'
15557 else
15558 SIM_ENABLE_ARCH_erc32_TRUE='#'
15559 SIM_ENABLE_ARCH_erc32_FALSE=
15560 fi
15561
15562
15563 sim_enable_arch_v850=false
15564 case "${targ}" in
15565 all|v850*-*-*)
15566 if test "${targ}" = "${target}"; then
15567 SIM_PRIMARY_TARGET=v850
15568 fi
15569 subdirs="$subdirs v850"
15570
15571
15572 ac_config_commands="$ac_config_commands depdir-v850"
15573
15574
15575 sim_enable_arch_v850=true
15576 sim_igen=yes
15577 ;;
15578 esac
15579
15580
15581
15582 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15583 : "${AS_FOR_TARGET_V850:=\$(abs_builddir)/../gas/as-new}"
15584 : "${LD_FOR_TARGET_V850:=\$(abs_builddir)/../ld/ld-new}"
15585 : "${CC_FOR_TARGET_V850:=${target_alias}-gcc}"
15586
15587 fi
15588
15589 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15590
15591 if ${sim_enable_arch_v850}; then
15592 SIM_ENABLE_ARCH_v850_TRUE=
15593 SIM_ENABLE_ARCH_v850_FALSE='#'
15594 else
15595 SIM_ENABLE_ARCH_v850_TRUE='#'
15596 SIM_ENABLE_ARCH_v850_FALSE=
15597 fi
15598
15599
15600 done
15601
15602 if test "x${enable_example_sims}" = xyes; then
15603
15604
15605
15606 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(abs_builddir)/../gas/as-new}"
15607 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(abs_builddir)/../ld/ld-new}"
15608 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15609
15610 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15611
15612 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
15613
15614 ac_config_commands="$ac_config_commands example-synacor/Makefile"
15615
15616 as_fn_append SIM_SUBDIRS " example-synacor"
15617
15618 ac_config_commands="$ac_config_commands depdir-example-synacor"
15619
15620
15621 fi
15622 fi
15623 if test "$sim_igen" = "yes"; then
15624 SIM_ENABLE_IGEN_TRUE=
15625 SIM_ENABLE_IGEN_FALSE='#'
15626 else
15627 SIM_ENABLE_IGEN_TRUE='#'
15628 SIM_ENABLE_IGEN_FALSE=
15629 fi
15630
15631 if test -n "$SIM_SUBDIRS"; then
15632 ENABLE_SIM_TRUE=
15633 ENABLE_SIM_FALSE='#'
15634 else
15635 ENABLE_SIM_TRUE='#'
15636 ENABLE_SIM_FALSE=
15637 fi
15638
15639
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15641 $as_echo_n "checking whether to force sim alignment... " >&6; }
15642 sim_alignment=
15643 # Check whether --enable-sim-alignment was given.
15644 if test "${enable_sim_alignment+set}" = set; then :
15645 enableval=$enable_sim_alignment; case "${enableval}" in
15646 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15647 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15648 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15649 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15650 esac
15651 fi
15652
15653 cat >>confdefs.h <<_ACEOF
15654 #define WITH_ALIGNMENT ${sim_alignment:-0}
15655 _ACEOF
15656
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15658 $as_echo "${sim_alignment:-no}" >&6; }
15659
15660
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15662 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15663 sim_assert="1"
15664 # Check whether --enable-sim-assert was given.
15665 if test "${enable_sim_assert+set}" = set; then :
15666 enableval=$enable_sim_assert; case "${enableval}" in
15667 yes) sim_assert="1";;
15668 no) sim_assert="0";;
15669 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15670 esac
15671 fi
15672
15673 cat >>confdefs.h <<_ACEOF
15674 #define WITH_ASSERT $sim_assert
15675 _ACEOF
15676
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15678 $as_echo "$sim_assert" >&6; }
15679
15680
15681 cgen_maint=no
15682 cgen=guile
15683 cgendir='$(srcdir)/../../cgen'
15684 # Check whether --enable-cgen-maint was given.
15685 if test "${enable_cgen_maint+set}" = set; then :
15686 enableval=$enable_cgen_maint; case "${enableval}" in
15687 yes) cgen_maint=yes ;;
15688 no) cgen_maint=no ;;
15689 *)
15690 # Argument is a directory where cgen can be found. In some
15691 # future world cgen could be installable, but right now this
15692 # is not the case. Instead we assume the directory is a path
15693 # to the cgen source tree.
15694 cgen_maint=yes
15695 if test -r ${enableval}/iformat.scm; then
15696 # This looks like a cgen source tree.
15697 cgendir=${enableval}
15698 else
15699 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15700 fi
15701 ;;
15702 esac
15703 fi
15704 if test x${cgen_maint} != xno ; then
15705 CGEN_MAINT=''
15706 else
15707 CGEN_MAINT='#'
15708 fi
15709
15710
15711
15712
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15714 $as_echo_n "checking for sim debug setting... " >&6; }
15715 sim_debug="0"
15716 # Check whether --enable-sim-debug was given.
15717 if test "${enable_sim_debug+set}" = set; then :
15718 enableval=$enable_sim_debug; case "${enableval}" in
15719 yes) sim_debug="7";;
15720 no) sim_debug="0";;
15721 *) sim_debug="($enableval)";;
15722 esac
15723 fi
15724 if test "$sim_debug" != "0"; then
15725
15726 cat >>confdefs.h <<_ACEOF
15727 #define DEBUG $sim_debug
15728 _ACEOF
15729
15730 fi
15731
15732 cat >>confdefs.h <<_ACEOF
15733 #define WITH_DEBUG $sim_debug
15734 _ACEOF
15735
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15737 $as_echo "$sim_debug" >&6; }
15738
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15740 $as_echo_n "checking whether to force sim endianness... " >&6; }
15741 sim_endian=
15742 # Check whether --enable-sim-endian was given.
15743 if test "${enable_sim_endian+set}" = set; then :
15744 enableval=$enable_sim_endian; case "${enableval}" in
15745 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15746 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15747 yes | no) ;;
15748 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15749 esac
15750 fi
15751
15752 cat >>confdefs.h <<_ACEOF
15753 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15754 _ACEOF
15755
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15757 $as_echo "${sim_alignment:-no}" >&6; }
15758
15759
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15761 $as_echo_n "checking default sim environment setting... " >&6; }
15762 sim_environment="ALL_ENVIRONMENT"
15763 # Check whether --enable-sim-environment was given.
15764 if test "${enable_sim_environment+set}" = set; then :
15765 enableval=$enable_sim_environment; case "${enableval}" in
15766 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15767 user | USER) sim_environment="USER_ENVIRONMENT";;
15768 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15769 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15770 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15771 esac
15772 fi
15773
15774 cat >>confdefs.h <<_ACEOF
15775 #define WITH_ENVIRONMENT $sim_environment
15776 _ACEOF
15777
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15779 $as_echo "$sim_environment" >&6; }
15780
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15782 $as_echo_n "checking for sim hardware settings... " >&6; }
15783 # Check whether --enable-sim-hardware was given.
15784 if test "${enable_sim_hardware+set}" = set; then :
15785 enableval=$enable_sim_hardware;
15786 else
15787 enable_sim_hardware="yes"
15788 fi
15789
15790 sim_hw_sockser=
15791 if test "$enable_sim_hardware" = no; then
15792 sim_hw_cflags="-DWITH_HW=0"
15793 elif test "$enable_sim_hardware" = yes; then
15794 sim_hw_cflags="-DWITH_HW=1"
15795 sim_hw_sockser="dv-sockser.o"
15796 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15797 else
15798 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15799 fi
15800 if test "$enable_sim_hardware" = "yes"; then
15801 SIM_ENABLE_HW_TRUE=
15802 SIM_ENABLE_HW_FALSE='#'
15803 else
15804 SIM_ENABLE_HW_TRUE='#'
15805 SIM_ENABLE_HW_FALSE=
15806 fi
15807
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15809 $as_echo "${enable_sim_hardware}" >&6; }
15810
15811
15812
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15814 $as_echo_n "checking sim inline settings... " >&6; }
15815 sim_inline="-DDEFAULT_INLINE=0"
15816 # Check whether --enable-sim-inline was given.
15817 if test "${enable_sim_inline+set}" = set; then :
15818 enableval=$enable_sim_inline; sim_inline=""
15819 case "$enableval" in
15820 no) sim_inline="-DDEFAULT_INLINE=0";;
15821 0) sim_inline="-DDEFAULT_INLINE=0";;
15822 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15823 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15824 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15825 new_flag=""
15826 case "$x" in
15827 *_INLINE=*) new_flag="-D$x";;
15828 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15829 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15830 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15831 esac
15832 if test x"$sim_inline" = x""; then
15833 sim_inline="$new_flag"
15834 else
15835 sim_inline="$sim_inline $new_flag"
15836 fi
15837 done;;
15838 esac
15839
15840 fi
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15842 $as_echo "$sim_inline" >&6; }
15843 SIM_INLINE=$sim_inline
15844
15845
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15847 $as_echo_n "checking for sim profile settings... " >&6; }
15848 profile="1"
15849 sim_profile="-1"
15850 # Check whether --enable-sim-profile was given.
15851 if test "${enable_sim_profile+set}" = set; then :
15852 enableval=$enable_sim_profile; case "${enableval}" in
15853 yes) profile="1" sim_profile="-1";;
15854 no) profile="0" sim_profile="0";;
15855 [-0-9]*)
15856 profile="(${enableval})" sim_profile="(${enableval})";;
15857 [a-z]*)
15858 profile="1"
15859 sim_profile=""
15860 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15861 if test x"$sim_profile" = x; then
15862 sim_profile="(PROFILE_$x"
15863 else
15864 sim_profile="${sim_profile}|PROFILE_$x"
15865 fi
15866 done
15867 sim_profile="$sim_profile)" ;;
15868 esac
15869 fi
15870
15871 cat >>confdefs.h <<_ACEOF
15872 #define PROFILE $profile
15873 _ACEOF
15874
15875
15876 cat >>confdefs.h <<_ACEOF
15877 #define WITH_PROFILE $sim_profile
15878 _ACEOF
15879
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
15881 $as_echo "$sim_profile" >&6; }
15882
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
15884 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
15885 # Check whether --enable-sim-reserved-bits was given.
15886 if test "${enable_sim_reserved_bits+set}" = set; then :
15887 enableval=$enable_sim_reserved_bits; case "${enableval}" in
15888 yes|no) ;;
15889 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
15890 esac
15891 fi
15892
15893 if test "x${enable_sim_reserved_bits}" != xno; then
15894 sim_reserved_bits=1
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15896 $as_echo "yes" >&6; }
15897 else
15898 sim_reserved_bits=0
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900 $as_echo "no" >&6; }
15901 fi
15902
15903 cat >>confdefs.h <<_ACEOF
15904 #define WITH_RESERVED_BITS $sim_reserved_bits
15905 _ACEOF
15906
15907
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
15909 $as_echo_n "checking for sim cache size... " >&6; }
15910 sim_scache="16384"
15911 # Check whether --enable-sim-scache was given.
15912 if test "${enable_sim_scache+set}" = set; then :
15913 enableval=$enable_sim_scache; case "${enableval}" in
15914 yes) ;;
15915 no) sim_scache="0";;
15916 [0-9]*) sim_scache="${enableval}";;
15917 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
15918 esac
15919 fi
15920
15921
15922 cat >>confdefs.h <<_ACEOF
15923 #define WITH_SCACHE $sim_scache
15924 _ACEOF
15925
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
15927 $as_echo "$sim_scache" >&6; }
15928
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
15930 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
15931 sim_stdio="0"
15932 # Check whether --enable-sim-stdio was given.
15933 if test "${enable_sim_stdio+set}" = set; then :
15934 enableval=$enable_sim_stdio; case "${enableval}" in
15935 yes) sim_stdio="DO_USE_STDIO";;
15936 no) sim_stdio="DONT_USE_STDIO";;
15937 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
15938 esac
15939 fi
15940
15941 cat >>confdefs.h <<_ACEOF
15942 #define WITH_STDIO $sim_stdio
15943 _ACEOF
15944
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
15946 $as_echo "$sim_stdio" >&6; }
15947
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
15949 $as_echo_n "checking for sim trace settings... " >&6; }
15950 sim_trace="~TRACE_debug"
15951 # Check whether --enable-sim-trace was given.
15952 if test "${enable_sim_trace+set}" = set; then :
15953 enableval=$enable_sim_trace; case "${enableval}" in
15954 yes) sim_trace="-1";;
15955 no) sim_trace="0";;
15956 [-0-9]*)
15957 sim_trace="'(${enableval})'";;
15958 [[:lower:]]*)
15959 sim_trace=""
15960 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15961 if test x"$sim_trace" = x; then
15962 sim_trace="(TRACE_$x"
15963 else
15964 sim_trace="${sim_trace}|TRACE_$x"
15965 fi
15966 done
15967 sim_trace="$sim_trace)" ;;
15968 esac
15969 fi
15970
15971 cat >>confdefs.h <<_ACEOF
15972 #define WITH_TRACE $sim_trace
15973 _ACEOF
15974
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
15976 $as_echo "$sim_trace" >&6; }
15977
15978
15979 # Check whether --enable-werror was given.
15980 if test "${enable_werror+set}" = set; then :
15981 enableval=$enable_werror; case "${enableval}" in
15982 yes | y) ERROR_ON_WARNING="yes" ;;
15983 no | n) ERROR_ON_WARNING="no" ;;
15984 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15985 esac
15986 fi
15987
15988
15989 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15990 ERROR_ON_WARNING=yes
15991 fi
15992
15993 WERROR_CFLAGS=""
15994 if test "${ERROR_ON_WARNING}" = yes ; then
15995 WERROR_CFLAGS="-Werror"
15996 fi
15997
15998 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
15999 -Wno-unused -Wunused-value -Wunused-function
16000 -Wno-switch -Wno-char-subscripts
16001 -Wempty-body -Wunused-but-set-parameter
16002 -Wno-error=maybe-uninitialized
16003 -Wmissing-declarations
16004 -Wmissing-prototypes
16005 -Wdeclaration-after-statement -Wmissing-parameter-type
16006 -Wpointer-sign
16007 -Wold-style-declaration -Wold-style-definition
16008 "
16009
16010 # Enable -Wno-format by default when using gcc on mingw since many
16011 # GCC versions complain about %I64.
16012 case "${host}" in
16013 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
16014 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
16015 esac
16016
16017 # Check whether --enable-build-warnings was given.
16018 if test "${enable_build_warnings+set}" = set; then :
16019 enableval=$enable_build_warnings; case "${enableval}" in
16020 yes) ;;
16021 no) build_warnings="-w";;
16022 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16023 build_warnings="${build_warnings} ${t}";;
16024 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16025 build_warnings="${t} ${build_warnings}";;
16026 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16027 esac
16028 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16029 echo "Setting compiler warning flags = $build_warnings" 6>&1
16030 fi
16031 fi
16032 # Check whether --enable-sim-build-warnings was given.
16033 if test "${enable_sim_build_warnings+set}" = set; then :
16034 enableval=$enable_sim_build_warnings; case "${enableval}" in
16035 yes) ;;
16036 no) build_warnings="-w";;
16037 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16038 build_warnings="${build_warnings} ${t}";;
16039 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16040 build_warnings="${t} ${build_warnings}";;
16041 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16042 esac
16043 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16044 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16045 fi
16046 fi
16047 WARN_CFLAGS=""
16048 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16049 then
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16051 $as_echo_n "checking compiler warning flags... " >&6; }
16052 # Separate out the -Werror flag as some files just cannot be
16053 # compiled with it enabled.
16054 for w in ${build_warnings}; do
16055 case $w in
16056 -Werr*) WERROR_CFLAGS=-Werror ;;
16057 *) # Check that GCC accepts it
16058 saved_CFLAGS="$CFLAGS"
16059 CFLAGS="$CFLAGS -Werror $w"
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062
16063 int
16064 main ()
16065 {
16066
16067 ;
16068 return 0;
16069 }
16070 _ACEOF
16071 if ac_fn_c_try_compile "$LINENO"; then :
16072 WARN_CFLAGS="${WARN_CFLAGS} $w"
16073 fi
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 CFLAGS="$saved_CFLAGS"
16076 esac
16077 done
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16079 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16080 fi
16081
16082
16083
16084
16085
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16087 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16088 # Check whether --enable-sim-frv-trapdump was given.
16089 if test "${enable_sim_frv_trapdump+set}" = set; then :
16090 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16091 yes|no) ;;
16092 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16093 esac
16094 fi
16095
16096 if test "x${enable_sim_frv_trapdump}" = xyes; then
16097 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16099 $as_echo "yes" >&6; }
16100 else
16101 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16103 $as_echo "no" >&6; }
16104 fi
16105
16106
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16108 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16109 # Check whether --enable-sim-rx-cycle-accurate was given.
16110 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16111 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16112 yes | no) ;;
16113 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16114 esac
16115 fi
16116
16117 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16118 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16120 $as_echo "yes" >&6; }
16121 else
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16123 $as_echo "no" >&6; }
16124 fi
16125
16126
16127
16128 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
16129
16130 cat >confcache <<\_ACEOF
16131 # This file is a shell script that caches the results of configure
16132 # tests run on this system so they can be shared between configure
16133 # scripts and configure runs, see configure's option --config-cache.
16134 # It is not useful on other systems. If it contains results you don't
16135 # want to keep, you may remove or edit it.
16136 #
16137 # config.status only pays attention to the cache file if you give it
16138 # the --recheck option to rerun configure.
16139 #
16140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16142 # following values.
16143
16144 _ACEOF
16145
16146 # The following way of writing the cache mishandles newlines in values,
16147 # but we know of no workaround that is simple, portable, and efficient.
16148 # So, we kill variables containing newlines.
16149 # Ultrix sh set writes to stderr and can't be redirected directly,
16150 # and sets the high bit in the cache file unless we assign to the vars.
16151 (
16152 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16153 eval ac_val=\$$ac_var
16154 case $ac_val in #(
16155 *${as_nl}*)
16156 case $ac_var in #(
16157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16159 esac
16160 case $ac_var in #(
16161 _ | IFS | as_nl) ;; #(
16162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16163 *) { eval $ac_var=; unset $ac_var;} ;;
16164 esac ;;
16165 esac
16166 done
16167
16168 (set) 2>&1 |
16169 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16170 *${as_nl}ac_space=\ *)
16171 # `set' does not quote correctly, so add quotes: double-quote
16172 # substitution turns \\\\ into \\, and sed turns \\ into \.
16173 sed -n \
16174 "s/'/'\\\\''/g;
16175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16176 ;; #(
16177 *)
16178 # `set' quotes correctly as required by POSIX, so do not add quotes.
16179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16180 ;;
16181 esac |
16182 sort
16183 ) |
16184 sed '
16185 /^ac_cv_env_/b end
16186 t clear
16187 :clear
16188 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16189 t end
16190 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16191 :end' >>confcache
16192 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16193 if test -w "$cache_file"; then
16194 if test "x$cache_file" != "x/dev/null"; then
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16196 $as_echo "$as_me: updating cache $cache_file" >&6;}
16197 if test ! -f "$cache_file" || test -h "$cache_file"; then
16198 cat confcache >"$cache_file"
16199 else
16200 case $cache_file in #(
16201 */* | ?:*)
16202 mv -f confcache "$cache_file"$$ &&
16203 mv -f "$cache_file"$$ "$cache_file" ;; #(
16204 *)
16205 mv -f confcache "$cache_file" ;;
16206 esac
16207 fi
16208 fi
16209 else
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16211 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16212 fi
16213 fi
16214 rm -f confcache
16215
16216 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16217 # Let make expand exec_prefix.
16218 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16219
16220 DEFS=-DHAVE_CONFIG_H
16221
16222 ac_libobjs=
16223 ac_ltlibobjs=
16224 U=
16225 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16226 # 1. Remove the extension, and $U if already installed.
16227 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16228 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16229 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16230 # will be set to the directory where LIBOBJS objects are built.
16231 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16232 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16233 done
16234 LIBOBJS=$ac_libobjs
16235
16236 LTLIBOBJS=$ac_ltlibobjs
16237
16238
16239
16240 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16241 as_fn_error $? "conditional \"PLUGINS\" was never defined.
16242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16243 fi
16244 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16245 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16247 fi
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16249 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16250 if test -n "$am_sleep_pid"; then
16251 # Hide warnings about reused PIDs.
16252 wait $am_sleep_pid 2>/dev/null
16253 fi
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16255 $as_echo "done" >&6; }
16256 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16257 as_fn_error $? "conditional \"AMDEP\" was never defined.
16258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16259 fi
16260 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16261 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16263 fi
16264 if test -n "$EXEEXT"; then
16265 am__EXEEXT_TRUE=
16266 am__EXEEXT_FALSE='#'
16267 else
16268 am__EXEEXT_TRUE='#'
16269 am__EXEEXT_FALSE=
16270 fi
16271
16272 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16273 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16275 fi
16276 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16277 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16279 fi
16280 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16281 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16283 fi
16284 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16285 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16287 fi
16288 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16289 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16291 fi
16292 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16293 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16295 fi
16296 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16297 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16299 fi
16300 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16301 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16303 fi
16304 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16305 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16307 fi
16308 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16309 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16311 fi
16312 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16313 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16315 fi
16316 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16317 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16319 fi
16320 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16321 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16323 fi
16324 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16325 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16327 fi
16328 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16329 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16331 fi
16332 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16333 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16335 fi
16336 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16337 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16339 fi
16340 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16341 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16343 fi
16344 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16345 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16347 fi
16348 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16349 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16351 fi
16352 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16353 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16355 fi
16356 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16357 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16359 fi
16360 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16361 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16363 fi
16364 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16365 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16367 fi
16368 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16369 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16371 fi
16372 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16373 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16375 fi
16376 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16377 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16379 fi
16380 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16381 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16383 fi
16384 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16385 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16387 fi
16388 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16389 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16391 fi
16392 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16393 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16395 fi
16396 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
16397 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16399 fi
16400 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16401 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16403 fi
16404 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16405 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16407 fi
16408
16409 : "${CONFIG_STATUS=./config.status}"
16410 ac_write_fail=0
16411 ac_clean_files_save=$ac_clean_files
16412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16414 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16415 as_write_fail=0
16416 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16417 #! $SHELL
16418 # Generated by $as_me.
16419 # Run this file to recreate the current configuration.
16420 # Compiler output produced by configure, useful for debugging
16421 # configure, is in config.log if it exists.
16422
16423 debug=false
16424 ac_cs_recheck=false
16425 ac_cs_silent=false
16426
16427 SHELL=\${CONFIG_SHELL-$SHELL}
16428 export SHELL
16429 _ASEOF
16430 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16431 ## -------------------- ##
16432 ## M4sh Initialization. ##
16433 ## -------------------- ##
16434
16435 # Be more Bourne compatible
16436 DUALCASE=1; export DUALCASE # for MKS sh
16437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16438 emulate sh
16439 NULLCMD=:
16440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16441 # is contrary to our usage. Disable this feature.
16442 alias -g '${1+"$@"}'='"$@"'
16443 setopt NO_GLOB_SUBST
16444 else
16445 case `(set -o) 2>/dev/null` in #(
16446 *posix*) :
16447 set -o posix ;; #(
16448 *) :
16449 ;;
16450 esac
16451 fi
16452
16453
16454 as_nl='
16455 '
16456 export as_nl
16457 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16458 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16461 # Prefer a ksh shell builtin over an external printf program on Solaris,
16462 # but without wasting forks for bash or zsh.
16463 if test -z "$BASH_VERSION$ZSH_VERSION" \
16464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16465 as_echo='print -r --'
16466 as_echo_n='print -rn --'
16467 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16468 as_echo='printf %s\n'
16469 as_echo_n='printf %s'
16470 else
16471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16473 as_echo_n='/usr/ucb/echo -n'
16474 else
16475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16476 as_echo_n_body='eval
16477 arg=$1;
16478 case $arg in #(
16479 *"$as_nl"*)
16480 expr "X$arg" : "X\\(.*\\)$as_nl";
16481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16482 esac;
16483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16484 '
16485 export as_echo_n_body
16486 as_echo_n='sh -c $as_echo_n_body as_echo'
16487 fi
16488 export as_echo_body
16489 as_echo='sh -c $as_echo_body as_echo'
16490 fi
16491
16492 # The user is always right.
16493 if test "${PATH_SEPARATOR+set}" != set; then
16494 PATH_SEPARATOR=:
16495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16497 PATH_SEPARATOR=';'
16498 }
16499 fi
16500
16501
16502 # IFS
16503 # We need space, tab and new line, in precisely that order. Quoting is
16504 # there to prevent editors from complaining about space-tab.
16505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16506 # splitting by setting IFS to empty value.)
16507 IFS=" "" $as_nl"
16508
16509 # Find who we are. Look in the path if we contain no directory separator.
16510 as_myself=
16511 case $0 in #((
16512 *[\\/]* ) as_myself=$0 ;;
16513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16515 do
16516 IFS=$as_save_IFS
16517 test -z "$as_dir" && as_dir=.
16518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16519 done
16520 IFS=$as_save_IFS
16521
16522 ;;
16523 esac
16524 # We did not find ourselves, most probably we were run as `sh COMMAND'
16525 # in which case we are not to be found in the path.
16526 if test "x$as_myself" = x; then
16527 as_myself=$0
16528 fi
16529 if test ! -f "$as_myself"; then
16530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16531 exit 1
16532 fi
16533
16534 # Unset variables that we do not need and which cause bugs (e.g. in
16535 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16536 # suppresses any "Segmentation fault" message there. '((' could
16537 # trigger a bug in pdksh 5.2.14.
16538 for as_var in BASH_ENV ENV MAIL MAILPATH
16539 do eval test x\${$as_var+set} = xset \
16540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16541 done
16542 PS1='$ '
16543 PS2='> '
16544 PS4='+ '
16545
16546 # NLS nuisances.
16547 LC_ALL=C
16548 export LC_ALL
16549 LANGUAGE=C
16550 export LANGUAGE
16551
16552 # CDPATH.
16553 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16554
16555
16556 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16557 # ----------------------------------------
16558 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16559 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16560 # script with STATUS, using 1 if that was 0.
16561 as_fn_error ()
16562 {
16563 as_status=$1; test $as_status -eq 0 && as_status=1
16564 if test "$4"; then
16565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16567 fi
16568 $as_echo "$as_me: error: $2" >&2
16569 as_fn_exit $as_status
16570 } # as_fn_error
16571
16572
16573 # as_fn_set_status STATUS
16574 # -----------------------
16575 # Set $? to STATUS, without forking.
16576 as_fn_set_status ()
16577 {
16578 return $1
16579 } # as_fn_set_status
16580
16581 # as_fn_exit STATUS
16582 # -----------------
16583 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16584 as_fn_exit ()
16585 {
16586 set +e
16587 as_fn_set_status $1
16588 exit $1
16589 } # as_fn_exit
16590
16591 # as_fn_unset VAR
16592 # ---------------
16593 # Portably unset VAR.
16594 as_fn_unset ()
16595 {
16596 { eval $1=; unset $1;}
16597 }
16598 as_unset=as_fn_unset
16599 # as_fn_append VAR VALUE
16600 # ----------------------
16601 # Append the text in VALUE to the end of the definition contained in VAR. Take
16602 # advantage of any shell optimizations that allow amortized linear growth over
16603 # repeated appends, instead of the typical quadratic growth present in naive
16604 # implementations.
16605 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16606 eval 'as_fn_append ()
16607 {
16608 eval $1+=\$2
16609 }'
16610 else
16611 as_fn_append ()
16612 {
16613 eval $1=\$$1\$2
16614 }
16615 fi # as_fn_append
16616
16617 # as_fn_arith ARG...
16618 # ------------------
16619 # Perform arithmetic evaluation on the ARGs, and store the result in the
16620 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16621 # must be portable across $(()) and expr.
16622 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16623 eval 'as_fn_arith ()
16624 {
16625 as_val=$(( $* ))
16626 }'
16627 else
16628 as_fn_arith ()
16629 {
16630 as_val=`expr "$@" || test $? -eq 1`
16631 }
16632 fi # as_fn_arith
16633
16634
16635 if expr a : '\(a\)' >/dev/null 2>&1 &&
16636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16637 as_expr=expr
16638 else
16639 as_expr=false
16640 fi
16641
16642 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16643 as_basename=basename
16644 else
16645 as_basename=false
16646 fi
16647
16648 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16649 as_dirname=dirname
16650 else
16651 as_dirname=false
16652 fi
16653
16654 as_me=`$as_basename -- "$0" ||
16655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16656 X"$0" : 'X\(//\)$' \| \
16657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16658 $as_echo X/"$0" |
16659 sed '/^.*\/\([^/][^/]*\)\/*$/{
16660 s//\1/
16661 q
16662 }
16663 /^X\/\(\/\/\)$/{
16664 s//\1/
16665 q
16666 }
16667 /^X\/\(\/\).*/{
16668 s//\1/
16669 q
16670 }
16671 s/.*/./; q'`
16672
16673 # Avoid depending upon Character Ranges.
16674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16677 as_cr_digits='0123456789'
16678 as_cr_alnum=$as_cr_Letters$as_cr_digits
16679
16680 ECHO_C= ECHO_N= ECHO_T=
16681 case `echo -n x` in #(((((
16682 -n*)
16683 case `echo 'xy\c'` in
16684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16685 xy) ECHO_C='\c';;
16686 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16687 ECHO_T=' ';;
16688 esac;;
16689 *)
16690 ECHO_N='-n';;
16691 esac
16692
16693 rm -f conf$$ conf$$.exe conf$$.file
16694 if test -d conf$$.dir; then
16695 rm -f conf$$.dir/conf$$.file
16696 else
16697 rm -f conf$$.dir
16698 mkdir conf$$.dir 2>/dev/null
16699 fi
16700 if (echo >conf$$.file) 2>/dev/null; then
16701 if ln -s conf$$.file conf$$ 2>/dev/null; then
16702 as_ln_s='ln -s'
16703 # ... but there are two gotchas:
16704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16706 # In both cases, we have to default to `cp -pR'.
16707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16708 as_ln_s='cp -pR'
16709 elif ln conf$$.file conf$$ 2>/dev/null; then
16710 as_ln_s=ln
16711 else
16712 as_ln_s='cp -pR'
16713 fi
16714 else
16715 as_ln_s='cp -pR'
16716 fi
16717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16718 rmdir conf$$.dir 2>/dev/null
16719
16720
16721 # as_fn_mkdir_p
16722 # -------------
16723 # Create "$as_dir" as a directory, including parents if necessary.
16724 as_fn_mkdir_p ()
16725 {
16726
16727 case $as_dir in #(
16728 -*) as_dir=./$as_dir;;
16729 esac
16730 test -d "$as_dir" || eval $as_mkdir_p || {
16731 as_dirs=
16732 while :; do
16733 case $as_dir in #(
16734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16735 *) as_qdir=$as_dir;;
16736 esac
16737 as_dirs="'$as_qdir' $as_dirs"
16738 as_dir=`$as_dirname -- "$as_dir" ||
16739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16740 X"$as_dir" : 'X\(//\)[^/]' \| \
16741 X"$as_dir" : 'X\(//\)$' \| \
16742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16743 $as_echo X"$as_dir" |
16744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16745 s//\1/
16746 q
16747 }
16748 /^X\(\/\/\)[^/].*/{
16749 s//\1/
16750 q
16751 }
16752 /^X\(\/\/\)$/{
16753 s//\1/
16754 q
16755 }
16756 /^X\(\/\).*/{
16757 s//\1/
16758 q
16759 }
16760 s/.*/./; q'`
16761 test -d "$as_dir" && break
16762 done
16763 test -z "$as_dirs" || eval "mkdir $as_dirs"
16764 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16765
16766
16767 } # as_fn_mkdir_p
16768 if mkdir -p . 2>/dev/null; then
16769 as_mkdir_p='mkdir -p "$as_dir"'
16770 else
16771 test -d ./-p && rmdir ./-p
16772 as_mkdir_p=false
16773 fi
16774
16775
16776 # as_fn_executable_p FILE
16777 # -----------------------
16778 # Test if FILE is an executable regular file.
16779 as_fn_executable_p ()
16780 {
16781 test -f "$1" && test -x "$1"
16782 } # as_fn_executable_p
16783 as_test_x='test -x'
16784 as_executable_p=as_fn_executable_p
16785
16786 # Sed expression to map a string onto a valid CPP name.
16787 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16788
16789 # Sed expression to map a string onto a valid variable name.
16790 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16791
16792
16793 exec 6>&1
16794 ## ----------------------------------- ##
16795 ## Main body of $CONFIG_STATUS script. ##
16796 ## ----------------------------------- ##
16797 _ASEOF
16798 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16799
16800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16801 # Save the log message, to keep $0 and so on meaningful, and to
16802 # report actual input values of CONFIG_FILES etc. instead of their
16803 # values after options handling.
16804 ac_log="
16805 This file was extended by sim $as_me 0, which was
16806 generated by GNU Autoconf 2.69. Invocation command line was
16807
16808 CONFIG_FILES = $CONFIG_FILES
16809 CONFIG_HEADERS = $CONFIG_HEADERS
16810 CONFIG_LINKS = $CONFIG_LINKS
16811 CONFIG_COMMANDS = $CONFIG_COMMANDS
16812 $ $0 $@
16813
16814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16815 "
16816
16817 _ACEOF
16818
16819 case $ac_config_files in *"
16820 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16821 esac
16822
16823 case $ac_config_headers in *"
16824 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16825 esac
16826
16827
16828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16829 # Files that config.status was made for.
16830 config_files="$ac_config_files"
16831 config_headers="$ac_config_headers"
16832 config_commands="$ac_config_commands"
16833
16834 _ACEOF
16835
16836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16837 ac_cs_usage="\
16838 \`$as_me' instantiates files and other configuration actions
16839 from templates according to the current configuration. Unless the files
16840 and actions are specified as TAGs, all are instantiated by default.
16841
16842 Usage: $0 [OPTION]... [TAG]...
16843
16844 -h, --help print this help, then exit
16845 -V, --version print version number and configuration settings, then exit
16846 --config print configuration, then exit
16847 -q, --quiet, --silent
16848 do not print progress messages
16849 -d, --debug don't remove temporary files
16850 --recheck update $as_me by reconfiguring in the same conditions
16851 --file=FILE[:TEMPLATE]
16852 instantiate the configuration file FILE
16853 --header=FILE[:TEMPLATE]
16854 instantiate the configuration header FILE
16855
16856 Configuration files:
16857 $config_files
16858
16859 Configuration headers:
16860 $config_headers
16861
16862 Configuration commands:
16863 $config_commands
16864
16865 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
16866 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
16867
16868 _ACEOF
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16871 ac_cs_version="\\
16872 sim config.status 0
16873 configured by $0, generated by GNU Autoconf 2.69,
16874 with options \\"\$ac_cs_config\\"
16875
16876 Copyright (C) 2012 Free Software Foundation, Inc.
16877 This config.status script is free software; the Free Software Foundation
16878 gives unlimited permission to copy, distribute and modify it."
16879
16880 ac_pwd='$ac_pwd'
16881 srcdir='$srcdir'
16882 INSTALL='$INSTALL'
16883 MKDIR_P='$MKDIR_P'
16884 AWK='$AWK'
16885 test -n "\$AWK" || AWK=awk
16886 _ACEOF
16887
16888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889 # The default lists apply if the user does not specify any file.
16890 ac_need_defaults=:
16891 while test $# != 0
16892 do
16893 case $1 in
16894 --*=?*)
16895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16897 ac_shift=:
16898 ;;
16899 --*=)
16900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16901 ac_optarg=
16902 ac_shift=:
16903 ;;
16904 *)
16905 ac_option=$1
16906 ac_optarg=$2
16907 ac_shift=shift
16908 ;;
16909 esac
16910
16911 case $ac_option in
16912 # Handling of the options.
16913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16914 ac_cs_recheck=: ;;
16915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16916 $as_echo "$ac_cs_version"; exit ;;
16917 --config | --confi | --conf | --con | --co | --c )
16918 $as_echo "$ac_cs_config"; exit ;;
16919 --debug | --debu | --deb | --de | --d | -d )
16920 debug=: ;;
16921 --file | --fil | --fi | --f )
16922 $ac_shift
16923 case $ac_optarg in
16924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16925 '') as_fn_error $? "missing file argument" ;;
16926 esac
16927 as_fn_append CONFIG_FILES " '$ac_optarg'"
16928 ac_need_defaults=false;;
16929 --header | --heade | --head | --hea )
16930 $ac_shift
16931 case $ac_optarg in
16932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16933 esac
16934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16935 ac_need_defaults=false;;
16936 --he | --h)
16937 # Conflict between --help and --header
16938 as_fn_error $? "ambiguous option: \`$1'
16939 Try \`$0 --help' for more information.";;
16940 --help | --hel | -h )
16941 $as_echo "$ac_cs_usage"; exit ;;
16942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16944 ac_cs_silent=: ;;
16945
16946 # This is an error.
16947 -*) as_fn_error $? "unrecognized option: \`$1'
16948 Try \`$0 --help' for more information." ;;
16949
16950 *) as_fn_append ac_config_targets " $1"
16951 ac_need_defaults=false ;;
16952
16953 esac
16954 shift
16955 done
16956
16957 ac_configure_extra_args=
16958
16959 if $ac_cs_silent; then
16960 exec 6>/dev/null
16961 ac_configure_extra_args="$ac_configure_extra_args --silent"
16962 fi
16963
16964 _ACEOF
16965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16966 if \$ac_cs_recheck; then
16967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16968 shift
16969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16970 CONFIG_SHELL='$SHELL'
16971 export CONFIG_SHELL
16972 exec "\$@"
16973 fi
16974
16975 _ACEOF
16976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16977 exec 5>>config.log
16978 {
16979 echo
16980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16981 ## Running $as_me. ##
16982 _ASBOX
16983 $as_echo "$ac_log"
16984 } >&5
16985
16986 _ACEOF
16987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16988 #
16989 # INIT-COMMANDS
16990 #
16991
16992
16993 # The HP-UX ksh and POSIX shell print the target directory to stdout
16994 # if CDPATH is set.
16995 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16996
16997 sed_quote_subst='$sed_quote_subst'
16998 double_quote_subst='$double_quote_subst'
16999 delay_variable_subst='$delay_variable_subst'
17000 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17001 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17002 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17003 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17004 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17005 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17006 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17007 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17008 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17009 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17010 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17011 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17012 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17013 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17014 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17015 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17016 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17017 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17018 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17019 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17020 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17021 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17022 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17023 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17024 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17025 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17026 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17027 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17028 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17029 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17030 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17031 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17032 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17033 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17034 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17035 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17036 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17037 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17038 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17039 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17040 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17041 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17042 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17043 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17044 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17045 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17046 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17047 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17048 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"`'
17049 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17050 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17051 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17052 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17053 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17054 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17055 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17056 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17057 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17058 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17059 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17060 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17061 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17062 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17063 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17064 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17065 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17066 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17067 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17068 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17069 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17070 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17071 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17072 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17073 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17074 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17075 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17076 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17077 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17078 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17079 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17080 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17081 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17082 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17083 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17084 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17085 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17086 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17087 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17088 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17089 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17090 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17091 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17092 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17093 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17094 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17095 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17096 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17097 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17098 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17099 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17100 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17101 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17102 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17103 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17104 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17105 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17106 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17107 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17108 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17109 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17110 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17111 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17112 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17113 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17114 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17115 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17116 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17117 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17118 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17119 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17120
17121 LTCC='$LTCC'
17122 LTCFLAGS='$LTCFLAGS'
17123 compiler='$compiler_DEFAULT'
17124
17125 # A function that is used when there is no print builtin or printf.
17126 func_fallback_echo ()
17127 {
17128 eval 'cat <<_LTECHO_EOF
17129 \$1
17130 _LTECHO_EOF'
17131 }
17132
17133 # Quote evaled strings.
17134 for var in SHELL \
17135 ECHO \
17136 SED \
17137 GREP \
17138 EGREP \
17139 FGREP \
17140 LD \
17141 NM \
17142 LN_S \
17143 lt_SP2NL \
17144 lt_NL2SP \
17145 reload_flag \
17146 OBJDUMP \
17147 deplibs_check_method \
17148 file_magic_cmd \
17149 AR \
17150 AR_FLAGS \
17151 STRIP \
17152 RANLIB \
17153 CC \
17154 CFLAGS \
17155 compiler \
17156 lt_cv_sys_global_symbol_pipe \
17157 lt_cv_sys_global_symbol_to_cdecl \
17158 lt_cv_sys_global_symbol_to_c_name_address \
17159 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17160 lt_prog_compiler_no_builtin_flag \
17161 lt_prog_compiler_wl \
17162 lt_prog_compiler_pic \
17163 lt_prog_compiler_static \
17164 lt_cv_prog_compiler_c_o \
17165 need_locks \
17166 DSYMUTIL \
17167 NMEDIT \
17168 LIPO \
17169 OTOOL \
17170 OTOOL64 \
17171 shrext_cmds \
17172 export_dynamic_flag_spec \
17173 whole_archive_flag_spec \
17174 compiler_needs_object \
17175 with_gnu_ld \
17176 allow_undefined_flag \
17177 no_undefined_flag \
17178 hardcode_libdir_flag_spec \
17179 hardcode_libdir_flag_spec_ld \
17180 hardcode_libdir_separator \
17181 fix_srcfile_path \
17182 exclude_expsyms \
17183 include_expsyms \
17184 file_list_spec \
17185 variables_saved_for_relink \
17186 libname_spec \
17187 library_names_spec \
17188 soname_spec \
17189 install_override_mode \
17190 finish_eval \
17191 old_striplib \
17192 striplib; do
17193 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17194 *[\\\\\\\`\\"\\\$]*)
17195 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17196 ;;
17197 *)
17198 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17199 ;;
17200 esac
17201 done
17202
17203 # Double-quote double-evaled strings.
17204 for var in reload_cmds \
17205 old_postinstall_cmds \
17206 old_postuninstall_cmds \
17207 old_archive_cmds \
17208 extract_expsyms_cmds \
17209 old_archive_from_new_cmds \
17210 old_archive_from_expsyms_cmds \
17211 archive_cmds \
17212 archive_expsym_cmds \
17213 module_cmds \
17214 module_expsym_cmds \
17215 export_symbols_cmds \
17216 prelink_cmds \
17217 postinstall_cmds \
17218 postuninstall_cmds \
17219 finish_cmds \
17220 sys_lib_search_path_spec \
17221 sys_lib_dlsearch_path_spec; do
17222 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17223 *[\\\\\\\`\\"\\\$]*)
17224 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17225 ;;
17226 *)
17227 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17228 ;;
17229 esac
17230 done
17231
17232 ac_aux_dir='$ac_aux_dir'
17233 xsi_shell='$xsi_shell'
17234 lt_shell_append='$lt_shell_append'
17235
17236 # See if we are running on zsh, and set the options which allow our
17237 # commands through without removal of \ escapes INIT.
17238 if test -n "\${ZSH_VERSION+set}" ; then
17239 setopt NO_GLOB_SUBST
17240 fi
17241
17242
17243 PACKAGE='$PACKAGE'
17244 VERSION='$VERSION'
17245 TIMESTAMP='$TIMESTAMP'
17246 RM='$RM'
17247 ofile='$ofile'
17248
17249
17250
17251 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17252 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17253 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17254 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17255 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17256 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17257 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17258 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17259 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17260 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17261 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17262 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17263 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17264 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17265 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17266 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17267 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17268 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17269 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17270 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17271 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17272 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17273 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17274 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17275 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17276 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17277 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17278 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17279 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17280 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17281 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17282 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17283 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17284
17285 _ACEOF
17286
17287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17288
17289 # Handling of arguments.
17290 for ac_config_target in $ac_config_targets
17291 do
17292 case $ac_config_target in
17293 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17294 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17295 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17296 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
17297 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
17298 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
17299 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
17300 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
17301 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
17302 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
17303 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
17304 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
17305 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
17306 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
17307 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
17308 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
17309 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
17310 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
17311 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
17312 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
17313 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
17314 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
17315 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
17316 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
17317 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
17318 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
17319 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
17320 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
17321 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
17322 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
17323 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
17324 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
17325 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
17326 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
17327 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
17328 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
17329 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
17330 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
17331 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
17332 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
17333 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
17334 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
17335 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
17336 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
17337 "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
17338 "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
17339 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
17340 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
17341 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
17342 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
17343 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
17344 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
17345 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
17346 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
17347 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
17348 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
17349 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
17350 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
17351 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
17352 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
17353 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
17354 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
17355 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
17356 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
17357 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
17358 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
17359 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
17360 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
17361 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
17362 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
17363 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
17364 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
17365 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
17366 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
17367 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
17368 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
17369 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
17370 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
17371 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
17372 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
17373 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
17374 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
17375 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
17376 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
17377 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
17378 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
17379 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17380 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17381
17382 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17383 esac
17384 done
17385
17386
17387 # If the user did not use the arguments to specify the items to instantiate,
17388 # then the envvar interface is used. Set only those that are not.
17389 # We use the long form for the default assignment because of an extremely
17390 # bizarre bug on SunOS 4.1.3.
17391 if $ac_need_defaults; then
17392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17395 fi
17396
17397 # Have a temporary directory for convenience. Make it in the build tree
17398 # simply because there is no reason against having it here, and in addition,
17399 # creating and moving files from /tmp can sometimes cause problems.
17400 # Hook for its removal unless debugging.
17401 # Note that there is a small window in which the directory will not be cleaned:
17402 # after its creation but before its name has been assigned to `$tmp'.
17403 $debug ||
17404 {
17405 tmp= ac_tmp=
17406 trap 'exit_status=$?
17407 : "${ac_tmp:=$tmp}"
17408 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17409 ' 0
17410 trap 'as_fn_exit 1' 1 2 13 15
17411 }
17412 # Create a (secure) tmp directory for tmp files.
17413
17414 {
17415 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17416 test -d "$tmp"
17417 } ||
17418 {
17419 tmp=./conf$$-$RANDOM
17420 (umask 077 && mkdir "$tmp")
17421 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17422 ac_tmp=$tmp
17423
17424 # Set up the scripts for CONFIG_FILES section.
17425 # No need to generate them if there are no CONFIG_FILES.
17426 # This happens for instance with `./config.status config.h'.
17427 if test -n "$CONFIG_FILES"; then
17428
17429
17430 ac_cr=`echo X | tr X '\015'`
17431 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17432 # But we know of no other shell where ac_cr would be empty at this
17433 # point, so we can use a bashism as a fallback.
17434 if test "x$ac_cr" = x; then
17435 eval ac_cr=\$\'\\r\'
17436 fi
17437 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17438 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17439 ac_cs_awk_cr='\\r'
17440 else
17441 ac_cs_awk_cr=$ac_cr
17442 fi
17443
17444 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17445 _ACEOF
17446
17447
17448 {
17449 echo "cat >conf$$subs.awk <<_ACEOF" &&
17450 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17451 echo "_ACEOF"
17452 } >conf$$subs.sh ||
17453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17454 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17455 ac_delim='%!_!# '
17456 for ac_last_try in false false false false false :; do
17457 . ./conf$$subs.sh ||
17458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17459
17460 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17461 if test $ac_delim_n = $ac_delim_num; then
17462 break
17463 elif $ac_last_try; then
17464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17465 else
17466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17467 fi
17468 done
17469 rm -f conf$$subs.sh
17470
17471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17473 _ACEOF
17474 sed -n '
17475 h
17476 s/^/S["/; s/!.*/"]=/
17477 p
17478 g
17479 s/^[^!]*!//
17480 :repl
17481 t repl
17482 s/'"$ac_delim"'$//
17483 t delim
17484 :nl
17485 h
17486 s/\(.\{148\}\)..*/\1/
17487 t more1
17488 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17489 p
17490 n
17491 b repl
17492 :more1
17493 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17494 p
17495 g
17496 s/.\{148\}//
17497 t nl
17498 :delim
17499 h
17500 s/\(.\{148\}\)..*/\1/
17501 t more2
17502 s/["\\]/\\&/g; s/^/"/; s/$/"/
17503 p
17504 b
17505 :more2
17506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17507 p
17508 g
17509 s/.\{148\}//
17510 t delim
17511 ' <conf$$subs.awk | sed '
17512 /^[^""]/{
17513 N
17514 s/\n//
17515 }
17516 ' >>$CONFIG_STATUS || ac_write_fail=1
17517 rm -f conf$$subs.awk
17518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17519 _ACAWK
17520 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17521 for (key in S) S_is_set[key] = 1
17522 FS = "\a"
17523
17524 }
17525 {
17526 line = $ 0
17527 nfields = split(line, field, "@")
17528 substed = 0
17529 len = length(field[1])
17530 for (i = 2; i < nfields; i++) {
17531 key = field[i]
17532 keylen = length(key)
17533 if (S_is_set[key]) {
17534 value = S[key]
17535 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17536 len += length(value) + length(field[++i])
17537 substed = 1
17538 } else
17539 len += 1 + keylen
17540 }
17541
17542 print line
17543 }
17544
17545 _ACAWK
17546 _ACEOF
17547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17548 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17549 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17550 else
17551 cat
17552 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17553 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17554 _ACEOF
17555
17556 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17557 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17558 # trailing colons and then remove the whole line if VPATH becomes empty
17559 # (actually we leave an empty line to preserve line numbers).
17560 if test "x$srcdir" = x.; then
17561 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17562 h
17563 s///
17564 s/^/:/
17565 s/[ ]*$/:/
17566 s/:\$(srcdir):/:/g
17567 s/:\${srcdir}:/:/g
17568 s/:@srcdir@:/:/g
17569 s/^:*//
17570 s/:*$//
17571 x
17572 s/\(=[ ]*\).*/\1/
17573 G
17574 s/\n//
17575 s/^[^=]*=[ ]*$//
17576 }'
17577 fi
17578
17579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17580 fi # test -n "$CONFIG_FILES"
17581
17582 # Set up the scripts for CONFIG_HEADERS section.
17583 # No need to generate them if there are no CONFIG_HEADERS.
17584 # This happens for instance with `./config.status Makefile'.
17585 if test -n "$CONFIG_HEADERS"; then
17586 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17587 BEGIN {
17588 _ACEOF
17589
17590 # Transform confdefs.h into an awk script `defines.awk', embedded as
17591 # here-document in config.status, that substitutes the proper values into
17592 # config.h.in to produce config.h.
17593
17594 # Create a delimiter string that does not exist in confdefs.h, to ease
17595 # handling of long lines.
17596 ac_delim='%!_!# '
17597 for ac_last_try in false false :; do
17598 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17599 if test -z "$ac_tt"; then
17600 break
17601 elif $ac_last_try; then
17602 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17603 else
17604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17605 fi
17606 done
17607
17608 # For the awk script, D is an array of macro values keyed by name,
17609 # likewise P contains macro parameters if any. Preserve backslash
17610 # newline sequences.
17611
17612 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17613 sed -n '
17614 s/.\{148\}/&'"$ac_delim"'/g
17615 t rset
17616 :rset
17617 s/^[ ]*#[ ]*define[ ][ ]*/ /
17618 t def
17619 d
17620 :def
17621 s/\\$//
17622 t bsnl
17623 s/["\\]/\\&/g
17624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17625 D["\1"]=" \3"/p
17626 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17627 d
17628 :bsnl
17629 s/["\\]/\\&/g
17630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17631 D["\1"]=" \3\\\\\\n"\\/p
17632 t cont
17633 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17634 t cont
17635 d
17636 :cont
17637 n
17638 s/.\{148\}/&'"$ac_delim"'/g
17639 t clear
17640 :clear
17641 s/\\$//
17642 t bsnlc
17643 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17644 d
17645 :bsnlc
17646 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17647 b cont
17648 ' <confdefs.h | sed '
17649 s/'"$ac_delim"'/"\\\
17650 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17651
17652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17653 for (key in D) D_is_set[key] = 1
17654 FS = "\a"
17655 }
17656 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17657 line = \$ 0
17658 split(line, arg, " ")
17659 if (arg[1] == "#") {
17660 defundef = arg[2]
17661 mac1 = arg[3]
17662 } else {
17663 defundef = substr(arg[1], 2)
17664 mac1 = arg[2]
17665 }
17666 split(mac1, mac2, "(") #)
17667 macro = mac2[1]
17668 prefix = substr(line, 1, index(line, defundef) - 1)
17669 if (D_is_set[macro]) {
17670 # Preserve the white space surrounding the "#".
17671 print prefix "define", macro P[macro] D[macro]
17672 next
17673 } else {
17674 # Replace #undef with comments. This is necessary, for example,
17675 # in the case of _POSIX_SOURCE, which is predefined and required
17676 # on some systems where configure will not decide to define it.
17677 if (defundef == "undef") {
17678 print "/*", prefix defundef, macro, "*/"
17679 next
17680 }
17681 }
17682 }
17683 { print }
17684 _ACAWK
17685 _ACEOF
17686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17687 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17688 fi # test -n "$CONFIG_HEADERS"
17689
17690
17691 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17692 shift
17693 for ac_tag
17694 do
17695 case $ac_tag in
17696 :[FHLC]) ac_mode=$ac_tag; continue;;
17697 esac
17698 case $ac_mode$ac_tag in
17699 :[FHL]*:*);;
17700 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17701 :[FH]-) ac_tag=-:-;;
17702 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17703 esac
17704 ac_save_IFS=$IFS
17705 IFS=:
17706 set x $ac_tag
17707 IFS=$ac_save_IFS
17708 shift
17709 ac_file=$1
17710 shift
17711
17712 case $ac_mode in
17713 :L) ac_source=$1;;
17714 :[FH])
17715 ac_file_inputs=
17716 for ac_f
17717 do
17718 case $ac_f in
17719 -) ac_f="$ac_tmp/stdin";;
17720 *) # Look for the file first in the build tree, then in the source tree
17721 # (if the path is not absolute). The absolute path cannot be DOS-style,
17722 # because $ac_f cannot contain `:'.
17723 test -f "$ac_f" ||
17724 case $ac_f in
17725 [\\/$]*) false;;
17726 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17727 esac ||
17728 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17729 esac
17730 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17731 as_fn_append ac_file_inputs " '$ac_f'"
17732 done
17733
17734 # Let's still pretend it is `configure' which instantiates (i.e., don't
17735 # use $as_me), people would be surprised to read:
17736 # /* config.h. Generated by config.status. */
17737 configure_input='Generated from '`
17738 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17739 `' by configure.'
17740 if test x"$ac_file" != x-; then
17741 configure_input="$ac_file. $configure_input"
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17743 $as_echo "$as_me: creating $ac_file" >&6;}
17744 fi
17745 # Neutralize special characters interpreted by sed in replacement strings.
17746 case $configure_input in #(
17747 *\&* | *\|* | *\\* )
17748 ac_sed_conf_input=`$as_echo "$configure_input" |
17749 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17750 *) ac_sed_conf_input=$configure_input;;
17751 esac
17752
17753 case $ac_tag in
17754 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17756 esac
17757 ;;
17758 esac
17759
17760 ac_dir=`$as_dirname -- "$ac_file" ||
17761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17762 X"$ac_file" : 'X\(//\)[^/]' \| \
17763 X"$ac_file" : 'X\(//\)$' \| \
17764 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17765 $as_echo X"$ac_file" |
17766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17767 s//\1/
17768 q
17769 }
17770 /^X\(\/\/\)[^/].*/{
17771 s//\1/
17772 q
17773 }
17774 /^X\(\/\/\)$/{
17775 s//\1/
17776 q
17777 }
17778 /^X\(\/\).*/{
17779 s//\1/
17780 q
17781 }
17782 s/.*/./; q'`
17783 as_dir="$ac_dir"; as_fn_mkdir_p
17784 ac_builddir=.
17785
17786 case "$ac_dir" in
17787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17788 *)
17789 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17790 # A ".." for each directory in $ac_dir_suffix.
17791 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17792 case $ac_top_builddir_sub in
17793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17795 esac ;;
17796 esac
17797 ac_abs_top_builddir=$ac_pwd
17798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17799 # for backward compatibility:
17800 ac_top_builddir=$ac_top_build_prefix
17801
17802 case $srcdir in
17803 .) # We are building in place.
17804 ac_srcdir=.
17805 ac_top_srcdir=$ac_top_builddir_sub
17806 ac_abs_top_srcdir=$ac_pwd ;;
17807 [\\/]* | ?:[\\/]* ) # Absolute name.
17808 ac_srcdir=$srcdir$ac_dir_suffix;
17809 ac_top_srcdir=$srcdir
17810 ac_abs_top_srcdir=$srcdir ;;
17811 *) # Relative name.
17812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17813 ac_top_srcdir=$ac_top_build_prefix$srcdir
17814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17815 esac
17816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17817
17818
17819 case $ac_mode in
17820 :F)
17821 #
17822 # CONFIG_FILE
17823 #
17824
17825 case $INSTALL in
17826 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17827 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17828 esac
17829 ac_MKDIR_P=$MKDIR_P
17830 case $MKDIR_P in
17831 [\\/$]* | ?:[\\/]* ) ;;
17832 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17833 esac
17834 _ACEOF
17835
17836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17837 # If the template does not know about datarootdir, expand it.
17838 # FIXME: This hack should be removed a few years after 2.60.
17839 ac_datarootdir_hack=; ac_datarootdir_seen=
17840 ac_sed_dataroot='
17841 /datarootdir/ {
17842 p
17843 q
17844 }
17845 /@datadir@/p
17846 /@docdir@/p
17847 /@infodir@/p
17848 /@localedir@/p
17849 /@mandir@/p'
17850 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17851 *datarootdir*) ac_datarootdir_seen=yes;;
17852 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17854 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17855 _ACEOF
17856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17857 ac_datarootdir_hack='
17858 s&@datadir@&$datadir&g
17859 s&@docdir@&$docdir&g
17860 s&@infodir@&$infodir&g
17861 s&@localedir@&$localedir&g
17862 s&@mandir@&$mandir&g
17863 s&\\\${datarootdir}&$datarootdir&g' ;;
17864 esac
17865 _ACEOF
17866
17867 # Neutralize VPATH when `$srcdir' = `.'.
17868 # Shell code in configure.ac might set extrasub.
17869 # FIXME: do we really want to maintain this feature?
17870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17871 ac_sed_extra="$ac_vpsub
17872 $extrasub
17873 _ACEOF
17874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17875 :t
17876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17877 s|@configure_input@|$ac_sed_conf_input|;t t
17878 s&@top_builddir@&$ac_top_builddir_sub&;t t
17879 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17880 s&@srcdir@&$ac_srcdir&;t t
17881 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17882 s&@top_srcdir@&$ac_top_srcdir&;t t
17883 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17884 s&@builddir@&$ac_builddir&;t t
17885 s&@abs_builddir@&$ac_abs_builddir&;t t
17886 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17887 s&@INSTALL@&$ac_INSTALL&;t t
17888 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17889 $ac_datarootdir_hack
17890 "
17891 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17892 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17893
17894 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17895 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17897 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17899 which seems to be undefined. Please make sure it is defined" >&5
17900 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17901 which seems to be undefined. Please make sure it is defined" >&2;}
17902
17903 rm -f "$ac_tmp/stdin"
17904 case $ac_file in
17905 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17906 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17907 esac \
17908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17909 ;;
17910 :H)
17911 #
17912 # CONFIG_HEADER
17913 #
17914 if test x"$ac_file" != x-; then
17915 {
17916 $as_echo "/* $configure_input */" \
17917 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17918 } >"$ac_tmp/config.h" \
17919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17920 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17922 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17923 else
17924 rm -f "$ac_file"
17925 mv "$ac_tmp/config.h" "$ac_file" \
17926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17927 fi
17928 else
17929 $as_echo "/* $configure_input */" \
17930 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17931 || as_fn_error $? "could not create -" "$LINENO" 5
17932 fi
17933 # Compute "$ac_file"'s index in $config_headers.
17934 _am_arg="$ac_file"
17935 _am_stamp_count=1
17936 for _am_header in $config_headers :; do
17937 case $_am_header in
17938 $_am_arg | $_am_arg:* )
17939 break ;;
17940 * )
17941 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17942 esac
17943 done
17944 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17945 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17946 X"$_am_arg" : 'X\(//\)[^/]' \| \
17947 X"$_am_arg" : 'X\(//\)$' \| \
17948 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17949 $as_echo X"$_am_arg" |
17950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17951 s//\1/
17952 q
17953 }
17954 /^X\(\/\/\)[^/].*/{
17955 s//\1/
17956 q
17957 }
17958 /^X\(\/\/\)$/{
17959 s//\1/
17960 q
17961 }
17962 /^X\(\/\).*/{
17963 s//\1/
17964 q
17965 }
17966 s/.*/./; q'`/stamp-h$_am_stamp_count
17967 ;;
17968
17969 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17970 $as_echo "$as_me: executing $ac_file commands" >&6;}
17971 ;;
17972 esac
17973
17974
17975 case $ac_file$ac_mode in
17976 "libtool":C)
17977
17978 # See if we are running on zsh, and set the options which allow our
17979 # commands through without removal of \ escapes.
17980 if test -n "${ZSH_VERSION+set}" ; then
17981 setopt NO_GLOB_SUBST
17982 fi
17983
17984 cfgfile="${ofile}T"
17985 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17986 $RM "$cfgfile"
17987
17988 cat <<_LT_EOF >> "$cfgfile"
17989 #! $SHELL
17990
17991 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17992 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17994 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17995 #
17996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17997 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17998 # Written by Gordon Matzigkeit, 1996
17999 #
18000 # This file is part of GNU Libtool.
18001 #
18002 # GNU Libtool is free software; you can redistribute it and/or
18003 # modify it under the terms of the GNU General Public License as
18004 # published by the Free Software Foundation; either version 2 of
18005 # the License, or (at your option) any later version.
18006 #
18007 # As a special exception to the GNU General Public License,
18008 # if you distribute this file as part of a program or library that
18009 # is built using GNU Libtool, you may include this file under the
18010 # same distribution terms that you use for the rest of that program.
18011 #
18012 # GNU Libtool is distributed in the hope that it will be useful,
18013 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18015 # GNU General Public License for more details.
18016 #
18017 # You should have received a copy of the GNU General Public License
18018 # along with GNU Libtool; see the file COPYING. If not, a copy
18019 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18020 # obtained by writing to the Free Software Foundation, Inc.,
18021 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18022
18023
18024 # The names of the tagged configurations supported by this script.
18025 available_tags=""
18026
18027 # ### BEGIN LIBTOOL CONFIG
18028
18029 # Which release of libtool.m4 was used?
18030 macro_version=$macro_version
18031 macro_revision=$macro_revision
18032
18033 # Whether or not to build shared libraries.
18034 build_libtool_libs=$enable_shared
18035
18036 # Whether or not to build static libraries.
18037 build_old_libs=$enable_static
18038
18039 # What type of objects to build.
18040 pic_mode=$pic_mode
18041
18042 # Whether or not to optimize for fast installation.
18043 fast_install=$enable_fast_install
18044
18045 # Shell to use when invoking shell scripts.
18046 SHELL=$lt_SHELL
18047
18048 # An echo program that protects backslashes.
18049 ECHO=$lt_ECHO
18050
18051 # The host system.
18052 host_alias=$host_alias
18053 host=$host
18054 host_os=$host_os
18055
18056 # The build system.
18057 build_alias=$build_alias
18058 build=$build
18059 build_os=$build_os
18060
18061 # A sed program that does not truncate output.
18062 SED=$lt_SED
18063
18064 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18065 Xsed="\$SED -e 1s/^X//"
18066
18067 # A grep program that handles long lines.
18068 GREP=$lt_GREP
18069
18070 # An ERE matcher.
18071 EGREP=$lt_EGREP
18072
18073 # A literal string matcher.
18074 FGREP=$lt_FGREP
18075
18076 # A BSD- or MS-compatible name lister.
18077 NM=$lt_NM
18078
18079 # Whether we need soft or hard links.
18080 LN_S=$lt_LN_S
18081
18082 # What is the maximum length of a command?
18083 max_cmd_len=$max_cmd_len
18084
18085 # Object file suffix (normally "o").
18086 objext=$ac_objext
18087
18088 # Executable file suffix (normally "").
18089 exeext=$exeext
18090
18091 # whether the shell understands "unset".
18092 lt_unset=$lt_unset
18093
18094 # turn spaces into newlines.
18095 SP2NL=$lt_lt_SP2NL
18096
18097 # turn newlines into spaces.
18098 NL2SP=$lt_lt_NL2SP
18099
18100 # An object symbol dumper.
18101 OBJDUMP=$lt_OBJDUMP
18102
18103 # Method to check whether dependent libraries are shared objects.
18104 deplibs_check_method=$lt_deplibs_check_method
18105
18106 # Command to use when deplibs_check_method == "file_magic".
18107 file_magic_cmd=$lt_file_magic_cmd
18108
18109 # The archiver.
18110 AR=$lt_AR
18111 AR_FLAGS=$lt_AR_FLAGS
18112
18113 # A symbol stripping program.
18114 STRIP=$lt_STRIP
18115
18116 # Commands used to install an old-style archive.
18117 RANLIB=$lt_RANLIB
18118 old_postinstall_cmds=$lt_old_postinstall_cmds
18119 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18120
18121 # Whether to use a lock for old archive extraction.
18122 lock_old_archive_extraction=$lock_old_archive_extraction
18123
18124 # A C compiler.
18125 LTCC=$lt_CC
18126
18127 # LTCC compiler flags.
18128 LTCFLAGS=$lt_CFLAGS
18129
18130 # Take the output of nm and produce a listing of raw symbols and C names.
18131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18132
18133 # Transform the output of nm in a proper C declaration.
18134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18135
18136 # Transform the output of nm in a C name address pair.
18137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18138
18139 # Transform the output of nm in a C name address pair when lib prefix is needed.
18140 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18141
18142 # The name of the directory that contains temporary libtool files.
18143 objdir=$objdir
18144
18145 # Used to examine libraries when file_magic_cmd begins with "file".
18146 MAGIC_CMD=$MAGIC_CMD
18147
18148 # Must we lock files when doing compilation?
18149 need_locks=$lt_need_locks
18150
18151 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18152 DSYMUTIL=$lt_DSYMUTIL
18153
18154 # Tool to change global to local symbols on Mac OS X.
18155 NMEDIT=$lt_NMEDIT
18156
18157 # Tool to manipulate fat objects and archives on Mac OS X.
18158 LIPO=$lt_LIPO
18159
18160 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18161 OTOOL=$lt_OTOOL
18162
18163 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18164 OTOOL64=$lt_OTOOL64
18165
18166 # Old archive suffix (normally "a").
18167 libext=$libext
18168
18169 # Shared library suffix (normally ".so").
18170 shrext_cmds=$lt_shrext_cmds
18171
18172 # The commands to extract the exported symbol list from a shared archive.
18173 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18174
18175 # Variables whose values should be saved in libtool wrapper scripts and
18176 # restored at link time.
18177 variables_saved_for_relink=$lt_variables_saved_for_relink
18178
18179 # Do we need the "lib" prefix for modules?
18180 need_lib_prefix=$need_lib_prefix
18181
18182 # Do we need a version for libraries?
18183 need_version=$need_version
18184
18185 # Library versioning type.
18186 version_type=$version_type
18187
18188 # Shared library runtime path variable.
18189 runpath_var=$runpath_var
18190
18191 # Shared library path variable.
18192 shlibpath_var=$shlibpath_var
18193
18194 # Is shlibpath searched before the hard-coded library search path?
18195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18196
18197 # Format of library name prefix.
18198 libname_spec=$lt_libname_spec
18199
18200 # List of archive names. First name is the real one, the rest are links.
18201 # The last name is the one that the linker finds with -lNAME
18202 library_names_spec=$lt_library_names_spec
18203
18204 # The coded name of the library, if different from the real name.
18205 soname_spec=$lt_soname_spec
18206
18207 # Permission mode override for installation of shared libraries.
18208 install_override_mode=$lt_install_override_mode
18209
18210 # Command to use after installation of a shared archive.
18211 postinstall_cmds=$lt_postinstall_cmds
18212
18213 # Command to use after uninstallation of a shared archive.
18214 postuninstall_cmds=$lt_postuninstall_cmds
18215
18216 # Commands used to finish a libtool library installation in a directory.
18217 finish_cmds=$lt_finish_cmds
18218
18219 # As "finish_cmds", except a single script fragment to be evaled but
18220 # not shown.
18221 finish_eval=$lt_finish_eval
18222
18223 # Whether we should hardcode library paths into libraries.
18224 hardcode_into_libs=$hardcode_into_libs
18225
18226 # Compile-time system search path for libraries.
18227 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18228
18229 # Run-time system search path for libraries.
18230 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18231
18232 # Whether dlopen is supported.
18233 dlopen_support=$enable_dlopen
18234
18235 # Whether dlopen of programs is supported.
18236 dlopen_self=$enable_dlopen_self
18237
18238 # Whether dlopen of statically linked programs is supported.
18239 dlopen_self_static=$enable_dlopen_self_static
18240
18241 # Commands to strip libraries.
18242 old_striplib=$lt_old_striplib
18243 striplib=$lt_striplib
18244
18245
18246 # The linker used to build libraries.
18247 LD=$lt_LD
18248
18249 # How to create reloadable object files.
18250 reload_flag=$lt_reload_flag
18251 reload_cmds=$lt_reload_cmds
18252
18253 # Commands used to build an old-style archive.
18254 old_archive_cmds=$lt_old_archive_cmds
18255
18256 # A language specific compiler.
18257 CC=$lt_compiler
18258
18259 # Is the compiler the GNU compiler?
18260 with_gcc=$GCC
18261
18262 # Compiler flag to turn off builtin functions.
18263 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18264
18265 # How to pass a linker flag through the compiler.
18266 wl=$lt_lt_prog_compiler_wl
18267
18268 # Additional compiler flags for building library objects.
18269 pic_flag=$lt_lt_prog_compiler_pic
18270
18271 # Compiler flag to prevent dynamic linking.
18272 link_static_flag=$lt_lt_prog_compiler_static
18273
18274 # Does compiler simultaneously support -c and -o options?
18275 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18276
18277 # Whether or not to add -lc for building shared libraries.
18278 build_libtool_need_lc=$archive_cmds_need_lc
18279
18280 # Whether or not to disallow shared libs when runtime libs are static.
18281 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18282
18283 # Compiler flag to allow reflexive dlopens.
18284 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18285
18286 # Compiler flag to generate shared objects directly from archives.
18287 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18288
18289 # Whether the compiler copes with passing no objects directly.
18290 compiler_needs_object=$lt_compiler_needs_object
18291
18292 # Create an old-style archive from a shared archive.
18293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18294
18295 # Create a temporary old-style archive to link instead of a shared archive.
18296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18297
18298 # Commands used to build a shared archive.
18299 archive_cmds=$lt_archive_cmds
18300 archive_expsym_cmds=$lt_archive_expsym_cmds
18301
18302 # Commands used to build a loadable module if different from building
18303 # a shared archive.
18304 module_cmds=$lt_module_cmds
18305 module_expsym_cmds=$lt_module_expsym_cmds
18306
18307 # Whether we are building with GNU ld or not.
18308 with_gnu_ld=$lt_with_gnu_ld
18309
18310 # Flag that allows shared libraries with undefined symbols to be built.
18311 allow_undefined_flag=$lt_allow_undefined_flag
18312
18313 # Flag that enforces no undefined symbols.
18314 no_undefined_flag=$lt_no_undefined_flag
18315
18316 # Flag to hardcode \$libdir into a binary during linking.
18317 # This must work even if \$libdir does not exist
18318 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18319
18320 # If ld is used when linking, flag to hardcode \$libdir into a binary
18321 # during linking. This must work even if \$libdir does not exist.
18322 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18323
18324 # Whether we need a single "-rpath" flag with a separated argument.
18325 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18326
18327 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18328 # DIR into the resulting binary.
18329 hardcode_direct=$hardcode_direct
18330
18331 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18332 # DIR into the resulting binary and the resulting library dependency is
18333 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18334 # library is relocated.
18335 hardcode_direct_absolute=$hardcode_direct_absolute
18336
18337 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18338 # into the resulting binary.
18339 hardcode_minus_L=$hardcode_minus_L
18340
18341 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18342 # into the resulting binary.
18343 hardcode_shlibpath_var=$hardcode_shlibpath_var
18344
18345 # Set to "yes" if building a shared library automatically hardcodes DIR
18346 # into the library and all subsequent libraries and executables linked
18347 # against it.
18348 hardcode_automatic=$hardcode_automatic
18349
18350 # Set to yes if linker adds runtime paths of dependent libraries
18351 # to runtime path list.
18352 inherit_rpath=$inherit_rpath
18353
18354 # Whether libtool must link a program against all its dependency libraries.
18355 link_all_deplibs=$link_all_deplibs
18356
18357 # Fix the shell variable \$srcfile for the compiler.
18358 fix_srcfile_path=$lt_fix_srcfile_path
18359
18360 # Set to "yes" if exported symbols are required.
18361 always_export_symbols=$always_export_symbols
18362
18363 # The commands to list exported symbols.
18364 export_symbols_cmds=$lt_export_symbols_cmds
18365
18366 # Symbols that should not be listed in the preloaded symbols.
18367 exclude_expsyms=$lt_exclude_expsyms
18368
18369 # Symbols that must always be exported.
18370 include_expsyms=$lt_include_expsyms
18371
18372 # Commands necessary for linking programs (against libraries) with templates.
18373 prelink_cmds=$lt_prelink_cmds
18374
18375 # Specify filename containing input files.
18376 file_list_spec=$lt_file_list_spec
18377
18378 # How to hardcode a shared library path into an executable.
18379 hardcode_action=$hardcode_action
18380
18381 # ### END LIBTOOL CONFIG
18382
18383 _LT_EOF
18384
18385 case $host_os in
18386 aix3*)
18387 cat <<\_LT_EOF >> "$cfgfile"
18388 # AIX sometimes has problems with the GCC collect2 program. For some
18389 # reason, if we set the COLLECT_NAMES environment variable, the problems
18390 # vanish in a puff of smoke.
18391 if test "X${COLLECT_NAMES+set}" != Xset; then
18392 COLLECT_NAMES=
18393 export COLLECT_NAMES
18394 fi
18395 _LT_EOF
18396 ;;
18397 esac
18398
18399
18400 ltmain="$ac_aux_dir/ltmain.sh"
18401
18402
18403 # We use sed instead of cat because bash on DJGPP gets confused if
18404 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18405 # text mode, it properly converts lines to CR/LF. This bash problem
18406 # is reportedly fixed, but why not run on old versions too?
18407 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18408 || (rm -f "$cfgfile"; exit 1)
18409
18410 case $xsi_shell in
18411 yes)
18412 cat << \_LT_EOF >> "$cfgfile"
18413
18414 # func_dirname file append nondir_replacement
18415 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18416 # otherwise set result to NONDIR_REPLACEMENT.
18417 func_dirname ()
18418 {
18419 case ${1} in
18420 */*) func_dirname_result="${1%/*}${2}" ;;
18421 * ) func_dirname_result="${3}" ;;
18422 esac
18423 }
18424
18425 # func_basename file
18426 func_basename ()
18427 {
18428 func_basename_result="${1##*/}"
18429 }
18430
18431 # func_dirname_and_basename file append nondir_replacement
18432 # perform func_basename and func_dirname in a single function
18433 # call:
18434 # dirname: Compute the dirname of FILE. If nonempty,
18435 # add APPEND to the result, otherwise set result
18436 # to NONDIR_REPLACEMENT.
18437 # value returned in "$func_dirname_result"
18438 # basename: Compute filename of FILE.
18439 # value retuned in "$func_basename_result"
18440 # Implementation must be kept synchronized with func_dirname
18441 # and func_basename. For efficiency, we do not delegate to
18442 # those functions but instead duplicate the functionality here.
18443 func_dirname_and_basename ()
18444 {
18445 case ${1} in
18446 */*) func_dirname_result="${1%/*}${2}" ;;
18447 * ) func_dirname_result="${3}" ;;
18448 esac
18449 func_basename_result="${1##*/}"
18450 }
18451
18452 # func_stripname prefix suffix name
18453 # strip PREFIX and SUFFIX off of NAME.
18454 # PREFIX and SUFFIX must not contain globbing or regex special
18455 # characters, hashes, percent signs, but SUFFIX may contain a leading
18456 # dot (in which case that matches only a dot).
18457 func_stripname ()
18458 {
18459 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18460 # positional parameters, so assign one to ordinary parameter first.
18461 func_stripname_result=${3}
18462 func_stripname_result=${func_stripname_result#"${1}"}
18463 func_stripname_result=${func_stripname_result%"${2}"}
18464 }
18465
18466 # func_opt_split
18467 func_opt_split ()
18468 {
18469 func_opt_split_opt=${1%%=*}
18470 func_opt_split_arg=${1#*=}
18471 }
18472
18473 # func_lo2o object
18474 func_lo2o ()
18475 {
18476 case ${1} in
18477 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18478 *) func_lo2o_result=${1} ;;
18479 esac
18480 }
18481
18482 # func_xform libobj-or-source
18483 func_xform ()
18484 {
18485 func_xform_result=${1%.*}.lo
18486 }
18487
18488 # func_arith arithmetic-term...
18489 func_arith ()
18490 {
18491 func_arith_result=$(( $* ))
18492 }
18493
18494 # func_len string
18495 # STRING may not start with a hyphen.
18496 func_len ()
18497 {
18498 func_len_result=${#1}
18499 }
18500
18501 _LT_EOF
18502 ;;
18503 *) # Bourne compatible functions.
18504 cat << \_LT_EOF >> "$cfgfile"
18505
18506 # func_dirname file append nondir_replacement
18507 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18508 # otherwise set result to NONDIR_REPLACEMENT.
18509 func_dirname ()
18510 {
18511 # Extract subdirectory from the argument.
18512 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18513 if test "X$func_dirname_result" = "X${1}"; then
18514 func_dirname_result="${3}"
18515 else
18516 func_dirname_result="$func_dirname_result${2}"
18517 fi
18518 }
18519
18520 # func_basename file
18521 func_basename ()
18522 {
18523 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18524 }
18525
18526
18527 # func_stripname prefix suffix name
18528 # strip PREFIX and SUFFIX off of NAME.
18529 # PREFIX and SUFFIX must not contain globbing or regex special
18530 # characters, hashes, percent signs, but SUFFIX may contain a leading
18531 # dot (in which case that matches only a dot).
18532 # func_strip_suffix prefix name
18533 func_stripname ()
18534 {
18535 case ${2} in
18536 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18537 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18538 esac
18539 }
18540
18541 # sed scripts:
18542 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18543 my_sed_long_arg='1s/^-[^=]*=//'
18544
18545 # func_opt_split
18546 func_opt_split ()
18547 {
18548 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18549 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18550 }
18551
18552 # func_lo2o object
18553 func_lo2o ()
18554 {
18555 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18556 }
18557
18558 # func_xform libobj-or-source
18559 func_xform ()
18560 {
18561 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18562 }
18563
18564 # func_arith arithmetic-term...
18565 func_arith ()
18566 {
18567 func_arith_result=`expr "$@"`
18568 }
18569
18570 # func_len string
18571 # STRING may not start with a hyphen.
18572 func_len ()
18573 {
18574 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18575 }
18576
18577 _LT_EOF
18578 esac
18579
18580 case $lt_shell_append in
18581 yes)
18582 cat << \_LT_EOF >> "$cfgfile"
18583
18584 # func_append var value
18585 # Append VALUE to the end of shell variable VAR.
18586 func_append ()
18587 {
18588 eval "$1+=\$2"
18589 }
18590 _LT_EOF
18591 ;;
18592 *)
18593 cat << \_LT_EOF >> "$cfgfile"
18594
18595 # func_append var value
18596 # Append VALUE to the end of shell variable VAR.
18597 func_append ()
18598 {
18599 eval "$1=\$$1\$2"
18600 }
18601
18602 _LT_EOF
18603 ;;
18604 esac
18605
18606
18607 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18608 || (rm -f "$cfgfile"; exit 1)
18609
18610 mv -f "$cfgfile" "$ofile" ||
18611 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18612 chmod +x "$ofile"
18613
18614 ;;
18615 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18616 # Older Autoconf quotes --file arguments for eval, but not when files
18617 # are listed without --file. Let's play safe and only enable the eval
18618 # if we detect the quoting.
18619 case $CONFIG_FILES in
18620 *\'*) eval set x "$CONFIG_FILES" ;;
18621 *) set x $CONFIG_FILES ;;
18622 esac
18623 shift
18624 for mf
18625 do
18626 # Strip MF so we end up with the name of the file.
18627 mf=`echo "$mf" | sed -e 's/:.*$//'`
18628 # Check whether this is an Automake generated Makefile or not.
18629 # We used to match only the files named 'Makefile.in', but
18630 # some people rename them; so instead we look at the file content.
18631 # Grep'ing the first line is not enough: some people post-process
18632 # each Makefile.in and add a new line on top of each file to say so.
18633 # Grep'ing the whole file is not good either: AIX grep has a line
18634 # limit of 2048, but all sed's we know have understand at least 4000.
18635 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18636 dirpart=`$as_dirname -- "$mf" ||
18637 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18638 X"$mf" : 'X\(//\)[^/]' \| \
18639 X"$mf" : 'X\(//\)$' \| \
18640 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18641 $as_echo X"$mf" |
18642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18643 s//\1/
18644 q
18645 }
18646 /^X\(\/\/\)[^/].*/{
18647 s//\1/
18648 q
18649 }
18650 /^X\(\/\/\)$/{
18651 s//\1/
18652 q
18653 }
18654 /^X\(\/\).*/{
18655 s//\1/
18656 q
18657 }
18658 s/.*/./; q'`
18659 else
18660 continue
18661 fi
18662 # Extract the definition of DEPDIR, am__include, and am__quote
18663 # from the Makefile without running 'make'.
18664 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18665 test -z "$DEPDIR" && continue
18666 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18667 test -z "$am__include" && continue
18668 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18669 # Find all dependency output files, they are included files with
18670 # $(DEPDIR) in their names. We invoke sed twice because it is the
18671 # simplest approach to changing $(DEPDIR) to its actual value in the
18672 # expansion.
18673 for file in `sed -n "
18674 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18675 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18676 # Make sure the directory exists.
18677 test -f "$dirpart/$file" && continue
18678 fdir=`$as_dirname -- "$file" ||
18679 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18680 X"$file" : 'X\(//\)[^/]' \| \
18681 X"$file" : 'X\(//\)$' \| \
18682 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18683 $as_echo X"$file" |
18684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18685 s//\1/
18686 q
18687 }
18688 /^X\(\/\/\)[^/].*/{
18689 s//\1/
18690 q
18691 }
18692 /^X\(\/\/\)$/{
18693 s//\1/
18694 q
18695 }
18696 /^X\(\/\).*/{
18697 s//\1/
18698 q
18699 }
18700 s/.*/./; q'`
18701 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18702 # echo "creating $dirpart/$file"
18703 echo '# dummy' > "$dirpart/$file"
18704 done
18705 done
18706 }
18707 ;;
18708 "aarch64/Makefile":C) sed -n \
18709 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18710 /^srcdir = / s:$:/aarch64:
18711 p
18712 }' \
18713 <Make-common.sim >aarch64/Makesim1.tmp
18714 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
18715 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
18716 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
18717 <aarch64/Makefile.sim >aarch64/Makefile
18718 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
18719 ;;
18720 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
18721 "arm/Makefile":C) sed -n \
18722 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18723 /^srcdir = / s:$:/arm:
18724 p
18725 }' \
18726 <Make-common.sim >arm/Makesim1.tmp
18727 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
18728 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
18729 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
18730 <arm/Makefile.sim >arm/Makefile
18731 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
18732 ;;
18733 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
18734 "avr/Makefile":C) sed -n \
18735 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18736 /^srcdir = / s:$:/avr:
18737 p
18738 }' \
18739 <Make-common.sim >avr/Makesim1.tmp
18740 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
18741 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
18742 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
18743 <avr/Makefile.sim >avr/Makefile
18744 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
18745 ;;
18746 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
18747 "bfin/Makefile":C) sed -n \
18748 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18749 /^srcdir = / s:$:/bfin:
18750 p
18751 }' \
18752 <Make-common.sim >bfin/Makesim1.tmp
18753 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
18754 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
18755 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
18756 <bfin/Makefile.sim >bfin/Makefile
18757 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
18758 ;;
18759 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
18760 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
18761 "cr16/Makefile":C) sed -n \
18762 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18763 /^srcdir = / s:$:/cr16:
18764 p
18765 }' \
18766 <Make-common.sim >cr16/Makesim1.tmp
18767 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
18768 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
18769 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
18770 <cr16/Makefile.sim >cr16/Makefile
18771 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
18772 ;;
18773 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
18774 "cris/Makefile":C) sed -n \
18775 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18776 /^srcdir = / s:$:/cris:
18777 p
18778 }' \
18779 <Make-common.sim >cris/Makesim1.tmp
18780 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
18781 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
18782 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
18783 <cris/Makefile.sim >cris/Makefile
18784 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
18785 ;;
18786 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
18787 "d10v/Makefile":C) sed -n \
18788 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18789 /^srcdir = / s:$:/d10v:
18790 p
18791 }' \
18792 <Make-common.sim >d10v/Makesim1.tmp
18793 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
18794 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
18795 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
18796 <d10v/Makefile.sim >d10v/Makefile
18797 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
18798 ;;
18799 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
18800 "frv/Makefile":C) sed -n \
18801 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18802 /^srcdir = / s:$:/frv:
18803 p
18804 }' \
18805 <Make-common.sim >frv/Makesim1.tmp
18806 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
18807 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
18808 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
18809 <frv/Makefile.sim >frv/Makefile
18810 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
18811 ;;
18812 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
18813 "ft32/Makefile":C) sed -n \
18814 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18815 /^srcdir = / s:$:/ft32:
18816 p
18817 }' \
18818 <Make-common.sim >ft32/Makesim1.tmp
18819 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
18820 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
18821 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
18822 <ft32/Makefile.sim >ft32/Makefile
18823 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
18824 ;;
18825 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
18826 "h8300/Makefile":C) sed -n \
18827 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18828 /^srcdir = / s:$:/h8300:
18829 p
18830 }' \
18831 <Make-common.sim >h8300/Makesim1.tmp
18832 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
18833 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
18834 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
18835 <h8300/Makefile.sim >h8300/Makefile
18836 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
18837 ;;
18838 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
18839 "iq2000/Makefile":C) sed -n \
18840 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18841 /^srcdir = / s:$:/iq2000:
18842 p
18843 }' \
18844 <Make-common.sim >iq2000/Makesim1.tmp
18845 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
18846 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
18847 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
18848 <iq2000/Makefile.sim >iq2000/Makefile
18849 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
18850 ;;
18851 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
18852 "lm32/Makefile":C) sed -n \
18853 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18854 /^srcdir = / s:$:/lm32:
18855 p
18856 }' \
18857 <Make-common.sim >lm32/Makesim1.tmp
18858 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
18859 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
18860 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
18861 <lm32/Makefile.sim >lm32/Makefile
18862 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
18863 ;;
18864 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
18865 "m32c/Makefile":C) sed -n \
18866 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18867 /^srcdir = / s:$:/m32c:
18868 p
18869 }' \
18870 <Make-common.sim >m32c/Makesim1.tmp
18871 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
18872 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
18873 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
18874 <m32c/Makefile.sim >m32c/Makefile
18875 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
18876 ;;
18877 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
18878 "m32r/Makefile":C) sed -n \
18879 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18880 /^srcdir = / s:$:/m32r:
18881 p
18882 }' \
18883 <Make-common.sim >m32r/Makesim1.tmp
18884 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
18885 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
18886 -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
18887 <m32r/Makefile.sim >m32r/Makefile
18888 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
18889 ;;
18890 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
18891 "m68hc11/Makefile":C) sed -n \
18892 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18893 /^srcdir = / s:$:/m68hc11:
18894 p
18895 }' \
18896 <Make-common.sim >m68hc11/Makesim1.tmp
18897 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
18898 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
18899 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
18900 <m68hc11/Makefile.sim >m68hc11/Makefile
18901 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
18902 ;;
18903 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
18904 "mcore/Makefile":C) sed -n \
18905 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18906 /^srcdir = / s:$:/mcore:
18907 p
18908 }' \
18909 <Make-common.sim >mcore/Makesim1.tmp
18910 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
18911 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
18912 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
18913 <mcore/Makefile.sim >mcore/Makefile
18914 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
18915 ;;
18916 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
18917 "microblaze/Makefile":C) sed -n \
18918 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18919 /^srcdir = / s:$:/microblaze:
18920 p
18921 }' \
18922 <Make-common.sim >microblaze/Makesim1.tmp
18923 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
18924 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
18925 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
18926 <microblaze/Makefile.sim >microblaze/Makefile
18927 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
18928 ;;
18929 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
18930 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
18931 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
18932 "moxie/Makefile":C) sed -n \
18933 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18934 /^srcdir = / s:$:/moxie:
18935 p
18936 }' \
18937 <Make-common.sim >moxie/Makesim1.tmp
18938 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
18939 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
18940 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
18941 <moxie/Makefile.sim >moxie/Makefile
18942 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
18943 ;;
18944 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
18945 "msp430/Makefile":C) sed -n \
18946 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18947 /^srcdir = / s:$:/msp430:
18948 p
18949 }' \
18950 <Make-common.sim >msp430/Makesim1.tmp
18951 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
18952 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
18953 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
18954 <msp430/Makefile.sim >msp430/Makefile
18955 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
18956 ;;
18957 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
18958 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
18959 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
18960 "pru/Makefile":C) sed -n \
18961 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18962 /^srcdir = / s:$:/pru:
18963 p
18964 }' \
18965 <Make-common.sim >pru/Makesim1.tmp
18966 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
18967 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
18968 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
18969 <pru/Makefile.sim >pru/Makefile
18970 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
18971 ;;
18972 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
18973 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
18974 "rl78/Makefile":C) sed -n \
18975 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18976 /^srcdir = / s:$:/rl78:
18977 p
18978 }' \
18979 <Make-common.sim >rl78/Makesim1.tmp
18980 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
18981 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
18982 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
18983 <rl78/Makefile.sim >rl78/Makefile
18984 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
18985 ;;
18986 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
18987 "rx/Makefile":C) sed -n \
18988 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18989 /^srcdir = / s:$:/rx:
18990 p
18991 }' \
18992 <Make-common.sim >rx/Makesim1.tmp
18993 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
18994 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
18995 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
18996 <rx/Makefile.sim >rx/Makefile
18997 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
18998 ;;
18999 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
19000 "sh/Makefile":C) sed -n \
19001 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19002 /^srcdir = / s:$:/sh:
19003 p
19004 }' \
19005 <Make-common.sim >sh/Makesim1.tmp
19006 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
19007 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
19008 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
19009 <sh/Makefile.sim >sh/Makefile
19010 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
19011 ;;
19012 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
19013 "erc32/Makefile":C) sed -n \
19014 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19015 /^srcdir = / s:$:/erc32:
19016 p
19017 }' \
19018 <Make-common.sim >erc32/Makesim1.tmp
19019 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
19020 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
19021 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
19022 <erc32/Makefile.sim >erc32/Makefile
19023 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
19024 ;;
19025 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
19026 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
19027 "example-synacor/Makefile":C) sed -n \
19028 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19029 /^srcdir = / s:$:/example-synacor:
19030 p
19031 }' \
19032 <Make-common.sim >example-synacor/Makesim1.tmp
19033 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
19034 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
19035 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
19036 <example-synacor/Makefile.sim >example-synacor/Makefile
19037 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
19038 ;;
19039 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
19040
19041 esac
19042 done # for ac_tag
19043
19044
19045 as_fn_exit 0
19046 _ACEOF
19047 ac_clean_files=$ac_clean_files_save
19048
19049 test $ac_write_fail = 0 ||
19050 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19051
19052
19053 # configure is writing to config.log, and then calls config.status.
19054 # config.status does its own redirection, appending to config.log.
19055 # Unfortunately, on DOS this fails, as config.log is still kept open
19056 # by configure, so config.status won't be able to write to it; its
19057 # output is simply discarded. So we exec the FD to /dev/null,
19058 # effectively closing config.log, so it can be properly (re)opened and
19059 # appended to by config.status. When coming back to configure, we
19060 # need to make the FD available again.
19061 if test "$no_create" != yes; then
19062 ac_cs_success=:
19063 ac_config_status_args=
19064 test "$silent" = yes &&
19065 ac_config_status_args="$ac_config_status_args --quiet"
19066 exec 5>/dev/null
19067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19068 exec 5>>config.log
19069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19070 # would make configure fail if this is the last instruction.
19071 $ac_cs_success || as_fn_exit 1
19072 fi
19073
19074 #
19075 # CONFIG_SUBDIRS section.
19076 #
19077 if test "$no_recursion" != yes; then
19078
19079 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19080 # so they do not pile up.
19081 ac_sub_configure_args=
19082 ac_prev=
19083 eval "set x $ac_configure_args"
19084 shift
19085 for ac_arg
19086 do
19087 if test -n "$ac_prev"; then
19088 ac_prev=
19089 continue
19090 fi
19091 case $ac_arg in
19092 -cache-file | --cache-file | --cache-fil | --cache-fi \
19093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19094 ac_prev=cache_file ;;
19095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19097 | --c=*)
19098 ;;
19099 --config-cache | -C)
19100 ;;
19101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19102 ac_prev=srcdir ;;
19103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19104 ;;
19105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19106 ac_prev=prefix ;;
19107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19108 ;;
19109 --disable-option-checking)
19110 ;;
19111 *)
19112 case $ac_arg in
19113 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19114 esac
19115 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19116 esac
19117 done
19118
19119 # Always prepend --prefix to ensure using the same prefix
19120 # in subdir configurations.
19121 ac_arg="--prefix=$prefix"
19122 case $ac_arg in
19123 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19124 esac
19125 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19126
19127 # Pass --silent
19128 if test "$silent" = yes; then
19129 ac_sub_configure_args="--silent $ac_sub_configure_args"
19130 fi
19131
19132 # Always prepend --disable-option-checking to silence warnings, since
19133 # different subdirs can have different --enable and --with options.
19134 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19135
19136 ac_popdir=`pwd`
19137 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19138
19139 # Do not complain, so a configure script can configure whichever
19140 # parts of a large source tree are present.
19141 test -d "$srcdir/$ac_dir" || continue
19142
19143 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19144 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19145 $as_echo "$ac_msg" >&6
19146 as_dir="$ac_dir"; as_fn_mkdir_p
19147 ac_builddir=.
19148
19149 case "$ac_dir" in
19150 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19151 *)
19152 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19153 # A ".." for each directory in $ac_dir_suffix.
19154 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19155 case $ac_top_builddir_sub in
19156 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19157 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19158 esac ;;
19159 esac
19160 ac_abs_top_builddir=$ac_pwd
19161 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19162 # for backward compatibility:
19163 ac_top_builddir=$ac_top_build_prefix
19164
19165 case $srcdir in
19166 .) # We are building in place.
19167 ac_srcdir=.
19168 ac_top_srcdir=$ac_top_builddir_sub
19169 ac_abs_top_srcdir=$ac_pwd ;;
19170 [\\/]* | ?:[\\/]* ) # Absolute name.
19171 ac_srcdir=$srcdir$ac_dir_suffix;
19172 ac_top_srcdir=$srcdir
19173 ac_abs_top_srcdir=$srcdir ;;
19174 *) # Relative name.
19175 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19176 ac_top_srcdir=$ac_top_build_prefix$srcdir
19177 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19178 esac
19179 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19180
19181
19182 cd "$ac_dir"
19183
19184 # Check for guested configure; otherwise get Cygnus style configure.
19185 if test -f "$ac_srcdir/configure.gnu"; then
19186 ac_sub_configure=$ac_srcdir/configure.gnu
19187 elif test -f "$ac_srcdir/configure"; then
19188 ac_sub_configure=$ac_srcdir/configure
19189 elif test -f "$ac_srcdir/configure.in"; then
19190 # This should be Cygnus configure.
19191 ac_sub_configure=$ac_aux_dir/configure
19192 else
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19194 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19195 ac_sub_configure=
19196 fi
19197
19198 # The recursion is here.
19199 if test -n "$ac_sub_configure"; then
19200 # Make the cache file name correct relative to the subdirectory.
19201 case $cache_file in
19202 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19203 *) # Relative name.
19204 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19205 esac
19206
19207 { $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
19208 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19209 # The eval makes quoting arguments work.
19210 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19211 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19212 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19213 fi
19214
19215 cd "$ac_popdir"
19216 done
19217 fi
19218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19220 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19221 fi
19222