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