comparison interps/c-intercal/buildaux/buildconfig @ 996:859f9b4339e6

<Gregor> tar xf egobot.tar.xz
author HackBot
date Sun, 09 Dec 2012 19:30:08 +0000
parents
children
comparison
equal deleted inserted replaced
995:6883f5911eb7 996:859f9b4339e6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for C-INTERCAL 0.29.
4 #
5 # Report bugs to <ais523(524\)x\((525)y)@bham.ac.uk>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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 # Zsh 3.x and 4.x performs 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*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='C-INTERCAL'
576 PACKAGE_TARNAME='ick'
577 PACKAGE_VERSION='0.29'
578 PACKAGE_STRING='C-INTERCAL 0.29'
579 PACKAGE_BUGREPORT='ais523(524\)x\((525)y)@bham.ac.uk'
580
581 ac_unique_file="../src/oil.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 YACC
656 YFLAGS
657 CC
658 CFLAGS
659 LDFLAGS
660 CPPFLAGS
661 ac_ct_CC
662 EXEEXT
663 OBJEXT
664 LEX
665 LEX_OUTPUT_ROOT
666 LEXLIB
667 RANLIB
668 LN_S
669 CPP
670 GREP
671 EGREP
672 HAVE_STDINT_H
673 LIBOBJS
674 LTLIBOBJS'
675 ac_subst_files=''
676 ac_precious_vars='build_alias
677 host_alias
678 target_alias
679 YACC
680 YFLAGS
681 CC
682 CFLAGS
683 LDFLAGS
684 LIBS
685 CPPFLAGS
686 CPP'
687
688
689 # Initialize some variables set by options.
690 ac_init_help=
691 ac_init_version=false
692 # The variables have the same names as the options, with
693 # dashes changed to underlines.
694 cache_file=/dev/null
695 exec_prefix=NONE
696 no_create=
697 no_recursion=
698 prefix=NONE
699 program_prefix=NONE
700 program_suffix=NONE
701 program_transform_name=s,x,x,
702 silent=
703 site=
704 srcdir=
705 verbose=
706 x_includes=NONE
707 x_libraries=NONE
708
709 # Installation directory options.
710 # These are left unexpanded so users can "make install exec_prefix=/foo"
711 # and all the variables that are supposed to be based on exec_prefix
712 # by default will actually change.
713 # Use braces instead of parens because sh, perl, etc. also accept them.
714 # (The list follows the same order as the GNU Coding Standards.)
715 bindir='${exec_prefix}/bin'
716 sbindir='${exec_prefix}/sbin'
717 libexecdir='${exec_prefix}/libexec'
718 datarootdir='${prefix}/share'
719 datadir='${datarootdir}'
720 sysconfdir='${prefix}/etc'
721 sharedstatedir='${prefix}/com'
722 localstatedir='${prefix}/var'
723 includedir='${prefix}/include'
724 oldincludedir='/usr/include'
725 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
726 infodir='${datarootdir}/info'
727 htmldir='${docdir}'
728 dvidir='${docdir}'
729 pdfdir='${docdir}'
730 psdir='${docdir}'
731 libdir='${exec_prefix}/lib'
732 localedir='${datarootdir}/locale'
733 mandir='${datarootdir}/man'
734
735 ac_prev=
736 ac_dashdash=
737 for ac_option
738 do
739 # If the previous option needs an argument, assign it.
740 if test -n "$ac_prev"; then
741 eval $ac_prev=\$ac_option
742 ac_prev=
743 continue
744 fi
745
746 case $ac_option in
747 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
748 *) ac_optarg=yes ;;
749 esac
750
751 # Accept the important Cygnus configure options, so we can diagnose typos.
752
753 case $ac_dashdash$ac_option in
754 --)
755 ac_dashdash=yes ;;
756
757 -bindir | --bindir | --bindi | --bind | --bin | --bi)
758 ac_prev=bindir ;;
759 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
760 bindir=$ac_optarg ;;
761
762 -build | --build | --buil | --bui | --bu)
763 ac_prev=build_alias ;;
764 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
765 build_alias=$ac_optarg ;;
766
767 -cache-file | --cache-file | --cache-fil | --cache-fi \
768 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
769 ac_prev=cache_file ;;
770 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
771 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
772 cache_file=$ac_optarg ;;
773
774 --config-cache | -C)
775 cache_file=config.cache ;;
776
777 -datadir | --datadir | --datadi | --datad)
778 ac_prev=datadir ;;
779 -datadir=* | --datadir=* | --datadi=* | --datad=*)
780 datadir=$ac_optarg ;;
781
782 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
783 | --dataroo | --dataro | --datar)
784 ac_prev=datarootdir ;;
785 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
786 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
787 datarootdir=$ac_optarg ;;
788
789 -disable-* | --disable-*)
790 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
794 { (exit 1); exit 1; }; }
795 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
796 eval enable_$ac_feature=no ;;
797
798 -docdir | --docdir | --docdi | --doc | --do)
799 ac_prev=docdir ;;
800 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
801 docdir=$ac_optarg ;;
802
803 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
804 ac_prev=dvidir ;;
805 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
806 dvidir=$ac_optarg ;;
807
808 -enable-* | --enable-*)
809 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
810 # Reject names that are not valid shell variable names.
811 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
813 { (exit 1); exit 1; }; }
814 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
815 eval enable_$ac_feature=\$ac_optarg ;;
816
817 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
818 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
819 | --exec | --exe | --ex)
820 ac_prev=exec_prefix ;;
821 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
822 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
823 | --exec=* | --exe=* | --ex=*)
824 exec_prefix=$ac_optarg ;;
825
826 -gas | --gas | --ga | --g)
827 # Obsolete; use --with-gas.
828 with_gas=yes ;;
829
830 -help | --help | --hel | --he | -h)
831 ac_init_help=long ;;
832 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
833 ac_init_help=recursive ;;
834 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
835 ac_init_help=short ;;
836
837 -host | --host | --hos | --ho)
838 ac_prev=host_alias ;;
839 -host=* | --host=* | --hos=* | --ho=*)
840 host_alias=$ac_optarg ;;
841
842 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
843 ac_prev=htmldir ;;
844 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
845 | --ht=*)
846 htmldir=$ac_optarg ;;
847
848 -includedir | --includedir | --includedi | --included | --include \
849 | --includ | --inclu | --incl | --inc)
850 ac_prev=includedir ;;
851 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
852 | --includ=* | --inclu=* | --incl=* | --inc=*)
853 includedir=$ac_optarg ;;
854
855 -infodir | --infodir | --infodi | --infod | --info | --inf)
856 ac_prev=infodir ;;
857 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
858 infodir=$ac_optarg ;;
859
860 -libdir | --libdir | --libdi | --libd)
861 ac_prev=libdir ;;
862 -libdir=* | --libdir=* | --libdi=* | --libd=*)
863 libdir=$ac_optarg ;;
864
865 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
866 | --libexe | --libex | --libe)
867 ac_prev=libexecdir ;;
868 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
869 | --libexe=* | --libex=* | --libe=*)
870 libexecdir=$ac_optarg ;;
871
872 -localedir | --localedir | --localedi | --localed | --locale)
873 ac_prev=localedir ;;
874 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
875 localedir=$ac_optarg ;;
876
877 -localstatedir | --localstatedir | --localstatedi | --localstated \
878 | --localstate | --localstat | --localsta | --localst | --locals)
879 ac_prev=localstatedir ;;
880 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
881 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
882 localstatedir=$ac_optarg ;;
883
884 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
885 ac_prev=mandir ;;
886 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
887 mandir=$ac_optarg ;;
888
889 -nfp | --nfp | --nf)
890 # Obsolete; use --without-fp.
891 with_fp=no ;;
892
893 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
894 | --no-cr | --no-c | -n)
895 no_create=yes ;;
896
897 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
898 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
899 no_recursion=yes ;;
900
901 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
902 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
903 | --oldin | --oldi | --old | --ol | --o)
904 ac_prev=oldincludedir ;;
905 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
906 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
907 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
908 oldincludedir=$ac_optarg ;;
909
910 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
911 ac_prev=prefix ;;
912 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
913 prefix=$ac_optarg ;;
914
915 -program-prefix | --program-prefix | --program-prefi | --program-pref \
916 | --program-pre | --program-pr | --program-p)
917 ac_prev=program_prefix ;;
918 -program-prefix=* | --program-prefix=* | --program-prefi=* \
919 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
920 program_prefix=$ac_optarg ;;
921
922 -program-suffix | --program-suffix | --program-suffi | --program-suff \
923 | --program-suf | --program-su | --program-s)
924 ac_prev=program_suffix ;;
925 -program-suffix=* | --program-suffix=* | --program-suffi=* \
926 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
927 program_suffix=$ac_optarg ;;
928
929 -program-transform-name | --program-transform-name \
930 | --program-transform-nam | --program-transform-na \
931 | --program-transform-n | --program-transform- \
932 | --program-transform | --program-transfor \
933 | --program-transfo | --program-transf \
934 | --program-trans | --program-tran \
935 | --progr-tra | --program-tr | --program-t)
936 ac_prev=program_transform_name ;;
937 -program-transform-name=* | --program-transform-name=* \
938 | --program-transform-nam=* | --program-transform-na=* \
939 | --program-transform-n=* | --program-transform-=* \
940 | --program-transform=* | --program-transfor=* \
941 | --program-transfo=* | --program-transf=* \
942 | --program-trans=* | --program-tran=* \
943 | --progr-tra=* | --program-tr=* | --program-t=*)
944 program_transform_name=$ac_optarg ;;
945
946 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
947 ac_prev=pdfdir ;;
948 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
949 pdfdir=$ac_optarg ;;
950
951 -psdir | --psdir | --psdi | --psd | --ps)
952 ac_prev=psdir ;;
953 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
954 psdir=$ac_optarg ;;
955
956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
957 | -silent | --silent | --silen | --sile | --sil)
958 silent=yes ;;
959
960 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
961 ac_prev=sbindir ;;
962 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
963 | --sbi=* | --sb=*)
964 sbindir=$ac_optarg ;;
965
966 -sharedstatedir | --sharedstatedir | --sharedstatedi \
967 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
968 | --sharedst | --shareds | --shared | --share | --shar \
969 | --sha | --sh)
970 ac_prev=sharedstatedir ;;
971 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
972 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
973 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
974 | --sha=* | --sh=*)
975 sharedstatedir=$ac_optarg ;;
976
977 -site | --site | --sit)
978 ac_prev=site ;;
979 -site=* | --site=* | --sit=*)
980 site=$ac_optarg ;;
981
982 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
983 ac_prev=srcdir ;;
984 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
985 srcdir=$ac_optarg ;;
986
987 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
988 | --syscon | --sysco | --sysc | --sys | --sy)
989 ac_prev=sysconfdir ;;
990 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
991 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
992 sysconfdir=$ac_optarg ;;
993
994 -target | --target | --targe | --targ | --tar | --ta | --t)
995 ac_prev=target_alias ;;
996 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
997 target_alias=$ac_optarg ;;
998
999 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1000 verbose=yes ;;
1001
1002 -version | --version | --versio | --versi | --vers | -V)
1003 ac_init_version=: ;;
1004
1005 -with-* | --with-*)
1006 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid package name: $ac_package" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012 eval with_$ac_package=\$ac_optarg ;;
1013
1014 -without-* | --without-*)
1015 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid package name: $ac_package" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1021 eval with_$ac_package=no ;;
1022
1023 --x)
1024 # Obsolete; use --with-x.
1025 with_x=yes ;;
1026
1027 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1028 | --x-incl | --x-inc | --x-in | --x-i)
1029 ac_prev=x_includes ;;
1030 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1031 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1032 x_includes=$ac_optarg ;;
1033
1034 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1035 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1036 ac_prev=x_libraries ;;
1037 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1038 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1039 x_libraries=$ac_optarg ;;
1040
1041 -*) { echo "$as_me: error: unrecognized option: $ac_option
1042 Try \`$0 --help' for more information." >&2
1043 { (exit 1); exit 1; }; }
1044 ;;
1045
1046 *=*)
1047 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1050 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1051 { (exit 1); exit 1; }; }
1052 eval $ac_envvar=\$ac_optarg
1053 export $ac_envvar ;;
1054
1055 *)
1056 # FIXME: should be removed in autoconf 3.0.
1057 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1058 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1060 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1061 ;;
1062
1063 esac
1064 done
1065
1066 if test -n "$ac_prev"; then
1067 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1068 { echo "$as_me: error: missing argument to $ac_option" >&2
1069 { (exit 1); exit 1; }; }
1070 fi
1071
1072 # Be sure to have absolute directory names.
1073 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1074 datadir sysconfdir sharedstatedir localstatedir includedir \
1075 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1076 libdir localedir mandir
1077 do
1078 eval ac_val=\$$ac_var
1079 case $ac_val in
1080 [\\/$]* | ?:[\\/]* ) continue;;
1081 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1082 esac
1083 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1084 { (exit 1); exit 1; }; }
1085 done
1086
1087 # There might be people who depend on the old broken behavior: `$host'
1088 # used to hold the argument of --host etc.
1089 # FIXME: To remove some day.
1090 build=$build_alias
1091 host=$host_alias
1092 target=$target_alias
1093
1094 # FIXME: To remove some day.
1095 if test "x$host_alias" != x; then
1096 if test "x$build_alias" = x; then
1097 cross_compiling=maybe
1098 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1099 If a cross compiler is detected then cross compile mode will be used." >&2
1100 elif test "x$build_alias" != "x$host_alias"; then
1101 cross_compiling=yes
1102 fi
1103 fi
1104
1105 ac_tool_prefix=
1106 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1107
1108 test "$silent" = yes && exec 6>/dev/null
1109
1110
1111 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1112 ac_ls_di=`ls -di .` &&
1113 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1114 { echo "$as_me: error: Working directory cannot be determined" >&2
1115 { (exit 1); exit 1; }; }
1116 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1117 { echo "$as_me: error: pwd does not report name of working directory" >&2
1118 { (exit 1); exit 1; }; }
1119
1120
1121 # Find the source files, if location was not specified.
1122 if test -z "$srcdir"; then
1123 ac_srcdir_defaulted=yes
1124 # Try the directory containing this script, then the parent directory.
1125 ac_confdir=`$as_dirname -- "$0" ||
1126 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1127 X"$0" : 'X\(//\)[^/]' \| \
1128 X"$0" : 'X\(//\)$' \| \
1129 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1130 echo X"$0" |
1131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1132 s//\1/
1133 q
1134 }
1135 /^X\(\/\/\)[^/].*/{
1136 s//\1/
1137 q
1138 }
1139 /^X\(\/\/\)$/{
1140 s//\1/
1141 q
1142 }
1143 /^X\(\/\).*/{
1144 s//\1/
1145 q
1146 }
1147 s/.*/./; q'`
1148 srcdir=$ac_confdir
1149 if test ! -r "$srcdir/$ac_unique_file"; then
1150 srcdir=..
1151 fi
1152 else
1153 ac_srcdir_defaulted=no
1154 fi
1155 if test ! -r "$srcdir/$ac_unique_file"; then
1156 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1157 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1158 { (exit 1); exit 1; }; }
1159 fi
1160 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1161 ac_abs_confdir=`(
1162 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1163 { (exit 1); exit 1; }; }
1164 pwd)`
1165 # When building in place, set srcdir=.
1166 if test "$ac_abs_confdir" = "$ac_pwd"; then
1167 srcdir=.
1168 fi
1169 # Remove unnecessary trailing slashes from srcdir.
1170 # Double slashes in file names in object file debugging info
1171 # mess up M-x gdb in Emacs.
1172 case $srcdir in
1173 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1174 esac
1175 for ac_var in $ac_precious_vars; do
1176 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1177 eval ac_env_${ac_var}_value=\$${ac_var}
1178 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1179 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1180 done
1181
1182 #
1183 # Report the --help message.
1184 #
1185 if test "$ac_init_help" = "long"; then
1186 # Omit some internal or obsolete options to make the list less imposing.
1187 # This message is too long to be a string in the A/UX 3.1 sh.
1188 cat <<_ACEOF
1189 \`configure' configures C-INTERCAL 0.29 to adapt to many kinds of systems.
1190
1191 Usage: $0 [OPTION]... [VAR=VALUE]...
1192
1193 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1194 VAR=VALUE. See below for descriptions of some of the useful variables.
1195
1196 Defaults for the options are specified in brackets.
1197
1198 Configuration:
1199 -h, --help display this help and exit
1200 --help=short display options specific to this package
1201 --help=recursive display the short help of all the included packages
1202 -V, --version display version information and exit
1203 -q, --quiet, --silent do not print \`checking...' messages
1204 --cache-file=FILE cache test results in FILE [disabled]
1205 -C, --config-cache alias for \`--cache-file=config.cache'
1206 -n, --no-create do not create output files
1207 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1208
1209 Installation directories:
1210 --prefix=PREFIX install architecture-independent files in PREFIX
1211 [$ac_default_prefix]
1212 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1213 [PREFIX]
1214
1215 By default, \`make install' will install all the files in
1216 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1217 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1218 for instance \`--prefix=\$HOME'.
1219
1220 For better control, use the options below.
1221
1222 Fine tuning of the installation directories:
1223 --bindir=DIR user executables [EPREFIX/bin]
1224 --sbindir=DIR system admin executables [EPREFIX/sbin]
1225 --libexecdir=DIR program executables [EPREFIX/libexec]
1226 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1227 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1228 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1229 --libdir=DIR object code libraries [EPREFIX/lib]
1230 --includedir=DIR C header files [PREFIX/include]
1231 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1232 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1233 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1234 --infodir=DIR info documentation [DATAROOTDIR/info]
1235 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1236 --mandir=DIR man documentation [DATAROOTDIR/man]
1237 --docdir=DIR documentation root [DATAROOTDIR/doc/ick]
1238 --htmldir=DIR html documentation [DOCDIR]
1239 --dvidir=DIR dvi documentation [DOCDIR]
1240 --pdfdir=DIR pdf documentation [DOCDIR]
1241 --psdir=DIR ps documentation [DOCDIR]
1242 _ACEOF
1243
1244 cat <<\_ACEOF
1245 _ACEOF
1246 fi
1247
1248 if test -n "$ac_init_help"; then
1249 case $ac_init_help in
1250 short | recursive ) echo "Configuration of C-INTERCAL 0.29:";;
1251 esac
1252 cat <<\_ACEOF
1253
1254 Some influential environment variables:
1255 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1256 the first program found out of: `bison -y', `byacc', `yacc'.
1257 YFLAGS The list of arguments that will be passed by default to $YACC.
1258 This script will default YFLAGS to the empty string to avoid a
1259 default value of `-d' given by some make applications.
1260 CC C compiler command
1261 CFLAGS C compiler flags
1262 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1263 nonstandard directory <lib dir>
1264 LIBS libraries to pass to the linker, e.g. -l<library>
1265 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1266 you have headers in a nonstandard directory <include dir>
1267 CPP C preprocessor
1268
1269 Use these variables to override the choices made by `configure' or to help
1270 it to find libraries and programs with nonstandard names/locations.
1271
1272 Report bugs to <ais523(524\)x\((525)y)@bham.ac.uk>.
1273 _ACEOF
1274 ac_status=$?
1275 fi
1276
1277 if test "$ac_init_help" = "recursive"; then
1278 # If there are subdirs, report their specific --help.
1279 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1280 test -d "$ac_dir" || continue
1281 ac_builddir=.
1282
1283 case "$ac_dir" in
1284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1285 *)
1286 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1287 # A ".." for each directory in $ac_dir_suffix.
1288 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1289 case $ac_top_builddir_sub in
1290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1292 esac ;;
1293 esac
1294 ac_abs_top_builddir=$ac_pwd
1295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1296 # for backward compatibility:
1297 ac_top_builddir=$ac_top_build_prefix
1298
1299 case $srcdir in
1300 .) # We are building in place.
1301 ac_srcdir=.
1302 ac_top_srcdir=$ac_top_builddir_sub
1303 ac_abs_top_srcdir=$ac_pwd ;;
1304 [\\/]* | ?:[\\/]* ) # Absolute name.
1305 ac_srcdir=$srcdir$ac_dir_suffix;
1306 ac_top_srcdir=$srcdir
1307 ac_abs_top_srcdir=$srcdir ;;
1308 *) # Relative name.
1309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1310 ac_top_srcdir=$ac_top_build_prefix$srcdir
1311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1312 esac
1313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1314
1315 cd "$ac_dir" || { ac_status=$?; continue; }
1316 # Check for guested configure.
1317 if test -f "$ac_srcdir/configure.gnu"; then
1318 echo &&
1319 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1320 elif test -f "$ac_srcdir/configure"; then
1321 echo &&
1322 $SHELL "$ac_srcdir/configure" --help=recursive
1323 else
1324 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1325 fi || ac_status=$?
1326 cd "$ac_pwd" || { ac_status=$?; break; }
1327 done
1328 fi
1329
1330 test -n "$ac_init_help" && exit $ac_status
1331 if $ac_init_version; then
1332 cat <<\_ACEOF
1333 C-INTERCAL configure 0.29
1334 generated by GNU Autoconf 2.61
1335
1336 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1337 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1338 This configure script is free software; the Free Software Foundation
1339 gives unlimited permission to copy, distribute and modify it.
1340 _ACEOF
1341 exit
1342 fi
1343 cat >config.log <<_ACEOF
1344 This file contains any messages produced by compilers while
1345 running configure, to aid debugging if configure makes a mistake.
1346
1347 It was created by C-INTERCAL $as_me 0.29, which was
1348 generated by GNU Autoconf 2.61. Invocation command line was
1349
1350 $ $0 $@
1351
1352 _ACEOF
1353 exec 5>>config.log
1354 {
1355 cat <<_ASUNAME
1356 ## --------- ##
1357 ## Platform. ##
1358 ## --------- ##
1359
1360 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1361 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1362 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1363 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1364 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1365
1366 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1367 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1368
1369 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1370 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1371 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1372 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1373 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1374 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1375 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1376
1377 _ASUNAME
1378
1379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1380 for as_dir in $PATH
1381 do
1382 IFS=$as_save_IFS
1383 test -z "$as_dir" && as_dir=.
1384 echo "PATH: $as_dir"
1385 done
1386 IFS=$as_save_IFS
1387
1388 } >&5
1389
1390 cat >&5 <<_ACEOF
1391
1392
1393 ## ----------- ##
1394 ## Core tests. ##
1395 ## ----------- ##
1396
1397 _ACEOF
1398
1399
1400 # Keep a trace of the command line.
1401 # Strip out --no-create and --no-recursion so they do not pile up.
1402 # Strip out --silent because we don't want to record it for future runs.
1403 # Also quote any args containing shell meta-characters.
1404 # Make two passes to allow for proper duplicate-argument suppression.
1405 ac_configure_args=
1406 ac_configure_args0=
1407 ac_configure_args1=
1408 ac_must_keep_next=false
1409 for ac_pass in 1 2
1410 do
1411 for ac_arg
1412 do
1413 case $ac_arg in
1414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1416 | -silent | --silent | --silen | --sile | --sil)
1417 continue ;;
1418 *\'*)
1419 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1420 esac
1421 case $ac_pass in
1422 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1423 2)
1424 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1425 if test $ac_must_keep_next = true; then
1426 ac_must_keep_next=false # Got value, back to normal.
1427 else
1428 case $ac_arg in
1429 *=* | --config-cache | -C | -disable-* | --disable-* \
1430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1432 | -with-* | --with-* | -without-* | --without-* | --x)
1433 case "$ac_configure_args0 " in
1434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1435 esac
1436 ;;
1437 -* ) ac_must_keep_next=true ;;
1438 esac
1439 fi
1440 ac_configure_args="$ac_configure_args '$ac_arg'"
1441 ;;
1442 esac
1443 done
1444 done
1445 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1446 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1447
1448 # When interrupted or exit'd, cleanup temporary files, and complete
1449 # config.log. We remove comments because anyway the quotes in there
1450 # would cause problems or look ugly.
1451 # WARNING: Use '\'' to represent an apostrophe within the trap.
1452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1453 trap 'exit_status=$?
1454 # Save into config.log some information that might help in debugging.
1455 {
1456 echo
1457
1458 cat <<\_ASBOX
1459 ## ---------------- ##
1460 ## Cache variables. ##
1461 ## ---------------- ##
1462 _ASBOX
1463 echo
1464 # The following way of writing the cache mishandles newlines in values,
1465 (
1466 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1467 eval ac_val=\$$ac_var
1468 case $ac_val in #(
1469 *${as_nl}*)
1470 case $ac_var in #(
1471 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1472 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1473 esac
1474 case $ac_var in #(
1475 _ | IFS | as_nl) ;; #(
1476 *) $as_unset $ac_var ;;
1477 esac ;;
1478 esac
1479 done
1480 (set) 2>&1 |
1481 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1482 *${as_nl}ac_space=\ *)
1483 sed -n \
1484 "s/'\''/'\''\\\\'\'''\''/g;
1485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1486 ;; #(
1487 *)
1488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1489 ;;
1490 esac |
1491 sort
1492 )
1493 echo
1494
1495 cat <<\_ASBOX
1496 ## ----------------- ##
1497 ## Output variables. ##
1498 ## ----------------- ##
1499 _ASBOX
1500 echo
1501 for ac_var in $ac_subst_vars
1502 do
1503 eval ac_val=\$$ac_var
1504 case $ac_val in
1505 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1506 esac
1507 echo "$ac_var='\''$ac_val'\''"
1508 done | sort
1509 echo
1510
1511 if test -n "$ac_subst_files"; then
1512 cat <<\_ASBOX
1513 ## ------------------- ##
1514 ## File substitutions. ##
1515 ## ------------------- ##
1516 _ASBOX
1517 echo
1518 for ac_var in $ac_subst_files
1519 do
1520 eval ac_val=\$$ac_var
1521 case $ac_val in
1522 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1523 esac
1524 echo "$ac_var='\''$ac_val'\''"
1525 done | sort
1526 echo
1527 fi
1528
1529 if test -s confdefs.h; then
1530 cat <<\_ASBOX
1531 ## ----------- ##
1532 ## confdefs.h. ##
1533 ## ----------- ##
1534 _ASBOX
1535 echo
1536 cat confdefs.h
1537 echo
1538 fi
1539 test "$ac_signal" != 0 &&
1540 echo "$as_me: caught signal $ac_signal"
1541 echo "$as_me: exit $exit_status"
1542 } >&5
1543 rm -f core *.core core.conftest.* &&
1544 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1545 exit $exit_status
1546 ' 0
1547 for ac_signal in 1 2 13 15; do
1548 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1549 done
1550 ac_signal=0
1551
1552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1553 rm -f -r conftest* confdefs.h
1554
1555 # Predefined preprocessor variables.
1556
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE_NAME "$PACKAGE_NAME"
1559 _ACEOF
1560
1561
1562 cat >>confdefs.h <<_ACEOF
1563 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1564 _ACEOF
1565
1566
1567 cat >>confdefs.h <<_ACEOF
1568 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1569 _ACEOF
1570
1571
1572 cat >>confdefs.h <<_ACEOF
1573 #define PACKAGE_STRING "$PACKAGE_STRING"
1574 _ACEOF
1575
1576
1577 cat >>confdefs.h <<_ACEOF
1578 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1579 _ACEOF
1580
1581
1582 # Let the site file select an alternate cache file if it wants to.
1583 # Prefer explicitly selected file to automatically selected ones.
1584 if test -n "$CONFIG_SITE"; then
1585 set x "$CONFIG_SITE"
1586 elif test "x$prefix" != xNONE; then
1587 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1588 else
1589 set x "$ac_default_prefix/share/config.site" \
1590 "$ac_default_prefix/etc/config.site"
1591 fi
1592 shift
1593 for ac_site_file
1594 do
1595 if test -r "$ac_site_file"; then
1596 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1597 echo "$as_me: loading site script $ac_site_file" >&6;}
1598 sed 's/^/| /' "$ac_site_file" >&5
1599 . "$ac_site_file"
1600 fi
1601 done
1602
1603 if test -r "$cache_file"; then
1604 # Some versions of bash will fail to source /dev/null (special
1605 # files actually), so we avoid doing that.
1606 if test -f "$cache_file"; then
1607 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1608 echo "$as_me: loading cache $cache_file" >&6;}
1609 case $cache_file in
1610 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1611 *) . "./$cache_file";;
1612 esac
1613 fi
1614 else
1615 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1616 echo "$as_me: creating cache $cache_file" >&6;}
1617 >$cache_file
1618 fi
1619
1620 # Check that the precious variables saved in the cache have kept the same
1621 # value.
1622 ac_cache_corrupted=false
1623 for ac_var in $ac_precious_vars; do
1624 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1625 eval ac_new_set=\$ac_env_${ac_var}_set
1626 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1627 eval ac_new_val=\$ac_env_${ac_var}_value
1628 case $ac_old_set,$ac_new_set in
1629 set,)
1630 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1631 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1632 ac_cache_corrupted=: ;;
1633 ,set)
1634 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1635 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1636 ac_cache_corrupted=: ;;
1637 ,);;
1638 *)
1639 if test "x$ac_old_val" != "x$ac_new_val"; then
1640 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1641 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1642 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1643 echo "$as_me: former value: $ac_old_val" >&2;}
1644 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1645 echo "$as_me: current value: $ac_new_val" >&2;}
1646 ac_cache_corrupted=:
1647 fi;;
1648 esac
1649 # Pass precious variables to config.status.
1650 if test "$ac_new_set" = set; then
1651 case $ac_new_val in
1652 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 *) ac_arg=$ac_var=$ac_new_val ;;
1654 esac
1655 case " $ac_configure_args " in
1656 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1657 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1658 esac
1659 fi
1660 done
1661 if $ac_cache_corrupted; then
1662 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1663 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1664 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1665 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1666 { (exit 1); exit 1; }; }
1667 fi
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693 ac_ext=c
1694 ac_cpp='$CPP $CPPFLAGS'
1695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1698
1699
1700
1701 ac_config_headers="$ac_config_headers bconfig.h:../src/bconfigh.in"
1702
1703 ac_aux_dir=
1704 for ac_dir in . "$srcdir"/.; do
1705 if test -f "$ac_dir/install-sh"; then
1706 ac_aux_dir=$ac_dir
1707 ac_install_sh="$ac_aux_dir/install-sh -c"
1708 break
1709 elif test -f "$ac_dir/install.sh"; then
1710 ac_aux_dir=$ac_dir
1711 ac_install_sh="$ac_aux_dir/install.sh -c"
1712 break
1713 elif test -f "$ac_dir/shtool"; then
1714 ac_aux_dir=$ac_dir
1715 ac_install_sh="$ac_aux_dir/shtool install -c"
1716 break
1717 fi
1718 done
1719 if test -z "$ac_aux_dir"; then
1720 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1721 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1722 { (exit 1); exit 1; }; }
1723 fi
1724
1725 # These three variables are undocumented and unsupported,
1726 # and are intended to be withdrawn in a future Autoconf release.
1727 # They can cause serious problems if a builder's source tree is in a directory
1728 # whose full name contains unusual characters.
1729 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1730 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1731 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1732
1733
1734
1735 for ac_prog in 'bison -y' byacc
1736 do
1737 # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1741 if test "${ac_cv_prog_YACC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744 if test -n "$YACC"; then
1745 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1754 ac_cv_prog_YACC="$ac_prog"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 break 2
1757 fi
1758 done
1759 done
1760 IFS=$as_save_IFS
1761
1762 fi
1763 fi
1764 YACC=$ac_cv_prog_YACC
1765 if test -n "$YACC"; then
1766 { echo "$as_me:$LINENO: result: $YACC" >&5
1767 echo "${ECHO_T}$YACC" >&6; }
1768 else
1769 { echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6; }
1771 fi
1772
1773
1774 test -n "$YACC" && break
1775 done
1776 test -n "$YACC" || YACC="yacc"
1777
1778 ac_ext=c
1779 ac_cpp='$CPP $CPPFLAGS'
1780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1783 if test -n "$ac_tool_prefix"; then
1784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1788 if test "${ac_cv_prog_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791 if test -n "$CC"; then
1792 ac_cv_prog_CC="$CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797 IFS=$as_save_IFS
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 break 2
1804 fi
1805 done
1806 done
1807 IFS=$as_save_IFS
1808
1809 fi
1810 fi
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813 { echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6; }
1815 else
1816 { echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6; }
1818 fi
1819
1820
1821 fi
1822 if test -z "$ac_cv_prog_CC"; then
1823 ac_ct_CC=$CC
1824 # Extract the first word of "gcc", so it can be a program name with args.
1825 set dummy gcc; ac_word=$2
1826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831 if test -n "$ac_ct_CC"; then
1832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1841 ac_cv_prog_ac_ct_CC="gcc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845 done
1846 done
1847 IFS=$as_save_IFS
1848
1849 fi
1850 fi
1851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1852 if test -n "$ac_ct_CC"; then
1853 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1854 echo "${ECHO_T}$ac_ct_CC" >&6; }
1855 else
1856 { echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6; }
1858 fi
1859
1860 if test "x$ac_ct_CC" = x; then
1861 CC=""
1862 else
1863 case $cross_compiling:$ac_tool_warned in
1864 yes:)
1865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1866 whose name does not start with the host triplet. If you think this
1867 configuration is useful to you, please write to autoconf@gnu.org." >&5
1868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1869 whose name does not start with the host triplet. If you think this
1870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1871 ac_tool_warned=yes ;;
1872 esac
1873 CC=$ac_ct_CC
1874 fi
1875 else
1876 CC="$ac_cv_prog_CC"
1877 fi
1878
1879 if test -z "$CC"; then
1880 if test -n "$ac_tool_prefix"; then
1881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}cc; ac_word=$2
1883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC="$CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1898 ac_cv_prog_CC="${ac_tool_prefix}cc"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1901 fi
1902 done
1903 done
1904 IFS=$as_save_IFS
1905
1906 fi
1907 fi
1908 CC=$ac_cv_prog_CC
1909 if test -n "$CC"; then
1910 { echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6; }
1912 else
1913 { echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6; }
1915 fi
1916
1917
1918 fi
1919 fi
1920 if test -z "$CC"; then
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1925 if test "${ac_cv_prog_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1930 else
1931 ac_prog_rejected=no
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1940 ac_prog_rejected=yes
1941 continue
1942 fi
1943 ac_cv_prog_CC="cc"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 break 2
1946 fi
1947 done
1948 done
1949 IFS=$as_save_IFS
1950
1951 if test $ac_prog_rejected = yes; then
1952 # We found a bogon in the path, so make sure we never use it.
1953 set dummy $ac_cv_prog_CC
1954 shift
1955 if test $# != 0; then
1956 # We chose a different compiler from the bogus one.
1957 # However, it has the same basename, so the bogon will be chosen
1958 # first if we set CC to just the basename; use the full file name.
1959 shift
1960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1961 fi
1962 fi
1963 fi
1964 fi
1965 CC=$ac_cv_prog_CC
1966 if test -n "$CC"; then
1967 { echo "$as_me:$LINENO: result: $CC" >&5
1968 echo "${ECHO_T}$CC" >&6; }
1969 else
1970 { echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6; }
1972 fi
1973
1974
1975 fi
1976 if test -z "$CC"; then
1977 if test -n "$ac_tool_prefix"; then
1978 for ac_prog in cl.exe
1979 do
1980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2000 fi
2001 done
2002 done
2003 IFS=$as_save_IFS
2004
2005 fi
2006 fi
2007 CC=$ac_cv_prog_CC
2008 if test -n "$CC"; then
2009 { echo "$as_me:$LINENO: result: $CC" >&5
2010 echo "${ECHO_T}$CC" >&6; }
2011 else
2012 { echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6; }
2014 fi
2015
2016
2017 test -n "$CC" && break
2018 done
2019 fi
2020 if test -z "$CC"; then
2021 ac_ct_CC=$CC
2022 for ac_prog in cl.exe
2023 do
2024 # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy $ac_prog; ac_word=$2
2026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$ac_ct_CC"; then
2032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2041 ac_cv_prog_ac_ct_CC="$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2044 fi
2045 done
2046 done
2047 IFS=$as_save_IFS
2048
2049 fi
2050 fi
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6; }
2055 else
2056 { echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6; }
2058 fi
2059
2060
2061 test -n "$ac_ct_CC" && break
2062 done
2063
2064 if test "x$ac_ct_CC" = x; then
2065 CC=""
2066 else
2067 case $cross_compiling:$ac_tool_warned in
2068 yes:)
2069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet. If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&5
2072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2073 whose name does not start with the host triplet. If you think this
2074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2075 ac_tool_warned=yes ;;
2076 esac
2077 CC=$ac_ct_CC
2078 fi
2079 fi
2080
2081 fi
2082
2083
2084 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2089
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO: checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (ac_try="$ac_compiler --version >&5"
2094 case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097 esac
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (ac_try="$ac_compiler -v >&5"
2104 case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107 esac
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (ac_try="$ac_compiler -V >&5"
2114 case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123
2124 cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h. */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2130
2131 int
2132 main ()
2133 {
2134
2135 ;
2136 return 0;
2137 }
2138 _ACEOF
2139 ac_clean_files_save=$ac_clean_files
2140 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141 # Try to create an executable without -o first, disregard a.out.
2142 # It will help us diagnose broken compilers, and finding out an intuition
2143 # of exeext.
2144 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147 #
2148 # List of possible output files, starting from the most likely.
2149 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150 # only as a last resort. b.out is created by i960 compilers.
2151 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152 #
2153 # The IRIX 6 linker writes into existing files which may not be
2154 # executable, retaining their permissions. Remove them first so a
2155 # subsequent execution test works.
2156 ac_rmfiles=
2157 for ac_file in $ac_files
2158 do
2159 case $ac_file in
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 esac
2163 done
2164 rm -f $ac_rmfiles
2165
2166 if { (ac_try="$ac_link_default"
2167 case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170 esac
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172 (eval "$ac_link_default") 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2179 # so that the user can short-circuit this test for compilers unknown to
2180 # Autoconf.
2181 for ac_file in $ac_files ''
2182 do
2183 test -f "$ac_file" || continue
2184 case $ac_file in
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2186 ;;
2187 [ab].out )
2188 # We found the default executable, but exeext='' is most
2189 # certainly right.
2190 break;;
2191 *.* )
2192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2193 then :; else
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 fi
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2200 # actually working.
2201 break;;
2202 * )
2203 break;;
2204 esac
2205 done
2206 test "$ac_cv_exeext" = no && ac_cv_exeext=
2207
2208 else
2209 ac_file=''
2210 fi
2211
2212 { echo "$as_me:$LINENO: result: $ac_file" >&5
2213 echo "${ECHO_T}$ac_file" >&6; }
2214 if test -z "$ac_file"; then
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&2;}
2222 { (exit 77); exit 77; }; }
2223 fi
2224
2225 ac_exeext=$ac_cv_exeext
2226
2227 # Check that the compiler produces executables we can run. If not, either
2228 # the compiler is broken, or we cross compile.
2229 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2230 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2231 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2232 # If not cross compiling, check that we can run a simple program.
2233 if test "$cross_compiling" != yes; then
2234 if { ac_try='./$ac_file'
2235 { (case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238 esac
2239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2240 (eval "$ac_try") 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 cross_compiling=no
2245 else
2246 if test "$cross_compiling" = maybe; then
2247 cross_compiling=yes
2248 else
2249 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2256 fi
2257 fi
2258 fi
2259 { echo "$as_me:$LINENO: result: yes" >&5
2260 echo "${ECHO_T}yes" >&6; }
2261
2262 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2263 ac_clean_files=$ac_clean_files_save
2264 # Check that the compiler produces executables we can run. If not, either
2265 # the compiler is broken, or we cross compile.
2266 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2267 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2268 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2269 echo "${ECHO_T}$cross_compiling" >&6; }
2270
2271 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2272 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2273 if { (ac_try="$ac_link"
2274 case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277 esac
2278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2279 (eval "$ac_link") 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2284 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2285 # work properly (i.e., refer to `conftest.exe'), while it won't with
2286 # `rm'.
2287 for ac_file in conftest.exe conftest conftest.*; do
2288 test -f "$ac_file" || continue
2289 case $ac_file in
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 break;;
2293 * ) break;;
2294 esac
2295 done
2296 else
2297 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&2;}
2301 { (exit 1); exit 1; }; }
2302 fi
2303
2304 rm -f conftest$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2306 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2307
2308 rm -f conftest.$ac_ext
2309 EXEEXT=$ac_cv_exeext
2310 ac_exeext=$EXEEXT
2311 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2312 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2313 if test "${ac_cv_objext+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h. */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2322
2323 int
2324 main ()
2325 {
2326
2327 ;
2328 return 0;
2329 }
2330 _ACEOF
2331 rm -f conftest.o conftest.obj
2332 if { (ac_try="$ac_compile"
2333 case "(($ac_try" in
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2336 esac
2337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2338 (eval "$ac_compile") 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; then
2342 for ac_file in conftest.o conftest.obj conftest.*; do
2343 test -f "$ac_file" || continue;
2344 case $ac_file in
2345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347 break;;
2348 esac
2349 done
2350 else
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&5
2356 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2357 See \`config.log' for more details." >&2;}
2358 { (exit 1); exit 1; }; }
2359 fi
2360
2361 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362 fi
2363 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2364 echo "${ECHO_T}$ac_cv_objext" >&6; }
2365 OBJEXT=$ac_cv_objext
2366 ac_objext=$OBJEXT
2367 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2368 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2369 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2378
2379 int
2380 main ()
2381 {
2382 #ifndef __GNUC__
2383 choke me
2384 #endif
2385
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (ac_try="$ac_compile"
2392 case "(($ac_try" in
2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2395 esac
2396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2397 (eval "$ac_compile") 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } && {
2404 test -z "$ac_c_werror_flag" ||
2405 test ! -s conftest.err
2406 } && test -s conftest.$ac_objext; then
2407 ac_compiler_gnu=yes
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 ac_compiler_gnu=no
2413 fi
2414
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2417
2418 fi
2419 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2421 GCC=`test $ac_compiler_gnu = yes && echo yes`
2422 ac_test_CFLAGS=${CFLAGS+set}
2423 ac_save_CFLAGS=$CFLAGS
2424 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2425 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_cc_g+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429 ac_save_c_werror_flag=$ac_c_werror_flag
2430 ac_c_werror_flag=yes
2431 ac_cv_prog_cc_g=no
2432 CFLAGS="-g"
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h. */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2439
2440 int
2441 main ()
2442 {
2443
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (ac_try="$ac_compile"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compile") 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } && {
2462 test -z "$ac_c_werror_flag" ||
2463 test ! -s conftest.err
2464 } && test -s conftest.$ac_objext; then
2465 ac_cv_prog_cc_g=yes
2466 else
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 CFLAGS=""
2471 cat >conftest.$ac_ext <<_ACEOF
2472 /* confdefs.h. */
2473 _ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2477
2478 int
2479 main ()
2480 {
2481
2482 ;
2483 return 0;
2484 }
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (ac_try="$ac_compile"
2488 case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_compile") 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } && {
2500 test -z "$ac_c_werror_flag" ||
2501 test ! -s conftest.err
2502 } && test -s conftest.$ac_objext; then
2503 :
2504 else
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 ac_c_werror_flag=$ac_save_c_werror_flag
2509 CFLAGS="-g"
2510 cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h. */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2516
2517 int
2518 main ()
2519 {
2520
2521 ;
2522 return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (ac_try="$ac_compile"
2527 case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_compile") 2>conftest.er1
2533 ac_status=$?
2534 grep -v '^ *+' conftest.er1 >conftest.err
2535 rm -f conftest.er1
2536 cat conftest.err >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } && {
2539 test -z "$ac_c_werror_flag" ||
2540 test ! -s conftest.err
2541 } && test -s conftest.$ac_objext; then
2542 ac_cv_prog_cc_g=yes
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547
2548 fi
2549
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 fi
2552
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 fi
2555
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 ac_c_werror_flag=$ac_save_c_werror_flag
2558 fi
2559 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2560 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2561 if test "$ac_test_CFLAGS" = set; then
2562 CFLAGS=$ac_save_CFLAGS
2563 elif test $ac_cv_prog_cc_g = yes; then
2564 if test "$GCC" = yes; then
2565 CFLAGS="-g -O2"
2566 else
2567 CFLAGS="-g"
2568 fi
2569 else
2570 if test "$GCC" = yes; then
2571 CFLAGS="-O2"
2572 else
2573 CFLAGS=
2574 fi
2575 fi
2576 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2577 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_cc_c89+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 ac_cv_prog_cc_c89=no
2582 ac_save_CC=$CC
2583 cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h. */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2589 #include <stdarg.h>
2590 #include <stdio.h>
2591 #include <sys/types.h>
2592 #include <sys/stat.h>
2593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2594 struct buf { int x; };
2595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2596 static char *e (p, i)
2597 char **p;
2598 int i;
2599 {
2600 return p[i];
2601 }
2602 static char *f (char * (*g) (char **, int), char **p, ...)
2603 {
2604 char *s;
2605 va_list v;
2606 va_start (v,p);
2607 s = g (p, va_arg (v,int));
2608 va_end (v);
2609 return s;
2610 }
2611
2612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2613 function prototypes and stuff, but not '\xHH' hex character constants.
2614 These don't provoke an error unfortunately, instead are silently treated
2615 as 'x'. The following induces an error, until -std is added to get
2616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2617 array size at least. It's necessary to write '\x00'==0 to get something
2618 that's true only with -std. */
2619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2620
2621 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2622 inside strings and character constants. */
2623 #define FOO(x) 'x'
2624 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2625
2626 int test (int i, double x);
2627 struct s1 {int (*f) (int a);};
2628 struct s2 {int (*f) (double a);};
2629 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2630 int argc;
2631 char **argv;
2632 int
2633 main ()
2634 {
2635 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2636 ;
2637 return 0;
2638 }
2639 _ACEOF
2640 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2641 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2642 do
2643 CC="$ac_save_CC $ac_arg"
2644 rm -f conftest.$ac_objext
2645 if { (ac_try="$ac_compile"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compile") 2>conftest.er1
2652 ac_status=$?
2653 grep -v '^ *+' conftest.er1 >conftest.err
2654 rm -f conftest.er1
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } && {
2658 test -z "$ac_c_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest.$ac_objext; then
2661 ac_cv_prog_cc_c89=$ac_arg
2662 else
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666
2667 fi
2668
2669 rm -f core conftest.err conftest.$ac_objext
2670 test "x$ac_cv_prog_cc_c89" != "xno" && break
2671 done
2672 rm -f conftest.$ac_ext
2673 CC=$ac_save_CC
2674
2675 fi
2676 # AC_CACHE_VAL
2677 case "x$ac_cv_prog_cc_c89" in
2678 x)
2679 { echo "$as_me:$LINENO: result: none needed" >&5
2680 echo "${ECHO_T}none needed" >&6; } ;;
2681 xno)
2682 { echo "$as_me:$LINENO: result: unsupported" >&5
2683 echo "${ECHO_T}unsupported" >&6; } ;;
2684 *)
2685 CC="$CC $ac_cv_prog_cc_c89"
2686 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2688 esac
2689
2690
2691 ac_ext=c
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696
2697 # expand $ac_aux_dir to an absolute path
2698 am_aux_dir=`cd $ac_aux_dir && pwd`
2699
2700 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2701 # Use eval to expand $SHELL
2702 if eval "$MISSING --run true"; then
2703 am_missing_run="$MISSING --run "
2704 else
2705 am_missing_run=
2706 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2707 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2708 fi
2709
2710
2711 for ac_prog in flex lex
2712 do
2713 # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717 if test "${ac_cv_prog_LEX+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 if test -n "$LEX"; then
2721 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_LEX="$ac_prog"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 LEX=$ac_cv_prog_LEX
2741 if test -n "$LEX"; then
2742 { echo "$as_me:$LINENO: result: $LEX" >&5
2743 echo "${ECHO_T}$LEX" >&6; }
2744 else
2745 { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2747 fi
2748
2749
2750 test -n "$LEX" && break
2751 done
2752 test -n "$LEX" || LEX=":"
2753
2754 if test "x$LEX" != "x:"; then
2755 cat >conftest.l <<_ACEOF
2756 %%
2757 a { ECHO; }
2758 b { REJECT; }
2759 c { yymore (); }
2760 d { yyless (1); }
2761 e { yyless (input () != 0); }
2762 f { unput (yytext[0]); }
2763 . { BEGIN INITIAL; }
2764 %%
2765 #ifdef YYTEXT_POINTER
2766 extern char *yytext;
2767 #endif
2768 int
2769 main (void)
2770 {
2771 return ! yylex () + ! yywrap ();
2772 }
2773 _ACEOF
2774 { (ac_try="$LEX conftest.l"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$LEX conftest.l") 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }
2784 { echo "$as_me:$LINENO: checking lex output file root" >&5
2785 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_lex_root+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789
2790 if test -f lex.yy.c; then
2791 ac_cv_prog_lex_root=lex.yy
2792 elif test -f lexyy.c; then
2793 ac_cv_prog_lex_root=lexyy
2794 else
2795 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2796 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2797 { (exit 1); exit 1; }; }
2798 fi
2799 fi
2800 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2801 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
2802 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2803
2804 if test -z "${LEXLIB+set}"; then
2805 { echo "$as_me:$LINENO: checking lex library" >&5
2806 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
2807 if test "${ac_cv_lib_lex+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810
2811 ac_save_LIBS=$LIBS
2812 ac_cv_lib_lex='none needed'
2813 for ac_lib in '' -lfl -ll; do
2814 LIBS="$ac_lib $ac_save_LIBS"
2815 cat >conftest.$ac_ext <<_ACEOF
2816 `cat $LEX_OUTPUT_ROOT.c`
2817 _ACEOF
2818 rm -f conftest.$ac_objext conftest$ac_exeext
2819 if { (ac_try="$ac_link"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_link") 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } && {
2832 test -z "$ac_c_werror_flag" ||
2833 test ! -s conftest.err
2834 } && test -s conftest$ac_exeext &&
2835 $as_test_x conftest$ac_exeext; then
2836 ac_cv_lib_lex=$ac_lib
2837 else
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841
2842 fi
2843
2844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2845 conftest$ac_exeext conftest.$ac_ext
2846 test "$ac_cv_lib_lex" != 'none needed' && break
2847 done
2848 LIBS=$ac_save_LIBS
2849
2850 fi
2851 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
2852 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
2853 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
2854 fi
2855
2856
2857 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2858 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 # POSIX says lex can declare yytext either as a pointer or an array; the
2863 # default is implementation-dependent. Figure out which it is, since
2864 # not all implementations provide the %pointer and %array declarations.
2865 ac_cv_prog_lex_yytext_pointer=no
2866 ac_save_LIBS=$LIBS
2867 LIBS="$LEXLIB $ac_save_LIBS"
2868 cat >conftest.$ac_ext <<_ACEOF
2869 #define YYTEXT_POINTER 1
2870 `cat $LEX_OUTPUT_ROOT.c`
2871 _ACEOF
2872 rm -f conftest.$ac_objext conftest$ac_exeext
2873 if { (ac_try="$ac_link"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_link") 2>conftest.er1
2880 ac_status=$?
2881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && {
2886 test -z "$ac_c_werror_flag" ||
2887 test ! -s conftest.err
2888 } && test -s conftest$ac_exeext &&
2889 $as_test_x conftest$ac_exeext; then
2890 ac_cv_prog_lex_yytext_pointer=yes
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895
2896 fi
2897
2898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2899 conftest$ac_exeext conftest.$ac_ext
2900 LIBS=$ac_save_LIBS
2901
2902 fi
2903 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2904 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
2905 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2906
2907 cat >>confdefs.h <<\_ACEOF
2908 #define YYTEXT_POINTER 1
2909 _ACEOF
2910
2911 fi
2912 rm -f conftest.l $LEX_OUTPUT_ROOT.c
2913
2914 fi
2915 if test "$LEX" = :; then
2916 LEX=${am_missing_run}flex
2917 fi
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_RANLIB+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 if test -n "$RANLIB"; then
2927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 RANLIB=$ac_cv_prog_RANLIB
2947 if test -n "$RANLIB"; then
2948 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2949 echo "${ECHO_T}$RANLIB" >&6; }
2950 else
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2953 fi
2954
2955
2956 fi
2957 if test -z "$ac_cv_prog_RANLIB"; then
2958 ac_ct_RANLIB=$RANLIB
2959 # Extract the first word of "ranlib", so it can be a program name with args.
2960 set dummy ranlib; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_RANLIB"; then
2967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_RANLIB="ranlib"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2987 if test -n "$ac_ct_RANLIB"; then
2988 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2989 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2990 else
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2993 fi
2994
2995 if test "x$ac_ct_RANLIB" = x; then
2996 RANLIB=":"
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&5
3003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3004 whose name does not start with the host triplet. If you think this
3005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008 RANLIB=$ac_ct_RANLIB
3009 fi
3010 else
3011 RANLIB="$ac_cv_prog_RANLIB"
3012 fi
3013
3014 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3015 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3016 LN_S=$as_ln_s
3017 if test "$LN_S" = "ln -s"; then
3018 { echo "$as_me:$LINENO: result: yes" >&5
3019 echo "${ECHO_T}yes" >&6; }
3020 else
3021 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3022 echo "${ECHO_T}no, using $LN_S" >&6; }
3023 fi
3024
3025
3026
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3033 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3034 # On Suns, sometimes $CPP names a directory.
3035 if test -n "$CPP" && test -d "$CPP"; then
3036 CPP=
3037 fi
3038 if test -z "$CPP"; then
3039 if test "${ac_cv_prog_CPP+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 # Double quotes because CPP needs to be expanded
3043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3044 do
3045 ac_preproc_ok=false
3046 for ac_c_preproc_warn_flag in '' yes
3047 do
3048 # Use a header file that comes with gcc, so configuring glibc
3049 # with a fresh cross-compiler works.
3050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3051 # <limits.h> exists even on freestanding compilers.
3052 # On the NeXT, cc -E runs the code through the compiler's parser,
3053 # not just through cpp. "Syntax error" is here to catch this case.
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060 #ifdef __STDC__
3061 # include <limits.h>
3062 #else
3063 # include <assert.h>
3064 #endif
3065 Syntax error
3066 _ACEOF
3067 if { (ac_try="$ac_cpp conftest.$ac_ext"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null && {
3080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3081 test ! -s conftest.err
3082 }; then
3083 :
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 # Broken: fails on valid input.
3089 continue
3090 fi
3091
3092 rm -f conftest.err conftest.$ac_ext
3093
3094 # OK, works on sane cases. Now check whether nonexistent headers
3095 # can be detected and how.
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 #include <ac_nonexistent.h>
3103 _ACEOF
3104 if { (ac_try="$ac_cpp conftest.$ac_ext"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } >/dev/null && {
3117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3118 test ! -s conftest.err
3119 }; then
3120 # Broken: success on invalid input.
3121 continue
3122 else
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 # Passes both tests.
3127 ac_preproc_ok=:
3128 break
3129 fi
3130
3131 rm -f conftest.err conftest.$ac_ext
3132
3133 done
3134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3135 rm -f conftest.err conftest.$ac_ext
3136 if $ac_preproc_ok; then
3137 break
3138 fi
3139
3140 done
3141 ac_cv_prog_CPP=$CPP
3142
3143 fi
3144 CPP=$ac_cv_prog_CPP
3145 else
3146 ac_cv_prog_CPP=$CPP
3147 fi
3148 { echo "$as_me:$LINENO: result: $CPP" >&5
3149 echo "${ECHO_T}$CPP" >&6; }
3150 ac_preproc_ok=false
3151 for ac_c_preproc_warn_flag in '' yes
3152 do
3153 # Use a header file that comes with gcc, so configuring glibc
3154 # with a fresh cross-compiler works.
3155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3156 # <limits.h> exists even on freestanding compilers.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3165 #ifdef __STDC__
3166 # include <limits.h>
3167 #else
3168 # include <assert.h>
3169 #endif
3170 Syntax error
3171 _ACEOF
3172 if { (ac_try="$ac_cpp conftest.$ac_ext"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null && {
3185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 }; then
3188 :
3189 else
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 # Broken: fails on valid input.
3194 continue
3195 fi
3196
3197 rm -f conftest.err conftest.$ac_ext
3198
3199 # OK, works on sane cases. Now check whether nonexistent headers
3200 # can be detected and how.
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3207 #include <ac_nonexistent.h>
3208 _ACEOF
3209 if { (ac_try="$ac_cpp conftest.$ac_ext"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null && {
3222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3223 test ! -s conftest.err
3224 }; then
3225 # Broken: success on invalid input.
3226 continue
3227 else
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 # Passes both tests.
3232 ac_preproc_ok=:
3233 break
3234 fi
3235
3236 rm -f conftest.err conftest.$ac_ext
3237
3238 done
3239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3240 rm -f conftest.err conftest.$ac_ext
3241 if $ac_preproc_ok; then
3242 :
3243 else
3244 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3245 See \`config.log' for more details." >&5
3246 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3247 See \`config.log' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256
3257
3258 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3259 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3260 if test "${ac_cv_path_GREP+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 # Extract the first word of "grep ggrep" to use in msg output
3264 if test -z "$GREP"; then
3265 set dummy grep ggrep; ac_prog_name=$2
3266 if test "${ac_cv_path_GREP+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269 ac_path_GREP_found=false
3270 # Loop through the user's path and test for each of PROGNAME-LIST
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3273 do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_prog in grep ggrep; do
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3279 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3280 # Check for GNU ac_path_GREP and select it if it is found.
3281 # Check for GNU $ac_path_GREP
3282 case `"$ac_path_GREP" --version 2>&1` in
3283 *GNU*)
3284 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3285 *)
3286 ac_count=0
3287 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3288 while :
3289 do
3290 cat "conftest.in" "conftest.in" >"conftest.tmp"
3291 mv "conftest.tmp" "conftest.in"
3292 cp "conftest.in" "conftest.nl"
3293 echo 'GREP' >> "conftest.nl"
3294 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3296 ac_count=`expr $ac_count + 1`
3297 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3298 # Best one so far, save it but keep looking for a better one
3299 ac_cv_path_GREP="$ac_path_GREP"
3300 ac_path_GREP_max=$ac_count
3301 fi
3302 # 10*(2^10) chars as input seems more than enough
3303 test $ac_count -gt 10 && break
3304 done
3305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3306 esac
3307
3308
3309 $ac_path_GREP_found && break 3
3310 done
3311 done
3312
3313 done
3314 IFS=$as_save_IFS
3315
3316
3317 fi
3318
3319 GREP="$ac_cv_path_GREP"
3320 if test -z "$GREP"; then
3321 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3322 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3323 { (exit 1); exit 1; }; }
3324 fi
3325
3326 else
3327 ac_cv_path_GREP=$GREP
3328 fi
3329
3330
3331 fi
3332 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3333 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3334 GREP="$ac_cv_path_GREP"
3335
3336
3337 { echo "$as_me:$LINENO: checking for egrep" >&5
3338 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3339 if test "${ac_cv_path_EGREP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3343 then ac_cv_path_EGREP="$GREP -E"
3344 else
3345 # Extract the first word of "egrep" to use in msg output
3346 if test -z "$EGREP"; then
3347 set dummy egrep; ac_prog_name=$2
3348 if test "${ac_cv_path_EGREP+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 ac_path_EGREP_found=false
3352 # Loop through the user's path and test for each of PROGNAME-LIST
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3355 do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_prog in egrep; do
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3361 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3362 # Check for GNU ac_path_EGREP and select it if it is found.
3363 # Check for GNU $ac_path_EGREP
3364 case `"$ac_path_EGREP" --version 2>&1` in
3365 *GNU*)
3366 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3367 *)
3368 ac_count=0
3369 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3370 while :
3371 do
3372 cat "conftest.in" "conftest.in" >"conftest.tmp"
3373 mv "conftest.tmp" "conftest.in"
3374 cp "conftest.in" "conftest.nl"
3375 echo 'EGREP' >> "conftest.nl"
3376 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3378 ac_count=`expr $ac_count + 1`
3379 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3380 # Best one so far, save it but keep looking for a better one
3381 ac_cv_path_EGREP="$ac_path_EGREP"
3382 ac_path_EGREP_max=$ac_count
3383 fi
3384 # 10*(2^10) chars as input seems more than enough
3385 test $ac_count -gt 10 && break
3386 done
3387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3388 esac
3389
3390
3391 $ac_path_EGREP_found && break 3
3392 done
3393 done
3394
3395 done
3396 IFS=$as_save_IFS
3397
3398
3399 fi
3400
3401 EGREP="$ac_cv_path_EGREP"
3402 if test -z "$EGREP"; then
3403 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3404 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3405 { (exit 1); exit 1; }; }
3406 fi
3407
3408 else
3409 ac_cv_path_EGREP=$EGREP
3410 fi
3411
3412
3413 fi
3414 fi
3415 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3416 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3417 EGREP="$ac_cv_path_EGREP"
3418
3419
3420 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3421 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3422 if test "${ac_cv_header_stdc+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include <stdlib.h>
3432 #include <stdarg.h>
3433 #include <string.h>
3434 #include <float.h>
3435
3436 int
3437 main ()
3438 {
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 rm -f conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3461 ac_cv_header_stdc=yes
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 ac_cv_header_stdc=no
3467 fi
3468
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470
3471 if test $ac_cv_header_stdc = yes; then
3472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #include <string.h>
3480
3481 _ACEOF
3482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3483 $EGREP "memchr" >/dev/null 2>&1; then
3484 :
3485 else
3486 ac_cv_header_stdc=no
3487 fi
3488 rm -f conftest*
3489
3490 fi
3491
3492 if test $ac_cv_header_stdc = yes; then
3493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include <stdlib.h>
3501
3502 _ACEOF
3503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3504 $EGREP "free" >/dev/null 2>&1; then
3505 :
3506 else
3507 ac_cv_header_stdc=no
3508 fi
3509 rm -f conftest*
3510
3511 fi
3512
3513 if test $ac_cv_header_stdc = yes; then
3514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3515 if test "$cross_compiling" = yes; then
3516 :
3517 else
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ctype.h>
3525 #include <stdlib.h>
3526 #if ((' ' & 0x0FF) == 0x020)
3527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3529 #else
3530 # define ISLOWER(c) \
3531 (('a' <= (c) && (c) <= 'i') \
3532 || ('j' <= (c) && (c) <= 'r') \
3533 || ('s' <= (c) && (c) <= 'z'))
3534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3535 #endif
3536
3537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3538 int
3539 main ()
3540 {
3541 int i;
3542 for (i = 0; i < 256; i++)
3543 if (XOR (islower (i), ISLOWER (i))
3544 || toupper (i) != TOUPPER (i))
3545 return 2;
3546 return 0;
3547 }
3548 _ACEOF
3549 rm -f conftest$ac_exeext
3550 if { (ac_try="$ac_link"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_link") 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3560 { (case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_try") 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3569 :
3570 else
3571 echo "$as_me: program exited with status $ac_status" >&5
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ( exit $ac_status )
3576 ac_cv_header_stdc=no
3577 fi
3578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3579 fi
3580
3581
3582 fi
3583 fi
3584 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3585 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3586 if test $ac_cv_header_stdc = yes; then
3587
3588 cat >>confdefs.h <<\_ACEOF
3589 #define STDC_HEADERS 1
3590 _ACEOF
3591
3592 fi
3593
3594 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3605 inttypes.h stdint.h unistd.h
3606 do
3607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 $ac_includes_default
3620
3621 #include <$ac_header>
3622 _ACEOF
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 eval "$as_ac_Header=yes"
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645 eval "$as_ac_Header=no"
3646 fi
3647
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 fi
3650 ac_res=`eval echo '${'$as_ac_Header'}'`
3651 { echo "$as_me:$LINENO: result: $ac_res" >&5
3652 echo "${ECHO_T}$ac_res" >&6; }
3653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3654 cat >>confdefs.h <<_ACEOF
3655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3656 _ACEOF
3657
3658 fi
3659
3660 done
3661
3662
3663
3664
3665
3666 for ac_header in sys/time.h unistd.h stdarg.h
3667 do
3668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 fi
3675 ac_res=`eval echo '${'$as_ac_Header'}'`
3676 { echo "$as_me:$LINENO: result: $ac_res" >&5
3677 echo "${ECHO_T}$ac_res" >&6; }
3678 else
3679 # Is the header compilable?
3680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 $ac_includes_default
3689 #include <$ac_header>
3690 _ACEOF
3691 rm -f conftest.$ac_objext
3692 if { (ac_try="$ac_compile"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_compile") 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && {
3705 test -z "$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 } && test -s conftest.$ac_objext; then
3708 ac_header_compiler=yes
3709 else
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 ac_header_compiler=no
3714 fi
3715
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3718 echo "${ECHO_T}$ac_header_compiler" >&6; }
3719
3720 # Is the header present?
3721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #include <$ac_header>
3730 _ACEOF
3731 if { (ac_try="$ac_cpp conftest.$ac_ext"
3732 case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3738 ac_status=$?
3739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } >/dev/null && {
3744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3745 test ! -s conftest.err
3746 }; then
3747 ac_header_preproc=yes
3748 else
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 ac_header_preproc=no
3753 fi
3754
3755 rm -f conftest.err conftest.$ac_ext
3756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3757 echo "${ECHO_T}$ac_header_preproc" >&6; }
3758
3759 # So? What about this header?
3760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3761 yes:no: )
3762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3766 ac_header_preproc=yes
3767 ;;
3768 no:yes:* )
3769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3781 ( cat <<\_ASBOX
3782 ## ------------------------------------------------ ##
3783 ## Report this to ais523(524\)x\((525)y)@bham.ac.uk ##
3784 ## ------------------------------------------------ ##
3785 _ASBOX
3786 ) | sed "s/^/$as_me: WARNING: /" >&2
3787 ;;
3788 esac
3789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 eval "$as_ac_Header=\$ac_header_preproc"
3795 fi
3796 ac_res=`eval echo '${'$as_ac_Header'}'`
3797 { echo "$as_me:$LINENO: result: $ac_res" >&5
3798 echo "${ECHO_T}$ac_res" >&6; }
3799
3800 fi
3801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3802 cat >>confdefs.h <<_ACEOF
3803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804 _ACEOF
3805
3806 fi
3807
3808 done
3809
3810
3811 for ac_header in stdint.h
3812 do
3813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 fi
3820 ac_res=`eval echo '${'$as_ac_Header'}'`
3821 { echo "$as_me:$LINENO: result: $ac_res" >&5
3822 echo "${ECHO_T}$ac_res" >&6; }
3823 else
3824 # Is the header compilable?
3825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3827 cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h. */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 $ac_includes_default
3834 #include <$ac_header>
3835 _ACEOF
3836 rm -f conftest.$ac_objext
3837 if { (ac_try="$ac_compile"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843 (eval "$ac_compile") 2>conftest.er1
3844 ac_status=$?
3845 grep -v '^ *+' conftest.er1 >conftest.err
3846 rm -f conftest.er1
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } && {
3850 test -z "$ac_c_werror_flag" ||
3851 test ! -s conftest.err
3852 } && test -s conftest.$ac_objext; then
3853 ac_header_compiler=yes
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 ac_header_compiler=no
3859 fi
3860
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3863 echo "${ECHO_T}$ac_header_compiler" >&6; }
3864
3865 # Is the header present?
3866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3868 cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h. */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3874 #include <$ac_header>
3875 _ACEOF
3876 if { (ac_try="$ac_cpp conftest.$ac_ext"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } >/dev/null && {
3889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3891 }; then
3892 ac_header_preproc=yes
3893 else
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3896
3897 ac_header_preproc=no
3898 fi
3899
3900 rm -f conftest.err conftest.$ac_ext
3901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3902 echo "${ECHO_T}$ac_header_preproc" >&6; }
3903
3904 # So? What about this header?
3905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3906 yes:no: )
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3911 ac_header_preproc=yes
3912 ;;
3913 no:yes:* )
3914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3926 ( cat <<\_ASBOX
3927 ## ------------------------------------------------ ##
3928 ## Report this to ais523(524\)x\((525)y)@bham.ac.uk ##
3929 ## ------------------------------------------------ ##
3930 _ASBOX
3931 ) | sed "s/^/$as_me: WARNING: /" >&2
3932 ;;
3933 esac
3934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 eval "$as_ac_Header=\$ac_header_preproc"
3940 fi
3941 ac_res=`eval echo '${'$as_ac_Header'}'`
3942 { echo "$as_me:$LINENO: result: $ac_res" >&5
3943 echo "${ECHO_T}$ac_res" >&6; }
3944
3945 fi
3946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3947 cat >>confdefs.h <<_ACEOF
3948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3949 _ACEOF
3950 HAVE_STDINT_H=1
3951 fi
3952
3953 done
3954
3955
3956
3957 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3958 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3959 if test "${ac_cv_c_const+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968
3969 int
3970 main ()
3971 {
3972 /* FIXME: Include the comments suggested by Paul. */
3973 #ifndef __cplusplus
3974 /* Ultrix mips cc rejects this. */
3975 typedef int charset[2];
3976 const charset cs;
3977 /* SunOS 4.1.1 cc rejects this. */
3978 char const *const *pcpcc;
3979 char **ppc;
3980 /* NEC SVR4.0.2 mips cc rejects this. */
3981 struct point {int x, y;};
3982 static struct point const zero = {0,0};
3983 /* AIX XL C 1.02.0.0 rejects this.
3984 It does not let you subtract one const X* pointer from another in
3985 an arm of an if-expression whose if-part is not a constant
3986 expression */
3987 const char *g = "string";
3988 pcpcc = &g + (g ? g-g : 0);
3989 /* HPUX 7.0 cc rejects these. */
3990 ++pcpcc;
3991 ppc = (char**) pcpcc;
3992 pcpcc = (char const *const *) ppc;
3993 { /* SCO 3.2v4 cc rejects this. */
3994 char *t;
3995 char const *s = 0 ? (char *) 0 : (char const *) 0;
3996
3997 *t++ = 0;
3998 if (s) return 0;
3999 }
4000 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4001 int x[] = {25, 17};
4002 const int *foo = &x[0];
4003 ++foo;
4004 }
4005 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4006 typedef const int *iptr;
4007 iptr p = 0;
4008 ++p;
4009 }
4010 { /* AIX XL C 1.02.0.0 rejects this saying
4011 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4012 struct s { int j; const int *ap[3]; };
4013 struct s *b; b->j = 5;
4014 }
4015 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4016 const int foo = 10;
4017 if (!foo) return 0;
4018 }
4019 return !cs[0] && !zero.x;
4020 #endif
4021
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 rm -f conftest.$ac_objext
4027 if { (ac_try="$ac_compile"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_compile") 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } && {
4040 test -z "$ac_c_werror_flag" ||
4041 test ! -s conftest.err
4042 } && test -s conftest.$ac_objext; then
4043 ac_cv_c_const=yes
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4047
4048 ac_cv_c_const=no
4049 fi
4050
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 fi
4053 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4054 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4055 if test $ac_cv_c_const = no; then
4056
4057 cat >>confdefs.h <<\_ACEOF
4058 #define const
4059 _ACEOF
4060
4061 fi
4062
4063 { echo "$as_me:$LINENO: checking for working volatile" >&5
4064 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
4065 if test "${ac_cv_c_volatile+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074
4075 int
4076 main ()
4077 {
4078
4079 volatile int x;
4080 int * volatile y = (int *) 0;
4081 return !x && !y;
4082 ;
4083 return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && {
4100 test -z "$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 } && test -s conftest.$ac_objext; then
4103 ac_cv_c_volatile=yes
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 ac_cv_c_volatile=no
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 fi
4113 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4114 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
4115 if test $ac_cv_c_volatile = no; then
4116
4117 cat >>confdefs.h <<\_ACEOF
4118 #define volatile
4119 _ACEOF
4120
4121 fi
4122
4123 { echo "$as_me:$LINENO: checking for long long int" >&5
4124 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
4125 if test "${ac_cv_type_long_long_int+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_includes_default
4135 typedef long long int ac__type_new_;
4136 int
4137 main ()
4138 {
4139 if ((ac__type_new_ *) 0)
4140 return 0;
4141 if (sizeof (ac__type_new_))
4142 return 0;
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_compile") 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } && {
4161 test -z "$ac_c_werror_flag" ||
4162 test ! -s conftest.err
4163 } && test -s conftest.$ac_objext; then
4164 ac_cv_type_long_long_int=yes
4165 else
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 ac_cv_type_long_long_int=no
4170 fi
4171
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 fi
4174 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4175 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
4176
4177 # The cast to long int works around a bug in the HP C Compiler
4178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4180 # This bug is HP SR number 8606223364.
4181 { echo "$as_me:$LINENO: checking size of long long int" >&5
4182 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
4183 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 if test "$cross_compiling" = yes; then
4187 # Depending upon the size, compute the lo and hi bounds.
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 $ac_includes_default
4195 typedef long long int ac__type_sizeof_;
4196 int
4197 main ()
4198 {
4199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4200 test_array [0] = 0
4201
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest.$ac_objext; then
4223 ac_lo=0 ac_mid=0
4224 while :; do
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 $ac_includes_default
4232 typedef long long int ac__type_sizeof_;
4233 int
4234 main ()
4235 {
4236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4237 test_array [0] = 0
4238
4239 ;
4240 return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } && {
4257 test -z "$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4259 } && test -s conftest.$ac_objext; then
4260 ac_hi=$ac_mid; break
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265 ac_lo=`expr $ac_mid + 1`
4266 if test $ac_lo -le $ac_mid; then
4267 ac_lo= ac_hi=
4268 break
4269 fi
4270 ac_mid=`expr 2 '*' $ac_mid + 1`
4271 fi
4272
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 done
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h. */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 $ac_includes_default
4286 typedef long long int ac__type_sizeof_;
4287 int
4288 main ()
4289 {
4290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4291 test_array [0] = 0
4292
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && {
4311 test -z "$ac_c_werror_flag" ||
4312 test ! -s conftest.err
4313 } && test -s conftest.$ac_objext; then
4314 ac_hi=-1 ac_mid=-1
4315 while :; do
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4323 typedef long long int ac__type_sizeof_;
4324 int
4325 main ()
4326 {
4327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4328 test_array [0] = 0
4329
4330 ;
4331 return 0;
4332 }
4333 _ACEOF
4334 rm -f conftest.$ac_objext
4335 if { (ac_try="$ac_compile"
4336 case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } && {
4348 test -z "$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4350 } && test -s conftest.$ac_objext; then
4351 ac_lo=$ac_mid; break
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 ac_hi=`expr '(' $ac_mid ')' - 1`
4357 if test $ac_mid -le $ac_hi; then
4358 ac_lo= ac_hi=
4359 break
4360 fi
4361 ac_mid=`expr 2 '*' $ac_mid`
4362 fi
4363
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 done
4366 else
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 ac_lo= ac_hi=
4371 fi
4372
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 # Binary search between lo and hi bounds.
4378 while test "x$ac_lo" != "x$ac_hi"; do
4379 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 $ac_includes_default
4387 typedef long long int ac__type_sizeof_;
4388 int
4389 main ()
4390 {
4391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4392 test_array [0] = 0
4393
4394 ;
4395 return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (ac_try="$ac_compile"
4400 case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_compile") 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } && {
4412 test -z "$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4414 } && test -s conftest.$ac_objext; then
4415 ac_hi=$ac_mid
4416 else
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 ac_lo=`expr '(' $ac_mid ')' + 1`
4421 fi
4422
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 done
4425 case $ac_lo in
4426 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
4427 '') if test "$ac_cv_type_long_long_int" = yes; then
4428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
4429 See \`config.log' for more details." >&5
4430 echo "$as_me: error: cannot compute sizeof (long long int)
4431 See \`config.log' for more details." >&2;}
4432 { (exit 77); exit 77; }; }
4433 else
4434 ac_cv_sizeof_long_long_int=0
4435 fi ;;
4436 esac
4437 else
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4445 typedef long long int ac__type_sizeof_;
4446 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4447 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4448 #include <stdio.h>
4449 #include <stdlib.h>
4450 int
4451 main ()
4452 {
4453
4454 FILE *f = fopen ("conftest.val", "w");
4455 if (! f)
4456 return 1;
4457 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4458 {
4459 long int i = longval ();
4460 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4461 return 1;
4462 fprintf (f, "%ld\n", i);
4463 }
4464 else
4465 {
4466 unsigned long int i = ulongval ();
4467 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4468 return 1;
4469 fprintf (f, "%lu\n", i);
4470 }
4471 return ferror (f) || fclose (f) != 0;
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest$ac_exeext
4478 if { (ac_try="$ac_link"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_link") 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4488 { (case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_try") 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 ac_cv_sizeof_long_long_int=`cat conftest.val`
4498 else
4499 echo "$as_me: program exited with status $ac_status" >&5
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503 ( exit $ac_status )
4504 if test "$ac_cv_type_long_long_int" = yes; then
4505 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
4506 See \`config.log' for more details." >&5
4507 echo "$as_me: error: cannot compute sizeof (long long int)
4508 See \`config.log' for more details." >&2;}
4509 { (exit 77); exit 77; }; }
4510 else
4511 ac_cv_sizeof_long_long_int=0
4512 fi
4513 fi
4514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4515 fi
4516 rm -f conftest.val
4517 fi
4518 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
4519 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
4520
4521
4522
4523 cat >>confdefs.h <<_ACEOF
4524 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
4525 _ACEOF
4526
4527
4528 { echo "$as_me:$LINENO: checking for _Bool" >&5
4529 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
4530 if test "${ac_cv_type__Bool+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4540 typedef _Bool ac__type_new_;
4541 int
4542 main ()
4543 {
4544 if ((ac__type_new_ *) 0)
4545 return 0;
4546 if (sizeof (ac__type_new_))
4547 return 0;
4548 ;
4549 return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_compile") 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && {
4566 test -z "$ac_c_werror_flag" ||
4567 test ! -s conftest.err
4568 } && test -s conftest.$ac_objext; then
4569 ac_cv_type__Bool=yes
4570 else
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 ac_cv_type__Bool=no
4575 fi
4576
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 fi
4579 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4580 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4581
4582 # The cast to long int works around a bug in the HP C Compiler
4583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4585 # This bug is HP SR number 8606223364.
4586 { echo "$as_me:$LINENO: checking size of _Bool" >&5
4587 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
4588 if test "${ac_cv_sizeof__Bool+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 if test "$cross_compiling" = yes; then
4592 # Depending upon the size, compute the lo and hi bounds.
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h. */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 $ac_includes_default
4600 typedef _Bool ac__type_sizeof_;
4601 int
4602 main ()
4603 {
4604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4605 test_array [0] = 0
4606
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 rm -f conftest.$ac_objext
4612 if { (ac_try="$ac_compile"
4613 case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616 esac
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && {
4625 test -z "$ac_c_werror_flag" ||
4626 test ! -s conftest.err
4627 } && test -s conftest.$ac_objext; then
4628 ac_lo=0 ac_mid=0
4629 while :; do
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4637 typedef _Bool ac__type_sizeof_;
4638 int
4639 main ()
4640 {
4641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4642 test_array [0] = 0
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (ac_try="$ac_compile"
4650 case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653 esac
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_compile") 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && {
4662 test -z "$ac_c_werror_flag" ||
4663 test ! -s conftest.err
4664 } && test -s conftest.$ac_objext; then
4665 ac_hi=$ac_mid; break
4666 else
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670 ac_lo=`expr $ac_mid + 1`
4671 if test $ac_lo -le $ac_mid; then
4672 ac_lo= ac_hi=
4673 break
4674 fi
4675 ac_mid=`expr 2 '*' $ac_mid + 1`
4676 fi
4677
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 done
4680 else
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 $ac_includes_default
4691 typedef _Bool ac__type_sizeof_;
4692 int
4693 main ()
4694 {
4695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4696 test_array [0] = 0
4697
4698 ;
4699 return 0;
4700 }
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (ac_try="$ac_compile"
4704 case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707 esac
4708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709 (eval "$ac_compile") 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } && {
4716 test -z "$ac_c_werror_flag" ||
4717 test ! -s conftest.err
4718 } && test -s conftest.$ac_objext; then
4719 ac_hi=-1 ac_mid=-1
4720 while :; do
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 $ac_includes_default
4728 typedef _Bool ac__type_sizeof_;
4729 int
4730 main ()
4731 {
4732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4733 test_array [0] = 0
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (ac_try="$ac_compile"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && {
4753 test -z "$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 } && test -s conftest.$ac_objext; then
4756 ac_lo=$ac_mid; break
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 ac_hi=`expr '(' $ac_mid ')' - 1`
4762 if test $ac_mid -le $ac_hi; then
4763 ac_lo= ac_hi=
4764 break
4765 fi
4766 ac_mid=`expr 2 '*' $ac_mid`
4767 fi
4768
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 done
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 ac_lo= ac_hi=
4776 fi
4777
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 fi
4780
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 # Binary search between lo and hi bounds.
4783 while test "x$ac_lo" != "x$ac_hi"; do
4784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4792 typedef _Bool ac__type_sizeof_;
4793 int
4794 main ()
4795 {
4796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4797 test_array [0] = 0
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (ac_try="$ac_compile"
4805 case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_compile") 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } && {
4817 test -z "$ac_c_werror_flag" ||
4818 test ! -s conftest.err
4819 } && test -s conftest.$ac_objext; then
4820 ac_hi=$ac_mid
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 ac_lo=`expr '(' $ac_mid ')' + 1`
4826 fi
4827
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 done
4830 case $ac_lo in
4831 ?*) ac_cv_sizeof__Bool=$ac_lo;;
4832 '') if test "$ac_cv_type__Bool" = yes; then
4833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
4834 See \`config.log' for more details." >&5
4835 echo "$as_me: error: cannot compute sizeof (_Bool)
4836 See \`config.log' for more details." >&2;}
4837 { (exit 77); exit 77; }; }
4838 else
4839 ac_cv_sizeof__Bool=0
4840 fi ;;
4841 esac
4842 else
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 $ac_includes_default
4850 typedef _Bool ac__type_sizeof_;
4851 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4852 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4853 #include <stdio.h>
4854 #include <stdlib.h>
4855 int
4856 main ()
4857 {
4858
4859 FILE *f = fopen ("conftest.val", "w");
4860 if (! f)
4861 return 1;
4862 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4863 {
4864 long int i = longval ();
4865 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4866 return 1;
4867 fprintf (f, "%ld\n", i);
4868 }
4869 else
4870 {
4871 unsigned long int i = ulongval ();
4872 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4873 return 1;
4874 fprintf (f, "%lu\n", i);
4875 }
4876 return ferror (f) || fclose (f) != 0;
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4884 case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_link") 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4893 { (case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_try") 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_sizeof__Bool=`cat conftest.val`
4903 else
4904 echo "$as_me: program exited with status $ac_status" >&5
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 ( exit $ac_status )
4909 if test "$ac_cv_type__Bool" = yes; then
4910 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
4911 See \`config.log' for more details." >&5
4912 echo "$as_me: error: cannot compute sizeof (_Bool)
4913 See \`config.log' for more details." >&2;}
4914 { (exit 77); exit 77; }; }
4915 else
4916 ac_cv_sizeof__Bool=0
4917 fi
4918 fi
4919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4920 fi
4921 rm -f conftest.val
4922 fi
4923 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
4924 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
4925
4926
4927
4928 cat >>confdefs.h <<_ACEOF
4929 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
4930 _ACEOF
4931
4932
4933 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4934 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4935 if test "${ac_cv_header_time+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4944 #include <sys/types.h>
4945 #include <sys/time.h>
4946 #include <time.h>
4947
4948 int
4949 main ()
4950 {
4951 if ((struct tm *) 0)
4952 return 0;
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (ac_try="$ac_compile"
4959 case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962 esac
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964 (eval "$ac_compile") 2>conftest.er1
4965 ac_status=$?
4966 grep -v '^ *+' conftest.er1 >conftest.err
4967 rm -f conftest.er1
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } && {
4971 test -z "$ac_c_werror_flag" ||
4972 test ! -s conftest.err
4973 } && test -s conftest.$ac_objext; then
4974 ac_cv_header_time=yes
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 ac_cv_header_time=no
4980 fi
4981
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 fi
4984 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4985 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4986 if test $ac_cv_header_time = yes; then
4987
4988 cat >>confdefs.h <<\_ACEOF
4989 #define TIME_WITH_SYS_TIME 1
4990 _ACEOF
4991
4992 fi
4993
4994
4995
4996 { echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
4997 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6; }
4998 if test "${ac_cv_sys_interpreter+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 echo '#! /bin/cat
5002 exit 69
5003 ' >conftest
5004 chmod u+x conftest
5005 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
5006 if test $? -ne 69; then
5007 ac_cv_sys_interpreter=yes
5008 else
5009 ac_cv_sys_interpreter=no
5010 fi
5011 rm -f conftest
5012 fi
5013 { echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
5014 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6; }
5015 interpval=$ac_cv_sys_interpreter
5016
5017 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5018 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5019 if test "${ac_cv_type_signal+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #include <sys/types.h>
5029 #include <signal.h>
5030
5031 int
5032 main ()
5033 {
5034 return *(signal (0, 0)) (0) == 1;
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (ac_try="$ac_compile"
5041 case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_compile") 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } && {
5053 test -z "$ac_c_werror_flag" ||
5054 test ! -s conftest.err
5055 } && test -s conftest.$ac_objext; then
5056 ac_cv_type_signal=int
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 ac_cv_type_signal=void
5062 fi
5063
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 fi
5066 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5067 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5068
5069 cat >>confdefs.h <<_ACEOF
5070 #define RETSIGTYPE $ac_cv_type_signal
5071 _ACEOF
5072
5073
5074 { echo "$as_me:$LINENO: checking for size_t" >&5
5075 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5076 if test "${ac_cv_type_size_t+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 $ac_includes_default
5086 typedef size_t ac__type_new_;
5087 int
5088 main ()
5089 {
5090 if ((ac__type_new_ *) 0)
5091 return 0;
5092 if (sizeof (ac__type_new_))
5093 return 0;
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (ac_try="$ac_compile"
5100 case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103 esac
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compile") 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest.$ac_objext; then
5115 ac_cv_type_size_t=yes
5116 else
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 ac_cv_type_size_t=no
5121 fi
5122
5123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 fi
5125 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5126 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5127 if test $ac_cv_type_size_t = yes; then
5128 :
5129 else
5130
5131 cat >>confdefs.h <<_ACEOF
5132 #define size_t unsigned int
5133 _ACEOF
5134
5135 fi
5136
5137
5138 { echo "$as_me:$LINENO: checking for uint16_t" >&5
5139 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5140 if test "${ac_cv_c_uint16_t+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143 ac_cv_c_uint16_t=no
5144 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
5145 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5146 cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h. */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 $ac_includes_default
5153 int
5154 main ()
5155 {
5156 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
5157 test_array [0] = 0
5158
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 rm -f conftest.$ac_objext
5164 if { (ac_try="$ac_compile"
5165 case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_compile") 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && {
5177 test -z "$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 } && test -s conftest.$ac_objext; then
5180 case $ac_type in
5181 uint16_t) ac_cv_c_uint16_t=yes ;;
5182 *) ac_cv_c_uint16_t=$ac_type ;;
5183 esac
5184
5185 else
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189
5190 fi
5191
5192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 test "$ac_cv_c_uint16_t" != no && break
5194 done
5195 fi
5196 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
5197 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
5198 case $ac_cv_c_uint16_t in #(
5199 no|yes) ;; #(
5200 *)
5201
5202
5203 cat >>confdefs.h <<_ACEOF
5204 #define uint16_t $ac_cv_c_uint16_t
5205 _ACEOF
5206 ;;
5207 esac
5208
5209
5210 { echo "$as_me:$LINENO: checking for uint32_t" >&5
5211 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
5212 if test "${ac_cv_c_uint32_t+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 ac_cv_c_uint32_t=no
5216 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
5217 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 $ac_includes_default
5225 int
5226 main ()
5227 {
5228 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
5229 test_array [0] = 0
5230
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (ac_try="$ac_compile"
5237 case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_compile") 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && {
5249 test -z "$ac_c_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest.$ac_objext; then
5252 case $ac_type in
5253 uint32_t) ac_cv_c_uint32_t=yes ;;
5254 *) ac_cv_c_uint32_t=$ac_type ;;
5255 esac
5256
5257 else
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261
5262 fi
5263
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 test "$ac_cv_c_uint32_t" != no && break
5266 done
5267 fi
5268 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
5269 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
5270 case $ac_cv_c_uint32_t in #(
5271 no|yes) ;; #(
5272 *)
5273
5274 cat >>confdefs.h <<\_ACEOF
5275 #define _UINT32_T 1
5276 _ACEOF
5277
5278
5279 cat >>confdefs.h <<_ACEOF
5280 #define uint32_t $ac_cv_c_uint32_t
5281 _ACEOF
5282 ;;
5283 esac
5284
5285
5286 { echo "$as_me:$LINENO: checking whether yyrestart() is needed" >&5
5287 echo $ECHO_N "checking whether yyrestart() is needed... $ECHO_C" >&6; }
5288 # Write a lex program that will cause an error if yyrestart exists.
5289 echo '%%
5290 %%
5291 float yyrestart(int, ...);' | $LEX
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 #include "${LEX_OUTPUT_ROOT}.c"
5299
5300 int
5301 main ()
5302 {
5303 exit(0);
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (ac_try="$ac_compile"
5310 case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compile") 2>conftest.er1
5316 ac_status=$?
5317 grep -v '^ *+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } && {
5322 test -z "$ac_c_werror_flag" ||
5323 test ! -s conftest.err
5324 } && test -s conftest.$ac_objext; then
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5327 else
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331
5332 cat >>confdefs.h <<\_ACEOF
5333 #define NEED_YYRESTART
5334 _ACEOF
5335
5336 { echo "$as_me:$LINENO: result: yes" >&5
5337 echo "${ECHO_T}yes" >&6; }
5338 fi
5339
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341 rm -f ${LEX_OUTPUT_ROOT}.c
5342
5343
5344
5345
5346
5347
5348
5349 for ac_func in gettimeofday gethrtime strdup strtol strtoul snprintf
5350 do
5351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5365 #define $ac_func innocuous_$ac_func
5366
5367 /* System header to define __stub macros and hopefully few prototypes,
5368 which can conflict with char $ac_func (); below.
5369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5370 <limits.h> exists even on freestanding compilers. */
5371
5372 #ifdef __STDC__
5373 # include <limits.h>
5374 #else
5375 # include <assert.h>
5376 #endif
5377
5378 #undef $ac_func
5379
5380 /* Override any GCC internal prototype to avoid an error.
5381 Use char because int might match the return type of a GCC
5382 builtin and then its argument prototype would still apply. */
5383 #ifdef __cplusplus
5384 extern "C"
5385 #endif
5386 char $ac_func ();
5387 /* The GNU C library defines this for functions which it implements
5388 to always fail with ENOSYS. Some functions are actually named
5389 something starting with __ and the normal name is an alias. */
5390 #if defined __stub_$ac_func || defined __stub___$ac_func
5391 choke me
5392 #endif
5393
5394 int
5395 main ()
5396 {
5397 return $ac_func ();
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 rm -f conftest.$ac_objext conftest$ac_exeext
5403 if { (ac_try="$ac_link"
5404 case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407 esac
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_link") 2>conftest.er1
5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && {
5416 test -z "$ac_c_werror_flag" ||
5417 test ! -s conftest.err
5418 } && test -s conftest$ac_exeext &&
5419 $as_test_x conftest$ac_exeext; then
5420 eval "$as_ac_var=yes"
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 eval "$as_ac_var=no"
5426 fi
5427
5428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5429 conftest$ac_exeext conftest.$ac_ext
5430 fi
5431 ac_res=`eval echo '${'$as_ac_var'}'`
5432 { echo "$as_me:$LINENO: result: $ac_res" >&5
5433 echo "${ECHO_T}$ac_res" >&6; }
5434 if test `eval echo '${'$as_ac_var'}'` = yes; then
5435 cat >>confdefs.h <<_ACEOF
5436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5437 _ACEOF
5438
5439 fi
5440 done
5441
5442
5443 if test "$interpval" != "no"; then
5444
5445 cat >>confdefs.h <<\_ACEOF
5446 #define HAVE_SYS_INTERPRETER
5447 _ACEOF
5448
5449 fi
5450
5451 cat >>confdefs.h <<_ACEOF
5452 #define EXEEXT "$EXEEXT"
5453 _ACEOF
5454
5455
5456 ac_config_files="$ac_config_files host.mak:hostmak.in"
5457
5458 cat >confcache <<\_ACEOF
5459 # This file is a shell script that caches the results of configure
5460 # tests run on this system so they can be shared between configure
5461 # scripts and configure runs, see configure's option --config-cache.
5462 # It is not useful on other systems. If it contains results you don't
5463 # want to keep, you may remove or edit it.
5464 #
5465 # config.status only pays attention to the cache file if you give it
5466 # the --recheck option to rerun configure.
5467 #
5468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5470 # following values.
5471
5472 _ACEOF
5473
5474 # The following way of writing the cache mishandles newlines in values,
5475 # but we know of no workaround that is simple, portable, and efficient.
5476 # So, we kill variables containing newlines.
5477 # Ultrix sh set writes to stderr and can't be redirected directly,
5478 # and sets the high bit in the cache file unless we assign to the vars.
5479 (
5480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5481 eval ac_val=\$$ac_var
5482 case $ac_val in #(
5483 *${as_nl}*)
5484 case $ac_var in #(
5485 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5486 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5487 esac
5488 case $ac_var in #(
5489 _ | IFS | as_nl) ;; #(
5490 *) $as_unset $ac_var ;;
5491 esac ;;
5492 esac
5493 done
5494
5495 (set) 2>&1 |
5496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5497 *${as_nl}ac_space=\ *)
5498 # `set' does not quote correctly, so add quotes (double-quote
5499 # substitution turns \\\\ into \\, and sed turns \\ into \).
5500 sed -n \
5501 "s/'/'\\\\''/g;
5502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5503 ;; #(
5504 *)
5505 # `set' quotes correctly as required by POSIX, so do not add quotes.
5506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5507 ;;
5508 esac |
5509 sort
5510 ) |
5511 sed '
5512 /^ac_cv_env_/b end
5513 t clear
5514 :clear
5515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5516 t end
5517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5518 :end' >>confcache
5519 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5520 if test -w "$cache_file"; then
5521 test "x$cache_file" != "x/dev/null" &&
5522 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5523 echo "$as_me: updating cache $cache_file" >&6;}
5524 cat confcache >$cache_file
5525 else
5526 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5527 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5528 fi
5529 fi
5530 rm -f confcache
5531
5532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5533 # Let make expand exec_prefix.
5534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5535
5536 DEFS=-DHAVE_CONFIG_H
5537
5538 ac_libobjs=
5539 ac_ltlibobjs=
5540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5541 # 1. Remove the extension, and $U if already installed.
5542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5543 ac_i=`echo "$ac_i" | sed "$ac_script"`
5544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5545 # will be set to the directory where LIBOBJS objects are built.
5546 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5547 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5548 done
5549 LIBOBJS=$ac_libobjs
5550
5551 LTLIBOBJS=$ac_ltlibobjs
5552
5553
5554
5555 : ${CONFIG_STATUS=./config.status}
5556 ac_clean_files_save=$ac_clean_files
5557 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5558 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5559 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5560 cat >$CONFIG_STATUS <<_ACEOF
5561 #! $SHELL
5562 # Generated by $as_me.
5563 # Run this file to recreate the current configuration.
5564 # Compiler output produced by configure, useful for debugging
5565 # configure, is in config.log if it exists.
5566
5567 debug=false
5568 ac_cs_recheck=false
5569 ac_cs_silent=false
5570 SHELL=\${CONFIG_SHELL-$SHELL}
5571 _ACEOF
5572
5573 cat >>$CONFIG_STATUS <<\_ACEOF
5574 ## --------------------- ##
5575 ## M4sh Initialization. ##
5576 ## --------------------- ##
5577
5578 # Be more Bourne compatible
5579 DUALCASE=1; export DUALCASE # for MKS sh
5580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5581 emulate sh
5582 NULLCMD=:
5583 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5584 # is contrary to our usage. Disable this feature.
5585 alias -g '${1+"$@"}'='"$@"'
5586 setopt NO_GLOB_SUBST
5587 else
5588 case `(set -o) 2>/dev/null` in
5589 *posix*) set -o posix ;;
5590 esac
5591
5592 fi
5593
5594
5595
5596
5597 # PATH needs CR
5598 # Avoid depending upon Character Ranges.
5599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5602 as_cr_digits='0123456789'
5603 as_cr_alnum=$as_cr_Letters$as_cr_digits
5604
5605 # The user is always right.
5606 if test "${PATH_SEPARATOR+set}" != set; then
5607 echo "#! /bin/sh" >conf$$.sh
5608 echo "exit 0" >>conf$$.sh
5609 chmod +x conf$$.sh
5610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5611 PATH_SEPARATOR=';'
5612 else
5613 PATH_SEPARATOR=:
5614 fi
5615 rm -f conf$$.sh
5616 fi
5617
5618 # Support unset when possible.
5619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5620 as_unset=unset
5621 else
5622 as_unset=false
5623 fi
5624
5625
5626 # IFS
5627 # We need space, tab and new line, in precisely that order. Quoting is
5628 # there to prevent editors from complaining about space-tab.
5629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5630 # splitting by setting IFS to empty value.)
5631 as_nl='
5632 '
5633 IFS=" "" $as_nl"
5634
5635 # Find who we are. Look in the path if we contain no directory separator.
5636 case $0 in
5637 *[\\/]* ) as_myself=$0 ;;
5638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5644 done
5645 IFS=$as_save_IFS
5646
5647 ;;
5648 esac
5649 # We did not find ourselves, most probably we were run as `sh COMMAND'
5650 # in which case we are not to be found in the path.
5651 if test "x$as_myself" = x; then
5652 as_myself=$0
5653 fi
5654 if test ! -f "$as_myself"; then
5655 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5656 { (exit 1); exit 1; }
5657 fi
5658
5659 # Work around bugs in pre-3.0 UWIN ksh.
5660 for as_var in ENV MAIL MAILPATH
5661 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5662 done
5663 PS1='$ '
5664 PS2='> '
5665 PS4='+ '
5666
5667 # NLS nuisances.
5668 for as_var in \
5669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5671 LC_TELEPHONE LC_TIME
5672 do
5673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5674 eval $as_var=C; export $as_var
5675 else
5676 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5677 fi
5678 done
5679
5680 # Required to use basename.
5681 if expr a : '\(a\)' >/dev/null 2>&1 &&
5682 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5683 as_expr=expr
5684 else
5685 as_expr=false
5686 fi
5687
5688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5689 as_basename=basename
5690 else
5691 as_basename=false
5692 fi
5693
5694
5695 # Name of the executable.
5696 as_me=`$as_basename -- "$0" ||
5697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5698 X"$0" : 'X\(//\)$' \| \
5699 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5700 echo X/"$0" |
5701 sed '/^.*\/\([^/][^/]*\)\/*$/{
5702 s//\1/
5703 q
5704 }
5705 /^X\/\(\/\/\)$/{
5706 s//\1/
5707 q
5708 }
5709 /^X\/\(\/\).*/{
5710 s//\1/
5711 q
5712 }
5713 s/.*/./; q'`
5714
5715 # CDPATH.
5716 $as_unset CDPATH
5717
5718
5719
5720 as_lineno_1=$LINENO
5721 as_lineno_2=$LINENO
5722 test "x$as_lineno_1" != "x$as_lineno_2" &&
5723 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5724
5725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5726 # uniformly replaced by the line number. The first 'sed' inserts a
5727 # line-number line after each line using $LINENO; the second 'sed'
5728 # does the real work. The second script uses 'N' to pair each
5729 # line-number line with the line containing $LINENO, and appends
5730 # trailing '-' during substitution so that $LINENO is not a special
5731 # case at line end.
5732 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5733 # scripts with optimization help from Paolo Bonzini. Blame Lee
5734 # E. McMahon (1931-1989) for sed's syntax. :-)
5735 sed -n '
5736 p
5737 /[$]LINENO/=
5738 ' <$as_myself |
5739 sed '
5740 s/[$]LINENO.*/&-/
5741 t lineno
5742 b
5743 :lineno
5744 N
5745 :loop
5746 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5747 t loop
5748 s/-\n.*//
5749 ' >$as_me.lineno &&
5750 chmod +x "$as_me.lineno" ||
5751 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5752 { (exit 1); exit 1; }; }
5753
5754 # Don't try to exec as it changes $[0], causing all sort of problems
5755 # (the dirname of $[0] is not the place where we might find the
5756 # original and so on. Autoconf is especially sensitive to this).
5757 . "./$as_me.lineno"
5758 # Exit status is that of the last command.
5759 exit
5760 }
5761
5762
5763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5764 as_dirname=dirname
5765 else
5766 as_dirname=false
5767 fi
5768
5769 ECHO_C= ECHO_N= ECHO_T=
5770 case `echo -n x` in
5771 -n*)
5772 case `echo 'x\c'` in
5773 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5774 *) ECHO_C='\c';;
5775 esac;;
5776 *)
5777 ECHO_N='-n';;
5778 esac
5779
5780 if expr a : '\(a\)' >/dev/null 2>&1 &&
5781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5782 as_expr=expr
5783 else
5784 as_expr=false
5785 fi
5786
5787 rm -f conf$$ conf$$.exe conf$$.file
5788 if test -d conf$$.dir; then
5789 rm -f conf$$.dir/conf$$.file
5790 else
5791 rm -f conf$$.dir
5792 mkdir conf$$.dir
5793 fi
5794 echo >conf$$.file
5795 if ln -s conf$$.file conf$$ 2>/dev/null; then
5796 as_ln_s='ln -s'
5797 # ... but there are two gotchas:
5798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5800 # In both cases, we have to default to `cp -p'.
5801 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5802 as_ln_s='cp -p'
5803 elif ln conf$$.file conf$$ 2>/dev/null; then
5804 as_ln_s=ln
5805 else
5806 as_ln_s='cp -p'
5807 fi
5808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5809 rmdir conf$$.dir 2>/dev/null
5810
5811 if mkdir -p . 2>/dev/null; then
5812 as_mkdir_p=:
5813 else
5814 test -d ./-p && rmdir ./-p
5815 as_mkdir_p=false
5816 fi
5817
5818 if test -x / >/dev/null 2>&1; then
5819 as_test_x='test -x'
5820 else
5821 if ls -dL / >/dev/null 2>&1; then
5822 as_ls_L_option=L
5823 else
5824 as_ls_L_option=
5825 fi
5826 as_test_x='
5827 eval sh -c '\''
5828 if test -d "$1"; then
5829 test -d "$1/.";
5830 else
5831 case $1 in
5832 -*)set "./$1";;
5833 esac;
5834 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5835 ???[sx]*):;;*)false;;esac;fi
5836 '\'' sh
5837 '
5838 fi
5839 as_executable_p=$as_test_x
5840
5841 # Sed expression to map a string onto a valid CPP name.
5842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5843
5844 # Sed expression to map a string onto a valid variable name.
5845 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5846
5847
5848 exec 6>&1
5849
5850 # Save the log message, to keep $[0] and so on meaningful, and to
5851 # report actual input values of CONFIG_FILES etc. instead of their
5852 # values after options handling.
5853 ac_log="
5854 This file was extended by C-INTERCAL $as_me 0.29, which was
5855 generated by GNU Autoconf 2.61. Invocation command line was
5856
5857 CONFIG_FILES = $CONFIG_FILES
5858 CONFIG_HEADERS = $CONFIG_HEADERS
5859 CONFIG_LINKS = $CONFIG_LINKS
5860 CONFIG_COMMANDS = $CONFIG_COMMANDS
5861 $ $0 $@
5862
5863 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5864 "
5865
5866 _ACEOF
5867
5868 cat >>$CONFIG_STATUS <<_ACEOF
5869 # Files that config.status was made for.
5870 config_files="$ac_config_files"
5871 config_headers="$ac_config_headers"
5872
5873 _ACEOF
5874
5875 cat >>$CONFIG_STATUS <<\_ACEOF
5876 ac_cs_usage="\
5877 \`$as_me' instantiates files from templates according to the
5878 current configuration.
5879
5880 Usage: $0 [OPTIONS] [FILE]...
5881
5882 -h, --help print this help, then exit
5883 -V, --version print version number and configuration settings, then exit
5884 -q, --quiet do not print progress messages
5885 -d, --debug don't remove temporary files
5886 --recheck update $as_me by reconfiguring in the same conditions
5887 --file=FILE[:TEMPLATE]
5888 instantiate the configuration file FILE
5889 --header=FILE[:TEMPLATE]
5890 instantiate the configuration header FILE
5891
5892 Configuration files:
5893 $config_files
5894
5895 Configuration headers:
5896 $config_headers
5897
5898 Report bugs to <bug-autoconf@gnu.org>."
5899
5900 _ACEOF
5901 cat >>$CONFIG_STATUS <<_ACEOF
5902 ac_cs_version="\\
5903 C-INTERCAL config.status 0.29
5904 configured by $0, generated by GNU Autoconf 2.61,
5905 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5906
5907 Copyright (C) 2006 Free Software Foundation, Inc.
5908 This config.status script is free software; the Free Software Foundation
5909 gives unlimited permission to copy, distribute and modify it."
5910
5911 ac_pwd='$ac_pwd'
5912 srcdir='$srcdir'
5913 _ACEOF
5914
5915 cat >>$CONFIG_STATUS <<\_ACEOF
5916 # If no file are specified by the user, then we need to provide default
5917 # value. By we need to know if files were specified by the user.
5918 ac_need_defaults=:
5919 while test $# != 0
5920 do
5921 case $1 in
5922 --*=*)
5923 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5924 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5925 ac_shift=:
5926 ;;
5927 *)
5928 ac_option=$1
5929 ac_optarg=$2
5930 ac_shift=shift
5931 ;;
5932 esac
5933
5934 case $ac_option in
5935 # Handling of the options.
5936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5937 ac_cs_recheck=: ;;
5938 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5939 echo "$ac_cs_version"; exit ;;
5940 --debug | --debu | --deb | --de | --d | -d )
5941 debug=: ;;
5942 --file | --fil | --fi | --f )
5943 $ac_shift
5944 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5945 ac_need_defaults=false;;
5946 --header | --heade | --head | --hea )
5947 $ac_shift
5948 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5949 ac_need_defaults=false;;
5950 --he | --h)
5951 # Conflict between --help and --header
5952 { echo "$as_me: error: ambiguous option: $1
5953 Try \`$0 --help' for more information." >&2
5954 { (exit 1); exit 1; }; };;
5955 --help | --hel | -h )
5956 echo "$ac_cs_usage"; exit ;;
5957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5958 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5959 ac_cs_silent=: ;;
5960
5961 # This is an error.
5962 -*) { echo "$as_me: error: unrecognized option: $1
5963 Try \`$0 --help' for more information." >&2
5964 { (exit 1); exit 1; }; } ;;
5965
5966 *) ac_config_targets="$ac_config_targets $1"
5967 ac_need_defaults=false ;;
5968
5969 esac
5970 shift
5971 done
5972
5973 ac_configure_extra_args=
5974
5975 if $ac_cs_silent; then
5976 exec 6>/dev/null
5977 ac_configure_extra_args="$ac_configure_extra_args --silent"
5978 fi
5979
5980 _ACEOF
5981 cat >>$CONFIG_STATUS <<_ACEOF
5982 if \$ac_cs_recheck; then
5983 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5984 CONFIG_SHELL=$SHELL
5985 export CONFIG_SHELL
5986 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5987 fi
5988
5989 _ACEOF
5990 cat >>$CONFIG_STATUS <<\_ACEOF
5991 exec 5>>config.log
5992 {
5993 echo
5994 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5995 ## Running $as_me. ##
5996 _ASBOX
5997 echo "$ac_log"
5998 } >&5
5999
6000 _ACEOF
6001 cat >>$CONFIG_STATUS <<_ACEOF
6002 _ACEOF
6003
6004 cat >>$CONFIG_STATUS <<\_ACEOF
6005
6006 # Handling of arguments.
6007 for ac_config_target in $ac_config_targets
6008 do
6009 case $ac_config_target in
6010 "bconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS bconfig.h:../src/bconfigh.in" ;;
6011 "host.mak") CONFIG_FILES="$CONFIG_FILES host.mak:hostmak.in" ;;
6012
6013 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6014 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6015 { (exit 1); exit 1; }; };;
6016 esac
6017 done
6018
6019
6020 # If the user did not use the arguments to specify the items to instantiate,
6021 # then the envvar interface is used. Set only those that are not.
6022 # We use the long form for the default assignment because of an extremely
6023 # bizarre bug on SunOS 4.1.3.
6024 if $ac_need_defaults; then
6025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6026 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6027 fi
6028
6029 # Have a temporary directory for convenience. Make it in the build tree
6030 # simply because there is no reason against having it here, and in addition,
6031 # creating and moving files from /tmp can sometimes cause problems.
6032 # Hook for its removal unless debugging.
6033 # Note that there is a small window in which the directory will not be cleaned:
6034 # after its creation but before its name has been assigned to `$tmp'.
6035 $debug ||
6036 {
6037 tmp=
6038 trap 'exit_status=$?
6039 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6040 ' 0
6041 trap '{ (exit 1); exit 1; }' 1 2 13 15
6042 }
6043 # Create a (secure) tmp directory for tmp files.
6044
6045 {
6046 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6047 test -n "$tmp" && test -d "$tmp"
6048 } ||
6049 {
6050 tmp=./conf$$-$RANDOM
6051 (umask 077 && mkdir "$tmp")
6052 } ||
6053 {
6054 echo "$me: cannot create a temporary directory in ." >&2
6055 { (exit 1); exit 1; }
6056 }
6057
6058 #
6059 # Set up the sed scripts for CONFIG_FILES section.
6060 #
6061
6062 # No need to generate the scripts if there are no CONFIG_FILES.
6063 # This happens for instance when ./config.status config.h
6064 if test -n "$CONFIG_FILES"; then
6065
6066 _ACEOF
6067
6068
6069
6070 ac_delim='%!_!# '
6071 for ac_last_try in false false false false false :; do
6072 cat >conf$$subs.sed <<_ACEOF
6073 SHELL!$SHELL$ac_delim
6074 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6075 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6076 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6077 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6078 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6079 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6080 exec_prefix!$exec_prefix$ac_delim
6081 prefix!$prefix$ac_delim
6082 program_transform_name!$program_transform_name$ac_delim
6083 bindir!$bindir$ac_delim
6084 sbindir!$sbindir$ac_delim
6085 libexecdir!$libexecdir$ac_delim
6086 datarootdir!$datarootdir$ac_delim
6087 datadir!$datadir$ac_delim
6088 sysconfdir!$sysconfdir$ac_delim
6089 sharedstatedir!$sharedstatedir$ac_delim
6090 localstatedir!$localstatedir$ac_delim
6091 includedir!$includedir$ac_delim
6092 oldincludedir!$oldincludedir$ac_delim
6093 docdir!$docdir$ac_delim
6094 infodir!$infodir$ac_delim
6095 htmldir!$htmldir$ac_delim
6096 dvidir!$dvidir$ac_delim
6097 pdfdir!$pdfdir$ac_delim
6098 psdir!$psdir$ac_delim
6099 libdir!$libdir$ac_delim
6100 localedir!$localedir$ac_delim
6101 mandir!$mandir$ac_delim
6102 DEFS!$DEFS$ac_delim
6103 ECHO_C!$ECHO_C$ac_delim
6104 ECHO_N!$ECHO_N$ac_delim
6105 ECHO_T!$ECHO_T$ac_delim
6106 LIBS!$LIBS$ac_delim
6107 build_alias!$build_alias$ac_delim
6108 host_alias!$host_alias$ac_delim
6109 target_alias!$target_alias$ac_delim
6110 YACC!$YACC$ac_delim
6111 YFLAGS!$YFLAGS$ac_delim
6112 CC!$CC$ac_delim
6113 CFLAGS!$CFLAGS$ac_delim
6114 LDFLAGS!$LDFLAGS$ac_delim
6115 CPPFLAGS!$CPPFLAGS$ac_delim
6116 ac_ct_CC!$ac_ct_CC$ac_delim
6117 EXEEXT!$EXEEXT$ac_delim
6118 OBJEXT!$OBJEXT$ac_delim
6119 LEX!$LEX$ac_delim
6120 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
6121 LEXLIB!$LEXLIB$ac_delim
6122 RANLIB!$RANLIB$ac_delim
6123 LN_S!$LN_S$ac_delim
6124 CPP!$CPP$ac_delim
6125 GREP!$GREP$ac_delim
6126 EGREP!$EGREP$ac_delim
6127 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
6128 LIBOBJS!$LIBOBJS$ac_delim
6129 LTLIBOBJS!$LTLIBOBJS$ac_delim
6130 _ACEOF
6131
6132 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
6133 break
6134 elif $ac_last_try; then
6135 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6136 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6137 { (exit 1); exit 1; }; }
6138 else
6139 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6140 fi
6141 done
6142
6143 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6144 if test -n "$ac_eof"; then
6145 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6146 ac_eof=`expr $ac_eof + 1`
6147 fi
6148
6149 cat >>$CONFIG_STATUS <<_ACEOF
6150 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6152 _ACEOF
6153 sed '
6154 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6155 s/^/s,@/; s/!/@,|#_!!_#|/
6156 :n
6157 t n
6158 s/'"$ac_delim"'$/,g/; t
6159 s/$/\\/; p
6160 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6161 ' >>$CONFIG_STATUS <conf$$subs.sed
6162 rm -f conf$$subs.sed
6163 cat >>$CONFIG_STATUS <<_ACEOF
6164 :end
6165 s/|#_!!_#|//g
6166 CEOF$ac_eof
6167 _ACEOF
6168
6169
6170 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6171 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6172 # trailing colons and then remove the whole line if VPATH becomes empty
6173 # (actually we leave an empty line to preserve line numbers).
6174 if test "x$srcdir" = x.; then
6175 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6176 s/:*\$(srcdir):*/:/
6177 s/:*\${srcdir}:*/:/
6178 s/:*@srcdir@:*/:/
6179 s/^\([^=]*=[ ]*\):*/\1/
6180 s/:*$//
6181 s/^[^=]*=[ ]*$//
6182 }'
6183 fi
6184
6185 cat >>$CONFIG_STATUS <<\_ACEOF
6186 fi # test -n "$CONFIG_FILES"
6187
6188
6189 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6190 do
6191 case $ac_tag in
6192 :[FHLC]) ac_mode=$ac_tag; continue;;
6193 esac
6194 case $ac_mode$ac_tag in
6195 :[FHL]*:*);;
6196 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6197 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6198 { (exit 1); exit 1; }; };;
6199 :[FH]-) ac_tag=-:-;;
6200 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6201 esac
6202 ac_save_IFS=$IFS
6203 IFS=:
6204 set x $ac_tag
6205 IFS=$ac_save_IFS
6206 shift
6207 ac_file=$1
6208 shift
6209
6210 case $ac_mode in
6211 :L) ac_source=$1;;
6212 :[FH])
6213 ac_file_inputs=
6214 for ac_f
6215 do
6216 case $ac_f in
6217 -) ac_f="$tmp/stdin";;
6218 *) # Look for the file first in the build tree, then in the source tree
6219 # (if the path is not absolute). The absolute path cannot be DOS-style,
6220 # because $ac_f cannot contain `:'.
6221 test -f "$ac_f" ||
6222 case $ac_f in
6223 [\\/$]*) false;;
6224 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6225 esac ||
6226 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6227 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6228 { (exit 1); exit 1; }; };;
6229 esac
6230 ac_file_inputs="$ac_file_inputs $ac_f"
6231 done
6232
6233 # Let's still pretend it is `configure' which instantiates (i.e., don't
6234 # use $as_me), people would be surprised to read:
6235 # /* config.h. Generated by config.status. */
6236 configure_input="Generated from "`IFS=:
6237 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6238 if test x"$ac_file" != x-; then
6239 configure_input="$ac_file. $configure_input"
6240 { echo "$as_me:$LINENO: creating $ac_file" >&5
6241 echo "$as_me: creating $ac_file" >&6;}
6242 fi
6243
6244 case $ac_tag in
6245 *:-:* | *:-) cat >"$tmp/stdin";;
6246 esac
6247 ;;
6248 esac
6249
6250 ac_dir=`$as_dirname -- "$ac_file" ||
6251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6252 X"$ac_file" : 'X\(//\)[^/]' \| \
6253 X"$ac_file" : 'X\(//\)$' \| \
6254 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6255 echo X"$ac_file" |
6256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6257 s//\1/
6258 q
6259 }
6260 /^X\(\/\/\)[^/].*/{
6261 s//\1/
6262 q
6263 }
6264 /^X\(\/\/\)$/{
6265 s//\1/
6266 q
6267 }
6268 /^X\(\/\).*/{
6269 s//\1/
6270 q
6271 }
6272 s/.*/./; q'`
6273 { as_dir="$ac_dir"
6274 case $as_dir in #(
6275 -*) as_dir=./$as_dir;;
6276 esac
6277 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6278 as_dirs=
6279 while :; do
6280 case $as_dir in #(
6281 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6282 *) as_qdir=$as_dir;;
6283 esac
6284 as_dirs="'$as_qdir' $as_dirs"
6285 as_dir=`$as_dirname -- "$as_dir" ||
6286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6287 X"$as_dir" : 'X\(//\)[^/]' \| \
6288 X"$as_dir" : 'X\(//\)$' \| \
6289 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6290 echo X"$as_dir" |
6291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6292 s//\1/
6293 q
6294 }
6295 /^X\(\/\/\)[^/].*/{
6296 s//\1/
6297 q
6298 }
6299 /^X\(\/\/\)$/{
6300 s//\1/
6301 q
6302 }
6303 /^X\(\/\).*/{
6304 s//\1/
6305 q
6306 }
6307 s/.*/./; q'`
6308 test -d "$as_dir" && break
6309 done
6310 test -z "$as_dirs" || eval "mkdir $as_dirs"
6311 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6312 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6313 { (exit 1); exit 1; }; }; }
6314 ac_builddir=.
6315
6316 case "$ac_dir" in
6317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6318 *)
6319 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6320 # A ".." for each directory in $ac_dir_suffix.
6321 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6322 case $ac_top_builddir_sub in
6323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6325 esac ;;
6326 esac
6327 ac_abs_top_builddir=$ac_pwd
6328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6329 # for backward compatibility:
6330 ac_top_builddir=$ac_top_build_prefix
6331
6332 case $srcdir in
6333 .) # We are building in place.
6334 ac_srcdir=.
6335 ac_top_srcdir=$ac_top_builddir_sub
6336 ac_abs_top_srcdir=$ac_pwd ;;
6337 [\\/]* | ?:[\\/]* ) # Absolute name.
6338 ac_srcdir=$srcdir$ac_dir_suffix;
6339 ac_top_srcdir=$srcdir
6340 ac_abs_top_srcdir=$srcdir ;;
6341 *) # Relative name.
6342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6343 ac_top_srcdir=$ac_top_build_prefix$srcdir
6344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6345 esac
6346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6347
6348
6349 case $ac_mode in
6350 :F)
6351 #
6352 # CONFIG_FILE
6353 #
6354
6355 _ACEOF
6356
6357 cat >>$CONFIG_STATUS <<\_ACEOF
6358 # If the template does not know about datarootdir, expand it.
6359 # FIXME: This hack should be removed a few years after 2.60.
6360 ac_datarootdir_hack=; ac_datarootdir_seen=
6361
6362 case `sed -n '/datarootdir/ {
6363 p
6364 q
6365 }
6366 /@datadir@/p
6367 /@docdir@/p
6368 /@infodir@/p
6369 /@localedir@/p
6370 /@mandir@/p
6371 ' $ac_file_inputs` in
6372 *datarootdir*) ac_datarootdir_seen=yes;;
6373 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6374 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6375 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6376 _ACEOF
6377 cat >>$CONFIG_STATUS <<_ACEOF
6378 ac_datarootdir_hack='
6379 s&@datadir@&$datadir&g
6380 s&@docdir@&$docdir&g
6381 s&@infodir@&$infodir&g
6382 s&@localedir@&$localedir&g
6383 s&@mandir@&$mandir&g
6384 s&\\\${datarootdir}&$datarootdir&g' ;;
6385 esac
6386 _ACEOF
6387
6388 # Neutralize VPATH when `$srcdir' = `.'.
6389 # Shell code in configure.ac might set extrasub.
6390 # FIXME: do we really want to maintain this feature?
6391 cat >>$CONFIG_STATUS <<_ACEOF
6392 sed "$ac_vpsub
6393 $extrasub
6394 _ACEOF
6395 cat >>$CONFIG_STATUS <<\_ACEOF
6396 :t
6397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6398 s&@configure_input@&$configure_input&;t t
6399 s&@top_builddir@&$ac_top_builddir_sub&;t t
6400 s&@srcdir@&$ac_srcdir&;t t
6401 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6402 s&@top_srcdir@&$ac_top_srcdir&;t t
6403 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6404 s&@builddir@&$ac_builddir&;t t
6405 s&@abs_builddir@&$ac_abs_builddir&;t t
6406 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6407 $ac_datarootdir_hack
6408 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6409
6410 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6411 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6412 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6413 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6414 which seems to be undefined. Please make sure it is defined." >&5
6415 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6416 which seems to be undefined. Please make sure it is defined." >&2;}
6417
6418 rm -f "$tmp/stdin"
6419 case $ac_file in
6420 -) cat "$tmp/out"; rm -f "$tmp/out";;
6421 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6422 esac
6423 ;;
6424 :H)
6425 #
6426 # CONFIG_HEADER
6427 #
6428 _ACEOF
6429
6430 # Transform confdefs.h into a sed script `conftest.defines', that
6431 # substitutes the proper values into config.h.in to produce config.h.
6432 rm -f conftest.defines conftest.tail
6433 # First, append a space to every undef/define line, to ease matching.
6434 echo 's/$/ /' >conftest.defines
6435 # Then, protect against being on the right side of a sed subst, or in
6436 # an unquoted here document, in config.status. If some macros were
6437 # called several times there might be several #defines for the same
6438 # symbol, which is useless. But do not sort them, since the last
6439 # AC_DEFINE must be honored.
6440 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6441 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6442 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6443 # PARAMS is the parameter list in the macro definition--in most cases, it's
6444 # just an empty string.
6445 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6446 ac_dB='\\)[ (].*,\\1define\\2'
6447 ac_dC=' '
6448 ac_dD=' ,'
6449
6450 uniq confdefs.h |
6451 sed -n '
6452 t rset
6453 :rset
6454 s/^[ ]*#[ ]*define[ ][ ]*//
6455 t ok
6456 d
6457 :ok
6458 s/[\\&,]/\\&/g
6459 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6460 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6461 ' >>conftest.defines
6462
6463 # Remove the space that was appended to ease matching.
6464 # Then replace #undef with comments. This is necessary, for
6465 # example, in the case of _POSIX_SOURCE, which is predefined and required
6466 # on some systems where configure will not decide to define it.
6467 # (The regexp can be short, since the line contains either #define or #undef.)
6468 echo 's/ $//
6469 s,^[ #]*u.*,/* & */,' >>conftest.defines
6470
6471 # Break up conftest.defines:
6472 ac_max_sed_lines=50
6473
6474 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6475 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6476 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6477 # et cetera.
6478 ac_in='$ac_file_inputs'
6479 ac_out='"$tmp/out1"'
6480 ac_nxt='"$tmp/out2"'
6481
6482 while :
6483 do
6484 # Write a here document:
6485 cat >>$CONFIG_STATUS <<_ACEOF
6486 # First, check the format of the line:
6487 cat >"\$tmp/defines.sed" <<\\CEOF
6488 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6489 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6490 b
6491 :def
6492 _ACEOF
6493 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6494 echo 'CEOF
6495 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6496 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6497 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6498 grep . conftest.tail >/dev/null || break
6499 rm -f conftest.defines
6500 mv conftest.tail conftest.defines
6501 done
6502 rm -f conftest.defines conftest.tail
6503
6504 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6505 cat >>$CONFIG_STATUS <<\_ACEOF
6506 if test x"$ac_file" != x-; then
6507 echo "/* $configure_input */" >"$tmp/config.h"
6508 cat "$ac_result" >>"$tmp/config.h"
6509 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6510 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6511 echo "$as_me: $ac_file is unchanged" >&6;}
6512 else
6513 rm -f $ac_file
6514 mv "$tmp/config.h" $ac_file
6515 fi
6516 else
6517 echo "/* $configure_input */"
6518 cat "$ac_result"
6519 fi
6520 rm -f "$tmp/out12"
6521 # Compute $ac_file's index in $config_headers.
6522 _am_arg=$ac_file
6523 _am_stamp_count=1
6524 for _am_header in $config_headers :; do
6525 case $_am_header in
6526 $_am_arg | $_am_arg:* )
6527 break ;;
6528 * )
6529 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6530 esac
6531 done
6532 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6533 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6534 X"$_am_arg" : 'X\(//\)[^/]' \| \
6535 X"$_am_arg" : 'X\(//\)$' \| \
6536 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6537 echo X"$_am_arg" |
6538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6539 s//\1/
6540 q
6541 }
6542 /^X\(\/\/\)[^/].*/{
6543 s//\1/
6544 q
6545 }
6546 /^X\(\/\/\)$/{
6547 s//\1/
6548 q
6549 }
6550 /^X\(\/\).*/{
6551 s//\1/
6552 q
6553 }
6554 s/.*/./; q'`/stamp-h$_am_stamp_count
6555 ;;
6556
6557
6558 esac
6559
6560 done # for ac_tag
6561
6562
6563 { (exit 0); exit 0; }
6564 _ACEOF
6565 chmod +x $CONFIG_STATUS
6566 ac_clean_files=$ac_clean_files_save
6567
6568
6569 # configure is writing to config.log, and then calls config.status.
6570 # config.status does its own redirection, appending to config.log.
6571 # Unfortunately, on DOS this fails, as config.log is still kept open
6572 # by configure, so config.status won't be able to write to it; its
6573 # output is simply discarded. So we exec the FD to /dev/null,
6574 # effectively closing config.log, so it can be properly (re)opened and
6575 # appended to by config.status. When coming back to configure, we
6576 # need to make the FD available again.
6577 if test "$no_create" != yes; then
6578 ac_cs_success=:
6579 ac_config_status_args=
6580 test "$silent" = yes &&
6581 ac_config_status_args="$ac_config_status_args --quiet"
6582 exec 5>/dev/null
6583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6584 exec 5>>config.log
6585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6586 # would make configure fail if this is the last instruction.
6587 $ac_cs_success || { (exit 1); exit 1; }
6588 fi
6589