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