0eb28b06790b68b8b9acca1e902a23df431624cd
[deliverable/binutils-gdb.git] / sim / frv / 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_trapdump
629 cgen
630 cgendir
631 CGEN_MAINT
632 MAINT
633 MAINTAINER_MODE_FALSE
634 MAINTAINER_MODE_TRUE
635 CATOBJEXT
636 GENCAT
637 INSTOBJEXT
638 DATADIRNAME
639 CATALOGS
640 POSUB
641 GMSGFMT
642 XGETTEXT
643 INCINTL
644 LIBINTL_DEP
645 LIBINTL
646 USE_NLS
647 CCDEPMODE
648 DEPDIR
649 am__leading_dot
650 C_DIALECT
651 RANLIB
652 AR
653 LDFLAGS_FOR_BUILD
654 CFLAGS_FOR_BUILD
655 RANLIB_FOR_BUILD
656 CC_FOR_BUILD
657 AR_FOR_BUILD
658 INSTALL_DATA
659 INSTALL_SCRIPT
660 INSTALL_PROGRAM
661 EGREP
662 GREP
663 CPP
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 target_os
672 target_vendor
673 target_cpu
674 target
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 target_alias
684 host_alias
685 build_alias
686 LIBS
687 ECHO_T
688 ECHO_N
689 ECHO_C
690 DEFS
691 mandir
692 localedir
693 libdir
694 psdir
695 pdfdir
696 dvidir
697 htmldir
698 infodir
699 docdir
700 oldincludedir
701 includedir
702 localstatedir
703 sharedstatedir
704 sysconfdir
705 datadir
706 datarootdir
707 libexecdir
708 sbindir
709 bindir
710 program_transform_name
711 prefix
712 exec_prefix
713 PACKAGE_URL
714 PACKAGE_BUGREPORT
715 PACKAGE_STRING
716 PACKAGE_VERSION
717 PACKAGE_TARNAME
718 PACKAGE_NAME
719 PATH_SEPARATOR
720 SHELL
721 sim_scache
722 sim_inline
723 sim_hw
724 sim_hw_objs
725 sim_hw_cflags
726 sim_default_model'
727 ac_subst_files=''
728 ac_user_opts='
729 enable_option_checking
730 enable_maintainer_mode
731 enable_sim_inline
732 enable_sim_scache
733 enable_sim_default_model
734 enable_cgen_maint
735 enable_sim_trapdump
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-trapdump Make unknown traps dump the registers
1375 --enable-sim-hardware=LIST
1376 Specify the hardware to be included in the build.
1377
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1386 CPP C preprocessor
1387
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1390
1391 Report bugs to the package provider.
1392 _ACEOF
1393 ac_status=$?
1394 fi
1395
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" ||
1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1401 continue
1402 ac_builddir=.
1403
1404 case "$ac_dir" in
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *)
1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414 esac
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1419
1420 case $srcdir in
1421 .) # We are building in place.
1422 ac_srcdir=.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 esac
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1444 else
1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1448 done
1449 fi
1450
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1453 cat <<\_ACEOF
1454 configure
1455 generated by GNU Autoconf 2.69
1456
1457 Copyright (C) 2012 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1462 fi
1463
1464 ## ------------------------ ##
1465 ## Autoconf initialization. ##
1466 ## ------------------------ ##
1467
1468 # ac_fn_c_try_compile LINENO
1469 # --------------------------
1470 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_compile ()
1472 {
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 rm -f conftest.$ac_objext
1475 if { { ac_try="$ac_compile"
1476 case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479 esac
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_compile") 2>conftest.err
1483 ac_status=$?
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1488 fi
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } && {
1491 test -z "$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1493 } && test -s conftest.$ac_objext; then :
1494 ac_retval=0
1495 else
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1498
1499 ac_retval=1
1500 fi
1501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502 as_fn_set_status $ac_retval
1503
1504 } # ac_fn_c_try_compile
1505
1506 # ac_fn_c_try_cpp LINENO
1507 # ----------------------
1508 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_cpp ()
1510 {
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 if { { ac_try="$ac_cpp conftest.$ac_ext"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } > conftest.i && {
1528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 }; then :
1531 ac_retval=0
1532 else
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1535
1536 ac_retval=1
1537 fi
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1540
1541 } # ac_fn_c_try_cpp
1542
1543 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1544 # -------------------------------------------------------
1545 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1546 # the include files in INCLUDES and setting the cache variable VAR
1547 # accordingly.
1548 ac_fn_c_check_header_mongrel ()
1549 {
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if eval \${$3+:} false; then :
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553 $as_echo_n "checking for $2... " >&6; }
1554 if eval \${$3+:} false; then :
1555 $as_echo_n "(cached) " >&6
1556 fi
1557 eval ac_res=\$$3
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1559 $as_echo "$ac_res" >&6; }
1560 else
1561 # Is the header compilable?
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1563 $as_echo_n "checking $2 usability... " >&6; }
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1566 $4
1567 #include <$2>
1568 _ACEOF
1569 if ac_fn_c_try_compile "$LINENO"; then :
1570 ac_header_compiler=yes
1571 else
1572 ac_header_compiler=no
1573 fi
1574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1576 $as_echo "$ac_header_compiler" >&6; }
1577
1578 # Is the header present?
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1580 $as_echo_n "checking $2 presence... " >&6; }
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1583 #include <$2>
1584 _ACEOF
1585 if ac_fn_c_try_cpp "$LINENO"; then :
1586 ac_header_preproc=yes
1587 else
1588 ac_header_preproc=no
1589 fi
1590 rm -f conftest.err conftest.i conftest.$ac_ext
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1592 $as_echo "$ac_header_preproc" >&6; }
1593
1594 # So? What about this header?
1595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1596 yes:no: )
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1598 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1600 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1601 ;;
1602 no:yes:* )
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1604 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1606 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1608 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1610 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1613 ;;
1614 esac
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1619 else
1620 eval "$3=\$ac_header_compiler"
1621 fi
1622 eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628 } # ac_fn_c_check_header_mongrel
1629
1630 # ac_fn_c_try_run LINENO
1631 # ----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633 # that executables *can* be run.
1634 ac_fn_c_try_run ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_link"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>&5
1645 ac_status=$?
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648 { { case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_try") 2>&5
1655 ac_status=$?
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; }; }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: program exited with status $ac_status" >&5
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=$ac_status
1665 fi
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_run
1671
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 $4
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690 eval "$3=yes"
1691 else
1692 eval "$3=no"
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 fi
1696 eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701 } # ac_fn_c_check_header_compile
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1705
1706 It was created by $as_me, which was
1707 generated by GNU Autoconf 2.69. Invocation command line was
1708
1709 $ $0 $@
1710
1711 _ACEOF
1712 exec 5>>config.log
1713 {
1714 cat <<_ASUNAME
1715 ## --------- ##
1716 ## Platform. ##
1717 ## --------- ##
1718
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736 _ASUNAME
1737
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 $as_echo "PATH: $as_dir"
1744 done
1745 IFS=$as_save_IFS
1746
1747 } >&5
1748
1749 cat >&5 <<_ACEOF
1750
1751
1752 ## ----------- ##
1753 ## Core tests. ##
1754 ## ----------- ##
1755
1756 _ACEOF
1757
1758
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_configure_args=
1765 ac_configure_args0=
1766 ac_configure_args1=
1767 ac_must_keep_next=false
1768 for ac_pass in 1 2
1769 do
1770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
1777 *\'*)
1778 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1782 2)
1783 as_fn_append ac_configure_args1 " '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1786 else
1787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
1798 fi
1799 as_fn_append ac_configure_args " '$ac_arg'"
1800 ;;
1801 esac
1802 done
1803 done
1804 { ac_configure_args0=; unset ac_configure_args0;}
1805 { ac_configure_args1=; unset ac_configure_args1;}
1806
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
1816
1817 $as_echo "## ---------------- ##
1818 ## Cache variables. ##
1819 ## ---------------- ##"
1820 echo
1821 # The following way of writing the cache mishandles newlines in values,
1822 (
1823 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1824 eval ac_val=\$$ac_var
1825 case $ac_val in #(
1826 *${as_nl}*)
1827 case $ac_var in #(
1828 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1830 esac
1831 case $ac_var in #(
1832 _ | IFS | as_nl) ;; #(
1833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1834 *) { eval $ac_var=; unset $ac_var;} ;;
1835 esac ;;
1836 esac
1837 done
1838 (set) 2>&1 |
1839 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1840 *${as_nl}ac_space=\ *)
1841 sed -n \
1842 "s/'\''/'\''\\\\'\'''\''/g;
1843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1844 ;; #(
1845 *)
1846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1847 ;;
1848 esac |
1849 sort
1850 )
1851 echo
1852
1853 $as_echo "## ----------------- ##
1854 ## Output variables. ##
1855 ## ----------------- ##"
1856 echo
1857 for ac_var in $ac_subst_vars
1858 do
1859 eval ac_val=\$$ac_var
1860 case $ac_val in
1861 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862 esac
1863 $as_echo "$ac_var='\''$ac_val'\''"
1864 done | sort
1865 echo
1866
1867 if test -n "$ac_subst_files"; then
1868 $as_echo "## ------------------- ##
1869 ## File substitutions. ##
1870 ## ------------------- ##"
1871 echo
1872 for ac_var in $ac_subst_files
1873 do
1874 eval ac_val=\$$ac_var
1875 case $ac_val in
1876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 esac
1878 $as_echo "$ac_var='\''$ac_val'\''"
1879 done | sort
1880 echo
1881 fi
1882
1883 if test -s confdefs.h; then
1884 $as_echo "## ----------- ##
1885 ## confdefs.h. ##
1886 ## ----------- ##"
1887 echo
1888 cat confdefs.h
1889 echo
1890 fi
1891 test "$ac_signal" != 0 &&
1892 $as_echo "$as_me: caught signal $ac_signal"
1893 $as_echo "$as_me: exit $exit_status"
1894 } >&5
1895 rm -f core *.core core.conftest.* &&
1896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1897 exit $exit_status
1898 ' 0
1899 for ac_signal in 1 2 13 15; do
1900 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1901 done
1902 ac_signal=0
1903
1904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1905 rm -f -r conftest* confdefs.h
1906
1907 $as_echo "/* confdefs.h */" > confdefs.h
1908
1909 # Predefined preprocessor variables.
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_NAME "$PACKAGE_NAME"
1913 _ACEOF
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1921 _ACEOF
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_STRING "$PACKAGE_STRING"
1925 _ACEOF
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929 _ACEOF
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_URL "$PACKAGE_URL"
1933 _ACEOF
1934
1935
1936 # Let the site file select an alternate cache file if it wants to.
1937 # Prefer an explicitly selected file to automatically selected ones.
1938 ac_site_file1=NONE
1939 ac_site_file2=NONE
1940 if test -n "$CONFIG_SITE"; then
1941 # We do not want a PATH search for config.site.
1942 case $CONFIG_SITE in #((
1943 -*) ac_site_file1=./$CONFIG_SITE;;
1944 */*) ac_site_file1=$CONFIG_SITE;;
1945 *) ac_site_file1=./$CONFIG_SITE;;
1946 esac
1947 elif test "x$prefix" != xNONE; then
1948 ac_site_file1=$prefix/share/config.site
1949 ac_site_file2=$prefix/etc/config.site
1950 else
1951 ac_site_file1=$ac_default_prefix/share/config.site
1952 ac_site_file2=$ac_default_prefix/etc/config.site
1953 fi
1954 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1955 do
1956 test "x$ac_site_file" = xNONE && continue
1957 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1959 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1960 sed 's/^/| /' "$ac_site_file" >&5
1961 . "$ac_site_file" \
1962 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1964 as_fn_error $? "failed to load site script $ac_site_file
1965 See \`config.log' for more details" "$LINENO" 5; }
1966 fi
1967 done
1968
1969 if test -r "$cache_file"; then
1970 # Some versions of bash will fail to source /dev/null (special files
1971 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1972 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1974 $as_echo "$as_me: loading cache $cache_file" >&6;}
1975 case $cache_file in
1976 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1977 *) . "./$cache_file";;
1978 esac
1979 fi
1980 else
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1982 $as_echo "$as_me: creating cache $cache_file" >&6;}
1983 >$cache_file
1984 fi
1985
1986 # Check that the precious variables saved in the cache have kept the same
1987 # value.
1988 ac_cache_corrupted=false
1989 for ac_var in $ac_precious_vars; do
1990 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1991 eval ac_new_set=\$ac_env_${ac_var}_set
1992 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1993 eval ac_new_val=\$ac_env_${ac_var}_value
1994 case $ac_old_set,$ac_new_set in
1995 set,)
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1997 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1998 ac_cache_corrupted=: ;;
1999 ,set)
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2001 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2003 ,);;
2004 *)
2005 if test "x$ac_old_val" != "x$ac_new_val"; then
2006 # differences in whitespace do not lead to failure.
2007 ac_old_val_w=`echo x $ac_old_val`
2008 ac_new_val_w=`echo x $ac_new_val`
2009 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2011 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2012 ac_cache_corrupted=:
2013 else
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2015 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2016 eval $ac_var=\$ac_old_val
2017 fi
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2019 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2021 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2022 fi;;
2023 esac
2024 # Pass precious variables to config.status.
2025 if test "$ac_new_set" = set; then
2026 case $ac_new_val in
2027 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2028 *) ac_arg=$ac_var=$ac_new_val ;;
2029 esac
2030 case " $ac_configure_args " in
2031 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2032 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2033 esac
2034 fi
2035 done
2036 if $ac_cache_corrupted; then
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2040 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2041 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2042 fi
2043 ## -------------------- ##
2044 ## Main body of script. ##
2045 ## -------------------- ##
2046
2047 ac_ext=c
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052
2053
2054
2055
2056
2057
2058
2059 ac_aux_dir=
2060 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2061 if test -f "$ac_dir/install-sh"; then
2062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 break
2065 elif test -f "$ac_dir/install.sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2068 break
2069 elif test -f "$ac_dir/shtool"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 break
2073 fi
2074 done
2075 if test -z "$ac_aux_dir"; then
2076 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2077 fi
2078
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2086
2087
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2091
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2093 $as_echo_n "checking build system type... " >&6; }
2094 if ${ac_cv_build+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096 else
2097 ac_build_alias=$build_alias
2098 test "x$ac_build_alias" = x &&
2099 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2100 test "x$ac_build_alias" = x &&
2101 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2102 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2104
2105 fi
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2107 $as_echo "$ac_cv_build" >&6; }
2108 case $ac_cv_build in
2109 *-*-*) ;;
2110 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2111 esac
2112 build=$ac_cv_build
2113 ac_save_IFS=$IFS; IFS='-'
2114 set x $ac_cv_build
2115 shift
2116 build_cpu=$1
2117 build_vendor=$2
2118 shift; shift
2119 # Remember, the first character of IFS is used to create $*,
2120 # except with old shells:
2121 build_os=$*
2122 IFS=$ac_save_IFS
2123 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2124
2125
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2127 $as_echo_n "checking host system type... " >&6; }
2128 if ${ac_cv_host+:} false; then :
2129 $as_echo_n "(cached) " >&6
2130 else
2131 if test "x$host_alias" = x; then
2132 ac_cv_host=$ac_cv_build
2133 else
2134 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2135 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2136 fi
2137
2138 fi
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2140 $as_echo "$ac_cv_host" >&6; }
2141 case $ac_cv_host in
2142 *-*-*) ;;
2143 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2144 esac
2145 host=$ac_cv_host
2146 ac_save_IFS=$IFS; IFS='-'
2147 set x $ac_cv_host
2148 shift
2149 host_cpu=$1
2150 host_vendor=$2
2151 shift; shift
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2154 host_os=$*
2155 IFS=$ac_save_IFS
2156 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2157
2158
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2160 $as_echo_n "checking target system type... " >&6; }
2161 if ${ac_cv_target+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 if test "x$target_alias" = x; then
2165 ac_cv_target=$ac_cv_host
2166 else
2167 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2168 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2169 fi
2170
2171 fi
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2173 $as_echo "$ac_cv_target" >&6; }
2174 case $ac_cv_target in
2175 *-*-*) ;;
2176 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2177 esac
2178 target=$ac_cv_target
2179 ac_save_IFS=$IFS; IFS='-'
2180 set x $ac_cv_target
2181 shift
2182 target_cpu=$1
2183 target_vendor=$2
2184 shift; shift
2185 # Remember, the first character of IFS is used to create $*,
2186 # except with old shells:
2187 target_os=$*
2188 IFS=$ac_save_IFS
2189 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2190
2191
2192 # The aliases save the names the user supplied, while $host etc.
2193 # will get canonicalized.
2194 test -n "$target_alias" &&
2195 test "$program_prefix$program_suffix$program_transform_name" = \
2196 NONENONEs,x,x, &&
2197 program_prefix=${target_alias}-
2198 ac_ext=c
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203 if test -n "$ac_tool_prefix"; then
2204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2205 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2207 $as_echo_n "checking for $ac_word... " >&6; }
2208 if ${ac_cv_prog_CC+:} false; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 break 2
2224 fi
2225 done
2226 done
2227 IFS=$as_save_IFS
2228
2229 fi
2230 fi
2231 CC=$ac_cv_prog_CC
2232 if test -n "$CC"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2234 $as_echo "$CC" >&6; }
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2237 $as_echo "no" >&6; }
2238 fi
2239
2240
2241 fi
2242 if test -z "$ac_cv_prog_CC"; then
2243 ac_ct_CC=$CC
2244 # Extract the first word of "gcc", so it can be a program name with args.
2245 set dummy gcc; ac_word=$2
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2247 $as_echo_n "checking for $ac_word... " >&6; }
2248 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 if test -n "$ac_ct_CC"; then
2252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261 ac_cv_prog_ac_ct_CC="gcc"
2262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 break 2
2264 fi
2265 done
2266 done
2267 IFS=$as_save_IFS
2268
2269 fi
2270 fi
2271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2272 if test -n "$ac_ct_CC"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2274 $as_echo "$ac_ct_CC" >&6; }
2275 else
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2277 $as_echo "no" >&6; }
2278 fi
2279
2280 if test "x$ac_ct_CC" = x; then
2281 CC=""
2282 else
2283 case $cross_compiling:$ac_tool_warned in
2284 yes:)
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2287 ac_tool_warned=yes ;;
2288 esac
2289 CC=$ac_ct_CC
2290 fi
2291 else
2292 CC="$ac_cv_prog_CC"
2293 fi
2294
2295 if test -z "$CC"; then
2296 if test -n "$ac_tool_prefix"; then
2297 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2298 set dummy ${ac_tool_prefix}cc; ac_word=$2
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2300 $as_echo_n "checking for $ac_word... " >&6; }
2301 if ${ac_cv_prog_CC+:} false; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC="$CC" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_CC="${ac_tool_prefix}cc"
2315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2317 fi
2318 done
2319 done
2320 IFS=$as_save_IFS
2321
2322 fi
2323 fi
2324 CC=$ac_cv_prog_CC
2325 if test -n "$CC"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2327 $as_echo "$CC" >&6; }
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2330 $as_echo "no" >&6; }
2331 fi
2332
2333
2334 fi
2335 fi
2336 if test -z "$CC"; then
2337 # Extract the first word of "cc", so it can be a program name with args.
2338 set dummy cc; ac_word=$2
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if ${ac_cv_prog_CC+:} false; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 ac_prog_rejected=no
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2356 ac_prog_rejected=yes
2357 continue
2358 fi
2359 ac_cv_prog_CC="cc"
2360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2362 fi
2363 done
2364 done
2365 IFS=$as_save_IFS
2366
2367 if test $ac_prog_rejected = yes; then
2368 # We found a bogon in the path, so make sure we never use it.
2369 set dummy $ac_cv_prog_CC
2370 shift
2371 if test $# != 0; then
2372 # We chose a different compiler from the bogus one.
2373 # However, it has the same basename, so the bogon will be chosen
2374 # first if we set CC to just the basename; use the full file name.
2375 shift
2376 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2377 fi
2378 fi
2379 fi
2380 fi
2381 CC=$ac_cv_prog_CC
2382 if test -n "$CC"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2384 $as_echo "$CC" >&6; }
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387 $as_echo "no" >&6; }
2388 fi
2389
2390
2391 fi
2392 if test -z "$CC"; then
2393 if test -n "$ac_tool_prefix"; then
2394 for ac_prog in cl.exe
2395 do
2396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399 $as_echo_n "checking for $ac_word... " >&6; }
2400 if ${ac_cv_prog_CC+:} false; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC="$CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2416 fi
2417 done
2418 done
2419 IFS=$as_save_IFS
2420
2421 fi
2422 fi
2423 CC=$ac_cv_prog_CC
2424 if test -n "$CC"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2426 $as_echo "$CC" >&6; }
2427 else
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429 $as_echo "no" >&6; }
2430 fi
2431
2432
2433 test -n "$CC" && break
2434 done
2435 fi
2436 if test -z "$CC"; then
2437 ac_ct_CC=$CC
2438 for ac_prog in cl.exe
2439 do
2440 # Extract the first word of "$ac_prog", so it can be a program name with args.
2441 set dummy $ac_prog; ac_word=$2
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443 $as_echo_n "checking for $ac_word... " >&6; }
2444 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 if test -n "$ac_ct_CC"; then
2448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457 ac_cv_prog_ac_ct_CC="$ac_prog"
2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461 done
2462 done
2463 IFS=$as_save_IFS
2464
2465 fi
2466 fi
2467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2468 if test -n "$ac_ct_CC"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2470 $as_echo "$ac_ct_CC" >&6; }
2471 else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473 $as_echo "no" >&6; }
2474 fi
2475
2476
2477 test -n "$ac_ct_CC" && break
2478 done
2479
2480 if test "x$ac_ct_CC" = x; then
2481 CC=""
2482 else
2483 case $cross_compiling:$ac_tool_warned in
2484 yes:)
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2487 ac_tool_warned=yes ;;
2488 esac
2489 CC=$ac_ct_CC
2490 fi
2491 fi
2492
2493 fi
2494
2495
2496 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 as_fn_error $? "no acceptable C compiler found in \$PATH
2499 See \`config.log' for more details" "$LINENO" 5; }
2500
2501 # Provide some information about the compiler.
2502 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2503 set X $ac_compile
2504 ac_compiler=$2
2505 for ac_option in --version -v -V -qversion; do
2506 { { ac_try="$ac_compiler $ac_option >&5"
2507 case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510 esac
2511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2512 $as_echo "$ac_try_echo"; } >&5
2513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2514 ac_status=$?
2515 if test -s conftest.err; then
2516 sed '10a\
2517 ... rest of stderr output deleted ...
2518 10q' conftest.err >conftest.er1
2519 cat conftest.er1 >&5
2520 fi
2521 rm -f conftest.er1 conftest.err
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; }
2524 done
2525
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2528
2529 int
2530 main ()
2531 {
2532
2533 ;
2534 return 0;
2535 }
2536 _ACEOF
2537 ac_clean_files_save=$ac_clean_files
2538 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2539 # Try to create an executable without -o first, disregard a.out.
2540 # It will help us diagnose broken compilers, and finding out an intuition
2541 # of exeext.
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2543 $as_echo_n "checking whether the C compiler works... " >&6; }
2544 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2545
2546 # The possible output files:
2547 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2548
2549 ac_rmfiles=
2550 for ac_file in $ac_files
2551 do
2552 case $ac_file in
2553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2554 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2555 esac
2556 done
2557 rm -f $ac_rmfiles
2558
2559 if { { ac_try="$ac_link_default"
2560 case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563 esac
2564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565 $as_echo "$ac_try_echo"; } >&5
2566 (eval "$ac_link_default") 2>&5
2567 ac_status=$?
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; }; then :
2570 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2571 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2572 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2573 # so that the user can short-circuit this test for compilers unknown to
2574 # Autoconf.
2575 for ac_file in $ac_files ''
2576 do
2577 test -f "$ac_file" || continue
2578 case $ac_file in
2579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2580 ;;
2581 [ab].out )
2582 # We found the default executable, but exeext='' is most
2583 # certainly right.
2584 break;;
2585 *.* )
2586 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2587 then :; else
2588 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2589 fi
2590 # We set ac_cv_exeext here because the later test for it is not
2591 # safe: cross compilers may not add the suffix if given an `-o'
2592 # argument, so we may need to know it at that point already.
2593 # Even if this section looks crufty: it has the advantage of
2594 # actually working.
2595 break;;
2596 * )
2597 break;;
2598 esac
2599 done
2600 test "$ac_cv_exeext" = no && ac_cv_exeext=
2601
2602 else
2603 ac_file=''
2604 fi
2605 if test -z "$ac_file"; then :
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2608 $as_echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 as_fn_error 77 "C compiler cannot create executables
2614 See \`config.log' for more details" "$LINENO" 5; }
2615 else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617 $as_echo "yes" >&6; }
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2620 $as_echo_n "checking for C compiler default output file name... " >&6; }
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2622 $as_echo "$ac_file" >&6; }
2623 ac_exeext=$ac_cv_exeext
2624
2625 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2626 ac_clean_files=$ac_clean_files_save
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2628 $as_echo_n "checking for suffix of executables... " >&6; }
2629 if { { ac_try="$ac_link"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2635 $as_echo "$ac_try_echo"; } >&5
2636 (eval "$ac_link") 2>&5
2637 ac_status=$?
2638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639 test $ac_status = 0; }; then :
2640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2642 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 # `rm'.
2644 for ac_file in conftest.exe conftest conftest.*; do
2645 test -f "$ac_file" || continue
2646 case $ac_file in
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2649 break;;
2650 * ) break;;
2651 esac
2652 done
2653 else
2654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2657 See \`config.log' for more details" "$LINENO" 5; }
2658 fi
2659 rm -f conftest conftest$ac_cv_exeext
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2661 $as_echo "$ac_cv_exeext" >&6; }
2662
2663 rm -f conftest.$ac_ext
2664 EXEEXT=$ac_cv_exeext
2665 ac_exeext=$EXEEXT
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2668 #include <stdio.h>
2669 int
2670 main ()
2671 {
2672 FILE *f = fopen ("conftest.out", "w");
2673 return ferror (f) || fclose (f) != 0;
2674
2675 ;
2676 return 0;
2677 }
2678 _ACEOF
2679 ac_clean_files="$ac_clean_files conftest.out"
2680 # Check that the compiler produces executables we can run. If not, either
2681 # the compiler is broken, or we cross compile.
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2683 $as_echo_n "checking whether we are cross compiling... " >&6; }
2684 if test "$cross_compiling" != yes; then
2685 { { ac_try="$ac_link"
2686 case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2691 $as_echo "$ac_try_echo"; } >&5
2692 (eval "$ac_link") 2>&5
2693 ac_status=$?
2694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2695 test $ac_status = 0; }
2696 if { ac_try='./conftest$ac_cv_exeext'
2697 { { case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700 esac
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703 (eval "$ac_try") 2>&5
2704 ac_status=$?
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; }; }; then
2707 cross_compiling=no
2708 else
2709 if test "$cross_compiling" = maybe; then
2710 cross_compiling=yes
2711 else
2712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714 as_fn_error $? "cannot run C compiled programs.
2715 If you meant to cross compile, use \`--host'.
2716 See \`config.log' for more details" "$LINENO" 5; }
2717 fi
2718 fi
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2721 $as_echo "$cross_compiling" >&6; }
2722
2723 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2724 ac_clean_files=$ac_clean_files_save
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2726 $as_echo_n "checking for suffix of object files... " >&6; }
2727 if ${ac_cv_objext+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2732
2733 int
2734 main ()
2735 {
2736
2737 ;
2738 return 0;
2739 }
2740 _ACEOF
2741 rm -f conftest.o conftest.obj
2742 if { { ac_try="$ac_compile"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2748 $as_echo "$ac_try_echo"; } >&5
2749 (eval "$ac_compile") 2>&5
2750 ac_status=$?
2751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2752 test $ac_status = 0; }; then :
2753 for ac_file in conftest.o conftest.obj conftest.*; do
2754 test -f "$ac_file" || continue;
2755 case $ac_file in
2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2757 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2758 break;;
2759 esac
2760 done
2761 else
2762 $as_echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767 as_fn_error $? "cannot compute suffix of object files: cannot compile
2768 See \`config.log' for more details" "$LINENO" 5; }
2769 fi
2770 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2773 $as_echo "$ac_cv_objext" >&6; }
2774 OBJEXT=$ac_cv_objext
2775 ac_objext=$OBJEXT
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2777 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2778 if ${ac_cv_c_compiler_gnu+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h. */
2783
2784 int
2785 main ()
2786 {
2787 #ifndef __GNUC__
2788 choke me
2789 #endif
2790
2791 ;
2792 return 0;
2793 }
2794 _ACEOF
2795 if ac_fn_c_try_compile "$LINENO"; then :
2796 ac_compiler_gnu=yes
2797 else
2798 ac_compiler_gnu=no
2799 fi
2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2802
2803 fi
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2805 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2806 if test $ac_compiler_gnu = yes; then
2807 GCC=yes
2808 else
2809 GCC=
2810 fi
2811 ac_test_CFLAGS=${CFLAGS+set}
2812 ac_save_CFLAGS=$CFLAGS
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2814 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2815 if ${ac_cv_prog_cc_g+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 ac_save_c_werror_flag=$ac_c_werror_flag
2819 ac_c_werror_flag=yes
2820 ac_cv_prog_cc_g=no
2821 CFLAGS="-g"
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2824
2825 int
2826 main ()
2827 {
2828
2829 ;
2830 return 0;
2831 }
2832 _ACEOF
2833 if ac_fn_c_try_compile "$LINENO"; then :
2834 ac_cv_prog_cc_g=yes
2835 else
2836 CFLAGS=""
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2839
2840 int
2841 main ()
2842 {
2843
2844 ;
2845 return 0;
2846 }
2847 _ACEOF
2848 if ac_fn_c_try_compile "$LINENO"; then :
2849
2850 else
2851 ac_c_werror_flag=$ac_save_c_werror_flag
2852 CFLAGS="-g"
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h. */
2855
2856 int
2857 main ()
2858 {
2859
2860 ;
2861 return 0;
2862 }
2863 _ACEOF
2864 if ac_fn_c_try_compile "$LINENO"; then :
2865 ac_cv_prog_cc_g=yes
2866 fi
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 fi
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 fi
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 ac_c_werror_flag=$ac_save_c_werror_flag
2873 fi
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2875 $as_echo "$ac_cv_prog_cc_g" >&6; }
2876 if test "$ac_test_CFLAGS" = set; then
2877 CFLAGS=$ac_save_CFLAGS
2878 elif test $ac_cv_prog_cc_g = yes; then
2879 if test "$GCC" = yes; then
2880 CFLAGS="-g -O2"
2881 else
2882 CFLAGS="-g"
2883 fi
2884 else
2885 if test "$GCC" = yes; then
2886 CFLAGS="-O2"
2887 else
2888 CFLAGS=
2889 fi
2890 fi
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2892 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2893 if ${ac_cv_prog_cc_c89+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 ac_cv_prog_cc_c89=no
2897 ac_save_CC=$CC
2898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2899 /* end confdefs.h. */
2900 #include <stdarg.h>
2901 #include <stdio.h>
2902 struct stat;
2903 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2904 struct buf { int x; };
2905 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2906 static char *e (p, i)
2907 char **p;
2908 int i;
2909 {
2910 return p[i];
2911 }
2912 static char *f (char * (*g) (char **, int), char **p, ...)
2913 {
2914 char *s;
2915 va_list v;
2916 va_start (v,p);
2917 s = g (p, va_arg (v,int));
2918 va_end (v);
2919 return s;
2920 }
2921
2922 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2923 function prototypes and stuff, but not '\xHH' hex character constants.
2924 These don't provoke an error unfortunately, instead are silently treated
2925 as 'x'. The following induces an error, until -std is added to get
2926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2927 array size at least. It's necessary to write '\x00'==0 to get something
2928 that's true only with -std. */
2929 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2930
2931 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2932 inside strings and character constants. */
2933 #define FOO(x) 'x'
2934 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2935
2936 int test (int i, double x);
2937 struct s1 {int (*f) (int a);};
2938 struct s2 {int (*f) (double a);};
2939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2940 int argc;
2941 char **argv;
2942 int
2943 main ()
2944 {
2945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2946 ;
2947 return 0;
2948 }
2949 _ACEOF
2950 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2952 do
2953 CC="$ac_save_CC $ac_arg"
2954 if ac_fn_c_try_compile "$LINENO"; then :
2955 ac_cv_prog_cc_c89=$ac_arg
2956 fi
2957 rm -f core conftest.err conftest.$ac_objext
2958 test "x$ac_cv_prog_cc_c89" != "xno" && break
2959 done
2960 rm -f conftest.$ac_ext
2961 CC=$ac_save_CC
2962
2963 fi
2964 # AC_CACHE_VAL
2965 case "x$ac_cv_prog_cc_c89" in
2966 x)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2968 $as_echo "none needed" >&6; } ;;
2969 xno)
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2971 $as_echo "unsupported" >&6; } ;;
2972 *)
2973 CC="$CC $ac_cv_prog_cc_c89"
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2975 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2976 esac
2977 if test "x$ac_cv_prog_cc_c89" != xno; then :
2978
2979 fi
2980
2981 ac_ext=c
2982 ac_cpp='$CPP $CPPFLAGS'
2983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986
2987
2988 ac_ext=c
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2997 CPP=
2998 fi
2999 if test -z "$CPP"; then
3000 if ${ac_cv_prog_CPP+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 # Double quotes because CPP needs to be expanded
3004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3005 do
3006 ac_preproc_ok=false
3007 for ac_c_preproc_warn_flag in '' yes
3008 do
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
3013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3017 #ifdef __STDC__
3018 # include <limits.h>
3019 #else
3020 # include <assert.h>
3021 #endif
3022 Syntax error
3023 _ACEOF
3024 if ac_fn_c_try_cpp "$LINENO"; then :
3025
3026 else
3027 # Broken: fails on valid input.
3028 continue
3029 fi
3030 rm -f conftest.err conftest.i conftest.$ac_ext
3031
3032 # OK, works on sane cases. Now check whether nonexistent headers
3033 # can be detected and how.
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3036 #include <ac_nonexistent.h>
3037 _ACEOF
3038 if ac_fn_c_try_cpp "$LINENO"; then :
3039 # Broken: success on invalid input.
3040 continue
3041 else
3042 # Passes both tests.
3043 ac_preproc_ok=:
3044 break
3045 fi
3046 rm -f conftest.err conftest.i conftest.$ac_ext
3047
3048 done
3049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050 rm -f conftest.i conftest.err conftest.$ac_ext
3051 if $ac_preproc_ok; then :
3052 break
3053 fi
3054
3055 done
3056 ac_cv_prog_CPP=$CPP
3057
3058 fi
3059 CPP=$ac_cv_prog_CPP
3060 else
3061 ac_cv_prog_CPP=$CPP
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3064 $as_echo "$CPP" >&6; }
3065 ac_preproc_ok=false
3066 for ac_c_preproc_warn_flag in '' yes
3067 do
3068 # Use a header file that comes with gcc, so configuring glibc
3069 # with a fresh cross-compiler works.
3070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3071 # <limits.h> exists even on freestanding compilers.
3072 # On the NeXT, cc -E runs the code through the compiler's parser,
3073 # not just through cpp. "Syntax error" is here to catch this case.
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3076 #ifdef __STDC__
3077 # include <limits.h>
3078 #else
3079 # include <assert.h>
3080 #endif
3081 Syntax error
3082 _ACEOF
3083 if ac_fn_c_try_cpp "$LINENO"; then :
3084
3085 else
3086 # Broken: fails on valid input.
3087 continue
3088 fi
3089 rm -f conftest.err conftest.i conftest.$ac_ext
3090
3091 # OK, works on sane cases. Now check whether nonexistent headers
3092 # can be detected and how.
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3095 #include <ac_nonexistent.h>
3096 _ACEOF
3097 if ac_fn_c_try_cpp "$LINENO"; then :
3098 # Broken: success on invalid input.
3099 continue
3100 else
3101 # Passes both tests.
3102 ac_preproc_ok=:
3103 break
3104 fi
3105 rm -f conftest.err conftest.i conftest.$ac_ext
3106
3107 done
3108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3109 rm -f conftest.i conftest.err conftest.$ac_ext
3110 if $ac_preproc_ok; then :
3111
3112 else
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3116 See \`config.log' for more details" "$LINENO" 5; }
3117 fi
3118
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3127 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3128 if ${ac_cv_path_GREP+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test -z "$GREP"; then
3132 ac_path_GREP_found=false
3133 # Loop through the user's path and test for each of PROGNAME-LIST
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3136 do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_prog in grep ggrep; do
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3142 as_fn_executable_p "$ac_path_GREP" || continue
3143 # Check for GNU ac_path_GREP and select it if it is found.
3144 # Check for GNU $ac_path_GREP
3145 case `"$ac_path_GREP" --version 2>&1` in
3146 *GNU*)
3147 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3148 *)
3149 ac_count=0
3150 $as_echo_n 0123456789 >"conftest.in"
3151 while :
3152 do
3153 cat "conftest.in" "conftest.in" >"conftest.tmp"
3154 mv "conftest.tmp" "conftest.in"
3155 cp "conftest.in" "conftest.nl"
3156 $as_echo 'GREP' >> "conftest.nl"
3157 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3159 as_fn_arith $ac_count + 1 && ac_count=$as_val
3160 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3161 # Best one so far, save it but keep looking for a better one
3162 ac_cv_path_GREP="$ac_path_GREP"
3163 ac_path_GREP_max=$ac_count
3164 fi
3165 # 10*(2^10) chars as input seems more than enough
3166 test $ac_count -gt 10 && break
3167 done
3168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3169 esac
3170
3171 $ac_path_GREP_found && break 3
3172 done
3173 done
3174 done
3175 IFS=$as_save_IFS
3176 if test -z "$ac_cv_path_GREP"; then
3177 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3178 fi
3179 else
3180 ac_cv_path_GREP=$GREP
3181 fi
3182
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3185 $as_echo "$ac_cv_path_GREP" >&6; }
3186 GREP="$ac_cv_path_GREP"
3187
3188
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3190 $as_echo_n "checking for egrep... " >&6; }
3191 if ${ac_cv_path_EGREP+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3195 then ac_cv_path_EGREP="$GREP -E"
3196 else
3197 if test -z "$EGREP"; then
3198 ac_path_EGREP_found=false
3199 # Loop through the user's path and test for each of PROGNAME-LIST
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3202 do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_prog in egrep; do
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3208 as_fn_executable_p "$ac_path_EGREP" || continue
3209 # Check for GNU ac_path_EGREP and select it if it is found.
3210 # Check for GNU $ac_path_EGREP
3211 case `"$ac_path_EGREP" --version 2>&1` in
3212 *GNU*)
3213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3214 *)
3215 ac_count=0
3216 $as_echo_n 0123456789 >"conftest.in"
3217 while :
3218 do
3219 cat "conftest.in" "conftest.in" >"conftest.tmp"
3220 mv "conftest.tmp" "conftest.in"
3221 cp "conftest.in" "conftest.nl"
3222 $as_echo 'EGREP' >> "conftest.nl"
3223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3225 as_fn_arith $ac_count + 1 && ac_count=$as_val
3226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3227 # Best one so far, save it but keep looking for a better one
3228 ac_cv_path_EGREP="$ac_path_EGREP"
3229 ac_path_EGREP_max=$ac_count
3230 fi
3231 # 10*(2^10) chars as input seems more than enough
3232 test $ac_count -gt 10 && break
3233 done
3234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3235 esac
3236
3237 $ac_path_EGREP_found && break 3
3238 done
3239 done
3240 done
3241 IFS=$as_save_IFS
3242 if test -z "$ac_cv_path_EGREP"; then
3243 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3244 fi
3245 else
3246 ac_cv_path_EGREP=$EGREP
3247 fi
3248
3249 fi
3250 fi
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3252 $as_echo "$ac_cv_path_EGREP" >&6; }
3253 EGREP="$ac_cv_path_EGREP"
3254
3255
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3257 $as_echo_n "checking for ANSI C header files... " >&6; }
3258 if ${ac_cv_header_stdc+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263 #include <stdlib.h>
3264 #include <stdarg.h>
3265 #include <string.h>
3266 #include <float.h>
3267
3268 int
3269 main ()
3270 {
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277 ac_cv_header_stdc=yes
3278 else
3279 ac_cv_header_stdc=no
3280 fi
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282
3283 if test $ac_cv_header_stdc = yes; then
3284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3287 #include <string.h>
3288
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "memchr" >/dev/null 2>&1; then :
3292
3293 else
3294 ac_cv_header_stdc=no
3295 fi
3296 rm -f conftest*
3297
3298 fi
3299
3300 if test $ac_cv_header_stdc = yes; then
3301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3304 #include <stdlib.h>
3305
3306 _ACEOF
3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 $EGREP "free" >/dev/null 2>&1; then :
3309
3310 else
3311 ac_cv_header_stdc=no
3312 fi
3313 rm -f conftest*
3314
3315 fi
3316
3317 if test $ac_cv_header_stdc = yes; then
3318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3319 if test "$cross_compiling" = yes; then :
3320 :
3321 else
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324 #include <ctype.h>
3325 #include <stdlib.h>
3326 #if ((' ' & 0x0FF) == 0x020)
3327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3329 #else
3330 # define ISLOWER(c) \
3331 (('a' <= (c) && (c) <= 'i') \
3332 || ('j' <= (c) && (c) <= 'r') \
3333 || ('s' <= (c) && (c) <= 'z'))
3334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3335 #endif
3336
3337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3338 int
3339 main ()
3340 {
3341 int i;
3342 for (i = 0; i < 256; i++)
3343 if (XOR (islower (i), ISLOWER (i))
3344 || toupper (i) != TOUPPER (i))
3345 return 2;
3346 return 0;
3347 }
3348 _ACEOF
3349 if ac_fn_c_try_run "$LINENO"; then :
3350
3351 else
3352 ac_cv_header_stdc=no
3353 fi
3354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3355 conftest.$ac_objext conftest.beam conftest.$ac_ext
3356 fi
3357
3358 fi
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3361 $as_echo "$ac_cv_header_stdc" >&6; }
3362 if test $ac_cv_header_stdc = yes; then
3363
3364 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3365
3366 fi
3367
3368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3370 inttypes.h stdint.h unistd.h
3371 do :
3372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3373 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3374 "
3375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3376 cat >>confdefs.h <<_ACEOF
3377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3378 _ACEOF
3379
3380 fi
3381
3382 done
3383
3384
3385
3386 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3387 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3388 MINIX=yes
3389 else
3390 MINIX=
3391 fi
3392
3393
3394 if test "$MINIX" = yes; then
3395
3396 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3397
3398
3399 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3400
3401
3402 $as_echo "#define _MINIX 1" >>confdefs.h
3403
3404 fi
3405
3406
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3408 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3409 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414
3415 # define __EXTENSIONS__ 1
3416 $ac_includes_default
3417 int
3418 main ()
3419 {
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_cv_safe_to_define___extensions__=yes
3427 else
3428 ac_cv_safe_to_define___extensions__=no
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3433 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3434 test $ac_cv_safe_to_define___extensions__ = yes &&
3435 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3436
3437 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3438
3439 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3440
3441 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3442
3443 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3444
3445
3446 test "$program_prefix" != NONE &&
3447 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3448 # Use a double $ so make ignores it.
3449 test "$program_suffix" != NONE &&
3450 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3451 # Double any \ or $.
3452 # By default was `s,x,x', remove it if useless.
3453 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3454 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3455
3456 # Find a good install program. We prefer a C program (faster),
3457 # so one script is as good as another. But avoid the broken or
3458 # incompatible versions:
3459 # SysV /etc/install, /usr/sbin/install
3460 # SunOS /usr/etc/install
3461 # IRIX /sbin/install
3462 # AIX /bin/install
3463 # AmigaOS /C/install, which installs bootblocks on floppy discs
3464 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3467 # OS/2's system install, which has a completely different semantic
3468 # ./install, which can be erroneously created by make from ./install.sh.
3469 # Reject install programs that cannot install multiple files.
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3471 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3472 if test -z "$INSTALL"; then
3473 if ${ac_cv_path_install+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 # Account for people who put trailing slashes in PATH elements.
3482 case $as_dir/ in #((
3483 ./ | .// | /[cC]/* | \
3484 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3485 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3486 /usr/ucb/* ) ;;
3487 *)
3488 # OSF1 and SCO ODT 3.0 have their own names for install.
3489 # Don't use installbsd from OSF since it installs stuff as root
3490 # by default.
3491 for ac_prog in ginstall scoinst install; do
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3494 if test $ac_prog = install &&
3495 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3496 # AIX install. It has an incompatible calling convention.
3497 :
3498 elif test $ac_prog = install &&
3499 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3500 # program-specific install script used by HP pwplus--don't use.
3501 :
3502 else
3503 rm -rf conftest.one conftest.two conftest.dir
3504 echo one > conftest.one
3505 echo two > conftest.two
3506 mkdir conftest.dir
3507 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3508 test -s conftest.one && test -s conftest.two &&
3509 test -s conftest.dir/conftest.one &&
3510 test -s conftest.dir/conftest.two
3511 then
3512 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3513 break 3
3514 fi
3515 fi
3516 fi
3517 done
3518 done
3519 ;;
3520 esac
3521
3522 done
3523 IFS=$as_save_IFS
3524
3525 rm -rf conftest.one conftest.two conftest.dir
3526
3527 fi
3528 if test "${ac_cv_path_install+set}" = set; then
3529 INSTALL=$ac_cv_path_install
3530 else
3531 # As a last resort, use the slow shell script. Don't cache a
3532 # value for INSTALL within a source directory, because that will
3533 # break other packages using the cache if that directory is
3534 # removed, or if the value is a relative name.
3535 INSTALL=$ac_install_sh
3536 fi
3537 fi
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3539 $as_echo "$INSTALL" >&6; }
3540
3541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3542 # It thinks the first close brace ends the variable substitution.
3543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3544
3545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3546
3547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3548
3549 rm -rf .tst 2>/dev/null
3550 mkdir .tst 2>/dev/null
3551 if test -d .tst; then
3552 am__leading_dot=.
3553 else
3554 am__leading_dot=_
3555 fi
3556 rmdir .tst 2>/dev/null
3557
3558 DEPDIR="${am__leading_dot}deps"
3559
3560
3561
3562
3563
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3565 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3566 if ${ac_cv_c_bigendian+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 ac_cv_c_bigendian=unknown
3570 # See if we're dealing with a universal compiler.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573 #ifndef __APPLE_CC__
3574 not a universal capable compiler
3575 #endif
3576 typedef int dummy;
3577
3578 _ACEOF
3579 if ac_fn_c_try_compile "$LINENO"; then :
3580
3581 # Check for potential -arch flags. It is not universal unless
3582 # there are at least two -arch flags with different values.
3583 ac_arch=
3584 ac_prev=
3585 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3586 if test -n "$ac_prev"; then
3587 case $ac_word in
3588 i?86 | x86_64 | ppc | ppc64)
3589 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3590 ac_arch=$ac_word
3591 else
3592 ac_cv_c_bigendian=universal
3593 break
3594 fi
3595 ;;
3596 esac
3597 ac_prev=
3598 elif test "x$ac_word" = "x-arch"; then
3599 ac_prev=arch
3600 fi
3601 done
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 if test $ac_cv_c_bigendian = unknown; then
3605 # See if sys/param.h defines the BYTE_ORDER macro.
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608 #include <sys/types.h>
3609 #include <sys/param.h>
3610
3611 int
3612 main ()
3613 {
3614 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3615 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3616 && LITTLE_ENDIAN)
3617 bogus endian macros
3618 #endif
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625 # It does; now see whether it defined to BIG_ENDIAN or not.
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <sys/types.h>
3629 #include <sys/param.h>
3630
3631 int
3632 main ()
3633 {
3634 #if BYTE_ORDER != BIG_ENDIAN
3635 not big endian
3636 #endif
3637
3638 ;
3639 return 0;
3640 }
3641 _ACEOF
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_cv_c_bigendian=yes
3644 else
3645 ac_cv_c_bigendian=no
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 fi
3651 if test $ac_cv_c_bigendian = unknown; then
3652 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655 #include <limits.h>
3656
3657 int
3658 main ()
3659 {
3660 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3661 bogus endian macros
3662 #endif
3663
3664 ;
3665 return 0;
3666 }
3667 _ACEOF
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 # It does; now see whether it defined to _BIG_ENDIAN or not.
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672 #include <limits.h>
3673
3674 int
3675 main ()
3676 {
3677 #ifndef _BIG_ENDIAN
3678 not big endian
3679 #endif
3680
3681 ;
3682 return 0;
3683 }
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686 ac_cv_c_bigendian=yes
3687 else
3688 ac_cv_c_bigendian=no
3689 fi
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 fi
3694 if test $ac_cv_c_bigendian = unknown; then
3695 # Compile a test program.
3696 if test "$cross_compiling" = yes; then :
3697 # Try to guess by grepping values from an object file.
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700 short int ascii_mm[] =
3701 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3702 short int ascii_ii[] =
3703 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3704 int use_ascii (int i) {
3705 return ascii_mm[i] + ascii_ii[i];
3706 }
3707 short int ebcdic_ii[] =
3708 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3709 short int ebcdic_mm[] =
3710 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3711 int use_ebcdic (int i) {
3712 return ebcdic_mm[i] + ebcdic_ii[i];
3713 }
3714 extern int foo;
3715
3716 int
3717 main ()
3718 {
3719 return use_ascii (foo) == use_ebcdic (foo);
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3726 ac_cv_c_bigendian=yes
3727 fi
3728 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3729 if test "$ac_cv_c_bigendian" = unknown; then
3730 ac_cv_c_bigendian=no
3731 else
3732 # finding both strings is unlikely to happen, but who knows?
3733 ac_cv_c_bigendian=unknown
3734 fi
3735 fi
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 else
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 $ac_includes_default
3742 int
3743 main ()
3744 {
3745
3746 /* Are we little or big endian? From Harbison&Steele. */
3747 union
3748 {
3749 long int l;
3750 char c[sizeof (long int)];
3751 } u;
3752 u.l = 1;
3753 return u.c[sizeof (long int) - 1] == 1;
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_c_try_run "$LINENO"; then :
3760 ac_cv_c_bigendian=no
3761 else
3762 ac_cv_c_bigendian=yes
3763 fi
3764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3765 conftest.$ac_objext conftest.beam conftest.$ac_ext
3766 fi
3767
3768 fi
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3771 $as_echo "$ac_cv_c_bigendian" >&6; }
3772 case $ac_cv_c_bigendian in #(
3773 yes)
3774 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3775 ;; #(
3776 no)
3777 ;; #(
3778 universal)
3779
3780 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3781
3782 ;; #(
3783 *)
3784 as_fn_error $? "unknown endianness
3785 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3786 esac
3787
3788
3789
3790
3791 if test "x$cross_compiling" = "xno"; then
3792 : "${AR_FOR_BUILD:=\$(AR)}"
3793 : "${CC_FOR_BUILD:=\$(CC)}"
3794 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
3795 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
3796 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
3797 else
3798 : "${AR_FOR_BUILD:=ar}"
3799 : "${CC_FOR_BUILD:=gcc}"
3800 : "${RANLIB_FOR_BUILD:=ranlib}"
3801 : "${CFLAGS_FOR_BUILD:=-g -O}"
3802 : "${LDLFAGS_FOR_BUILD:=}"
3803 fi
3804
3805
3806
3807
3808
3809
3810
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}ar; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_AR+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$AR"; then
3820 ac_cv_prog_AR="$AR" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_AR="${ac_tool_prefix}ar"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 AR=$ac_cv_prog_AR
3840 if test -n "$AR"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3842 $as_echo "$AR" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848
3849 fi
3850 if test -z "$ac_cv_prog_AR"; then
3851 ac_ct_AR=$AR
3852 # Extract the first word of "ar", so it can be a program name with args.
3853 set dummy ar; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 if test -n "$ac_ct_AR"; then
3860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_ac_ct_AR="ar"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873 done
3874 done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3880 if test -n "$ac_ct_AR"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3882 $as_echo "$ac_ct_AR" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888 if test "x$ac_ct_AR" = x; then
3889 AR=""
3890 else
3891 case $cross_compiling:$ac_tool_warned in
3892 yes:)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3896 esac
3897 AR=$ac_ct_AR
3898 fi
3899 else
3900 AR="$ac_cv_prog_AR"
3901 fi
3902
3903 if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if ${ac_cv_prog_RANLIB+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -n "$RANLIB"; then
3912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925 done
3926 done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 RANLIB=$ac_cv_prog_RANLIB
3932 if test -n "$RANLIB"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3934 $as_echo "$RANLIB" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941 fi
3942 if test -z "$ac_cv_prog_RANLIB"; then
3943 ac_ct_RANLIB=$RANLIB
3944 # Extract the first word of "ranlib", so it can be a program name with args.
3945 set dummy ranlib; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 if test -n "$ac_ct_RANLIB"; then
3952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 ac_cv_prog_ac_ct_RANLIB="ranlib"
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965 done
3966 done
3967 IFS=$as_save_IFS
3968
3969 fi
3970 fi
3971 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3972 if test -n "$ac_ct_RANLIB"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3974 $as_echo "$ac_ct_RANLIB" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 fi
3979
3980 if test "x$ac_ct_RANLIB" = x; then
3981 RANLIB=":"
3982 else
3983 case $cross_compiling:$ac_tool_warned in
3984 yes:)
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3987 ac_tool_warned=yes ;;
3988 esac
3989 RANLIB=$ac_ct_RANLIB
3990 fi
3991 else
3992 RANLIB="$ac_cv_prog_RANLIB"
3993 fi
3994
3995
3996 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
3997 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
3998 # is C99. So handle it ourselves.
3999 :
4000 C_DIALECT=
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4002 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005
4006 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4007 # error "C11 support not found"
4008 #endif
4009
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013 $as_echo "yes" >&6; }
4014 else
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4019 $as_echo_n "checking for -std=c11 support... " >&6; }
4020 ac_save_CC="$CC"
4021 CC="$CC -std=c11"
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024
4025 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4026 # error "C11 support not found"
4027 #endif
4028
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4033 $as_echo "yes" >&6; }
4034 CC="$ac_save_CC"
4035 C_DIALECT="-std=c11"
4036
4037 else
4038 as_fn_error $? "C11 is required" "$LINENO" 5
4039 fi
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043
4044
4045
4046 # Dependency checking.
4047 ac_config_commands="$ac_config_commands depdir"
4048
4049
4050 depcc="$CC" am_compiler_list=
4051
4052 am_depcomp=$ac_aux_dir/depcomp
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4054 $as_echo_n "checking dependency style of $depcc... " >&6; }
4055 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 if test -f "$am_depcomp"; then
4059 # We make a subdir and do the tests there. Otherwise we can end up
4060 # making bogus files that we don't know about and never remove. For
4061 # instance it was reported that on HP-UX the gcc test will end up
4062 # making a dummy file named `D' -- because `-MD' means `put the output
4063 # in D'.
4064 mkdir conftest.dir
4065 # Copy depcomp to subdir because otherwise we won't find it if we're
4066 # using a relative directory.
4067 cp "$am_depcomp" conftest.dir
4068 cd conftest.dir
4069 # We will build objects and dependencies in a subdirectory because
4070 # it helps to detect inapplicable dependency modes. For instance
4071 # both Tru64's cc and ICC support -MD to output dependencies as a
4072 # side effect of compilation, but ICC will put the dependencies in
4073 # the current directory while Tru64 will put them in the object
4074 # directory.
4075 mkdir sub
4076
4077 am_cv_CC_dependencies_compiler_type=none
4078 if test "$am_compiler_list" = ""; then
4079 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4080 fi
4081 for depmode in $am_compiler_list; do
4082 if test $depmode = none; then break; fi
4083
4084 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4085 # Setup a source with many dependencies, because some compilers
4086 # like to wrap large dependency lists on column 80 (with \), and
4087 # we should not choose a depcomp mode which is confused by this.
4088 #
4089 # We need to recreate these files for each test, as the compiler may
4090 # overwrite some of them when testing with obscure command lines.
4091 # This happens at least with the AIX C compiler.
4092 : > sub/conftest.c
4093 for i in 1 2 3 4 5 6; do
4094 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4095 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4096 # Solaris 8's {/usr,}/bin/sh.
4097 touch sub/conftst$i.h
4098 done
4099 echo "include sub/conftest.Po" > confmf
4100
4101 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4102 # mode. It turns out that the SunPro C++ compiler does not properly
4103 # handle `-M -o', and we need to detect this.
4104 depcmd="depmode=$depmode \
4105 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4107 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4108 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4109 if env $depcmd > conftest.err 2>&1 &&
4110 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4111 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4112 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4113 # icc doesn't choke on unknown options, it will just issue warnings
4114 # or remarks (even with -Werror). So we grep stderr for any message
4115 # that says an option was ignored or not supported.
4116 # When given -MP, icc 7.0 and 7.1 complain thusly:
4117 # icc: Command line warning: ignoring option '-M'; no argument required
4118 # The diagnosis changed in icc 8.0:
4119 # icc: Command line remark: option '-MP' not supported
4120 if (grep 'ignoring option' conftest.err ||
4121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4122 am_cv_CC_dependencies_compiler_type=$depmode
4123 $as_echo "$as_me:$LINENO: success" >&5
4124 break
4125 fi
4126 fi
4127 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4128 sed -e 's/^/| /' < conftest.err >&5
4129 done
4130
4131 cd ..
4132 rm -rf conftest.dir
4133 else
4134 am_cv_CC_dependencies_compiler_type=none
4135 fi
4136
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4139 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4140 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4141 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
4142 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4143
4144 fi
4145
4146
4147 ALL_LINGUAS=
4148 # If we haven't got the data from the intl directory,
4149 # assume NLS is disabled.
4150 USE_NLS=no
4151 LIBINTL=
4152 LIBINTL_DEP=
4153 INCINTL=
4154 XGETTEXT=
4155 GMSGFMT=
4156 POSUB=
4157
4158 if test -f ../../intl/config.intl; then
4159 . ../../intl/config.intl
4160 fi
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4162 $as_echo_n "checking whether NLS is requested... " >&6; }
4163 if test x"$USE_NLS" != xyes; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 $as_echo "no" >&6; }
4166 else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168 $as_echo "yes" >&6; }
4169
4170 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4171
4172
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4174 $as_echo_n "checking for catalogs to be installed... " >&6; }
4175 # Look for .po and .gmo files in the source directory.
4176 CATALOGS=
4177 XLINGUAS=
4178 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4179 # If there aren't any .gmo files the shell will give us the
4180 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4181 # weeded out.
4182 case "$cat" in *\**)
4183 continue;;
4184 esac
4185 # The quadruple backslash is collapsed to a double backslash
4186 # by the backticks, then collapsed again by the double quotes,
4187 # leaving us with one backslash in the sed expression (right
4188 # before the dot that mustn't act as a wildcard).
4189 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4190 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4191 # The user is allowed to set LINGUAS to a list of languages to
4192 # install catalogs for. If it's empty that means "all of them."
4193 if test "x$LINGUAS" = x; then
4194 CATALOGS="$CATALOGS $cat"
4195 XLINGUAS="$XLINGUAS $lang"
4196 else
4197 case "$LINGUAS" in *$lang*)
4198 CATALOGS="$CATALOGS $cat"
4199 XLINGUAS="$XLINGUAS $lang"
4200 ;;
4201 esac
4202 fi
4203 done
4204 LINGUAS="$XLINGUAS"
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4206 $as_echo "$LINGUAS" >&6; }
4207
4208
4209 DATADIRNAME=share
4210
4211 INSTOBJEXT=.mo
4212
4213 GENCAT=gencat
4214
4215 CATOBJEXT=.gmo
4216
4217 fi
4218
4219
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4221 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4222 # Check whether --enable-maintainer-mode was given.
4223 if test "${enable_maintainer_mode+set}" = set; then :
4224 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4225 else
4226 USE_MAINTAINER_MODE=no
4227 fi
4228
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4230 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4231 if test $USE_MAINTAINER_MODE = yes; then
4232 MAINTAINER_MODE_TRUE=
4233 MAINTAINER_MODE_FALSE='#'
4234 else
4235 MAINTAINER_MODE_TRUE='#'
4236 MAINTAINER_MODE_FALSE=
4237 fi
4238
4239 MAINT=$MAINTAINER_MODE_TRUE
4240
4241
4242
4243
4244 sim_inline="-DDEFAULT_INLINE=0"
4245 # Check whether --enable-sim-inline was given.
4246 if test "${enable_sim_inline+set}" = set; then :
4247 enableval=$enable_sim_inline; sim_inline=""
4248 case "$enableval" in
4249 no) sim_inline="-DDEFAULT_INLINE=0";;
4250 0) sim_inline="-DDEFAULT_INLINE=0";;
4251 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
4252 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
4253 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4254 new_flag=""
4255 case "$x" in
4256 *_INLINE=*) new_flag="-D$x";;
4257 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4258 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
4259 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
4260 esac
4261 if test x"$sim_inline" = x""; then
4262 sim_inline="$new_flag"
4263 else
4264 sim_inline="$sim_inline $new_flag"
4265 fi
4266 done;;
4267 esac
4268 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4269 echo "Setting inline flags = $sim_inline" 6>&1
4270 fi
4271 fi
4272
4273
4274
4275
4276 default_sim_scache="16384"
4277 # Check whether --enable-sim-scache was given.
4278 if test "${enable_sim_scache+set}" = set; then :
4279 enableval=$enable_sim_scache; case "${enableval}" in
4280 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
4281 no) sim_scache="-DWITH_SCACHE=0" ;;
4282 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
4283 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
4284 sim_scache="";;
4285 esac
4286 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
4287 echo "Setting scache size = $sim_scache" 6>&1
4288 fi
4289 else
4290 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
4291 fi
4292
4293
4294
4295 default_sim_default_model="fr500"
4296 # Check whether --enable-sim-default-model was given.
4297 if test "${enable_sim_default_model+set}" = set; then :
4298 enableval=$enable_sim_default_model; case "${enableval}" in
4299 yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
4300 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
4301 esac
4302 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
4303 echo "Setting default model = $sim_default_model" 6>&1
4304 fi
4305 else
4306 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
4307 fi
4308
4309
4310
4311 cgen_maint=no
4312 cgen=guile
4313 cgendir='$(srcdir)/../../cgen'
4314 # Check whether --enable-cgen-maint was given.
4315 if test "${enable_cgen_maint+set}" = set; then :
4316 enableval=$enable_cgen_maint; case "${enableval}" in
4317 yes) cgen_maint=yes ;;
4318 no) cgen_maint=no ;;
4319 *)
4320 # Argument is a directory where cgen can be found. In some
4321 # future world cgen could be installable, but right now this
4322 # is not the case. Instead we assume the directory is a path
4323 # to the cgen source tree.
4324 cgen_maint=yes
4325 if test -r ${enableval}/iformat.scm; then
4326 # This looks like a cgen source tree.
4327 cgendir=${enableval}
4328 else
4329 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
4330 fi
4331 ;;
4332 esac
4333 fi
4334 if test x${cgen_maint} != xno ; then
4335 CGEN_MAINT=''
4336 else
4337 CGEN_MAINT='#'
4338 fi
4339
4340
4341
4342
4343
4344 #
4345 # Enable making unknown traps dump out registers
4346 #
4347 # Check whether --enable-sim-trapdump was given.
4348 if test "${enable_sim_trapdump+set}" = set; then :
4349 enableval=$enable_sim_trapdump; case "${enableval}" in
4350 yes) sim_trapdump="-DTRAPDUMP=1";;
4351 no) sim_trapdump="-DTRAPDUMP=0";;
4352 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5; sim_trapdump="";;
4353 esac
4354 if test x"$silent" != x"yes" && test x"$sim_trapdump" != x""; then
4355 echo "Setting sim_trapdump = $sim_trapdump" 6>&1
4356 fi
4357 else
4358 sim_trapdump=""
4359 fi
4360
4361
4362
4363 hardware="cfi core pal glue "
4364 sim_hw_cflags="-DWITH_HW=1"
4365 sim_hw="$hardware"
4366 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4367
4368 # Check whether --enable-sim-hardware was given.
4369 if test "${enable_sim_hardware+set}" = set; then :
4370 enableval=$enable_sim_hardware;
4371 else
4372 enable_sim_hardware="yes"
4373 fi
4374
4375 case ${enable_sim_hardware} in
4376 yes|no) ;;
4377 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4378 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4379 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4380 esac
4381
4382 if test "$enable_sim_hardware" = no; then
4383 sim_hw_objs=
4384 sim_hw_cflags="-DWITH_HW=0"
4385 sim_hw=
4386 else
4387 sim_hw_cflags="-DWITH_HW=1"
4388 # remove duplicates
4389 sim_hw=""
4390 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
4391 for i in $hardware ; do
4392 case " $sim_hw " in
4393 *" $i "*) ;;
4394 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
4395 esac
4396 done
4397 # mingw does not support sockser
4398 case ${host} in
4399 *mingw*) ;;
4400 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
4401 # that you instatiate. Instead, other code will call into it directly.
4402 # At some point, we should convert it over.
4403 sim_hw_objs="$sim_hw_objs dv-sockser.o"
4404 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
4405 ;;
4406 esac
4407 if test x"$silent" != x"yes"; then
4408 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4409 fi
4410 fi
4411
4412
4413 cgen_breaks=""
4414 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
4415 cgen_breaks="break cgen_rtx_error";
4416 fi
4417
4418 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
4419
4420 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
4421
4422 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
4423
4424 ac_config_commands="$ac_config_commands Makefile"
4425
4426 ac_config_commands="$ac_config_commands stamp-h"
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438 cat >confcache <<\_ACEOF
4439 # This file is a shell script that caches the results of configure
4440 # tests run on this system so they can be shared between configure
4441 # scripts and configure runs, see configure's option --config-cache.
4442 # It is not useful on other systems. If it contains results you don't
4443 # want to keep, you may remove or edit it.
4444 #
4445 # config.status only pays attention to the cache file if you give it
4446 # the --recheck option to rerun configure.
4447 #
4448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4450 # following values.
4451
4452 _ACEOF
4453
4454 # The following way of writing the cache mishandles newlines in values,
4455 # but we know of no workaround that is simple, portable, and efficient.
4456 # So, we kill variables containing newlines.
4457 # Ultrix sh set writes to stderr and can't be redirected directly,
4458 # and sets the high bit in the cache file unless we assign to the vars.
4459 (
4460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4461 eval ac_val=\$$ac_var
4462 case $ac_val in #(
4463 *${as_nl}*)
4464 case $ac_var in #(
4465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4467 esac
4468 case $ac_var in #(
4469 _ | IFS | as_nl) ;; #(
4470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4471 *) { eval $ac_var=; unset $ac_var;} ;;
4472 esac ;;
4473 esac
4474 done
4475
4476 (set) 2>&1 |
4477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4478 *${as_nl}ac_space=\ *)
4479 # `set' does not quote correctly, so add quotes: double-quote
4480 # substitution turns \\\\ into \\, and sed turns \\ into \.
4481 sed -n \
4482 "s/'/'\\\\''/g;
4483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4484 ;; #(
4485 *)
4486 # `set' quotes correctly as required by POSIX, so do not add quotes.
4487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4488 ;;
4489 esac |
4490 sort
4491 ) |
4492 sed '
4493 /^ac_cv_env_/b end
4494 t clear
4495 :clear
4496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4497 t end
4498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4499 :end' >>confcache
4500 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4501 if test -w "$cache_file"; then
4502 if test "x$cache_file" != "x/dev/null"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4504 $as_echo "$as_me: updating cache $cache_file" >&6;}
4505 if test ! -f "$cache_file" || test -h "$cache_file"; then
4506 cat confcache >"$cache_file"
4507 else
4508 case $cache_file in #(
4509 */* | ?:*)
4510 mv -f confcache "$cache_file"$$ &&
4511 mv -f "$cache_file"$$ "$cache_file" ;; #(
4512 *)
4513 mv -f confcache "$cache_file" ;;
4514 esac
4515 fi
4516 fi
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4519 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4520 fi
4521 fi
4522 rm -f confcache
4523
4524 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4525 # Let make expand exec_prefix.
4526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4527
4528 # Transform confdefs.h into DEFS.
4529 # Protect against shell expansion while executing Makefile rules.
4530 # Protect against Makefile macro expansion.
4531 #
4532 # If the first sed substitution is executed (which looks for macros that
4533 # take arguments), then branch to the quote section. Otherwise,
4534 # look for a macro that doesn't take arguments.
4535 ac_script='
4536 :mline
4537 /\\$/{
4538 N
4539 s,\\\n,,
4540 b mline
4541 }
4542 t clear
4543 :clear
4544 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4545 t quote
4546 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4547 t quote
4548 b any
4549 :quote
4550 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4551 s/\[/\\&/g
4552 s/\]/\\&/g
4553 s/\$/$$/g
4554 H
4555 :any
4556 ${
4557 g
4558 s/^\n//
4559 s/\n/ /g
4560 p
4561 }
4562 '
4563 DEFS=`sed -n "$ac_script" confdefs.h`
4564
4565
4566 ac_libobjs=
4567 ac_ltlibobjs=
4568 U=
4569 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4570 # 1. Remove the extension, and $U if already installed.
4571 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4572 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4573 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4574 # will be set to the directory where LIBOBJS objects are built.
4575 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4576 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4577 done
4578 LIBOBJS=$ac_libobjs
4579
4580 LTLIBOBJS=$ac_ltlibobjs
4581
4582
4583
4584 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4585 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4587 fi
4588
4589 : "${CONFIG_STATUS=./config.status}"
4590 ac_write_fail=0
4591 ac_clean_files_save=$ac_clean_files
4592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4595 as_write_fail=0
4596 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4597 #! $SHELL
4598 # Generated by $as_me.
4599 # Run this file to recreate the current configuration.
4600 # Compiler output produced by configure, useful for debugging
4601 # configure, is in config.log if it exists.
4602
4603 debug=false
4604 ac_cs_recheck=false
4605 ac_cs_silent=false
4606
4607 SHELL=\${CONFIG_SHELL-$SHELL}
4608 export SHELL
4609 _ASEOF
4610 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4611 ## -------------------- ##
4612 ## M4sh Initialization. ##
4613 ## -------------------- ##
4614
4615 # Be more Bourne compatible
4616 DUALCASE=1; export DUALCASE # for MKS sh
4617 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4618 emulate sh
4619 NULLCMD=:
4620 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4621 # is contrary to our usage. Disable this feature.
4622 alias -g '${1+"$@"}'='"$@"'
4623 setopt NO_GLOB_SUBST
4624 else
4625 case `(set -o) 2>/dev/null` in #(
4626 *posix*) :
4627 set -o posix ;; #(
4628 *) :
4629 ;;
4630 esac
4631 fi
4632
4633
4634 as_nl='
4635 '
4636 export as_nl
4637 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4638 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4640 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4641 # Prefer a ksh shell builtin over an external printf program on Solaris,
4642 # but without wasting forks for bash or zsh.
4643 if test -z "$BASH_VERSION$ZSH_VERSION" \
4644 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4645 as_echo='print -r --'
4646 as_echo_n='print -rn --'
4647 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4648 as_echo='printf %s\n'
4649 as_echo_n='printf %s'
4650 else
4651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4652 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4653 as_echo_n='/usr/ucb/echo -n'
4654 else
4655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4656 as_echo_n_body='eval
4657 arg=$1;
4658 case $arg in #(
4659 *"$as_nl"*)
4660 expr "X$arg" : "X\\(.*\\)$as_nl";
4661 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4662 esac;
4663 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4664 '
4665 export as_echo_n_body
4666 as_echo_n='sh -c $as_echo_n_body as_echo'
4667 fi
4668 export as_echo_body
4669 as_echo='sh -c $as_echo_body as_echo'
4670 fi
4671
4672 # The user is always right.
4673 if test "${PATH_SEPARATOR+set}" != set; then
4674 PATH_SEPARATOR=:
4675 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4676 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4677 PATH_SEPARATOR=';'
4678 }
4679 fi
4680
4681
4682 # IFS
4683 # We need space, tab and new line, in precisely that order. Quoting is
4684 # there to prevent editors from complaining about space-tab.
4685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4686 # splitting by setting IFS to empty value.)
4687 IFS=" "" $as_nl"
4688
4689 # Find who we are. Look in the path if we contain no directory separator.
4690 as_myself=
4691 case $0 in #((
4692 *[\\/]* ) as_myself=$0 ;;
4693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4699 done
4700 IFS=$as_save_IFS
4701
4702 ;;
4703 esac
4704 # We did not find ourselves, most probably we were run as `sh COMMAND'
4705 # in which case we are not to be found in the path.
4706 if test "x$as_myself" = x; then
4707 as_myself=$0
4708 fi
4709 if test ! -f "$as_myself"; then
4710 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4711 exit 1
4712 fi
4713
4714 # Unset variables that we do not need and which cause bugs (e.g. in
4715 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4716 # suppresses any "Segmentation fault" message there. '((' could
4717 # trigger a bug in pdksh 5.2.14.
4718 for as_var in BASH_ENV ENV MAIL MAILPATH
4719 do eval test x\${$as_var+set} = xset \
4720 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4721 done
4722 PS1='$ '
4723 PS2='> '
4724 PS4='+ '
4725
4726 # NLS nuisances.
4727 LC_ALL=C
4728 export LC_ALL
4729 LANGUAGE=C
4730 export LANGUAGE
4731
4732 # CDPATH.
4733 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4734
4735
4736 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4737 # ----------------------------------------
4738 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4739 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4740 # script with STATUS, using 1 if that was 0.
4741 as_fn_error ()
4742 {
4743 as_status=$1; test $as_status -eq 0 && as_status=1
4744 if test "$4"; then
4745 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4746 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4747 fi
4748 $as_echo "$as_me: error: $2" >&2
4749 as_fn_exit $as_status
4750 } # as_fn_error
4751
4752
4753 # as_fn_set_status STATUS
4754 # -----------------------
4755 # Set $? to STATUS, without forking.
4756 as_fn_set_status ()
4757 {
4758 return $1
4759 } # as_fn_set_status
4760
4761 # as_fn_exit STATUS
4762 # -----------------
4763 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4764 as_fn_exit ()
4765 {
4766 set +e
4767 as_fn_set_status $1
4768 exit $1
4769 } # as_fn_exit
4770
4771 # as_fn_unset VAR
4772 # ---------------
4773 # Portably unset VAR.
4774 as_fn_unset ()
4775 {
4776 { eval $1=; unset $1;}
4777 }
4778 as_unset=as_fn_unset
4779 # as_fn_append VAR VALUE
4780 # ----------------------
4781 # Append the text in VALUE to the end of the definition contained in VAR. Take
4782 # advantage of any shell optimizations that allow amortized linear growth over
4783 # repeated appends, instead of the typical quadratic growth present in naive
4784 # implementations.
4785 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4786 eval 'as_fn_append ()
4787 {
4788 eval $1+=\$2
4789 }'
4790 else
4791 as_fn_append ()
4792 {
4793 eval $1=\$$1\$2
4794 }
4795 fi # as_fn_append
4796
4797 # as_fn_arith ARG...
4798 # ------------------
4799 # Perform arithmetic evaluation on the ARGs, and store the result in the
4800 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4801 # must be portable across $(()) and expr.
4802 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4803 eval 'as_fn_arith ()
4804 {
4805 as_val=$(( $* ))
4806 }'
4807 else
4808 as_fn_arith ()
4809 {
4810 as_val=`expr "$@" || test $? -eq 1`
4811 }
4812 fi # as_fn_arith
4813
4814
4815 if expr a : '\(a\)' >/dev/null 2>&1 &&
4816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4817 as_expr=expr
4818 else
4819 as_expr=false
4820 fi
4821
4822 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4823 as_basename=basename
4824 else
4825 as_basename=false
4826 fi
4827
4828 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4829 as_dirname=dirname
4830 else
4831 as_dirname=false
4832 fi
4833
4834 as_me=`$as_basename -- "$0" ||
4835 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4836 X"$0" : 'X\(//\)$' \| \
4837 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4838 $as_echo X/"$0" |
4839 sed '/^.*\/\([^/][^/]*\)\/*$/{
4840 s//\1/
4841 q
4842 }
4843 /^X\/\(\/\/\)$/{
4844 s//\1/
4845 q
4846 }
4847 /^X\/\(\/\).*/{
4848 s//\1/
4849 q
4850 }
4851 s/.*/./; q'`
4852
4853 # Avoid depending upon Character Ranges.
4854 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4855 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4856 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4857 as_cr_digits='0123456789'
4858 as_cr_alnum=$as_cr_Letters$as_cr_digits
4859
4860 ECHO_C= ECHO_N= ECHO_T=
4861 case `echo -n x` in #(((((
4862 -n*)
4863 case `echo 'xy\c'` in
4864 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4865 xy) ECHO_C='\c';;
4866 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4867 ECHO_T=' ';;
4868 esac;;
4869 *)
4870 ECHO_N='-n';;
4871 esac
4872
4873 rm -f conf$$ conf$$.exe conf$$.file
4874 if test -d conf$$.dir; then
4875 rm -f conf$$.dir/conf$$.file
4876 else
4877 rm -f conf$$.dir
4878 mkdir conf$$.dir 2>/dev/null
4879 fi
4880 if (echo >conf$$.file) 2>/dev/null; then
4881 if ln -s conf$$.file conf$$ 2>/dev/null; then
4882 as_ln_s='ln -s'
4883 # ... but there are two gotchas:
4884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4886 # In both cases, we have to default to `cp -pR'.
4887 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4888 as_ln_s='cp -pR'
4889 elif ln conf$$.file conf$$ 2>/dev/null; then
4890 as_ln_s=ln
4891 else
4892 as_ln_s='cp -pR'
4893 fi
4894 else
4895 as_ln_s='cp -pR'
4896 fi
4897 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4898 rmdir conf$$.dir 2>/dev/null
4899
4900
4901 # as_fn_mkdir_p
4902 # -------------
4903 # Create "$as_dir" as a directory, including parents if necessary.
4904 as_fn_mkdir_p ()
4905 {
4906
4907 case $as_dir in #(
4908 -*) as_dir=./$as_dir;;
4909 esac
4910 test -d "$as_dir" || eval $as_mkdir_p || {
4911 as_dirs=
4912 while :; do
4913 case $as_dir in #(
4914 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4915 *) as_qdir=$as_dir;;
4916 esac
4917 as_dirs="'$as_qdir' $as_dirs"
4918 as_dir=`$as_dirname -- "$as_dir" ||
4919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4920 X"$as_dir" : 'X\(//\)[^/]' \| \
4921 X"$as_dir" : 'X\(//\)$' \| \
4922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4923 $as_echo X"$as_dir" |
4924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4925 s//\1/
4926 q
4927 }
4928 /^X\(\/\/\)[^/].*/{
4929 s//\1/
4930 q
4931 }
4932 /^X\(\/\/\)$/{
4933 s//\1/
4934 q
4935 }
4936 /^X\(\/\).*/{
4937 s//\1/
4938 q
4939 }
4940 s/.*/./; q'`
4941 test -d "$as_dir" && break
4942 done
4943 test -z "$as_dirs" || eval "mkdir $as_dirs"
4944 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4945
4946
4947 } # as_fn_mkdir_p
4948 if mkdir -p . 2>/dev/null; then
4949 as_mkdir_p='mkdir -p "$as_dir"'
4950 else
4951 test -d ./-p && rmdir ./-p
4952 as_mkdir_p=false
4953 fi
4954
4955
4956 # as_fn_executable_p FILE
4957 # -----------------------
4958 # Test if FILE is an executable regular file.
4959 as_fn_executable_p ()
4960 {
4961 test -f "$1" && test -x "$1"
4962 } # as_fn_executable_p
4963 as_test_x='test -x'
4964 as_executable_p=as_fn_executable_p
4965
4966 # Sed expression to map a string onto a valid CPP name.
4967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4968
4969 # Sed expression to map a string onto a valid variable name.
4970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4971
4972
4973 exec 6>&1
4974 ## ----------------------------------- ##
4975 ## Main body of $CONFIG_STATUS script. ##
4976 ## ----------------------------------- ##
4977 _ASEOF
4978 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4979
4980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4981 # Save the log message, to keep $0 and so on meaningful, and to
4982 # report actual input values of CONFIG_FILES etc. instead of their
4983 # values after options handling.
4984 ac_log="
4985 This file was extended by $as_me, which was
4986 generated by GNU Autoconf 2.69. Invocation command line was
4987
4988 CONFIG_FILES = $CONFIG_FILES
4989 CONFIG_HEADERS = $CONFIG_HEADERS
4990 CONFIG_LINKS = $CONFIG_LINKS
4991 CONFIG_COMMANDS = $CONFIG_COMMANDS
4992 $ $0 $@
4993
4994 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4995 "
4996
4997 _ACEOF
4998
4999 case $ac_config_files in *"
5000 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5001 esac
5002
5003
5004
5005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5006 # Files that config.status was made for.
5007 config_files="$ac_config_files"
5008 config_commands="$ac_config_commands"
5009
5010 _ACEOF
5011
5012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5013 ac_cs_usage="\
5014 \`$as_me' instantiates files and other configuration actions
5015 from templates according to the current configuration. Unless the files
5016 and actions are specified as TAGs, all are instantiated by default.
5017
5018 Usage: $0 [OPTION]... [TAG]...
5019
5020 -h, --help print this help, then exit
5021 -V, --version print version number and configuration settings, then exit
5022 --config print configuration, then exit
5023 -q, --quiet, --silent
5024 do not print progress messages
5025 -d, --debug don't remove temporary files
5026 --recheck update $as_me by reconfiguring in the same conditions
5027 --file=FILE[:TEMPLATE]
5028 instantiate the configuration file FILE
5029
5030 Configuration files:
5031 $config_files
5032
5033 Configuration commands:
5034 $config_commands
5035
5036 Report bugs to the package provider."
5037
5038 _ACEOF
5039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5040 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5041 ac_cs_version="\\
5042 config.status
5043 configured by $0, generated by GNU Autoconf 2.69,
5044 with options \\"\$ac_cs_config\\"
5045
5046 Copyright (C) 2012 Free Software Foundation, Inc.
5047 This config.status script is free software; the Free Software Foundation
5048 gives unlimited permission to copy, distribute and modify it."
5049
5050 ac_pwd='$ac_pwd'
5051 srcdir='$srcdir'
5052 INSTALL='$INSTALL'
5053 test -n "\$AWK" || AWK=awk
5054 _ACEOF
5055
5056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5057 # The default lists apply if the user does not specify any file.
5058 ac_need_defaults=:
5059 while test $# != 0
5060 do
5061 case $1 in
5062 --*=?*)
5063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5064 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5065 ac_shift=:
5066 ;;
5067 --*=)
5068 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5069 ac_optarg=
5070 ac_shift=:
5071 ;;
5072 *)
5073 ac_option=$1
5074 ac_optarg=$2
5075 ac_shift=shift
5076 ;;
5077 esac
5078
5079 case $ac_option in
5080 # Handling of the options.
5081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5082 ac_cs_recheck=: ;;
5083 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5084 $as_echo "$ac_cs_version"; exit ;;
5085 --config | --confi | --conf | --con | --co | --c )
5086 $as_echo "$ac_cs_config"; exit ;;
5087 --debug | --debu | --deb | --de | --d | -d )
5088 debug=: ;;
5089 --file | --fil | --fi | --f )
5090 $ac_shift
5091 case $ac_optarg in
5092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5093 '') as_fn_error $? "missing file argument" ;;
5094 esac
5095 as_fn_append CONFIG_FILES " '$ac_optarg'"
5096 ac_need_defaults=false;;
5097 --he | --h | --help | --hel | -h )
5098 $as_echo "$ac_cs_usage"; exit ;;
5099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5100 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5101 ac_cs_silent=: ;;
5102
5103 # This is an error.
5104 -*) as_fn_error $? "unrecognized option: \`$1'
5105 Try \`$0 --help' for more information." ;;
5106
5107 *) as_fn_append ac_config_targets " $1"
5108 ac_need_defaults=false ;;
5109
5110 esac
5111 shift
5112 done
5113
5114 ac_configure_extra_args=
5115
5116 if $ac_cs_silent; then
5117 exec 6>/dev/null
5118 ac_configure_extra_args="$ac_configure_extra_args --silent"
5119 fi
5120
5121 _ACEOF
5122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5123 if \$ac_cs_recheck; then
5124 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5125 shift
5126 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5127 CONFIG_SHELL='$SHELL'
5128 export CONFIG_SHELL
5129 exec "\$@"
5130 fi
5131
5132 _ACEOF
5133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5134 exec 5>>config.log
5135 {
5136 echo
5137 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5138 ## Running $as_me. ##
5139 _ASBOX
5140 $as_echo "$ac_log"
5141 } >&5
5142
5143 _ACEOF
5144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5145 #
5146 # INIT-COMMANDS
5147 #
5148 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
5149
5150 _ACEOF
5151
5152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5153
5154 # Handling of arguments.
5155 for ac_config_target in $ac_config_targets
5156 do
5157 case $ac_config_target in
5158 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
5159 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5160 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5161 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5162 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5163 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5164
5165 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5166 esac
5167 done
5168
5169
5170 # If the user did not use the arguments to specify the items to instantiate,
5171 # then the envvar interface is used. Set only those that are not.
5172 # We use the long form for the default assignment because of an extremely
5173 # bizarre bug on SunOS 4.1.3.
5174 if $ac_need_defaults; then
5175 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5176 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5177 fi
5178
5179 # Have a temporary directory for convenience. Make it in the build tree
5180 # simply because there is no reason against having it here, and in addition,
5181 # creating and moving files from /tmp can sometimes cause problems.
5182 # Hook for its removal unless debugging.
5183 # Note that there is a small window in which the directory will not be cleaned:
5184 # after its creation but before its name has been assigned to `$tmp'.
5185 $debug ||
5186 {
5187 tmp= ac_tmp=
5188 trap 'exit_status=$?
5189 : "${ac_tmp:=$tmp}"
5190 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5191 ' 0
5192 trap 'as_fn_exit 1' 1 2 13 15
5193 }
5194 # Create a (secure) tmp directory for tmp files.
5195
5196 {
5197 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5198 test -d "$tmp"
5199 } ||
5200 {
5201 tmp=./conf$$-$RANDOM
5202 (umask 077 && mkdir "$tmp")
5203 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5204 ac_tmp=$tmp
5205
5206 # Set up the scripts for CONFIG_FILES section.
5207 # No need to generate them if there are no CONFIG_FILES.
5208 # This happens for instance with `./config.status config.h'.
5209 if test -n "$CONFIG_FILES"; then
5210
5211
5212 ac_cr=`echo X | tr X '\015'`
5213 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5214 # But we know of no other shell where ac_cr would be empty at this
5215 # point, so we can use a bashism as a fallback.
5216 if test "x$ac_cr" = x; then
5217 eval ac_cr=\$\'\\r\'
5218 fi
5219 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5220 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5221 ac_cs_awk_cr='\\r'
5222 else
5223 ac_cs_awk_cr=$ac_cr
5224 fi
5225
5226 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5227 _ACEOF
5228
5229
5230 {
5231 echo "cat >conf$$subs.awk <<_ACEOF" &&
5232 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5233 echo "_ACEOF"
5234 } >conf$$subs.sh ||
5235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5236 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5237 ac_delim='%!_!# '
5238 for ac_last_try in false false false false false :; do
5239 . ./conf$$subs.sh ||
5240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5241
5242 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5243 if test $ac_delim_n = $ac_delim_num; then
5244 break
5245 elif $ac_last_try; then
5246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5247 else
5248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5249 fi
5250 done
5251 rm -f conf$$subs.sh
5252
5253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5254 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5255 _ACEOF
5256 sed -n '
5257 h
5258 s/^/S["/; s/!.*/"]=/
5259 p
5260 g
5261 s/^[^!]*!//
5262 :repl
5263 t repl
5264 s/'"$ac_delim"'$//
5265 t delim
5266 :nl
5267 h
5268 s/\(.\{148\}\)..*/\1/
5269 t more1
5270 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5271 p
5272 n
5273 b repl
5274 :more1
5275 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5276 p
5277 g
5278 s/.\{148\}//
5279 t nl
5280 :delim
5281 h
5282 s/\(.\{148\}\)..*/\1/
5283 t more2
5284 s/["\\]/\\&/g; s/^/"/; s/$/"/
5285 p
5286 b
5287 :more2
5288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5289 p
5290 g
5291 s/.\{148\}//
5292 t delim
5293 ' <conf$$subs.awk | sed '
5294 /^[^""]/{
5295 N
5296 s/\n//
5297 }
5298 ' >>$CONFIG_STATUS || ac_write_fail=1
5299 rm -f conf$$subs.awk
5300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5301 _ACAWK
5302 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5303 for (key in S) S_is_set[key] = 1
5304 FS = "\a"
5305
5306 }
5307 {
5308 line = $ 0
5309 nfields = split(line, field, "@")
5310 substed = 0
5311 len = length(field[1])
5312 for (i = 2; i < nfields; i++) {
5313 key = field[i]
5314 keylen = length(key)
5315 if (S_is_set[key]) {
5316 value = S[key]
5317 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5318 len += length(value) + length(field[++i])
5319 substed = 1
5320 } else
5321 len += 1 + keylen
5322 }
5323
5324 print line
5325 }
5326
5327 _ACAWK
5328 _ACEOF
5329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5330 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5331 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5332 else
5333 cat
5334 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5335 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5336 _ACEOF
5337
5338 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5339 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5340 # trailing colons and then remove the whole line if VPATH becomes empty
5341 # (actually we leave an empty line to preserve line numbers).
5342 if test "x$srcdir" = x.; then
5343 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5344 h
5345 s///
5346 s/^/:/
5347 s/[ ]*$/:/
5348 s/:\$(srcdir):/:/g
5349 s/:\${srcdir}:/:/g
5350 s/:@srcdir@:/:/g
5351 s/^:*//
5352 s/:*$//
5353 x
5354 s/\(=[ ]*\).*/\1/
5355 G
5356 s/\n//
5357 s/^[^=]*=[ ]*$//
5358 }'
5359 fi
5360
5361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5362 fi # test -n "$CONFIG_FILES"
5363
5364
5365 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
5366 shift
5367 for ac_tag
5368 do
5369 case $ac_tag in
5370 :[FHLC]) ac_mode=$ac_tag; continue;;
5371 esac
5372 case $ac_mode$ac_tag in
5373 :[FHL]*:*);;
5374 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5375 :[FH]-) ac_tag=-:-;;
5376 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5377 esac
5378 ac_save_IFS=$IFS
5379 IFS=:
5380 set x $ac_tag
5381 IFS=$ac_save_IFS
5382 shift
5383 ac_file=$1
5384 shift
5385
5386 case $ac_mode in
5387 :L) ac_source=$1;;
5388 :[FH])
5389 ac_file_inputs=
5390 for ac_f
5391 do
5392 case $ac_f in
5393 -) ac_f="$ac_tmp/stdin";;
5394 *) # Look for the file first in the build tree, then in the source tree
5395 # (if the path is not absolute). The absolute path cannot be DOS-style,
5396 # because $ac_f cannot contain `:'.
5397 test -f "$ac_f" ||
5398 case $ac_f in
5399 [\\/$]*) false;;
5400 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5401 esac ||
5402 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5403 esac
5404 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5405 as_fn_append ac_file_inputs " '$ac_f'"
5406 done
5407
5408 # Let's still pretend it is `configure' which instantiates (i.e., don't
5409 # use $as_me), people would be surprised to read:
5410 # /* config.h. Generated by config.status. */
5411 configure_input='Generated from '`
5412 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5413 `' by configure.'
5414 if test x"$ac_file" != x-; then
5415 configure_input="$ac_file. $configure_input"
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5417 $as_echo "$as_me: creating $ac_file" >&6;}
5418 fi
5419 # Neutralize special characters interpreted by sed in replacement strings.
5420 case $configure_input in #(
5421 *\&* | *\|* | *\\* )
5422 ac_sed_conf_input=`$as_echo "$configure_input" |
5423 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5424 *) ac_sed_conf_input=$configure_input;;
5425 esac
5426
5427 case $ac_tag in
5428 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5430 esac
5431 ;;
5432 esac
5433
5434 ac_dir=`$as_dirname -- "$ac_file" ||
5435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5436 X"$ac_file" : 'X\(//\)[^/]' \| \
5437 X"$ac_file" : 'X\(//\)$' \| \
5438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5439 $as_echo X"$ac_file" |
5440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5441 s//\1/
5442 q
5443 }
5444 /^X\(\/\/\)[^/].*/{
5445 s//\1/
5446 q
5447 }
5448 /^X\(\/\/\)$/{
5449 s//\1/
5450 q
5451 }
5452 /^X\(\/\).*/{
5453 s//\1/
5454 q
5455 }
5456 s/.*/./; q'`
5457 as_dir="$ac_dir"; as_fn_mkdir_p
5458 ac_builddir=.
5459
5460 case "$ac_dir" in
5461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5462 *)
5463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5464 # A ".." for each directory in $ac_dir_suffix.
5465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5466 case $ac_top_builddir_sub in
5467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5469 esac ;;
5470 esac
5471 ac_abs_top_builddir=$ac_pwd
5472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5473 # for backward compatibility:
5474 ac_top_builddir=$ac_top_build_prefix
5475
5476 case $srcdir in
5477 .) # We are building in place.
5478 ac_srcdir=.
5479 ac_top_srcdir=$ac_top_builddir_sub
5480 ac_abs_top_srcdir=$ac_pwd ;;
5481 [\\/]* | ?:[\\/]* ) # Absolute name.
5482 ac_srcdir=$srcdir$ac_dir_suffix;
5483 ac_top_srcdir=$srcdir
5484 ac_abs_top_srcdir=$srcdir ;;
5485 *) # Relative name.
5486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5487 ac_top_srcdir=$ac_top_build_prefix$srcdir
5488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5489 esac
5490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5491
5492
5493 case $ac_mode in
5494 :F)
5495 #
5496 # CONFIG_FILE
5497 #
5498
5499 case $INSTALL in
5500 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5501 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5502 esac
5503 _ACEOF
5504
5505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5506 # If the template does not know about datarootdir, expand it.
5507 # FIXME: This hack should be removed a few years after 2.60.
5508 ac_datarootdir_hack=; ac_datarootdir_seen=
5509 ac_sed_dataroot='
5510 /datarootdir/ {
5511 p
5512 q
5513 }
5514 /@datadir@/p
5515 /@docdir@/p
5516 /@infodir@/p
5517 /@localedir@/p
5518 /@mandir@/p'
5519 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5520 *datarootdir*) ac_datarootdir_seen=yes;;
5521 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5523 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5524 _ACEOF
5525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5526 ac_datarootdir_hack='
5527 s&@datadir@&$datadir&g
5528 s&@docdir@&$docdir&g
5529 s&@infodir@&$infodir&g
5530 s&@localedir@&$localedir&g
5531 s&@mandir@&$mandir&g
5532 s&\\\${datarootdir}&$datarootdir&g' ;;
5533 esac
5534 _ACEOF
5535
5536 # Neutralize VPATH when `$srcdir' = `.'.
5537 # Shell code in configure.ac might set extrasub.
5538 # FIXME: do we really want to maintain this feature?
5539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5540 ac_sed_extra="$ac_vpsub
5541 $extrasub
5542 _ACEOF
5543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5544 :t
5545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5546 s|@configure_input@|$ac_sed_conf_input|;t t
5547 s&@top_builddir@&$ac_top_builddir_sub&;t t
5548 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5549 s&@srcdir@&$ac_srcdir&;t t
5550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5551 s&@top_srcdir@&$ac_top_srcdir&;t t
5552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5553 s&@builddir@&$ac_builddir&;t t
5554 s&@abs_builddir@&$ac_abs_builddir&;t t
5555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5556 s&@INSTALL@&$ac_INSTALL&;t t
5557 $ac_datarootdir_hack
5558 "
5559 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5560 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5561
5562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5563 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5565 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5567 which seems to be undefined. Please make sure it is defined" >&5
5568 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5569 which seems to be undefined. Please make sure it is defined" >&2;}
5570
5571 rm -f "$ac_tmp/stdin"
5572 case $ac_file in
5573 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5574 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5575 esac \
5576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5577 ;;
5578
5579
5580 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5581 $as_echo "$as_me: executing $ac_file commands" >&6;}
5582 ;;
5583 esac
5584
5585
5586 case $ac_file$ac_mode in
5587 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
5588 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5589 rm -f Makesim1.tmp Makesim2.tmp Makefile
5590 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
5591 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
5592 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5593 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5594 <Makefile.sim >Makefile
5595 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5596 ;;
5597 "stamp-h":C) echo > stamp-h ;;
5598
5599 esac
5600 done # for ac_tag
5601
5602
5603 as_fn_exit 0
5604 _ACEOF
5605 ac_clean_files=$ac_clean_files_save
5606
5607 test $ac_write_fail = 0 ||
5608 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5609
5610
5611 # configure is writing to config.log, and then calls config.status.
5612 # config.status does its own redirection, appending to config.log.
5613 # Unfortunately, on DOS this fails, as config.log is still kept open
5614 # by configure, so config.status won't be able to write to it; its
5615 # output is simply discarded. So we exec the FD to /dev/null,
5616 # effectively closing config.log, so it can be properly (re)opened and
5617 # appended to by config.status. When coming back to configure, we
5618 # need to make the FD available again.
5619 if test "$no_create" != yes; then
5620 ac_cs_success=:
5621 ac_config_status_args=
5622 test "$silent" = yes &&
5623 ac_config_status_args="$ac_config_status_args --quiet"
5624 exec 5>/dev/null
5625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5626 exec 5>>config.log
5627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5628 # would make configure fail if this is the last instruction.
5629 $ac_cs_success || as_fn_exit 1
5630 fi
5631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5633 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5634 fi
5635
5636
This page took 0.2105 seconds and 3 git commands to generate.