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