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