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