Debian Codegraph @

buildaux/buildconfig

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