Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / bsd / less / dist / configure
blobe401d588b8d73e5bc999fad696aad481face39b5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for less 1.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME='less'
559 PACKAGE_TARNAME='less'
560 PACKAGE_VERSION='1'
561 PACKAGE_STRING='less 1'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
565 ac_unique_file="forwback.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_subst_vars='LTLIBOBJS
603 LIBOBJS
604 REGEX_O
605 INSTALL_DATA
606 INSTALL_SCRIPT
607 INSTALL_PROGRAM
608 EGREP
609 GREP
611 OBJEXT
612 EXEEXT
613 ac_ct_CC
614 CPPFLAGS
615 LDFLAGS
616 CFLAGS
618 target_alias
619 host_alias
620 build_alias
621 LIBS
622 ECHO_T
623 ECHO_N
624 ECHO_C
625 DEFS
626 mandir
627 localedir
628 libdir
629 psdir
630 pdfdir
631 dvidir
632 htmldir
633 infodir
634 docdir
635 oldincludedir
636 includedir
637 localstatedir
638 sharedstatedir
639 sysconfdir
640 datadir
641 datarootdir
642 libexecdir
643 sbindir
644 bindir
645 program_transform_name
646 prefix
647 exec_prefix
648 PACKAGE_URL
649 PACKAGE_BUGREPORT
650 PACKAGE_STRING
651 PACKAGE_VERSION
652 PACKAGE_TARNAME
653 PACKAGE_NAME
654 PATH_SEPARATOR
655 SHELL'
656 ac_subst_files=''
657 ac_user_opts='
658 enable_option_checking
659 enable_largefile
660 with_secure
661 with_no_float
662 with_regex
663 with_editor
665 ac_precious_vars='build_alias
666 host_alias
667 target_alias
669 CFLAGS
670 LDFLAGS
671 LIBS
672 CPPFLAGS
673 CPP'
676 # Initialize some variables set by options.
677 ac_init_help=
678 ac_init_version=false
679 ac_unrecognized_opts=
680 ac_unrecognized_sep=
681 # The variables have the same names as the options, with
682 # dashes changed to underlines.
683 cache_file=/dev/null
684 exec_prefix=NONE
685 no_create=
686 no_recursion=
687 prefix=NONE
688 program_prefix=NONE
689 program_suffix=NONE
690 program_transform_name=s,x,x,
691 silent=
692 site=
693 srcdir=
694 verbose=
695 x_includes=NONE
696 x_libraries=NONE
698 # Installation directory options.
699 # These are left unexpanded so users can "make install exec_prefix=/foo"
700 # and all the variables that are supposed to be based on exec_prefix
701 # by default will actually change.
702 # Use braces instead of parens because sh, perl, etc. also accept them.
703 # (The list follows the same order as the GNU Coding Standards.)
704 bindir='${exec_prefix}/bin'
705 sbindir='${exec_prefix}/sbin'
706 libexecdir='${exec_prefix}/libexec'
707 datarootdir='${prefix}/share'
708 datadir='${datarootdir}'
709 sysconfdir='${prefix}/etc'
710 sharedstatedir='${prefix}/com'
711 localstatedir='${prefix}/var'
712 includedir='${prefix}/include'
713 oldincludedir='/usr/include'
714 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
715 infodir='${datarootdir}/info'
716 htmldir='${docdir}'
717 dvidir='${docdir}'
718 pdfdir='${docdir}'
719 psdir='${docdir}'
720 libdir='${exec_prefix}/lib'
721 localedir='${datarootdir}/locale'
722 mandir='${datarootdir}/man'
724 ac_prev=
725 ac_dashdash=
726 for ac_option
728 # If the previous option needs an argument, assign it.
729 if test -n "$ac_prev"; then
730 eval $ac_prev=\$ac_option
731 ac_prev=
732 continue
735 case $ac_option in
736 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
737 *=) ac_optarg= ;;
738 *) ac_optarg=yes ;;
739 esac
741 # Accept the important Cygnus configure options, so we can diagnose typos.
743 case $ac_dashdash$ac_option in
745 ac_dashdash=yes ;;
747 -bindir | --bindir | --bindi | --bind | --bin | --bi)
748 ac_prev=bindir ;;
749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
750 bindir=$ac_optarg ;;
752 -build | --build | --buil | --bui | --bu)
753 ac_prev=build_alias ;;
754 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
755 build_alias=$ac_optarg ;;
757 -cache-file | --cache-file | --cache-fil | --cache-fi \
758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
759 ac_prev=cache_file ;;
760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
762 cache_file=$ac_optarg ;;
764 --config-cache | -C)
765 cache_file=config.cache ;;
767 -datadir | --datadir | --datadi | --datad)
768 ac_prev=datadir ;;
769 -datadir=* | --datadir=* | --datadi=* | --datad=*)
770 datadir=$ac_optarg ;;
772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
773 | --dataroo | --dataro | --datar)
774 ac_prev=datarootdir ;;
775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
777 datarootdir=$ac_optarg ;;
779 -disable-* | --disable-*)
780 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
783 as_fn_error $? "invalid feature name: $ac_useropt"
784 ac_useropt_orig=$ac_useropt
785 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
786 case $ac_user_opts in
788 "enable_$ac_useropt"
789 "*) ;;
790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
791 ac_unrecognized_sep=', ';;
792 esac
793 eval enable_$ac_useropt=no ;;
795 -docdir | --docdir | --docdi | --doc | --do)
796 ac_prev=docdir ;;
797 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
798 docdir=$ac_optarg ;;
800 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
801 ac_prev=dvidir ;;
802 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
803 dvidir=$ac_optarg ;;
805 -enable-* | --enable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error $? "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
814 "enable_$ac_useropt"
815 "*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=\$ac_optarg ;;
821 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
822 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
823 | --exec | --exe | --ex)
824 ac_prev=exec_prefix ;;
825 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
826 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
827 | --exec=* | --exe=* | --ex=*)
828 exec_prefix=$ac_optarg ;;
830 -gas | --gas | --ga | --g)
831 # Obsolete; use --with-gas.
832 with_gas=yes ;;
834 -help | --help | --hel | --he | -h)
835 ac_init_help=long ;;
836 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
837 ac_init_help=recursive ;;
838 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
839 ac_init_help=short ;;
841 -host | --host | --hos | --ho)
842 ac_prev=host_alias ;;
843 -host=* | --host=* | --hos=* | --ho=*)
844 host_alias=$ac_optarg ;;
846 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
847 ac_prev=htmldir ;;
848 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
849 | --ht=*)
850 htmldir=$ac_optarg ;;
852 -includedir | --includedir | --includedi | --included | --include \
853 | --includ | --inclu | --incl | --inc)
854 ac_prev=includedir ;;
855 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
856 | --includ=* | --inclu=* | --incl=* | --inc=*)
857 includedir=$ac_optarg ;;
859 -infodir | --infodir | --infodi | --infod | --info | --inf)
860 ac_prev=infodir ;;
861 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
862 infodir=$ac_optarg ;;
864 -libdir | --libdir | --libdi | --libd)
865 ac_prev=libdir ;;
866 -libdir=* | --libdir=* | --libdi=* | --libd=*)
867 libdir=$ac_optarg ;;
869 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
870 | --libexe | --libex | --libe)
871 ac_prev=libexecdir ;;
872 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
873 | --libexe=* | --libex=* | --libe=*)
874 libexecdir=$ac_optarg ;;
876 -localedir | --localedir | --localedi | --localed | --locale)
877 ac_prev=localedir ;;
878 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
879 localedir=$ac_optarg ;;
881 -localstatedir | --localstatedir | --localstatedi | --localstated \
882 | --localstate | --localstat | --localsta | --localst | --locals)
883 ac_prev=localstatedir ;;
884 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
885 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
886 localstatedir=$ac_optarg ;;
888 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
889 ac_prev=mandir ;;
890 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
891 mandir=$ac_optarg ;;
893 -nfp | --nfp | --nf)
894 # Obsolete; use --without-fp.
895 with_fp=no ;;
897 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
898 | --no-cr | --no-c | -n)
899 no_create=yes ;;
901 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
902 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
903 no_recursion=yes ;;
905 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
906 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
907 | --oldin | --oldi | --old | --ol | --o)
908 ac_prev=oldincludedir ;;
909 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
910 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
911 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
912 oldincludedir=$ac_optarg ;;
914 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
915 ac_prev=prefix ;;
916 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
917 prefix=$ac_optarg ;;
919 -program-prefix | --program-prefix | --program-prefi | --program-pref \
920 | --program-pre | --program-pr | --program-p)
921 ac_prev=program_prefix ;;
922 -program-prefix=* | --program-prefix=* | --program-prefi=* \
923 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
924 program_prefix=$ac_optarg ;;
926 -program-suffix | --program-suffix | --program-suffi | --program-suff \
927 | --program-suf | --program-su | --program-s)
928 ac_prev=program_suffix ;;
929 -program-suffix=* | --program-suffix=* | --program-suffi=* \
930 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
931 program_suffix=$ac_optarg ;;
933 -program-transform-name | --program-transform-name \
934 | --program-transform-nam | --program-transform-na \
935 | --program-transform-n | --program-transform- \
936 | --program-transform | --program-transfor \
937 | --program-transfo | --program-transf \
938 | --program-trans | --program-tran \
939 | --progr-tra | --program-tr | --program-t)
940 ac_prev=program_transform_name ;;
941 -program-transform-name=* | --program-transform-name=* \
942 | --program-transform-nam=* | --program-transform-na=* \
943 | --program-transform-n=* | --program-transform-=* \
944 | --program-transform=* | --program-transfor=* \
945 | --program-transfo=* | --program-transf=* \
946 | --program-trans=* | --program-tran=* \
947 | --progr-tra=* | --program-tr=* | --program-t=*)
948 program_transform_name=$ac_optarg ;;
950 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
951 ac_prev=pdfdir ;;
952 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
953 pdfdir=$ac_optarg ;;
955 -psdir | --psdir | --psdi | --psd | --ps)
956 ac_prev=psdir ;;
957 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
958 psdir=$ac_optarg ;;
960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
961 | -silent | --silent | --silen | --sile | --sil)
962 silent=yes ;;
964 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
965 ac_prev=sbindir ;;
966 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
967 | --sbi=* | --sb=*)
968 sbindir=$ac_optarg ;;
970 -sharedstatedir | --sharedstatedir | --sharedstatedi \
971 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
972 | --sharedst | --shareds | --shared | --share | --shar \
973 | --sha | --sh)
974 ac_prev=sharedstatedir ;;
975 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
976 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
977 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
978 | --sha=* | --sh=*)
979 sharedstatedir=$ac_optarg ;;
981 -site | --site | --sit)
982 ac_prev=site ;;
983 -site=* | --site=* | --sit=*)
984 site=$ac_optarg ;;
986 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
987 ac_prev=srcdir ;;
988 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
989 srcdir=$ac_optarg ;;
991 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
992 | --syscon | --sysco | --sysc | --sys | --sy)
993 ac_prev=sysconfdir ;;
994 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
995 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
996 sysconfdir=$ac_optarg ;;
998 -target | --target | --targe | --targ | --tar | --ta | --t)
999 ac_prev=target_alias ;;
1000 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1001 target_alias=$ac_optarg ;;
1003 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1004 verbose=yes ;;
1006 -version | --version | --versio | --versi | --vers | -V)
1007 ac_init_version=: ;;
1009 -with-* | --with-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid package name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "with_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval with_$ac_useropt=\$ac_optarg ;;
1025 -without-* | --without-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid package name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "with_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval with_$ac_useropt=no ;;
1041 --x)
1042 # Obsolete; use --with-x.
1043 with_x=yes ;;
1045 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1046 | --x-incl | --x-inc | --x-in | --x-i)
1047 ac_prev=x_includes ;;
1048 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1049 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1050 x_includes=$ac_optarg ;;
1052 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1053 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1054 ac_prev=x_libraries ;;
1055 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1056 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1057 x_libraries=$ac_optarg ;;
1059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1060 Try \`$0 --help' for more information"
1063 *=*)
1064 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1065 # Reject names that are not valid shell variable names.
1066 case $ac_envvar in #(
1067 '' | [0-9]* | *[!_$as_cr_alnum]* )
1068 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1069 esac
1070 eval $ac_envvar=\$ac_optarg
1071 export $ac_envvar ;;
1074 # FIXME: should be removed in autoconf 3.0.
1075 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1078 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1081 esac
1082 done
1084 if test -n "$ac_prev"; then
1085 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1086 as_fn_error $? "missing argument to $ac_option"
1089 if test -n "$ac_unrecognized_opts"; then
1090 case $enable_option_checking in
1091 no) ;;
1092 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1093 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1094 esac
1097 # Check all directory arguments for consistency.
1098 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1099 datadir sysconfdir sharedstatedir localstatedir includedir \
1100 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1101 libdir localedir mandir
1103 eval ac_val=\$$ac_var
1104 # Remove trailing slashes.
1105 case $ac_val in
1106 */ )
1107 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1108 eval $ac_var=\$ac_val;;
1109 esac
1110 # Be sure to have absolute directory names.
1111 case $ac_val in
1112 [\\/$]* | ?:[\\/]* ) continue;;
1113 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1114 esac
1115 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1116 done
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1121 build=$build_alias
1122 host=$host_alias
1123 target=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1129 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used" >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1132 cross_compiling=yes
1136 ac_tool_prefix=
1137 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1139 test "$silent" = yes && exec 6>/dev/null
1142 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di=`ls -di .` &&
1144 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145 as_fn_error $? "working directory cannot be determined"
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 as_fn_error $? "pwd does not report name of working directory"
1150 # Find the source files, if location was not specified.
1151 if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$as_myself" ||
1155 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$as_myself" : 'X\(//\)[^/]' \| \
1157 X"$as_myself" : 'X\(//\)$' \| \
1158 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1159 $as_echo X"$as_myself" |
1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 s//\1/
1164 /^X\(\/\/\)[^/].*/{
1165 s//\1/
1168 /^X\(\/\/\)$/{
1169 s//\1/
1172 /^X\(\/\).*/{
1173 s//\1/
1176 s/.*/./; q'`
1177 srcdir=$ac_confdir
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 srcdir=..
1181 else
1182 ac_srcdir_defaulted=no
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1188 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189 ac_abs_confdir=`(
1190 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1191 pwd)`
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
1194 srcdir=.
1196 # Remove unnecessary trailing slashes from srcdir.
1197 # Double slashes in file names in object file debugging info
1198 # mess up M-x gdb in Emacs.
1199 case $srcdir in
1200 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1201 esac
1202 for ac_var in $ac_precious_vars; do
1203 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_env_${ac_var}_value=\$${ac_var}
1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 done
1210 # Report the --help message.
1212 if test "$ac_init_help" = "long"; then
1213 # Omit some internal or obsolete options to make the list less imposing.
1214 # This message is too long to be a string in the A/UX 3.1 sh.
1215 cat <<_ACEOF
1216 \`configure' configures less 1 to adapt to many kinds of systems.
1218 Usage: $0 [OPTION]... [VAR=VALUE]...
1220 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221 VAR=VALUE. See below for descriptions of some of the useful variables.
1223 Defaults for the options are specified in brackets.
1225 Configuration:
1226 -h, --help display this help and exit
1227 --help=short display options specific to this package
1228 --help=recursive display the short help of all the included packages
1229 -V, --version display version information and exit
1230 -q, --quiet, --silent do not print \`checking ...' messages
1231 --cache-file=FILE cache test results in FILE [disabled]
1232 -C, --config-cache alias for \`--cache-file=config.cache'
1233 -n, --no-create do not create output files
1234 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236 Installation directories:
1237 --prefix=PREFIX install architecture-independent files in PREFIX
1238 [$ac_default_prefix]
1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1240 [PREFIX]
1242 By default, \`make install' will install all the files in
1243 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245 for instance \`--prefix=\$HOME'.
1247 For better control, use the options below.
1249 Fine tuning of the installation directories:
1250 --bindir=DIR user executables [EPREFIX/bin]
1251 --sbindir=DIR system admin executables [EPREFIX/sbin]
1252 --libexecdir=DIR program executables [EPREFIX/libexec]
1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256 --libdir=DIR object code libraries [EPREFIX/lib]
1257 --includedir=DIR C header files [PREFIX/include]
1258 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1261 --infodir=DIR info documentation [DATAROOTDIR/info]
1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1263 --mandir=DIR man documentation [DATAROOTDIR/man]
1264 --docdir=DIR documentation root [DATAROOTDIR/doc/less]
1265 --htmldir=DIR html documentation [DOCDIR]
1266 --dvidir=DIR dvi documentation [DOCDIR]
1267 --pdfdir=DIR pdf documentation [DOCDIR]
1268 --psdir=DIR ps documentation [DOCDIR]
1269 _ACEOF
1271 cat <<\_ACEOF
1272 _ACEOF
1275 if test -n "$ac_init_help"; then
1276 case $ac_init_help in
1277 short | recursive ) echo "Configuration of less 1:";;
1278 esac
1279 cat <<\_ACEOF
1281 Optional Features:
1282 --disable-option-checking ignore unrecognized --enable/--with options
1283 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1284 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1285 --disable-largefile omit support for large files
1287 Optional Packages:
1288 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1289 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1290 --with-secure Compile in secure mode
1291 --with-no-float Do not use floating point
1292 --with-regex={auto,gnu,pcre,posix,regcmp,re_comp,regcomp,regcomp-local,none} Select a regular expression library auto
1293 --with-editor=PROGRAM use PROGRAM as the default editor vi
1295 Some influential environment variables:
1296 CC C compiler command
1297 CFLAGS C compiler flags
1298 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1299 nonstandard directory <lib dir>
1300 LIBS libraries to pass to the linker, e.g. -l<library>
1301 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1302 you have headers in a nonstandard directory <include dir>
1303 CPP C preprocessor
1305 Use these variables to override the choices made by `configure' or to help
1306 it to find libraries and programs with nonstandard names/locations.
1308 Report bugs to the package provider.
1309 _ACEOF
1310 ac_status=$?
1313 if test "$ac_init_help" = "recursive"; then
1314 # If there are subdirs, report their specific --help.
1315 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1316 test -d "$ac_dir" ||
1317 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1318 continue
1319 ac_builddir=.
1321 case "$ac_dir" in
1322 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1324 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1325 # A ".." for each directory in $ac_dir_suffix.
1326 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1327 case $ac_top_builddir_sub in
1328 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1330 esac ;;
1331 esac
1332 ac_abs_top_builddir=$ac_pwd
1333 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1334 # for backward compatibility:
1335 ac_top_builddir=$ac_top_build_prefix
1337 case $srcdir in
1338 .) # We are building in place.
1339 ac_srcdir=.
1340 ac_top_srcdir=$ac_top_builddir_sub
1341 ac_abs_top_srcdir=$ac_pwd ;;
1342 [\\/]* | ?:[\\/]* ) # Absolute name.
1343 ac_srcdir=$srcdir$ac_dir_suffix;
1344 ac_top_srcdir=$srcdir
1345 ac_abs_top_srcdir=$srcdir ;;
1346 *) # Relative name.
1347 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1348 ac_top_srcdir=$ac_top_build_prefix$srcdir
1349 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1350 esac
1351 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1353 cd "$ac_dir" || { ac_status=$?; continue; }
1354 # Check for guested configure.
1355 if test -f "$ac_srcdir/configure.gnu"; then
1356 echo &&
1357 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1358 elif test -f "$ac_srcdir/configure"; then
1359 echo &&
1360 $SHELL "$ac_srcdir/configure" --help=recursive
1361 else
1362 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1363 fi || ac_status=$?
1364 cd "$ac_pwd" || { ac_status=$?; break; }
1365 done
1368 test -n "$ac_init_help" && exit $ac_status
1369 if $ac_init_version; then
1370 cat <<\_ACEOF
1371 less configure 1
1372 generated by GNU Autoconf 2.68
1374 Copyright (C) 2010 Free Software Foundation, Inc.
1375 This configure script is free software; the Free Software Foundation
1376 gives unlimited permission to copy, distribute and modify it.
1377 _ACEOF
1378 exit
1381 ## ------------------------ ##
1382 ## Autoconf initialization. ##
1383 ## ------------------------ ##
1385 # ac_fn_c_try_compile LINENO
1386 # --------------------------
1387 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1388 ac_fn_c_try_compile ()
1390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1391 rm -f conftest.$ac_objext
1392 if { { ac_try="$ac_compile"
1393 case "(($ac_try" in
1394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1395 *) ac_try_echo=$ac_try;;
1396 esac
1397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1398 $as_echo "$ac_try_echo"; } >&5
1399 (eval "$ac_compile") 2>conftest.err
1400 ac_status=$?
1401 if test -s conftest.err; then
1402 grep -v '^ *+' conftest.err >conftest.er1
1403 cat conftest.er1 >&5
1404 mv -f conftest.er1 conftest.err
1406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1407 test $ac_status = 0; } && {
1408 test -z "$ac_c_werror_flag" ||
1409 test ! -s conftest.err
1410 } && test -s conftest.$ac_objext; then :
1411 ac_retval=0
1412 else
1413 $as_echo "$as_me: failed program was:" >&5
1414 sed 's/^/| /' conftest.$ac_ext >&5
1416 ac_retval=1
1418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1419 as_fn_set_status $ac_retval
1421 } # ac_fn_c_try_compile
1423 # ac_fn_c_try_link LINENO
1424 # -----------------------
1425 # Try to link conftest.$ac_ext, and return whether this succeeded.
1426 ac_fn_c_try_link ()
1428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1429 rm -f conftest.$ac_objext conftest$ac_exeext
1430 if { { ac_try="$ac_link"
1431 case "(($ac_try" in
1432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1433 *) ac_try_echo=$ac_try;;
1434 esac
1435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1436 $as_echo "$ac_try_echo"; } >&5
1437 (eval "$ac_link") 2>conftest.err
1438 ac_status=$?
1439 if test -s conftest.err; then
1440 grep -v '^ *+' conftest.err >conftest.er1
1441 cat conftest.er1 >&5
1442 mv -f conftest.er1 conftest.err
1444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1445 test $ac_status = 0; } && {
1446 test -z "$ac_c_werror_flag" ||
1447 test ! -s conftest.err
1448 } && test -s conftest$ac_exeext && {
1449 test "$cross_compiling" = yes ||
1450 $as_test_x conftest$ac_exeext
1451 }; then :
1452 ac_retval=0
1453 else
1454 $as_echo "$as_me: failed program was:" >&5
1455 sed 's/^/| /' conftest.$ac_ext >&5
1457 ac_retval=1
1459 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1460 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1461 # interfere with the next link command; also delete a directory that is
1462 # left behind by Apple's compiler. We do this before executing the actions.
1463 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1465 as_fn_set_status $ac_retval
1467 } # ac_fn_c_try_link
1469 # ac_fn_c_try_cpp LINENO
1470 # ----------------------
1471 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1472 ac_fn_c_try_cpp ()
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 if { { ac_try="$ac_cpp conftest.$ac_ext"
1476 case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479 esac
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1483 ac_status=$?
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } > conftest.i && {
1491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1493 }; then :
1494 ac_retval=0
1495 else
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1499 ac_retval=1
1501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502 as_fn_set_status $ac_retval
1504 } # ac_fn_c_try_cpp
1506 # ac_fn_c_try_run LINENO
1507 # ----------------------
1508 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1509 # that executables *can* be run.
1510 ac_fn_c_try_run ()
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 if { { ac_try="$ac_link"
1514 case "(($ac_try" in
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1517 esac
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_link") 2>&5
1521 ac_status=$?
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1524 { { case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_try") 2>&5
1531 ac_status=$?
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; }; }; then :
1534 ac_retval=0
1535 else
1536 $as_echo "$as_me: program exited with status $ac_status" >&5
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1540 ac_retval=$ac_status
1542 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1546 } # ac_fn_c_try_run
1548 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1549 # -------------------------------------------------------
1550 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1551 # the include files in INCLUDES and setting the cache variable VAR
1552 # accordingly.
1553 ac_fn_c_check_header_mongrel ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 if eval \${$3+:} false; then :
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1558 $as_echo_n "checking for $2... " >&6; }
1559 if eval \${$3+:} false; then :
1560 $as_echo_n "(cached) " >&6
1562 eval ac_res=\$$3
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564 $as_echo "$ac_res" >&6; }
1565 else
1566 # Is the header compilable?
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1568 $as_echo_n "checking $2 usability... " >&6; }
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1572 #include <$2>
1573 _ACEOF
1574 if ac_fn_c_try_compile "$LINENO"; then :
1575 ac_header_compiler=yes
1576 else
1577 ac_header_compiler=no
1579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1581 $as_echo "$ac_header_compiler" >&6; }
1583 # Is the header present?
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1585 $as_echo_n "checking $2 presence... " >&6; }
1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587 /* end confdefs.h. */
1588 #include <$2>
1589 _ACEOF
1590 if ac_fn_c_try_cpp "$LINENO"; then :
1591 ac_header_preproc=yes
1592 else
1593 ac_header_preproc=no
1595 rm -f conftest.err conftest.i conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1597 $as_echo "$ac_header_preproc" >&6; }
1599 # So? What about this header?
1600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1601 yes:no: )
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1603 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1605 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1607 no:yes:* )
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1609 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1611 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1613 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1615 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1617 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1619 esac
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 $as_echo_n "checking for $2... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1624 else
1625 eval "$3=\$ac_header_compiler"
1627 eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 } # ac_fn_c_check_header_mongrel
1635 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists and can be compiled using the include files in
1638 # INCLUDES, setting the cache variable VAR accordingly.
1639 ac_fn_c_check_header_compile ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1646 else
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653 eval "$3=yes"
1654 else
1655 eval "$3=no"
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 } # ac_fn_c_check_header_compile
1666 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1667 # -------------------------------------------
1668 # Tests whether TYPE exists after having included INCLUDES, setting cache
1669 # variable VAR accordingly.
1670 ac_fn_c_check_type ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1677 else
1678 eval "$3=no"
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1683 main ()
1685 if (sizeof ($2))
1686 return 0;
1688 return 0;
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1696 main ()
1698 if (sizeof (($2)))
1699 return 0;
1701 return 0;
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1706 else
1707 eval "$3=yes"
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 } # ac_fn_c_check_type
1720 # ac_fn_c_check_func LINENO FUNC VAR
1721 # ----------------------------------
1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1723 ac_fn_c_check_func ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1730 else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735 #define $2 innocuous_$2
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (); below.
1739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740 <limits.h> exists even on freestanding compilers. */
1742 #ifdef __STDC__
1743 # include <limits.h>
1744 #else
1745 # include <assert.h>
1746 #endif
1748 #undef $2
1750 /* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1753 #ifdef __cplusplus
1754 extern "C"
1755 #endif
1756 char $2 ();
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined __stub_$2 || defined __stub___$2
1761 choke me
1762 #endif
1765 main ()
1767 return $2 ();
1769 return 0;
1771 _ACEOF
1772 if ac_fn_c_try_link "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1777 rm -f core conftest.err conftest.$ac_objext \
1778 conftest$ac_exeext conftest.$ac_ext
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 } # ac_fn_c_check_func
1786 cat >config.log <<_ACEOF
1787 This file contains any messages produced by compilers while
1788 running configure, to aid debugging if configure makes a mistake.
1790 It was created by less $as_me 1, which was
1791 generated by GNU Autoconf 2.68. Invocation command line was
1793 $ $0 $@
1795 _ACEOF
1796 exec 5>>config.log
1798 cat <<_ASUNAME
1799 ## --------- ##
1800 ## Platform. ##
1801 ## --------- ##
1803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1810 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1812 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1813 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1815 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1816 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1817 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1818 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1820 _ASUNAME
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 $as_echo "PATH: $as_dir"
1828 done
1829 IFS=$as_save_IFS
1831 } >&5
1833 cat >&5 <<_ACEOF
1836 ## ----------- ##
1837 ## Core tests. ##
1838 ## ----------- ##
1840 _ACEOF
1843 # Keep a trace of the command line.
1844 # Strip out --no-create and --no-recursion so they do not pile up.
1845 # Strip out --silent because we don't want to record it for future runs.
1846 # Also quote any args containing shell meta-characters.
1847 # Make two passes to allow for proper duplicate-argument suppression.
1848 ac_configure_args=
1849 ac_configure_args0=
1850 ac_configure_args1=
1851 ac_must_keep_next=false
1852 for ac_pass in 1 2
1854 for ac_arg
1856 case $ac_arg in
1857 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1859 | -silent | --silent | --silen | --sile | --sil)
1860 continue ;;
1861 *\'*)
1862 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 esac
1864 case $ac_pass in
1865 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1867 as_fn_append ac_configure_args1 " '$ac_arg'"
1868 if test $ac_must_keep_next = true; then
1869 ac_must_keep_next=false # Got value, back to normal.
1870 else
1871 case $ac_arg in
1872 *=* | --config-cache | -C | -disable-* | --disable-* \
1873 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1874 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1875 | -with-* | --with-* | -without-* | --without-* | --x)
1876 case "$ac_configure_args0 " in
1877 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1878 esac
1880 -* ) ac_must_keep_next=true ;;
1881 esac
1883 as_fn_append ac_configure_args " '$ac_arg'"
1885 esac
1886 done
1887 done
1888 { ac_configure_args0=; unset ac_configure_args0;}
1889 { ac_configure_args1=; unset ac_configure_args1;}
1891 # When interrupted or exit'd, cleanup temporary files, and complete
1892 # config.log. We remove comments because anyway the quotes in there
1893 # would cause problems or look ugly.
1894 # WARNING: Use '\'' to represent an apostrophe within the trap.
1895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1896 trap 'exit_status=$?
1897 # Save into config.log some information that might help in debugging.
1899 echo
1901 $as_echo "## ---------------- ##
1902 ## Cache variables. ##
1903 ## ---------------- ##"
1904 echo
1905 # The following way of writing the cache mishandles newlines in values,
1907 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1908 eval ac_val=\$$ac_var
1909 case $ac_val in #(
1910 *${as_nl}*)
1911 case $ac_var in #(
1912 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1914 esac
1915 case $ac_var in #(
1916 _ | IFS | as_nl) ;; #(
1917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1918 *) { eval $ac_var=; unset $ac_var;} ;;
1919 esac ;;
1920 esac
1921 done
1922 (set) 2>&1 |
1923 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1924 *${as_nl}ac_space=\ *)
1925 sed -n \
1926 "s/'\''/'\''\\\\'\'''\''/g;
1927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1928 ;; #(
1930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1932 esac |
1933 sort
1935 echo
1937 $as_echo "## ----------------- ##
1938 ## Output variables. ##
1939 ## ----------------- ##"
1940 echo
1941 for ac_var in $ac_subst_vars
1943 eval ac_val=\$$ac_var
1944 case $ac_val in
1945 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1946 esac
1947 $as_echo "$ac_var='\''$ac_val'\''"
1948 done | sort
1949 echo
1951 if test -n "$ac_subst_files"; then
1952 $as_echo "## ------------------- ##
1953 ## File substitutions. ##
1954 ## ------------------- ##"
1955 echo
1956 for ac_var in $ac_subst_files
1958 eval ac_val=\$$ac_var
1959 case $ac_val in
1960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 esac
1962 $as_echo "$ac_var='\''$ac_val'\''"
1963 done | sort
1964 echo
1967 if test -s confdefs.h; then
1968 $as_echo "## ----------- ##
1969 ## confdefs.h. ##
1970 ## ----------- ##"
1971 echo
1972 cat confdefs.h
1973 echo
1975 test "$ac_signal" != 0 &&
1976 $as_echo "$as_me: caught signal $ac_signal"
1977 $as_echo "$as_me: exit $exit_status"
1978 } >&5
1979 rm -f core *.core core.conftest.* &&
1980 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1981 exit $exit_status
1983 for ac_signal in 1 2 13 15; do
1984 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1985 done
1986 ac_signal=0
1988 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1989 rm -f -r conftest* confdefs.h
1991 $as_echo "/* confdefs.h */" > confdefs.h
1993 # Predefined preprocessor variables.
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_NAME "$PACKAGE_NAME"
1997 _ACEOF
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2001 _ACEOF
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2005 _ACEOF
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_STRING "$PACKAGE_STRING"
2009 _ACEOF
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2013 _ACEOF
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_URL "$PACKAGE_URL"
2017 _ACEOF
2020 # Let the site file select an alternate cache file if it wants to.
2021 # Prefer an explicitly selected file to automatically selected ones.
2022 ac_site_file1=NONE
2023 ac_site_file2=NONE
2024 if test -n "$CONFIG_SITE"; then
2025 # We do not want a PATH search for config.site.
2026 case $CONFIG_SITE in #((
2027 -*) ac_site_file1=./$CONFIG_SITE;;
2028 */*) ac_site_file1=$CONFIG_SITE;;
2029 *) ac_site_file1=./$CONFIG_SITE;;
2030 esac
2031 elif test "x$prefix" != xNONE; then
2032 ac_site_file1=$prefix/share/config.site
2033 ac_site_file2=$prefix/etc/config.site
2034 else
2035 ac_site_file1=$ac_default_prefix/share/config.site
2036 ac_site_file2=$ac_default_prefix/etc/config.site
2038 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2040 test "x$ac_site_file" = xNONE && continue
2041 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2043 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2044 sed 's/^/| /' "$ac_site_file" >&5
2045 . "$ac_site_file" \
2046 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2048 as_fn_error $? "failed to load site script $ac_site_file
2049 See \`config.log' for more details" "$LINENO" 5 ; }
2051 done
2053 if test -r "$cache_file"; then
2054 # Some versions of bash will fail to source /dev/null (special files
2055 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2056 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2058 $as_echo "$as_me: loading cache $cache_file" >&6;}
2059 case $cache_file in
2060 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2061 *) . "./$cache_file";;
2062 esac
2064 else
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2066 $as_echo "$as_me: creating cache $cache_file" >&6;}
2067 >$cache_file
2070 # Check that the precious variables saved in the cache have kept the same
2071 # value.
2072 ac_cache_corrupted=false
2073 for ac_var in $ac_precious_vars; do
2074 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2075 eval ac_new_set=\$ac_env_${ac_var}_set
2076 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2077 eval ac_new_val=\$ac_env_${ac_var}_value
2078 case $ac_old_set,$ac_new_set in
2079 set,)
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2081 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2082 ac_cache_corrupted=: ;;
2083 ,set)
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2085 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2086 ac_cache_corrupted=: ;;
2087 ,);;
2089 if test "x$ac_old_val" != "x$ac_new_val"; then
2090 # differences in whitespace do not lead to failure.
2091 ac_old_val_w=`echo x $ac_old_val`
2092 ac_new_val_w=`echo x $ac_new_val`
2093 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2095 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2096 ac_cache_corrupted=:
2097 else
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2099 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2100 eval $ac_var=\$ac_old_val
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2103 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2105 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2106 fi;;
2107 esac
2108 # Pass precious variables to config.status.
2109 if test "$ac_new_set" = set; then
2110 case $ac_new_val in
2111 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2112 *) ac_arg=$ac_var=$ac_new_val ;;
2113 esac
2114 case " $ac_configure_args " in
2115 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2116 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2117 esac
2119 done
2120 if $ac_cache_corrupted; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2124 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2125 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2127 ## -------------------- ##
2128 ## Main body of script. ##
2129 ## -------------------- ##
2131 ac_ext=c
2132 ac_cpp='$CPP $CPPFLAGS'
2133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 ac_config_headers="$ac_config_headers defines.h"
2142 # Checks for programs.
2143 ac_ext=c
2144 ac_cpp='$CPP $CPPFLAGS'
2145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148 if test -n "$ac_tool_prefix"; then
2149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2152 $as_echo_n "checking for $ac_word... " >&6; }
2153 if ${ac_cv_prog_CC+:} false; then :
2154 $as_echo_n "(cached) " >&6
2155 else
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC="$CC" # Let the user override the test.
2158 else
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2162 IFS=$as_save_IFS
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 break 2
2170 done
2171 done
2172 IFS=$as_save_IFS
2176 CC=$ac_cv_prog_CC
2177 if test -n "$CC"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2179 $as_echo "$CC" >&6; }
2180 else
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2182 $as_echo "no" >&6; }
2187 if test -z "$ac_cv_prog_CC"; then
2188 ac_ct_CC=$CC
2189 # Extract the first word of "gcc", so it can be a program name with args.
2190 set dummy gcc; ac_word=$2
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192 $as_echo_n "checking for $ac_word... " >&6; }
2193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_ac_ct_CC="gcc"
2207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2
2210 done
2211 done
2212 IFS=$as_save_IFS
2216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217 if test -n "$ac_ct_CC"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2219 $as_echo "$ac_ct_CC" >&6; }
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222 $as_echo "no" >&6; }
2225 if test "x$ac_ct_CC" = x; then
2226 CC=""
2227 else
2228 case $cross_compiling:$ac_tool_warned in
2229 yes:)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2232 ac_tool_warned=yes ;;
2233 esac
2234 CC=$ac_ct_CC
2236 else
2237 CC="$ac_cv_prog_CC"
2240 if test -z "$CC"; then
2241 if test -n "$ac_tool_prefix"; then
2242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2243 set dummy ${ac_tool_prefix}cc; ac_word=$2
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2245 $as_echo_n "checking for $ac_word... " >&6; }
2246 if ${ac_cv_prog_CC+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 if test -n "$CC"; then
2250 ac_cv_prog_CC="$CC" # Let the user override the test.
2251 else
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2259 ac_cv_prog_CC="${ac_tool_prefix}cc"
2260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2263 done
2264 done
2265 IFS=$as_save_IFS
2269 CC=$ac_cv_prog_CC
2270 if test -n "$CC"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2272 $as_echo "$CC" >&6; }
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2275 $as_echo "no" >&6; }
2281 if test -z "$CC"; then
2282 # Extract the first word of "cc", so it can be a program name with args.
2283 set dummy cc; ac_word=$2
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2285 $as_echo_n "checking for $ac_word... " >&6; }
2286 if ${ac_cv_prog_CC+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC="$CC" # Let the user override the test.
2291 else
2292 ac_prog_rejected=no
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2301 ac_prog_rejected=yes
2302 continue
2304 ac_cv_prog_CC="cc"
2305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 break 2
2308 done
2309 done
2310 IFS=$as_save_IFS
2312 if test $ac_prog_rejected = yes; then
2313 # We found a bogon in the path, so make sure we never use it.
2314 set dummy $ac_cv_prog_CC
2315 shift
2316 if test $# != 0; then
2317 # We chose a different compiler from the bogus one.
2318 # However, it has the same basename, so the bogon will be chosen
2319 # first if we set CC to just the basename; use the full file name.
2320 shift
2321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2326 CC=$ac_cv_prog_CC
2327 if test -n "$CC"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2329 $as_echo "$CC" >&6; }
2330 else
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2332 $as_echo "no" >&6; }
2337 if test -z "$CC"; then
2338 if test -n "$ac_tool_prefix"; then
2339 for ac_prog in cl.exe
2341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2344 $as_echo_n "checking for $ac_word... " >&6; }
2345 if ${ac_cv_prog_CC+:} false; then :
2346 $as_echo_n "(cached) " >&6
2347 else
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 break 2
2362 done
2363 done
2364 IFS=$as_save_IFS
2368 CC=$ac_cv_prog_CC
2369 if test -n "$CC"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2371 $as_echo "$CC" >&6; }
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2374 $as_echo "no" >&6; }
2378 test -n "$CC" && break
2379 done
2381 if test -z "$CC"; then
2382 ac_ct_CC=$CC
2383 for ac_prog in cl.exe
2385 # Extract the first word of "$ac_prog", so it can be a program name with args.
2386 set dummy $ac_prog; ac_word=$2
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2388 $as_echo_n "checking for $ac_word... " >&6; }
2389 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 if test -n "$ac_ct_CC"; then
2393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_CC="$ac_prog"
2403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2406 done
2407 done
2408 IFS=$as_save_IFS
2412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2413 if test -n "$ac_ct_CC"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2415 $as_echo "$ac_ct_CC" >&6; }
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418 $as_echo "no" >&6; }
2422 test -n "$ac_ct_CC" && break
2423 done
2425 if test "x$ac_ct_CC" = x; then
2426 CC=""
2427 else
2428 case $cross_compiling:$ac_tool_warned in
2429 yes:)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434 CC=$ac_ct_CC
2441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 as_fn_error $? "no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details" "$LINENO" 5 ; }
2446 # Provide some information about the compiler.
2447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2448 set X $ac_compile
2449 ac_compiler=$2
2450 for ac_option in --version -v -V -qversion; do
2451 { { ac_try="$ac_compiler $ac_option >&5"
2452 case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455 esac
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2459 ac_status=$?
2460 if test -s conftest.err; then
2461 sed '10a\
2462 ... rest of stderr output deleted ...
2463 10q' conftest.err >conftest.er1
2464 cat conftest.er1 >&5
2466 rm -f conftest.er1 conftest.err
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468 test $ac_status = 0; }
2469 done
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2475 main ()
2479 return 0;
2481 _ACEOF
2482 ac_clean_files_save=$ac_clean_files
2483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2484 # Try to create an executable without -o first, disregard a.out.
2485 # It will help us diagnose broken compilers, and finding out an intuition
2486 # of exeext.
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2488 $as_echo_n "checking whether the C compiler works... " >&6; }
2489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2491 # The possible output files:
2492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2494 ac_rmfiles=
2495 for ac_file in $ac_files
2497 case $ac_file in
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2500 esac
2501 done
2502 rm -f $ac_rmfiles
2504 if { { ac_try="$ac_link_default"
2505 case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510 $as_echo "$ac_try_echo"; } >&5
2511 (eval "$ac_link_default") 2>&5
2512 ac_status=$?
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; }; then :
2515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2517 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2518 # so that the user can short-circuit this test for compilers unknown to
2519 # Autoconf.
2520 for ac_file in $ac_files ''
2522 test -f "$ac_file" || continue
2523 case $ac_file in
2524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2526 [ab].out )
2527 # We found the default executable, but exeext='' is most
2528 # certainly right.
2529 break;;
2530 *.* )
2531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2532 then :; else
2533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2535 # We set ac_cv_exeext here because the later test for it is not
2536 # safe: cross compilers may not add the suffix if given an `-o'
2537 # argument, so we may need to know it at that point already.
2538 # Even if this section looks crufty: it has the advantage of
2539 # actually working.
2540 break;;
2542 break;;
2543 esac
2544 done
2545 test "$ac_cv_exeext" = no && ac_cv_exeext=
2547 else
2548 ac_file=''
2550 if test -z "$ac_file"; then :
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 $as_echo "no" >&6; }
2553 $as_echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error 77 "C compiler cannot create executables
2559 See \`config.log' for more details" "$LINENO" 5 ; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562 $as_echo "yes" >&6; }
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2565 $as_echo_n "checking for C compiler default output file name... " >&6; }
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2567 $as_echo "$ac_file" >&6; }
2568 ac_exeext=$ac_cv_exeext
2570 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2571 ac_clean_files=$ac_clean_files_save
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2573 $as_echo_n "checking for suffix of executables... " >&6; }
2574 if { { ac_try="$ac_link"
2575 case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_link") 2>&5
2582 ac_status=$?
2583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584 test $ac_status = 0; }; then :
2585 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2586 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2587 # work properly (i.e., refer to `conftest.exe'), while it won't with
2588 # `rm'.
2589 for ac_file in conftest.exe conftest conftest.*; do
2590 test -f "$ac_file" || continue
2591 case $ac_file in
2592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2593 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2594 break;;
2595 * ) break;;
2596 esac
2597 done
2598 else
2599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2602 See \`config.log' for more details" "$LINENO" 5 ; }
2604 rm -f conftest conftest$ac_cv_exeext
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2606 $as_echo "$ac_cv_exeext" >&6; }
2608 rm -f conftest.$ac_ext
2609 EXEEXT=$ac_cv_exeext
2610 ac_exeext=$EXEEXT
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2613 #include <stdio.h>
2615 main ()
2617 FILE *f = fopen ("conftest.out", "w");
2618 return ferror (f) || fclose (f) != 0;
2621 return 0;
2623 _ACEOF
2624 ac_clean_files="$ac_clean_files conftest.out"
2625 # Check that the compiler produces executables we can run. If not, either
2626 # the compiler is broken, or we cross compile.
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2628 $as_echo_n "checking whether we are cross compiling... " >&6; }
2629 if test "$cross_compiling" != yes; then
2630 { { ac_try="$ac_link"
2631 case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634 esac
2635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636 $as_echo "$ac_try_echo"; } >&5
2637 (eval "$ac_link") 2>&5
2638 ac_status=$?
2639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640 test $ac_status = 0; }
2641 if { ac_try='./conftest$ac_cv_exeext'
2642 { { case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2647 $as_echo "$ac_try_echo"; } >&5
2648 (eval "$ac_try") 2>&5
2649 ac_status=$?
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; }; }; then
2652 cross_compiling=no
2653 else
2654 if test "$cross_compiling" = maybe; then
2655 cross_compiling=yes
2656 else
2657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 as_fn_error $? "cannot run C compiled programs.
2660 If you meant to cross compile, use \`--host'.
2661 See \`config.log' for more details" "$LINENO" 5 ; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2666 $as_echo "$cross_compiling" >&6; }
2668 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2669 ac_clean_files=$ac_clean_files_save
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2671 $as_echo_n "checking for suffix of object files... " >&6; }
2672 if ${ac_cv_objext+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2679 main ()
2683 return 0;
2685 _ACEOF
2686 rm -f conftest.o conftest.obj
2687 if { { ac_try="$ac_compile"
2688 case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691 esac
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_compile") 2>&5
2695 ac_status=$?
2696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2697 test $ac_status = 0; }; then :
2698 for ac_file in conftest.o conftest.obj conftest.*; do
2699 test -f "$ac_file" || continue;
2700 case $ac_file in
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2703 break;;
2704 esac
2705 done
2706 else
2707 $as_echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 as_fn_error $? "cannot compute suffix of object files: cannot compile
2713 See \`config.log' for more details" "$LINENO" 5 ; }
2715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2718 $as_echo "$ac_cv_objext" >&6; }
2719 OBJEXT=$ac_cv_objext
2720 ac_objext=$OBJEXT
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2723 if ${ac_cv_c_compiler_gnu+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2730 main ()
2732 #ifndef __GNUC__
2733 choke me
2734 #endif
2737 return 0;
2739 _ACEOF
2740 if ac_fn_c_try_compile "$LINENO"; then :
2741 ac_compiler_gnu=yes
2742 else
2743 ac_compiler_gnu=no
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2751 if test $ac_compiler_gnu = yes; then
2752 GCC=yes
2753 else
2754 GCC=
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2760 if ${ac_cv_prog_cc_g+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 ac_save_c_werror_flag=$ac_c_werror_flag
2764 ac_c_werror_flag=yes
2765 ac_cv_prog_cc_g=no
2766 CFLAGS="-g"
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2771 main ()
2775 return 0;
2777 _ACEOF
2778 if ac_fn_c_try_compile "$LINENO"; then :
2779 ac_cv_prog_cc_g=yes
2780 else
2781 CFLAGS=""
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2786 main ()
2790 return 0;
2792 _ACEOF
2793 if ac_fn_c_try_compile "$LINENO"; then :
2795 else
2796 ac_c_werror_flag=$ac_save_c_werror_flag
2797 CFLAGS="-g"
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2802 main ()
2806 return 0;
2808 _ACEOF
2809 if ac_fn_c_try_compile "$LINENO"; then :
2810 ac_cv_prog_cc_g=yes
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 ac_c_werror_flag=$ac_save_c_werror_flag
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2820 $as_echo "$ac_cv_prog_cc_g" >&6; }
2821 if test "$ac_test_CFLAGS" = set; then
2822 CFLAGS=$ac_save_CFLAGS
2823 elif test $ac_cv_prog_cc_g = yes; then
2824 if test "$GCC" = yes; then
2825 CFLAGS="-g -O2"
2826 else
2827 CFLAGS="-g"
2829 else
2830 if test "$GCC" = yes; then
2831 CFLAGS="-O2"
2832 else
2833 CFLAGS=
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2838 if ${ac_cv_prog_cc_c89+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 ac_cv_prog_cc_c89=no
2842 ac_save_CC=$CC
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h. */
2845 #include <stdarg.h>
2846 #include <stdio.h>
2847 #include <sys/types.h>
2848 #include <sys/stat.h>
2849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2850 struct buf { int x; };
2851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2852 static char *e (p, i)
2853 char **p;
2854 int i;
2856 return p[i];
2858 static char *f (char * (*g) (char **, int), char **p, ...)
2860 char *s;
2861 va_list v;
2862 va_start (v,p);
2863 s = g (p, va_arg (v,int));
2864 va_end (v);
2865 return s;
2868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2869 function prototypes and stuff, but not '\xHH' hex character constants.
2870 These don't provoke an error unfortunately, instead are silently treated
2871 as 'x'. The following induces an error, until -std is added to get
2872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2873 array size at least. It's necessary to write '\x00'==0 to get something
2874 that's true only with -std. */
2875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2878 inside strings and character constants. */
2879 #define FOO(x) 'x'
2880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2882 int test (int i, double x);
2883 struct s1 {int (*f) (int a);};
2884 struct s2 {int (*f) (double a);};
2885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2886 int argc;
2887 char **argv;
2889 main ()
2891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2893 return 0;
2895 _ACEOF
2896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2899 CC="$ac_save_CC $ac_arg"
2900 if ac_fn_c_try_compile "$LINENO"; then :
2901 ac_cv_prog_cc_c89=$ac_arg
2903 rm -f core conftest.err conftest.$ac_objext
2904 test "x$ac_cv_prog_cc_c89" != "xno" && break
2905 done
2906 rm -f conftest.$ac_ext
2907 CC=$ac_save_CC
2910 # AC_CACHE_VAL
2911 case "x$ac_cv_prog_cc_c89" in
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2914 $as_echo "none needed" >&6; } ;;
2915 xno)
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2917 $as_echo "unsupported" >&6; } ;;
2919 CC="$CC $ac_cv_prog_cc_c89"
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2922 esac
2923 if test "x$ac_cv_prog_cc_c89" != xno; then :
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
2935 $as_echo_n "checking for library containing strerror... " >&6; }
2936 if ${ac_cv_search_strerror+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 ac_func_search_save_LIBS=$LIBS
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2943 /* Override any GCC internal prototype to avoid an error.
2944 Use char because int might match the return type of a GCC
2945 builtin and then its argument prototype would still apply. */
2946 #ifdef __cplusplus
2947 extern "C"
2948 #endif
2949 char strerror ();
2951 main ()
2953 return strerror ();
2955 return 0;
2957 _ACEOF
2958 for ac_lib in '' cposix; do
2959 if test -z "$ac_lib"; then
2960 ac_res="none required"
2961 else
2962 ac_res=-l$ac_lib
2963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2965 if ac_fn_c_try_link "$LINENO"; then :
2966 ac_cv_search_strerror=$ac_res
2968 rm -f core conftest.err conftest.$ac_objext \
2969 conftest$ac_exeext
2970 if ${ac_cv_search_strerror+:} false; then :
2971 break
2973 done
2974 if ${ac_cv_search_strerror+:} false; then :
2976 else
2977 ac_cv_search_strerror=no
2979 rm conftest.$ac_ext
2980 LIBS=$ac_func_search_save_LIBS
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
2983 $as_echo "$ac_cv_search_strerror" >&6; }
2984 ac_res=$ac_cv_search_strerror
2985 if test "$ac_res" != no; then :
2986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2996 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2997 # On Suns, sometimes $CPP names a directory.
2998 if test -n "$CPP" && test -d "$CPP"; then
2999 CPP=
3001 if test -z "$CPP"; then
3002 if ${ac_cv_prog_CPP+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 # Double quotes because CPP needs to be expanded
3006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3008 ac_preproc_ok=false
3009 for ac_c_preproc_warn_flag in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024 Syntax error
3025 _ACEOF
3026 if ac_fn_c_try_cpp "$LINENO"; then :
3028 else
3029 # Broken: fails on valid input.
3030 continue
3032 rm -f conftest.err conftest.i conftest.$ac_ext
3034 # OK, works on sane cases. Now check whether nonexistent headers
3035 # can be detected and how.
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3038 #include <ac_nonexistent.h>
3039 _ACEOF
3040 if ac_fn_c_try_cpp "$LINENO"; then :
3041 # Broken: success on invalid input.
3042 continue
3043 else
3044 # Passes both tests.
3045 ac_preproc_ok=:
3046 break
3048 rm -f conftest.err conftest.i conftest.$ac_ext
3050 done
3051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3052 rm -f conftest.i conftest.err conftest.$ac_ext
3053 if $ac_preproc_ok; then :
3054 break
3057 done
3058 ac_cv_prog_CPP=$CPP
3061 CPP=$ac_cv_prog_CPP
3062 else
3063 ac_cv_prog_CPP=$CPP
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3066 $as_echo "$CPP" >&6; }
3067 ac_preproc_ok=false
3068 for ac_c_preproc_warn_flag in '' yes
3070 # Use a header file that comes with gcc, so configuring glibc
3071 # with a fresh cross-compiler works.
3072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3073 # <limits.h> exists even on freestanding compilers.
3074 # On the NeXT, cc -E runs the code through the compiler's parser,
3075 # not just through cpp. "Syntax error" is here to catch this case.
3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h. */
3078 #ifdef __STDC__
3079 # include <limits.h>
3080 #else
3081 # include <assert.h>
3082 #endif
3083 Syntax error
3084 _ACEOF
3085 if ac_fn_c_try_cpp "$LINENO"; then :
3087 else
3088 # Broken: fails on valid input.
3089 continue
3091 rm -f conftest.err conftest.i conftest.$ac_ext
3093 # OK, works on sane cases. Now check whether nonexistent headers
3094 # can be detected and how.
3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096 /* end confdefs.h. */
3097 #include <ac_nonexistent.h>
3098 _ACEOF
3099 if ac_fn_c_try_cpp "$LINENO"; then :
3100 # Broken: success on invalid input.
3101 continue
3102 else
3103 # Passes both tests.
3104 ac_preproc_ok=:
3105 break
3107 rm -f conftest.err conftest.i conftest.$ac_ext
3109 done
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.i conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then :
3114 else
3115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details" "$LINENO" 5 ; }
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3129 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3130 if ${ac_cv_path_GREP+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -z "$GREP"; then
3134 ac_path_GREP_found=false
3135 # Loop through the user's path and test for each of PROGNAME-LIST
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_prog in grep ggrep; do
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3144 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3145 # Check for GNU ac_path_GREP and select it if it is found.
3146 # Check for GNU $ac_path_GREP
3147 case `"$ac_path_GREP" --version 2>&1` in
3148 *GNU*)
3149 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3151 ac_count=0
3152 $as_echo_n 0123456789 >"conftest.in"
3153 while :
3155 cat "conftest.in" "conftest.in" >"conftest.tmp"
3156 mv "conftest.tmp" "conftest.in"
3157 cp "conftest.in" "conftest.nl"
3158 $as_echo 'GREP' >> "conftest.nl"
3159 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3161 as_fn_arith $ac_count + 1 && ac_count=$as_val
3162 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3163 # Best one so far, save it but keep looking for a better one
3164 ac_cv_path_GREP="$ac_path_GREP"
3165 ac_path_GREP_max=$ac_count
3167 # 10*(2^10) chars as input seems more than enough
3168 test $ac_count -gt 10 && break
3169 done
3170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3171 esac
3173 $ac_path_GREP_found && break 3
3174 done
3175 done
3176 done
3177 IFS=$as_save_IFS
3178 if test -z "$ac_cv_path_GREP"; then
3179 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3181 else
3182 ac_cv_path_GREP=$GREP
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3187 $as_echo "$ac_cv_path_GREP" >&6; }
3188 GREP="$ac_cv_path_GREP"
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3192 $as_echo_n "checking for egrep... " >&6; }
3193 if ${ac_cv_path_EGREP+:} false; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3197 then ac_cv_path_EGREP="$GREP -E"
3198 else
3199 if test -z "$EGREP"; then
3200 ac_path_EGREP_found=false
3201 # Loop through the user's path and test for each of PROGNAME-LIST
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_prog in egrep; do
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3210 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3211 # Check for GNU ac_path_EGREP and select it if it is found.
3212 # Check for GNU $ac_path_EGREP
3213 case `"$ac_path_EGREP" --version 2>&1` in
3214 *GNU*)
3215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3217 ac_count=0
3218 $as_echo_n 0123456789 >"conftest.in"
3219 while :
3221 cat "conftest.in" "conftest.in" >"conftest.tmp"
3222 mv "conftest.tmp" "conftest.in"
3223 cp "conftest.in" "conftest.nl"
3224 $as_echo 'EGREP' >> "conftest.nl"
3225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3227 as_fn_arith $ac_count + 1 && ac_count=$as_val
3228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3229 # Best one so far, save it but keep looking for a better one
3230 ac_cv_path_EGREP="$ac_path_EGREP"
3231 ac_path_EGREP_max=$ac_count
3233 # 10*(2^10) chars as input seems more than enough
3234 test $ac_count -gt 10 && break
3235 done
3236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3237 esac
3239 $ac_path_EGREP_found && break 3
3240 done
3241 done
3242 done
3243 IFS=$as_save_IFS
3244 if test -z "$ac_cv_path_EGREP"; then
3245 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3247 else
3248 ac_cv_path_EGREP=$EGREP
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3254 $as_echo "$ac_cv_path_EGREP" >&6; }
3255 EGREP="$ac_cv_path_EGREP"
3258 if test $ac_cv_c_compiler_gnu = yes; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3260 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3261 if ${ac_cv_prog_gcc_traditional+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 ac_pattern="Autoconf.*'x'"
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3267 #include <sgtty.h>
3268 Autoconf TIOCGETP
3269 _ACEOF
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3272 ac_cv_prog_gcc_traditional=yes
3273 else
3274 ac_cv_prog_gcc_traditional=no
3276 rm -f conftest*
3279 if test $ac_cv_prog_gcc_traditional = no; then
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282 #include <termio.h>
3283 Autoconf TCGETA
3284 _ACEOF
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3287 ac_cv_prog_gcc_traditional=yes
3289 rm -f conftest*
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3294 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3295 if test $ac_cv_prog_gcc_traditional = yes; then
3296 CC="$CC -traditional"
3300 ac_aux_dir=
3301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3302 if test -f "$ac_dir/install-sh"; then
3303 ac_aux_dir=$ac_dir
3304 ac_install_sh="$ac_aux_dir/install-sh -c"
3305 break
3306 elif test -f "$ac_dir/install.sh"; then
3307 ac_aux_dir=$ac_dir
3308 ac_install_sh="$ac_aux_dir/install.sh -c"
3309 break
3310 elif test -f "$ac_dir/shtool"; then
3311 ac_aux_dir=$ac_dir
3312 ac_install_sh="$ac_aux_dir/shtool install -c"
3313 break
3315 done
3316 if test -z "$ac_aux_dir"; then
3317 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3320 # These three variables are undocumented and unsupported,
3321 # and are intended to be withdrawn in a future Autoconf release.
3322 # They can cause serious problems if a builder's source tree is in a directory
3323 # whose full name contains unusual characters.
3324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3329 # Find a good install program. We prefer a C program (faster),
3330 # so one script is as good as another. But avoid the broken or
3331 # incompatible versions:
3332 # SysV /etc/install, /usr/sbin/install
3333 # SunOS /usr/etc/install
3334 # IRIX /sbin/install
3335 # AIX /bin/install
3336 # AmigaOS /C/install, which installs bootblocks on floppy discs
3337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340 # OS/2's system install, which has a completely different semantic
3341 # ./install, which can be erroneously created by make from ./install.sh.
3342 # Reject install programs that cannot install multiple files.
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3344 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3345 if test -z "$INSTALL"; then
3346 if ${ac_cv_path_install+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 # Account for people who put trailing slashes in PATH elements.
3355 case $as_dir/ in #((
3356 ./ | .// | /[cC]/* | \
3357 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3358 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3359 /usr/ucb/* ) ;;
3361 # OSF1 and SCO ODT 3.0 have their own names for install.
3362 # Don't use installbsd from OSF since it installs stuff as root
3363 # by default.
3364 for ac_prog in ginstall scoinst install; do
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3367 if test $ac_prog = install &&
3368 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3369 # AIX install. It has an incompatible calling convention.
3371 elif test $ac_prog = install &&
3372 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3373 # program-specific install script used by HP pwplus--don't use.
3375 else
3376 rm -rf conftest.one conftest.two conftest.dir
3377 echo one > conftest.one
3378 echo two > conftest.two
3379 mkdir conftest.dir
3380 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3381 test -s conftest.one && test -s conftest.two &&
3382 test -s conftest.dir/conftest.one &&
3383 test -s conftest.dir/conftest.two
3384 then
3385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3386 break 3
3390 done
3391 done
3393 esac
3395 done
3396 IFS=$as_save_IFS
3398 rm -rf conftest.one conftest.two conftest.dir
3401 if test "${ac_cv_path_install+set}" = set; then
3402 INSTALL=$ac_cv_path_install
3403 else
3404 # As a last resort, use the slow shell script. Don't cache a
3405 # value for INSTALL within a source directory, because that will
3406 # break other packages using the cache if that directory is
3407 # removed, or if the value is a relative name.
3408 INSTALL=$ac_install_sh
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3412 $as_echo "$INSTALL" >&6; }
3414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3415 # It thinks the first close brace ends the variable substitution.
3416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3423 # Checks for compilation model.
3424 # Check whether --enable-largefile was given.
3425 if test "${enable_largefile+set}" = set; then :
3426 enableval=$enable_largefile;
3429 if test "$enable_largefile" != no; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3432 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3433 if ${ac_cv_sys_largefile_CC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 ac_cv_sys_largefile_CC=no
3437 if test "$GCC" != yes; then
3438 ac_save_CC=$CC
3439 while :; do
3440 # IRIX 6.2 and later do not support large files by default,
3441 # so use the C compiler's -n32 option if that helps.
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444 #include <sys/types.h>
3445 /* Check that off_t can represent 2**63 - 1 correctly.
3446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3447 since some C++ compilers masquerading as C compilers
3448 incorrectly reject 9223372036854775807. */
3449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3451 && LARGE_OFF_T % 2147483647 == 1)
3452 ? 1 : -1];
3454 main ()
3458 return 0;
3460 _ACEOF
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462 break
3464 rm -f core conftest.err conftest.$ac_objext
3465 CC="$CC -n32"
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_sys_largefile_CC=' -n32'; break
3469 rm -f core conftest.err conftest.$ac_objext
3470 break
3471 done
3472 CC=$ac_save_CC
3473 rm -f conftest.$ac_ext
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3477 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3478 if test "$ac_cv_sys_largefile_CC" != no; then
3479 CC=$CC$ac_cv_sys_largefile_CC
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3483 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3484 if ${ac_cv_sys_file_offset_bits+:} false; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 while :; do
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490 #include <sys/types.h>
3491 /* Check that off_t can represent 2**63 - 1 correctly.
3492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3493 since some C++ compilers masquerading as C compilers
3494 incorrectly reject 9223372036854775807. */
3495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3497 && LARGE_OFF_T % 2147483647 == 1)
3498 ? 1 : -1];
3500 main ()
3504 return 0;
3506 _ACEOF
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_cv_sys_file_offset_bits=no; break
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513 #define _FILE_OFFSET_BITS 64
3514 #include <sys/types.h>
3515 /* Check that off_t can represent 2**63 - 1 correctly.
3516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3517 since some C++ compilers masquerading as C compilers
3518 incorrectly reject 9223372036854775807. */
3519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3521 && LARGE_OFF_T % 2147483647 == 1)
3522 ? 1 : -1];
3524 main ()
3528 return 0;
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532 ac_cv_sys_file_offset_bits=64; break
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_cv_sys_file_offset_bits=unknown
3536 break
3537 done
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3540 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3541 case $ac_cv_sys_file_offset_bits in #(
3542 no | unknown) ;;
3544 cat >>confdefs.h <<_ACEOF
3545 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3546 _ACEOF
3548 esac
3549 rm -rf conftest*
3550 if test $ac_cv_sys_file_offset_bits = unknown; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3552 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3553 if ${ac_cv_sys_large_files+:} false; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 while :; do
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559 #include <sys/types.h>
3560 /* Check that off_t can represent 2**63 - 1 correctly.
3561 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3562 since some C++ compilers masquerading as C compilers
3563 incorrectly reject 9223372036854775807. */
3564 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3566 && LARGE_OFF_T % 2147483647 == 1)
3567 ? 1 : -1];
3569 main ()
3573 return 0;
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_cv_sys_large_files=no; break
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582 #define _LARGE_FILES 1
3583 #include <sys/types.h>
3584 /* Check that off_t can represent 2**63 - 1 correctly.
3585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3586 since some C++ compilers masquerading as C compilers
3587 incorrectly reject 9223372036854775807. */
3588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3590 && LARGE_OFF_T % 2147483647 == 1)
3591 ? 1 : -1];
3593 main ()
3597 return 0;
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_sys_large_files=1; break
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_cv_sys_large_files=unknown
3605 break
3606 done
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3609 $as_echo "$ac_cv_sys_large_files" >&6; }
3610 case $ac_cv_sys_large_files in #(
3611 no | unknown) ;;
3613 cat >>confdefs.h <<_ACEOF
3614 #define _LARGE_FILES $ac_cv_sys_large_files
3615 _ACEOF
3617 esac
3618 rm -rf conftest*
3623 # Checks for general libraries.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfo" >&5
3625 $as_echo_n "checking for tgoto in -ltinfo... " >&6; }
3626 if ${ac_cv_lib_tinfo_tgoto+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 ac_check_lib_save_LIBS=$LIBS
3630 LIBS="-ltinfo $LIBS"
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3634 /* Override any GCC internal prototype to avoid an error.
3635 Use char because int might match the return type of a GCC
3636 builtin and then its argument prototype would still apply. */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 char tgoto ();
3642 main ()
3644 return tgoto ();
3646 return 0;
3648 _ACEOF
3649 if ac_fn_c_try_link "$LINENO"; then :
3650 ac_cv_lib_tinfo_tgoto=yes
3651 else
3652 ac_cv_lib_tinfo_tgoto=no
3654 rm -f core conftest.err conftest.$ac_objext \
3655 conftest$ac_exeext conftest.$ac_ext
3656 LIBS=$ac_check_lib_save_LIBS
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgoto" >&5
3659 $as_echo "$ac_cv_lib_tinfo_tgoto" >&6; }
3660 if test "x$ac_cv_lib_tinfo_tgoto" = xyes; then :
3661 have_tinfo=yes
3662 else
3663 have_tinfo=no
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lxcurses" >&5
3667 $as_echo_n "checking for initscr in -lxcurses... " >&6; }
3668 if ${ac_cv_lib_xcurses_initscr+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 ac_check_lib_save_LIBS=$LIBS
3672 LIBS="-lxcurses $LIBS"
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3676 /* Override any GCC internal prototype to avoid an error.
3677 Use char because int might match the return type of a GCC
3678 builtin and then its argument prototype would still apply. */
3679 #ifdef __cplusplus
3680 extern "C"
3681 #endif
3682 char initscr ();
3684 main ()
3686 return initscr ();
3688 return 0;
3690 _ACEOF
3691 if ac_fn_c_try_link "$LINENO"; then :
3692 ac_cv_lib_xcurses_initscr=yes
3693 else
3694 ac_cv_lib_xcurses_initscr=no
3696 rm -f core conftest.err conftest.$ac_objext \
3697 conftest$ac_exeext conftest.$ac_ext
3698 LIBS=$ac_check_lib_save_LIBS
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcurses_initscr" >&5
3701 $as_echo "$ac_cv_lib_xcurses_initscr" >&6; }
3702 if test "x$ac_cv_lib_xcurses_initscr" = xyes; then :
3703 have_xcurses=yes
3704 else
3705 have_xcurses=no
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
3709 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
3710 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 ac_check_lib_save_LIBS=$LIBS
3714 LIBS="-lncursesw $LIBS"
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3718 /* Override any GCC internal prototype to avoid an error.
3719 Use char because int might match the return type of a GCC
3720 builtin and then its argument prototype would still apply. */
3721 #ifdef __cplusplus
3722 extern "C"
3723 #endif
3724 char initscr ();
3726 main ()
3728 return initscr ();
3730 return 0;
3732 _ACEOF
3733 if ac_fn_c_try_link "$LINENO"; then :
3734 ac_cv_lib_ncursesw_initscr=yes
3735 else
3736 ac_cv_lib_ncursesw_initscr=no
3738 rm -f core conftest.err conftest.$ac_objext \
3739 conftest$ac_exeext conftest.$ac_ext
3740 LIBS=$ac_check_lib_save_LIBS
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
3743 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
3744 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
3745 have_ncursesw=yes
3746 else
3747 have_ncursesw=no
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
3751 $as_echo_n "checking for initscr in -lncurses... " >&6; }
3752 if ${ac_cv_lib_ncurses_initscr+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 ac_check_lib_save_LIBS=$LIBS
3756 LIBS="-lncurses $LIBS"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3760 /* Override any GCC internal prototype to avoid an error.
3761 Use char because int might match the return type of a GCC
3762 builtin and then its argument prototype would still apply. */
3763 #ifdef __cplusplus
3764 extern "C"
3765 #endif
3766 char initscr ();
3768 main ()
3770 return initscr ();
3772 return 0;
3774 _ACEOF
3775 if ac_fn_c_try_link "$LINENO"; then :
3776 ac_cv_lib_ncurses_initscr=yes
3777 else
3778 ac_cv_lib_ncurses_initscr=no
3780 rm -f core conftest.err conftest.$ac_objext \
3781 conftest$ac_exeext conftest.$ac_ext
3782 LIBS=$ac_check_lib_save_LIBS
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
3785 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
3786 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
3787 have_ncurses=yes
3788 else
3789 have_ncurses=no
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
3793 $as_echo_n "checking for initscr in -lcurses... " >&6; }
3794 if ${ac_cv_lib_curses_initscr+:} false; then :
3795 $as_echo_n "(cached) " >&6
3796 else
3797 ac_check_lib_save_LIBS=$LIBS
3798 LIBS="-lcurses $LIBS"
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3802 /* Override any GCC internal prototype to avoid an error.
3803 Use char because int might match the return type of a GCC
3804 builtin and then its argument prototype would still apply. */
3805 #ifdef __cplusplus
3806 extern "C"
3807 #endif
3808 char initscr ();
3810 main ()
3812 return initscr ();
3814 return 0;
3816 _ACEOF
3817 if ac_fn_c_try_link "$LINENO"; then :
3818 ac_cv_lib_curses_initscr=yes
3819 else
3820 ac_cv_lib_curses_initscr=no
3822 rm -f core conftest.err conftest.$ac_objext \
3823 conftest$ac_exeext conftest.$ac_ext
3824 LIBS=$ac_check_lib_save_LIBS
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
3827 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
3828 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
3829 have_curses=yes
3830 else
3831 have_curses=no
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
3835 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
3836 if ${ac_cv_lib_termcap_tgetent+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 ac_check_lib_save_LIBS=$LIBS
3840 LIBS="-ltermcap $LIBS"
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3844 /* Override any GCC internal prototype to avoid an error.
3845 Use char because int might match the return type of a GCC
3846 builtin and then its argument prototype would still apply. */
3847 #ifdef __cplusplus
3848 extern "C"
3849 #endif
3850 char tgetent ();
3852 main ()
3854 return tgetent ();
3856 return 0;
3858 _ACEOF
3859 if ac_fn_c_try_link "$LINENO"; then :
3860 ac_cv_lib_termcap_tgetent=yes
3861 else
3862 ac_cv_lib_termcap_tgetent=no
3864 rm -f core conftest.err conftest.$ac_objext \
3865 conftest$ac_exeext conftest.$ac_ext
3866 LIBS=$ac_check_lib_save_LIBS
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
3869 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
3870 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
3871 have_termcap=yes
3872 else
3873 have_termcap=no
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
3877 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
3878 if ${ac_cv_lib_termlib_tgetent+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 ac_check_lib_save_LIBS=$LIBS
3882 LIBS="-ltermlib $LIBS"
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3886 /* Override any GCC internal prototype to avoid an error.
3887 Use char because int might match the return type of a GCC
3888 builtin and then its argument prototype would still apply. */
3889 #ifdef __cplusplus
3890 extern "C"
3891 #endif
3892 char tgetent ();
3894 main ()
3896 return tgetent ();
3898 return 0;
3900 _ACEOF
3901 if ac_fn_c_try_link "$LINENO"; then :
3902 ac_cv_lib_termlib_tgetent=yes
3903 else
3904 ac_cv_lib_termlib_tgetent=no
3906 rm -f core conftest.err conftest.$ac_objext \
3907 conftest$ac_exeext conftest.$ac_ext
3908 LIBS=$ac_check_lib_save_LIBS
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
3911 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
3912 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
3913 have_termlib=yes
3914 else
3915 have_termlib=no
3918 # Regular expressions (regcmp) are in -lgen on Solaris 2, (but in libc
3919 # at least on Solaris 10 (2.10)) and in -lintl on SCO Unix.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcmp" >&5
3921 $as_echo_n "checking for library containing regcmp... " >&6; }
3922 if ${ac_cv_search_regcmp+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 ac_func_search_save_LIBS=$LIBS
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3929 /* Override any GCC internal prototype to avoid an error.
3930 Use char because int might match the return type of a GCC
3931 builtin and then its argument prototype would still apply. */
3932 #ifdef __cplusplus
3933 extern "C"
3934 #endif
3935 char regcmp ();
3937 main ()
3939 return regcmp ();
3941 return 0;
3943 _ACEOF
3944 for ac_lib in '' gen intl PW; do
3945 if test -z "$ac_lib"; then
3946 ac_res="none required"
3947 else
3948 ac_res=-l$ac_lib
3949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3951 if ac_fn_c_try_link "$LINENO"; then :
3952 ac_cv_search_regcmp=$ac_res
3954 rm -f core conftest.err conftest.$ac_objext \
3955 conftest$ac_exeext
3956 if ${ac_cv_search_regcmp+:} false; then :
3957 break
3959 done
3960 if ${ac_cv_search_regcmp+:} false; then :
3962 else
3963 ac_cv_search_regcmp=no
3965 rm conftest.$ac_ext
3966 LIBS=$ac_func_search_save_LIBS
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcmp" >&5
3969 $as_echo "$ac_cv_search_regcmp" >&6; }
3970 ac_res=$ac_cv_search_regcmp
3971 if test "$ac_res" != no; then :
3972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3977 # Checks for terminal libraries
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working terminal libraries" >&5
3979 $as_echo_n "checking for working terminal libraries... " >&6; }
3980 TERMLIBS=
3982 # Check for systems where curses is broken.
3983 curses_broken=0
3984 if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
3985 if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
3986 curses_broken=1
3988 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
3989 curses_broken=1
3993 if test $curses_broken = 0; then
3995 # -- Try tinfo.
3996 if test "x$TERMLIBS" = x; then
3997 if test $have_tinfo = yes; then
3998 TERMLIBS="-ltinfo"
3999 SAVE_LIBS=$LIBS
4000 LIBS="$LIBS $TERMLIBS"
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4005 main ()
4007 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4009 return 0;
4011 _ACEOF
4012 if ac_fn_c_try_link "$LINENO"; then :
4013 termok=yes
4014 else
4015 termok=no
4017 rm -f core conftest.err conftest.$ac_objext \
4018 conftest$ac_exeext conftest.$ac_ext
4019 LIBS=$SAVE_LIBS
4020 if test $termok = no; then TERMLIBS=""; fi
4024 # -- Try xcurses.
4025 if test "x$TERMLIBS" = x; then
4026 if test $have_xcurses = yes; then
4027 TERMLIBS="-lxcurses"
4028 SAVE_LIBS=$LIBS
4029 LIBS="$LIBS $TERMLIBS"
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4034 main ()
4036 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4038 return 0;
4040 _ACEOF
4041 if ac_fn_c_try_link "$LINENO"; then :
4042 termok=yes
4043 else
4044 termok=no
4046 rm -f core conftest.err conftest.$ac_objext \
4047 conftest$ac_exeext conftest.$ac_ext
4048 LIBS=$SAVE_LIBS
4049 if test $termok = no; then TERMLIBS=""; fi
4053 # -- Try ncursesw.
4054 if test "x$TERMLIBS" = x; then
4055 if test $have_ncursesw = yes; then
4056 TERMLIBS="-lncursesw"
4057 SAVE_LIBS=$LIBS
4058 LIBS="$LIBS $TERMLIBS"
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4063 main ()
4065 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4067 return 0;
4069 _ACEOF
4070 if ac_fn_c_try_link "$LINENO"; then :
4071 termok=yes
4072 else
4073 termok=no
4075 rm -f core conftest.err conftest.$ac_objext \
4076 conftest$ac_exeext conftest.$ac_ext
4077 LIBS=$SAVE_LIBS
4078 if test $termok = no; then TERMLIBS=""; fi
4082 # -- Try ncurses.
4083 if test "x$TERMLIBS" = x; then
4084 if test $have_ncurses = yes; then
4085 TERMLIBS="-lncurses"
4086 SAVE_LIBS=$LIBS
4087 LIBS="$LIBS $TERMLIBS"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4092 main ()
4094 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4096 return 0;
4098 _ACEOF
4099 if ac_fn_c_try_link "$LINENO"; then :
4100 termok=yes
4101 else
4102 termok=no
4104 rm -f core conftest.err conftest.$ac_objext \
4105 conftest$ac_exeext conftest.$ac_ext
4106 LIBS=$SAVE_LIBS
4107 if test $termok = no; then TERMLIBS=""; fi
4111 # -- Try curses.
4112 if test "x$TERMLIBS" = x; then
4113 if test $have_curses = yes; then
4114 TERMLIBS="-lcurses"
4115 SAVE_LIBS=$LIBS
4116 LIBS="$LIBS $TERMLIBS"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4121 main ()
4123 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4125 return 0;
4127 _ACEOF
4128 if ac_fn_c_try_link "$LINENO"; then :
4129 termok=yes
4130 else
4131 termok=no
4133 rm -f core conftest.err conftest.$ac_objext \
4134 conftest$ac_exeext conftest.$ac_ext
4135 LIBS=$SAVE_LIBS
4136 if test $termok = no; then TERMLIBS=""; fi
4140 # -- Try curses & termcap.
4141 if test "x$TERMLIBS" = x; then
4142 if test $have_curses = yes; then
4143 if test $have_termcap = yes; then
4144 TERMLIBS="-lcurses -ltermcap"
4145 SAVE_LIBS=$LIBS
4146 LIBS="$LIBS $TERMLIBS"
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4151 main ()
4153 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4155 return 0;
4157 _ACEOF
4158 if ac_fn_c_try_link "$LINENO"; then :
4159 termok=yes
4160 else
4161 termok=no
4163 rm -f core conftest.err conftest.$ac_objext \
4164 conftest$ac_exeext conftest.$ac_ext
4165 LIBS=$SAVE_LIBS
4166 if test $termok = no; then TERMLIBS=""; fi
4172 # -- Try termcap.
4173 if test "x$TERMLIBS" = x; then
4174 if test $have_termcap = yes; then
4175 TERMLIBS="-ltermcap"
4176 SAVE_LIBS=$LIBS
4177 LIBS="$LIBS $TERMLIBS"
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4182 main ()
4184 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4186 return 0;
4188 _ACEOF
4189 if ac_fn_c_try_link "$LINENO"; then :
4190 termok=yes
4191 else
4192 termok=no
4194 rm -f core conftest.err conftest.$ac_objext \
4195 conftest$ac_exeext conftest.$ac_ext
4196 LIBS=$SAVE_LIBS
4197 if test $termok = no; then TERMLIBS=""; fi
4201 # -- Try termlib.
4202 if test "x$TERMLIBS" = x; then
4203 if test $have_termlib = yes; then
4204 TERMLIBS="-lcurses -ltermlib"
4205 SAVE_LIBS=$LIBS
4206 LIBS="$LIBS $TERMLIBS"
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4211 main ()
4213 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4215 return 0;
4217 _ACEOF
4218 if ac_fn_c_try_link "$LINENO"; then :
4219 termok=yes
4220 else
4221 termok=no
4223 rm -f core conftest.err conftest.$ac_objext \
4224 conftest$ac_exeext conftest.$ac_ext
4225 LIBS=$SAVE_LIBS
4226 if test $termok = no; then TERMLIBS=""; fi
4230 if test "x$TERMLIBS" = x; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find terminal libraries - configure failed" >&5
4232 $as_echo "Cannot find terminal libraries - configure failed" >&6; }
4233 exit 1
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $TERMLIBS" >&5
4236 $as_echo "using $TERMLIBS" >&6; }
4237 LIBS="$LIBS $TERMLIBS"
4239 # Checks for header files.
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4241 $as_echo_n "checking for ANSI C header files... " >&6; }
4242 if ${ac_cv_header_stdc+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <stdlib.h>
4248 #include <stdarg.h>
4249 #include <string.h>
4250 #include <float.h>
4253 main ()
4257 return 0;
4259 _ACEOF
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_header_stdc=yes
4262 else
4263 ac_cv_header_stdc=no
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 if test $ac_cv_header_stdc = yes; then
4268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 #include <string.h>
4273 _ACEOF
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 $EGREP "memchr" >/dev/null 2>&1; then :
4277 else
4278 ac_cv_header_stdc=no
4280 rm -f conftest*
4284 if test $ac_cv_header_stdc = yes; then
4285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #include <stdlib.h>
4290 _ACEOF
4291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292 $EGREP "free" >/dev/null 2>&1; then :
4294 else
4295 ac_cv_header_stdc=no
4297 rm -f conftest*
4301 if test $ac_cv_header_stdc = yes; then
4302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4303 if test "$cross_compiling" = yes; then :
4305 else
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <ctype.h>
4309 #include <stdlib.h>
4310 #if ((' ' & 0x0FF) == 0x020)
4311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4313 #else
4314 # define ISLOWER(c) \
4315 (('a' <= (c) && (c) <= 'i') \
4316 || ('j' <= (c) && (c) <= 'r') \
4317 || ('s' <= (c) && (c) <= 'z'))
4318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4319 #endif
4321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4323 main ()
4325 int i;
4326 for (i = 0; i < 256; i++)
4327 if (XOR (islower (i), ISLOWER (i))
4328 || toupper (i) != TOUPPER (i))
4329 return 2;
4330 return 0;
4332 _ACEOF
4333 if ac_fn_c_try_run "$LINENO"; then :
4335 else
4336 ac_cv_header_stdc=no
4338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4339 conftest.$ac_objext conftest.beam conftest.$ac_ext
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4345 $as_echo "$ac_cv_header_stdc" >&6; }
4346 if test $ac_cv_header_stdc = yes; then
4348 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4354 inttypes.h stdint.h unistd.h
4355 do :
4356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4357 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4360 cat >>confdefs.h <<_ACEOF
4361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362 _ACEOF
4366 done
4369 for ac_header in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h wctype.h
4370 do :
4371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4373 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4374 cat >>confdefs.h <<_ACEOF
4375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4376 _ACEOF
4380 done
4383 # Checks for typedefs, structures, and compiler characteristics.
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4385 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4386 if ${ac_cv_header_stat_broken+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391 #include <sys/types.h>
4392 #include <sys/stat.h>
4394 #if defined S_ISBLK && defined S_IFDIR
4395 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4396 #endif
4398 #if defined S_ISBLK && defined S_IFCHR
4399 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4400 #endif
4402 #if defined S_ISLNK && defined S_IFREG
4403 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4404 #endif
4406 #if defined S_ISSOCK && defined S_IFREG
4407 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4408 #endif
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_cv_header_stat_broken=no
4413 else
4414 ac_cv_header_stat_broken=yes
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4419 $as_echo "$ac_cv_header_stat_broken" >&6; }
4420 if test $ac_cv_header_stat_broken = yes; then
4422 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4427 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4428 if ${ac_cv_c_const+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4435 main ()
4437 /* FIXME: Include the comments suggested by Paul. */
4438 #ifndef __cplusplus
4439 /* Ultrix mips cc rejects this. */
4440 typedef int charset[2];
4441 const charset cs;
4442 /* SunOS 4.1.1 cc rejects this. */
4443 char const *const *pcpcc;
4444 char **ppc;
4445 /* NEC SVR4.0.2 mips cc rejects this. */
4446 struct point {int x, y;};
4447 static struct point const zero = {0,0};
4448 /* AIX XL C 1.02.0.0 rejects this.
4449 It does not let you subtract one const X* pointer from another in
4450 an arm of an if-expression whose if-part is not a constant
4451 expression */
4452 const char *g = "string";
4453 pcpcc = &g + (g ? g-g : 0);
4454 /* HPUX 7.0 cc rejects these. */
4455 ++pcpcc;
4456 ppc = (char**) pcpcc;
4457 pcpcc = (char const *const *) ppc;
4458 { /* SCO 3.2v4 cc rejects this. */
4459 char *t;
4460 char const *s = 0 ? (char *) 0 : (char const *) 0;
4462 *t++ = 0;
4463 if (s) return 0;
4465 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4466 int x[] = {25, 17};
4467 const int *foo = &x[0];
4468 ++foo;
4470 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4471 typedef const int *iptr;
4472 iptr p = 0;
4473 ++p;
4475 { /* AIX XL C 1.02.0.0 rejects this saying
4476 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4477 struct s { int j; const int *ap[3]; };
4478 struct s *b; b->j = 5;
4480 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4481 const int foo = 10;
4482 if (!foo) return 0;
4484 return !cs[0] && !zero.x;
4485 #endif
4488 return 0;
4490 _ACEOF
4491 if ac_fn_c_try_compile "$LINENO"; then :
4492 ac_cv_c_const=yes
4493 else
4494 ac_cv_c_const=no
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4499 $as_echo "$ac_cv_c_const" >&6; }
4500 if test $ac_cv_c_const = no; then
4502 $as_echo "#define const /**/" >>confdefs.h
4506 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4507 if test "x$ac_cv_type_off_t" = xyes; then :
4509 else
4511 cat >>confdefs.h <<_ACEOF
4512 #define off_t long int
4513 _ACEOF
4517 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4518 if test "x$ac_cv_type_size_t" = xyes; then :
4520 else
4522 cat >>confdefs.h <<_ACEOF
4523 #define size_t unsigned int
4524 _ACEOF
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4529 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4530 if ${ac_cv_header_time+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <sys/types.h>
4536 #include <sys/time.h>
4537 #include <time.h>
4540 main ()
4542 if ((struct tm *) 0)
4543 return 0;
4545 return 0;
4547 _ACEOF
4548 if ac_fn_c_try_compile "$LINENO"; then :
4549 ac_cv_header_time=yes
4550 else
4551 ac_cv_header_time=no
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4556 $as_echo "$ac_cv_header_time" >&6; }
4557 if test $ac_cv_header_time = yes; then
4559 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4564 # Autoheader templates for symbols defined later by AC_DEFINE.
4594 # Checks for identifiers.
4595 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4596 if test "x$ac_cv_type_off_t" = xyes; then :
4598 else
4600 cat >>confdefs.h <<_ACEOF
4601 #define off_t long int
4602 _ACEOF
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void" >&5
4607 $as_echo_n "checking for void... " >&6; }
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4612 main ()
4614 void *foo = 0;
4616 return 0;
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4621 $as_echo "yes" >&6; }; $as_echo "#define HAVE_VOID 1" >>confdefs.h
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const" >&5
4629 $as_echo_n "checking for const... " >&6; }
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4634 main ()
4636 const int foo = 0;
4638 return 0;
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4643 $as_echo "yes" >&6; }; $as_echo "#define HAVE_CONST 1" >>confdefs.h
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
4651 $as_echo_n "checking for time_t... " >&6; }
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 #include <time.h>
4656 main ()
4658 time_t t = 0;
4660 return 0;
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4665 $as_echo "yes" >&6; }; $as_echo "#define HAVE_TIME_T 1" >>confdefs.h
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5
4673 $as_echo_n "checking for st_ino in struct stat... " >&6; }
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <sys/types.h>
4677 #include <sys/stat.h>
4679 main ()
4681 struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
4683 return 0;
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4688 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STAT_INO 1" >>confdefs.h
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 # Checks for library functions.
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4698 $as_echo_n "checking return type of signal handlers... " >&6; }
4699 if ${ac_cv_type_signal+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 #include <signal.h>
4708 main ()
4710 return *(signal (0, 0)) (0) == 1;
4712 return 0;
4714 _ACEOF
4715 if ac_fn_c_try_compile "$LINENO"; then :
4716 ac_cv_type_signal=int
4717 else
4718 ac_cv_type_signal=void
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4723 $as_echo "$ac_cv_type_signal" >&6; }
4725 cat >>confdefs.h <<_ACEOF
4726 #define RETSIGTYPE $ac_cv_type_signal
4727 _ACEOF
4730 for ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod
4731 do :
4732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4734 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4735 cat >>confdefs.h <<_ACEOF
4736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4737 _ACEOF
4740 done
4743 # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
4745 $as_echo_n "checking for memcpy... " >&6; }
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4749 #if HAVE_STRING_H
4750 #include <string.h>
4751 #endif
4753 main ()
4755 memcpy(0,0,0);
4757 return 0;
4759 _ACEOF
4760 if ac_fn_c_try_link "$LINENO"; then :
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4762 $as_echo "yes" >&6; }; $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4768 rm -f core conftest.err conftest.$ac_objext \
4769 conftest$ac_exeext conftest.$ac_ext
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5
4772 $as_echo_n "checking for strchr... " >&6; }
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4776 #if HAVE_STRING_H
4777 #include <string.h>
4778 #endif
4780 main ()
4782 strchr("x",'x');
4784 return 0;
4786 _ACEOF
4787 if ac_fn_c_try_link "$LINENO"; then :
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRCHR 1" >>confdefs.h
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4795 rm -f core conftest.err conftest.$ac_objext \
4796 conftest$ac_exeext conftest.$ac_ext
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5
4799 $as_echo_n "checking for strstr... " >&6; }
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4803 #if HAVE_STRING_H
4804 #include <string.h>
4805 #endif
4807 main ()
4809 strstr("x","x");
4811 return 0;
4813 _ACEOF
4814 if ac_fn_c_try_link "$LINENO"; then :
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4816 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4822 rm -f core conftest.err conftest.$ac_objext \
4823 conftest$ac_exeext conftest.$ac_ext
4825 # Some systems have termios.h but not the corresponding functions.
4826 ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
4827 if test "x$ac_cv_func_tcgetattr" = xyes; then :
4828 $as_echo "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5
4834 $as_echo_n "checking for fileno... " >&6; }
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4838 #if HAVE_STDIO_H
4839 #include <stdio.h>
4840 #endif
4842 main ()
4844 static int x; x = fileno(stdin);
4846 return 0;
4848 _ACEOF
4849 if ac_fn_c_try_link "$LINENO"; then :
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FILENO 1" >>confdefs.h
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4857 rm -f core conftest.err conftest.$ac_objext \
4858 conftest$ac_exeext conftest.$ac_ext
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5
4861 $as_echo_n "checking for strerror... " >&6; }
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4865 #if HAVE_STDIO_H
4866 #include <stdio.h>
4867 #endif
4868 #if HAVE_STRING_H
4869 #include <string.h>
4870 #endif
4871 #if HAVE_ERRNO_H
4872 #include <errno.h>
4873 #endif
4875 main ()
4877 static char *x; x = strerror(0);
4879 return 0;
4881 _ACEOF
4882 if ac_fn_c_try_link "$LINENO"; then :
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4884 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4890 rm -f core conftest.err conftest.$ac_objext \
4891 conftest$ac_exeext conftest.$ac_ext
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
4894 $as_echo_n "checking for sys_errlist... " >&6; }
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4899 main ()
4901 extern char *sys_errlist[]; static char **x; x = sys_errlist;
4903 return 0;
4905 _ACEOF
4906 if ac_fn_c_try_link "$LINENO"; then :
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4908 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4914 rm -f core conftest.err conftest.$ac_objext \
4915 conftest$ac_exeext conftest.$ac_ext
4917 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
4919 if test "x$ac_cv_type_sigset_t" = xyes; then :
4921 cat >>confdefs.h <<_ACEOF
4922 #define HAVE_SIGSET_T 1
4923 _ACEOF
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5
4930 $as_echo_n "checking for sigemptyset... " >&6; }
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4934 #include <signal.h>
4937 main ()
4939 sigset_t s; sigemptyset(&s);
4941 return 0;
4943 _ACEOF
4944 if ac_fn_c_try_link "$LINENO"; then :
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4946 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4952 rm -f core conftest.err conftest.$ac_objext \
4953 conftest$ac_exeext conftest.$ac_ext
4955 have_errno=no
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4957 $as_echo_n "checking for errno... " >&6; }
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4961 #if HAVE_ERRNO_H
4962 #include <errno.h>
4963 #endif
4965 main ()
4967 static int x; x = errno;
4969 return 0;
4971 _ACEOF
4972 if ac_fn_c_try_link "$LINENO"; then :
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
4974 $as_echo "yes - in errno.h" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4975 have_errno=yes
4977 rm -f core conftest.err conftest.$ac_objext \
4978 conftest$ac_exeext conftest.$ac_ext
4979 if test $have_errno = no; then
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4983 #if HAVE_ERRNO_H
4984 #include <errno.h>
4985 #endif
4987 main ()
4989 extern int errno; static int x; x = errno;
4991 return 0;
4993 _ACEOF
4994 if ac_fn_c_try_link "$LINENO"; then :
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
4996 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4997 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5003 rm -f core conftest.err conftest.$ac_objext \
5004 conftest$ac_exeext conftest.$ac_ext
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
5008 $as_echo_n "checking for locale... " >&6; }
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #include <locale.h>
5012 #include <ctype.h>
5013 #include <langinfo.h>
5015 main ()
5017 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
5019 return 0;
5021 _ACEOF
5022 if ac_fn_c_try_link "$LINENO"; then :
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5024 $as_echo "yes" >&6; }; $as_echo "#define HAVE_LOCALE 1" >>confdefs.h
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5030 rm -f core conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5
5034 $as_echo_n "checking for ctype functions... " >&6; }
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5038 #if HAVE_CTYPE_H
5039 #include <ctype.h>
5040 #endif
5042 main ()
5044 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
5046 return 0;
5048 _ACEOF
5049 if ac_fn_c_try_link "$LINENO"; then :
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5051 $as_echo "yes" >&6; }; $as_echo "#define HAVE_UPPER_LOWER 1" >>confdefs.h
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5057 rm -f core conftest.err conftest.$ac_objext \
5058 conftest$ac_exeext conftest.$ac_ext
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5
5061 $as_echo_n "checking for wctype functions... " >&6; }
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 #include <wctype.h>
5066 main ()
5068 iswlower(0); iswupper(0); towlower(0); towupper(0);
5070 return 0;
5072 _ACEOF
5073 if ac_fn_c_try_link "$LINENO"; then :
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5075 $as_echo "yes" >&6; }; $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5081 rm -f core conftest.err conftest.$ac_objext \
5082 conftest$ac_exeext conftest.$ac_ext
5084 # Checks for external variable ospeed in the termcap library.
5085 have_ospeed=no
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5
5087 $as_echo_n "checking termcap for ospeed... " >&6; }
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5091 #include <sys/types.h>
5092 #if HAVE_TERMIOS_H
5093 #include <termios.h>
5094 #endif
5095 #if HAVE_TERMCAP_H
5096 #include <termcap.h>
5097 #endif
5099 main ()
5101 ospeed = 0;
5103 return 0;
5105 _ACEOF
5106 if ac_fn_c_try_link "$LINENO"; then :
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5
5108 $as_echo "yes - in termcap.h" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5109 have_ospeed=yes
5111 rm -f core conftest.err conftest.$ac_objext \
5112 conftest$ac_exeext conftest.$ac_ext
5113 if test $have_ospeed = no; then
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5118 main ()
5120 extern short ospeed; ospeed = 0;
5122 return 0;
5124 _ACEOF
5125 if ac_fn_c_try_link "$LINENO"; then :
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5127 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5128 $as_echo "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5134 rm -f core conftest.err conftest.$ac_objext \
5135 conftest$ac_exeext conftest.$ac_ext
5138 # Compile in secure mode?
5140 # Check whether --with-secure was given.
5141 if test "${with_secure+set}" = set; then :
5142 withval=$with_secure; $as_echo "#define SECURE_COMPILE 1" >>confdefs.h
5144 else
5145 $as_echo "#define SECURE_COMPILE 0" >>confdefs.h
5150 # Should we use floating point?
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floating point" >&5
5152 $as_echo_n "checking for floating point... " >&6; }
5154 # Check whether --with-no-float was given.
5155 if test "${with_no_float+set}" = set; then :
5156 withval=$with_no_float; WANT_NO_FLOAT=1
5157 else
5158 WANT_NO_FLOAT=0
5161 if test $WANT_NO_FLOAT = 0; then
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5166 main ()
5168 double f1 = 12.5; double f2 = f1*f1/2.5;
5170 return 0;
5172 _ACEOF
5173 if ac_fn_c_try_link "$LINENO"; then :
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT 1" >>confdefs.h
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5181 rm -f core conftest.err conftest.$ac_objext \
5182 conftest$ac_exeext conftest.$ac_ext
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by user" >&5
5185 $as_echo "disabled by user" >&6; }
5188 # Checks for regular expression functions.
5189 have_regex=no
5190 have_posix_regex=unknown
5191 supported_regex=""
5193 # Select a regular expression library.
5194 WANT_REGEX=auto
5196 # Check whether --with-regex was given.
5197 if test "${with_regex+set}" = set; then :
5198 withval=$with_regex; WANT_REGEX="$withval"
5202 if test $have_regex = no; then
5203 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
5204 # Some versions of Solaris have a regcomp() function, but it doesn't work!
5205 # So we run a test program. If we're cross-compiling, do it the old way.
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX regcomp" >&5
5207 $as_echo_n "checking for POSIX regcomp... " >&6; }
5208 if test "$cross_compiling" = yes; then :
5209 have_posix_regex=unknown
5210 else
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5214 #include <sys/types.h>
5215 #include <regex.h>
5216 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5217 if (regcomp(&r, "abc", 0)) exit(1);
5218 if (regexec(&r, text, 1, &rm, 0)) exit(1);
5219 #ifndef __WATCOMC__
5220 if (rm.rm_so != 1) exit(1); /* check for correct offset */
5221 #else
5222 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5223 #endif
5224 exit(0); }
5225 _ACEOF
5226 if ac_fn_c_try_run "$LINENO"; then :
5227 have_posix_regex=yes
5228 else
5229 have_posix_regex=no
5231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5232 conftest.$ac_objext conftest.beam conftest.$ac_ext
5235 if test $have_posix_regex = yes; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5237 $as_echo "yes" >&6; }
5238 $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5239 supported_regex="$supported_regex posix"
5240 have_regex=yes
5241 elif test $have_posix_regex = unknown; then
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5245 #include <sys/types.h>
5246 #include <regex.h>
5248 main ()
5250 regex_t *r; regfree(r);
5252 return 0;
5254 _ACEOF
5255 if ac_fn_c_try_link "$LINENO"; then :
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5257 $as_echo "yes" >&6; }
5258 $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5259 have_regex=yes; supported_regex="$supported_regex posix"
5261 rm -f core conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263 else
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5270 if test $have_regex = no; then
5271 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
5273 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
5274 if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 ac_check_lib_save_LIBS=$LIBS
5278 LIBS="-lpcre $LIBS"
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5282 /* Override any GCC internal prototype to avoid an error.
5283 Use char because int might match the return type of a GCC
5284 builtin and then its argument prototype would still apply. */
5285 #ifdef __cplusplus
5286 extern "C"
5287 #endif
5288 char pcre_compile ();
5290 main ()
5292 return pcre_compile ();
5294 return 0;
5296 _ACEOF
5297 if ac_fn_c_try_link "$LINENO"; then :
5298 ac_cv_lib_pcre_pcre_compile=yes
5299 else
5300 ac_cv_lib_pcre_pcre_compile=no
5302 rm -f core conftest.err conftest.$ac_objext \
5303 conftest$ac_exeext conftest.$ac_ext
5304 LIBS=$ac_check_lib_save_LIBS
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
5307 $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
5308 if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
5309 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
5310 LIBS="$LIBS -lpcre" have_regex=yes; supported_regex="$supported_regex pcre"
5316 if test $have_regex = no; then
5317 if test $WANT_REGEX = auto -o $WANT_REGEX = gnu; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re_compile_pattern in -lc" >&5
5319 $as_echo_n "checking for re_compile_pattern in -lc... " >&6; }
5320 if ${ac_cv_lib_c_re_compile_pattern+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 ac_check_lib_save_LIBS=$LIBS
5324 LIBS="-lc $LIBS"
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5328 /* Override any GCC internal prototype to avoid an error.
5329 Use char because int might match the return type of a GCC
5330 builtin and then its argument prototype would still apply. */
5331 #ifdef __cplusplus
5332 extern "C"
5333 #endif
5334 char re_compile_pattern ();
5336 main ()
5338 return re_compile_pattern ();
5340 return 0;
5342 _ACEOF
5343 if ac_fn_c_try_link "$LINENO"; then :
5344 ac_cv_lib_c_re_compile_pattern=yes
5345 else
5346 ac_cv_lib_c_re_compile_pattern=no
5348 rm -f core conftest.err conftest.$ac_objext \
5349 conftest$ac_exeext conftest.$ac_ext
5350 LIBS=$ac_check_lib_save_LIBS
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_re_compile_pattern" >&5
5353 $as_echo "$ac_cv_lib_c_re_compile_pattern" >&6; }
5354 if test "x$ac_cv_lib_c_re_compile_pattern" = xyes; then :
5355 $as_echo "#define HAVE_GNU_REGEX 1" >>confdefs.h
5356 have_regex=yes; supported_regex="$supported_regex gnu"
5362 if test $have_regex = no; then
5363 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
5364 ac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp"
5365 if test "x$ac_cv_func_regcmp" = xyes; then :
5366 $as_echo "#define HAVE_REGCMP 1" >>confdefs.h
5367 have_regex=yes; supported_regex="$supported_regex regcmp"
5373 if test $have_regex = no; then
5374 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V8 regcomp" >&5
5376 $as_echo_n "checking for V8 regcomp... " >&6; }
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5380 #include "regexp.h"
5382 main ()
5384 regcomp("");
5386 return 0;
5388 _ACEOF
5389 if ac_fn_c_try_link "$LINENO"; then :
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391 $as_echo "yes" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5392 have_regex=yes; supported_regex="$supported_regex regcomp"
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5397 rm -f core conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5402 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
5403 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5
5405 $as_echo "using V8 regcomp -- local source" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5407 supported_regex="$supported_regex regcomp-local"
5408 $as_echo "#define HAVE_REGEXEC2 1" >>confdefs.h
5409 REGEX_O='regexp.$(O)' have_regex=yes
5413 if test $have_regex = no; then
5414 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re_comp" >&5
5416 $as_echo_n "checking for re_comp... " >&6; }
5417 ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
5418 if test "x$ac_cv_func_re_comp" = xyes; then :
5419 $as_echo "#define HAVE_RE_COMP 1" >>confdefs.h
5420 have_regex=yes; supported_regex="$supported_regex re_comp"
5426 if test $have_regex = no; then
5427 if test $WANT_REGEX = auto -o $WANT_REGEX = none; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using no regex" >&5
5429 $as_echo "using no regex" >&6; }
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find regular expression library" >&5
5432 $as_echo "$as_me: WARNING: cannot find regular expression library" >&2;}
5434 $as_echo "#define NO_REGEX 1" >>confdefs.h
5435 supported_regex="$supported_regex none"
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: regular expression library: $supported_regex" >&5
5439 $as_echo "regular expression library: $supported_regex" >&6; }
5442 # Check whether --with-editor was given.
5443 if test "${with_editor+set}" = set; then :
5444 withval=$with_editor; cat >>confdefs.h <<_ACEOF
5445 #define EDIT_PGM "$withval"
5446 _ACEOF
5448 else
5449 $as_echo "#define EDIT_PGM \"vi\"" >>confdefs.h
5456 ac_config_files="$ac_config_files Makefile"
5458 cat >confcache <<\_ACEOF
5459 # This file is a shell script that caches the results of configure
5460 # tests run on this system so they can be shared between configure
5461 # scripts and configure runs, see configure's option --config-cache.
5462 # It is not useful on other systems. If it contains results you don't
5463 # want to keep, you may remove or edit it.
5465 # config.status only pays attention to the cache file if you give it
5466 # the --recheck option to rerun configure.
5468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5470 # following values.
5472 _ACEOF
5474 # The following way of writing the cache mishandles newlines in values,
5475 # but we know of no workaround that is simple, portable, and efficient.
5476 # So, we kill variables containing newlines.
5477 # Ultrix sh set writes to stderr and can't be redirected directly,
5478 # and sets the high bit in the cache file unless we assign to the vars.
5480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5481 eval ac_val=\$$ac_var
5482 case $ac_val in #(
5483 *${as_nl}*)
5484 case $ac_var in #(
5485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5487 esac
5488 case $ac_var in #(
5489 _ | IFS | as_nl) ;; #(
5490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5491 *) { eval $ac_var=; unset $ac_var;} ;;
5492 esac ;;
5493 esac
5494 done
5496 (set) 2>&1 |
5497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5498 *${as_nl}ac_space=\ *)
5499 # `set' does not quote correctly, so add quotes: double-quote
5500 # substitution turns \\\\ into \\, and sed turns \\ into \.
5501 sed -n \
5502 "s/'/'\\\\''/g;
5503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5504 ;; #(
5506 # `set' quotes correctly as required by POSIX, so do not add quotes.
5507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5509 esac |
5510 sort
5512 sed '
5513 /^ac_cv_env_/b end
5514 t clear
5515 :clear
5516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5517 t end
5518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5519 :end' >>confcache
5520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5521 if test -w "$cache_file"; then
5522 if test "x$cache_file" != "x/dev/null"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5524 $as_echo "$as_me: updating cache $cache_file" >&6;}
5525 if test ! -f "$cache_file" || test -h "$cache_file"; then
5526 cat confcache >"$cache_file"
5527 else
5528 case $cache_file in #(
5529 */* | ?:*)
5530 mv -f confcache "$cache_file"$$ &&
5531 mv -f "$cache_file"$$ "$cache_file" ;; #(
5533 mv -f confcache "$cache_file" ;;
5534 esac
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5542 rm -f confcache
5544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5545 # Let make expand exec_prefix.
5546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5548 DEFS=-DHAVE_CONFIG_H
5550 ac_libobjs=
5551 ac_ltlibobjs=
5553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5554 # 1. Remove the extension, and $U if already installed.
5555 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5556 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5558 # will be set to the directory where LIBOBJS objects are built.
5559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5561 done
5562 LIBOBJS=$ac_libobjs
5564 LTLIBOBJS=$ac_ltlibobjs
5568 : "${CONFIG_STATUS=./config.status}"
5569 ac_write_fail=0
5570 ac_clean_files_save=$ac_clean_files
5571 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5573 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5574 as_write_fail=0
5575 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5576 #! $SHELL
5577 # Generated by $as_me.
5578 # Run this file to recreate the current configuration.
5579 # Compiler output produced by configure, useful for debugging
5580 # configure, is in config.log if it exists.
5582 debug=false
5583 ac_cs_recheck=false
5584 ac_cs_silent=false
5586 SHELL=\${CONFIG_SHELL-$SHELL}
5587 export SHELL
5588 _ASEOF
5589 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5590 ## -------------------- ##
5591 ## M4sh Initialization. ##
5592 ## -------------------- ##
5594 # Be more Bourne compatible
5595 DUALCASE=1; export DUALCASE # for MKS sh
5596 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5597 emulate sh
5598 NULLCMD=:
5599 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5600 # is contrary to our usage. Disable this feature.
5601 alias -g '${1+"$@"}'='"$@"'
5602 setopt NO_GLOB_SUBST
5603 else
5604 case `(set -o) 2>/dev/null` in #(
5605 *posix*) :
5606 set -o posix ;; #(
5607 *) :
5609 esac
5613 as_nl='
5615 export as_nl
5616 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5617 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5618 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5619 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5620 # Prefer a ksh shell builtin over an external printf program on Solaris,
5621 # but without wasting forks for bash or zsh.
5622 if test -z "$BASH_VERSION$ZSH_VERSION" \
5623 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5624 as_echo='print -r --'
5625 as_echo_n='print -rn --'
5626 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5627 as_echo='printf %s\n'
5628 as_echo_n='printf %s'
5629 else
5630 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5631 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5632 as_echo_n='/usr/ucb/echo -n'
5633 else
5634 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5635 as_echo_n_body='eval
5636 arg=$1;
5637 case $arg in #(
5638 *"$as_nl"*)
5639 expr "X$arg" : "X\\(.*\\)$as_nl";
5640 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5641 esac;
5642 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5644 export as_echo_n_body
5645 as_echo_n='sh -c $as_echo_n_body as_echo'
5647 export as_echo_body
5648 as_echo='sh -c $as_echo_body as_echo'
5651 # The user is always right.
5652 if test "${PATH_SEPARATOR+set}" != set; then
5653 PATH_SEPARATOR=:
5654 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5655 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5656 PATH_SEPARATOR=';'
5661 # IFS
5662 # We need space, tab and new line, in precisely that order. Quoting is
5663 # there to prevent editors from complaining about space-tab.
5664 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5665 # splitting by setting IFS to empty value.)
5666 IFS=" "" $as_nl"
5668 # Find who we are. Look in the path if we contain no directory separator.
5669 as_myself=
5670 case $0 in #((
5671 *[\\/]* ) as_myself=$0 ;;
5672 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5678 done
5679 IFS=$as_save_IFS
5682 esac
5683 # We did not find ourselves, most probably we were run as `sh COMMAND'
5684 # in which case we are not to be found in the path.
5685 if test "x$as_myself" = x; then
5686 as_myself=$0
5688 if test ! -f "$as_myself"; then
5689 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5690 exit 1
5693 # Unset variables that we do not need and which cause bugs (e.g. in
5694 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5695 # suppresses any "Segmentation fault" message there. '((' could
5696 # trigger a bug in pdksh 5.2.14.
5697 for as_var in BASH_ENV ENV MAIL MAILPATH
5698 do eval test x\${$as_var+set} = xset \
5699 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5700 done
5701 PS1='$ '
5702 PS2='> '
5703 PS4='+ '
5705 # NLS nuisances.
5706 LC_ALL=C
5707 export LC_ALL
5708 LANGUAGE=C
5709 export LANGUAGE
5711 # CDPATH.
5712 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5715 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5716 # ----------------------------------------
5717 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5718 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5719 # script with STATUS, using 1 if that was 0.
5720 as_fn_error ()
5722 as_status=$1; test $as_status -eq 0 && as_status=1
5723 if test "$4"; then
5724 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5725 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5727 $as_echo "$as_me: error: $2" >&2
5728 as_fn_exit $as_status
5729 } # as_fn_error
5732 # as_fn_set_status STATUS
5733 # -----------------------
5734 # Set $? to STATUS, without forking.
5735 as_fn_set_status ()
5737 return $1
5738 } # as_fn_set_status
5740 # as_fn_exit STATUS
5741 # -----------------
5742 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5743 as_fn_exit ()
5745 set +e
5746 as_fn_set_status $1
5747 exit $1
5748 } # as_fn_exit
5750 # as_fn_unset VAR
5751 # ---------------
5752 # Portably unset VAR.
5753 as_fn_unset ()
5755 { eval $1=; unset $1;}
5757 as_unset=as_fn_unset
5758 # as_fn_append VAR VALUE
5759 # ----------------------
5760 # Append the text in VALUE to the end of the definition contained in VAR. Take
5761 # advantage of any shell optimizations that allow amortized linear growth over
5762 # repeated appends, instead of the typical quadratic growth present in naive
5763 # implementations.
5764 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5765 eval 'as_fn_append ()
5767 eval $1+=\$2
5769 else
5770 as_fn_append ()
5772 eval $1=\$$1\$2
5774 fi # as_fn_append
5776 # as_fn_arith ARG...
5777 # ------------------
5778 # Perform arithmetic evaluation on the ARGs, and store the result in the
5779 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5780 # must be portable across $(()) and expr.
5781 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5782 eval 'as_fn_arith ()
5784 as_val=$(( $* ))
5786 else
5787 as_fn_arith ()
5789 as_val=`expr "$@" || test $? -eq 1`
5791 fi # as_fn_arith
5794 if expr a : '\(a\)' >/dev/null 2>&1 &&
5795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5796 as_expr=expr
5797 else
5798 as_expr=false
5801 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5802 as_basename=basename
5803 else
5804 as_basename=false
5807 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5808 as_dirname=dirname
5809 else
5810 as_dirname=false
5813 as_me=`$as_basename -- "$0" ||
5814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5815 X"$0" : 'X\(//\)$' \| \
5816 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5817 $as_echo X/"$0" |
5818 sed '/^.*\/\([^/][^/]*\)\/*$/{
5819 s//\1/
5822 /^X\/\(\/\/\)$/{
5823 s//\1/
5826 /^X\/\(\/\).*/{
5827 s//\1/
5830 s/.*/./; q'`
5832 # Avoid depending upon Character Ranges.
5833 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5834 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5835 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5836 as_cr_digits='0123456789'
5837 as_cr_alnum=$as_cr_Letters$as_cr_digits
5839 ECHO_C= ECHO_N= ECHO_T=
5840 case `echo -n x` in #(((((
5841 -n*)
5842 case `echo 'xy\c'` in
5843 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5844 xy) ECHO_C='\c';;
5845 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5846 ECHO_T=' ';;
5847 esac;;
5849 ECHO_N='-n';;
5850 esac
5852 rm -f conf$$ conf$$.exe conf$$.file
5853 if test -d conf$$.dir; then
5854 rm -f conf$$.dir/conf$$.file
5855 else
5856 rm -f conf$$.dir
5857 mkdir conf$$.dir 2>/dev/null
5859 if (echo >conf$$.file) 2>/dev/null; then
5860 if ln -s conf$$.file conf$$ 2>/dev/null; then
5861 as_ln_s='ln -s'
5862 # ... but there are two gotchas:
5863 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5864 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5865 # In both cases, we have to default to `cp -p'.
5866 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5867 as_ln_s='cp -p'
5868 elif ln conf$$.file conf$$ 2>/dev/null; then
5869 as_ln_s=ln
5870 else
5871 as_ln_s='cp -p'
5873 else
5874 as_ln_s='cp -p'
5876 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5877 rmdir conf$$.dir 2>/dev/null
5880 # as_fn_mkdir_p
5881 # -------------
5882 # Create "$as_dir" as a directory, including parents if necessary.
5883 as_fn_mkdir_p ()
5886 case $as_dir in #(
5887 -*) as_dir=./$as_dir;;
5888 esac
5889 test -d "$as_dir" || eval $as_mkdir_p || {
5890 as_dirs=
5891 while :; do
5892 case $as_dir in #(
5893 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5894 *) as_qdir=$as_dir;;
5895 esac
5896 as_dirs="'$as_qdir' $as_dirs"
5897 as_dir=`$as_dirname -- "$as_dir" ||
5898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5899 X"$as_dir" : 'X\(//\)[^/]' \| \
5900 X"$as_dir" : 'X\(//\)$' \| \
5901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5902 $as_echo X"$as_dir" |
5903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5904 s//\1/
5907 /^X\(\/\/\)[^/].*/{
5908 s//\1/
5911 /^X\(\/\/\)$/{
5912 s//\1/
5915 /^X\(\/\).*/{
5916 s//\1/
5919 s/.*/./; q'`
5920 test -d "$as_dir" && break
5921 done
5922 test -z "$as_dirs" || eval "mkdir $as_dirs"
5923 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5926 } # as_fn_mkdir_p
5927 if mkdir -p . 2>/dev/null; then
5928 as_mkdir_p='mkdir -p "$as_dir"'
5929 else
5930 test -d ./-p && rmdir ./-p
5931 as_mkdir_p=false
5934 if test -x / >/dev/null 2>&1; then
5935 as_test_x='test -x'
5936 else
5937 if ls -dL / >/dev/null 2>&1; then
5938 as_ls_L_option=L
5939 else
5940 as_ls_L_option=
5942 as_test_x='
5943 eval sh -c '\''
5944 if test -d "$1"; then
5945 test -d "$1/.";
5946 else
5947 case $1 in #(
5948 -*)set "./$1";;
5949 esac;
5950 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5951 ???[sx]*):;;*)false;;esac;fi
5952 '\'' sh
5955 as_executable_p=$as_test_x
5957 # Sed expression to map a string onto a valid CPP name.
5958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5960 # Sed expression to map a string onto a valid variable name.
5961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5964 exec 6>&1
5965 ## ----------------------------------- ##
5966 ## Main body of $CONFIG_STATUS script. ##
5967 ## ----------------------------------- ##
5968 _ASEOF
5969 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5972 # Save the log message, to keep $0 and so on meaningful, and to
5973 # report actual input values of CONFIG_FILES etc. instead of their
5974 # values after options handling.
5975 ac_log="
5976 This file was extended by less $as_me 1, which was
5977 generated by GNU Autoconf 2.68. Invocation command line was
5979 CONFIG_FILES = $CONFIG_FILES
5980 CONFIG_HEADERS = $CONFIG_HEADERS
5981 CONFIG_LINKS = $CONFIG_LINKS
5982 CONFIG_COMMANDS = $CONFIG_COMMANDS
5983 $ $0 $@
5985 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5988 _ACEOF
5990 case $ac_config_files in *"
5991 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5992 esac
5994 case $ac_config_headers in *"
5995 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5996 esac
5999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6000 # Files that config.status was made for.
6001 config_files="$ac_config_files"
6002 config_headers="$ac_config_headers"
6004 _ACEOF
6006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6007 ac_cs_usage="\
6008 \`$as_me' instantiates files and other configuration actions
6009 from templates according to the current configuration. Unless the files
6010 and actions are specified as TAGs, all are instantiated by default.
6012 Usage: $0 [OPTION]... [TAG]...
6014 -h, --help print this help, then exit
6015 -V, --version print version number and configuration settings, then exit
6016 --config print configuration, then exit
6017 -q, --quiet, --silent
6018 do not print progress messages
6019 -d, --debug don't remove temporary files
6020 --recheck update $as_me by reconfiguring in the same conditions
6021 --file=FILE[:TEMPLATE]
6022 instantiate the configuration file FILE
6023 --header=FILE[:TEMPLATE]
6024 instantiate the configuration header FILE
6026 Configuration files:
6027 $config_files
6029 Configuration headers:
6030 $config_headers
6032 Report bugs to the package provider."
6034 _ACEOF
6035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6036 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6037 ac_cs_version="\\
6038 less config.status 1
6039 configured by $0, generated by GNU Autoconf 2.68,
6040 with options \\"\$ac_cs_config\\"
6042 Copyright (C) 2010 Free Software Foundation, Inc.
6043 This config.status script is free software; the Free Software Foundation
6044 gives unlimited permission to copy, distribute and modify it."
6046 ac_pwd='$ac_pwd'
6047 srcdir='$srcdir'
6048 INSTALL='$INSTALL'
6049 test -n "\$AWK" || AWK=awk
6050 _ACEOF
6052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6053 # The default lists apply if the user does not specify any file.
6054 ac_need_defaults=:
6055 while test $# != 0
6057 case $1 in
6058 --*=?*)
6059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6060 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6061 ac_shift=:
6063 --*=)
6064 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6065 ac_optarg=
6066 ac_shift=:
6069 ac_option=$1
6070 ac_optarg=$2
6071 ac_shift=shift
6073 esac
6075 case $ac_option in
6076 # Handling of the options.
6077 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6078 ac_cs_recheck=: ;;
6079 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6080 $as_echo "$ac_cs_version"; exit ;;
6081 --config | --confi | --conf | --con | --co | --c )
6082 $as_echo "$ac_cs_config"; exit ;;
6083 --debug | --debu | --deb | --de | --d | -d )
6084 debug=: ;;
6085 --file | --fil | --fi | --f )
6086 $ac_shift
6087 case $ac_optarg in
6088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6089 '') as_fn_error $? "missing file argument" ;;
6090 esac
6091 as_fn_append CONFIG_FILES " '$ac_optarg'"
6092 ac_need_defaults=false;;
6093 --header | --heade | --head | --hea )
6094 $ac_shift
6095 case $ac_optarg in
6096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6097 esac
6098 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6099 ac_need_defaults=false;;
6100 --he | --h)
6101 # Conflict between --help and --header
6102 as_fn_error $? "ambiguous option: \`$1'
6103 Try \`$0 --help' for more information.";;
6104 --help | --hel | -h )
6105 $as_echo "$ac_cs_usage"; exit ;;
6106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6108 ac_cs_silent=: ;;
6110 # This is an error.
6111 -*) as_fn_error $? "unrecognized option: \`$1'
6112 Try \`$0 --help' for more information." ;;
6114 *) as_fn_append ac_config_targets " $1"
6115 ac_need_defaults=false ;;
6117 esac
6118 shift
6119 done
6121 ac_configure_extra_args=
6123 if $ac_cs_silent; then
6124 exec 6>/dev/null
6125 ac_configure_extra_args="$ac_configure_extra_args --silent"
6128 _ACEOF
6129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6130 if \$ac_cs_recheck; then
6131 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6132 shift
6133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6134 CONFIG_SHELL='$SHELL'
6135 export CONFIG_SHELL
6136 exec "\$@"
6139 _ACEOF
6140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6141 exec 5>>config.log
6143 echo
6144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6145 ## Running $as_me. ##
6146 _ASBOX
6147 $as_echo "$ac_log"
6148 } >&5
6150 _ACEOF
6151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6152 _ACEOF
6154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6156 # Handling of arguments.
6157 for ac_config_target in $ac_config_targets
6159 case $ac_config_target in
6160 "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
6161 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6163 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6164 esac
6165 done
6168 # If the user did not use the arguments to specify the items to instantiate,
6169 # then the envvar interface is used. Set only those that are not.
6170 # We use the long form for the default assignment because of an extremely
6171 # bizarre bug on SunOS 4.1.3.
6172 if $ac_need_defaults; then
6173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6177 # Have a temporary directory for convenience. Make it in the build tree
6178 # simply because there is no reason against having it here, and in addition,
6179 # creating and moving files from /tmp can sometimes cause problems.
6180 # Hook for its removal unless debugging.
6181 # Note that there is a small window in which the directory will not be cleaned:
6182 # after its creation but before its name has been assigned to `$tmp'.
6183 $debug ||
6185 tmp= ac_tmp=
6186 trap 'exit_status=$?
6187 : "${ac_tmp:=$tmp}"
6188 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6190 trap 'as_fn_exit 1' 1 2 13 15
6192 # Create a (secure) tmp directory for tmp files.
6195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6196 test -d "$tmp"
6197 } ||
6199 tmp=./conf$$-$RANDOM
6200 (umask 077 && mkdir "$tmp")
6201 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6202 ac_tmp=$tmp
6204 # Set up the scripts for CONFIG_FILES section.
6205 # No need to generate them if there are no CONFIG_FILES.
6206 # This happens for instance with `./config.status config.h'.
6207 if test -n "$CONFIG_FILES"; then
6210 ac_cr=`echo X | tr X '\015'`
6211 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6212 # But we know of no other shell where ac_cr would be empty at this
6213 # point, so we can use a bashism as a fallback.
6214 if test "x$ac_cr" = x; then
6215 eval ac_cr=\$\'\\r\'
6217 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6218 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6219 ac_cs_awk_cr='\\r'
6220 else
6221 ac_cs_awk_cr=$ac_cr
6224 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6225 _ACEOF
6229 echo "cat >conf$$subs.awk <<_ACEOF" &&
6230 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6231 echo "_ACEOF"
6232 } >conf$$subs.sh ||
6233 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6234 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6235 ac_delim='%!_!# '
6236 for ac_last_try in false false false false false :; do
6237 . ./conf$$subs.sh ||
6238 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6240 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6241 if test $ac_delim_n = $ac_delim_num; then
6242 break
6243 elif $ac_last_try; then
6244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6245 else
6246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6248 done
6249 rm -f conf$$subs.sh
6251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6252 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6253 _ACEOF
6254 sed -n '
6256 s/^/S["/; s/!.*/"]=/
6259 s/^[^!]*!//
6260 :repl
6261 t repl
6262 s/'"$ac_delim"'$//
6263 t delim
6266 s/\(.\{148\}\)..*/\1/
6267 t more1
6268 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6271 b repl
6272 :more1
6273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6276 s/.\{148\}//
6277 t nl
6278 :delim
6280 s/\(.\{148\}\)..*/\1/
6281 t more2
6282 s/["\\]/\\&/g; s/^/"/; s/$/"/
6285 :more2
6286 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6289 s/.\{148\}//
6290 t delim
6291 ' <conf$$subs.awk | sed '
6292 /^[^""]/{
6294 s/\n//
6296 ' >>$CONFIG_STATUS || ac_write_fail=1
6297 rm -f conf$$subs.awk
6298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6299 _ACAWK
6300 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6301 for (key in S) S_is_set[key] = 1
6302 FS = "\a"
6306 line = $ 0
6307 nfields = split(line, field, "@")
6308 substed = 0
6309 len = length(field[1])
6310 for (i = 2; i < nfields; i++) {
6311 key = field[i]
6312 keylen = length(key)
6313 if (S_is_set[key]) {
6314 value = S[key]
6315 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6316 len += length(value) + length(field[++i])
6317 substed = 1
6318 } else
6319 len += 1 + keylen
6322 print line
6325 _ACAWK
6326 _ACEOF
6327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6328 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6329 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6330 else
6332 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6333 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6334 _ACEOF
6336 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6337 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6338 # trailing colons and then remove the whole line if VPATH becomes empty
6339 # (actually we leave an empty line to preserve line numbers).
6340 if test "x$srcdir" = x.; then
6341 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6343 s///
6344 s/^/:/
6345 s/[ ]*$/:/
6346 s/:\$(srcdir):/:/g
6347 s/:\${srcdir}:/:/g
6348 s/:@srcdir@:/:/g
6349 s/^:*//
6350 s/:*$//
6352 s/\(=[ ]*\).*/\1/
6354 s/\n//
6355 s/^[^=]*=[ ]*$//
6359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6360 fi # test -n "$CONFIG_FILES"
6362 # Set up the scripts for CONFIG_HEADERS section.
6363 # No need to generate them if there are no CONFIG_HEADERS.
6364 # This happens for instance with `./config.status Makefile'.
6365 if test -n "$CONFIG_HEADERS"; then
6366 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6367 BEGIN {
6368 _ACEOF
6370 # Transform confdefs.h into an awk script `defines.awk', embedded as
6371 # here-document in config.status, that substitutes the proper values into
6372 # config.h.in to produce config.h.
6374 # Create a delimiter string that does not exist in confdefs.h, to ease
6375 # handling of long lines.
6376 ac_delim='%!_!# '
6377 for ac_last_try in false false :; do
6378 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6379 if test -z "$ac_tt"; then
6380 break
6381 elif $ac_last_try; then
6382 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6383 else
6384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6386 done
6388 # For the awk script, D is an array of macro values keyed by name,
6389 # likewise P contains macro parameters if any. Preserve backslash
6390 # newline sequences.
6392 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6393 sed -n '
6394 s/.\{148\}/&'"$ac_delim"'/g
6395 t rset
6396 :rset
6397 s/^[ ]*#[ ]*define[ ][ ]*/ /
6398 t def
6400 :def
6401 s/\\$//
6402 t bsnl
6403 s/["\\]/\\&/g
6404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6405 D["\1"]=" \3"/p
6406 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6408 :bsnl
6409 s/["\\]/\\&/g
6410 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6411 D["\1"]=" \3\\\\\\n"\\/p
6412 t cont
6413 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6414 t cont
6416 :cont
6418 s/.\{148\}/&'"$ac_delim"'/g
6419 t clear
6420 :clear
6421 s/\\$//
6422 t bsnlc
6423 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6425 :bsnlc
6426 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6427 b cont
6428 ' <confdefs.h | sed '
6429 s/'"$ac_delim"'/"\\\
6430 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6433 for (key in D) D_is_set[key] = 1
6434 FS = "\a"
6436 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6437 line = \$ 0
6438 split(line, arg, " ")
6439 if (arg[1] == "#") {
6440 defundef = arg[2]
6441 mac1 = arg[3]
6442 } else {
6443 defundef = substr(arg[1], 2)
6444 mac1 = arg[2]
6446 split(mac1, mac2, "(") #)
6447 macro = mac2[1]
6448 prefix = substr(line, 1, index(line, defundef) - 1)
6449 if (D_is_set[macro]) {
6450 # Preserve the white space surrounding the "#".
6451 print prefix "define", macro P[macro] D[macro]
6452 next
6453 } else {
6454 # Replace #undef with comments. This is necessary, for example,
6455 # in the case of _POSIX_SOURCE, which is predefined and required
6456 # on some systems where configure will not decide to define it.
6457 if (defundef == "undef") {
6458 print "/*", prefix defundef, macro, "*/"
6459 next
6463 { print }
6464 _ACAWK
6465 _ACEOF
6466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6467 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6468 fi # test -n "$CONFIG_HEADERS"
6471 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6472 shift
6473 for ac_tag
6475 case $ac_tag in
6476 :[FHLC]) ac_mode=$ac_tag; continue;;
6477 esac
6478 case $ac_mode$ac_tag in
6479 :[FHL]*:*);;
6480 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
6481 :[FH]-) ac_tag=-:-;;
6482 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6483 esac
6484 ac_save_IFS=$IFS
6485 IFS=:
6486 set x $ac_tag
6487 IFS=$ac_save_IFS
6488 shift
6489 ac_file=$1
6490 shift
6492 case $ac_mode in
6493 :L) ac_source=$1;;
6494 :[FH])
6495 ac_file_inputs=
6496 for ac_f
6498 case $ac_f in
6499 -) ac_f="$ac_tmp/stdin";;
6500 *) # Look for the file first in the build tree, then in the source tree
6501 # (if the path is not absolute). The absolute path cannot be DOS-style,
6502 # because $ac_f cannot contain `:'.
6503 test -f "$ac_f" ||
6504 case $ac_f in
6505 [\\/$]*) false;;
6506 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6507 esac ||
6508 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6509 esac
6510 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6511 as_fn_append ac_file_inputs " '$ac_f'"
6512 done
6514 # Let's still pretend it is `configure' which instantiates (i.e., don't
6515 # use $as_me), people would be surprised to read:
6516 # /* config.h. Generated by config.status. */
6517 configure_input='Generated from '`
6518 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6519 `' by configure.'
6520 if test x"$ac_file" != x-; then
6521 configure_input="$ac_file. $configure_input"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6523 $as_echo "$as_me: creating $ac_file" >&6;}
6525 # Neutralize special characters interpreted by sed in replacement strings.
6526 case $configure_input in #(
6527 *\&* | *\|* | *\\* )
6528 ac_sed_conf_input=`$as_echo "$configure_input" |
6529 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6530 *) ac_sed_conf_input=$configure_input;;
6531 esac
6533 case $ac_tag in
6534 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6536 esac
6538 esac
6540 ac_dir=`$as_dirname -- "$ac_file" ||
6541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6542 X"$ac_file" : 'X\(//\)[^/]' \| \
6543 X"$ac_file" : 'X\(//\)$' \| \
6544 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6545 $as_echo X"$ac_file" |
6546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6547 s//\1/
6550 /^X\(\/\/\)[^/].*/{
6551 s//\1/
6554 /^X\(\/\/\)$/{
6555 s//\1/
6558 /^X\(\/\).*/{
6559 s//\1/
6562 s/.*/./; q'`
6563 as_dir="$ac_dir"; as_fn_mkdir_p
6564 ac_builddir=.
6566 case "$ac_dir" in
6567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6570 # A ".." for each directory in $ac_dir_suffix.
6571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6572 case $ac_top_builddir_sub in
6573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6575 esac ;;
6576 esac
6577 ac_abs_top_builddir=$ac_pwd
6578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6579 # for backward compatibility:
6580 ac_top_builddir=$ac_top_build_prefix
6582 case $srcdir in
6583 .) # We are building in place.
6584 ac_srcdir=.
6585 ac_top_srcdir=$ac_top_builddir_sub
6586 ac_abs_top_srcdir=$ac_pwd ;;
6587 [\\/]* | ?:[\\/]* ) # Absolute name.
6588 ac_srcdir=$srcdir$ac_dir_suffix;
6589 ac_top_srcdir=$srcdir
6590 ac_abs_top_srcdir=$srcdir ;;
6591 *) # Relative name.
6592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6593 ac_top_srcdir=$ac_top_build_prefix$srcdir
6594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6595 esac
6596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6599 case $ac_mode in
6602 # CONFIG_FILE
6605 case $INSTALL in
6606 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6607 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6608 esac
6609 _ACEOF
6611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6612 # If the template does not know about datarootdir, expand it.
6613 # FIXME: This hack should be removed a few years after 2.60.
6614 ac_datarootdir_hack=; ac_datarootdir_seen=
6615 ac_sed_dataroot='
6616 /datarootdir/ {
6620 /@datadir@/p
6621 /@docdir@/p
6622 /@infodir@/p
6623 /@localedir@/p
6624 /@mandir@/p'
6625 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6626 *datarootdir*) ac_datarootdir_seen=yes;;
6627 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6629 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6630 _ACEOF
6631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6632 ac_datarootdir_hack='
6633 s&@datadir@&$datadir&g
6634 s&@docdir@&$docdir&g
6635 s&@infodir@&$infodir&g
6636 s&@localedir@&$localedir&g
6637 s&@mandir@&$mandir&g
6638 s&\\\${datarootdir}&$datarootdir&g' ;;
6639 esac
6640 _ACEOF
6642 # Neutralize VPATH when `$srcdir' = `.'.
6643 # Shell code in configure.ac might set extrasub.
6644 # FIXME: do we really want to maintain this feature?
6645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6646 ac_sed_extra="$ac_vpsub
6647 $extrasub
6648 _ACEOF
6649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6652 s|@configure_input@|$ac_sed_conf_input|;t t
6653 s&@top_builddir@&$ac_top_builddir_sub&;t t
6654 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6655 s&@srcdir@&$ac_srcdir&;t t
6656 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6657 s&@top_srcdir@&$ac_top_srcdir&;t t
6658 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6659 s&@builddir@&$ac_builddir&;t t
6660 s&@abs_builddir@&$ac_abs_builddir&;t t
6661 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6662 s&@INSTALL@&$ac_INSTALL&;t t
6663 $ac_datarootdir_hack
6665 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6666 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6668 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6669 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6670 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6671 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6673 which seems to be undefined. Please make sure it is defined" >&5
6674 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6675 which seems to be undefined. Please make sure it is defined" >&2;}
6677 rm -f "$ac_tmp/stdin"
6678 case $ac_file in
6679 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6680 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6681 esac \
6682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6686 # CONFIG_HEADER
6688 if test x"$ac_file" != x-; then
6690 $as_echo "/* $configure_input */" \
6691 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6692 } >"$ac_tmp/config.h" \
6693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6694 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6696 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6697 else
6698 rm -f "$ac_file"
6699 mv "$ac_tmp/config.h" "$ac_file" \
6700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6702 else
6703 $as_echo "/* $configure_input */" \
6704 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6705 || as_fn_error $? "could not create -" "$LINENO" 5
6710 esac
6712 done # for ac_tag
6715 as_fn_exit 0
6716 _ACEOF
6717 ac_clean_files=$ac_clean_files_save
6719 test $ac_write_fail = 0 ||
6720 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6723 # configure is writing to config.log, and then calls config.status.
6724 # config.status does its own redirection, appending to config.log.
6725 # Unfortunately, on DOS this fails, as config.log is still kept open
6726 # by configure, so config.status won't be able to write to it; its
6727 # output is simply discarded. So we exec the FD to /dev/null,
6728 # effectively closing config.log, so it can be properly (re)opened and
6729 # appended to by config.status. When coming back to configure, we
6730 # need to make the FD available again.
6731 if test "$no_create" != yes; then
6732 ac_cs_success=:
6733 ac_config_status_args=
6734 test "$silent" = yes &&
6735 ac_config_status_args="$ac_config_status_args --quiet"
6736 exec 5>/dev/null
6737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6738 exec 5>>config.log
6739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6740 # would make configure fail if this is the last instruction.
6741 $ac_cs_success || as_fn_exit 1
6743 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6745 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}