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