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