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
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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 :
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+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
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 :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
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 :
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
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.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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."
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."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
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 :
362 as_val
=`expr "$@" || test $? -eq 1`
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.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
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
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 ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
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
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`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
559 PACKAGE_TARNAME
='less'
561 PACKAGE_STRING
='less 1'
565 ac_unique_file
="forwback.c"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_subst_vars
='LTLIBOBJS
645 program_transform_name
658 enable_option_checking
665 ac_precious_vars
='build_alias
676 # Initialize some variables set by options.
678 ac_init_version
=false
679 ac_unrecognized_opts
=
681 # The variables have the same names as the options, with
682 # dashes changed to underlines.
690 program_transform_name
=s
,x
,x
,
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'
720 libdir
='${exec_prefix}/lib'
721 localedir
='${datarootdir}/locale'
722 mandir
='${datarootdir}/man'
728 # If the previous option needs an argument, assign it.
729 if test -n "$ac_prev"; then
730 eval $ac_prev=\
$ac_option
736 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
741 # Accept the important Cygnus configure options, so we can diagnose typos.
743 case $ac_dashdash$ac_option in
747 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
749 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
765 cache_file
=config.cache
;;
767 -datadir |
--datadir |
--datadi |
--datad)
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
790 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
791 ac_unrecognized_sep
=', ';;
793 eval enable_
$ac_useropt=no
;;
795 -docdir |
--docdir |
--docdi |
--doc |
--do)
797 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
800 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
802 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
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
816 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
817 ac_unrecognized_sep
=', ';;
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.
834 -help |
--help |
--hel |
--he |
-h)
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)
848 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
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)
861 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
862 infodir
=$ac_optarg ;;
864 -libdir |
--libdir |
--libdi |
--libd)
866 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
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)
890 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
894 # Obsolete; use --without-fp.
897 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
898 |
--no-cr |
--no-c |
-n)
901 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
902 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
916 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
952 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
955 -psdir |
--psdir |
--psdi |
--psd |
--ps)
957 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
960 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
961 |
-silent |
--silent |
--silen |
--sile |
--sil)
964 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
966 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
968 sbindir
=$ac_optarg ;;
970 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
971 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
972 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
974 ac_prev
=sharedstatedir
;;
975 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
976 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
977 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
979 sharedstatedir
=$ac_optarg ;;
981 -site |
--site |
--sit)
983 -site=* |
--site=* |
--sit=*)
986 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
988 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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)
1006 -version |
--version |
--versio |
--versi |
--vers |
-V)
1007 ac_init_version
=: ;;
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
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
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
1036 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1037 ac_unrecognized_sep
=', ';;
1039 eval with_
$ac_useropt=no
;;
1042 # Obsolete; use --with-x.
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"
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'" ;;
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}"
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
1092 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1093 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
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.
1107 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1108 eval $ac_var=\
$ac_val;;
1110 # Be sure to have absolute directory names.
1112 [\\/$
]* | ?
:[\\/]* ) continue;;
1113 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1115 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
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.
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
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 if test ! -r "$srcdir/$ac_unique_file"; then
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"
1190 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1200 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
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.
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.
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
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]
1275 if test -n "$ac_init_help"; then
1276 case $ac_init_help in
1277 short | recursive
) echo "Configuration of less 1:";;
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
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
>
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.
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"; } ||
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/ ;;
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
1338 .) # We are building in place.
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 ;;
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 ;;
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
1357 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1358 elif test -f "$ac_srcdir/configure"; then
1360 $SHELL "$ac_srcdir/configure" --help=recursive
1362 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1364 cd "$ac_pwd" || { ac_status=$?; break; }
1368 test -n "$ac_init_help" && exit $ac_status
1369 if $ac_init_version; then
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.
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"
1394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1395 *) ac_try_echo
=$ac_try;;
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
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 :
1413 $as_echo "$as_me: failed program was:" >&5
1414 sed 's/^/| /' conftest.
$ac_ext >&5
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.
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"
1432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1433 *) ac_try_echo=$ac_try;;
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
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
1454 $as_echo "$as_me: failed program was:" >&5
1455 sed 's/^/| /' conftest.$ac_ext >&5
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.
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 if { { ac_try="$ac_cpp conftest.$ac_ext"
1477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1478 *) ac_try_echo
=$ac_try;;
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
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
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.
$ac_ext >&5
1501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502 as_fn_set_status
$ac_retval
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.
1512 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1513 if { { ac_try
="$ac_link"
1515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
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
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;;
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
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; }; }; then :
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
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
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
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564 $as_echo "$ac_res" >&6; }
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. */
1574 if ac_fn_c_try_compile
"$LINENO"; then :
1575 ac_header_compiler
=yes
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. */
1590 if ac_fn_c_try_cpp
"$LINENO"; then :
1591 ac_header_preproc
=yes
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 #((
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;}
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;}
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
1625 eval "$3=\$ac_header_compiler"
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
1647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1652 if ac_fn_c_try_compile
"$LINENO"; then :
1657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
1679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1691 if ac_fn_c_try_compile
"$LINENO"; then :
1692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1704 if ac_fn_c_try_compile
"$LINENO"; then :
1709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
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. */
1743 # include <limits.h>
1745 # include <assert.h>
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. */
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
1772 if ac_fn_c_try_link
"$LINENO"; then :
1777 rm -f core conftest.err conftest.
$ac_objext \
1778 conftest
$ac_exeext conftest.
$ac_ext
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
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`
1822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir
=.
1827 $as_echo "PATH: $as_dir"
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.
1851 ac_must_keep_next
=false
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)
1862 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
1880 -* ) ac_must_keep_next
=true
;;
1883 as_fn_append ac_configure_args
" '$ac_arg'"
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.
1901 $as_echo "## ---------------- ##
1902 ## Cache variables. ##
1903 ## ---------------- ##"
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
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;} ;;
1916 _ | IFS | as_nl) ;; #(
1917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1918 *) { eval $ac_var=; unset $ac_var;} ;;
1923 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1924 *${as_nl}ac_space=\ *)
1926 "s/'\''/'\''\\\\'\'''\''/g;
1927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1937 $as_echo "## ----------------- ##
1938 ## Output variables. ##
1939 ## ----------------- ##"
1941 for ac_var in $ac_subst_vars
1943 eval ac_val=\$$ac_var
1945 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1947 $as_echo "$ac_var='\''$ac_val'\''"
1951 if test -n "$ac_subst_files"; then
1952 $as_echo "## ------------------- ##
1953 ## File substitutions. ##
1954 ## ------------------- ##"
1956 for ac_var
in $ac_subst_files
1958 eval ac_val
=\$
$ac_var
1960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 $as_echo "$ac_var='\''$ac_val'\''"
1967 if test -s confdefs.h; then
1968 $as_echo "## ----------- ##
1975 test "$ac_signal" != 0 &&
1976 $as_echo "$as_me: caught signal $ac_signal"
1977 $as_echo "$as_me: exit $exit_status"
1979 rm -f core *.core core.conftest.* &&
1980 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1983 for ac_signal
in 1 2 13 15; do
1984 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
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"
1999 cat >>confdefs.h
<<_ACEOF
2000 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2003 cat >>confdefs.h
<<_ACEOF
2004 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2007 cat >>confdefs.h
<<_ACEOF
2008 #define PACKAGE_STRING "$PACKAGE_STRING"
2011 cat >>confdefs.h
<<_ACEOF
2012 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2015 cat >>confdefs.h
<<_ACEOF
2016 #define PACKAGE_URL "$PACKAGE_URL"
2020 # Let the site file select an alternate cache file if it wants to.
2021 # Prefer an explicitly selected file to automatically selected ones.
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;;
2031 elif test "x$prefix" != xNONE
; then
2032 ac_site_file1
=$prefix/share
/config.site
2033 ac_site_file2
=$prefix/etc
/config.site
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
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 ; }
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;}
2060 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2061 *) .
"./$cache_file";;
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2066 $as_echo "$as_me: creating cache $cache_file" >&6;}
2070 # Check that the precious variables saved in the cache have kept the same
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
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
=: ;;
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
=: ;;
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
=:
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;}
2108 # Pass precious variables to config.status.
2109 if test "$ac_new_set" = set; then
2111 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2112 *) ac_arg
=$ac_var=$ac_new_val ;;
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'" ;;
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 ## -------------------- ##
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.
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
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC
="$CC" # Let the user override the test.
2159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2177 if test -n "$CC"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2179 $as_echo "$CC" >&6; }
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
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
2196 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
2228 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2249 if test -n "$CC"; then
2250 ac_cv_prog_CC
="$CC" # Let the user override the test.
2252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2270 if test -n "$CC"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2272 $as_echo "$CC" >&6; }
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
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC
="$CC" # Let the user override the test.
2293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2321 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2327 if test -n "$CC"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2329 $as_echo "$CC" >&6; }
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
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC
="$CC" # Let the user override the test.
2351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2369 if test -n "$CC"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2371 $as_echo "$CC" >&6; }
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2374 $as_echo "no" >&6; }
2378 test -n "$CC" && break
2381 if test -z "$CC"; then
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
2392 if test -n "$ac_ct_CC"; then
2393 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418 $as_echo "no" >&6; }
2422 test -n "$ac_ct_CC" && break
2425 if test "x$ac_ct_CC" = x
; then
2428 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2450 for ac_option
in --version -v -V -qversion; do
2451 { { ac_try
="$ac_compiler $ac_option >&5"
2453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
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
2460 if test -s conftest.err; then
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; }
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
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
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.*"
2495 for ac_file in $ac_files
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2504 if { { ac_try="$ac_link_default"
2506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2507 *) ac_try_echo
=$ac_try;;
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
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
2520 for ac_file
in $ac_files ''
2522 test -f "$ac_file" ||
continue
2524 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2527 # We found the default executable, but exeext='' is most
2531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
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
2545 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
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 ; }
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"
2576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
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
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
2589 for ac_file
in conftest.exe conftest conftest.
*; do
2590 test -f "$ac_file" ||
continue
2592 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2593 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
2611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2617 FILE *f = fopen ("conftest.out", "w");
2618 return ferror (f) || fclose (f) != 0;
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"
2632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
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
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;;
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
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; }; }; then
2654 if test "$cross_compiling" = maybe
; then
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
2675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2686 rm -f conftest.o conftest.obj
2687 if { { ac_try
="$ac_compile"
2689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
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
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;
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2740 if ac_fn_c_try_compile "$LINENO"; then :
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
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
2763 ac_save_c_werror_flag=$ac_c_werror_flag
2764 ac_c_werror_flag=yes
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2778 if ac_fn_c_try_compile "$LINENO"; then :
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2793 if ac_fn_c_try_compile "$LINENO"; then :
2796 ac_c_werror_flag=$ac_save_c_werror_flag
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2809 if ac_fn_c_try_compile "$LINENO"; then :
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
2830 if test "$GCC" = yes; then
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
2841 ac_cv_prog_cc_c89=no
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.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)
2858 static char *f (char * (*g) (char **, int), char **p, ...)
2863 s = g (p, va_arg (v,int));
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. */
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);
2891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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
2906 rm -f conftest.$ac_ext
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; } ;;
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; } ;;
2923 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
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. */
2958 for ac_lib in '' cposix; do
2959 if test -z "$ac_lib"; then
2960 ac_res="none required"
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 \
2970 if ${ac_cv_search_strerror+:} false; then :
2974 if ${ac_cv_search_strerror+:} false; then :
2977 ac_cv_search_strerror=no
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"
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
3001 if test -z "$CPP"; then
3002 if ${ac_cv_prog_CPP+:} false; then :
3003 $as_echo_n "(cached) " >&6
3005 # Double quotes because CPP needs to be expanded
3006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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. */
3020 # include <limits.h>
3022 # include <assert.h>
3026 if ac_fn_c_try_cpp "$LINENO"; then :
3029 # Broken: fails on valid input.
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>
3040 if ac_fn_c_try_cpp "$LINENO"; then :
3041 # Broken: success on invalid input.
3044 # Passes both tests.
3048 rm -f conftest.err conftest.i conftest.$ac_ext
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 :
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3066 $as_echo "$CPP" >&6; }
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. */
3079 # include <limits.h>
3081 # include <assert.h>
3085 if ac_fn_c_try_cpp
"$LINENO"; then :
3088 # Broken: fails on valid input.
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>
3099 if ac_fn_c_try_cpp
"$LINENO"; then :
3100 # Broken: success on invalid input.
3103 # Passes both tests.
3107 rm -f conftest.err conftest.i conftest.
$ac_ext
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 :
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 ; }
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
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
/xpg
4/bin
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
3149 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3152 $as_echo_n 0123456789 >"conftest.in"
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
3170 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3173 $ac_path_GREP_found && break 3
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
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
3196 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3197 then ac_cv_path_EGREP
="$GREP -E"
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
/xpg
4/bin
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
3215 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3218 $as_echo_n 0123456789 >"conftest.in"
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
3236 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3239 $ac_path_EGREP_found && break 3
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
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
3264 ac_pattern
="Autoconf.*'x'"
3265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
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
3274 ac_cv_prog_gcc_traditional
=no
3279 if test $ac_cv_prog_gcc_traditional = no
; then
3280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
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
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"
3301 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3302 if test -f "$ac_dir/install-sh"; then
3304 ac_install_sh
="$ac_aux_dir/install-sh -c"
3306 elif test -f "$ac_dir/install.sh"; then
3308 ac_install_sh
="$ac_aux_dir/install.sh -c"
3310 elif test -f "$ac_dir/shtool"; then
3312 ac_install_sh
="$ac_aux_dir/shtool install -c"
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
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
3349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
[\\/]* | \
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
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.
3376 rm -rf conftest.one conftest.two conftest.dir
3377 echo one
> conftest.one
3378 echo two
> conftest.two
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
3385 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
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
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
3436 ac_cv_sys_largefile_CC
=no
3437 if test "$GCC" != yes; then
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)
3461 if ac_fn_c_try_compile
"$LINENO"; then :
3464 rm -f core conftest.err conftest.
$ac_objext
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
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
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)
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)
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
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 #(
3544 cat >>confdefs.h
<<_ACEOF
3545 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
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
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)
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)
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
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 #(
3613 cat >>confdefs.h
<<_ACEOF
3614 #define _LARGE_FILES $ac_cv_sys_large_files
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
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. */
3649 if ac_fn_c_try_link
"$LINENO"; then :
3650 ac_cv_lib_tinfo_tgoto
=yes
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 :
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
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. */
3691 if ac_fn_c_try_link
"$LINENO"; then :
3692 ac_cv_lib_xcurses_initscr
=yes
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 :
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
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. */
3733 if ac_fn_c_try_link
"$LINENO"; then :
3734 ac_cv_lib_ncursesw_initscr
=yes
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 :
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
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. */
3775 if ac_fn_c_try_link
"$LINENO"; then :
3776 ac_cv_lib_ncurses_initscr
=yes
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 :
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
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. */
3817 if ac_fn_c_try_link
"$LINENO"; then :
3818 ac_cv_lib_curses_initscr
=yes
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 :
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
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. */
3859 if ac_fn_c_try_link
"$LINENO"; then :
3860 ac_cv_lib_termcap_tgetent
=yes
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 :
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
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. */
3901 if ac_fn_c_try_link
"$LINENO"; then :
3902 ac_cv_lib_termlib_tgetent
=yes
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 :
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
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. */
3944 for ac_lib
in '' gen intl PW
; do
3945 if test -z "$ac_lib"; then
3946 ac_res
="none required"
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 \
3956 if ${ac_cv_search_regcmp+:} false
; then :
3960 if ${ac_cv_search_regcmp+:} false
; then :
3963 ac_cv_search_regcmp
=no
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; }
3982 # Check for systems where curses is broken.
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
3988 if test x
`uname -r` = "xB.11.11" >/dev
/null
2>&1; then
3993 if test $curses_broken = 0; then
3996 if test "x$TERMLIBS" = x
; then
3997 if test $have_tinfo = yes; then
4000 LIBS
="$LIBS $TERMLIBS"
4001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4007 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4012 if ac_fn_c_try_link
"$LINENO"; then :
4017 rm -f core conftest.err conftest.
$ac_objext \
4018 conftest
$ac_exeext conftest.
$ac_ext
4020 if test $termok = no
; then TERMLIBS
=""; fi
4025 if test "x$TERMLIBS" = x
; then
4026 if test $have_xcurses = yes; then
4027 TERMLIBS
="-lxcurses"
4029 LIBS
="$LIBS $TERMLIBS"
4030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4036 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4041 if ac_fn_c_try_link
"$LINENO"; then :
4046 rm -f core conftest.err conftest.
$ac_objext \
4047 conftest
$ac_exeext conftest.
$ac_ext
4049 if test $termok = no
; then TERMLIBS
=""; fi
4054 if test "x$TERMLIBS" = x
; then
4055 if test $have_ncursesw = yes; then
4056 TERMLIBS
="-lncursesw"
4058 LIBS
="$LIBS $TERMLIBS"
4059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4065 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4070 if ac_fn_c_try_link
"$LINENO"; then :
4075 rm -f core conftest.err conftest.
$ac_objext \
4076 conftest
$ac_exeext conftest.
$ac_ext
4078 if test $termok = no
; then TERMLIBS
=""; fi
4083 if test "x$TERMLIBS" = x
; then
4084 if test $have_ncurses = yes; then
4085 TERMLIBS
="-lncurses"
4087 LIBS
="$LIBS $TERMLIBS"
4088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4094 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4099 if ac_fn_c_try_link
"$LINENO"; then :
4104 rm -f core conftest.err conftest.
$ac_objext \
4105 conftest
$ac_exeext conftest.
$ac_ext
4107 if test $termok = no
; then TERMLIBS
=""; fi
4112 if test "x$TERMLIBS" = x
; then
4113 if test $have_curses = yes; then
4116 LIBS
="$LIBS $TERMLIBS"
4117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4123 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4128 if ac_fn_c_try_link
"$LINENO"; then :
4133 rm -f core conftest.err conftest.
$ac_objext \
4134 conftest
$ac_exeext conftest.
$ac_ext
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"
4146 LIBS
="$LIBS $TERMLIBS"
4147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4153 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4158 if ac_fn_c_try_link
"$LINENO"; then :
4163 rm -f core conftest.err conftest.
$ac_objext \
4164 conftest
$ac_exeext conftest.
$ac_ext
4166 if test $termok = no
; then TERMLIBS
=""; fi
4173 if test "x$TERMLIBS" = x
; then
4174 if test $have_termcap = yes; then
4175 TERMLIBS
="-ltermcap"
4177 LIBS
="$LIBS $TERMLIBS"
4178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4184 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4189 if ac_fn_c_try_link
"$LINENO"; then :
4194 rm -f core conftest.err conftest.
$ac_objext \
4195 conftest
$ac_exeext conftest.
$ac_ext
4197 if test $termok = no
; then TERMLIBS
=""; fi
4202 if test "x$TERMLIBS" = x
; then
4203 if test $have_termlib = yes; then
4204 TERMLIBS
="-lcurses -ltermlib"
4206 LIBS
="$LIBS $TERMLIBS"
4207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4213 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4218 if ac_fn_c_try_link
"$LINENO"; then :
4223 rm -f core conftest.err conftest.
$ac_objext \
4224 conftest
$ac_exeext conftest.
$ac_ext
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; }
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
4245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4260 if ac_fn_c_try_compile
"$LINENO"; then :
4261 ac_cv_header_stdc
=yes
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. */
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 $EGREP "memchr" >/dev
/null
2>&1; then :
4278 ac_cv_header_stdc
=no
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. */
4291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292 $EGREP "free" >/dev
/null
2>&1; then :
4295 ac_cv_header_stdc
=no
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 :
4306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4310 #if ((' ' & 0x0FF) == 0x020)
4311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4326 for (i = 0; i < 256; i++)
4327 if (XOR (islower (i), ISLOWER (i))
4328 || toupper (i) != TOUPPER (i))
4333 if ac_fn_c_try_run
"$LINENO"; then :
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
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
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
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
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
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];
4398 #if defined S_ISBLK && defined S_IFCHR
4399 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4402 #if defined S_ISLNK && defined S_IFREG
4403 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4406 #if defined S_ISSOCK && defined S_IFREG
4407 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4411 if ac_fn_c_try_compile
"$LINENO"; then :
4412 ac_cv_header_stat_broken
=no
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
4431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4437 /* FIXME: Include the comments suggested by Paul. */
4439 /* Ultrix mips cc rejects this. */
4440 typedef int charset[2];
4442 /* SunOS 4.1.1 cc rejects this. */
4443 char const *const *pcpcc;
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
4452 const char *g = "string";
4453 pcpcc = &g + (g ? g-g : 0);
4454 /* HPUX 7.0 cc rejects these. */
4456 ppc = (char**) pcpcc;
4457 pcpcc = (char const *const *) ppc;
4458 { /* SCO 3.2v4 cc rejects this. */
4460 char const *s = 0 ? (char *) 0 : (char const *) 0;
4465 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4467 const int *foo = &x[0];
4470 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4471 typedef const int *iptr;
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 */
4484 return !cs[0] && !zero.x;
4491 if ac_fn_c_try_compile
"$LINENO"; then :
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 :
4511 cat >>confdefs.h
<<_ACEOF
4512 #define off_t long int
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 :
4522 cat >>confdefs.h
<<_ACEOF
4523 #define size_t unsigned int
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
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <sys/types.h>
4536 #include <sys/time.h>
4542 if ((struct tm *) 0)
4548 if ac_fn_c_try_compile
"$LINENO"; then :
4549 ac_cv_header_time
=yes
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 :
4600 cat >>confdefs.h
<<_ACEOF
4601 #define off_t long int
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. */
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
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. */
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
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. */
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
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>
4681 struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
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
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
4702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4710 return *(signal (0, 0)) (0) == 1;
4715 if ac_fn_c_try_compile
"$LINENO"; then :
4716 ac_cv_type_signal
=int
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
4730 for ac_func
in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod
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
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. */
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
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. */
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
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. */
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
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. */
4844 static int x; x = fileno(stdin);
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
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. */
4877 static char *x; x = strerror(0);
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
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. */
4901 extern char *sys_errlist[]; static char **x; x = sys_errlist;
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
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
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. */
4939 sigset_t s; sigemptyset(&s);
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
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
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. */
4967 static int x; x = errno;
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
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. */
4989 extern int errno; static int x; x = errno;
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
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. */
5013 #include <langinfo.h>
5017 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
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
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. */
5044 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
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
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. */
5068 iswlower(0); iswupper(0); towlower(0); towupper(0);
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
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.
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>
5093 #include <termios.h>
5096 #include <termcap.h>
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
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. */
5120 extern short ospeed; ospeed = 0;
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
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
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
5161 if test $WANT_NO_FLOAT = 0; then
5162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5168 double f1 = 12.5; double f2 = f1*f1/2.5;
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
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
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.
5190 have_posix_regex
=unknown
5193 # Select a regular expression library.
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
5211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5214 #include <sys/types.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);
5220 if (rm.rm_so != 1) exit(1); /* check for correct offset */
5222 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5226 if ac_fn_c_try_run
"$LINENO"; then :
5227 have_posix_regex
=yes
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"
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>
5250 regex_t *r; regfree(r);
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
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
5277 ac_check_lib_save_LIBS
=$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. */
5288 char pcre_compile ();
5292 return pcre_compile ();
5297 if ac_fn_c_try_link
"$LINENO"; then :
5298 ac_cv_lib_pcre_pcre_compile
=yes
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
5323 ac_check_lib_save_LIBS
=$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. */
5334 char re_compile_pattern ();
5338 return re_compile_pattern ();
5343 if ac_fn_c_try_link
"$LINENO"; then :
5344 ac_cv_lib_c_re_compile_pattern
=yes
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. */
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"
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; }
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"
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
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
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;} ;;
5489 _ | IFS | as_nl
) ;; #(
5490 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5491 *) { eval $ac_var=; unset $ac_var;} ;;
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 \.
5503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5506 # `set' quotes correctly as required by POSIX, so do not add quotes.
5507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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"
5528 case $cache_file in #(
5530 mv -f confcache
"$cache_file"$$
&&
5531 mv -f "$cache_file"$$
"$cache_file" ;; #(
5533 mv -f confcache
"$cache_file" ;;
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;}
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
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'
5564 LTLIBOBJS
=$ac_ltlibobjs
5568 : "${CONFIG_STATUS=./config.status}"
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;}
5575 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
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.
5586 SHELL=\${CONFIG_SHELL-$SHELL}
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 :
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
5604 case `(set -o) 2>/dev/null` in #(
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
'
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'
5634 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5635 as_echo_n_body='eval
5639 expr "X$arg" : "X\\(.*\\)$as_nl";
5640 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
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
'
5648 as_echo='sh
-c $as_echo_body as_echo
'
5651 # The user is always right.
5652 if test "${PATH_SEPARATOR+set}" != set; then
5654 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5655 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
5668 # Find who we are. Look in the path if we contain no directory separator.
5671 *[\\/]* ) as_myself=$0 ;;
5672 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir=.
5677 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
5688 if test ! -f "$as_myself"; then
5689 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
5722 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
5732 # as_fn_set_status STATUS
5733 # -----------------------
5734 # Set $? to STATUS, without forking.
5738 } # as_fn_set_status
5742 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5752 # Portably unset VAR.
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
5764 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5765 eval '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 ()
5789 as_val
=`expr "$@" || test $? -eq 1`
5794 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5795 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5801 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5802 as_basename
=basename
5807 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5813 as_me
=`$as_basename -- "$0" ||
5814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5815 X"$0" : 'X\(//\)$' \| \
5816 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5818 sed '/^.*\/\([^/][^/]*\)\/*$/{
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 #(((((
5842 case `echo 'xy\c'` in
5843 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5845 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5852 rm -f conf$$ conf$$.exe conf$$.
file
5853 if test -d conf$$.dir
; then
5854 rm -f conf$$.dir
/conf$$.
file
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
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 ||
5868 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5876 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5877 rmdir conf$$.dir
2>/dev
/null
5882 # Create "$as_dir" as a directory, including parents if necessary.
5887 -*) as_dir
=.
/$as_dir;;
5889 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
5893 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5894 *) as_qdir
=$as_dir;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5920 test -d "$as_dir" && break
5922 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
5923 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5927 if mkdir
-p .
2>/dev
/null
; then
5928 as_mkdir_p
='mkdir -p "$as_dir"'
5930 test -d .
/-p && rmdir .
/-p
5934 if test -x / >/dev
/null
2>&1; then
5937 if ls -dL / >/dev
/null
2>&1; then
5944 if test -d "$1"; then
5950 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5951 ???[sx]*):;;*)false;;esac;fi
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'"
5965 ## ----------------------------------- ##
5966 ## Main body of $CONFIG_STATUS script. ##
5967 ## ----------------------------------- ##
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.
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
5985 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5990 case $ac_config_files in *"
5991 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5994 case $ac_config_headers in *"
5995 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
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"
6006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
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:
6029 Configuration headers:
6032 Report bugs to the package provider."
6035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6036 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
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."
6049 test -n "\$AWK" || AWK=awk
6052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6053 # The default lists apply if the user does not specify any file.
6059 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6060 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6064 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6076 # Handling of the options.
6077 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
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 )
6085 --file |
--fil |
--fi |
--f )
6088 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6089 '') as_fn_error $?
"missing file argument" ;;
6091 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6092 ac_need_defaults
=false
;;
6093 --header |
--heade |
--head |
--hea )
6096 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6098 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6099 ac_need_defaults
=false
;;
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)
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
;;
6121 ac_configure_extra_args
=
6123 if $ac_cs_silent; then
6125 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
6133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6134 CONFIG_SHELL='$SHELL'
6140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6145 ## Running $as_me. ##
6151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
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 ;;
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'.
6186 trap 'exit_status=$?
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` &&
6199 tmp
=.
/conf$$
-$RANDOM
6200 (umask 077 && mkdir
"$tmp")
6201 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
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
6224 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6229 echo "cat >conf$$subs.awk <<_ACEOF" &&
6230 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6233 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6234 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
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
6243 elif $ac_last_try; then
6244 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6246 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6252 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
6256 s/^/S["/; s
/!.
*/"]=/
6266 s/\(.\{148\}\)..*/\1/
6268 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6273 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6280 s/\(.\{148\}\)..*/\1/
6282 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6286 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6291 ' <conf$$subs.awk | sed '
6296 ' >>$CONFIG_STATUS || ac_write_fail=1
6297 rm -f conf$$subs.awk
6298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6300 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6301 for (key in S) S_is_set[key] = 1
6307 nfields = split(line, field, "@
")
6309 len = length(field[1])
6310 for (i = 2; i < nfields; i++) {
6312 keylen = length(key)
6313 if (S_is_set[key]) {
6315 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6316 len += length(value) + length(field[++i])
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
"
6332 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6333 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
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[ ]*=[ ]*/{
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 ||
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.
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
6381 elif $ac_last_try; then
6382 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6384 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
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]*
6394 s/.\{148\}/&'"$ac_delim"'/g
6397 s/^[ ]*#[ ]*define[ ][ ]*/ /
6404 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6406 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6410 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6411 D["\
1"]=" \
3\\\\\\n
"\\/p
6413 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6418 s/.\{148\}/&'"$ac_delim"'/g
6423 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6426 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
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
6436 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6438 split(line, arg, " ")
6439 if (arg[1] == "#") {
6443 defundef
= substr
(arg
[1], 2)
6446 split(mac1
, mac2
, "(") #)
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
]
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
, "*/"
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 "
6476 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6478 case $ac_mode$ac_tag in
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;;
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 `:'.
6506 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6508 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6510 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6511 as_fn_append ac_file_inputs
" '$ac_f'"
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'
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;;
6534 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6535 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6563 as_dir
="$ac_dir"; as_fn_mkdir_p
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/ ;;
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
6583 .
) # We are building in place.
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 ;;
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 ;;
6596 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6606 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6607 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
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
=
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;}
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' ;;
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
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"
6679 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6680 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
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;}
6699 mv "$ac_tmp/config.h" "$ac_file" \
6700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
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
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
6733 ac_config_status_args
=
6734 test "$silent" = yes &&
6735 ac_config_status_args
="$ac_config_status_args --quiet"
6737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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;}