sim: overhaul & unify endian settings management
[deliverable/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 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='sim'
583 PACKAGE_TARNAME='sim'
584 PACKAGE_VERSION='0'
585 PACKAGE_STRING='sim 0'
586 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
587 PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
588
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_header_list=
626 ac_func_list=
627 enable_option_checking=no
628 ac_subst_vars='am__EXEEXT_FALSE
629 am__EXEEXT_TRUE
630 LTLIBOBJS
631 SIM_ENABLE_IGEN_FALSE
632 SIM_ENABLE_IGEN_TRUE
633 subdirs
634 SIM_PRIMARY_TARGET
635 AM_BACKSLASH
636 AM_DEFAULT_VERBOSITY
637 AM_DEFAULT_V
638 AM_V
639 am__fastdepCC_FALSE
640 am__fastdepCC_TRUE
641 CCDEPMODE
642 am__nodep
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 am__untar
650 am__tar
651 AMTAR
652 am__leading_dot
653 SET_MAKE
654 AWK
655 mkdir_p
656 MKDIR_P
657 INSTALL_STRIP_PROGRAM
658 STRIP
659 install_sh
660 MAKEINFO
661 AUTOHEADER
662 AUTOMAKE
663 AUTOCONF
664 ACLOCAL
665 VERSION
666 PACKAGE
667 CYGPATH_W
668 am__isrc
669 MAINT
670 MAINTAINER_MODE_FALSE
671 MAINTAINER_MODE_TRUE
672 LIBOBJS
673 C_DIALECT
674 RANLIB
675 AR
676 LDFLAGS_FOR_BUILD
677 CFLAGS_FOR_BUILD
678 RANLIB_FOR_BUILD
679 CC_FOR_BUILD
680 AR_FOR_BUILD
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 EGREP
685 GREP
686 CPP
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 target_os
695 target_vendor
696 target_cpu
697 target
698 host_os
699 host_vendor
700 host_cpu
701 host
702 build_os
703 build_vendor
704 build_cpu
705 build
706 REPORT_BUGS_TEXI
707 REPORT_BUGS_TO
708 PKGVERSION
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 with_pkgversion
751 with_bugurl
752 enable_maintainer_mode
753 enable_dependency_tracking
754 enable_silent_rules
755 enable_sim
756 enable_example_sims
757 enable_targets
758 enable_sim_alignment
759 enable_sim_assert
760 enable_sim_debug
761 enable_sim_endian
762 enable_sim_environment
763 enable_sim_profile
764 enable_sim_stdio
765 enable_sim_trace
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP'
776 ac_subdirs_all='aarch64
777 arm
778 avr
779 bfin
780 bpf
781 cr16
782 cris
783 d10v
784 frv
785 h8300
786 iq2000
787 lm32
788 m32c
789 m32r
790 m68hc11
791 mcore
792 microblaze
793 mips
794 mn10300
795 moxie
796 msp430
797 or1k
798 pru
799 riscv
800 rl78
801 rx
802 sh
803 erc32
804 ppc
805 ft32
806 v850
807 example-synacor'
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312 else
1313 ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures sim 0 to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1401
1402 cat <<\_ACEOF
1403
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 --target=TARGET configure for building compilers for TARGET [HOST]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of sim 0:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-maintainer-mode
1427 enable make rules and dependencies not useful (and
1428 sometimes confusing) to the casual installer
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --enable-silent-rules less verbose build output (undo: "make V=1")
1434 --disable-silent-rules verbose build output (undo: "make V=0")
1435 --enable-sim Enable the GNU simulator
1436 --enable-example-sims enable example GNU simulators
1437 --enable-targets alternative target configurations
1438 --enable-sim-alignment=align
1439 Specify strict, nonstrict or forced alignment of
1440 memory accesses
1441 --enable-sim-assert Specify whether to perform random assertions
1442 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1443 itself)
1444 --enable-sim-endian=endian
1445 Specify target byte endian orientation
1446 --enable-sim-environment=environment
1447 Specify mixed, user, virtual or operating
1448 environment
1449 --enable-sim-profile=opts
1450 Enable profiling flags
1451 --enable-sim-stdio Specify whether to use stdio for console
1452 input/output
1453 --enable-sim-trace=opts Enable tracing of simulated programs
1454
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1459 --with-bugurl=URL Direct users to URL to report a bug
1460
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 LIBS libraries to pass to the linker, e.g. -l<library>
1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 CPP C preprocessor
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1475 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 sim configure 0
1539 generated by GNU Autoconf 2.69
1540
1541 Copyright (C) 2012 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584 fi
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_c_try_cpp LINENO
1591 # ----------------------
1592 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_cpp ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 if { { ac_try="$ac_cpp conftest.$ac_ext"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } > conftest.i && {
1612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 }; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621 fi
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_cpp
1626
1627 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1630 # the include files in INCLUDES and setting the cache variable VAR
1631 # accordingly.
1632 ac_fn_c_check_header_mongrel ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if eval \${$3+:} false; then :
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if eval \${$3+:} false; then :
1639 $as_echo_n "(cached) " >&6
1640 fi
1641 eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 else
1645 # Is the header compilable?
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1647 $as_echo_n "checking $2 usability... " >&6; }
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 ac_header_compiler=yes
1655 else
1656 ac_header_compiler=no
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1660 $as_echo "$ac_header_compiler" >&6; }
1661
1662 # Is the header present?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1664 $as_echo_n "checking $2 presence... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 #include <$2>
1668 _ACEOF
1669 if ac_fn_c_try_cpp "$LINENO"; then :
1670 ac_header_preproc=yes
1671 else
1672 ac_header_preproc=no
1673 fi
1674 rm -f conftest.err conftest.i conftest.$ac_ext
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1676 $as_echo "$ac_header_preproc" >&6; }
1677
1678 # So? What about this header?
1679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1680 yes:no: )
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1682 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 ;;
1686 no:yes:* )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1688 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1690 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1692 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1694 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1698 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1699 ## -------------------------------------------------------------------------------------- ##"
1700 ) | sed "s/^/$as_me: WARNING: /" >&2
1701 ;;
1702 esac
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if eval \${$3+:} false; then :
1706 $as_echo_n "(cached) " >&6
1707 else
1708 eval "$3=\$ac_header_compiler"
1709 fi
1710 eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713 fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716 } # ac_fn_c_check_header_mongrel
1717
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1722 ac_fn_c_try_run ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=$ac_status
1753 fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_run
1759
1760 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists and can be compiled using the include files in
1763 # INCLUDES, setting the cache variable VAR accordingly.
1764 ac_fn_c_check_header_compile ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 $4
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_compile "$LINENO"; then :
1778 eval "$3=yes"
1779 else
1780 eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_header_compile
1790
1791 # ac_fn_c_try_link LINENO
1792 # -----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_link ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 test -x conftest$ac_exeext
1819 }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826 fi
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_link
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852 #define $2 innocuous_$2
1853
1854 /* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below.
1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857 <limits.h> exists even on freestanding compilers. */
1858
1859 #ifdef __STDC__
1860 # include <limits.h>
1861 #else
1862 # include <assert.h>
1863 #endif
1864
1865 #undef $2
1866
1867 /* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1870 #ifdef __cplusplus
1871 extern "C"
1872 #endif
1873 char $2 ();
1874 /* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877 #if defined __stub_$2 || defined __stub___$2
1878 choke me
1879 #endif
1880
1881 int
1882 main ()
1883 {
1884 return $2 ();
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_link "$LINENO"; then :
1890 eval "$3=yes"
1891 else
1892 eval "$3=no"
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext \
1895 conftest$ac_exeext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_func
1903
1904 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1905 # ----------------------------------------------------
1906 # Tries to find if the field MEMBER exists in type AGGR, after including
1907 # INCLUDES, setting cache variable VAR accordingly.
1908 ac_fn_c_check_member ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1912 $as_echo_n "checking for $2.$3... " >&6; }
1913 if eval \${$4+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $5
1919 int
1920 main ()
1921 {
1922 static $2 ac_aggr;
1923 if (ac_aggr.$3)
1924 return 0;
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 eval "$4=yes"
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $5
1935 int
1936 main ()
1937 {
1938 static $2 ac_aggr;
1939 if (sizeof ac_aggr.$3)
1940 return 0;
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 eval "$4=yes"
1947 else
1948 eval "$4=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$4
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_check_member
1960
1961 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1962 # ---------------------------------------------
1963 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1964 # accordingly.
1965 ac_fn_c_check_decl ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 as_decl_name=`echo $2|sed 's/ *(.*//'`
1969 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1971 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1972 if eval \${$3+:} false; then :
1973 $as_echo_n "(cached) " >&6
1974 else
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main ()
1980 {
1981 #ifndef $as_decl_name
1982 #ifdef __cplusplus
1983 (void) $as_decl_use;
1984 #else
1985 (void) $as_decl_name;
1986 #endif
1987 #endif
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 eval "$3=yes"
1995 else
1996 eval "$3=no"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_decl
2006
2007 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2008 # -------------------------------------------
2009 # Tests whether TYPE exists after having included INCLUDES, setting cache
2010 # variable VAR accordingly.
2011 ac_fn_c_check_type ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=no"
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main ()
2025 {
2026 if (sizeof ($2))
2027 return 0;
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main ()
2038 {
2039 if (sizeof (($2)))
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046
2047 else
2048 eval "$3=yes"
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_c_check_type
2060 cat >config.log <<_ACEOF
2061 This file contains any messages produced by compilers while
2062 running configure, to aid debugging if configure makes a mistake.
2063
2064 It was created by sim $as_me 0, which was
2065 generated by GNU Autoconf 2.69. Invocation command line was
2066
2067 $ $0 $@
2068
2069 _ACEOF
2070 exec 5>>config.log
2071 {
2072 cat <<_ASUNAME
2073 ## --------- ##
2074 ## Platform. ##
2075 ## --------- ##
2076
2077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082
2083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2085
2086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2093
2094 _ASUNAME
2095
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 $as_echo "PATH: $as_dir"
2102 done
2103 IFS=$as_save_IFS
2104
2105 } >&5
2106
2107 cat >&5 <<_ACEOF
2108
2109
2110 ## ----------- ##
2111 ## Core tests. ##
2112 ## ----------- ##
2113
2114 _ACEOF
2115
2116
2117 # Keep a trace of the command line.
2118 # Strip out --no-create and --no-recursion so they do not pile up.
2119 # Strip out --silent because we don't want to record it for future runs.
2120 # Also quote any args containing shell meta-characters.
2121 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_configure_args=
2123 ac_configure_args0=
2124 ac_configure_args1=
2125 ac_must_keep_next=false
2126 for ac_pass in 1 2
2127 do
2128 for ac_arg
2129 do
2130 case $ac_arg in
2131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133 | -silent | --silent | --silen | --sile | --sil)
2134 continue ;;
2135 *\'*)
2136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 esac
2138 case $ac_pass in
2139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 2)
2141 as_fn_append ac_configure_args1 " '$ac_arg'"
2142 if test $ac_must_keep_next = true; then
2143 ac_must_keep_next=false # Got value, back to normal.
2144 else
2145 case $ac_arg in
2146 *=* | --config-cache | -C | -disable-* | --disable-* \
2147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149 | -with-* | --with-* | -without-* | --without-* | --x)
2150 case "$ac_configure_args0 " in
2151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152 esac
2153 ;;
2154 -* ) ac_must_keep_next=true ;;
2155 esac
2156 fi
2157 as_fn_append ac_configure_args " '$ac_arg'"
2158 ;;
2159 esac
2160 done
2161 done
2162 { ac_configure_args0=; unset ac_configure_args0;}
2163 { ac_configure_args1=; unset ac_configure_args1;}
2164
2165 # When interrupted or exit'd, cleanup temporary files, and complete
2166 # config.log. We remove comments because anyway the quotes in there
2167 # would cause problems or look ugly.
2168 # WARNING: Use '\'' to represent an apostrophe within the trap.
2169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170 trap 'exit_status=$?
2171 # Save into config.log some information that might help in debugging.
2172 {
2173 echo
2174
2175 $as_echo "## ---------------- ##
2176 ## Cache variables. ##
2177 ## ---------------- ##"
2178 echo
2179 # The following way of writing the cache mishandles newlines in values,
2180 (
2181 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2182 eval ac_val=\$$ac_var
2183 case $ac_val in #(
2184 *${as_nl}*)
2185 case $ac_var in #(
2186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2188 esac
2189 case $ac_var in #(
2190 _ | IFS | as_nl) ;; #(
2191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2192 *) { eval $ac_var=; unset $ac_var;} ;;
2193 esac ;;
2194 esac
2195 done
2196 (set) 2>&1 |
2197 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2198 *${as_nl}ac_space=\ *)
2199 sed -n \
2200 "s/'\''/'\''\\\\'\'''\''/g;
2201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2202 ;; #(
2203 *)
2204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2205 ;;
2206 esac |
2207 sort
2208 )
2209 echo
2210
2211 $as_echo "## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##"
2214 echo
2215 for ac_var in $ac_subst_vars
2216 do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in
2219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 esac
2221 $as_echo "$ac_var='\''$ac_val'\''"
2222 done | sort
2223 echo
2224
2225 if test -n "$ac_subst_files"; then
2226 $as_echo "## ------------------- ##
2227 ## File substitutions. ##
2228 ## ------------------- ##"
2229 echo
2230 for ac_var in $ac_subst_files
2231 do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 $as_echo "$ac_var='\''$ac_val'\''"
2237 done | sort
2238 echo
2239 fi
2240
2241 if test -s confdefs.h; then
2242 $as_echo "## ----------- ##
2243 ## confdefs.h. ##
2244 ## ----------- ##"
2245 echo
2246 cat confdefs.h
2247 echo
2248 fi
2249 test "$ac_signal" != 0 &&
2250 $as_echo "$as_me: caught signal $ac_signal"
2251 $as_echo "$as_me: exit $exit_status"
2252 } >&5
2253 rm -f core *.core core.conftest.* &&
2254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2255 exit $exit_status
2256 ' 0
2257 for ac_signal in 1 2 13 15; do
2258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2259 done
2260 ac_signal=0
2261
2262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2263 rm -f -r conftest* confdefs.h
2264
2265 $as_echo "/* confdefs.h */" > confdefs.h
2266
2267 # Predefined preprocessor variables.
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_NAME "$PACKAGE_NAME"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_STRING "$PACKAGE_STRING"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_URL "$PACKAGE_URL"
2291 _ACEOF
2292
2293
2294 # Let the site file select an alternate cache file if it wants to.
2295 # Prefer an explicitly selected file to automatically selected ones.
2296 ac_site_file1=NONE
2297 ac_site_file2=NONE
2298 if test -n "$CONFIG_SITE"; then
2299 # We do not want a PATH search for config.site.
2300 case $CONFIG_SITE in #((
2301 -*) ac_site_file1=./$CONFIG_SITE;;
2302 */*) ac_site_file1=$CONFIG_SITE;;
2303 *) ac_site_file1=./$CONFIG_SITE;;
2304 esac
2305 elif test "x$prefix" != xNONE; then
2306 ac_site_file1=$prefix/share/config.site
2307 ac_site_file2=$prefix/etc/config.site
2308 else
2309 ac_site_file1=$ac_default_prefix/share/config.site
2310 ac_site_file2=$ac_default_prefix/etc/config.site
2311 fi
2312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 do
2314 test "x$ac_site_file" = xNONE && continue
2315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318 sed 's/^/| /' "$ac_site_file" >&5
2319 . "$ac_site_file" \
2320 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 as_fn_error $? "failed to load site script $ac_site_file
2323 See \`config.log' for more details" "$LINENO" 5; }
2324 fi
2325 done
2326
2327 if test -r "$cache_file"; then
2328 # Some versions of bash will fail to source /dev/null (special files
2329 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2330 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2332 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 case $cache_file in
2334 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2335 *) . "./$cache_file";;
2336 esac
2337 fi
2338 else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2340 $as_echo "$as_me: creating cache $cache_file" >&6;}
2341 >$cache_file
2342 fi
2343
2344 as_fn_append ac_header_list " dlfcn.h"
2345 as_fn_append ac_header_list " fcntl.h"
2346 as_fn_append ac_header_list " fpu_control.h"
2347 as_fn_append ac_header_list " termios.h"
2348 as_fn_append ac_header_list " unistd.h"
2349 as_fn_append ac_header_list " utime.h"
2350 as_fn_append ac_header_list " linux/if_tun.h"
2351 as_fn_append ac_header_list " linux/mii.h"
2352 as_fn_append ac_header_list " linux/types.h"
2353 as_fn_append ac_header_list " net/if.h"
2354 as_fn_append ac_header_list " netinet/in.h"
2355 as_fn_append ac_header_list " netinet/tcp.h"
2356 as_fn_append ac_header_list " sys/ioctl.h"
2357 as_fn_append ac_header_list " sys/mman.h"
2358 as_fn_append ac_header_list " sys/mount.h"
2359 as_fn_append ac_header_list " sys/param.h"
2360 as_fn_append ac_header_list " sys/resource.h"
2361 as_fn_append ac_header_list " sys/socket.h"
2362 as_fn_append ac_header_list " sys/stat.h"
2363 as_fn_append ac_header_list " sys/statfs.h"
2364 as_fn_append ac_header_list " sys/termio.h"
2365 as_fn_append ac_header_list " sys/termios.h"
2366 as_fn_append ac_header_list " sys/types.h"
2367 as_fn_append ac_header_list " sys/vfs.h"
2368 as_fn_append ac_func_list " __setfpucw"
2369 as_fn_append ac_func_list " access"
2370 as_fn_append ac_func_list " aint"
2371 as_fn_append ac_func_list " anint"
2372 as_fn_append ac_func_list " cfgetispeed"
2373 as_fn_append ac_func_list " cfgetospeed"
2374 as_fn_append ac_func_list " cfsetispeed"
2375 as_fn_append ac_func_list " cfsetospeed"
2376 as_fn_append ac_func_list " chdir"
2377 as_fn_append ac_func_list " chmod"
2378 as_fn_append ac_func_list " dup"
2379 as_fn_append ac_func_list " dup2"
2380 as_fn_append ac_func_list " execv"
2381 as_fn_append ac_func_list " execve"
2382 as_fn_append ac_func_list " fcntl"
2383 as_fn_append ac_func_list " fork"
2384 as_fn_append ac_func_list " fstat"
2385 as_fn_append ac_func_list " fstatfs"
2386 as_fn_append ac_func_list " ftruncate"
2387 as_fn_append ac_func_list " getdirentries"
2388 as_fn_append ac_func_list " getegid"
2389 as_fn_append ac_func_list " geteuid"
2390 as_fn_append ac_func_list " getgid"
2391 as_fn_append ac_func_list " getpid"
2392 as_fn_append ac_func_list " getppid"
2393 as_fn_append ac_func_list " getrusage"
2394 as_fn_append ac_func_list " gettimeofday"
2395 as_fn_append ac_func_list " getuid"
2396 as_fn_append ac_func_list " ioctl"
2397 as_fn_append ac_func_list " kill"
2398 as_fn_append ac_func_list " link"
2399 as_fn_append ac_func_list " lseek"
2400 as_fn_append ac_func_list " mmap"
2401 as_fn_append ac_func_list " munmap"
2402 as_fn_append ac_func_list " pipe"
2403 as_fn_append ac_func_list " posix_fallocate"
2404 as_fn_append ac_func_list " pread"
2405 as_fn_append ac_func_list " rmdir"
2406 as_fn_append ac_func_list " setregid"
2407 as_fn_append ac_func_list " setreuid"
2408 as_fn_append ac_func_list " setgid"
2409 as_fn_append ac_func_list " setuid"
2410 as_fn_append ac_func_list " sigaction"
2411 as_fn_append ac_func_list " sigprocmask"
2412 as_fn_append ac_func_list " sqrt"
2413 as_fn_append ac_func_list " stat"
2414 as_fn_append ac_func_list " strsignal"
2415 as_fn_append ac_func_list " symlink"
2416 as_fn_append ac_func_list " tcdrain"
2417 as_fn_append ac_func_list " tcflow"
2418 as_fn_append ac_func_list " tcflush"
2419 as_fn_append ac_func_list " tcgetattr"
2420 as_fn_append ac_func_list " tcgetpgrp"
2421 as_fn_append ac_func_list " tcsendbreak"
2422 as_fn_append ac_func_list " tcsetattr"
2423 as_fn_append ac_func_list " tcsetpgrp"
2424 as_fn_append ac_func_list " time"
2425 as_fn_append ac_func_list " truncate"
2426 as_fn_append ac_func_list " umask"
2427 as_fn_append ac_func_list " unlink"
2428 as_fn_append ac_func_list " utime"
2429 # Check that the precious variables saved in the cache have kept the same
2430 # value.
2431 ac_cache_corrupted=false
2432 for ac_var in $ac_precious_vars; do
2433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2434 eval ac_new_set=\$ac_env_${ac_var}_set
2435 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2436 eval ac_new_val=\$ac_env_${ac_var}_value
2437 case $ac_old_set,$ac_new_set in
2438 set,)
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2440 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2441 ac_cache_corrupted=: ;;
2442 ,set)
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2444 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2445 ac_cache_corrupted=: ;;
2446 ,);;
2447 *)
2448 if test "x$ac_old_val" != "x$ac_new_val"; then
2449 # differences in whitespace do not lead to failure.
2450 ac_old_val_w=`echo x $ac_old_val`
2451 ac_new_val_w=`echo x $ac_new_val`
2452 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2454 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2455 ac_cache_corrupted=:
2456 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2458 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2459 eval $ac_var=\$ac_old_val
2460 fi
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2462 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2464 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2465 fi;;
2466 esac
2467 # Pass precious variables to config.status.
2468 if test "$ac_new_set" = set; then
2469 case $ac_new_val in
2470 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2471 *) ac_arg=$ac_var=$ac_new_val ;;
2472 esac
2473 case " $ac_configure_args " in
2474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2475 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2476 esac
2477 fi
2478 done
2479 if $ac_cache_corrupted; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2483 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2484 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2485 fi
2486 ## -------------------- ##
2487 ## Main body of script. ##
2488 ## -------------------- ##
2489
2490 ac_ext=c
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495
2496
2497
2498
2499
2500
2501
2502
2503 # Check whether --with-pkgversion was given.
2504 if test "${with_pkgversion+set}" = set; then :
2505 withval=$with_pkgversion; case "$withval" in
2506 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2507 no) PKGVERSION= ;;
2508 *) PKGVERSION="($withval) " ;;
2509 esac
2510 else
2511 PKGVERSION="(SIM) "
2512
2513 fi
2514
2515
2516
2517
2518 cat >>confdefs.h <<_ACEOF
2519 #define PKGVERSION "$PKGVERSION"
2520 _ACEOF
2521
2522
2523
2524 # Check whether --with-bugurl was given.
2525 if test "${with_bugurl+set}" = set; then :
2526 withval=$with_bugurl; case "$withval" in
2527 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2528 no) BUGURL=
2529 ;;
2530 *) BUGURL="$withval"
2531 ;;
2532 esac
2533 else
2534 BUGURL="$PACKAGE_BUGREPORT"
2535
2536 fi
2537
2538 case ${BUGURL} in
2539 "")
2540 REPORT_BUGS_TO=
2541 REPORT_BUGS_TEXI=
2542 ;;
2543 *)
2544 REPORT_BUGS_TO="<$BUGURL>"
2545 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2546 ;;
2547 esac;
2548
2549
2550
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2554 _ACEOF
2555
2556
2557 ac_config_headers="$ac_config_headers config.h"
2558
2559
2560 ac_aux_dir=
2561 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2562 if test -f "$ac_dir/install-sh"; then
2563 ac_aux_dir=$ac_dir
2564 ac_install_sh="$ac_aux_dir/install-sh -c"
2565 break
2566 elif test -f "$ac_dir/install.sh"; then
2567 ac_aux_dir=$ac_dir
2568 ac_install_sh="$ac_aux_dir/install.sh -c"
2569 break
2570 elif test -f "$ac_dir/shtool"; then
2571 ac_aux_dir=$ac_dir
2572 ac_install_sh="$ac_aux_dir/shtool install -c"
2573 break
2574 fi
2575 done
2576 if test -z "$ac_aux_dir"; then
2577 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2578 fi
2579
2580 # These three variables are undocumented and unsupported,
2581 # and are intended to be withdrawn in a future Autoconf release.
2582 # They can cause serious problems if a builder's source tree is in a directory
2583 # whose full name contains unusual characters.
2584 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2585 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2586 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2587
2588
2589 # Make sure we can run config.sub.
2590 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2591 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2592
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2594 $as_echo_n "checking build system type... " >&6; }
2595 if ${ac_cv_build+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 ac_build_alias=$build_alias
2599 test "x$ac_build_alias" = x &&
2600 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2601 test "x$ac_build_alias" = x &&
2602 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2603 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2604 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2605
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2608 $as_echo "$ac_cv_build" >&6; }
2609 case $ac_cv_build in
2610 *-*-*) ;;
2611 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2612 esac
2613 build=$ac_cv_build
2614 ac_save_IFS=$IFS; IFS='-'
2615 set x $ac_cv_build
2616 shift
2617 build_cpu=$1
2618 build_vendor=$2
2619 shift; shift
2620 # Remember, the first character of IFS is used to create $*,
2621 # except with old shells:
2622 build_os=$*
2623 IFS=$ac_save_IFS
2624 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2625
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2628 $as_echo_n "checking host system type... " >&6; }
2629 if ${ac_cv_host+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test "x$host_alias" = x; then
2633 ac_cv_host=$ac_cv_build
2634 else
2635 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2636 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2637 fi
2638
2639 fi
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2641 $as_echo "$ac_cv_host" >&6; }
2642 case $ac_cv_host in
2643 *-*-*) ;;
2644 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2645 esac
2646 host=$ac_cv_host
2647 ac_save_IFS=$IFS; IFS='-'
2648 set x $ac_cv_host
2649 shift
2650 host_cpu=$1
2651 host_vendor=$2
2652 shift; shift
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2655 host_os=$*
2656 IFS=$ac_save_IFS
2657 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2658
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2661 $as_echo_n "checking target system type... " >&6; }
2662 if ${ac_cv_target+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test "x$target_alias" = x; then
2666 ac_cv_target=$ac_cv_host
2667 else
2668 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2670 fi
2671
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2674 $as_echo "$ac_cv_target" >&6; }
2675 case $ac_cv_target in
2676 *-*-*) ;;
2677 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2678 esac
2679 target=$ac_cv_target
2680 ac_save_IFS=$IFS; IFS='-'
2681 set x $ac_cv_target
2682 shift
2683 target_cpu=$1
2684 target_vendor=$2
2685 shift; shift
2686 # Remember, the first character of IFS is used to create $*,
2687 # except with old shells:
2688 target_os=$*
2689 IFS=$ac_save_IFS
2690 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2691
2692
2693 # The aliases save the names the user supplied, while $host etc.
2694 # will get canonicalized.
2695 test -n "$target_alias" &&
2696 test "$program_prefix$program_suffix$program_transform_name" = \
2697 NONENONEs,x,x, &&
2698 program_prefix=${target_alias}-
2699 # Expand $ac_aux_dir to an absolute path.
2700 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2701
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_CC+:} false; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 fi
2734 fi
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 fi
2743
2744
2745 fi
2746 if test -z "$ac_cv_prog_CC"; then
2747 ac_ct_CC=$CC
2748 # Extract the first word of "gcc", so it can be a program name with args.
2749 set dummy gcc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$ac_ct_CC"; then
2756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_ac_ct_CC="gcc"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2770 done
2771 IFS=$as_save_IFS
2772
2773 fi
2774 fi
2775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2776 if test -n "$ac_ct_CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2778 $as_echo "$ac_ct_CC" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2782 fi
2783
2784 if test "x$ac_ct_CC" = x; then
2785 CC=""
2786 else
2787 case $cross_compiling:$ac_tool_warned in
2788 yes:)
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2791 ac_tool_warned=yes ;;
2792 esac
2793 CC=$ac_ct_CC
2794 fi
2795 else
2796 CC="$ac_cv_prog_CC"
2797 fi
2798
2799 if test -z "$CC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}cc; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_CC+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_CC="${ac_tool_prefix}cc"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 fi
2840 if test -z "$CC"; then
2841 # Extract the first word of "cc", so it can be a program name with args.
2842 set dummy cc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 ac_prog_rejected=no
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2860 ac_prog_rejected=yes
2861 continue
2862 fi
2863 ac_cv_prog_CC="cc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 if test $ac_prog_rejected = yes; then
2872 # We found a bogon in the path, so make sure we never use it.
2873 set dummy $ac_cv_prog_CC
2874 shift
2875 if test $# != 0; then
2876 # We chose a different compiler from the bogus one.
2877 # However, it has the same basename, so the bogon will be chosen
2878 # first if we set CC to just the basename; use the full file name.
2879 shift
2880 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2881 fi
2882 fi
2883 fi
2884 fi
2885 CC=$ac_cv_prog_CC
2886 if test -n "$CC"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 $as_echo "$CC" >&6; }
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 fi
2893
2894
2895 fi
2896 if test -z "$CC"; then
2897 if test -n "$ac_tool_prefix"; then
2898 for ac_prog in cl.exe
2899 do
2900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_CC+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936
2937 test -n "$CC" && break
2938 done
2939 fi
2940 if test -z "$CC"; then
2941 ac_ct_CC=$CC
2942 for ac_prog in cl.exe
2943 do
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945 set dummy $ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$ac_ct_CC"; then
2952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_ac_ct_CC="$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2964 fi
2965 done
2966 done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972 if test -n "$ac_ct_CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2974 $as_echo "$ac_ct_CC" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980
2981 test -n "$ac_ct_CC" && break
2982 done
2983
2984 if test "x$ac_ct_CC" = x; then
2985 CC=""
2986 else
2987 case $cross_compiling:$ac_tool_warned in
2988 yes:)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2992 esac
2993 CC=$ac_ct_CC
2994 fi
2995 fi
2996
2997 fi
2998
2999
3000 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error $? "no acceptable C compiler found in \$PATH
3003 See \`config.log' for more details" "$LINENO" 5; }
3004
3005 # Provide some information about the compiler.
3006 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3007 set X $ac_compile
3008 ac_compiler=$2
3009 for ac_option in --version -v -V -qversion; do
3010 { { ac_try="$ac_compiler $ac_option >&5"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3018 ac_status=$?
3019 if test -s conftest.err; then
3020 sed '10a\
3021 ... rest of stderr output deleted ...
3022 10q' conftest.err >conftest.er1
3023 cat conftest.er1 >&5
3024 fi
3025 rm -f conftest.er1 conftest.err
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }
3028 done
3029
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031 /* end confdefs.h. */
3032
3033 int
3034 main ()
3035 {
3036
3037 ;
3038 return 0;
3039 }
3040 _ACEOF
3041 ac_clean_files_save=$ac_clean_files
3042 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3043 # Try to create an executable without -o first, disregard a.out.
3044 # It will help us diagnose broken compilers, and finding out an intuition
3045 # of exeext.
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3047 $as_echo_n "checking whether the C compiler works... " >&6; }
3048 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3049
3050 # The possible output files:
3051 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3052
3053 ac_rmfiles=
3054 for ac_file in $ac_files
3055 do
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3059 esac
3060 done
3061 rm -f $ac_rmfiles
3062
3063 if { { ac_try="$ac_link_default"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link_default") 2>&5
3071 ac_status=$?
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }; then :
3074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3075 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3076 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3077 # so that the user can short-circuit this test for compilers unknown to
3078 # Autoconf.
3079 for ac_file in $ac_files ''
3080 do
3081 test -f "$ac_file" || continue
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3084 ;;
3085 [ab].out )
3086 # We found the default executable, but exeext='' is most
3087 # certainly right.
3088 break;;
3089 *.* )
3090 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3091 then :; else
3092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093 fi
3094 # We set ac_cv_exeext here because the later test for it is not
3095 # safe: cross compilers may not add the suffix if given an `-o'
3096 # argument, so we may need to know it at that point already.
3097 # Even if this section looks crufty: it has the advantage of
3098 # actually working.
3099 break;;
3100 * )
3101 break;;
3102 esac
3103 done
3104 test "$ac_cv_exeext" = no && ac_cv_exeext=
3105
3106 else
3107 ac_file=''
3108 fi
3109 if test -z "$ac_file"; then :
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 $as_echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 as_fn_error 77 "C compiler cannot create executables
3118 See \`config.log' for more details" "$LINENO" 5; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121 $as_echo "yes" >&6; }
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3124 $as_echo_n "checking for C compiler default output file name... " >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3126 $as_echo "$ac_file" >&6; }
3127 ac_exeext=$ac_cv_exeext
3128
3129 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3130 ac_clean_files=$ac_clean_files_save
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132 $as_echo_n "checking for suffix of executables... " >&6; }
3133 if { { ac_try="$ac_link"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3145 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3146 # work properly (i.e., refer to `conftest.exe'), while it won't with
3147 # `rm'.
3148 for ac_file in conftest.exe conftest conftest.*; do
3149 test -f "$ac_file" || continue
3150 case $ac_file in
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153 break;;
3154 * ) break;;
3155 esac
3156 done
3157 else
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3161 See \`config.log' for more details" "$LINENO" 5; }
3162 fi
3163 rm -f conftest conftest$ac_cv_exeext
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165 $as_echo "$ac_cv_exeext" >&6; }
3166
3167 rm -f conftest.$ac_ext
3168 EXEEXT=$ac_cv_exeext
3169 ac_exeext=$EXEEXT
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3172 #include <stdio.h>
3173 int
3174 main ()
3175 {
3176 FILE *f = fopen ("conftest.out", "w");
3177 return ferror (f) || fclose (f) != 0;
3178
3179 ;
3180 return 0;
3181 }
3182 _ACEOF
3183 ac_clean_files="$ac_clean_files conftest.out"
3184 # Check that the compiler produces executables we can run. If not, either
3185 # the compiler is broken, or we cross compile.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3187 $as_echo_n "checking whether we are cross compiling... " >&6; }
3188 if test "$cross_compiling" != yes; then
3189 { { ac_try="$ac_link"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }
3200 if { ac_try='./conftest$ac_cv_exeext'
3201 { { case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_try") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; }; then
3211 cross_compiling=no
3212 else
3213 if test "$cross_compiling" = maybe; then
3214 cross_compiling=yes
3215 else
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $? "cannot run C compiled programs.
3219 If you meant to cross compile, use \`--host'.
3220 See \`config.log' for more details" "$LINENO" 5; }
3221 fi
3222 fi
3223 fi
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3225 $as_echo "$cross_compiling" >&6; }
3226
3227 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3228 ac_clean_files=$ac_clean_files_save
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3230 $as_echo_n "checking for suffix of object files... " >&6; }
3231 if ${ac_cv_objext+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3236
3237 int
3238 main ()
3239 {
3240
3241 ;
3242 return 0;
3243 }
3244 _ACEOF
3245 rm -f conftest.o conftest.obj
3246 if { { ac_try="$ac_compile"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_compile") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
3257 for ac_file in conftest.o conftest.obj conftest.*; do
3258 test -f "$ac_file" || continue;
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3262 break;;
3263 esac
3264 done
3265 else
3266 $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 as_fn_error $? "cannot compute suffix of object files: cannot compile
3272 See \`config.log' for more details" "$LINENO" 5; }
3273 fi
3274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3277 $as_echo "$ac_cv_objext" >&6; }
3278 OBJEXT=$ac_cv_objext
3279 ac_objext=$OBJEXT
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3281 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3282 if ${ac_cv_c_compiler_gnu+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3287
3288 int
3289 main ()
3290 {
3291 #ifndef __GNUC__
3292 choke me
3293 #endif
3294
3295 ;
3296 return 0;
3297 }
3298 _ACEOF
3299 if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_compiler_gnu=yes
3301 else
3302 ac_compiler_gnu=no
3303 fi
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3306
3307 fi
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3309 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3310 if test $ac_compiler_gnu = yes; then
3311 GCC=yes
3312 else
3313 GCC=
3314 fi
3315 ac_test_CFLAGS=${CFLAGS+set}
3316 ac_save_CFLAGS=$CFLAGS
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3318 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3319 if ${ac_cv_prog_cc_g+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 ac_save_c_werror_flag=$ac_c_werror_flag
3323 ac_c_werror_flag=yes
3324 ac_cv_prog_cc_g=no
3325 CFLAGS="-g"
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328
3329 int
3330 main ()
3331 {
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338 ac_cv_prog_cc_g=yes
3339 else
3340 CFLAGS=""
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343
3344 int
3345 main ()
3346 {
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 if ac_fn_c_try_compile "$LINENO"; then :
3353
3354 else
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3356 CFLAGS="-g"
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359
3360 int
3361 main ()
3362 {
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_cv_prog_cc_g=yes
3370 fi
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 fi
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 fi
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3379 $as_echo "$ac_cv_prog_cc_g" >&6; }
3380 if test "$ac_test_CFLAGS" = set; then
3381 CFLAGS=$ac_save_CFLAGS
3382 elif test $ac_cv_prog_cc_g = yes; then
3383 if test "$GCC" = yes; then
3384 CFLAGS="-g -O2"
3385 else
3386 CFLAGS="-g"
3387 fi
3388 else
3389 if test "$GCC" = yes; then
3390 CFLAGS="-O2"
3391 else
3392 CFLAGS=
3393 fi
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3397 if ${ac_cv_prog_cc_c89+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 ac_cv_prog_cc_c89=no
3401 ac_save_CC=$CC
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404 #include <stdarg.h>
3405 #include <stdio.h>
3406 struct stat;
3407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3408 struct buf { int x; };
3409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3410 static char *e (p, i)
3411 char **p;
3412 int i;
3413 {
3414 return p[i];
3415 }
3416 static char *f (char * (*g) (char **, int), char **p, ...)
3417 {
3418 char *s;
3419 va_list v;
3420 va_start (v,p);
3421 s = g (p, va_arg (v,int));
3422 va_end (v);
3423 return s;
3424 }
3425
3426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3427 function prototypes and stuff, but not '\xHH' hex character constants.
3428 These don't provoke an error unfortunately, instead are silently treated
3429 as 'x'. The following induces an error, until -std is added to get
3430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3431 array size at least. It's necessary to write '\x00'==0 to get something
3432 that's true only with -std. */
3433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434
3435 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3436 inside strings and character constants. */
3437 #define FOO(x) 'x'
3438 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3439
3440 int test (int i, double x);
3441 struct s1 {int (*f) (int a);};
3442 struct s2 {int (*f) (double a);};
3443 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3444 int argc;
3445 char **argv;
3446 int
3447 main ()
3448 {
3449 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3455 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3456 do
3457 CC="$ac_save_CC $ac_arg"
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459 ac_cv_prog_cc_c89=$ac_arg
3460 fi
3461 rm -f core conftest.err conftest.$ac_objext
3462 test "x$ac_cv_prog_cc_c89" != "xno" && break
3463 done
3464 rm -f conftest.$ac_ext
3465 CC=$ac_save_CC
3466
3467 fi
3468 # AC_CACHE_VAL
3469 case "x$ac_cv_prog_cc_c89" in
3470 x)
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3472 $as_echo "none needed" >&6; } ;;
3473 xno)
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3475 $as_echo "unsupported" >&6; } ;;
3476 *)
3477 CC="$CC $ac_cv_prog_cc_c89"
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3480 esac
3481 if test "x$ac_cv_prog_cc_c89" != xno; then :
3482
3483 fi
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3497 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3498 if ${am_cv_prog_cc_c_o+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503
3504 int
3505 main ()
3506 {
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 # Make sure it works both with $CC and with simple cc.
3513 # Following AC_PROG_CC_C_O, we do the test twice because some
3514 # compilers refuse to overwrite an existing .o file with -o,
3515 # though they will create one.
3516 am_cv_prog_cc_c_o=yes
3517 for am_i in 1 2; do
3518 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3519 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } \
3523 && test -f conftest2.$ac_objext; then
3524 : OK
3525 else
3526 am_cv_prog_cc_c_o=no
3527 break
3528 fi
3529 done
3530 rm -f core conftest*
3531 unset am_i
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3534 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3535 if test "$am_cv_prog_cc_c_o" != yes; then
3536 # Losing compiler, so override with the script.
3537 # FIXME: It is wrong to rewrite CC.
3538 # But if we don't then we get into trouble of one sort or another.
3539 # A longer-term fix would be to have automake use am__CC in this case,
3540 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3541 CC="$am_aux_dir/compile $CC"
3542 fi
3543 ac_ext=c
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548
3549
3550
3551 ac_ext=c
3552 ac_cpp='$CPP $CPPFLAGS'
3553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3557 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3558 # On Suns, sometimes $CPP names a directory.
3559 if test -n "$CPP" && test -d "$CPP"; then
3560 CPP=
3561 fi
3562 if test -z "$CPP"; then
3563 if ${ac_cv_prog_CPP+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 # Double quotes because CPP needs to be expanded
3567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3568 do
3569 ac_preproc_ok=false
3570 for ac_c_preproc_warn_flag in '' yes
3571 do
3572 # Use a header file that comes with gcc, so configuring glibc
3573 # with a fresh cross-compiler works.
3574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3575 # <limits.h> exists even on freestanding compilers.
3576 # On the NeXT, cc -E runs the code through the compiler's parser,
3577 # not just through cpp. "Syntax error" is here to catch this case.
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #ifdef __STDC__
3581 # include <limits.h>
3582 #else
3583 # include <assert.h>
3584 #endif
3585 Syntax error
3586 _ACEOF
3587 if ac_fn_c_try_cpp "$LINENO"; then :
3588
3589 else
3590 # Broken: fails on valid input.
3591 continue
3592 fi
3593 rm -f conftest.err conftest.i conftest.$ac_ext
3594
3595 # OK, works on sane cases. Now check whether nonexistent headers
3596 # can be detected and how.
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599 #include <ac_nonexistent.h>
3600 _ACEOF
3601 if ac_fn_c_try_cpp "$LINENO"; then :
3602 # Broken: success on invalid input.
3603 continue
3604 else
3605 # Passes both tests.
3606 ac_preproc_ok=:
3607 break
3608 fi
3609 rm -f conftest.err conftest.i conftest.$ac_ext
3610
3611 done
3612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3613 rm -f conftest.i conftest.err conftest.$ac_ext
3614 if $ac_preproc_ok; then :
3615 break
3616 fi
3617
3618 done
3619 ac_cv_prog_CPP=$CPP
3620
3621 fi
3622 CPP=$ac_cv_prog_CPP
3623 else
3624 ac_cv_prog_CPP=$CPP
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3627 $as_echo "$CPP" >&6; }
3628 ac_preproc_ok=false
3629 for ac_c_preproc_warn_flag in '' yes
3630 do
3631 # Use a header file that comes with gcc, so configuring glibc
3632 # with a fresh cross-compiler works.
3633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634 # <limits.h> exists even on freestanding compilers.
3635 # On the NeXT, cc -E runs the code through the compiler's parser,
3636 # not just through cpp. "Syntax error" is here to catch this case.
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #ifdef __STDC__
3640 # include <limits.h>
3641 #else
3642 # include <assert.h>
3643 #endif
3644 Syntax error
3645 _ACEOF
3646 if ac_fn_c_try_cpp "$LINENO"; then :
3647
3648 else
3649 # Broken: fails on valid input.
3650 continue
3651 fi
3652 rm -f conftest.err conftest.i conftest.$ac_ext
3653
3654 # OK, works on sane cases. Now check whether nonexistent headers
3655 # can be detected and how.
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658 #include <ac_nonexistent.h>
3659 _ACEOF
3660 if ac_fn_c_try_cpp "$LINENO"; then :
3661 # Broken: success on invalid input.
3662 continue
3663 else
3664 # Passes both tests.
3665 ac_preproc_ok=:
3666 break
3667 fi
3668 rm -f conftest.err conftest.i conftest.$ac_ext
3669
3670 done
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.i conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then :
3674
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details" "$LINENO" 5; }
3680 fi
3681
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3690 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3691 if ${ac_cv_path_GREP+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -z "$GREP"; then
3695 ac_path_GREP_found=false
3696 # Loop through the user's path and test for each of PROGNAME-LIST
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_prog in grep ggrep; do
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3705 as_fn_executable_p "$ac_path_GREP" || continue
3706 # Check for GNU ac_path_GREP and select it if it is found.
3707 # Check for GNU $ac_path_GREP
3708 case `"$ac_path_GREP" --version 2>&1` in
3709 *GNU*)
3710 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3711 *)
3712 ac_count=0
3713 $as_echo_n 0123456789 >"conftest.in"
3714 while :
3715 do
3716 cat "conftest.in" "conftest.in" >"conftest.tmp"
3717 mv "conftest.tmp" "conftest.in"
3718 cp "conftest.in" "conftest.nl"
3719 $as_echo 'GREP' >> "conftest.nl"
3720 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3722 as_fn_arith $ac_count + 1 && ac_count=$as_val
3723 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3724 # Best one so far, save it but keep looking for a better one
3725 ac_cv_path_GREP="$ac_path_GREP"
3726 ac_path_GREP_max=$ac_count
3727 fi
3728 # 10*(2^10) chars as input seems more than enough
3729 test $ac_count -gt 10 && break
3730 done
3731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732 esac
3733
3734 $ac_path_GREP_found && break 3
3735 done
3736 done
3737 done
3738 IFS=$as_save_IFS
3739 if test -z "$ac_cv_path_GREP"; then
3740 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3741 fi
3742 else
3743 ac_cv_path_GREP=$GREP
3744 fi
3745
3746 fi
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3748 $as_echo "$ac_cv_path_GREP" >&6; }
3749 GREP="$ac_cv_path_GREP"
3750
3751
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3753 $as_echo_n "checking for egrep... " >&6; }
3754 if ${ac_cv_path_EGREP+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3758 then ac_cv_path_EGREP="$GREP -E"
3759 else
3760 if test -z "$EGREP"; then
3761 ac_path_EGREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3765 do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_prog in egrep; do
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3771 as_fn_executable_p "$ac_path_EGREP" || continue
3772 # Check for GNU ac_path_EGREP and select it if it is found.
3773 # Check for GNU $ac_path_EGREP
3774 case `"$ac_path_EGREP" --version 2>&1` in
3775 *GNU*)
3776 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3777 *)
3778 ac_count=0
3779 $as_echo_n 0123456789 >"conftest.in"
3780 while :
3781 do
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 $as_echo 'EGREP' >> "conftest.nl"
3786 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 as_fn_arith $ac_count + 1 && ac_count=$as_val
3789 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_EGREP="$ac_path_EGREP"
3792 ac_path_EGREP_max=$ac_count
3793 fi
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3796 done
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798 esac
3799
3800 $ac_path_EGREP_found && break 3
3801 done
3802 done
3803 done
3804 IFS=$as_save_IFS
3805 if test -z "$ac_cv_path_EGREP"; then
3806 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3807 fi
3808 else
3809 ac_cv_path_EGREP=$EGREP
3810 fi
3811
3812 fi
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3815 $as_echo "$ac_cv_path_EGREP" >&6; }
3816 EGREP="$ac_cv_path_EGREP"
3817
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3820 $as_echo_n "checking for ANSI C header files... " >&6; }
3821 if ${ac_cv_header_stdc+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826 #include <stdlib.h>
3827 #include <stdarg.h>
3828 #include <string.h>
3829 #include <float.h>
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840 ac_cv_header_stdc=yes
3841 else
3842 ac_cv_header_stdc=no
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845
3846 if test $ac_cv_header_stdc = yes; then
3847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850 #include <string.h>
3851
3852 _ACEOF
3853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3854 $EGREP "memchr" >/dev/null 2>&1; then :
3855
3856 else
3857 ac_cv_header_stdc=no
3858 fi
3859 rm -f conftest*
3860
3861 fi
3862
3863 if test $ac_cv_header_stdc = yes; then
3864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #include <stdlib.h>
3868
3869 _ACEOF
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 $EGREP "free" >/dev/null 2>&1; then :
3872
3873 else
3874 ac_cv_header_stdc=no
3875 fi
3876 rm -f conftest*
3877
3878 fi
3879
3880 if test $ac_cv_header_stdc = yes; then
3881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3882 if test "$cross_compiling" = yes; then :
3883 :
3884 else
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887 #include <ctype.h>
3888 #include <stdlib.h>
3889 #if ((' ' & 0x0FF) == 0x020)
3890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3892 #else
3893 # define ISLOWER(c) \
3894 (('a' <= (c) && (c) <= 'i') \
3895 || ('j' <= (c) && (c) <= 'r') \
3896 || ('s' <= (c) && (c) <= 'z'))
3897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3898 #endif
3899
3900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3901 int
3902 main ()
3903 {
3904 int i;
3905 for (i = 0; i < 256; i++)
3906 if (XOR (islower (i), ISLOWER (i))
3907 || toupper (i) != TOUPPER (i))
3908 return 2;
3909 return 0;
3910 }
3911 _ACEOF
3912 if ac_fn_c_try_run "$LINENO"; then :
3913
3914 else
3915 ac_cv_header_stdc=no
3916 fi
3917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3918 conftest.$ac_objext conftest.beam conftest.$ac_ext
3919 fi
3920
3921 fi
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3924 $as_echo "$ac_cv_header_stdc" >&6; }
3925 if test $ac_cv_header_stdc = yes; then
3926
3927 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3928
3929 fi
3930
3931 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3932 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3933 inttypes.h stdint.h unistd.h
3934 do :
3935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3936 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3937 "
3938 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3939 cat >>confdefs.h <<_ACEOF
3940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3941 _ACEOF
3942
3943 fi
3944
3945 done
3946
3947
3948
3949 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3950 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3951 MINIX=yes
3952 else
3953 MINIX=
3954 fi
3955
3956
3957 if test "$MINIX" = yes; then
3958
3959 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3960
3961
3962 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3963
3964
3965 $as_echo "#define _MINIX 1" >>confdefs.h
3966
3967 fi
3968
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3971 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3972 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977
3978 # define __EXTENSIONS__ 1
3979 $ac_includes_default
3980 int
3981 main ()
3982 {
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_safe_to_define___extensions__=yes
3990 else
3991 ac_cv_safe_to_define___extensions__=no
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3996 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3997 test $ac_cv_safe_to_define___extensions__ = yes &&
3998 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3999
4000 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4001
4002 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4003
4004 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4005
4006 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4007
4008
4009 test "$program_prefix" != NONE &&
4010 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4011 # Use a double $ so make ignores it.
4012 test "$program_suffix" != NONE &&
4013 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4014 # Double any \ or $.
4015 # By default was `s,x,x', remove it if useless.
4016 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4017 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4018
4019 # Find a good install program. We prefer a C program (faster),
4020 # so one script is as good as another. But avoid the broken or
4021 # incompatible versions:
4022 # SysV /etc/install, /usr/sbin/install
4023 # SunOS /usr/etc/install
4024 # IRIX /sbin/install
4025 # AIX /bin/install
4026 # AmigaOS /C/install, which installs bootblocks on floppy discs
4027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4030 # OS/2's system install, which has a completely different semantic
4031 # ./install, which can be erroneously created by make from ./install.sh.
4032 # Reject install programs that cannot install multiple files.
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4034 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4035 if test -z "$INSTALL"; then
4036 if ${ac_cv_path_install+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 # Account for people who put trailing slashes in PATH elements.
4045 case $as_dir/ in #((
4046 ./ | .// | /[cC]/* | \
4047 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4048 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4049 /usr/ucb/* ) ;;
4050 *)
4051 # OSF1 and SCO ODT 3.0 have their own names for install.
4052 # Don't use installbsd from OSF since it installs stuff as root
4053 # by default.
4054 for ac_prog in ginstall scoinst install; do
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4057 if test $ac_prog = install &&
4058 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4059 # AIX install. It has an incompatible calling convention.
4060 :
4061 elif test $ac_prog = install &&
4062 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4063 # program-specific install script used by HP pwplus--don't use.
4064 :
4065 else
4066 rm -rf conftest.one conftest.two conftest.dir
4067 echo one > conftest.one
4068 echo two > conftest.two
4069 mkdir conftest.dir
4070 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4071 test -s conftest.one && test -s conftest.two &&
4072 test -s conftest.dir/conftest.one &&
4073 test -s conftest.dir/conftest.two
4074 then
4075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4076 break 3
4077 fi
4078 fi
4079 fi
4080 done
4081 done
4082 ;;
4083 esac
4084
4085 done
4086 IFS=$as_save_IFS
4087
4088 rm -rf conftest.one conftest.two conftest.dir
4089
4090 fi
4091 if test "${ac_cv_path_install+set}" = set; then
4092 INSTALL=$ac_cv_path_install
4093 else
4094 # As a last resort, use the slow shell script. Don't cache a
4095 # value for INSTALL within a source directory, because that will
4096 # break other packages using the cache if that directory is
4097 # removed, or if the value is a relative name.
4098 INSTALL=$ac_install_sh
4099 fi
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4102 $as_echo "$INSTALL" >&6; }
4103
4104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4105 # It thinks the first close brace ends the variable substitution.
4106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4107
4108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4109
4110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4111
4112
4113
4114
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4117 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4118 if ${ac_cv_c_bigendian+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 ac_cv_c_bigendian=unknown
4122 # See if we're dealing with a universal compiler.
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #ifndef __APPLE_CC__
4126 not a universal capable compiler
4127 #endif
4128 typedef int dummy;
4129
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132
4133 # Check for potential -arch flags. It is not universal unless
4134 # there are at least two -arch flags with different values.
4135 ac_arch=
4136 ac_prev=
4137 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4138 if test -n "$ac_prev"; then
4139 case $ac_word in
4140 i?86 | x86_64 | ppc | ppc64)
4141 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4142 ac_arch=$ac_word
4143 else
4144 ac_cv_c_bigendian=universal
4145 break
4146 fi
4147 ;;
4148 esac
4149 ac_prev=
4150 elif test "x$ac_word" = "x-arch"; then
4151 ac_prev=arch
4152 fi
4153 done
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 if test $ac_cv_c_bigendian = unknown; then
4157 # See if sys/param.h defines the BYTE_ORDER macro.
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <sys/types.h>
4161 #include <sys/param.h>
4162
4163 int
4164 main ()
4165 {
4166 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4167 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4168 && LITTLE_ENDIAN)
4169 bogus endian macros
4170 #endif
4171
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 # It does; now see whether it defined to BIG_ENDIAN or not.
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #include <sys/types.h>
4181 #include <sys/param.h>
4182
4183 int
4184 main ()
4185 {
4186 #if BYTE_ORDER != BIG_ENDIAN
4187 not big endian
4188 #endif
4189
4190 ;
4191 return 0;
4192 }
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_cv_c_bigendian=yes
4196 else
4197 ac_cv_c_bigendian=no
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 fi
4203 if test $ac_cv_c_bigendian = unknown; then
4204 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207 #include <limits.h>
4208
4209 int
4210 main ()
4211 {
4212 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4213 bogus endian macros
4214 #endif
4215
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 # It does; now see whether it defined to _BIG_ENDIAN or not.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <limits.h>
4225
4226 int
4227 main ()
4228 {
4229 #ifndef _BIG_ENDIAN
4230 not big endian
4231 #endif
4232
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_c_bigendian=yes
4239 else
4240 ac_cv_c_bigendian=no
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 fi
4246 if test $ac_cv_c_bigendian = unknown; then
4247 # Compile a test program.
4248 if test "$cross_compiling" = yes; then :
4249 # Try to guess by grepping values from an object file.
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 short int ascii_mm[] =
4253 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4254 short int ascii_ii[] =
4255 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4256 int use_ascii (int i) {
4257 return ascii_mm[i] + ascii_ii[i];
4258 }
4259 short int ebcdic_ii[] =
4260 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4261 short int ebcdic_mm[] =
4262 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4263 int use_ebcdic (int i) {
4264 return ebcdic_mm[i] + ebcdic_ii[i];
4265 }
4266 extern int foo;
4267
4268 int
4269 main ()
4270 {
4271 return use_ascii (foo) == use_ebcdic (foo);
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4278 ac_cv_c_bigendian=yes
4279 fi
4280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281 if test "$ac_cv_c_bigendian" = unknown; then
4282 ac_cv_c_bigendian=no
4283 else
4284 # finding both strings is unlikely to happen, but who knows?
4285 ac_cv_c_bigendian=unknown
4286 fi
4287 fi
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 else
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 $ac_includes_default
4294 int
4295 main ()
4296 {
4297
4298 /* Are we little or big endian? From Harbison&Steele. */
4299 union
4300 {
4301 long int l;
4302 char c[sizeof (long int)];
4303 } u;
4304 u.l = 1;
4305 return u.c[sizeof (long int) - 1] == 1;
4306
4307 ;
4308 return 0;
4309 }
4310 _ACEOF
4311 if ac_fn_c_try_run "$LINENO"; then :
4312 ac_cv_c_bigendian=no
4313 else
4314 ac_cv_c_bigendian=yes
4315 fi
4316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4317 conftest.$ac_objext conftest.beam conftest.$ac_ext
4318 fi
4319
4320 fi
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4323 $as_echo "$ac_cv_c_bigendian" >&6; }
4324 case $ac_cv_c_bigendian in #(
4325 yes)
4326 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4327 ;; #(
4328 no)
4329 ;; #(
4330 universal)
4331
4332 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4333
4334 ;; #(
4335 *)
4336 as_fn_error $? "unknown endianness
4337 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4338 esac
4339
4340
4341
4342
4343 if test "x$cross_compiling" = "xno"; then
4344 : "${AR_FOR_BUILD:=\$(AR)}"
4345 : "${CC_FOR_BUILD:=\$(CC)}"
4346 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4347 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4348 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4349 else
4350 : "${AR_FOR_BUILD:=ar}"
4351 : "${CC_FOR_BUILD:=gcc}"
4352 : "${RANLIB_FOR_BUILD:=ranlib}"
4353 : "${CFLAGS_FOR_BUILD:=-g -O}"
4354 : "${LDLFAGS_FOR_BUILD:=}"
4355 fi
4356
4357
4358
4359
4360
4361
4362
4363 if test -n "$ac_tool_prefix"; then
4364 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4365 set dummy ${ac_tool_prefix}ar; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_prog_AR+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test -n "$AR"; then
4372 ac_cv_prog_AR="$AR" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_AR="${ac_tool_prefix}ar"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4384 fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389 fi
4390 fi
4391 AR=$ac_cv_prog_AR
4392 if test -n "$AR"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4394 $as_echo "$AR" >&6; }
4395 else
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4398 fi
4399
4400
4401 fi
4402 if test -z "$ac_cv_prog_AR"; then
4403 ac_ct_AR=$AR
4404 # Extract the first word of "ar", so it can be a program name with args.
4405 set dummy ar; ac_word=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -n "$ac_ct_AR"; then
4412 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_ac_ct_AR="ar"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429 fi
4430 fi
4431 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4432 if test -n "$ac_ct_AR"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4434 $as_echo "$ac_ct_AR" >&6; }
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4438 fi
4439
4440 if test "x$ac_ct_AR" = x; then
4441 AR=""
4442 else
4443 case $cross_compiling:$ac_tool_warned in
4444 yes:)
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4447 ac_tool_warned=yes ;;
4448 esac
4449 AR=$ac_ct_AR
4450 fi
4451 else
4452 AR="$ac_cv_prog_AR"
4453 fi
4454
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_RANLIB+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$RANLIB"; then
4464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 fi
4482 fi
4483 RANLIB=$ac_cv_prog_RANLIB
4484 if test -n "$RANLIB"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4486 $as_echo "$RANLIB" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490 fi
4491
4492
4493 fi
4494 if test -z "$ac_cv_prog_RANLIB"; then
4495 ac_ct_RANLIB=$RANLIB
4496 # Extract the first word of "ranlib", so it can be a program name with args.
4497 set dummy ranlib; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$ac_ct_RANLIB"; then
4504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_ac_ct_RANLIB="ranlib"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517 done
4518 done
4519 IFS=$as_save_IFS
4520
4521 fi
4522 fi
4523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4524 if test -n "$ac_ct_RANLIB"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4526 $as_echo "$ac_ct_RANLIB" >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530 fi
4531
4532 if test "x$ac_ct_RANLIB" = x; then
4533 RANLIB=":"
4534 else
4535 case $cross_compiling:$ac_tool_warned in
4536 yes:)
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539 ac_tool_warned=yes ;;
4540 esac
4541 RANLIB=$ac_ct_RANLIB
4542 fi
4543 else
4544 RANLIB="$ac_cv_prog_RANLIB"
4545 fi
4546
4547
4548 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4549 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4550 # is C99. So handle it ourselves.
4551 :
4552 C_DIALECT=
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4554 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557
4558 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4559 # error "C11 support not found"
4560 #endif
4561
4562 _ACEOF
4563 if ac_fn_c_try_compile "$LINENO"; then :
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565 $as_echo "yes" >&6; }
4566 else
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4571 $as_echo_n "checking for -std=c11 support... " >&6; }
4572 ac_save_CC="$CC"
4573 CC="$CC -std=c11"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576
4577 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4578 # error "C11 support not found"
4579 #endif
4580
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585 $as_echo "yes" >&6; }
4586 CC="$ac_save_CC"
4587 C_DIALECT="-std=c11"
4588
4589 else
4590 as_fn_error $? "C11 is required" "$LINENO" 5
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 fi
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595
4596
4597
4598
4599
4600 for ac_header in $ac_header_list
4601 do :
4602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4603 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4604 "
4605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4606 cat >>confdefs.h <<_ACEOF
4607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4608 _ACEOF
4609
4610 fi
4611
4612 done
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665 for ac_func in $ac_func_list
4666 do :
4667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4670 cat >>confdefs.h <<_ACEOF
4671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4672 _ACEOF
4673
4674 fi
4675 done
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4800 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4801 if ${ac_cv_struct_tm+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4806 #include <sys/types.h>
4807 #include <time.h>
4808
4809 int
4810 main ()
4811 {
4812 struct tm tm;
4813 int *p = &tm.tm_sec;
4814 return !p;
4815 ;
4816 return 0;
4817 }
4818 _ACEOF
4819 if ac_fn_c_try_compile "$LINENO"; then :
4820 ac_cv_struct_tm=time.h
4821 else
4822 ac_cv_struct_tm=sys/time.h
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4827 $as_echo "$ac_cv_struct_tm" >&6; }
4828 if test $ac_cv_struct_tm = sys/time.h; then
4829
4830 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4831
4832 fi
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4835 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4836 if ${ac_cv_type_uid_t+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4841 #include <sys/types.h>
4842
4843 _ACEOF
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845 $EGREP "uid_t" >/dev/null 2>&1; then :
4846 ac_cv_type_uid_t=yes
4847 else
4848 ac_cv_type_uid_t=no
4849 fi
4850 rm -f conftest*
4851
4852 fi
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4854 $as_echo "$ac_cv_type_uid_t" >&6; }
4855 if test $ac_cv_type_uid_t = no; then
4856
4857 $as_echo "#define uid_t int" >>confdefs.h
4858
4859
4860 $as_echo "#define gid_t int" >>confdefs.h
4861
4862 fi
4863
4864
4865 ac_header_dirent=no
4866 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4867 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4869 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4870 if eval \${$as_ac_Header+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 #include <sys/types.h>
4876 #include <$ac_hdr>
4877
4878 int
4879 main ()
4880 {
4881 if ((DIR *) 0)
4882 return 0;
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 eval "$as_ac_Header=yes"
4889 else
4890 eval "$as_ac_Header=no"
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 fi
4894 eval ac_res=\$$as_ac_Header
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4896 $as_echo "$ac_res" >&6; }
4897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4898 cat >>confdefs.h <<_ACEOF
4899 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4900 _ACEOF
4901
4902 ac_header_dirent=$ac_hdr; break
4903 fi
4904
4905 done
4906 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4907 if test $ac_header_dirent = dirent.h; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4909 $as_echo_n "checking for library containing opendir... " >&6; }
4910 if ${ac_cv_search_opendir+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 ac_func_search_save_LIBS=$LIBS
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916
4917 /* Override any GCC internal prototype to avoid an error.
4918 Use char because int might match the return type of a GCC
4919 builtin and then its argument prototype would still apply. */
4920 #ifdef __cplusplus
4921 extern "C"
4922 #endif
4923 char opendir ();
4924 int
4925 main ()
4926 {
4927 return opendir ();
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 for ac_lib in '' dir; do
4933 if test -z "$ac_lib"; then
4934 ac_res="none required"
4935 else
4936 ac_res=-l$ac_lib
4937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4938 fi
4939 if ac_fn_c_try_link "$LINENO"; then :
4940 ac_cv_search_opendir=$ac_res
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext \
4943 conftest$ac_exeext
4944 if ${ac_cv_search_opendir+:} false; then :
4945 break
4946 fi
4947 done
4948 if ${ac_cv_search_opendir+:} false; then :
4949
4950 else
4951 ac_cv_search_opendir=no
4952 fi
4953 rm conftest.$ac_ext
4954 LIBS=$ac_func_search_save_LIBS
4955 fi
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4957 $as_echo "$ac_cv_search_opendir" >&6; }
4958 ac_res=$ac_cv_search_opendir
4959 if test "$ac_res" != no; then :
4960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4961
4962 fi
4963
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4966 $as_echo_n "checking for library containing opendir... " >&6; }
4967 if ${ac_cv_search_opendir+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 ac_func_search_save_LIBS=$LIBS
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973
4974 /* Override any GCC internal prototype to avoid an error.
4975 Use char because int might match the return type of a GCC
4976 builtin and then its argument prototype would still apply. */
4977 #ifdef __cplusplus
4978 extern "C"
4979 #endif
4980 char opendir ();
4981 int
4982 main ()
4983 {
4984 return opendir ();
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 for ac_lib in '' x; do
4990 if test -z "$ac_lib"; then
4991 ac_res="none required"
4992 else
4993 ac_res=-l$ac_lib
4994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4995 fi
4996 if ac_fn_c_try_link "$LINENO"; then :
4997 ac_cv_search_opendir=$ac_res
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext \
5000 conftest$ac_exeext
5001 if ${ac_cv_search_opendir+:} false; then :
5002 break
5003 fi
5004 done
5005 if ${ac_cv_search_opendir+:} false; then :
5006
5007 else
5008 ac_cv_search_opendir=no
5009 fi
5010 rm conftest.$ac_ext
5011 LIBS=$ac_func_search_save_LIBS
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5014 $as_echo "$ac_cv_search_opendir" >&6; }
5015 ac_res=$ac_cv_search_opendir
5016 if test "$ac_res" != no; then :
5017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5018
5019 fi
5020
5021 fi
5022
5023
5024
5025
5026 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
5027 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
5028
5029 cat >>confdefs.h <<_ACEOF
5030 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5031 _ACEOF
5032
5033
5034 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
5035
5036 fi
5037
5038
5039 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
5040 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
5041
5042 cat >>confdefs.h <<_ACEOF
5043 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5044 _ACEOF
5045
5046
5047 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
5048
5049 else
5050 case " $LIBOBJS " in
5051 *" fileblocks.$ac_objext "* ) ;;
5052 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5053 ;;
5054 esac
5055
5056 fi
5057
5058
5059 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5060 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
5061
5062 cat >>confdefs.h <<_ACEOF
5063 #define HAVE_STRUCT_STAT_ST_RDEV 1
5064 _ACEOF
5065
5066
5067 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5068
5069 fi
5070
5071
5072 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
5073 #include <$ac_cv_struct_tm>
5074
5075 "
5076 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
5077
5078 cat >>confdefs.h <<_ACEOF
5079 #define HAVE_STRUCT_TM_TM_ZONE 1
5080 _ACEOF
5081
5082
5083 fi
5084
5085 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5086
5087 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
5088
5089 else
5090 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
5091 "
5092 if test "x$ac_cv_have_decl_tzname" = xyes; then :
5093 ac_have_decl=1
5094 else
5095 ac_have_decl=0
5096 fi
5097
5098 cat >>confdefs.h <<_ACEOF
5099 #define HAVE_DECL_TZNAME $ac_have_decl
5100 _ACEOF
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
5103 $as_echo_n "checking for tzname... " >&6; }
5104 if ${ac_cv_var_tzname+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5109 #include <time.h>
5110 #if !HAVE_DECL_TZNAME
5111 extern char *tzname[];
5112 #endif
5113
5114 int
5115 main ()
5116 {
5117 return tzname[0][0];
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_c_try_link "$LINENO"; then :
5123 ac_cv_var_tzname=yes
5124 else
5125 ac_cv_var_tzname=no
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext \
5128 conftest$ac_exeext conftest.$ac_ext
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
5131 $as_echo "$ac_cv_var_tzname" >&6; }
5132 if test $ac_cv_var_tzname = yes; then
5133
5134 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
5135
5136 fi
5137 fi
5138
5139
5140 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
5141 #include <sys/types.h>
5142 #endif
5143 #ifdef HAVE_SYS_STAT_H
5144 #include <sys/stat.h>
5145 #endif
5146 "
5147 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
5148
5149 cat >>confdefs.h <<_ACEOF
5150 #define HAVE_STRUCT_STAT_ST_DEV 1
5151 _ACEOF
5152
5153
5154 fi
5155 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
5156 #include <sys/types.h>
5157 #endif
5158 #ifdef HAVE_SYS_STAT_H
5159 #include <sys/stat.h>
5160 #endif
5161 "
5162 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
5163
5164 cat >>confdefs.h <<_ACEOF
5165 #define HAVE_STRUCT_STAT_ST_INO 1
5166 _ACEOF
5167
5168
5169 fi
5170 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
5171 #include <sys/types.h>
5172 #endif
5173 #ifdef HAVE_SYS_STAT_H
5174 #include <sys/stat.h>
5175 #endif
5176 "
5177 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
5178
5179 cat >>confdefs.h <<_ACEOF
5180 #define HAVE_STRUCT_STAT_ST_MODE 1
5181 _ACEOF
5182
5183
5184 fi
5185 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
5186 #include <sys/types.h>
5187 #endif
5188 #ifdef HAVE_SYS_STAT_H
5189 #include <sys/stat.h>
5190 #endif
5191 "
5192 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
5193
5194 cat >>confdefs.h <<_ACEOF
5195 #define HAVE_STRUCT_STAT_ST_NLINK 1
5196 _ACEOF
5197
5198
5199 fi
5200 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
5201 #include <sys/types.h>
5202 #endif
5203 #ifdef HAVE_SYS_STAT_H
5204 #include <sys/stat.h>
5205 #endif
5206 "
5207 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
5208
5209 cat >>confdefs.h <<_ACEOF
5210 #define HAVE_STRUCT_STAT_ST_UID 1
5211 _ACEOF
5212
5213
5214 fi
5215 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
5216 #include <sys/types.h>
5217 #endif
5218 #ifdef HAVE_SYS_STAT_H
5219 #include <sys/stat.h>
5220 #endif
5221 "
5222 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
5223
5224 cat >>confdefs.h <<_ACEOF
5225 #define HAVE_STRUCT_STAT_ST_GID 1
5226 _ACEOF
5227
5228
5229 fi
5230 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
5231 #include <sys/types.h>
5232 #endif
5233 #ifdef HAVE_SYS_STAT_H
5234 #include <sys/stat.h>
5235 #endif
5236 "
5237 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
5238
5239 cat >>confdefs.h <<_ACEOF
5240 #define HAVE_STRUCT_STAT_ST_RDEV 1
5241 _ACEOF
5242
5243
5244 fi
5245 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
5246 #include <sys/types.h>
5247 #endif
5248 #ifdef HAVE_SYS_STAT_H
5249 #include <sys/stat.h>
5250 #endif
5251 "
5252 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define HAVE_STRUCT_STAT_ST_SIZE 1
5256 _ACEOF
5257
5258
5259 fi
5260 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
5261 #include <sys/types.h>
5262 #endif
5263 #ifdef HAVE_SYS_STAT_H
5264 #include <sys/stat.h>
5265 #endif
5266 "
5267 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
5268
5269 cat >>confdefs.h <<_ACEOF
5270 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5271 _ACEOF
5272
5273
5274 fi
5275 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
5276 #include <sys/types.h>
5277 #endif
5278 #ifdef HAVE_SYS_STAT_H
5279 #include <sys/stat.h>
5280 #endif
5281 "
5282 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
5283
5284 cat >>confdefs.h <<_ACEOF
5285 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5286 _ACEOF
5287
5288
5289 fi
5290 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
5291 #include <sys/types.h>
5292 #endif
5293 #ifdef HAVE_SYS_STAT_H
5294 #include <sys/stat.h>
5295 #endif
5296 "
5297 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
5298
5299 cat >>confdefs.h <<_ACEOF
5300 #define HAVE_STRUCT_STAT_ST_ATIME 1
5301 _ACEOF
5302
5303
5304 fi
5305 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
5306 #include <sys/types.h>
5307 #endif
5308 #ifdef HAVE_SYS_STAT_H
5309 #include <sys/stat.h>
5310 #endif
5311 "
5312 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
5313
5314 cat >>confdefs.h <<_ACEOF
5315 #define HAVE_STRUCT_STAT_ST_MTIME 1
5316 _ACEOF
5317
5318
5319 fi
5320 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
5321 #include <sys/types.h>
5322 #endif
5323 #ifdef HAVE_SYS_STAT_H
5324 #include <sys/stat.h>
5325 #endif
5326 "
5327 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
5328
5329 cat >>confdefs.h <<_ACEOF
5330 #define HAVE_STRUCT_STAT_ST_CTIME 1
5331 _ACEOF
5332
5333
5334 fi
5335
5336
5337 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
5338 if test "x$ac_cv_type___int128" = xyes; then :
5339
5340 cat >>confdefs.h <<_ACEOF
5341 #define HAVE___INT128 1
5342 _ACEOF
5343
5344
5345 fi
5346
5347 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5348 #include <sys/socket.h>
5349
5350 "
5351 if test "x$ac_cv_type_socklen_t" = xyes; then :
5352
5353 cat >>confdefs.h <<_ACEOF
5354 #define HAVE_SOCKLEN_T 1
5355 _ACEOF
5356
5357
5358 fi
5359
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5362 $as_echo_n "checking type of array argument to getgroups... " >&6; }
5363 if ${ac_cv_type_getgroups+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test "$cross_compiling" = yes; then :
5367 ac_cv_type_getgroups=cross
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 /* Thanks to Mike Rendell for this test. */
5372 $ac_includes_default
5373 #define NGID 256
5374 #undef MAX
5375 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5376
5377 int
5378 main ()
5379 {
5380 gid_t gidset[NGID];
5381 int i, n;
5382 union { gid_t gval; long int lval; } val;
5383
5384 val.lval = -1;
5385 for (i = 0; i < NGID; i++)
5386 gidset[i] = val.gval;
5387 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5388 gidset);
5389 /* Exit non-zero if getgroups seems to require an array of ints. This
5390 happens when gid_t is short int but getgroups modifies an array
5391 of ints. */
5392 return n > 0 && gidset[n] != val.gval;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_run "$LINENO"; then :
5396 ac_cv_type_getgroups=gid_t
5397 else
5398 ac_cv_type_getgroups=int
5399 fi
5400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5401 conftest.$ac_objext conftest.beam conftest.$ac_ext
5402 fi
5403
5404 if test $ac_cv_type_getgroups = cross; then
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 #include <unistd.h>
5408
5409 _ACEOF
5410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5411 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
5412 ac_cv_type_getgroups=gid_t
5413 else
5414 ac_cv_type_getgroups=int
5415 fi
5416 rm -f conftest*
5417
5418 fi
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
5421 $as_echo "$ac_cv_type_getgroups" >&6; }
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define GETGROUPS_T $ac_cv_type_getgroups
5425 _ACEOF
5426
5427
5428 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5429 if test "x$ac_cv_type_mode_t" = xyes; then :
5430
5431 else
5432
5433 cat >>confdefs.h <<_ACEOF
5434 #define mode_t int
5435 _ACEOF
5436
5437 fi
5438
5439 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5440 if test "x$ac_cv_type_off_t" = xyes; then :
5441
5442 else
5443
5444 cat >>confdefs.h <<_ACEOF
5445 #define off_t long int
5446 _ACEOF
5447
5448 fi
5449
5450 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5451 if test "x$ac_cv_type_pid_t" = xyes; then :
5452
5453 else
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define pid_t int
5457 _ACEOF
5458
5459 fi
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5462 $as_echo_n "checking return type of signal handlers... " >&6; }
5463 if ${ac_cv_type_signal+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #include <sys/types.h>
5469 #include <signal.h>
5470
5471 int
5472 main ()
5473 {
5474 return *(signal (0, 0)) (0) == 1;
5475 ;
5476 return 0;
5477 }
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"; then :
5480 ac_cv_type_signal=int
5481 else
5482 ac_cv_type_signal=void
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5487 $as_echo "$ac_cv_type_signal" >&6; }
5488
5489 cat >>confdefs.h <<_ACEOF
5490 #define RETSIGTYPE $ac_cv_type_signal
5491 _ACEOF
5492
5493
5494 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5495 if test "x$ac_cv_type_size_t" = xyes; then :
5496
5497 else
5498
5499 cat >>confdefs.h <<_ACEOF
5500 #define size_t unsigned int
5501 _ACEOF
5502
5503 fi
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5506 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5507 if ${ac_cv_type_uid_t+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #include <sys/types.h>
5513
5514 _ACEOF
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 $EGREP "uid_t" >/dev/null 2>&1; then :
5517 ac_cv_type_uid_t=yes
5518 else
5519 ac_cv_type_uid_t=no
5520 fi
5521 rm -f conftest*
5522
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5525 $as_echo "$ac_cv_type_uid_t" >&6; }
5526 if test $ac_cv_type_uid_t = no; then
5527
5528 $as_echo "#define uid_t int" >>confdefs.h
5529
5530
5531 $as_echo "#define gid_t int" >>confdefs.h
5532
5533 fi
5534
5535
5536
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5539 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5540 # Check whether --enable-maintainer-mode was given.
5541 if test "${enable_maintainer_mode+set}" = set; then :
5542 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5543 else
5544 USE_MAINTAINER_MODE=no
5545 fi
5546
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5548 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5549 if test $USE_MAINTAINER_MODE = yes; then
5550 MAINTAINER_MODE_TRUE=
5551 MAINTAINER_MODE_FALSE='#'
5552 else
5553 MAINTAINER_MODE_TRUE='#'
5554 MAINTAINER_MODE_FALSE=
5555 fi
5556
5557 MAINT=$MAINTAINER_MODE_TRUE
5558
5559
5560 am__api_version='1.15'
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5563 $as_echo_n "checking whether build environment is sane... " >&6; }
5564 # Reject unsafe characters in $srcdir or the absolute working directory
5565 # name. Accept space and tab only in the latter.
5566 am_lf='
5567 '
5568 case `pwd` in
5569 *[\\\"\#\$\&\'\`$am_lf]*)
5570 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5571 esac
5572 case $srcdir in
5573 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5574 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5575 esac
5576
5577 # Do 'set' in a subshell so we don't clobber the current shell's
5578 # arguments. Must try -L first in case configure is actually a
5579 # symlink; some systems play weird games with the mod time of symlinks
5580 # (eg FreeBSD returns the mod time of the symlink's containing
5581 # directory).
5582 if (
5583 am_has_slept=no
5584 for am_try in 1 2; do
5585 echo "timestamp, slept: $am_has_slept" > conftest.file
5586 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5587 if test "$*" = "X"; then
5588 # -L didn't work.
5589 set X `ls -t "$srcdir/configure" conftest.file`
5590 fi
5591 if test "$*" != "X $srcdir/configure conftest.file" \
5592 && test "$*" != "X conftest.file $srcdir/configure"; then
5593
5594 # If neither matched, then we have a broken ls. This can happen
5595 # if, for instance, CONFIG_SHELL is bash and it inherits a
5596 # broken ls alias from the environment. This has actually
5597 # happened. Such a system could not be considered "sane".
5598 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5599 alias in your environment" "$LINENO" 5
5600 fi
5601 if test "$2" = conftest.file || test $am_try -eq 2; then
5602 break
5603 fi
5604 # Just in case.
5605 sleep 1
5606 am_has_slept=yes
5607 done
5608 test "$2" = conftest.file
5609 )
5610 then
5611 # Ok.
5612 :
5613 else
5614 as_fn_error $? "newly created file is older than distributed files!
5615 Check your system clock" "$LINENO" 5
5616 fi
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618 $as_echo "yes" >&6; }
5619 # If we didn't sleep, we still need to ensure time stamps of config.status and
5620 # generated files are strictly newer.
5621 am_sleep_pid=
5622 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5623 ( sleep 1 ) &
5624 am_sleep_pid=$!
5625 fi
5626
5627 rm -f conftest.file
5628
5629 if test x"${MISSING+set}" != xset; then
5630 case $am_aux_dir in
5631 *\ * | *\ *)
5632 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5633 *)
5634 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5635 esac
5636 fi
5637 # Use eval to expand $SHELL
5638 if eval "$MISSING --is-lightweight"; then
5639 am_missing_run="$MISSING "
5640 else
5641 am_missing_run=
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5643 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5644 fi
5645
5646 if test x"${install_sh+set}" != xset; then
5647 case $am_aux_dir in
5648 *\ * | *\ *)
5649 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5650 *)
5651 install_sh="\${SHELL} $am_aux_dir/install-sh"
5652 esac
5653 fi
5654
5655 # Installed binaries are usually stripped using 'strip' when the user
5656 # run "make install-strip". However 'strip' might not be the right
5657 # tool to use in cross-compilation environments, therefore Automake
5658 # will honor the 'STRIP' environment variable to overrule this program.
5659 if test "$cross_compiling" != no; then
5660 if test -n "$ac_tool_prefix"; then
5661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5662 set dummy ${ac_tool_prefix}strip; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_STRIP+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 if test -n "$STRIP"; then
5669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5681 fi
5682 done
5683 done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 STRIP=$ac_cv_prog_STRIP
5689 if test -n "$STRIP"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5691 $as_echo "$STRIP" >&6; }
5692 else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697
5698 fi
5699 if test -z "$ac_cv_prog_STRIP"; then
5700 ac_ct_STRIP=$STRIP
5701 # Extract the first word of "strip", so it can be a program name with args.
5702 set dummy strip; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if test -n "$ac_ct_STRIP"; then
5709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_ac_ct_STRIP="strip"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5729 if test -n "$ac_ct_STRIP"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5731 $as_echo "$ac_ct_STRIP" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737 if test "x$ac_ct_STRIP" = x; then
5738 STRIP=":"
5739 else
5740 case $cross_compiling:$ac_tool_warned in
5741 yes:)
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5744 ac_tool_warned=yes ;;
5745 esac
5746 STRIP=$ac_ct_STRIP
5747 fi
5748 else
5749 STRIP="$ac_cv_prog_STRIP"
5750 fi
5751
5752 fi
5753 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5754
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5756 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5757 if test -z "$MKDIR_P"; then
5758 if ${ac_cv_path_mkdir+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5763 do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_prog in mkdir gmkdir; do
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5769 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5770 'mkdir (GNU coreutils) '* | \
5771 'mkdir (coreutils) '* | \
5772 'mkdir (fileutils) '4.1*)
5773 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5774 break 3;;
5775 esac
5776 done
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781 fi
5782
5783 test -d ./--version && rmdir ./--version
5784 if test "${ac_cv_path_mkdir+set}" = set; then
5785 MKDIR_P="$ac_cv_path_mkdir -p"
5786 else
5787 # As a last resort, use the slow shell script. Don't cache a
5788 # value for MKDIR_P within a source directory, because that will
5789 # break other packages using the cache if that directory is
5790 # removed, or if the value is a relative name.
5791 MKDIR_P="$ac_install_sh -d"
5792 fi
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5795 $as_echo "$MKDIR_P" >&6; }
5796
5797 for ac_prog in gawk mawk nawk awk
5798 do
5799 # Extract the first word of "$ac_prog", so it can be a program name with args.
5800 set dummy $ac_prog; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_AWK+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if test -n "$AWK"; then
5807 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_AWK="$ac_prog"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 AWK=$ac_cv_prog_AWK
5827 if test -n "$AWK"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5829 $as_echo "$AWK" >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835
5836 test -n "$AWK" && break
5837 done
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5840 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5841 set x ${MAKE-make}
5842 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5843 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 cat >conftest.make <<\_ACEOF
5847 SHELL = /bin/sh
5848 all:
5849 @echo '@@@%%%=$(MAKE)=@@@%%%'
5850 _ACEOF
5851 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5852 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5853 *@@@%%%=?*=@@@%%%*)
5854 eval ac_cv_prog_make_${ac_make}_set=yes;;
5855 *)
5856 eval ac_cv_prog_make_${ac_make}_set=no;;
5857 esac
5858 rm -f conftest.make
5859 fi
5860 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5862 $as_echo "yes" >&6; }
5863 SET_MAKE=
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 SET_MAKE="MAKE=${MAKE-make}"
5868 fi
5869
5870 rm -rf .tst 2>/dev/null
5871 mkdir .tst 2>/dev/null
5872 if test -d .tst; then
5873 am__leading_dot=.
5874 else
5875 am__leading_dot=_
5876 fi
5877 rmdir .tst 2>/dev/null
5878
5879 DEPDIR="${am__leading_dot}deps"
5880
5881 ac_config_commands="$ac_config_commands depfiles"
5882
5883
5884 am_make=${MAKE-make}
5885 cat > confinc << 'END'
5886 am__doit:
5887 @echo this is the am__doit target
5888 .PHONY: am__doit
5889 END
5890 # If we don't find an include directive, just comment out the code.
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5892 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5893 am__include="#"
5894 am__quote=
5895 _am_result=none
5896 # First try GNU make style include.
5897 echo "include confinc" > confmf
5898 # Ignore all kinds of additional output from 'make'.
5899 case `$am_make -s -f confmf 2> /dev/null` in #(
5900 *the\ am__doit\ target*)
5901 am__include=include
5902 am__quote=
5903 _am_result=GNU
5904 ;;
5905 esac
5906 # Now try BSD make style include.
5907 if test "$am__include" = "#"; then
5908 echo '.include "confinc"' > confmf
5909 case `$am_make -s -f confmf 2> /dev/null` in #(
5910 *the\ am__doit\ target*)
5911 am__include=.include
5912 am__quote="\""
5913 _am_result=BSD
5914 ;;
5915 esac
5916 fi
5917
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5920 $as_echo "$_am_result" >&6; }
5921 rm -f confinc confmf
5922
5923 # Check whether --enable-dependency-tracking was given.
5924 if test "${enable_dependency_tracking+set}" = set; then :
5925 enableval=$enable_dependency_tracking;
5926 fi
5927
5928 if test "x$enable_dependency_tracking" != xno; then
5929 am_depcomp="$ac_aux_dir/depcomp"
5930 AMDEPBACKSLASH='\'
5931 am__nodep='_no'
5932 fi
5933 if test "x$enable_dependency_tracking" != xno; then
5934 AMDEP_TRUE=
5935 AMDEP_FALSE='#'
5936 else
5937 AMDEP_TRUE='#'
5938 AMDEP_FALSE=
5939 fi
5940
5941
5942 # Check whether --enable-silent-rules was given.
5943 if test "${enable_silent_rules+set}" = set; then :
5944 enableval=$enable_silent_rules;
5945 fi
5946
5947 case $enable_silent_rules in # (((
5948 yes) AM_DEFAULT_VERBOSITY=0;;
5949 no) AM_DEFAULT_VERBOSITY=1;;
5950 *) AM_DEFAULT_VERBOSITY=1;;
5951 esac
5952 am_make=${MAKE-make}
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5954 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5955 if ${am_cv_make_support_nested_variables+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if $as_echo 'TRUE=$(BAR$(V))
5959 BAR0=false
5960 BAR1=true
5961 V=1
5962 am__doit:
5963 @$(TRUE)
5964 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5965 am_cv_make_support_nested_variables=yes
5966 else
5967 am_cv_make_support_nested_variables=no
5968 fi
5969 fi
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5971 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5972 if test $am_cv_make_support_nested_variables = yes; then
5973 AM_V='$(V)'
5974 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5975 else
5976 AM_V=$AM_DEFAULT_VERBOSITY
5977 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5978 fi
5979 AM_BACKSLASH='\'
5980
5981 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5982 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5983 # is not polluted with repeated "-I."
5984 am__isrc=' -I$(srcdir)'
5985 # test to see if srcdir already configured
5986 if test -f $srcdir/config.status; then
5987 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5988 fi
5989 fi
5990
5991 # test whether we have cygpath
5992 if test -z "$CYGPATH_W"; then
5993 if (cygpath --version) >/dev/null 2>/dev/null; then
5994 CYGPATH_W='cygpath -w'
5995 else
5996 CYGPATH_W=echo
5997 fi
5998 fi
5999
6000
6001 # Define the identity of the package.
6002 PACKAGE='sim'
6003 VERSION='0'
6004
6005
6006 cat >>confdefs.h <<_ACEOF
6007 #define PACKAGE "$PACKAGE"
6008 _ACEOF
6009
6010
6011 cat >>confdefs.h <<_ACEOF
6012 #define VERSION "$VERSION"
6013 _ACEOF
6014
6015 # Some tools Automake needs.
6016
6017 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6018
6019
6020 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6021
6022
6023 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6024
6025
6026 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6027
6028
6029 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6030
6031 # For better backward compatibility. To be removed once Automake 1.9.x
6032 # dies out for good. For more background, see:
6033 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6034 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6035 mkdir_p='$(MKDIR_P)'
6036
6037 # We need awk for the "check" target (and possibly the TAP driver). The
6038 # system "awk" is bad on some platforms.
6039 # Always define AMTAR for backward compatibility. Yes, it's still used
6040 # in the wild :-( We should find a proper way to deprecate it ...
6041 AMTAR='$${TAR-tar}'
6042
6043
6044 # We'll loop over all known methods to create a tar archive until one works.
6045 _am_tools='gnutar pax cpio none'
6046
6047 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6048
6049
6050
6051
6052
6053 depcc="$CC" am_compiler_list=
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6056 $as_echo_n "checking dependency style of $depcc... " >&6; }
6057 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6061 # We make a subdir and do the tests there. Otherwise we can end up
6062 # making bogus files that we don't know about and never remove. For
6063 # instance it was reported that on HP-UX the gcc test will end up
6064 # making a dummy file named 'D' -- because '-MD' means "put the output
6065 # in D".
6066 rm -rf conftest.dir
6067 mkdir conftest.dir
6068 # Copy depcomp to subdir because otherwise we won't find it if we're
6069 # using a relative directory.
6070 cp "$am_depcomp" conftest.dir
6071 cd conftest.dir
6072 # We will build objects and dependencies in a subdirectory because
6073 # it helps to detect inapplicable dependency modes. For instance
6074 # both Tru64's cc and ICC support -MD to output dependencies as a
6075 # side effect of compilation, but ICC will put the dependencies in
6076 # the current directory while Tru64 will put them in the object
6077 # directory.
6078 mkdir sub
6079
6080 am_cv_CC_dependencies_compiler_type=none
6081 if test "$am_compiler_list" = ""; then
6082 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6083 fi
6084 am__universal=false
6085 case " $depcc " in #(
6086 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6087 esac
6088
6089 for depmode in $am_compiler_list; do
6090 # Setup a source with many dependencies, because some compilers
6091 # like to wrap large dependency lists on column 80 (with \), and
6092 # we should not choose a depcomp mode which is confused by this.
6093 #
6094 # We need to recreate these files for each test, as the compiler may
6095 # overwrite some of them when testing with obscure command lines.
6096 # This happens at least with the AIX C compiler.
6097 : > sub/conftest.c
6098 for i in 1 2 3 4 5 6; do
6099 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6100 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6101 # Solaris 10 /bin/sh.
6102 echo '/* dummy */' > sub/conftst$i.h
6103 done
6104 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6105
6106 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6107 # mode. It turns out that the SunPro C++ compiler does not properly
6108 # handle '-M -o', and we need to detect this. Also, some Intel
6109 # versions had trouble with output in subdirs.
6110 am__obj=sub/conftest.${OBJEXT-o}
6111 am__minus_obj="-o $am__obj"
6112 case $depmode in
6113 gcc)
6114 # This depmode causes a compiler race in universal mode.
6115 test "$am__universal" = false || continue
6116 ;;
6117 nosideeffect)
6118 # After this tag, mechanisms are not by side-effect, so they'll
6119 # only be used when explicitly requested.
6120 if test "x$enable_dependency_tracking" = xyes; then
6121 continue
6122 else
6123 break
6124 fi
6125 ;;
6126 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6127 # This compiler won't grok '-c -o', but also, the minuso test has
6128 # not run yet. These depmodes are late enough in the game, and
6129 # so weak that their functioning should not be impacted.
6130 am__obj=conftest.${OBJEXT-o}
6131 am__minus_obj=
6132 ;;
6133 none) break ;;
6134 esac
6135 if depmode=$depmode \
6136 source=sub/conftest.c object=$am__obj \
6137 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6138 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6139 >/dev/null 2>conftest.err &&
6140 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6141 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6142 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6143 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6144 # icc doesn't choke on unknown options, it will just issue warnings
6145 # or remarks (even with -Werror). So we grep stderr for any message
6146 # that says an option was ignored or not supported.
6147 # When given -MP, icc 7.0 and 7.1 complain thusly:
6148 # icc: Command line warning: ignoring option '-M'; no argument required
6149 # The diagnosis changed in icc 8.0:
6150 # icc: Command line remark: option '-MP' not supported
6151 if (grep 'ignoring option' conftest.err ||
6152 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6153 am_cv_CC_dependencies_compiler_type=$depmode
6154 break
6155 fi
6156 fi
6157 done
6158
6159 cd ..
6160 rm -rf conftest.dir
6161 else
6162 am_cv_CC_dependencies_compiler_type=none
6163 fi
6164
6165 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6167 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6168 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6169
6170 if
6171 test "x$enable_dependency_tracking" != xno \
6172 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6173 am__fastdepCC_TRUE=
6174 am__fastdepCC_FALSE='#'
6175 else
6176 am__fastdepCC_TRUE='#'
6177 am__fastdepCC_FALSE=
6178 fi
6179
6180
6181
6182 # POSIX will say in a future version that running "rm -f" with no argument
6183 # is OK; and we want to be able to make that assumption in our Makefile
6184 # recipes. So use an aggressive probe to check that the usage we want is
6185 # actually supported "in the wild" to an acceptable degree.
6186 # See automake bug#10828.
6187 # To make any issue more visible, cause the running configure to be aborted
6188 # by default if the 'rm' program in use doesn't match our expectations; the
6189 # user can still override this though.
6190 if rm -f && rm -fr && rm -rf; then : OK; else
6191 cat >&2 <<'END'
6192 Oops!
6193
6194 Your 'rm' program seems unable to run without file operands specified
6195 on the command line, even when the '-f' option is present. This is contrary
6196 to the behaviour of most rm programs out there, and not conforming with
6197 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6198
6199 Please tell bug-automake@gnu.org about your system, including the value
6200 of your $PATH and any error possibly output before this message. This
6201 can help us improve future automake versions.
6202
6203 END
6204 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6205 echo 'Configuration will proceed anyway, since you have set the' >&2
6206 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6207 echo >&2
6208 else
6209 cat >&2 <<'END'
6210 Aborting the configuration process, to ensure you take notice of the issue.
6211
6212 You can download and install GNU coreutils to get an 'rm' implementation
6213 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6214
6215 If you want to complete the configuration process using your problematic
6216 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6217 to "yes", and re-run configure.
6218
6219 END
6220 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6221 fi
6222 fi
6223
6224 # Check whether --enable-silent-rules was given.
6225 if test "${enable_silent_rules+set}" = set; then :
6226 enableval=$enable_silent_rules;
6227 fi
6228
6229 case $enable_silent_rules in # (((
6230 yes) AM_DEFAULT_VERBOSITY=0;;
6231 no) AM_DEFAULT_VERBOSITY=1;;
6232 *) AM_DEFAULT_VERBOSITY=0;;
6233 esac
6234 am_make=${MAKE-make}
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6236 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6237 if ${am_cv_make_support_nested_variables+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if $as_echo 'TRUE=$(BAR$(V))
6241 BAR0=false
6242 BAR1=true
6243 V=1
6244 am__doit:
6245 @$(TRUE)
6246 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6247 am_cv_make_support_nested_variables=yes
6248 else
6249 am_cv_make_support_nested_variables=no
6250 fi
6251 fi
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6253 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6254 if test $am_cv_make_support_nested_variables = yes; then
6255 AM_V='$(V)'
6256 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6257 else
6258 AM_V=$AM_DEFAULT_VERBOSITY
6259 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6260 fi
6261 AM_BACKSLASH='\'
6262
6263
6264 # If a cpu ever has more than one simulator to choose from, use
6265 # --enable-sim=... to choose.
6266 # Check whether --enable-sim was given.
6267 if test "${enable_sim+set}" = set; then :
6268 enableval=$enable_sim; case "${enableval}" in
6269 yes | no) ;;
6270 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
6271 esac
6272 fi
6273
6274
6275 # Check whether --enable-example-sims was given.
6276 if test "${enable_example_sims+set}" = set; then :
6277 enableval=$enable_example_sims;
6278 fi
6279
6280
6281 # Check whether --enable-targets was given.
6282 if test "${enable_targets+set}" = set; then :
6283 enableval=$enable_targets; case "${enableval}" in
6284 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6285 ;;
6286 no) enable_targets= ;;
6287 *) enable_targets=$enableval ;;
6288 esac
6289 fi
6290
6291
6292 SIM_PRIMARY_TARGET=
6293
6294
6295
6296
6297 if test "${enable_sim}" != no; then
6298 sim_igen=no
6299 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
6300 do
6301
6302 case "${targ}" in
6303 all|aarch64*-*-*)
6304 if test "${targ}" = "${target}"; then
6305 SIM_PRIMARY_TARGET=aarch64
6306 fi
6307
6308
6309 subdirs="$subdirs aarch64"
6310
6311
6312 ;;
6313 esac
6314
6315
6316 case "${targ}" in
6317 all|arm*-*-*)
6318 if test "${targ}" = "${target}"; then
6319 SIM_PRIMARY_TARGET=arm
6320 fi
6321 subdirs="$subdirs arm"
6322
6323
6324 ;;
6325 esac
6326
6327
6328 case "${targ}" in
6329 all|avr*-*-*)
6330 if test "${targ}" = "${target}"; then
6331 SIM_PRIMARY_TARGET=avr
6332 fi
6333 subdirs="$subdirs avr"
6334
6335
6336 ;;
6337 esac
6338
6339
6340 case "${targ}" in
6341 all|bfin-*-*)
6342 if test "${targ}" = "${target}"; then
6343 SIM_PRIMARY_TARGET=bfin
6344 fi
6345 subdirs="$subdirs bfin"
6346
6347
6348 ;;
6349 esac
6350
6351
6352 case "${targ}" in
6353 all|bpf-*-*)
6354 if test "${targ}" = "${target}"; then
6355 SIM_PRIMARY_TARGET=bpf
6356 fi
6357 subdirs="$subdirs bpf"
6358
6359
6360 ;;
6361 esac
6362
6363
6364 case "${targ}" in
6365 all|cr16*-*-*)
6366 if test "${targ}" = "${target}"; then
6367 SIM_PRIMARY_TARGET=cr16
6368 fi
6369 subdirs="$subdirs cr16"
6370
6371
6372 ;;
6373 esac
6374
6375
6376 case "${targ}" in
6377 all|cris-*-* | crisv32-*-*)
6378 if test "${targ}" = "${target}"; then
6379 SIM_PRIMARY_TARGET=cris
6380 fi
6381 subdirs="$subdirs cris"
6382
6383
6384 ;;
6385 esac
6386
6387
6388 case "${targ}" in
6389 all|d10v-*-*)
6390 if test "${targ}" = "${target}"; then
6391 SIM_PRIMARY_TARGET=d10v
6392 fi
6393 subdirs="$subdirs d10v"
6394
6395
6396 ;;
6397 esac
6398
6399
6400 case "${targ}" in
6401 all|frv-*-*)
6402 if test "${targ}" = "${target}"; then
6403 SIM_PRIMARY_TARGET=frv
6404 fi
6405 subdirs="$subdirs frv"
6406
6407
6408 ;;
6409 esac
6410
6411
6412 case "${targ}" in
6413 all|h8300*-*-*)
6414 if test "${targ}" = "${target}"; then
6415 SIM_PRIMARY_TARGET=h8300
6416 fi
6417 subdirs="$subdirs h8300"
6418
6419
6420 ;;
6421 esac
6422
6423
6424 case "${targ}" in
6425 all|iq2000-*-*)
6426 if test "${targ}" = "${target}"; then
6427 SIM_PRIMARY_TARGET=iq2000
6428 fi
6429 subdirs="$subdirs iq2000"
6430
6431
6432 ;;
6433 esac
6434
6435
6436 case "${targ}" in
6437 all|lm32-*-*)
6438 if test "${targ}" = "${target}"; then
6439 SIM_PRIMARY_TARGET=lm32
6440 fi
6441 subdirs="$subdirs lm32"
6442
6443
6444 ;;
6445 esac
6446
6447
6448 case "${targ}" in
6449 all|m32c-*-*)
6450 if test "${targ}" = "${target}"; then
6451 SIM_PRIMARY_TARGET=m32c
6452 fi
6453 subdirs="$subdirs m32c"
6454
6455
6456 ;;
6457 esac
6458
6459
6460 case "${targ}" in
6461 all|m32r-*-*)
6462 if test "${targ}" = "${target}"; then
6463 SIM_PRIMARY_TARGET=m32r
6464 fi
6465 subdirs="$subdirs m32r"
6466
6467
6468 ;;
6469 esac
6470
6471
6472 case "${targ}" in
6473 all|m68hc11-*-*|m6811-*-*)
6474 if test "${targ}" = "${target}"; then
6475 SIM_PRIMARY_TARGET=m68hc11
6476 fi
6477 subdirs="$subdirs m68hc11"
6478
6479
6480 ;;
6481 esac
6482
6483
6484 case "${targ}" in
6485 all|mcore-*-*)
6486 if test "${targ}" = "${target}"; then
6487 SIM_PRIMARY_TARGET=mcore
6488 fi
6489 subdirs="$subdirs mcore"
6490
6491
6492 ;;
6493 esac
6494
6495
6496 case "${targ}" in
6497 all|microblaze-*-*)
6498 if test "${targ}" = "${target}"; then
6499 SIM_PRIMARY_TARGET=microblaze
6500 fi
6501 subdirs="$subdirs microblaze"
6502
6503
6504 ;;
6505 esac
6506
6507
6508 case "${targ}" in
6509 all|mips*-*-*)
6510 if test "${targ}" = "${target}"; then
6511 SIM_PRIMARY_TARGET=mips
6512 fi
6513 subdirs="$subdirs mips"
6514
6515 sim_igen=yes
6516 ;;
6517 esac
6518
6519
6520 case "${targ}" in
6521 all|mn10300*-*-*)
6522 if test "${targ}" = "${target}"; then
6523 SIM_PRIMARY_TARGET=mn10300
6524 fi
6525 subdirs="$subdirs mn10300"
6526
6527 sim_igen=yes
6528 ;;
6529 esac
6530
6531
6532 case "${targ}" in
6533 all|moxie-*-*)
6534 if test "${targ}" = "${target}"; then
6535 SIM_PRIMARY_TARGET=moxie
6536 fi
6537 subdirs="$subdirs moxie"
6538
6539
6540 ;;
6541 esac
6542
6543
6544 case "${targ}" in
6545 all|msp430*-*-*)
6546 if test "${targ}" = "${target}"; then
6547 SIM_PRIMARY_TARGET=msp430
6548 fi
6549 subdirs="$subdirs msp430"
6550
6551
6552 ;;
6553 esac
6554
6555
6556 case "${targ}" in
6557 all|or1k-*-* | or1knd-*-*)
6558 if test "${targ}" = "${target}"; then
6559 SIM_PRIMARY_TARGET=or1k
6560 fi
6561 subdirs="$subdirs or1k"
6562
6563
6564 ;;
6565 esac
6566
6567
6568 case "${targ}" in
6569 all|pru*-*-*)
6570 if test "${targ}" = "${target}"; then
6571 SIM_PRIMARY_TARGET=pru
6572 fi
6573 subdirs="$subdirs pru"
6574
6575
6576 ;;
6577 esac
6578
6579
6580 case "${targ}" in
6581 all|riscv*-*-*)
6582 if test "${targ}" = "${target}"; then
6583 SIM_PRIMARY_TARGET=riscv
6584 fi
6585 subdirs="$subdirs riscv"
6586
6587
6588 ;;
6589 esac
6590
6591
6592 case "${targ}" in
6593 all|rl78-*-*)
6594 if test "${targ}" = "${target}"; then
6595 SIM_PRIMARY_TARGET=rl78
6596 fi
6597 subdirs="$subdirs rl78"
6598
6599
6600 ;;
6601 esac
6602
6603
6604 case "${targ}" in
6605 all|rx-*-*)
6606 if test "${targ}" = "${target}"; then
6607 SIM_PRIMARY_TARGET=rx
6608 fi
6609 subdirs="$subdirs rx"
6610
6611
6612 ;;
6613 esac
6614
6615
6616 case "${targ}" in
6617 all|sh*-*-*)
6618 if test "${targ}" = "${target}"; then
6619 SIM_PRIMARY_TARGET=sh
6620 fi
6621 subdirs="$subdirs sh"
6622
6623
6624 ;;
6625 esac
6626
6627
6628 case "${targ}" in
6629 all|sparc-*-rtems*|sparc-*-elf*)
6630 if test "${targ}" = "${target}"; then
6631 SIM_PRIMARY_TARGET=erc32
6632 fi
6633 subdirs="$subdirs erc32"
6634
6635
6636 ;;
6637 esac
6638
6639
6640 case "${targ}" in
6641 all|powerpc*-*-*)
6642 if test "${targ}" = "${target}"; then
6643 SIM_PRIMARY_TARGET=ppc
6644 fi
6645 subdirs="$subdirs ppc"
6646
6647
6648 ;;
6649 esac
6650
6651
6652 case "${targ}" in
6653 all|ft32-*-*)
6654 if test "${targ}" = "${target}"; then
6655 SIM_PRIMARY_TARGET=ft32
6656 fi
6657 subdirs="$subdirs ft32"
6658
6659
6660 ;;
6661 esac
6662
6663
6664 case "${targ}" in
6665 all|v850*-*-*)
6666 if test "${targ}" = "${target}"; then
6667 SIM_PRIMARY_TARGET=v850
6668 fi
6669 subdirs="$subdirs v850"
6670
6671 sim_igen=yes
6672 ;;
6673 esac
6674
6675 done
6676
6677 if test "x${enable_example_sims}" = xyes; then
6678 subdirs="$subdirs example-synacor"
6679
6680 fi
6681 fi
6682 if test "$sim_igen" = "yes"; then
6683 SIM_ENABLE_IGEN_TRUE=
6684 SIM_ENABLE_IGEN_FALSE='#'
6685 else
6686 SIM_ENABLE_IGEN_TRUE='#'
6687 SIM_ENABLE_IGEN_FALSE=
6688 fi
6689
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
6692 $as_echo_n "checking whether to force sim alignment... " >&6; }
6693 sim_alignment=
6694 # Check whether --enable-sim-alignment was given.
6695 if test "${enable_sim_alignment+set}" = set; then :
6696 enableval=$enable_sim_alignment; case "${enableval}" in
6697 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
6698 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
6699 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
6700 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
6701 esac
6702 fi
6703
6704 cat >>confdefs.h <<_ACEOF
6705 #define WITH_ALIGNMENT ${sim_alignment:-0}
6706 _ACEOF
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
6709 $as_echo "${sim_alignment:-no}" >&6; }
6710
6711
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
6713 $as_echo_n "checking whether to enable sim asserts... " >&6; }
6714 sim_assert="1"
6715 # Check whether --enable-sim-assert was given.
6716 if test "${enable_sim_assert+set}" = set; then :
6717 enableval=$enable_sim_assert; case "${enableval}" in
6718 yes) sim_assert="1";;
6719 no) sim_assert="0";;
6720 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
6721 esac
6722 fi
6723
6724 cat >>confdefs.h <<_ACEOF
6725 #define WITH_ASSERT $sim_assert
6726 _ACEOF
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
6729 $as_echo "$sim_assert" >&6; }
6730
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
6732 $as_echo_n "checking for sim debug setting... " >&6; }
6733 sim_debug="0"
6734 # Check whether --enable-sim-debug was given.
6735 if test "${enable_sim_debug+set}" = set; then :
6736 enableval=$enable_sim_debug; case "${enableval}" in
6737 yes) sim_debug="7";;
6738 no) sim_debug="0";;
6739 *) sim_debug="($enableval)";;
6740 esac
6741 fi
6742 if test "$sim_debug" != "0"; then
6743
6744 cat >>confdefs.h <<_ACEOF
6745 #define DEBUG $sim_debug
6746 _ACEOF
6747
6748 fi
6749
6750 cat >>confdefs.h <<_ACEOF
6751 #define WITH_DEBUG $sim_debug
6752 _ACEOF
6753
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
6755 $as_echo "$sim_debug" >&6; }
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
6758 $as_echo_n "checking whether to force sim endianness... " >&6; }
6759 sim_endian=
6760 # Check whether --enable-sim-endian was given.
6761 if test "${enable_sim_endian+set}" = set; then :
6762 enableval=$enable_sim_endian; case "${enableval}" in
6763 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
6764 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
6765 yes | no) ;;
6766 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
6767 esac
6768 fi
6769
6770 cat >>confdefs.h <<_ACEOF
6771 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
6772 _ACEOF
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
6775 $as_echo "${sim_alignment:-no}" >&6; }
6776
6777
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
6779 $as_echo_n "checking default sim environment setting... " >&6; }
6780 sim_environment="ALL_ENVIRONMENT"
6781 # Check whether --enable-sim-environment was given.
6782 if test "${enable_sim_environment+set}" = set; then :
6783 enableval=$enable_sim_environment; case "${enableval}" in
6784 all | ALL) sim_environment="ALL_ENVIRONMENT";;
6785 user | USER) sim_environment="USER_ENVIRONMENT";;
6786 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
6787 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
6788 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
6789 esac
6790 fi
6791
6792 cat >>confdefs.h <<_ACEOF
6793 #define WITH_ENVIRONMENT $sim_environment
6794 _ACEOF
6795
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
6797 $as_echo "$sim_environment" >&6; }
6798
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
6800 $as_echo_n "checking for sim profile settings... " >&6; }
6801 profile="1"
6802 sim_profile="-1"
6803 # Check whether --enable-sim-profile was given.
6804 if test "${enable_sim_profile+set}" = set; then :
6805 enableval=$enable_sim_profile; case "${enableval}" in
6806 yes) profile="1" sim_profile="-1";;
6807 no) profile="0" sim_profile="0";;
6808 [-0-9]*)
6809 profile="(${enableval})" sim_profile="(${enableval})";;
6810 [a-z]*)
6811 profile="1"
6812 sim_profile=""
6813 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6814 if test x"$sim_profile" = x; then
6815 sim_profile="(PROFILE_$x"
6816 else
6817 sim_profile="${sim_profile}|PROFILE_$x"
6818 fi
6819 done
6820 sim_profile="$sim_profile)" ;;
6821 esac
6822 fi
6823
6824 cat >>confdefs.h <<_ACEOF
6825 #define PROFILE $profile
6826 _ACEOF
6827
6828
6829 cat >>confdefs.h <<_ACEOF
6830 #define WITH_PROFILE $sim_profile
6831 _ACEOF
6832
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
6834 $as_echo "$sim_profile" >&6; }
6835
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
6837 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
6838 sim_stdio="0"
6839 # Check whether --enable-sim-stdio was given.
6840 if test "${enable_sim_stdio+set}" = set; then :
6841 enableval=$enable_sim_stdio; case "${enableval}" in
6842 yes) sim_stdio="DO_USE_STDIO";;
6843 no) sim_stdio="DONT_USE_STDIO";;
6844 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
6845 esac
6846 fi
6847
6848 cat >>confdefs.h <<_ACEOF
6849 #define WITH_STDIO $sim_stdio
6850 _ACEOF
6851
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
6853 $as_echo "$sim_stdio" >&6; }
6854
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
6856 $as_echo_n "checking for sim trace settings... " >&6; }
6857 sim_trace="~TRACE_debug"
6858 # Check whether --enable-sim-trace was given.
6859 if test "${enable_sim_trace+set}" = set; then :
6860 enableval=$enable_sim_trace; case "${enableval}" in
6861 yes) sim_trace="-1";;
6862 no) sim_trace="0";;
6863 [-0-9]*)
6864 sim_trace="'(${enableval})'";;
6865 [[:lower:]]*)
6866 sim_trace=""
6867 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6868 if test x"$sim_trace" = x; then
6869 sim_trace="(TRACE_$x"
6870 else
6871 sim_trace="${sim_trace}|TRACE_$x"
6872 fi
6873 done
6874 sim_trace="$sim_trace)" ;;
6875 esac
6876 fi
6877
6878 cat >>confdefs.h <<_ACEOF
6879 #define WITH_TRACE $sim_trace
6880 _ACEOF
6881
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
6883 $as_echo "$sim_trace" >&6; }
6884
6885
6886 ac_config_files="$ac_config_files Makefile"
6887
6888 cat >confcache <<\_ACEOF
6889 # This file is a shell script that caches the results of configure
6890 # tests run on this system so they can be shared between configure
6891 # scripts and configure runs, see configure's option --config-cache.
6892 # It is not useful on other systems. If it contains results you don't
6893 # want to keep, you may remove or edit it.
6894 #
6895 # config.status only pays attention to the cache file if you give it
6896 # the --recheck option to rerun configure.
6897 #
6898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6900 # following values.
6901
6902 _ACEOF
6903
6904 # The following way of writing the cache mishandles newlines in values,
6905 # but we know of no workaround that is simple, portable, and efficient.
6906 # So, we kill variables containing newlines.
6907 # Ultrix sh set writes to stderr and can't be redirected directly,
6908 # and sets the high bit in the cache file unless we assign to the vars.
6909 (
6910 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6911 eval ac_val=\$$ac_var
6912 case $ac_val in #(
6913 *${as_nl}*)
6914 case $ac_var in #(
6915 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6917 esac
6918 case $ac_var in #(
6919 _ | IFS | as_nl) ;; #(
6920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6921 *) { eval $ac_var=; unset $ac_var;} ;;
6922 esac ;;
6923 esac
6924 done
6925
6926 (set) 2>&1 |
6927 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6928 *${as_nl}ac_space=\ *)
6929 # `set' does not quote correctly, so add quotes: double-quote
6930 # substitution turns \\\\ into \\, and sed turns \\ into \.
6931 sed -n \
6932 "s/'/'\\\\''/g;
6933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6934 ;; #(
6935 *)
6936 # `set' quotes correctly as required by POSIX, so do not add quotes.
6937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6938 ;;
6939 esac |
6940 sort
6941 ) |
6942 sed '
6943 /^ac_cv_env_/b end
6944 t clear
6945 :clear
6946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6947 t end
6948 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6949 :end' >>confcache
6950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6951 if test -w "$cache_file"; then
6952 if test "x$cache_file" != "x/dev/null"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6954 $as_echo "$as_me: updating cache $cache_file" >&6;}
6955 if test ! -f "$cache_file" || test -h "$cache_file"; then
6956 cat confcache >"$cache_file"
6957 else
6958 case $cache_file in #(
6959 */* | ?:*)
6960 mv -f confcache "$cache_file"$$ &&
6961 mv -f "$cache_file"$$ "$cache_file" ;; #(
6962 *)
6963 mv -f confcache "$cache_file" ;;
6964 esac
6965 fi
6966 fi
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6969 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6970 fi
6971 fi
6972 rm -f confcache
6973
6974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6975 # Let make expand exec_prefix.
6976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6977
6978 DEFS=-DHAVE_CONFIG_H
6979
6980 ac_libobjs=
6981 ac_ltlibobjs=
6982 U=
6983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6984 # 1. Remove the extension, and $U if already installed.
6985 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6986 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6987 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6988 # will be set to the directory where LIBOBJS objects are built.
6989 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6990 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6991 done
6992 LIBOBJS=$ac_libobjs
6993
6994 LTLIBOBJS=$ac_ltlibobjs
6995
6996
6997
6998 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6999 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7001 fi
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7003 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7004 if test -n "$am_sleep_pid"; then
7005 # Hide warnings about reused PIDs.
7006 wait $am_sleep_pid 2>/dev/null
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7009 $as_echo "done" >&6; }
7010 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7011 as_fn_error $? "conditional \"AMDEP\" was never defined.
7012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7013 fi
7014 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7015 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7017 fi
7018 if test -n "$EXEEXT"; then
7019 am__EXEEXT_TRUE=
7020 am__EXEEXT_FALSE='#'
7021 else
7022 am__EXEEXT_TRUE='#'
7023 am__EXEEXT_FALSE=
7024 fi
7025
7026 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
7027 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
7028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7029 fi
7030
7031 : "${CONFIG_STATUS=./config.status}"
7032 ac_write_fail=0
7033 ac_clean_files_save=$ac_clean_files
7034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7036 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7037 as_write_fail=0
7038 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7039 #! $SHELL
7040 # Generated by $as_me.
7041 # Run this file to recreate the current configuration.
7042 # Compiler output produced by configure, useful for debugging
7043 # configure, is in config.log if it exists.
7044
7045 debug=false
7046 ac_cs_recheck=false
7047 ac_cs_silent=false
7048
7049 SHELL=\${CONFIG_SHELL-$SHELL}
7050 export SHELL
7051 _ASEOF
7052 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7053 ## -------------------- ##
7054 ## M4sh Initialization. ##
7055 ## -------------------- ##
7056
7057 # Be more Bourne compatible
7058 DUALCASE=1; export DUALCASE # for MKS sh
7059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7060 emulate sh
7061 NULLCMD=:
7062 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7063 # is contrary to our usage. Disable this feature.
7064 alias -g '${1+"$@"}'='"$@"'
7065 setopt NO_GLOB_SUBST
7066 else
7067 case `(set -o) 2>/dev/null` in #(
7068 *posix*) :
7069 set -o posix ;; #(
7070 *) :
7071 ;;
7072 esac
7073 fi
7074
7075
7076 as_nl='
7077 '
7078 export as_nl
7079 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7080 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7081 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7083 # Prefer a ksh shell builtin over an external printf program on Solaris,
7084 # but without wasting forks for bash or zsh.
7085 if test -z "$BASH_VERSION$ZSH_VERSION" \
7086 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7087 as_echo='print -r --'
7088 as_echo_n='print -rn --'
7089 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7090 as_echo='printf %s\n'
7091 as_echo_n='printf %s'
7092 else
7093 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7094 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7095 as_echo_n='/usr/ucb/echo -n'
7096 else
7097 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7098 as_echo_n_body='eval
7099 arg=$1;
7100 case $arg in #(
7101 *"$as_nl"*)
7102 expr "X$arg" : "X\\(.*\\)$as_nl";
7103 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7104 esac;
7105 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7106 '
7107 export as_echo_n_body
7108 as_echo_n='sh -c $as_echo_n_body as_echo'
7109 fi
7110 export as_echo_body
7111 as_echo='sh -c $as_echo_body as_echo'
7112 fi
7113
7114 # The user is always right.
7115 if test "${PATH_SEPARATOR+set}" != set; then
7116 PATH_SEPARATOR=:
7117 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7118 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7119 PATH_SEPARATOR=';'
7120 }
7121 fi
7122
7123
7124 # IFS
7125 # We need space, tab and new line, in precisely that order. Quoting is
7126 # there to prevent editors from complaining about space-tab.
7127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7128 # splitting by setting IFS to empty value.)
7129 IFS=" "" $as_nl"
7130
7131 # Find who we are. Look in the path if we contain no directory separator.
7132 as_myself=
7133 case $0 in #((
7134 *[\\/]* ) as_myself=$0 ;;
7135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7141 done
7142 IFS=$as_save_IFS
7143
7144 ;;
7145 esac
7146 # We did not find ourselves, most probably we were run as `sh COMMAND'
7147 # in which case we are not to be found in the path.
7148 if test "x$as_myself" = x; then
7149 as_myself=$0
7150 fi
7151 if test ! -f "$as_myself"; then
7152 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7153 exit 1
7154 fi
7155
7156 # Unset variables that we do not need and which cause bugs (e.g. in
7157 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7158 # suppresses any "Segmentation fault" message there. '((' could
7159 # trigger a bug in pdksh 5.2.14.
7160 for as_var in BASH_ENV ENV MAIL MAILPATH
7161 do eval test x\${$as_var+set} = xset \
7162 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7163 done
7164 PS1='$ '
7165 PS2='> '
7166 PS4='+ '
7167
7168 # NLS nuisances.
7169 LC_ALL=C
7170 export LC_ALL
7171 LANGUAGE=C
7172 export LANGUAGE
7173
7174 # CDPATH.
7175 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7176
7177
7178 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7179 # ----------------------------------------
7180 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7181 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7182 # script with STATUS, using 1 if that was 0.
7183 as_fn_error ()
7184 {
7185 as_status=$1; test $as_status -eq 0 && as_status=1
7186 if test "$4"; then
7187 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7188 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7189 fi
7190 $as_echo "$as_me: error: $2" >&2
7191 as_fn_exit $as_status
7192 } # as_fn_error
7193
7194
7195 # as_fn_set_status STATUS
7196 # -----------------------
7197 # Set $? to STATUS, without forking.
7198 as_fn_set_status ()
7199 {
7200 return $1
7201 } # as_fn_set_status
7202
7203 # as_fn_exit STATUS
7204 # -----------------
7205 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7206 as_fn_exit ()
7207 {
7208 set +e
7209 as_fn_set_status $1
7210 exit $1
7211 } # as_fn_exit
7212
7213 # as_fn_unset VAR
7214 # ---------------
7215 # Portably unset VAR.
7216 as_fn_unset ()
7217 {
7218 { eval $1=; unset $1;}
7219 }
7220 as_unset=as_fn_unset
7221 # as_fn_append VAR VALUE
7222 # ----------------------
7223 # Append the text in VALUE to the end of the definition contained in VAR. Take
7224 # advantage of any shell optimizations that allow amortized linear growth over
7225 # repeated appends, instead of the typical quadratic growth present in naive
7226 # implementations.
7227 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7228 eval 'as_fn_append ()
7229 {
7230 eval $1+=\$2
7231 }'
7232 else
7233 as_fn_append ()
7234 {
7235 eval $1=\$$1\$2
7236 }
7237 fi # as_fn_append
7238
7239 # as_fn_arith ARG...
7240 # ------------------
7241 # Perform arithmetic evaluation on the ARGs, and store the result in the
7242 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7243 # must be portable across $(()) and expr.
7244 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7245 eval 'as_fn_arith ()
7246 {
7247 as_val=$(( $* ))
7248 }'
7249 else
7250 as_fn_arith ()
7251 {
7252 as_val=`expr "$@" || test $? -eq 1`
7253 }
7254 fi # as_fn_arith
7255
7256
7257 if expr a : '\(a\)' >/dev/null 2>&1 &&
7258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7259 as_expr=expr
7260 else
7261 as_expr=false
7262 fi
7263
7264 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7265 as_basename=basename
7266 else
7267 as_basename=false
7268 fi
7269
7270 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7271 as_dirname=dirname
7272 else
7273 as_dirname=false
7274 fi
7275
7276 as_me=`$as_basename -- "$0" ||
7277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7278 X"$0" : 'X\(//\)$' \| \
7279 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7280 $as_echo X/"$0" |
7281 sed '/^.*\/\([^/][^/]*\)\/*$/{
7282 s//\1/
7283 q
7284 }
7285 /^X\/\(\/\/\)$/{
7286 s//\1/
7287 q
7288 }
7289 /^X\/\(\/\).*/{
7290 s//\1/
7291 q
7292 }
7293 s/.*/./; q'`
7294
7295 # Avoid depending upon Character Ranges.
7296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7299 as_cr_digits='0123456789'
7300 as_cr_alnum=$as_cr_Letters$as_cr_digits
7301
7302 ECHO_C= ECHO_N= ECHO_T=
7303 case `echo -n x` in #(((((
7304 -n*)
7305 case `echo 'xy\c'` in
7306 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7307 xy) ECHO_C='\c';;
7308 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7309 ECHO_T=' ';;
7310 esac;;
7311 *)
7312 ECHO_N='-n';;
7313 esac
7314
7315 rm -f conf$$ conf$$.exe conf$$.file
7316 if test -d conf$$.dir; then
7317 rm -f conf$$.dir/conf$$.file
7318 else
7319 rm -f conf$$.dir
7320 mkdir conf$$.dir 2>/dev/null
7321 fi
7322 if (echo >conf$$.file) 2>/dev/null; then
7323 if ln -s conf$$.file conf$$ 2>/dev/null; then
7324 as_ln_s='ln -s'
7325 # ... but there are two gotchas:
7326 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7327 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7328 # In both cases, we have to default to `cp -pR'.
7329 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7330 as_ln_s='cp -pR'
7331 elif ln conf$$.file conf$$ 2>/dev/null; then
7332 as_ln_s=ln
7333 else
7334 as_ln_s='cp -pR'
7335 fi
7336 else
7337 as_ln_s='cp -pR'
7338 fi
7339 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7340 rmdir conf$$.dir 2>/dev/null
7341
7342
7343 # as_fn_mkdir_p
7344 # -------------
7345 # Create "$as_dir" as a directory, including parents if necessary.
7346 as_fn_mkdir_p ()
7347 {
7348
7349 case $as_dir in #(
7350 -*) as_dir=./$as_dir;;
7351 esac
7352 test -d "$as_dir" || eval $as_mkdir_p || {
7353 as_dirs=
7354 while :; do
7355 case $as_dir in #(
7356 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7357 *) as_qdir=$as_dir;;
7358 esac
7359 as_dirs="'$as_qdir' $as_dirs"
7360 as_dir=`$as_dirname -- "$as_dir" ||
7361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7362 X"$as_dir" : 'X\(//\)[^/]' \| \
7363 X"$as_dir" : 'X\(//\)$' \| \
7364 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7365 $as_echo X"$as_dir" |
7366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7367 s//\1/
7368 q
7369 }
7370 /^X\(\/\/\)[^/].*/{
7371 s//\1/
7372 q
7373 }
7374 /^X\(\/\/\)$/{
7375 s//\1/
7376 q
7377 }
7378 /^X\(\/\).*/{
7379 s//\1/
7380 q
7381 }
7382 s/.*/./; q'`
7383 test -d "$as_dir" && break
7384 done
7385 test -z "$as_dirs" || eval "mkdir $as_dirs"
7386 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7387
7388
7389 } # as_fn_mkdir_p
7390 if mkdir -p . 2>/dev/null; then
7391 as_mkdir_p='mkdir -p "$as_dir"'
7392 else
7393 test -d ./-p && rmdir ./-p
7394 as_mkdir_p=false
7395 fi
7396
7397
7398 # as_fn_executable_p FILE
7399 # -----------------------
7400 # Test if FILE is an executable regular file.
7401 as_fn_executable_p ()
7402 {
7403 test -f "$1" && test -x "$1"
7404 } # as_fn_executable_p
7405 as_test_x='test -x'
7406 as_executable_p=as_fn_executable_p
7407
7408 # Sed expression to map a string onto a valid CPP name.
7409 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7410
7411 # Sed expression to map a string onto a valid variable name.
7412 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7413
7414
7415 exec 6>&1
7416 ## ----------------------------------- ##
7417 ## Main body of $CONFIG_STATUS script. ##
7418 ## ----------------------------------- ##
7419 _ASEOF
7420 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7421
7422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7423 # Save the log message, to keep $0 and so on meaningful, and to
7424 # report actual input values of CONFIG_FILES etc. instead of their
7425 # values after options handling.
7426 ac_log="
7427 This file was extended by sim $as_me 0, which was
7428 generated by GNU Autoconf 2.69. Invocation command line was
7429
7430 CONFIG_FILES = $CONFIG_FILES
7431 CONFIG_HEADERS = $CONFIG_HEADERS
7432 CONFIG_LINKS = $CONFIG_LINKS
7433 CONFIG_COMMANDS = $CONFIG_COMMANDS
7434 $ $0 $@
7435
7436 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7437 "
7438
7439 _ACEOF
7440
7441 case $ac_config_files in *"
7442 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7443 esac
7444
7445 case $ac_config_headers in *"
7446 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7447 esac
7448
7449
7450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7451 # Files that config.status was made for.
7452 config_files="$ac_config_files"
7453 config_headers="$ac_config_headers"
7454 config_commands="$ac_config_commands"
7455
7456 _ACEOF
7457
7458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7459 ac_cs_usage="\
7460 \`$as_me' instantiates files and other configuration actions
7461 from templates according to the current configuration. Unless the files
7462 and actions are specified as TAGs, all are instantiated by default.
7463
7464 Usage: $0 [OPTION]... [TAG]...
7465
7466 -h, --help print this help, then exit
7467 -V, --version print version number and configuration settings, then exit
7468 --config print configuration, then exit
7469 -q, --quiet, --silent
7470 do not print progress messages
7471 -d, --debug don't remove temporary files
7472 --recheck update $as_me by reconfiguring in the same conditions
7473 --file=FILE[:TEMPLATE]
7474 instantiate the configuration file FILE
7475 --header=FILE[:TEMPLATE]
7476 instantiate the configuration header FILE
7477
7478 Configuration files:
7479 $config_files
7480
7481 Configuration headers:
7482 $config_headers
7483
7484 Configuration commands:
7485 $config_commands
7486
7487 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
7488 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
7489
7490 _ACEOF
7491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7492 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7493 ac_cs_version="\\
7494 sim config.status 0
7495 configured by $0, generated by GNU Autoconf 2.69,
7496 with options \\"\$ac_cs_config\\"
7497
7498 Copyright (C) 2012 Free Software Foundation, Inc.
7499 This config.status script is free software; the Free Software Foundation
7500 gives unlimited permission to copy, distribute and modify it."
7501
7502 ac_pwd='$ac_pwd'
7503 srcdir='$srcdir'
7504 INSTALL='$INSTALL'
7505 MKDIR_P='$MKDIR_P'
7506 AWK='$AWK'
7507 test -n "\$AWK" || AWK=awk
7508 _ACEOF
7509
7510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7511 # The default lists apply if the user does not specify any file.
7512 ac_need_defaults=:
7513 while test $# != 0
7514 do
7515 case $1 in
7516 --*=?*)
7517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7519 ac_shift=:
7520 ;;
7521 --*=)
7522 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7523 ac_optarg=
7524 ac_shift=:
7525 ;;
7526 *)
7527 ac_option=$1
7528 ac_optarg=$2
7529 ac_shift=shift
7530 ;;
7531 esac
7532
7533 case $ac_option in
7534 # Handling of the options.
7535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7536 ac_cs_recheck=: ;;
7537 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7538 $as_echo "$ac_cs_version"; exit ;;
7539 --config | --confi | --conf | --con | --co | --c )
7540 $as_echo "$ac_cs_config"; exit ;;
7541 --debug | --debu | --deb | --de | --d | -d )
7542 debug=: ;;
7543 --file | --fil | --fi | --f )
7544 $ac_shift
7545 case $ac_optarg in
7546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7547 '') as_fn_error $? "missing file argument" ;;
7548 esac
7549 as_fn_append CONFIG_FILES " '$ac_optarg'"
7550 ac_need_defaults=false;;
7551 --header | --heade | --head | --hea )
7552 $ac_shift
7553 case $ac_optarg in
7554 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7555 esac
7556 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7557 ac_need_defaults=false;;
7558 --he | --h)
7559 # Conflict between --help and --header
7560 as_fn_error $? "ambiguous option: \`$1'
7561 Try \`$0 --help' for more information.";;
7562 --help | --hel | -h )
7563 $as_echo "$ac_cs_usage"; exit ;;
7564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7566 ac_cs_silent=: ;;
7567
7568 # This is an error.
7569 -*) as_fn_error $? "unrecognized option: \`$1'
7570 Try \`$0 --help' for more information." ;;
7571
7572 *) as_fn_append ac_config_targets " $1"
7573 ac_need_defaults=false ;;
7574
7575 esac
7576 shift
7577 done
7578
7579 ac_configure_extra_args=
7580
7581 if $ac_cs_silent; then
7582 exec 6>/dev/null
7583 ac_configure_extra_args="$ac_configure_extra_args --silent"
7584 fi
7585
7586 _ACEOF
7587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7588 if \$ac_cs_recheck; then
7589 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7590 shift
7591 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7592 CONFIG_SHELL='$SHELL'
7593 export CONFIG_SHELL
7594 exec "\$@"
7595 fi
7596
7597 _ACEOF
7598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7599 exec 5>>config.log
7600 {
7601 echo
7602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7603 ## Running $as_me. ##
7604 _ASBOX
7605 $as_echo "$ac_log"
7606 } >&5
7607
7608 _ACEOF
7609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7610 #
7611 # INIT-COMMANDS
7612 #
7613 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7614
7615 _ACEOF
7616
7617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7618
7619 # Handling of arguments.
7620 for ac_config_target in $ac_config_targets
7621 do
7622 case $ac_config_target in
7623 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7624 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7625 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7626
7627 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7628 esac
7629 done
7630
7631
7632 # If the user did not use the arguments to specify the items to instantiate,
7633 # then the envvar interface is used. Set only those that are not.
7634 # We use the long form for the default assignment because of an extremely
7635 # bizarre bug on SunOS 4.1.3.
7636 if $ac_need_defaults; then
7637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7640 fi
7641
7642 # Have a temporary directory for convenience. Make it in the build tree
7643 # simply because there is no reason against having it here, and in addition,
7644 # creating and moving files from /tmp can sometimes cause problems.
7645 # Hook for its removal unless debugging.
7646 # Note that there is a small window in which the directory will not be cleaned:
7647 # after its creation but before its name has been assigned to `$tmp'.
7648 $debug ||
7649 {
7650 tmp= ac_tmp=
7651 trap 'exit_status=$?
7652 : "${ac_tmp:=$tmp}"
7653 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7654 ' 0
7655 trap 'as_fn_exit 1' 1 2 13 15
7656 }
7657 # Create a (secure) tmp directory for tmp files.
7658
7659 {
7660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7661 test -d "$tmp"
7662 } ||
7663 {
7664 tmp=./conf$$-$RANDOM
7665 (umask 077 && mkdir "$tmp")
7666 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7667 ac_tmp=$tmp
7668
7669 # Set up the scripts for CONFIG_FILES section.
7670 # No need to generate them if there are no CONFIG_FILES.
7671 # This happens for instance with `./config.status config.h'.
7672 if test -n "$CONFIG_FILES"; then
7673
7674
7675 ac_cr=`echo X | tr X '\015'`
7676 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7677 # But we know of no other shell where ac_cr would be empty at this
7678 # point, so we can use a bashism as a fallback.
7679 if test "x$ac_cr" = x; then
7680 eval ac_cr=\$\'\\r\'
7681 fi
7682 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7683 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7684 ac_cs_awk_cr='\\r'
7685 else
7686 ac_cs_awk_cr=$ac_cr
7687 fi
7688
7689 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7690 _ACEOF
7691
7692
7693 {
7694 echo "cat >conf$$subs.awk <<_ACEOF" &&
7695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7696 echo "_ACEOF"
7697 } >conf$$subs.sh ||
7698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7699 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7700 ac_delim='%!_!# '
7701 for ac_last_try in false false false false false :; do
7702 . ./conf$$subs.sh ||
7703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7704
7705 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7706 if test $ac_delim_n = $ac_delim_num; then
7707 break
7708 elif $ac_last_try; then
7709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7710 else
7711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7712 fi
7713 done
7714 rm -f conf$$subs.sh
7715
7716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7717 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7718 _ACEOF
7719 sed -n '
7720 h
7721 s/^/S["/; s/!.*/"]=/
7722 p
7723 g
7724 s/^[^!]*!//
7725 :repl
7726 t repl
7727 s/'"$ac_delim"'$//
7728 t delim
7729 :nl
7730 h
7731 s/\(.\{148\}\)..*/\1/
7732 t more1
7733 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7734 p
7735 n
7736 b repl
7737 :more1
7738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7739 p
7740 g
7741 s/.\{148\}//
7742 t nl
7743 :delim
7744 h
7745 s/\(.\{148\}\)..*/\1/
7746 t more2
7747 s/["\\]/\\&/g; s/^/"/; s/$/"/
7748 p
7749 b
7750 :more2
7751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7752 p
7753 g
7754 s/.\{148\}//
7755 t delim
7756 ' <conf$$subs.awk | sed '
7757 /^[^""]/{
7758 N
7759 s/\n//
7760 }
7761 ' >>$CONFIG_STATUS || ac_write_fail=1
7762 rm -f conf$$subs.awk
7763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7764 _ACAWK
7765 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7766 for (key in S) S_is_set[key] = 1
7767 FS = "\a"
7768
7769 }
7770 {
7771 line = $ 0
7772 nfields = split(line, field, "@")
7773 substed = 0
7774 len = length(field[1])
7775 for (i = 2; i < nfields; i++) {
7776 key = field[i]
7777 keylen = length(key)
7778 if (S_is_set[key]) {
7779 value = S[key]
7780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7781 len += length(value) + length(field[++i])
7782 substed = 1
7783 } else
7784 len += 1 + keylen
7785 }
7786
7787 print line
7788 }
7789
7790 _ACAWK
7791 _ACEOF
7792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7793 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7795 else
7796 cat
7797 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7798 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7799 _ACEOF
7800
7801 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7802 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7803 # trailing colons and then remove the whole line if VPATH becomes empty
7804 # (actually we leave an empty line to preserve line numbers).
7805 if test "x$srcdir" = x.; then
7806 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7807 h
7808 s///
7809 s/^/:/
7810 s/[ ]*$/:/
7811 s/:\$(srcdir):/:/g
7812 s/:\${srcdir}:/:/g
7813 s/:@srcdir@:/:/g
7814 s/^:*//
7815 s/:*$//
7816 x
7817 s/\(=[ ]*\).*/\1/
7818 G
7819 s/\n//
7820 s/^[^=]*=[ ]*$//
7821 }'
7822 fi
7823
7824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7825 fi # test -n "$CONFIG_FILES"
7826
7827 # Set up the scripts for CONFIG_HEADERS section.
7828 # No need to generate them if there are no CONFIG_HEADERS.
7829 # This happens for instance with `./config.status Makefile'.
7830 if test -n "$CONFIG_HEADERS"; then
7831 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7832 BEGIN {
7833 _ACEOF
7834
7835 # Transform confdefs.h into an awk script `defines.awk', embedded as
7836 # here-document in config.status, that substitutes the proper values into
7837 # config.h.in to produce config.h.
7838
7839 # Create a delimiter string that does not exist in confdefs.h, to ease
7840 # handling of long lines.
7841 ac_delim='%!_!# '
7842 for ac_last_try in false false :; do
7843 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7844 if test -z "$ac_tt"; then
7845 break
7846 elif $ac_last_try; then
7847 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7848 else
7849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7850 fi
7851 done
7852
7853 # For the awk script, D is an array of macro values keyed by name,
7854 # likewise P contains macro parameters if any. Preserve backslash
7855 # newline sequences.
7856
7857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7858 sed -n '
7859 s/.\{148\}/&'"$ac_delim"'/g
7860 t rset
7861 :rset
7862 s/^[ ]*#[ ]*define[ ][ ]*/ /
7863 t def
7864 d
7865 :def
7866 s/\\$//
7867 t bsnl
7868 s/["\\]/\\&/g
7869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7870 D["\1"]=" \3"/p
7871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7872 d
7873 :bsnl
7874 s/["\\]/\\&/g
7875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7876 D["\1"]=" \3\\\\\\n"\\/p
7877 t cont
7878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7879 t cont
7880 d
7881 :cont
7882 n
7883 s/.\{148\}/&'"$ac_delim"'/g
7884 t clear
7885 :clear
7886 s/\\$//
7887 t bsnlc
7888 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7889 d
7890 :bsnlc
7891 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7892 b cont
7893 ' <confdefs.h | sed '
7894 s/'"$ac_delim"'/"\\\
7895 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7896
7897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7898 for (key in D) D_is_set[key] = 1
7899 FS = "\a"
7900 }
7901 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7902 line = \$ 0
7903 split(line, arg, " ")
7904 if (arg[1] == "#") {
7905 defundef = arg[2]
7906 mac1 = arg[3]
7907 } else {
7908 defundef = substr(arg[1], 2)
7909 mac1 = arg[2]
7910 }
7911 split(mac1, mac2, "(") #)
7912 macro = mac2[1]
7913 prefix = substr(line, 1, index(line, defundef) - 1)
7914 if (D_is_set[macro]) {
7915 # Preserve the white space surrounding the "#".
7916 print prefix "define", macro P[macro] D[macro]
7917 next
7918 } else {
7919 # Replace #undef with comments. This is necessary, for example,
7920 # in the case of _POSIX_SOURCE, which is predefined and required
7921 # on some systems where configure will not decide to define it.
7922 if (defundef == "undef") {
7923 print "/*", prefix defundef, macro, "*/"
7924 next
7925 }
7926 }
7927 }
7928 { print }
7929 _ACAWK
7930 _ACEOF
7931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7932 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7933 fi # test -n "$CONFIG_HEADERS"
7934
7935
7936 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7937 shift
7938 for ac_tag
7939 do
7940 case $ac_tag in
7941 :[FHLC]) ac_mode=$ac_tag; continue;;
7942 esac
7943 case $ac_mode$ac_tag in
7944 :[FHL]*:*);;
7945 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7946 :[FH]-) ac_tag=-:-;;
7947 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7948 esac
7949 ac_save_IFS=$IFS
7950 IFS=:
7951 set x $ac_tag
7952 IFS=$ac_save_IFS
7953 shift
7954 ac_file=$1
7955 shift
7956
7957 case $ac_mode in
7958 :L) ac_source=$1;;
7959 :[FH])
7960 ac_file_inputs=
7961 for ac_f
7962 do
7963 case $ac_f in
7964 -) ac_f="$ac_tmp/stdin";;
7965 *) # Look for the file first in the build tree, then in the source tree
7966 # (if the path is not absolute). The absolute path cannot be DOS-style,
7967 # because $ac_f cannot contain `:'.
7968 test -f "$ac_f" ||
7969 case $ac_f in
7970 [\\/$]*) false;;
7971 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7972 esac ||
7973 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7974 esac
7975 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7976 as_fn_append ac_file_inputs " '$ac_f'"
7977 done
7978
7979 # Let's still pretend it is `configure' which instantiates (i.e., don't
7980 # use $as_me), people would be surprised to read:
7981 # /* config.h. Generated by config.status. */
7982 configure_input='Generated from '`
7983 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7984 `' by configure.'
7985 if test x"$ac_file" != x-; then
7986 configure_input="$ac_file. $configure_input"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7988 $as_echo "$as_me: creating $ac_file" >&6;}
7989 fi
7990 # Neutralize special characters interpreted by sed in replacement strings.
7991 case $configure_input in #(
7992 *\&* | *\|* | *\\* )
7993 ac_sed_conf_input=`$as_echo "$configure_input" |
7994 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7995 *) ac_sed_conf_input=$configure_input;;
7996 esac
7997
7998 case $ac_tag in
7999 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8001 esac
8002 ;;
8003 esac
8004
8005 ac_dir=`$as_dirname -- "$ac_file" ||
8006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8007 X"$ac_file" : 'X\(//\)[^/]' \| \
8008 X"$ac_file" : 'X\(//\)$' \| \
8009 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8010 $as_echo X"$ac_file" |
8011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8012 s//\1/
8013 q
8014 }
8015 /^X\(\/\/\)[^/].*/{
8016 s//\1/
8017 q
8018 }
8019 /^X\(\/\/\)$/{
8020 s//\1/
8021 q
8022 }
8023 /^X\(\/\).*/{
8024 s//\1/
8025 q
8026 }
8027 s/.*/./; q'`
8028 as_dir="$ac_dir"; as_fn_mkdir_p
8029 ac_builddir=.
8030
8031 case "$ac_dir" in
8032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8033 *)
8034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8035 # A ".." for each directory in $ac_dir_suffix.
8036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8037 case $ac_top_builddir_sub in
8038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8040 esac ;;
8041 esac
8042 ac_abs_top_builddir=$ac_pwd
8043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8044 # for backward compatibility:
8045 ac_top_builddir=$ac_top_build_prefix
8046
8047 case $srcdir in
8048 .) # We are building in place.
8049 ac_srcdir=.
8050 ac_top_srcdir=$ac_top_builddir_sub
8051 ac_abs_top_srcdir=$ac_pwd ;;
8052 [\\/]* | ?:[\\/]* ) # Absolute name.
8053 ac_srcdir=$srcdir$ac_dir_suffix;
8054 ac_top_srcdir=$srcdir
8055 ac_abs_top_srcdir=$srcdir ;;
8056 *) # Relative name.
8057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8058 ac_top_srcdir=$ac_top_build_prefix$srcdir
8059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8060 esac
8061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8062
8063
8064 case $ac_mode in
8065 :F)
8066 #
8067 # CONFIG_FILE
8068 #
8069
8070 case $INSTALL in
8071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8072 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8073 esac
8074 ac_MKDIR_P=$MKDIR_P
8075 case $MKDIR_P in
8076 [\\/$]* | ?:[\\/]* ) ;;
8077 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8078 esac
8079 _ACEOF
8080
8081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8082 # If the template does not know about datarootdir, expand it.
8083 # FIXME: This hack should be removed a few years after 2.60.
8084 ac_datarootdir_hack=; ac_datarootdir_seen=
8085 ac_sed_dataroot='
8086 /datarootdir/ {
8087 p
8088 q
8089 }
8090 /@datadir@/p
8091 /@docdir@/p
8092 /@infodir@/p
8093 /@localedir@/p
8094 /@mandir@/p'
8095 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8096 *datarootdir*) ac_datarootdir_seen=yes;;
8097 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8099 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8100 _ACEOF
8101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8102 ac_datarootdir_hack='
8103 s&@datadir@&$datadir&g
8104 s&@docdir@&$docdir&g
8105 s&@infodir@&$infodir&g
8106 s&@localedir@&$localedir&g
8107 s&@mandir@&$mandir&g
8108 s&\\\${datarootdir}&$datarootdir&g' ;;
8109 esac
8110 _ACEOF
8111
8112 # Neutralize VPATH when `$srcdir' = `.'.
8113 # Shell code in configure.ac might set extrasub.
8114 # FIXME: do we really want to maintain this feature?
8115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8116 ac_sed_extra="$ac_vpsub
8117 $extrasub
8118 _ACEOF
8119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8120 :t
8121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8122 s|@configure_input@|$ac_sed_conf_input|;t t
8123 s&@top_builddir@&$ac_top_builddir_sub&;t t
8124 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8125 s&@srcdir@&$ac_srcdir&;t t
8126 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8127 s&@top_srcdir@&$ac_top_srcdir&;t t
8128 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8129 s&@builddir@&$ac_builddir&;t t
8130 s&@abs_builddir@&$ac_abs_builddir&;t t
8131 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8132 s&@INSTALL@&$ac_INSTALL&;t t
8133 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8134 $ac_datarootdir_hack
8135 "
8136 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8137 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8138
8139 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8140 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8141 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8142 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8144 which seems to be undefined. Please make sure it is defined" >&5
8145 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8146 which seems to be undefined. Please make sure it is defined" >&2;}
8147
8148 rm -f "$ac_tmp/stdin"
8149 case $ac_file in
8150 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8151 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8152 esac \
8153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8154 ;;
8155 :H)
8156 #
8157 # CONFIG_HEADER
8158 #
8159 if test x"$ac_file" != x-; then
8160 {
8161 $as_echo "/* $configure_input */" \
8162 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8163 } >"$ac_tmp/config.h" \
8164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8165 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8167 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8168 else
8169 rm -f "$ac_file"
8170 mv "$ac_tmp/config.h" "$ac_file" \
8171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8172 fi
8173 else
8174 $as_echo "/* $configure_input */" \
8175 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8176 || as_fn_error $? "could not create -" "$LINENO" 5
8177 fi
8178 # Compute "$ac_file"'s index in $config_headers.
8179 _am_arg="$ac_file"
8180 _am_stamp_count=1
8181 for _am_header in $config_headers :; do
8182 case $_am_header in
8183 $_am_arg | $_am_arg:* )
8184 break ;;
8185 * )
8186 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8187 esac
8188 done
8189 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8190 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8191 X"$_am_arg" : 'X\(//\)[^/]' \| \
8192 X"$_am_arg" : 'X\(//\)$' \| \
8193 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8194 $as_echo X"$_am_arg" |
8195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8196 s//\1/
8197 q
8198 }
8199 /^X\(\/\/\)[^/].*/{
8200 s//\1/
8201 q
8202 }
8203 /^X\(\/\/\)$/{
8204 s//\1/
8205 q
8206 }
8207 /^X\(\/\).*/{
8208 s//\1/
8209 q
8210 }
8211 s/.*/./; q'`/stamp-h$_am_stamp_count
8212 ;;
8213
8214 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8215 $as_echo "$as_me: executing $ac_file commands" >&6;}
8216 ;;
8217 esac
8218
8219
8220 case $ac_file$ac_mode in
8221 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8222 # Older Autoconf quotes --file arguments for eval, but not when files
8223 # are listed without --file. Let's play safe and only enable the eval
8224 # if we detect the quoting.
8225 case $CONFIG_FILES in
8226 *\'*) eval set x "$CONFIG_FILES" ;;
8227 *) set x $CONFIG_FILES ;;
8228 esac
8229 shift
8230 for mf
8231 do
8232 # Strip MF so we end up with the name of the file.
8233 mf=`echo "$mf" | sed -e 's/:.*$//'`
8234 # Check whether this is an Automake generated Makefile or not.
8235 # We used to match only the files named 'Makefile.in', but
8236 # some people rename them; so instead we look at the file content.
8237 # Grep'ing the first line is not enough: some people post-process
8238 # each Makefile.in and add a new line on top of each file to say so.
8239 # Grep'ing the whole file is not good either: AIX grep has a line
8240 # limit of 2048, but all sed's we know have understand at least 4000.
8241 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8242 dirpart=`$as_dirname -- "$mf" ||
8243 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8244 X"$mf" : 'X\(//\)[^/]' \| \
8245 X"$mf" : 'X\(//\)$' \| \
8246 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8247 $as_echo X"$mf" |
8248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8249 s//\1/
8250 q
8251 }
8252 /^X\(\/\/\)[^/].*/{
8253 s//\1/
8254 q
8255 }
8256 /^X\(\/\/\)$/{
8257 s//\1/
8258 q
8259 }
8260 /^X\(\/\).*/{
8261 s//\1/
8262 q
8263 }
8264 s/.*/./; q'`
8265 else
8266 continue
8267 fi
8268 # Extract the definition of DEPDIR, am__include, and am__quote
8269 # from the Makefile without running 'make'.
8270 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8271 test -z "$DEPDIR" && continue
8272 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8273 test -z "$am__include" && continue
8274 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8275 # Find all dependency output files, they are included files with
8276 # $(DEPDIR) in their names. We invoke sed twice because it is the
8277 # simplest approach to changing $(DEPDIR) to its actual value in the
8278 # expansion.
8279 for file in `sed -n "
8280 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8281 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8282 # Make sure the directory exists.
8283 test -f "$dirpart/$file" && continue
8284 fdir=`$as_dirname -- "$file" ||
8285 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8286 X"$file" : 'X\(//\)[^/]' \| \
8287 X"$file" : 'X\(//\)$' \| \
8288 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8289 $as_echo X"$file" |
8290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8291 s//\1/
8292 q
8293 }
8294 /^X\(\/\/\)[^/].*/{
8295 s//\1/
8296 q
8297 }
8298 /^X\(\/\/\)$/{
8299 s//\1/
8300 q
8301 }
8302 /^X\(\/\).*/{
8303 s//\1/
8304 q
8305 }
8306 s/.*/./; q'`
8307 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8308 # echo "creating $dirpart/$file"
8309 echo '# dummy' > "$dirpart/$file"
8310 done
8311 done
8312 }
8313 ;;
8314
8315 esac
8316 done # for ac_tag
8317
8318
8319 as_fn_exit 0
8320 _ACEOF
8321 ac_clean_files=$ac_clean_files_save
8322
8323 test $ac_write_fail = 0 ||
8324 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8325
8326
8327 # configure is writing to config.log, and then calls config.status.
8328 # config.status does its own redirection, appending to config.log.
8329 # Unfortunately, on DOS this fails, as config.log is still kept open
8330 # by configure, so config.status won't be able to write to it; its
8331 # output is simply discarded. So we exec the FD to /dev/null,
8332 # effectively closing config.log, so it can be properly (re)opened and
8333 # appended to by config.status. When coming back to configure, we
8334 # need to make the FD available again.
8335 if test "$no_create" != yes; then
8336 ac_cs_success=:
8337 ac_config_status_args=
8338 test "$silent" = yes &&
8339 ac_config_status_args="$ac_config_status_args --quiet"
8340 exec 5>/dev/null
8341 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8342 exec 5>>config.log
8343 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8344 # would make configure fail if this is the last instruction.
8345 $ac_cs_success || as_fn_exit 1
8346 fi
8347
8348 #
8349 # CONFIG_SUBDIRS section.
8350 #
8351 if test "$no_recursion" != yes; then
8352
8353 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8354 # so they do not pile up.
8355 ac_sub_configure_args=
8356 ac_prev=
8357 eval "set x $ac_configure_args"
8358 shift
8359 for ac_arg
8360 do
8361 if test -n "$ac_prev"; then
8362 ac_prev=
8363 continue
8364 fi
8365 case $ac_arg in
8366 -cache-file | --cache-file | --cache-fil | --cache-fi \
8367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8368 ac_prev=cache_file ;;
8369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8371 | --c=*)
8372 ;;
8373 --config-cache | -C)
8374 ;;
8375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8376 ac_prev=srcdir ;;
8377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8378 ;;
8379 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8380 ac_prev=prefix ;;
8381 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8382 ;;
8383 --disable-option-checking)
8384 ;;
8385 *)
8386 case $ac_arg in
8387 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8388 esac
8389 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8390 esac
8391 done
8392
8393 # Always prepend --prefix to ensure using the same prefix
8394 # in subdir configurations.
8395 ac_arg="--prefix=$prefix"
8396 case $ac_arg in
8397 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8398 esac
8399 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8400
8401 # Pass --silent
8402 if test "$silent" = yes; then
8403 ac_sub_configure_args="--silent $ac_sub_configure_args"
8404 fi
8405
8406 # Always prepend --disable-option-checking to silence warnings, since
8407 # different subdirs can have different --enable and --with options.
8408 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8409
8410 ac_popdir=`pwd`
8411 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8412
8413 # Do not complain, so a configure script can configure whichever
8414 # parts of a large source tree are present.
8415 test -d "$srcdir/$ac_dir" || continue
8416
8417 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8419 $as_echo "$ac_msg" >&6
8420 as_dir="$ac_dir"; as_fn_mkdir_p
8421 ac_builddir=.
8422
8423 case "$ac_dir" in
8424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8425 *)
8426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8427 # A ".." for each directory in $ac_dir_suffix.
8428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8429 case $ac_top_builddir_sub in
8430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8432 esac ;;
8433 esac
8434 ac_abs_top_builddir=$ac_pwd
8435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8436 # for backward compatibility:
8437 ac_top_builddir=$ac_top_build_prefix
8438
8439 case $srcdir in
8440 .) # We are building in place.
8441 ac_srcdir=.
8442 ac_top_srcdir=$ac_top_builddir_sub
8443 ac_abs_top_srcdir=$ac_pwd ;;
8444 [\\/]* | ?:[\\/]* ) # Absolute name.
8445 ac_srcdir=$srcdir$ac_dir_suffix;
8446 ac_top_srcdir=$srcdir
8447 ac_abs_top_srcdir=$srcdir ;;
8448 *) # Relative name.
8449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8450 ac_top_srcdir=$ac_top_build_prefix$srcdir
8451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8452 esac
8453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8454
8455
8456 cd "$ac_dir"
8457
8458 # Check for guested configure; otherwise get Cygnus style configure.
8459 if test -f "$ac_srcdir/configure.gnu"; then
8460 ac_sub_configure=$ac_srcdir/configure.gnu
8461 elif test -f "$ac_srcdir/configure"; then
8462 ac_sub_configure=$ac_srcdir/configure
8463 elif test -f "$ac_srcdir/configure.in"; then
8464 # This should be Cygnus configure.
8465 ac_sub_configure=$ac_aux_dir/configure
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8468 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8469 ac_sub_configure=
8470 fi
8471
8472 # The recursion is here.
8473 if test -n "$ac_sub_configure"; then
8474 # Make the cache file name correct relative to the subdirectory.
8475 case $cache_file in
8476 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8477 *) # Relative name.
8478 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8479 esac
8480
8481 { $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
8482 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8483 # The eval makes quoting arguments work.
8484 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8485 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8486 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8487 fi
8488
8489 cd "$ac_popdir"
8490 done
8491 fi
8492 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8494 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8495 fi
8496
This page took 0.226711 seconds and 4 git commands to generate.