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