]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m32r/configure
174e925c10b52270fa19b60959e61075d70aa42b
[thirdparty/binutils-gdb.git] / sim / m32r / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 sim_reserved_bits
625 sim_float
626 sim_bitsize
627 cgen_breaks
628 sim_extra_cflags
629 traps_obj
630 cgen
631 cgendir
632 CGEN_MAINT
633 MAINT
634 MAINTAINER_MODE_FALSE
635 MAINTAINER_MODE_TRUE
636 CATOBJEXT
637 GENCAT
638 INSTOBJEXT
639 DATADIRNAME
640 CATALOGS
641 POSUB
642 GMSGFMT
643 XGETTEXT
644 INCINTL
645 LIBINTL_DEP
646 LIBINTL
647 USE_NLS
648 CCDEPMODE
649 DEPDIR
650 am__leading_dot
651 C_DIALECT
652 RANLIB
653 AR
654 LDFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 RANLIB_FOR_BUILD
657 CC_FOR_BUILD
658 AR_FOR_BUILD
659 INSTALL_DATA
660 INSTALL_SCRIPT
661 INSTALL_PROGRAM
662 EGREP
663 GREP
664 CPP
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
671 CC
672 target_os
673 target_vendor
674 target_cpu
675 target
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 target_alias
685 host_alias
686 build_alias
687 LIBS
688 ECHO_T
689 ECHO_N
690 ECHO_C
691 DEFS
692 mandir
693 localedir
694 libdir
695 psdir
696 pdfdir
697 dvidir
698 htmldir
699 infodir
700 docdir
701 oldincludedir
702 includedir
703 localstatedir
704 sharedstatedir
705 sysconfdir
706 datadir
707 datarootdir
708 libexecdir
709 sbindir
710 bindir
711 program_transform_name
712 prefix
713 exec_prefix
714 PACKAGE_URL
715 PACKAGE_BUGREPORT
716 PACKAGE_STRING
717 PACKAGE_VERSION
718 PACKAGE_TARNAME
719 PACKAGE_NAME
720 PATH_SEPARATOR
721 SHELL
722 sim_scache
723 sim_inline
724 sim_hw
725 sim_hw_objs
726 sim_hw_cflags
727 sim_default_model'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_maintainer_mode
732 enable_sim_inline
733 enable_sim_scache
734 enable_sim_default_model
735 enable_cgen_maint
736 enable_sim_hardware
737 '
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP'
747
748
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 ac_unrecognized_opts=
753 ac_unrecognized_sep=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
770
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
796
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
806 fi
807
808 case $ac_option in
809 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *=) ac_optarg= ;;
811 *) ac_optarg=yes ;;
812 esac
813
814 # Accept the important Cygnus configure options, so we can diagnose typos.
815
816 case $ac_dashdash$ac_option in
817 --)
818 ac_dashdash=yes ;;
819
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
824
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
829
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
836
837 --config-cache | -C)
838 cache_file=config.cache ;;
839
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
844
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
851
852 -disable-* | --disable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error $? "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
860 *"
861 "enable_$ac_useropt"
862 "*) ;;
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
865 esac
866 eval enable_$ac_useropt=no ;;
867
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
872
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
877
878 -enable-* | --enable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=\$ac_optarg ;;
893
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev=exec_prefix ;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix=$ac_optarg ;;
902
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
905 with_gas=yes ;;
906
907 -help | --help | --hel | --he | -h)
908 ac_init_help=long ;;
909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910 ac_init_help=recursive ;;
911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912 ac_init_help=short ;;
913
914 -host | --host | --hos | --ho)
915 ac_prev=host_alias ;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias=$ac_optarg ;;
918
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 ac_prev=htmldir ;;
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 | --ht=*)
923 htmldir=$ac_optarg ;;
924
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev=includedir ;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir=$ac_optarg ;;
931
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 ac_prev=infodir ;;
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir=$ac_optarg ;;
936
937 -libdir | --libdir | --libdi | --libd)
938 ac_prev=libdir ;;
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
940 libdir=$ac_optarg ;;
941
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev=libexecdir ;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir=$ac_optarg ;;
948
949 -localedir | --localedir | --localedi | --localed | --locale)
950 ac_prev=localedir ;;
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir=$ac_optarg ;;
953
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev=localstatedir ;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir=$ac_optarg ;;
960
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 ac_prev=mandir ;;
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 mandir=$ac_optarg ;;
965
966 -nfp | --nfp | --nf)
967 # Obsolete; use --without-fp.
968 with_fp=no ;;
969
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
972 no_create=yes ;;
973
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976 no_recursion=yes ;;
977
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev=oldincludedir ;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir=$ac_optarg ;;
986
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 ac_prev=prefix ;;
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990 prefix=$ac_optarg ;;
991
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev=program_prefix ;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix=$ac_optarg ;;
998
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev=program_suffix ;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix=$ac_optarg ;;
1005
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev=program_transform_name ;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name=$ac_optarg ;;
1022
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 ac_prev=pdfdir ;;
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir=$ac_optarg ;;
1027
1028 -psdir | --psdir | --psdi | --psd | --ps)
1029 ac_prev=psdir ;;
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031 psdir=$ac_optarg ;;
1032
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 silent=yes ;;
1036
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1042
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1053
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1058
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1063
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1070
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1075
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1078
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1081
1082 -with-* | --with-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error $? "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091 "with_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
1097
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1113
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1117
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1124
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1131
1132 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information"
1134 ;;
1135
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142 esac
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1145
1146 *)
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152 ;;
1153
1154 esac
1155 done
1156
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error $? "missing argument to $ac_option"
1160 fi
1161
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1168 fi
1169
1170 # Check all directory arguments for consistency.
1171 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1175 do
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
1184 case $ac_val in
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 esac
1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189 done
1190
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1197
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 elif test "x$build_alias" != "x$host_alias"; then
1203 cross_compiling=yes
1204 fi
1205 fi
1206
1207 ac_tool_prefix=
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209
1210 test "$silent" = yes && exec 6>/dev/null
1211
1212
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 as_fn_error $? "working directory cannot be determined"
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 as_fn_error $? "pwd does not report name of working directory"
1219
1220
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$as_myself" : 'X\(//\)[^/]' \| \
1228 X"$as_myself" : 'X\(//\)$' \| \
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 $as_echo X"$as_myself" |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\/\)[^/].*/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\/\)$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\).*/{
1244 s//\1/
1245 q
1246 }
1247 s/.*/./; q'`
1248 srcdir=$ac_confdir
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 srcdir=..
1251 fi
1252 else
1253 ac_srcdir_defaulted=no
1254 fi
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1258 fi
1259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260 ac_abs_confdir=`(
1261 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262 pwd)`
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 srcdir=.
1266 fi
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1270 case $srcdir in
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 esac
1273 for ac_var in $ac_precious_vars; do
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_env_${ac_var}_value=\$${ac_var}
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 done
1279
1280 #
1281 # Report the --help message.
1282 #
1283 if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1286 cat <<_ACEOF
1287 \`configure' configures this package to adapt to many kinds of systems.
1288
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1290
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE. See below for descriptions of some of the useful variables.
1293
1294 Defaults for the options are specified in brackets.
1295
1296 Configuration:
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking ...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306
1307 Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 [PREFIX]
1312
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1317
1318 For better control, use the options below.
1319
1320 Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --libdir=DIR object code libraries [EPREFIX/lib]
1328 --includedir=DIR C header files [PREFIX/include]
1329 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1330 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1331 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1332 --infodir=DIR info documentation [DATAROOTDIR/info]
1333 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1334 --mandir=DIR man documentation [DATAROOTDIR/man]
1335 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1336 --htmldir=DIR html documentation [DOCDIR]
1337 --dvidir=DIR dvi documentation [DOCDIR]
1338 --pdfdir=DIR pdf documentation [DOCDIR]
1339 --psdir=DIR ps documentation [DOCDIR]
1340 _ACEOF
1341
1342 cat <<\_ACEOF
1343
1344 Program names:
1345 --program-prefix=PREFIX prepend PREFIX to installed program names
1346 --program-suffix=SUFFIX append SUFFIX to installed program names
1347 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1348
1349 System types:
1350 --build=BUILD configure for building on BUILD [guessed]
1351 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1352 --target=TARGET configure for building compilers for TARGET [HOST]
1353 _ACEOF
1354 fi
1355
1356 if test -n "$ac_init_help"; then
1357
1358 cat <<\_ACEOF
1359
1360 Optional Features:
1361 --disable-option-checking ignore unrecognized --enable/--with options
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --enable-maintainer-mode
1365 enable make rules and dependencies not useful (and
1366 sometimes confusing) to the casual installer
1367 --enable-sim-inline=inlines
1368 Specify which functions should be inlined
1369 --enable-sim-scache=size
1370 Specify simulator execution cache size
1371 --enable-sim-default-model=model
1372 Specify default model to simulate
1373 --enable-cgen-maint=DIR build cgen generated files
1374 --enable-sim-hardware=LIST
1375 Specify the hardware to be included in the build.
1376
1377 Some influential environment variables:
1378 CC C compiler command
1379 CFLAGS C compiler flags
1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 nonstandard directory <lib dir>
1382 LIBS libraries to pass to the linker, e.g. -l<library>
1383 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1384 you have headers in a nonstandard directory <include dir>
1385 CPP C preprocessor
1386
1387 Use these variables to override the choices made by `configure' or to help
1388 it to find libraries and programs with nonstandard names/locations.
1389
1390 Report bugs to the package provider.
1391 _ACEOF
1392 ac_status=$?
1393 fi
1394
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" ||
1399 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1400 continue
1401 ac_builddir=.
1402
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *)
1406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1418
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1448 fi
1449
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 configure
1454 generated by GNU Autoconf 2.69
1455
1456 Copyright (C) 2012 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1459 _ACEOF
1460 exit
1461 fi
1462
1463 ## ------------------------ ##
1464 ## Autoconf initialization. ##
1465 ## ------------------------ ##
1466
1467 # ac_fn_c_try_compile LINENO
1468 # --------------------------
1469 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1470 ac_fn_c_try_compile ()
1471 {
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 rm -f conftest.$ac_objext
1474 if { { ac_try="$ac_compile"
1475 case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478 esac
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_compile") 2>conftest.err
1482 ac_status=$?
1483 if test -s conftest.err; then
1484 grep -v '^ *+' conftest.err >conftest.er1
1485 cat conftest.er1 >&5
1486 mv -f conftest.er1 conftest.err
1487 fi
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } && {
1490 test -z "$ac_c_werror_flag" ||
1491 test ! -s conftest.err
1492 } && test -s conftest.$ac_objext; then :
1493 ac_retval=0
1494 else
1495 $as_echo "$as_me: failed program was:" >&5
1496 sed 's/^/| /' conftest.$ac_ext >&5
1497
1498 ac_retval=1
1499 fi
1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501 as_fn_set_status $ac_retval
1502
1503 } # ac_fn_c_try_compile
1504
1505 # ac_fn_c_try_cpp LINENO
1506 # ----------------------
1507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_cpp ()
1509 {
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 if { { ac_try="$ac_cpp conftest.$ac_ext"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1524 fi
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } > conftest.i && {
1527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 }; then :
1530 ac_retval=0
1531 else
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1534
1535 ac_retval=1
1536 fi
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 as_fn_set_status $ac_retval
1539
1540 } # ac_fn_c_try_cpp
1541
1542 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1543 # -------------------------------------------------------
1544 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1545 # the include files in INCLUDES and setting the cache variable VAR
1546 # accordingly.
1547 ac_fn_c_check_header_mongrel ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 if eval \${$3+:} false; then :
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1552 $as_echo_n "checking for $2... " >&6; }
1553 if eval \${$3+:} false; then :
1554 $as_echo_n "(cached) " >&6
1555 fi
1556 eval ac_res=\$$3
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1558 $as_echo "$ac_res" >&6; }
1559 else
1560 # Is the header compilable?
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1562 $as_echo_n "checking $2 usability... " >&6; }
1563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1564 /* end confdefs.h. */
1565 $4
1566 #include <$2>
1567 _ACEOF
1568 if ac_fn_c_try_compile "$LINENO"; then :
1569 ac_header_compiler=yes
1570 else
1571 ac_header_compiler=no
1572 fi
1573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1575 $as_echo "$ac_header_compiler" >&6; }
1576
1577 # Is the header present?
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1579 $as_echo_n "checking $2 presence... " >&6; }
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h. */
1582 #include <$2>
1583 _ACEOF
1584 if ac_fn_c_try_cpp "$LINENO"; then :
1585 ac_header_preproc=yes
1586 else
1587 ac_header_preproc=no
1588 fi
1589 rm -f conftest.err conftest.i conftest.$ac_ext
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1591 $as_echo "$ac_header_preproc" >&6; }
1592
1593 # So? What about this header?
1594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1595 yes:no: )
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1597 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1599 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1600 ;;
1601 no:yes:* )
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1603 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1605 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1607 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1609 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1611 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1612 ;;
1613 esac
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1618 else
1619 eval "$3=\$ac_header_compiler"
1620 fi
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627 } # ac_fn_c_check_header_mongrel
1628
1629 # ac_fn_c_try_run LINENO
1630 # ----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632 # that executables *can* be run.
1633 ac_fn_c_try_run ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>&5
1644 ac_status=$?
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647 { { case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_try") 2>&5
1654 ac_status=$?
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; }; }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: program exited with status $ac_status" >&5
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=$ac_status
1664 fi
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_run
1670
1671 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists and can be compiled using the include files in
1674 # INCLUDES, setting the cache variable VAR accordingly.
1675 ac_fn_c_check_header_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if eval \${$3+:} false; then :
1681 $as_echo_n "(cached) " >&6
1682 else
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 $4
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689 eval "$3=yes"
1690 else
1691 eval "$3=no"
1692 fi
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 fi
1695 eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699
1700 } # ac_fn_c_check_header_compile
1701 cat >config.log <<_ACEOF
1702 This file contains any messages produced by compilers while
1703 running configure, to aid debugging if configure makes a mistake.
1704
1705 It was created by $as_me, which was
1706 generated by GNU Autoconf 2.69. Invocation command line was
1707
1708 $ $0 $@
1709
1710 _ACEOF
1711 exec 5>>config.log
1712 {
1713 cat <<_ASUNAME
1714 ## --------- ##
1715 ## Platform. ##
1716 ## --------- ##
1717
1718 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1719 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1720 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1721 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1722 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1723
1724 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1725 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1726
1727 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1728 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1729 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1730 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1731 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1732 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1733 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1734
1735 _ASUNAME
1736
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 $as_echo "PATH: $as_dir"
1743 done
1744 IFS=$as_save_IFS
1745
1746 } >&5
1747
1748 cat >&5 <<_ACEOF
1749
1750
1751 ## ----------- ##
1752 ## Core tests. ##
1753 ## ----------- ##
1754
1755 _ACEOF
1756
1757
1758 # Keep a trace of the command line.
1759 # Strip out --no-create and --no-recursion so they do not pile up.
1760 # Strip out --silent because we don't want to record it for future runs.
1761 # Also quote any args containing shell meta-characters.
1762 # Make two passes to allow for proper duplicate-argument suppression.
1763 ac_configure_args=
1764 ac_configure_args0=
1765 ac_configure_args1=
1766 ac_must_keep_next=false
1767 for ac_pass in 1 2
1768 do
1769 for ac_arg
1770 do
1771 case $ac_arg in
1772 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1774 | -silent | --silent | --silen | --sile | --sil)
1775 continue ;;
1776 *\'*)
1777 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1778 esac
1779 case $ac_pass in
1780 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1781 2)
1782 as_fn_append ac_configure_args1 " '$ac_arg'"
1783 if test $ac_must_keep_next = true; then
1784 ac_must_keep_next=false # Got value, back to normal.
1785 else
1786 case $ac_arg in
1787 *=* | --config-cache | -C | -disable-* | --disable-* \
1788 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1789 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1790 | -with-* | --with-* | -without-* | --without-* | --x)
1791 case "$ac_configure_args0 " in
1792 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1793 esac
1794 ;;
1795 -* ) ac_must_keep_next=true ;;
1796 esac
1797 fi
1798 as_fn_append ac_configure_args " '$ac_arg'"
1799 ;;
1800 esac
1801 done
1802 done
1803 { ac_configure_args0=; unset ac_configure_args0;}
1804 { ac_configure_args1=; unset ac_configure_args1;}
1805
1806 # When interrupted or exit'd, cleanup temporary files, and complete
1807 # config.log. We remove comments because anyway the quotes in there
1808 # would cause problems or look ugly.
1809 # WARNING: Use '\'' to represent an apostrophe within the trap.
1810 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1811 trap 'exit_status=$?
1812 # Save into config.log some information that might help in debugging.
1813 {
1814 echo
1815
1816 $as_echo "## ---------------- ##
1817 ## Cache variables. ##
1818 ## ---------------- ##"
1819 echo
1820 # The following way of writing the cache mishandles newlines in values,
1821 (
1822 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1823 eval ac_val=\$$ac_var
1824 case $ac_val in #(
1825 *${as_nl}*)
1826 case $ac_var in #(
1827 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1828 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1829 esac
1830 case $ac_var in #(
1831 _ | IFS | as_nl) ;; #(
1832 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1833 *) { eval $ac_var=; unset $ac_var;} ;;
1834 esac ;;
1835 esac
1836 done
1837 (set) 2>&1 |
1838 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1839 *${as_nl}ac_space=\ *)
1840 sed -n \
1841 "s/'\''/'\''\\\\'\'''\''/g;
1842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1843 ;; #(
1844 *)
1845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1846 ;;
1847 esac |
1848 sort
1849 )
1850 echo
1851
1852 $as_echo "## ----------------- ##
1853 ## Output variables. ##
1854 ## ----------------- ##"
1855 echo
1856 for ac_var in $ac_subst_vars
1857 do
1858 eval ac_val=\$$ac_var
1859 case $ac_val in
1860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861 esac
1862 $as_echo "$ac_var='\''$ac_val'\''"
1863 done | sort
1864 echo
1865
1866 if test -n "$ac_subst_files"; then
1867 $as_echo "## ------------------- ##
1868 ## File substitutions. ##
1869 ## ------------------- ##"
1870 echo
1871 for ac_var in $ac_subst_files
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880 fi
1881
1882 if test -s confdefs.h; then
1883 $as_echo "## ----------- ##
1884 ## confdefs.h. ##
1885 ## ----------- ##"
1886 echo
1887 cat confdefs.h
1888 echo
1889 fi
1890 test "$ac_signal" != 0 &&
1891 $as_echo "$as_me: caught signal $ac_signal"
1892 $as_echo "$as_me: exit $exit_status"
1893 } >&5
1894 rm -f core *.core core.conftest.* &&
1895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1896 exit $exit_status
1897 ' 0
1898 for ac_signal in 1 2 13 15; do
1899 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1900 done
1901 ac_signal=0
1902
1903 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1904 rm -f -r conftest* confdefs.h
1905
1906 $as_echo "/* confdefs.h */" > confdefs.h
1907
1908 # Predefined preprocessor variables.
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 _ACEOF
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1916 _ACEOF
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1920 _ACEOF
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_STRING "$PACKAGE_STRING"
1924 _ACEOF
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1928 _ACEOF
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_URL "$PACKAGE_URL"
1932 _ACEOF
1933
1934
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer an explicitly selected file to automatically selected ones.
1937 ac_site_file1=NONE
1938 ac_site_file2=NONE
1939 if test -n "$CONFIG_SITE"; then
1940 # We do not want a PATH search for config.site.
1941 case $CONFIG_SITE in #((
1942 -*) ac_site_file1=./$CONFIG_SITE;;
1943 */*) ac_site_file1=$CONFIG_SITE;;
1944 *) ac_site_file1=./$CONFIG_SITE;;
1945 esac
1946 elif test "x$prefix" != xNONE; then
1947 ac_site_file1=$prefix/share/config.site
1948 ac_site_file2=$prefix/etc/config.site
1949 else
1950 ac_site_file1=$ac_default_prefix/share/config.site
1951 ac_site_file2=$ac_default_prefix/etc/config.site
1952 fi
1953 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1954 do
1955 test "x$ac_site_file" = xNONE && continue
1956 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1958 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1959 sed 's/^/| /' "$ac_site_file" >&5
1960 . "$ac_site_file" \
1961 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1963 as_fn_error $? "failed to load site script $ac_site_file
1964 See \`config.log' for more details" "$LINENO" 5; }
1965 fi
1966 done
1967
1968 if test -r "$cache_file"; then
1969 # Some versions of bash will fail to source /dev/null (special files
1970 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1971 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1973 $as_echo "$as_me: loading cache $cache_file" >&6;}
1974 case $cache_file in
1975 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1976 *) . "./$cache_file";;
1977 esac
1978 fi
1979 else
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1981 $as_echo "$as_me: creating cache $cache_file" >&6;}
1982 >$cache_file
1983 fi
1984
1985 # Check that the precious variables saved in the cache have kept the same
1986 # value.
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990 eval ac_new_set=\$ac_env_${ac_var}_set
1991 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992 eval ac_new_val=\$ac_env_${ac_var}_value
1993 case $ac_old_set,$ac_new_set in
1994 set,)
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1998 ,set)
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2000 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2002 ,);;
2003 *)
2004 if test "x$ac_old_val" != "x$ac_new_val"; then
2005 # differences in whitespace do not lead to failure.
2006 ac_old_val_w=`echo x $ac_old_val`
2007 ac_new_val_w=`echo x $ac_new_val`
2008 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2010 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2011 ac_cache_corrupted=:
2012 else
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2014 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2015 eval $ac_var=\$ac_old_val
2016 fi
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2018 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2020 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2021 fi;;
2022 esac
2023 # Pass precious variables to config.status.
2024 if test "$ac_new_set" = set; then
2025 case $ac_new_val in
2026 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2027 *) ac_arg=$ac_var=$ac_new_val ;;
2028 esac
2029 case " $ac_configure_args " in
2030 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2031 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2032 esac
2033 fi
2034 done
2035 if $ac_cache_corrupted; then
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2039 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2040 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2041 fi
2042 ## -------------------- ##
2043 ## Main body of script. ##
2044 ## -------------------- ##
2045
2046 ac_ext=c
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
2054
2055
2056
2057
2058 ac_aux_dir=
2059 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if test -f "$ac_dir/install-sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install-sh -c"
2063 break
2064 elif test -f "$ac_dir/install.sh"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install.sh -c"
2067 break
2068 elif test -f "$ac_dir/shtool"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/shtool install -c"
2071 break
2072 fi
2073 done
2074 if test -z "$ac_aux_dir"; then
2075 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2076 fi
2077
2078 # These three variables are undocumented and unsupported,
2079 # and are intended to be withdrawn in a future Autoconf release.
2080 # They can cause serious problems if a builder's source tree is in a directory
2081 # whose full name contains unusual characters.
2082 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2083 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2084 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2085
2086
2087 # Make sure we can run config.sub.
2088 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2089 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2090
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2092 $as_echo_n "checking build system type... " >&6; }
2093 if ${ac_cv_build+:} false; then :
2094 $as_echo_n "(cached) " >&6
2095 else
2096 ac_build_alias=$build_alias
2097 test "x$ac_build_alias" = x &&
2098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x &&
2100 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2101 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2102 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2103
2104 fi
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2106 $as_echo "$ac_cv_build" >&6; }
2107 case $ac_cv_build in
2108 *-*-*) ;;
2109 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2110 esac
2111 build=$ac_cv_build
2112 ac_save_IFS=$IFS; IFS='-'
2113 set x $ac_cv_build
2114 shift
2115 build_cpu=$1
2116 build_vendor=$2
2117 shift; shift
2118 # Remember, the first character of IFS is used to create $*,
2119 # except with old shells:
2120 build_os=$*
2121 IFS=$ac_save_IFS
2122 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2123
2124
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2126 $as_echo_n "checking host system type... " >&6; }
2127 if ${ac_cv_host+:} false; then :
2128 $as_echo_n "(cached) " >&6
2129 else
2130 if test "x$host_alias" = x; then
2131 ac_cv_host=$ac_cv_build
2132 else
2133 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2134 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2135 fi
2136
2137 fi
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2139 $as_echo "$ac_cv_host" >&6; }
2140 case $ac_cv_host in
2141 *-*-*) ;;
2142 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2143 esac
2144 host=$ac_cv_host
2145 ac_save_IFS=$IFS; IFS='-'
2146 set x $ac_cv_host
2147 shift
2148 host_cpu=$1
2149 host_vendor=$2
2150 shift; shift
2151 # Remember, the first character of IFS is used to create $*,
2152 # except with old shells:
2153 host_os=$*
2154 IFS=$ac_save_IFS
2155 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2156
2157
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2159 $as_echo_n "checking target system type... " >&6; }
2160 if ${ac_cv_target+:} false; then :
2161 $as_echo_n "(cached) " >&6
2162 else
2163 if test "x$target_alias" = x; then
2164 ac_cv_target=$ac_cv_host
2165 else
2166 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2167 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2168 fi
2169
2170 fi
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2172 $as_echo "$ac_cv_target" >&6; }
2173 case $ac_cv_target in
2174 *-*-*) ;;
2175 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2176 esac
2177 target=$ac_cv_target
2178 ac_save_IFS=$IFS; IFS='-'
2179 set x $ac_cv_target
2180 shift
2181 target_cpu=$1
2182 target_vendor=$2
2183 shift; shift
2184 # Remember, the first character of IFS is used to create $*,
2185 # except with old shells:
2186 target_os=$*
2187 IFS=$ac_save_IFS
2188 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2189
2190
2191 # The aliases save the names the user supplied, while $host etc.
2192 # will get canonicalized.
2193 test -n "$target_alias" &&
2194 test "$program_prefix$program_suffix$program_transform_name" = \
2195 NONENONEs,x,x, &&
2196 program_prefix=${target_alias}-
2197 ac_ext=c
2198 ac_cpp='$CPP $CPPFLAGS'
2199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202 if test -n "$ac_tool_prefix"; then
2203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2206 $as_echo_n "checking for $ac_word... " >&6; }
2207 if ${ac_cv_prog_CC+:} false; then :
2208 $as_echo_n "(cached) " >&6
2209 else
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 else
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2215 do
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 break 2
2223 fi
2224 done
2225 done
2226 IFS=$as_save_IFS
2227
2228 fi
2229 fi
2230 CC=$ac_cv_prog_CC
2231 if test -n "$CC"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2233 $as_echo "$CC" >&6; }
2234 else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2236 $as_echo "no" >&6; }
2237 fi
2238
2239
2240 fi
2241 if test -z "$ac_cv_prog_CC"; then
2242 ac_ct_CC=$CC
2243 # Extract the first word of "gcc", so it can be a program name with args.
2244 set dummy gcc; ac_word=$2
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2246 $as_echo_n "checking for $ac_word... " >&6; }
2247 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 if test -n "$ac_ct_CC"; then
2251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260 ac_cv_prog_ac_ct_CC="gcc"
2261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2263 fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 fi
2269 fi
2270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2271 if test -n "$ac_ct_CC"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2273 $as_echo "$ac_ct_CC" >&6; }
2274 else
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2276 $as_echo "no" >&6; }
2277 fi
2278
2279 if test "x$ac_ct_CC" = x; then
2280 CC=""
2281 else
2282 case $cross_compiling:$ac_tool_warned in
2283 yes:)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2286 ac_tool_warned=yes ;;
2287 esac
2288 CC=$ac_ct_CC
2289 fi
2290 else
2291 CC="$ac_cv_prog_CC"
2292 fi
2293
2294 if test -z "$CC"; then
2295 if test -n "$ac_tool_prefix"; then
2296 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2297 set dummy ${ac_tool_prefix}cc; ac_word=$2
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2299 $as_echo_n "checking for $ac_word... " >&6; }
2300 if ${ac_cv_prog_CC+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test -n "$CC"; then
2304 ac_cv_prog_CC="$CC" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313 ac_cv_prog_CC="${ac_tool_prefix}cc"
2314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 break 2
2316 fi
2317 done
2318 done
2319 IFS=$as_save_IFS
2320
2321 fi
2322 fi
2323 CC=$ac_cv_prog_CC
2324 if test -n "$CC"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2326 $as_echo "$CC" >&6; }
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329 $as_echo "no" >&6; }
2330 fi
2331
2332
2333 fi
2334 fi
2335 if test -z "$CC"; then
2336 # Extract the first word of "cc", so it can be a program name with args.
2337 set dummy cc; ac_word=$2
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339 $as_echo_n "checking for $ac_word... " >&6; }
2340 if ${ac_cv_prog_CC+:} false; then :
2341 $as_echo_n "(cached) " >&6
2342 else
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 ac_prog_rejected=no
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2355 ac_prog_rejected=yes
2356 continue
2357 fi
2358 ac_cv_prog_CC="cc"
2359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 break 2
2361 fi
2362 done
2363 done
2364 IFS=$as_save_IFS
2365
2366 if test $ac_prog_rejected = yes; then
2367 # We found a bogon in the path, so make sure we never use it.
2368 set dummy $ac_cv_prog_CC
2369 shift
2370 if test $# != 0; then
2371 # We chose a different compiler from the bogus one.
2372 # However, it has the same basename, so the bogon will be chosen
2373 # first if we set CC to just the basename; use the full file name.
2374 shift
2375 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2376 fi
2377 fi
2378 fi
2379 fi
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2383 $as_echo "$CC" >&6; }
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386 $as_echo "no" >&6; }
2387 fi
2388
2389
2390 fi
2391 if test -z "$CC"; then
2392 if test -n "$ac_tool_prefix"; then
2393 for ac_prog in cl.exe
2394 do
2395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2398 $as_echo_n "checking for $ac_word... " >&6; }
2399 if ${ac_cv_prog_CC+:} false; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 break 2
2415 fi
2416 done
2417 done
2418 IFS=$as_save_IFS
2419
2420 fi
2421 fi
2422 CC=$ac_cv_prog_CC
2423 if test -n "$CC"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2425 $as_echo "$CC" >&6; }
2426 else
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2428 $as_echo "no" >&6; }
2429 fi
2430
2431
2432 test -n "$CC" && break
2433 done
2434 fi
2435 if test -z "$CC"; then
2436 ac_ct_CC=$CC
2437 for ac_prog in cl.exe
2438 do
2439 # Extract the first word of "$ac_prog", so it can be a program name with args.
2440 set dummy $ac_prog; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_ac_ct_CC="$ac_prog"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2459 fi
2460 done
2461 done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2469 $as_echo "$ac_ct_CC" >&6; }
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2473 fi
2474
2475
2476 test -n "$ac_ct_CC" && break
2477 done
2478
2479 if test "x$ac_ct_CC" = x; then
2480 CC=""
2481 else
2482 case $cross_compiling:$ac_tool_warned in
2483 yes:)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2486 ac_tool_warned=yes ;;
2487 esac
2488 CC=$ac_ct_CC
2489 fi
2490 fi
2491
2492 fi
2493
2494
2495 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497 as_fn_error $? "no acceptable C compiler found in \$PATH
2498 See \`config.log' for more details" "$LINENO" 5; }
2499
2500 # Provide some information about the compiler.
2501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2502 set X $ac_compile
2503 ac_compiler=$2
2504 for ac_option in --version -v -V -qversion; do
2505 { { ac_try="$ac_compiler $ac_option >&5"
2506 case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509 esac
2510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511 $as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2513 ac_status=$?
2514 if test -s conftest.err; then
2515 sed '10a\
2516 ... rest of stderr output deleted ...
2517 10q' conftest.err >conftest.er1
2518 cat conftest.er1 >&5
2519 fi
2520 rm -f conftest.er1 conftest.err
2521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2522 test $ac_status = 0; }
2523 done
2524
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527
2528 int
2529 main ()
2530 {
2531
2532 ;
2533 return 0;
2534 }
2535 _ACEOF
2536 ac_clean_files_save=$ac_clean_files
2537 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2538 # Try to create an executable without -o first, disregard a.out.
2539 # It will help us diagnose broken compilers, and finding out an intuition
2540 # of exeext.
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2542 $as_echo_n "checking whether the C compiler works... " >&6; }
2543 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544
2545 # The possible output files:
2546 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2547
2548 ac_rmfiles=
2549 for ac_file in $ac_files
2550 do
2551 case $ac_file in
2552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2553 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2554 esac
2555 done
2556 rm -f $ac_rmfiles
2557
2558 if { { ac_try="$ac_link_default"
2559 case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562 esac
2563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564 $as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_link_default") 2>&5
2566 ac_status=$?
2567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2568 test $ac_status = 0; }; then :
2569 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2570 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2571 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2572 # so that the user can short-circuit this test for compilers unknown to
2573 # Autoconf.
2574 for ac_file in $ac_files ''
2575 do
2576 test -f "$ac_file" || continue
2577 case $ac_file in
2578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2579 ;;
2580 [ab].out )
2581 # We found the default executable, but exeext='' is most
2582 # certainly right.
2583 break;;
2584 *.* )
2585 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2586 then :; else
2587 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2588 fi
2589 # We set ac_cv_exeext here because the later test for it is not
2590 # safe: cross compilers may not add the suffix if given an `-o'
2591 # argument, so we may need to know it at that point already.
2592 # Even if this section looks crufty: it has the advantage of
2593 # actually working.
2594 break;;
2595 * )
2596 break;;
2597 esac
2598 done
2599 test "$ac_cv_exeext" = no && ac_cv_exeext=
2600
2601 else
2602 ac_file=''
2603 fi
2604 if test -z "$ac_file"; then :
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 as_fn_error 77 "C compiler cannot create executables
2613 See \`config.log' for more details" "$LINENO" 5; }
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2619 $as_echo_n "checking for C compiler default output file name... " >&6; }
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2621 $as_echo "$ac_file" >&6; }
2622 ac_exeext=$ac_cv_exeext
2623
2624 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2625 ac_clean_files=$ac_clean_files_save
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2627 $as_echo_n "checking for suffix of executables... " >&6; }
2628 if { { ac_try="$ac_link"
2629 case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632 esac
2633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634 $as_echo "$ac_try_echo"; } >&5
2635 (eval "$ac_link") 2>&5
2636 ac_status=$?
2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638 test $ac_status = 0; }; then :
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2642 # `rm'.
2643 for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2645 case $ac_file in
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 break;;
2649 * ) break;;
2650 esac
2651 done
2652 else
2653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details" "$LINENO" 5; }
2657 fi
2658 rm -f conftest conftest$ac_cv_exeext
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2660 $as_echo "$ac_cv_exeext" >&6; }
2661
2662 rm -f conftest.$ac_ext
2663 EXEEXT=$ac_cv_exeext
2664 ac_exeext=$EXEEXT
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2667 #include <stdio.h>
2668 int
2669 main ()
2670 {
2671 FILE *f = fopen ("conftest.out", "w");
2672 return ferror (f) || fclose (f) != 0;
2673
2674 ;
2675 return 0;
2676 }
2677 _ACEOF
2678 ac_clean_files="$ac_clean_files conftest.out"
2679 # Check that the compiler produces executables we can run. If not, either
2680 # the compiler is broken, or we cross compile.
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2682 $as_echo_n "checking whether we are cross compiling... " >&6; }
2683 if test "$cross_compiling" != yes; then
2684 { { ac_try="$ac_link"
2685 case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688 esac
2689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2690 $as_echo "$ac_try_echo"; } >&5
2691 (eval "$ac_link") 2>&5
2692 ac_status=$?
2693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2694 test $ac_status = 0; }
2695 if { ac_try='./conftest$ac_cv_exeext'
2696 { { case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_try") 2>&5
2703 ac_status=$?
2704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705 test $ac_status = 0; }; }; then
2706 cross_compiling=no
2707 else
2708 if test "$cross_compiling" = maybe; then
2709 cross_compiling=yes
2710 else
2711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2713 as_fn_error $? "cannot run C compiled programs.
2714 If you meant to cross compile, use \`--host'.
2715 See \`config.log' for more details" "$LINENO" 5; }
2716 fi
2717 fi
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2720 $as_echo "$cross_compiling" >&6; }
2721
2722 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2723 ac_clean_files=$ac_clean_files_save
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2725 $as_echo_n "checking for suffix of object files... " >&6; }
2726 if ${ac_cv_objext+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2731
2732 int
2733 main ()
2734 {
2735
2736 ;
2737 return 0;
2738 }
2739 _ACEOF
2740 rm -f conftest.o conftest.obj
2741 if { { ac_try="$ac_compile"
2742 case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745 esac
2746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747 $as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_compile") 2>&5
2749 ac_status=$?
2750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751 test $ac_status = 0; }; then :
2752 for ac_file in conftest.o conftest.obj conftest.*; do
2753 test -f "$ac_file" || continue;
2754 case $ac_file in
2755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2756 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2757 break;;
2758 esac
2759 done
2760 else
2761 $as_echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error $? "cannot compute suffix of object files: cannot compile
2767 See \`config.log' for more details" "$LINENO" 5; }
2768 fi
2769 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2770 fi
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2772 $as_echo "$ac_cv_objext" >&6; }
2773 OBJEXT=$ac_cv_objext
2774 ac_objext=$OBJEXT
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2776 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2777 if ${ac_cv_c_compiler_gnu+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781 /* end confdefs.h. */
2782
2783 int
2784 main ()
2785 {
2786 #ifndef __GNUC__
2787 choke me
2788 #endif
2789
2790 ;
2791 return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_c_try_compile "$LINENO"; then :
2795 ac_compiler_gnu=yes
2796 else
2797 ac_compiler_gnu=no
2798 fi
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2801
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2804 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2805 if test $ac_compiler_gnu = yes; then
2806 GCC=yes
2807 else
2808 GCC=
2809 fi
2810 ac_test_CFLAGS=${CFLAGS+set}
2811 ac_save_CFLAGS=$CFLAGS
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2813 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2814 if ${ac_cv_prog_cc_g+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 ac_save_c_werror_flag=$ac_c_werror_flag
2818 ac_c_werror_flag=yes
2819 ac_cv_prog_cc_g=no
2820 CFLAGS="-g"
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2823
2824 int
2825 main ()
2826 {
2827
2828 ;
2829 return 0;
2830 }
2831 _ACEOF
2832 if ac_fn_c_try_compile "$LINENO"; then :
2833 ac_cv_prog_cc_g=yes
2834 else
2835 CFLAGS=""
2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2838
2839 int
2840 main ()
2841 {
2842
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 if ac_fn_c_try_compile "$LINENO"; then :
2848
2849 else
2850 ac_c_werror_flag=$ac_save_c_werror_flag
2851 CFLAGS="-g"
2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853 /* end confdefs.h. */
2854
2855 int
2856 main ()
2857 {
2858
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 if ac_fn_c_try_compile "$LINENO"; then :
2864 ac_cv_prog_cc_g=yes
2865 fi
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 fi
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 ac_c_werror_flag=$ac_save_c_werror_flag
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2874 $as_echo "$ac_cv_prog_cc_g" >&6; }
2875 if test "$ac_test_CFLAGS" = set; then
2876 CFLAGS=$ac_save_CFLAGS
2877 elif test $ac_cv_prog_cc_g = yes; then
2878 if test "$GCC" = yes; then
2879 CFLAGS="-g -O2"
2880 else
2881 CFLAGS="-g"
2882 fi
2883 else
2884 if test "$GCC" = yes; then
2885 CFLAGS="-O2"
2886 else
2887 CFLAGS=
2888 fi
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2891 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2892 if ${ac_cv_prog_cc_c89+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 ac_cv_prog_cc_c89=no
2896 ac_save_CC=$CC
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2899 #include <stdarg.h>
2900 #include <stdio.h>
2901 struct stat;
2902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2903 struct buf { int x; };
2904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2905 static char *e (p, i)
2906 char **p;
2907 int i;
2908 {
2909 return p[i];
2910 }
2911 static char *f (char * (*g) (char **, int), char **p, ...)
2912 {
2913 char *s;
2914 va_list v;
2915 va_start (v,p);
2916 s = g (p, va_arg (v,int));
2917 va_end (v);
2918 return s;
2919 }
2920
2921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2922 function prototypes and stuff, but not '\xHH' hex character constants.
2923 These don't provoke an error unfortunately, instead are silently treated
2924 as 'x'. The following induces an error, until -std is added to get
2925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2926 array size at least. It's necessary to write '\x00'==0 to get something
2927 that's true only with -std. */
2928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2929
2930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2931 inside strings and character constants. */
2932 #define FOO(x) 'x'
2933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2934
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2939 int argc;
2940 char **argv;
2941 int
2942 main ()
2943 {
2944 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2945 ;
2946 return 0;
2947 }
2948 _ACEOF
2949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2951 do
2952 CC="$ac_save_CC $ac_arg"
2953 if ac_fn_c_try_compile "$LINENO"; then :
2954 ac_cv_prog_cc_c89=$ac_arg
2955 fi
2956 rm -f core conftest.err conftest.$ac_objext
2957 test "x$ac_cv_prog_cc_c89" != "xno" && break
2958 done
2959 rm -f conftest.$ac_ext
2960 CC=$ac_save_CC
2961
2962 fi
2963 # AC_CACHE_VAL
2964 case "x$ac_cv_prog_cc_c89" in
2965 x)
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2967 $as_echo "none needed" >&6; } ;;
2968 xno)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2970 $as_echo "unsupported" >&6; } ;;
2971 *)
2972 CC="$CC $ac_cv_prog_cc_c89"
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2975 esac
2976 if test "x$ac_cv_prog_cc_c89" != xno; then :
2977
2978 fi
2979
2980 ac_ext=c
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985
2986
2987 ac_ext=c
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2993 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2994 # On Suns, sometimes $CPP names a directory.
2995 if test -n "$CPP" && test -d "$CPP"; then
2996 CPP=
2997 fi
2998 if test -z "$CPP"; then
2999 if ${ac_cv_prog_CPP+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 # Double quotes because CPP needs to be expanded
3003 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3004 do
3005 ac_preproc_ok=false
3006 for ac_c_preproc_warn_flag in '' yes
3007 do
3008 # Use a header file that comes with gcc, so configuring glibc
3009 # with a fresh cross-compiler works.
3010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3011 # <limits.h> exists even on freestanding compilers.
3012 # On the NeXT, cc -E runs the code through the compiler's parser,
3013 # not just through cpp. "Syntax error" is here to catch this case.
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021 Syntax error
3022 _ACEOF
3023 if ac_fn_c_try_cpp "$LINENO"; then :
3024
3025 else
3026 # Broken: fails on valid input.
3027 continue
3028 fi
3029 rm -f conftest.err conftest.i conftest.$ac_ext
3030
3031 # OK, works on sane cases. Now check whether nonexistent headers
3032 # can be detected and how.
3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h. */
3035 #include <ac_nonexistent.h>
3036 _ACEOF
3037 if ac_fn_c_try_cpp "$LINENO"; then :
3038 # Broken: success on invalid input.
3039 continue
3040 else
3041 # Passes both tests.
3042 ac_preproc_ok=:
3043 break
3044 fi
3045 rm -f conftest.err conftest.i conftest.$ac_ext
3046
3047 done
3048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3049 rm -f conftest.i conftest.err conftest.$ac_ext
3050 if $ac_preproc_ok; then :
3051 break
3052 fi
3053
3054 done
3055 ac_cv_prog_CPP=$CPP
3056
3057 fi
3058 CPP=$ac_cv_prog_CPP
3059 else
3060 ac_cv_prog_CPP=$CPP
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3063 $as_echo "$CPP" >&6; }
3064 ac_preproc_ok=false
3065 for ac_c_preproc_warn_flag in '' yes
3066 do
3067 # Use a header file that comes with gcc, so configuring glibc
3068 # with a fresh cross-compiler works.
3069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070 # <limits.h> exists even on freestanding compilers.
3071 # On the NeXT, cc -E runs the code through the compiler's parser,
3072 # not just through cpp. "Syntax error" is here to catch this case.
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3075 #ifdef __STDC__
3076 # include <limits.h>
3077 #else
3078 # include <assert.h>
3079 #endif
3080 Syntax error
3081 _ACEOF
3082 if ac_fn_c_try_cpp "$LINENO"; then :
3083
3084 else
3085 # Broken: fails on valid input.
3086 continue
3087 fi
3088 rm -f conftest.err conftest.i conftest.$ac_ext
3089
3090 # OK, works on sane cases. Now check whether nonexistent headers
3091 # can be detected and how.
3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3094 #include <ac_nonexistent.h>
3095 _ACEOF
3096 if ac_fn_c_try_cpp "$LINENO"; then :
3097 # Broken: success on invalid input.
3098 continue
3099 else
3100 # Passes both tests.
3101 ac_preproc_ok=:
3102 break
3103 fi
3104 rm -f conftest.err conftest.i conftest.$ac_ext
3105
3106 done
3107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3108 rm -f conftest.i conftest.err conftest.$ac_ext
3109 if $ac_preproc_ok; then :
3110
3111 else
3112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3115 See \`config.log' for more details" "$LINENO" 5; }
3116 fi
3117
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123
3124
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3126 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3127 if ${ac_cv_path_GREP+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -z "$GREP"; then
3131 ac_path_GREP_found=false
3132 # Loop through the user's path and test for each of PROGNAME-LIST
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3135 do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_prog in grep ggrep; do
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3141 as_fn_executable_p "$ac_path_GREP" || continue
3142 # Check for GNU ac_path_GREP and select it if it is found.
3143 # Check for GNU $ac_path_GREP
3144 case `"$ac_path_GREP" --version 2>&1` in
3145 *GNU*)
3146 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3147 *)
3148 ac_count=0
3149 $as_echo_n 0123456789 >"conftest.in"
3150 while :
3151 do
3152 cat "conftest.in" "conftest.in" >"conftest.tmp"
3153 mv "conftest.tmp" "conftest.in"
3154 cp "conftest.in" "conftest.nl"
3155 $as_echo 'GREP' >> "conftest.nl"
3156 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3158 as_fn_arith $ac_count + 1 && ac_count=$as_val
3159 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3160 # Best one so far, save it but keep looking for a better one
3161 ac_cv_path_GREP="$ac_path_GREP"
3162 ac_path_GREP_max=$ac_count
3163 fi
3164 # 10*(2^10) chars as input seems more than enough
3165 test $ac_count -gt 10 && break
3166 done
3167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3168 esac
3169
3170 $ac_path_GREP_found && break 3
3171 done
3172 done
3173 done
3174 IFS=$as_save_IFS
3175 if test -z "$ac_cv_path_GREP"; then
3176 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3177 fi
3178 else
3179 ac_cv_path_GREP=$GREP
3180 fi
3181
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3184 $as_echo "$ac_cv_path_GREP" >&6; }
3185 GREP="$ac_cv_path_GREP"
3186
3187
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3189 $as_echo_n "checking for egrep... " >&6; }
3190 if ${ac_cv_path_EGREP+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3194 then ac_cv_path_EGREP="$GREP -E"
3195 else
3196 if test -z "$EGREP"; then
3197 ac_path_EGREP_found=false
3198 # Loop through the user's path and test for each of PROGNAME-LIST
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3201 do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_prog in egrep; do
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3207 as_fn_executable_p "$ac_path_EGREP" || continue
3208 # Check for GNU ac_path_EGREP and select it if it is found.
3209 # Check for GNU $ac_path_EGREP
3210 case `"$ac_path_EGREP" --version 2>&1` in
3211 *GNU*)
3212 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3213 *)
3214 ac_count=0
3215 $as_echo_n 0123456789 >"conftest.in"
3216 while :
3217 do
3218 cat "conftest.in" "conftest.in" >"conftest.tmp"
3219 mv "conftest.tmp" "conftest.in"
3220 cp "conftest.in" "conftest.nl"
3221 $as_echo 'EGREP' >> "conftest.nl"
3222 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3224 as_fn_arith $ac_count + 1 && ac_count=$as_val
3225 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3226 # Best one so far, save it but keep looking for a better one
3227 ac_cv_path_EGREP="$ac_path_EGREP"
3228 ac_path_EGREP_max=$ac_count
3229 fi
3230 # 10*(2^10) chars as input seems more than enough
3231 test $ac_count -gt 10 && break
3232 done
3233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3234 esac
3235
3236 $ac_path_EGREP_found && break 3
3237 done
3238 done
3239 done
3240 IFS=$as_save_IFS
3241 if test -z "$ac_cv_path_EGREP"; then
3242 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3243 fi
3244 else
3245 ac_cv_path_EGREP=$EGREP
3246 fi
3247
3248 fi
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3251 $as_echo "$ac_cv_path_EGREP" >&6; }
3252 EGREP="$ac_cv_path_EGREP"
3253
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3256 $as_echo_n "checking for ANSI C header files... " >&6; }
3257 if ${ac_cv_header_stdc+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h. */
3262 #include <stdlib.h>
3263 #include <stdarg.h>
3264 #include <string.h>
3265 #include <float.h>
3266
3267 int
3268 main ()
3269 {
3270
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276 ac_cv_header_stdc=yes
3277 else
3278 ac_cv_header_stdc=no
3279 fi
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281
3282 if test $ac_cv_header_stdc = yes; then
3283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3286 #include <string.h>
3287
3288 _ACEOF
3289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290 $EGREP "memchr" >/dev/null 2>&1; then :
3291
3292 else
3293 ac_cv_header_stdc=no
3294 fi
3295 rm -f conftest*
3296
3297 fi
3298
3299 if test $ac_cv_header_stdc = yes; then
3300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303 #include <stdlib.h>
3304
3305 _ACEOF
3306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3307 $EGREP "free" >/dev/null 2>&1; then :
3308
3309 else
3310 ac_cv_header_stdc=no
3311 fi
3312 rm -f conftest*
3313
3314 fi
3315
3316 if test $ac_cv_header_stdc = yes; then
3317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3318 if test "$cross_compiling" = yes; then :
3319 :
3320 else
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3323 #include <ctype.h>
3324 #include <stdlib.h>
3325 #if ((' ' & 0x0FF) == 0x020)
3326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3328 #else
3329 # define ISLOWER(c) \
3330 (('a' <= (c) && (c) <= 'i') \
3331 || ('j' <= (c) && (c) <= 'r') \
3332 || ('s' <= (c) && (c) <= 'z'))
3333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3334 #endif
3335
3336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3337 int
3338 main ()
3339 {
3340 int i;
3341 for (i = 0; i < 256; i++)
3342 if (XOR (islower (i), ISLOWER (i))
3343 || toupper (i) != TOUPPER (i))
3344 return 2;
3345 return 0;
3346 }
3347 _ACEOF
3348 if ac_fn_c_try_run "$LINENO"; then :
3349
3350 else
3351 ac_cv_header_stdc=no
3352 fi
3353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3354 conftest.$ac_objext conftest.beam conftest.$ac_ext
3355 fi
3356
3357 fi
3358 fi
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3360 $as_echo "$ac_cv_header_stdc" >&6; }
3361 if test $ac_cv_header_stdc = yes; then
3362
3363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3364
3365 fi
3366
3367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3369 inttypes.h stdint.h unistd.h
3370 do :
3371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3373 "
3374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3375 cat >>confdefs.h <<_ACEOF
3376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3377 _ACEOF
3378
3379 fi
3380
3381 done
3382
3383
3384
3385 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3386 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3387 MINIX=yes
3388 else
3389 MINIX=
3390 fi
3391
3392
3393 if test "$MINIX" = yes; then
3394
3395 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3396
3397
3398 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3399
3400
3401 $as_echo "#define _MINIX 1" >>confdefs.h
3402
3403 fi
3404
3405
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3407 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3408 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 # define __EXTENSIONS__ 1
3415 $ac_includes_default
3416 int
3417 main ()
3418 {
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_cv_safe_to_define___extensions__=yes
3426 else
3427 ac_cv_safe_to_define___extensions__=no
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3432 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3433 test $ac_cv_safe_to_define___extensions__ = yes &&
3434 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3435
3436 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3437
3438 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3439
3440 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3441
3442 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3443
3444
3445 test "$program_prefix" != NONE &&
3446 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3447 # Use a double $ so make ignores it.
3448 test "$program_suffix" != NONE &&
3449 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3450 # Double any \ or $.
3451 # By default was `s,x,x', remove it if useless.
3452 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3453 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3454
3455 # Find a good install program. We prefer a C program (faster),
3456 # so one script is as good as another. But avoid the broken or
3457 # incompatible versions:
3458 # SysV /etc/install, /usr/sbin/install
3459 # SunOS /usr/etc/install
3460 # IRIX /sbin/install
3461 # AIX /bin/install
3462 # AmigaOS /C/install, which installs bootblocks on floppy discs
3463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3466 # OS/2's system install, which has a completely different semantic
3467 # ./install, which can be erroneously created by make from ./install.sh.
3468 # Reject install programs that cannot install multiple files.
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3470 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3471 if test -z "$INSTALL"; then
3472 if ${ac_cv_path_install+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 # Account for people who put trailing slashes in PATH elements.
3481 case $as_dir/ in #((
3482 ./ | .// | /[cC]/* | \
3483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3484 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3485 /usr/ucb/* ) ;;
3486 *)
3487 # OSF1 and SCO ODT 3.0 have their own names for install.
3488 # Don't use installbsd from OSF since it installs stuff as root
3489 # by default.
3490 for ac_prog in ginstall scoinst install; do
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3493 if test $ac_prog = install &&
3494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3495 # AIX install. It has an incompatible calling convention.
3496 :
3497 elif test $ac_prog = install &&
3498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3499 # program-specific install script used by HP pwplus--don't use.
3500 :
3501 else
3502 rm -rf conftest.one conftest.two conftest.dir
3503 echo one > conftest.one
3504 echo two > conftest.two
3505 mkdir conftest.dir
3506 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3507 test -s conftest.one && test -s conftest.two &&
3508 test -s conftest.dir/conftest.one &&
3509 test -s conftest.dir/conftest.two
3510 then
3511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3512 break 3
3513 fi
3514 fi
3515 fi
3516 done
3517 done
3518 ;;
3519 esac
3520
3521 done
3522 IFS=$as_save_IFS
3523
3524 rm -rf conftest.one conftest.two conftest.dir
3525
3526 fi
3527 if test "${ac_cv_path_install+set}" = set; then
3528 INSTALL=$ac_cv_path_install
3529 else
3530 # As a last resort, use the slow shell script. Don't cache a
3531 # value for INSTALL within a source directory, because that will
3532 # break other packages using the cache if that directory is
3533 # removed, or if the value is a relative name.
3534 INSTALL=$ac_install_sh
3535 fi
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3538 $as_echo "$INSTALL" >&6; }
3539
3540 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3541 # It thinks the first close brace ends the variable substitution.
3542 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3543
3544 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3545
3546 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3547
3548 rm -rf .tst 2>/dev/null
3549 mkdir .tst 2>/dev/null
3550 if test -d .tst; then
3551 am__leading_dot=.
3552 else
3553 am__leading_dot=_
3554 fi
3555 rmdir .tst 2>/dev/null
3556
3557 DEPDIR="${am__leading_dot}deps"
3558
3559
3560
3561
3562
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3564 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3565 if ${ac_cv_c_bigendian+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 ac_cv_c_bigendian=unknown
3569 # See if we're dealing with a universal compiler.
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572 #ifndef __APPLE_CC__
3573 not a universal capable compiler
3574 #endif
3575 typedef int dummy;
3576
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579
3580 # Check for potential -arch flags. It is not universal unless
3581 # there are at least two -arch flags with different values.
3582 ac_arch=
3583 ac_prev=
3584 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3585 if test -n "$ac_prev"; then
3586 case $ac_word in
3587 i?86 | x86_64 | ppc | ppc64)
3588 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3589 ac_arch=$ac_word
3590 else
3591 ac_cv_c_bigendian=universal
3592 break
3593 fi
3594 ;;
3595 esac
3596 ac_prev=
3597 elif test "x$ac_word" = "x-arch"; then
3598 ac_prev=arch
3599 fi
3600 done
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 if test $ac_cv_c_bigendian = unknown; then
3604 # See if sys/param.h defines the BYTE_ORDER macro.
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3607 #include <sys/types.h>
3608 #include <sys/param.h>
3609
3610 int
3611 main ()
3612 {
3613 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3614 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3615 && LITTLE_ENDIAN)
3616 bogus endian macros
3617 #endif
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 if ac_fn_c_try_compile "$LINENO"; then :
3624 # It does; now see whether it defined to BIG_ENDIAN or not.
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627 #include <sys/types.h>
3628 #include <sys/param.h>
3629
3630 int
3631 main ()
3632 {
3633 #if BYTE_ORDER != BIG_ENDIAN
3634 not big endian
3635 #endif
3636
3637 ;
3638 return 0;
3639 }
3640 _ACEOF
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_cv_c_bigendian=yes
3643 else
3644 ac_cv_c_bigendian=no
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 fi
3650 if test $ac_cv_c_bigendian = unknown; then
3651 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654 #include <limits.h>
3655
3656 int
3657 main ()
3658 {
3659 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3660 bogus endian macros
3661 #endif
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668 # It does; now see whether it defined to _BIG_ENDIAN or not.
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3671 #include <limits.h>
3672
3673 int
3674 main ()
3675 {
3676 #ifndef _BIG_ENDIAN
3677 not big endian
3678 #endif
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"; then :
3685 ac_cv_c_bigendian=yes
3686 else
3687 ac_cv_c_bigendian=no
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 fi
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 fi
3693 if test $ac_cv_c_bigendian = unknown; then
3694 # Compile a test program.
3695 if test "$cross_compiling" = yes; then :
3696 # Try to guess by grepping values from an object file.
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699 short int ascii_mm[] =
3700 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3701 short int ascii_ii[] =
3702 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3703 int use_ascii (int i) {
3704 return ascii_mm[i] + ascii_ii[i];
3705 }
3706 short int ebcdic_ii[] =
3707 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3708 short int ebcdic_mm[] =
3709 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3710 int use_ebcdic (int i) {
3711 return ebcdic_mm[i] + ebcdic_ii[i];
3712 }
3713 extern int foo;
3714
3715 int
3716 main ()
3717 {
3718 return use_ascii (foo) == use_ebcdic (foo);
3719 ;
3720 return 0;
3721 }
3722 _ACEOF
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3725 ac_cv_c_bigendian=yes
3726 fi
3727 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3728 if test "$ac_cv_c_bigendian" = unknown; then
3729 ac_cv_c_bigendian=no
3730 else
3731 # finding both strings is unlikely to happen, but who knows?
3732 ac_cv_c_bigendian=unknown
3733 fi
3734 fi
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 $ac_includes_default
3741 int
3742 main ()
3743 {
3744
3745 /* Are we little or big endian? From Harbison&Steele. */
3746 union
3747 {
3748 long int l;
3749 char c[sizeof (long int)];
3750 } u;
3751 u.l = 1;
3752 return u.c[sizeof (long int) - 1] == 1;
3753
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 if ac_fn_c_try_run "$LINENO"; then :
3759 ac_cv_c_bigendian=no
3760 else
3761 ac_cv_c_bigendian=yes
3762 fi
3763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3764 conftest.$ac_objext conftest.beam conftest.$ac_ext
3765 fi
3766
3767 fi
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3770 $as_echo "$ac_cv_c_bigendian" >&6; }
3771 case $ac_cv_c_bigendian in #(
3772 yes)
3773 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3774 ;; #(
3775 no)
3776 ;; #(
3777 universal)
3778
3779 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3780
3781 ;; #(
3782 *)
3783 as_fn_error $? "unknown endianness
3784 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3785 esac
3786
3787
3788
3789
3790 if test "x$cross_compiling" = "xno"; then
3791 : "${AR_FOR_BUILD:=\$(AR)}"
3792 : "${CC_FOR_BUILD:=\$(CC)}"
3793 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
3794 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
3795 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
3796 else
3797 : "${AR_FOR_BUILD:=ar}"
3798 : "${CC_FOR_BUILD:=gcc}"
3799 : "${RANLIB_FOR_BUILD:=ranlib}"
3800 : "${CFLAGS_FOR_BUILD:=-g -O}"
3801 : "${LDLFAGS_FOR_BUILD:=}"
3802 fi
3803
3804
3805
3806
3807
3808
3809
3810 if test -n "$ac_tool_prefix"; then
3811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3812 set dummy ${ac_tool_prefix}ar; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_AR+:} false; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 if test -n "$AR"; then
3819 ac_cv_prog_AR="$AR" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_AR="${ac_tool_prefix}ar"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 AR=$ac_cv_prog_AR
3839 if test -n "$AR"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3841 $as_echo "$AR" >&6; }
3842 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847
3848 fi
3849 if test -z "$ac_cv_prog_AR"; then
3850 ac_ct_AR=$AR
3851 # Extract the first word of "ar", so it can be a program name with args.
3852 set dummy ar; ac_word=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 if test -n "$ac_ct_AR"; then
3859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_ac_ct_AR="ar"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872 done
3873 done
3874 IFS=$as_save_IFS
3875
3876 fi
3877 fi
3878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3879 if test -n "$ac_ct_AR"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3881 $as_echo "$ac_ct_AR" >&6; }
3882 else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3885 fi
3886
3887 if test "x$ac_ct_AR" = x; then
3888 AR=""
3889 else
3890 case $cross_compiling:$ac_tool_warned in
3891 yes:)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3895 esac
3896 AR=$ac_ct_AR
3897 fi
3898 else
3899 AR="$ac_cv_prog_AR"
3900 fi
3901
3902 if test -n "$ac_tool_prefix"; then
3903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if ${ac_cv_prog_RANLIB+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -n "$RANLIB"; then
3911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924 done
3925 done
3926 IFS=$as_save_IFS
3927
3928 fi
3929 fi
3930 RANLIB=$ac_cv_prog_RANLIB
3931 if test -n "$RANLIB"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3933 $as_echo "$RANLIB" >&6; }
3934 else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3937 fi
3938
3939
3940 fi
3941 if test -z "$ac_cv_prog_RANLIB"; then
3942 ac_ct_RANLIB=$RANLIB
3943 # Extract the first word of "ranlib", so it can be a program name with args.
3944 set dummy ranlib; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 if test -n "$ac_ct_RANLIB"; then
3951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960 ac_cv_prog_ac_ct_RANLIB="ranlib"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964 done
3965 done
3966 IFS=$as_save_IFS
3967
3968 fi
3969 fi
3970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3971 if test -n "$ac_ct_RANLIB"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3973 $as_echo "$ac_ct_RANLIB" >&6; }
3974 else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3977 fi
3978
3979 if test "x$ac_ct_RANLIB" = x; then
3980 RANLIB=":"
3981 else
3982 case $cross_compiling:$ac_tool_warned in
3983 yes:)
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986 ac_tool_warned=yes ;;
3987 esac
3988 RANLIB=$ac_ct_RANLIB
3989 fi
3990 else
3991 RANLIB="$ac_cv_prog_RANLIB"
3992 fi
3993
3994
3995 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
3996 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
3997 # is C99. So handle it ourselves.
3998 :
3999 C_DIALECT=
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4001 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004
4005 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4006 # error "C11 support not found"
4007 #endif
4008
4009 _ACEOF
4010 if ac_fn_c_try_compile "$LINENO"; then :
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4012 $as_echo "yes" >&6; }
4013 else
4014
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4018 $as_echo_n "checking for -std=c11 support... " >&6; }
4019 ac_save_CC="$CC"
4020 CC="$CC -std=c11"
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023
4024 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4025 # error "C11 support not found"
4026 #endif
4027
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4032 $as_echo "yes" >&6; }
4033 CC="$ac_save_CC"
4034 C_DIALECT="-std=c11"
4035
4036 else
4037 as_fn_error $? "C11 is required" "$LINENO" 5
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 fi
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042
4043
4044
4045 # Dependency checking.
4046 ac_config_commands="$ac_config_commands depdir"
4047
4048
4049 depcc="$CC" am_compiler_list=
4050
4051 am_depcomp=$ac_aux_dir/depcomp
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4053 $as_echo_n "checking dependency style of $depcc... " >&6; }
4054 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 if test -f "$am_depcomp"; then
4058 # We make a subdir and do the tests there. Otherwise we can end up
4059 # making bogus files that we don't know about and never remove. For
4060 # instance it was reported that on HP-UX the gcc test will end up
4061 # making a dummy file named `D' -- because `-MD' means `put the output
4062 # in D'.
4063 mkdir conftest.dir
4064 # Copy depcomp to subdir because otherwise we won't find it if we're
4065 # using a relative directory.
4066 cp "$am_depcomp" conftest.dir
4067 cd conftest.dir
4068 # We will build objects and dependencies in a subdirectory because
4069 # it helps to detect inapplicable dependency modes. For instance
4070 # both Tru64's cc and ICC support -MD to output dependencies as a
4071 # side effect of compilation, but ICC will put the dependencies in
4072 # the current directory while Tru64 will put them in the object
4073 # directory.
4074 mkdir sub
4075
4076 am_cv_CC_dependencies_compiler_type=none
4077 if test "$am_compiler_list" = ""; then
4078 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4079 fi
4080 for depmode in $am_compiler_list; do
4081 if test $depmode = none; then break; fi
4082
4083 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4084 # Setup a source with many dependencies, because some compilers
4085 # like to wrap large dependency lists on column 80 (with \), and
4086 # we should not choose a depcomp mode which is confused by this.
4087 #
4088 # We need to recreate these files for each test, as the compiler may
4089 # overwrite some of them when testing with obscure command lines.
4090 # This happens at least with the AIX C compiler.
4091 : > sub/conftest.c
4092 for i in 1 2 3 4 5 6; do
4093 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4094 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4095 # Solaris 8's {/usr,}/bin/sh.
4096 touch sub/conftst$i.h
4097 done
4098 echo "include sub/conftest.Po" > confmf
4099
4100 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4101 # mode. It turns out that the SunPro C++ compiler does not properly
4102 # handle `-M -o', and we need to detect this.
4103 depcmd="depmode=$depmode \
4104 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4105 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4106 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4107 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4108 if env $depcmd > conftest.err 2>&1 &&
4109 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4110 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4111 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4112 # icc doesn't choke on unknown options, it will just issue warnings
4113 # or remarks (even with -Werror). So we grep stderr for any message
4114 # that says an option was ignored or not supported.
4115 # When given -MP, icc 7.0 and 7.1 complain thusly:
4116 # icc: Command line warning: ignoring option '-M'; no argument required
4117 # The diagnosis changed in icc 8.0:
4118 # icc: Command line remark: option '-MP' not supported
4119 if (grep 'ignoring option' conftest.err ||
4120 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4121 am_cv_CC_dependencies_compiler_type=$depmode
4122 $as_echo "$as_me:$LINENO: success" >&5
4123 break
4124 fi
4125 fi
4126 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4127 sed -e 's/^/| /' < conftest.err >&5
4128 done
4129
4130 cd ..
4131 rm -rf conftest.dir
4132 else
4133 am_cv_CC_dependencies_compiler_type=none
4134 fi
4135
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4138 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4139 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4140 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
4141 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4142
4143 fi
4144
4145
4146 ALL_LINGUAS=
4147 # If we haven't got the data from the intl directory,
4148 # assume NLS is disabled.
4149 USE_NLS=no
4150 LIBINTL=
4151 LIBINTL_DEP=
4152 INCINTL=
4153 XGETTEXT=
4154 GMSGFMT=
4155 POSUB=
4156
4157 if test -f ../../intl/config.intl; then
4158 . ../../intl/config.intl
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4161 $as_echo_n "checking whether NLS is requested... " >&6; }
4162 if test x"$USE_NLS" != xyes; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 else
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4167 $as_echo "yes" >&6; }
4168
4169 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4170
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4173 $as_echo_n "checking for catalogs to be installed... " >&6; }
4174 # Look for .po and .gmo files in the source directory.
4175 CATALOGS=
4176 XLINGUAS=
4177 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4178 # If there aren't any .gmo files the shell will give us the
4179 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4180 # weeded out.
4181 case "$cat" in *\**)
4182 continue;;
4183 esac
4184 # The quadruple backslash is collapsed to a double backslash
4185 # by the backticks, then collapsed again by the double quotes,
4186 # leaving us with one backslash in the sed expression (right
4187 # before the dot that mustn't act as a wildcard).
4188 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4189 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4190 # The user is allowed to set LINGUAS to a list of languages to
4191 # install catalogs for. If it's empty that means "all of them."
4192 if test "x$LINGUAS" = x; then
4193 CATALOGS="$CATALOGS $cat"
4194 XLINGUAS="$XLINGUAS $lang"
4195 else
4196 case "$LINGUAS" in *$lang*)
4197 CATALOGS="$CATALOGS $cat"
4198 XLINGUAS="$XLINGUAS $lang"
4199 ;;
4200 esac
4201 fi
4202 done
4203 LINGUAS="$XLINGUAS"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4205 $as_echo "$LINGUAS" >&6; }
4206
4207
4208 DATADIRNAME=share
4209
4210 INSTOBJEXT=.mo
4211
4212 GENCAT=gencat
4213
4214 CATOBJEXT=.gmo
4215
4216 fi
4217
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4220 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4221 # Check whether --enable-maintainer-mode was given.
4222 if test "${enable_maintainer_mode+set}" = set; then :
4223 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4224 else
4225 USE_MAINTAINER_MODE=no
4226 fi
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4229 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4230 if test $USE_MAINTAINER_MODE = yes; then
4231 MAINTAINER_MODE_TRUE=
4232 MAINTAINER_MODE_FALSE='#'
4233 else
4234 MAINTAINER_MODE_TRUE='#'
4235 MAINTAINER_MODE_FALSE=
4236 fi
4237
4238 MAINT=$MAINTAINER_MODE_TRUE
4239
4240
4241
4242
4243 sim_inline="-DDEFAULT_INLINE=0"
4244 # Check whether --enable-sim-inline was given.
4245 if test "${enable_sim_inline+set}" = set; then :
4246 enableval=$enable_sim_inline; sim_inline=""
4247 case "$enableval" in
4248 no) sim_inline="-DDEFAULT_INLINE=0";;
4249 0) sim_inline="-DDEFAULT_INLINE=0";;
4250 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
4251 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
4252 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4253 new_flag=""
4254 case "$x" in
4255 *_INLINE=*) new_flag="-D$x";;
4256 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4257 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
4258 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
4259 esac
4260 if test x"$sim_inline" = x""; then
4261 sim_inline="$new_flag"
4262 else
4263 sim_inline="$sim_inline $new_flag"
4264 fi
4265 done;;
4266 esac
4267 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4268 echo "Setting inline flags = $sim_inline" 6>&1
4269 fi
4270 fi
4271
4272
4273
4274
4275 default_sim_scache="16384"
4276 # Check whether --enable-sim-scache was given.
4277 if test "${enable_sim_scache+set}" = set; then :
4278 enableval=$enable_sim_scache; case "${enableval}" in
4279 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
4280 no) sim_scache="-DWITH_SCACHE=0" ;;
4281 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
4282 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
4283 sim_scache="";;
4284 esac
4285 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
4286 echo "Setting scache size = $sim_scache" 6>&1
4287 fi
4288 else
4289 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
4290 fi
4291
4292
4293
4294 default_sim_default_model="m32r/d"
4295 # Check whether --enable-sim-default-model was given.
4296 if test "${enable_sim_default_model+set}" = set; then :
4297 enableval=$enable_sim_default_model; case "${enableval}" in
4298 yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
4299 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
4300 esac
4301 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
4302 echo "Setting default model = $sim_default_model" 6>&1
4303 fi
4304 else
4305 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
4306 fi
4307
4308
4309
4310 cgen_maint=no
4311 cgen=guile
4312 cgendir='$(srcdir)/../../cgen'
4313 # Check whether --enable-cgen-maint was given.
4314 if test "${enable_cgen_maint+set}" = set; then :
4315 enableval=$enable_cgen_maint; case "${enableval}" in
4316 yes) cgen_maint=yes ;;
4317 no) cgen_maint=no ;;
4318 *)
4319 # Argument is a directory where cgen can be found. In some
4320 # future world cgen could be installable, but right now this
4321 # is not the case. Instead we assume the directory is a path
4322 # to the cgen source tree.
4323 cgen_maint=yes
4324 if test -r ${enableval}/iformat.scm; then
4325 # This looks like a cgen source tree.
4326 cgendir=${enableval}
4327 else
4328 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
4329 fi
4330 ;;
4331 esac
4332 fi
4333 if test x${cgen_maint} != xno ; then
4334 CGEN_MAINT=''
4335 else
4336 CGEN_MAINT='#'
4337 fi
4338
4339
4340
4341
4342
4343 case "${target_alias}" in
4344 m32r*-linux*)
4345 traps_obj=traps-linux.o
4346 sim_extra_cflags="-DM32R_LINUX"
4347 ;;
4348 *)
4349 traps_obj=traps.o
4350 sim_extra_cflags="-DM32R_ELF"
4351 ;;
4352 esac
4353
4354
4355
4356
4357 hardware="cfi core pal glue m32r_cache m32r_uart"
4358 sim_hw_cflags="-DWITH_HW=1"
4359 sim_hw="$hardware"
4360 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4361
4362 # Check whether --enable-sim-hardware was given.
4363 if test "${enable_sim_hardware+set}" = set; then :
4364 enableval=$enable_sim_hardware;
4365 else
4366 enable_sim_hardware="yes"
4367 fi
4368
4369 case ${enable_sim_hardware} in
4370 yes|no) ;;
4371 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4372 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4373 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4374 esac
4375
4376 if test "$enable_sim_hardware" = no; then
4377 sim_hw_objs=
4378 sim_hw_cflags="-DWITH_HW=0"
4379 sim_hw=
4380 else
4381 sim_hw_cflags="-DWITH_HW=1"
4382 # remove duplicates
4383 sim_hw=""
4384 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
4385 for i in $hardware ; do
4386 case " $sim_hw " in
4387 *" $i "*) ;;
4388 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
4389 esac
4390 done
4391 # mingw does not support sockser
4392 case ${host} in
4393 *mingw*) ;;
4394 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
4395 # that you instatiate. Instead, other code will call into it directly.
4396 # At some point, we should convert it over.
4397 sim_hw_objs="$sim_hw_objs dv-sockser.o"
4398 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
4399 ;;
4400 esac
4401 if test x"$silent" != x"yes"; then
4402 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4403 fi
4404 fi
4405
4406
4407
4408 cgen_breaks=""
4409 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
4410 cgen_breaks="break cgen_rtx_error";
4411 fi
4412
4413 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
4414
4415 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
4416
4417 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
4418
4419 ac_config_commands="$ac_config_commands Makefile"
4420
4421 ac_config_commands="$ac_config_commands stamp-h"
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433 cat >confcache <<\_ACEOF
4434 # This file is a shell script that caches the results of configure
4435 # tests run on this system so they can be shared between configure
4436 # scripts and configure runs, see configure's option --config-cache.
4437 # It is not useful on other systems. If it contains results you don't
4438 # want to keep, you may remove or edit it.
4439 #
4440 # config.status only pays attention to the cache file if you give it
4441 # the --recheck option to rerun configure.
4442 #
4443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4445 # following values.
4446
4447 _ACEOF
4448
4449 # The following way of writing the cache mishandles newlines in values,
4450 # but we know of no workaround that is simple, portable, and efficient.
4451 # So, we kill variables containing newlines.
4452 # Ultrix sh set writes to stderr and can't be redirected directly,
4453 # and sets the high bit in the cache file unless we assign to the vars.
4454 (
4455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4456 eval ac_val=\$$ac_var
4457 case $ac_val in #(
4458 *${as_nl}*)
4459 case $ac_var in #(
4460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4462 esac
4463 case $ac_var in #(
4464 _ | IFS | as_nl) ;; #(
4465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4466 *) { eval $ac_var=; unset $ac_var;} ;;
4467 esac ;;
4468 esac
4469 done
4470
4471 (set) 2>&1 |
4472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4473 *${as_nl}ac_space=\ *)
4474 # `set' does not quote correctly, so add quotes: double-quote
4475 # substitution turns \\\\ into \\, and sed turns \\ into \.
4476 sed -n \
4477 "s/'/'\\\\''/g;
4478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4479 ;; #(
4480 *)
4481 # `set' quotes correctly as required by POSIX, so do not add quotes.
4482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4483 ;;
4484 esac |
4485 sort
4486 ) |
4487 sed '
4488 /^ac_cv_env_/b end
4489 t clear
4490 :clear
4491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4492 t end
4493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4494 :end' >>confcache
4495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4496 if test -w "$cache_file"; then
4497 if test "x$cache_file" != "x/dev/null"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4499 $as_echo "$as_me: updating cache $cache_file" >&6;}
4500 if test ! -f "$cache_file" || test -h "$cache_file"; then
4501 cat confcache >"$cache_file"
4502 else
4503 case $cache_file in #(
4504 */* | ?:*)
4505 mv -f confcache "$cache_file"$$ &&
4506 mv -f "$cache_file"$$ "$cache_file" ;; #(
4507 *)
4508 mv -f confcache "$cache_file" ;;
4509 esac
4510 fi
4511 fi
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4515 fi
4516 fi
4517 rm -f confcache
4518
4519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4520 # Let make expand exec_prefix.
4521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4522
4523 # Transform confdefs.h into DEFS.
4524 # Protect against shell expansion while executing Makefile rules.
4525 # Protect against Makefile macro expansion.
4526 #
4527 # If the first sed substitution is executed (which looks for macros that
4528 # take arguments), then branch to the quote section. Otherwise,
4529 # look for a macro that doesn't take arguments.
4530 ac_script='
4531 :mline
4532 /\\$/{
4533 N
4534 s,\\\n,,
4535 b mline
4536 }
4537 t clear
4538 :clear
4539 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4540 t quote
4541 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4542 t quote
4543 b any
4544 :quote
4545 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4546 s/\[/\\&/g
4547 s/\]/\\&/g
4548 s/\$/$$/g
4549 H
4550 :any
4551 ${
4552 g
4553 s/^\n//
4554 s/\n/ /g
4555 p
4556 }
4557 '
4558 DEFS=`sed -n "$ac_script" confdefs.h`
4559
4560
4561 ac_libobjs=
4562 ac_ltlibobjs=
4563 U=
4564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4565 # 1. Remove the extension, and $U if already installed.
4566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4567 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4569 # will be set to the directory where LIBOBJS objects are built.
4570 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4571 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4572 done
4573 LIBOBJS=$ac_libobjs
4574
4575 LTLIBOBJS=$ac_ltlibobjs
4576
4577
4578
4579 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4580 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4582 fi
4583
4584 : "${CONFIG_STATUS=./config.status}"
4585 ac_write_fail=0
4586 ac_clean_files_save=$ac_clean_files
4587 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4589 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4590 as_write_fail=0
4591 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4592 #! $SHELL
4593 # Generated by $as_me.
4594 # Run this file to recreate the current configuration.
4595 # Compiler output produced by configure, useful for debugging
4596 # configure, is in config.log if it exists.
4597
4598 debug=false
4599 ac_cs_recheck=false
4600 ac_cs_silent=false
4601
4602 SHELL=\${CONFIG_SHELL-$SHELL}
4603 export SHELL
4604 _ASEOF
4605 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4606 ## -------------------- ##
4607 ## M4sh Initialization. ##
4608 ## -------------------- ##
4609
4610 # Be more Bourne compatible
4611 DUALCASE=1; export DUALCASE # for MKS sh
4612 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4613 emulate sh
4614 NULLCMD=:
4615 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4616 # is contrary to our usage. Disable this feature.
4617 alias -g '${1+"$@"}'='"$@"'
4618 setopt NO_GLOB_SUBST
4619 else
4620 case `(set -o) 2>/dev/null` in #(
4621 *posix*) :
4622 set -o posix ;; #(
4623 *) :
4624 ;;
4625 esac
4626 fi
4627
4628
4629 as_nl='
4630 '
4631 export as_nl
4632 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4633 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4634 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4636 # Prefer a ksh shell builtin over an external printf program on Solaris,
4637 # but without wasting forks for bash or zsh.
4638 if test -z "$BASH_VERSION$ZSH_VERSION" \
4639 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4640 as_echo='print -r --'
4641 as_echo_n='print -rn --'
4642 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4643 as_echo='printf %s\n'
4644 as_echo_n='printf %s'
4645 else
4646 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4647 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4648 as_echo_n='/usr/ucb/echo -n'
4649 else
4650 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4651 as_echo_n_body='eval
4652 arg=$1;
4653 case $arg in #(
4654 *"$as_nl"*)
4655 expr "X$arg" : "X\\(.*\\)$as_nl";
4656 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4657 esac;
4658 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4659 '
4660 export as_echo_n_body
4661 as_echo_n='sh -c $as_echo_n_body as_echo'
4662 fi
4663 export as_echo_body
4664 as_echo='sh -c $as_echo_body as_echo'
4665 fi
4666
4667 # The user is always right.
4668 if test "${PATH_SEPARATOR+set}" != set; then
4669 PATH_SEPARATOR=:
4670 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4671 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4672 PATH_SEPARATOR=';'
4673 }
4674 fi
4675
4676
4677 # IFS
4678 # We need space, tab and new line, in precisely that order. Quoting is
4679 # there to prevent editors from complaining about space-tab.
4680 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4681 # splitting by setting IFS to empty value.)
4682 IFS=" "" $as_nl"
4683
4684 # Find who we are. Look in the path if we contain no directory separator.
4685 as_myself=
4686 case $0 in #((
4687 *[\\/]* ) as_myself=$0 ;;
4688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4694 done
4695 IFS=$as_save_IFS
4696
4697 ;;
4698 esac
4699 # We did not find ourselves, most probably we were run as `sh COMMAND'
4700 # in which case we are not to be found in the path.
4701 if test "x$as_myself" = x; then
4702 as_myself=$0
4703 fi
4704 if test ! -f "$as_myself"; then
4705 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4706 exit 1
4707 fi
4708
4709 # Unset variables that we do not need and which cause bugs (e.g. in
4710 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4711 # suppresses any "Segmentation fault" message there. '((' could
4712 # trigger a bug in pdksh 5.2.14.
4713 for as_var in BASH_ENV ENV MAIL MAILPATH
4714 do eval test x\${$as_var+set} = xset \
4715 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4716 done
4717 PS1='$ '
4718 PS2='> '
4719 PS4='+ '
4720
4721 # NLS nuisances.
4722 LC_ALL=C
4723 export LC_ALL
4724 LANGUAGE=C
4725 export LANGUAGE
4726
4727 # CDPATH.
4728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4729
4730
4731 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4732 # ----------------------------------------
4733 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4734 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4735 # script with STATUS, using 1 if that was 0.
4736 as_fn_error ()
4737 {
4738 as_status=$1; test $as_status -eq 0 && as_status=1
4739 if test "$4"; then
4740 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4741 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4742 fi
4743 $as_echo "$as_me: error: $2" >&2
4744 as_fn_exit $as_status
4745 } # as_fn_error
4746
4747
4748 # as_fn_set_status STATUS
4749 # -----------------------
4750 # Set $? to STATUS, without forking.
4751 as_fn_set_status ()
4752 {
4753 return $1
4754 } # as_fn_set_status
4755
4756 # as_fn_exit STATUS
4757 # -----------------
4758 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4759 as_fn_exit ()
4760 {
4761 set +e
4762 as_fn_set_status $1
4763 exit $1
4764 } # as_fn_exit
4765
4766 # as_fn_unset VAR
4767 # ---------------
4768 # Portably unset VAR.
4769 as_fn_unset ()
4770 {
4771 { eval $1=; unset $1;}
4772 }
4773 as_unset=as_fn_unset
4774 # as_fn_append VAR VALUE
4775 # ----------------------
4776 # Append the text in VALUE to the end of the definition contained in VAR. Take
4777 # advantage of any shell optimizations that allow amortized linear growth over
4778 # repeated appends, instead of the typical quadratic growth present in naive
4779 # implementations.
4780 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4781 eval 'as_fn_append ()
4782 {
4783 eval $1+=\$2
4784 }'
4785 else
4786 as_fn_append ()
4787 {
4788 eval $1=\$$1\$2
4789 }
4790 fi # as_fn_append
4791
4792 # as_fn_arith ARG...
4793 # ------------------
4794 # Perform arithmetic evaluation on the ARGs, and store the result in the
4795 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4796 # must be portable across $(()) and expr.
4797 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4798 eval 'as_fn_arith ()
4799 {
4800 as_val=$(( $* ))
4801 }'
4802 else
4803 as_fn_arith ()
4804 {
4805 as_val=`expr "$@" || test $? -eq 1`
4806 }
4807 fi # as_fn_arith
4808
4809
4810 if expr a : '\(a\)' >/dev/null 2>&1 &&
4811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4812 as_expr=expr
4813 else
4814 as_expr=false
4815 fi
4816
4817 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4818 as_basename=basename
4819 else
4820 as_basename=false
4821 fi
4822
4823 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4824 as_dirname=dirname
4825 else
4826 as_dirname=false
4827 fi
4828
4829 as_me=`$as_basename -- "$0" ||
4830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4831 X"$0" : 'X\(//\)$' \| \
4832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4833 $as_echo X/"$0" |
4834 sed '/^.*\/\([^/][^/]*\)\/*$/{
4835 s//\1/
4836 q
4837 }
4838 /^X\/\(\/\/\)$/{
4839 s//\1/
4840 q
4841 }
4842 /^X\/\(\/\).*/{
4843 s//\1/
4844 q
4845 }
4846 s/.*/./; q'`
4847
4848 # Avoid depending upon Character Ranges.
4849 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4850 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4851 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4852 as_cr_digits='0123456789'
4853 as_cr_alnum=$as_cr_Letters$as_cr_digits
4854
4855 ECHO_C= ECHO_N= ECHO_T=
4856 case `echo -n x` in #(((((
4857 -n*)
4858 case `echo 'xy\c'` in
4859 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4860 xy) ECHO_C='\c';;
4861 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4862 ECHO_T=' ';;
4863 esac;;
4864 *)
4865 ECHO_N='-n';;
4866 esac
4867
4868 rm -f conf$$ conf$$.exe conf$$.file
4869 if test -d conf$$.dir; then
4870 rm -f conf$$.dir/conf$$.file
4871 else
4872 rm -f conf$$.dir
4873 mkdir conf$$.dir 2>/dev/null
4874 fi
4875 if (echo >conf$$.file) 2>/dev/null; then
4876 if ln -s conf$$.file conf$$ 2>/dev/null; then
4877 as_ln_s='ln -s'
4878 # ... but there are two gotchas:
4879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4881 # In both cases, we have to default to `cp -pR'.
4882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4883 as_ln_s='cp -pR'
4884 elif ln conf$$.file conf$$ 2>/dev/null; then
4885 as_ln_s=ln
4886 else
4887 as_ln_s='cp -pR'
4888 fi
4889 else
4890 as_ln_s='cp -pR'
4891 fi
4892 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4893 rmdir conf$$.dir 2>/dev/null
4894
4895
4896 # as_fn_mkdir_p
4897 # -------------
4898 # Create "$as_dir" as a directory, including parents if necessary.
4899 as_fn_mkdir_p ()
4900 {
4901
4902 case $as_dir in #(
4903 -*) as_dir=./$as_dir;;
4904 esac
4905 test -d "$as_dir" || eval $as_mkdir_p || {
4906 as_dirs=
4907 while :; do
4908 case $as_dir in #(
4909 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4910 *) as_qdir=$as_dir;;
4911 esac
4912 as_dirs="'$as_qdir' $as_dirs"
4913 as_dir=`$as_dirname -- "$as_dir" ||
4914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4915 X"$as_dir" : 'X\(//\)[^/]' \| \
4916 X"$as_dir" : 'X\(//\)$' \| \
4917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4918 $as_echo X"$as_dir" |
4919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4920 s//\1/
4921 q
4922 }
4923 /^X\(\/\/\)[^/].*/{
4924 s//\1/
4925 q
4926 }
4927 /^X\(\/\/\)$/{
4928 s//\1/
4929 q
4930 }
4931 /^X\(\/\).*/{
4932 s//\1/
4933 q
4934 }
4935 s/.*/./; q'`
4936 test -d "$as_dir" && break
4937 done
4938 test -z "$as_dirs" || eval "mkdir $as_dirs"
4939 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4940
4941
4942 } # as_fn_mkdir_p
4943 if mkdir -p . 2>/dev/null; then
4944 as_mkdir_p='mkdir -p "$as_dir"'
4945 else
4946 test -d ./-p && rmdir ./-p
4947 as_mkdir_p=false
4948 fi
4949
4950
4951 # as_fn_executable_p FILE
4952 # -----------------------
4953 # Test if FILE is an executable regular file.
4954 as_fn_executable_p ()
4955 {
4956 test -f "$1" && test -x "$1"
4957 } # as_fn_executable_p
4958 as_test_x='test -x'
4959 as_executable_p=as_fn_executable_p
4960
4961 # Sed expression to map a string onto a valid CPP name.
4962 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4963
4964 # Sed expression to map a string onto a valid variable name.
4965 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4966
4967
4968 exec 6>&1
4969 ## ----------------------------------- ##
4970 ## Main body of $CONFIG_STATUS script. ##
4971 ## ----------------------------------- ##
4972 _ASEOF
4973 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4974
4975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4976 # Save the log message, to keep $0 and so on meaningful, and to
4977 # report actual input values of CONFIG_FILES etc. instead of their
4978 # values after options handling.
4979 ac_log="
4980 This file was extended by $as_me, which was
4981 generated by GNU Autoconf 2.69. Invocation command line was
4982
4983 CONFIG_FILES = $CONFIG_FILES
4984 CONFIG_HEADERS = $CONFIG_HEADERS
4985 CONFIG_LINKS = $CONFIG_LINKS
4986 CONFIG_COMMANDS = $CONFIG_COMMANDS
4987 $ $0 $@
4988
4989 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4990 "
4991
4992 _ACEOF
4993
4994 case $ac_config_files in *"
4995 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4996 esac
4997
4998
4999
5000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5001 # Files that config.status was made for.
5002 config_files="$ac_config_files"
5003 config_commands="$ac_config_commands"
5004
5005 _ACEOF
5006
5007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5008 ac_cs_usage="\
5009 \`$as_me' instantiates files and other configuration actions
5010 from templates according to the current configuration. Unless the files
5011 and actions are specified as TAGs, all are instantiated by default.
5012
5013 Usage: $0 [OPTION]... [TAG]...
5014
5015 -h, --help print this help, then exit
5016 -V, --version print version number and configuration settings, then exit
5017 --config print configuration, then exit
5018 -q, --quiet, --silent
5019 do not print progress messages
5020 -d, --debug don't remove temporary files
5021 --recheck update $as_me by reconfiguring in the same conditions
5022 --file=FILE[:TEMPLATE]
5023 instantiate the configuration file FILE
5024
5025 Configuration files:
5026 $config_files
5027
5028 Configuration commands:
5029 $config_commands
5030
5031 Report bugs to the package provider."
5032
5033 _ACEOF
5034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5035 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5036 ac_cs_version="\\
5037 config.status
5038 configured by $0, generated by GNU Autoconf 2.69,
5039 with options \\"\$ac_cs_config\\"
5040
5041 Copyright (C) 2012 Free Software Foundation, Inc.
5042 This config.status script is free software; the Free Software Foundation
5043 gives unlimited permission to copy, distribute and modify it."
5044
5045 ac_pwd='$ac_pwd'
5046 srcdir='$srcdir'
5047 INSTALL='$INSTALL'
5048 test -n "\$AWK" || AWK=awk
5049 _ACEOF
5050
5051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5052 # The default lists apply if the user does not specify any file.
5053 ac_need_defaults=:
5054 while test $# != 0
5055 do
5056 case $1 in
5057 --*=?*)
5058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5060 ac_shift=:
5061 ;;
5062 --*=)
5063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5064 ac_optarg=
5065 ac_shift=:
5066 ;;
5067 *)
5068 ac_option=$1
5069 ac_optarg=$2
5070 ac_shift=shift
5071 ;;
5072 esac
5073
5074 case $ac_option in
5075 # Handling of the options.
5076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5077 ac_cs_recheck=: ;;
5078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5079 $as_echo "$ac_cs_version"; exit ;;
5080 --config | --confi | --conf | --con | --co | --c )
5081 $as_echo "$ac_cs_config"; exit ;;
5082 --debug | --debu | --deb | --de | --d | -d )
5083 debug=: ;;
5084 --file | --fil | --fi | --f )
5085 $ac_shift
5086 case $ac_optarg in
5087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5088 '') as_fn_error $? "missing file argument" ;;
5089 esac
5090 as_fn_append CONFIG_FILES " '$ac_optarg'"
5091 ac_need_defaults=false;;
5092 --he | --h | --help | --hel | -h )
5093 $as_echo "$ac_cs_usage"; exit ;;
5094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5096 ac_cs_silent=: ;;
5097
5098 # This is an error.
5099 -*) as_fn_error $? "unrecognized option: \`$1'
5100 Try \`$0 --help' for more information." ;;
5101
5102 *) as_fn_append ac_config_targets " $1"
5103 ac_need_defaults=false ;;
5104
5105 esac
5106 shift
5107 done
5108
5109 ac_configure_extra_args=
5110
5111 if $ac_cs_silent; then
5112 exec 6>/dev/null
5113 ac_configure_extra_args="$ac_configure_extra_args --silent"
5114 fi
5115
5116 _ACEOF
5117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5118 if \$ac_cs_recheck; then
5119 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5120 shift
5121 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5122 CONFIG_SHELL='$SHELL'
5123 export CONFIG_SHELL
5124 exec "\$@"
5125 fi
5126
5127 _ACEOF
5128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5129 exec 5>>config.log
5130 {
5131 echo
5132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5133 ## Running $as_me. ##
5134 _ASBOX
5135 $as_echo "$ac_log"
5136 } >&5
5137
5138 _ACEOF
5139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5140 #
5141 # INIT-COMMANDS
5142 #
5143 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
5144
5145 _ACEOF
5146
5147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5148
5149 # Handling of arguments.
5150 for ac_config_target in $ac_config_targets
5151 do
5152 case $ac_config_target in
5153 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
5154 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5155 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5156 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5157 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5158 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5159
5160 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5161 esac
5162 done
5163
5164
5165 # If the user did not use the arguments to specify the items to instantiate,
5166 # then the envvar interface is used. Set only those that are not.
5167 # We use the long form for the default assignment because of an extremely
5168 # bizarre bug on SunOS 4.1.3.
5169 if $ac_need_defaults; then
5170 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5171 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5172 fi
5173
5174 # Have a temporary directory for convenience. Make it in the build tree
5175 # simply because there is no reason against having it here, and in addition,
5176 # creating and moving files from /tmp can sometimes cause problems.
5177 # Hook for its removal unless debugging.
5178 # Note that there is a small window in which the directory will not be cleaned:
5179 # after its creation but before its name has been assigned to `$tmp'.
5180 $debug ||
5181 {
5182 tmp= ac_tmp=
5183 trap 'exit_status=$?
5184 : "${ac_tmp:=$tmp}"
5185 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5186 ' 0
5187 trap 'as_fn_exit 1' 1 2 13 15
5188 }
5189 # Create a (secure) tmp directory for tmp files.
5190
5191 {
5192 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5193 test -d "$tmp"
5194 } ||
5195 {
5196 tmp=./conf$$-$RANDOM
5197 (umask 077 && mkdir "$tmp")
5198 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5199 ac_tmp=$tmp
5200
5201 # Set up the scripts for CONFIG_FILES section.
5202 # No need to generate them if there are no CONFIG_FILES.
5203 # This happens for instance with `./config.status config.h'.
5204 if test -n "$CONFIG_FILES"; then
5205
5206
5207 ac_cr=`echo X | tr X '\015'`
5208 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5209 # But we know of no other shell where ac_cr would be empty at this
5210 # point, so we can use a bashism as a fallback.
5211 if test "x$ac_cr" = x; then
5212 eval ac_cr=\$\'\\r\'
5213 fi
5214 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5215 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5216 ac_cs_awk_cr='\\r'
5217 else
5218 ac_cs_awk_cr=$ac_cr
5219 fi
5220
5221 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5222 _ACEOF
5223
5224
5225 {
5226 echo "cat >conf$$subs.awk <<_ACEOF" &&
5227 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5228 echo "_ACEOF"
5229 } >conf$$subs.sh ||
5230 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5231 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5232 ac_delim='%!_!# '
5233 for ac_last_try in false false false false false :; do
5234 . ./conf$$subs.sh ||
5235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5236
5237 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5238 if test $ac_delim_n = $ac_delim_num; then
5239 break
5240 elif $ac_last_try; then
5241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5242 else
5243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5244 fi
5245 done
5246 rm -f conf$$subs.sh
5247
5248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5249 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5250 _ACEOF
5251 sed -n '
5252 h
5253 s/^/S["/; s/!.*/"]=/
5254 p
5255 g
5256 s/^[^!]*!//
5257 :repl
5258 t repl
5259 s/'"$ac_delim"'$//
5260 t delim
5261 :nl
5262 h
5263 s/\(.\{148\}\)..*/\1/
5264 t more1
5265 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5266 p
5267 n
5268 b repl
5269 :more1
5270 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5271 p
5272 g
5273 s/.\{148\}//
5274 t nl
5275 :delim
5276 h
5277 s/\(.\{148\}\)..*/\1/
5278 t more2
5279 s/["\\]/\\&/g; s/^/"/; s/$/"/
5280 p
5281 b
5282 :more2
5283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5284 p
5285 g
5286 s/.\{148\}//
5287 t delim
5288 ' <conf$$subs.awk | sed '
5289 /^[^""]/{
5290 N
5291 s/\n//
5292 }
5293 ' >>$CONFIG_STATUS || ac_write_fail=1
5294 rm -f conf$$subs.awk
5295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5296 _ACAWK
5297 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5298 for (key in S) S_is_set[key] = 1
5299 FS = "\a"
5300
5301 }
5302 {
5303 line = $ 0
5304 nfields = split(line, field, "@")
5305 substed = 0
5306 len = length(field[1])
5307 for (i = 2; i < nfields; i++) {
5308 key = field[i]
5309 keylen = length(key)
5310 if (S_is_set[key]) {
5311 value = S[key]
5312 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5313 len += length(value) + length(field[++i])
5314 substed = 1
5315 } else
5316 len += 1 + keylen
5317 }
5318
5319 print line
5320 }
5321
5322 _ACAWK
5323 _ACEOF
5324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5325 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5326 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5327 else
5328 cat
5329 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5330 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5331 _ACEOF
5332
5333 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5334 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5335 # trailing colons and then remove the whole line if VPATH becomes empty
5336 # (actually we leave an empty line to preserve line numbers).
5337 if test "x$srcdir" = x.; then
5338 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5339 h
5340 s///
5341 s/^/:/
5342 s/[ ]*$/:/
5343 s/:\$(srcdir):/:/g
5344 s/:\${srcdir}:/:/g
5345 s/:@srcdir@:/:/g
5346 s/^:*//
5347 s/:*$//
5348 x
5349 s/\(=[ ]*\).*/\1/
5350 G
5351 s/\n//
5352 s/^[^=]*=[ ]*$//
5353 }'
5354 fi
5355
5356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5357 fi # test -n "$CONFIG_FILES"
5358
5359
5360 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
5361 shift
5362 for ac_tag
5363 do
5364 case $ac_tag in
5365 :[FHLC]) ac_mode=$ac_tag; continue;;
5366 esac
5367 case $ac_mode$ac_tag in
5368 :[FHL]*:*);;
5369 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5370 :[FH]-) ac_tag=-:-;;
5371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5372 esac
5373 ac_save_IFS=$IFS
5374 IFS=:
5375 set x $ac_tag
5376 IFS=$ac_save_IFS
5377 shift
5378 ac_file=$1
5379 shift
5380
5381 case $ac_mode in
5382 :L) ac_source=$1;;
5383 :[FH])
5384 ac_file_inputs=
5385 for ac_f
5386 do
5387 case $ac_f in
5388 -) ac_f="$ac_tmp/stdin";;
5389 *) # Look for the file first in the build tree, then in the source tree
5390 # (if the path is not absolute). The absolute path cannot be DOS-style,
5391 # because $ac_f cannot contain `:'.
5392 test -f "$ac_f" ||
5393 case $ac_f in
5394 [\\/$]*) false;;
5395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5396 esac ||
5397 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5398 esac
5399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5400 as_fn_append ac_file_inputs " '$ac_f'"
5401 done
5402
5403 # Let's still pretend it is `configure' which instantiates (i.e., don't
5404 # use $as_me), people would be surprised to read:
5405 # /* config.h. Generated by config.status. */
5406 configure_input='Generated from '`
5407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5408 `' by configure.'
5409 if test x"$ac_file" != x-; then
5410 configure_input="$ac_file. $configure_input"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5412 $as_echo "$as_me: creating $ac_file" >&6;}
5413 fi
5414 # Neutralize special characters interpreted by sed in replacement strings.
5415 case $configure_input in #(
5416 *\&* | *\|* | *\\* )
5417 ac_sed_conf_input=`$as_echo "$configure_input" |
5418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5419 *) ac_sed_conf_input=$configure_input;;
5420 esac
5421
5422 case $ac_tag in
5423 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5425 esac
5426 ;;
5427 esac
5428
5429 ac_dir=`$as_dirname -- "$ac_file" ||
5430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5431 X"$ac_file" : 'X\(//\)[^/]' \| \
5432 X"$ac_file" : 'X\(//\)$' \| \
5433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5434 $as_echo X"$ac_file" |
5435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5436 s//\1/
5437 q
5438 }
5439 /^X\(\/\/\)[^/].*/{
5440 s//\1/
5441 q
5442 }
5443 /^X\(\/\/\)$/{
5444 s//\1/
5445 q
5446 }
5447 /^X\(\/\).*/{
5448 s//\1/
5449 q
5450 }
5451 s/.*/./; q'`
5452 as_dir="$ac_dir"; as_fn_mkdir_p
5453 ac_builddir=.
5454
5455 case "$ac_dir" in
5456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5457 *)
5458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5459 # A ".." for each directory in $ac_dir_suffix.
5460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5461 case $ac_top_builddir_sub in
5462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5464 esac ;;
5465 esac
5466 ac_abs_top_builddir=$ac_pwd
5467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5468 # for backward compatibility:
5469 ac_top_builddir=$ac_top_build_prefix
5470
5471 case $srcdir in
5472 .) # We are building in place.
5473 ac_srcdir=.
5474 ac_top_srcdir=$ac_top_builddir_sub
5475 ac_abs_top_srcdir=$ac_pwd ;;
5476 [\\/]* | ?:[\\/]* ) # Absolute name.
5477 ac_srcdir=$srcdir$ac_dir_suffix;
5478 ac_top_srcdir=$srcdir
5479 ac_abs_top_srcdir=$srcdir ;;
5480 *) # Relative name.
5481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5482 ac_top_srcdir=$ac_top_build_prefix$srcdir
5483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5484 esac
5485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5486
5487
5488 case $ac_mode in
5489 :F)
5490 #
5491 # CONFIG_FILE
5492 #
5493
5494 case $INSTALL in
5495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5497 esac
5498 _ACEOF
5499
5500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5501 # If the template does not know about datarootdir, expand it.
5502 # FIXME: This hack should be removed a few years after 2.60.
5503 ac_datarootdir_hack=; ac_datarootdir_seen=
5504 ac_sed_dataroot='
5505 /datarootdir/ {
5506 p
5507 q
5508 }
5509 /@datadir@/p
5510 /@docdir@/p
5511 /@infodir@/p
5512 /@localedir@/p
5513 /@mandir@/p'
5514 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5515 *datarootdir*) ac_datarootdir_seen=yes;;
5516 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5518 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5519 _ACEOF
5520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5521 ac_datarootdir_hack='
5522 s&@datadir@&$datadir&g
5523 s&@docdir@&$docdir&g
5524 s&@infodir@&$infodir&g
5525 s&@localedir@&$localedir&g
5526 s&@mandir@&$mandir&g
5527 s&\\\${datarootdir}&$datarootdir&g' ;;
5528 esac
5529 _ACEOF
5530
5531 # Neutralize VPATH when `$srcdir' = `.'.
5532 # Shell code in configure.ac might set extrasub.
5533 # FIXME: do we really want to maintain this feature?
5534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5535 ac_sed_extra="$ac_vpsub
5536 $extrasub
5537 _ACEOF
5538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5539 :t
5540 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5541 s|@configure_input@|$ac_sed_conf_input|;t t
5542 s&@top_builddir@&$ac_top_builddir_sub&;t t
5543 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5544 s&@srcdir@&$ac_srcdir&;t t
5545 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5546 s&@top_srcdir@&$ac_top_srcdir&;t t
5547 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5548 s&@builddir@&$ac_builddir&;t t
5549 s&@abs_builddir@&$ac_abs_builddir&;t t
5550 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5551 s&@INSTALL@&$ac_INSTALL&;t t
5552 $ac_datarootdir_hack
5553 "
5554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5555 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5556
5557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5558 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5560 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5562 which seems to be undefined. Please make sure it is defined" >&5
5563 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5564 which seems to be undefined. Please make sure it is defined" >&2;}
5565
5566 rm -f "$ac_tmp/stdin"
5567 case $ac_file in
5568 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5569 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5570 esac \
5571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5572 ;;
5573
5574
5575 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5576 $as_echo "$as_me: executing $ac_file commands" >&6;}
5577 ;;
5578 esac
5579
5580
5581 case $ac_file$ac_mode in
5582 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
5583 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5584 rm -f Makesim1.tmp Makesim2.tmp Makefile
5585 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
5586 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
5587 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5588 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5589 <Makefile.sim >Makefile
5590 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5591 ;;
5592 "stamp-h":C) echo > stamp-h ;;
5593
5594 esac
5595 done # for ac_tag
5596
5597
5598 as_fn_exit 0
5599 _ACEOF
5600 ac_clean_files=$ac_clean_files_save
5601
5602 test $ac_write_fail = 0 ||
5603 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5604
5605
5606 # configure is writing to config.log, and then calls config.status.
5607 # config.status does its own redirection, appending to config.log.
5608 # Unfortunately, on DOS this fails, as config.log is still kept open
5609 # by configure, so config.status won't be able to write to it; its
5610 # output is simply discarded. So we exec the FD to /dev/null,
5611 # effectively closing config.log, so it can be properly (re)opened and
5612 # appended to by config.status. When coming back to configure, we
5613 # need to make the FD available again.
5614 if test "$no_create" != yes; then
5615 ac_cs_success=:
5616 ac_config_status_args=
5617 test "$silent" = yes &&
5618 ac_config_status_args="$ac_config_status_args --quiet"
5619 exec 5>/dev/null
5620 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5621 exec 5>>config.log
5622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5623 # would make configure fail if this is the last instruction.
5624 $ac_cs_success || as_fn_exit 1
5625 fi
5626 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5628 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5629 fi
5630
5631