Debian Codegraph @

configure

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