2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for less 1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
579 PACKAGE_TARNAME='less'
581 PACKAGE_STRING='less 1'
585 ac_unique_file="forwback.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars='LTLIBOBJS
665 program_transform_name
678 enable_option_checking
685 ac_precious_vars='build_alias
696 # Initialize some variables set by options.
698 ac_init_version=false
699 ac_unrecognized_opts=
701 # The variables have the same names as the options, with
702 # dashes changed to underlines.
710 program_transform_name=s,x,x,
718 # Installation directory options.
719 # These are left unexpanded so users can "make install exec_prefix=/foo"
720 # and all the variables that are supposed to be based on exec_prefix
721 # by default will actually change.
722 # Use braces instead of parens because sh, perl, etc. also accept them.
723 # (The list follows the same order as the GNU Coding Standards.)
724 bindir='${exec_prefix}/bin'
725 sbindir='${exec_prefix}/sbin'
726 libexecdir='${exec_prefix}/libexec'
727 datarootdir='${prefix}/share'
728 datadir='${datarootdir}'
729 sysconfdir='${prefix}/etc'
730 sharedstatedir='${prefix}/com'
731 localstatedir='${prefix}/var'
732 includedir='${prefix}/include'
733 oldincludedir='/usr/include'
734 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
735 infodir='${datarootdir}/info'
740 libdir='${exec_prefix}/lib'
741 localedir='${datarootdir}/locale'
742 mandir='${datarootdir}/man'
748 # If the previous option needs an argument, assign it.
749 if test -n "$ac_prev"; then
750 eval $ac_prev=\$ac_option
756 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
761 # Accept the important Cygnus configure options, so we can diagnose typos.
763 case $ac_dashdash$ac_option in
767 -bindir | --bindir | --bindi | --bind | --bin | --bi)
769 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 -build | --build | --buil | --bui | --bu)
773 ac_prev=build_alias ;;
774 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
775 build_alias=$ac_optarg ;;
777 -cache-file | --cache-file | --cache-fil | --cache-fi \
778 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
779 ac_prev=cache_file ;;
780 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
781 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
782 cache_file=$ac_optarg ;;
785 cache_file=config.cache ;;
787 -datadir | --datadir | --datadi | --datad)
789 -datadir=* | --datadir=* | --datadi=* | --datad=*)
790 datadir=$ac_optarg ;;
792 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
793 | --dataroo | --dataro | --datar)
794 ac_prev=datarootdir ;;
795 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
796 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
797 datarootdir=$ac_optarg ;;
799 -disable-* | --disable-*)
800 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
803 as_fn_error $? "invalid feature name: $ac_useropt"
804 ac_useropt_orig=$ac_useropt
805 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
806 case $ac_user_opts in
810 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
811 ac_unrecognized_sep=', ';;
813 eval enable_$ac_useropt=no ;;
815 -docdir | --docdir | --docdi | --doc | --do)
817 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
822 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 -enable-* | --enable-*)
826 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829 as_fn_error $? "invalid feature name: $ac_useropt"
830 ac_useropt_orig=$ac_useropt
831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
837 ac_unrecognized_sep=', ';;
839 eval enable_$ac_useropt=\$ac_optarg ;;
841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843 | --exec | --exe | --ex)
844 ac_prev=exec_prefix ;;
845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847 | --exec=* | --exe=* | --ex=*)
848 exec_prefix=$ac_optarg ;;
850 -gas | --gas | --ga | --g)
851 # Obsolete; use --with-gas.
854 -help | --help | --hel | --he | -h)
856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857 ac_init_help=recursive ;;
858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859 ac_init_help=short ;;
861 -host | --host | --hos | --ho)
862 ac_prev=host_alias ;;
863 -host=* | --host=* | --hos=* | --ho=*)
864 host_alias=$ac_optarg ;;
866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
870 htmldir=$ac_optarg ;;
872 -includedir | --includedir | --includedi | --included | --include \
873 | --includ | --inclu | --incl | --inc)
874 ac_prev=includedir ;;
875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876 | --includ=* | --inclu=* | --incl=* | --inc=*)
877 includedir=$ac_optarg ;;
879 -infodir | --infodir | --infodi | --infod | --info | --inf)
881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882 infodir=$ac_optarg ;;
884 -libdir | --libdir | --libdi | --libd)
886 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890 | --libexe | --libex | --libe)
891 ac_prev=libexecdir ;;
892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893 | --libexe=* | --libex=* | --libe=*)
894 libexecdir=$ac_optarg ;;
896 -localedir | --localedir | --localedi | --localed | --locale)
898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899 localedir=$ac_optarg ;;
901 -localstatedir | --localstatedir | --localstatedi | --localstated \
902 | --localstate | --localstat | --localsta | --localst | --locals)
903 ac_prev=localstatedir ;;
904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906 localstatedir=$ac_optarg ;;
908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 # Obsolete; use --without-fp.
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c | -n)
921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927 | --oldin | --oldi | --old | --ol | --o)
928 ac_prev=oldincludedir ;;
929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932 oldincludedir=$ac_optarg ;;
934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 -program-prefix | --program-prefix | --program-prefi | --program-pref \
940 | --program-pre | --program-pr | --program-p)
941 ac_prev=program_prefix ;;
942 -program-prefix=* | --program-prefix=* | --program-prefi=* \
943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944 program_prefix=$ac_optarg ;;
946 -program-suffix | --program-suffix | --program-suffi | --program-suff \
947 | --program-suf | --program-su | --program-s)
948 ac_prev=program_suffix ;;
949 -program-suffix=* | --program-suffix=* | --program-suffi=* \
950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951 program_suffix=$ac_optarg ;;
953 -program-transform-name | --program-transform-name \
954 | --program-transform-nam | --program-transform-na \
955 | --program-transform-n | --program-transform- \
956 | --program-transform | --program-transfor \
957 | --program-transfo | --program-transf \
958 | --program-trans | --program-tran \
959 | --progr-tra | --program-tr | --program-t)
960 ac_prev=program_transform_name ;;
961 -program-transform-name=* | --program-transform-name=* \
962 | --program-transform-nam=* | --program-transform-na=* \
963 | --program-transform-n=* | --program-transform-=* \
964 | --program-transform=* | --program-transfor=* \
965 | --program-transfo=* | --program-transf=* \
966 | --program-trans=* | --program-tran=* \
967 | --progr-tra=* | --program-tr=* | --program-t=*)
968 program_transform_name=$ac_optarg ;;
970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 -psdir | --psdir | --psdi | --psd | --ps)
977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981 | -silent | --silent | --silen | --sile | --sil)
984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
988 sbindir=$ac_optarg ;;
990 -sharedstatedir | --sharedstatedir | --sharedstatedi \
991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992 | --sharedst | --shareds | --shared | --share | --shar \
994 ac_prev=sharedstatedir ;;
995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
999 sharedstatedir=$ac_optarg ;;
1001 -site | --site | --sit)
1003 -site=* | --site=* | --sit=*)
1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009 srcdir=$ac_optarg ;;
1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012 | --syscon | --sysco | --sysc | --sys | --sy)
1013 ac_prev=sysconfdir ;;
1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016 sysconfdir=$ac_optarg ;;
1018 -target | --target | --targe | --targ | --tar | --ta | --t)
1019 ac_prev=target_alias ;;
1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021 target_alias=$ac_optarg ;;
1023 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 -version | --version | --versio | --versi | --vers | -V)
1027 ac_init_version=: ;;
1030 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error $? "invalid package name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1043 eval with_$ac_useropt=\$ac_optarg ;;
1045 -without-* | --without-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid package name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval with_$ac_useropt=no ;;
1062 # Obsolete; use --with-x.
1065 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066 | --x-incl | --x-inc | --x-in | --x-i)
1067 ac_prev=x_includes ;;
1068 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070 x_includes=$ac_optarg ;;
1072 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074 ac_prev=x_libraries ;;
1075 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077 x_libraries=$ac_optarg ;;
1079 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1080 Try \`$0 --help' for more information"
1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 case $ac_envvar in #(
1087 '' | [0-9]* | *[!_$as_cr_alnum]* )
1088 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1090 eval $ac_envvar=\$ac_optarg
1091 export $ac_envvar ;;
1094 # FIXME: should be removed in autoconf 3.0.
1095 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1104 if test -n "$ac_prev"; then
1105 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106 as_fn_error $? "missing argument to $ac_option"
1109 if test -n "$ac_unrecognized_opts"; then
1110 case $enable_option_checking in
1112 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1113 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1117 # Check all directory arguments for consistency.
1118 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1119 datadir sysconfdir sharedstatedir localstatedir includedir \
1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1121 libdir localedir mandir
1123 eval ac_val=\$$ac_var
1124 # Remove trailing slashes.
1127 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1128 eval $ac_var=\$ac_val;;
1130 # Be sure to have absolute directory names.
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1135 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1138 # There might be people who depend on the old broken behavior: `$host'
1139 # used to hold the argument of --host etc.
1140 # FIXME: To remove some day.
1143 target=$target_alias
1145 # FIXME: To remove some day.
1146 if test "x$host_alias" != x; then
1147 if test "x$build_alias" = x; then
1148 cross_compiling=maybe
1149 elif test "x$build_alias" != "x$host_alias"; then
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157 test "$silent" = yes && exec 6>/dev/null
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 as_fn_error $? "working directory cannot be determined"
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 as_fn_error $? "pwd does not report name of working directory"
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir=`$as_dirname -- "$as_myself" ||
1173 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$as_myself" : 'X\(//\)[^/]' \| \
1175 X"$as_myself" : 'X\(//\)$' \| \
1176 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1177 $as_echo X"$as_myself" |
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1200 ac_srcdir_defaulted=no
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1206 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1210 # When building in place, set srcdir=.
1211 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 # Remove unnecessary trailing slashes from srcdir.
1215 # Double slashes in file names in object file debugging info
1216 # mess up M-x gdb in Emacs.
1218 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220 for ac_var in $ac_precious_vars; do
1221 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_env_${ac_var}_value=\$${ac_var}
1223 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 # Report the --help message.
1230 if test "$ac_init_help" = "long"; then
1231 # Omit some internal or obsolete options to make the list less imposing.
1232 # This message is too long to be a string in the A/UX 3.1 sh.
1234 \`configure' configures less 1 to adapt to many kinds of systems.
1236 Usage: $0 [OPTION]... [VAR=VALUE]...
1238 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1239 VAR=VALUE. See below for descriptions of some of the useful variables.
1241 Defaults for the options are specified in brackets.
1244 -h, --help display this help and exit
1245 --help=short display options specific to this package
1246 --help=recursive display the short help of all the included packages
1247 -V, --version display version information and exit
1248 -q, --quiet, --silent do not print \`checking ...' messages
1249 --cache-file=FILE cache test results in FILE [disabled]
1250 -C, --config-cache alias for \`--cache-file=config.cache'
1251 -n, --no-create do not create output files
1252 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1254 Installation directories:
1255 --prefix=PREFIX install architecture-independent files in PREFIX
1256 [$ac_default_prefix]
1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 By default, \`make install' will install all the files in
1261 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1262 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1263 for instance \`--prefix=\$HOME'.
1265 For better control, use the options below.
1267 Fine tuning of the installation directories:
1268 --bindir=DIR user executables [EPREFIX/bin]
1269 --sbindir=DIR system admin executables [EPREFIX/sbin]
1270 --libexecdir=DIR program executables [EPREFIX/libexec]
1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1274 --libdir=DIR object code libraries [EPREFIX/lib]
1275 --includedir=DIR C header files [PREFIX/include]
1276 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1279 --infodir=DIR info documentation [DATAROOTDIR/info]
1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1281 --mandir=DIR man documentation [DATAROOTDIR/man]
1282 --docdir=DIR documentation root [DATAROOTDIR/doc/less]
1283 --htmldir=DIR html documentation [DOCDIR]
1284 --dvidir=DIR dvi documentation [DOCDIR]
1285 --pdfdir=DIR pdf documentation [DOCDIR]
1286 --psdir=DIR ps documentation [DOCDIR]
1293 if test -n "$ac_init_help"; then
1294 case $ac_init_help in
1295 short | recursive ) echo "Configuration of less 1:";;
1300 --disable-option-checking ignore unrecognized --enable/--with options
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303 --disable-largefile omit support for large files
1306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1308 --with-secure Compile in secure mode
1309 --with-no-float Do not use floating point
1310 --with-regex={auto,gnu,pcre,posix,regcmp,re_comp,regcomp,regcomp-local,none} Select a regular expression library auto
1311 --with-editor=PROGRAM use PROGRAM as the default editor vi
1313 Some influential environment variables:
1314 CC C compiler command
1315 CFLAGS C compiler flags
1316 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1317 nonstandard directory <lib dir>
1318 LIBS libraries to pass to the linker, e.g. -l<library>
1319 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1320 you have headers in a nonstandard directory <include dir>
1323 Use these variables to override the choices made by `configure' or to help
1324 it to find libraries and programs with nonstandard names/locations.
1326 Report bugs to the package provider.
1331 if test "$ac_init_help" = "recursive"; then
1332 # If there are subdirs, report their specific --help.
1333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1334 test -d "$ac_dir" ||
1335 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1343 # A ".." for each directory in $ac_dir_suffix.
1344 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1345 case $ac_top_builddir_sub in
1346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1350 ac_abs_top_builddir=$ac_pwd
1351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1352 # for backward compatibility:
1353 ac_top_builddir=$ac_top_build_prefix
1356 .) # We are building in place.
1358 ac_top_srcdir=$ac_top_builddir_sub
1359 ac_abs_top_srcdir=$ac_pwd ;;
1360 [\\/]* | ?:[\\/]* ) # Absolute name.
1361 ac_srcdir=$srcdir$ac_dir_suffix;
1362 ac_top_srcdir=$srcdir
1363 ac_abs_top_srcdir=$srcdir ;;
1365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1366 ac_top_srcdir=$ac_top_build_prefix$srcdir
1367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1371 cd "$ac_dir" || { ac_status=$?; continue; }
1372 # Check for guested configure.
1373 if test -f "$ac_srcdir/configure.gnu"; then
1375 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1376 elif test -f "$ac_srcdir/configure"; then
1378 $SHELL "$ac_srcdir/configure" --help=recursive
1380 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1382 cd "$ac_pwd" || { ac_status=$?; break; }
1386 test -n "$ac_init_help" && exit $ac_status
1387 if $ac_init_version; then
1390 generated by GNU Autoconf 2.69
1392 Copyright (C) 2012 Free Software Foundation, Inc.
1393 This configure script is free software; the Free Software Foundation
1394 gives unlimited permission to copy, distribute and modify it.
1399 ## ------------------------ ##
1400 ## Autoconf initialization. ##
1401 ## ------------------------ ##
1403 # ac_fn_c_try_compile LINENO
1404 # --------------------------
1405 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1406 ac_fn_c_try_compile ()
1408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1409 rm -f conftest.$ac_objext
1410 if { { ac_try="$ac_compile"
1412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1413 *) ac_try_echo=$ac_try;;
1415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1416 $as_echo "$ac_try_echo"; } >&5
1417 (eval "$ac_compile") 2>conftest.err
1419 if test -s conftest.err; then
1420 grep -v '^ *+' conftest.err >conftest.er1
1421 cat conftest.er1 >&5
1422 mv -f conftest.er1 conftest.err
1424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1425 test $ac_status = 0; } && {
1426 test -z "$ac_c_werror_flag" ||
1427 test ! -s conftest.err
1428 } && test -s conftest.$ac_objext; then :
1431 $as_echo "$as_me: failed program was:" >&5
1432 sed 's/^/| /' conftest.$ac_ext >&5
1436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1437 as_fn_set_status $ac_retval
1439 } # ac_fn_c_try_compile
1441 # ac_fn_c_try_link LINENO
1442 # -----------------------
1443 # Try to link conftest.$ac_ext, and return whether this succeeded.
1446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447 rm -f conftest.$ac_objext conftest$ac_exeext
1448 if { { ac_try="$ac_link"
1450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451 *) ac_try_echo=$ac_try;;
1453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454 $as_echo "$ac_try_echo"; } >&5
1455 (eval "$ac_link") 2>conftest.err
1457 if test -s conftest.err; then
1458 grep -v '^ *+' conftest.err >conftest.er1
1459 cat conftest.er1 >&5
1460 mv -f conftest.er1 conftest.err
1462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463 test $ac_status = 0; } && {
1464 test -z "$ac_c_werror_flag" ||
1465 test ! -s conftest.err
1466 } && test -s conftest$ac_exeext && {
1467 test "$cross_compiling" = yes ||
1468 test -x conftest$ac_exeext
1472 $as_echo "$as_me: failed program was:" >&5
1473 sed 's/^/| /' conftest.$ac_ext >&5
1477 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1478 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1479 # interfere with the next link command; also delete a directory that is
1480 # left behind by Apple's compiler. We do this before executing the actions.
1481 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1483 as_fn_set_status $ac_retval
1485 } # ac_fn_c_try_link
1487 # ac_fn_c_try_cpp LINENO
1488 # ----------------------
1489 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493 if { { ac_try="$ac_cpp conftest.$ac_ext"
1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } > conftest.i && {
1509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status $ac_retval
1524 # ac_fn_c_try_run LINENO
1525 # ----------------------
1526 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1527 # that executables *can* be run.
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 if { { ac_try="$ac_link"
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_link") 2>&5
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1542 { { case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_try") 2>&5
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; }; }; then :
1554 $as_echo "$as_me: program exited with status $ac_status" >&5
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1558 ac_retval=$ac_status
1560 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1566 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1567 # -------------------------------------------------------
1568 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1569 # the include files in INCLUDES and setting the cache variable VAR
1571 ac_fn_c_check_header_mongrel ()
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 if eval \${$3+:} false; then :
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1576 $as_echo_n "checking for $2... " >&6; }
1577 if eval \${$3+:} false; then :
1578 $as_echo_n "(cached) " >&6
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1584 # Is the header compilable?
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1586 $as_echo_n "checking $2 usability... " >&6; }
1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588 /* end confdefs.h. */
1592 if ac_fn_c_try_compile "$LINENO"; then :
1593 ac_header_compiler=yes
1595 ac_header_compiler=no
1597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1599 $as_echo "$ac_header_compiler" >&6; }
1601 # Is the header present?
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1603 $as_echo_n "checking $2 presence... " >&6; }
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1608 if ac_fn_c_try_cpp "$LINENO"; then :
1609 ac_header_preproc=yes
1611 ac_header_preproc=no
1613 rm -f conftest.err conftest.i conftest.$ac_ext
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1615 $as_echo "$ac_header_preproc" >&6; }
1617 # So? What about this header?
1618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1621 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1623 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1627 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1629 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1631 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1633 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1635 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1643 eval "$3=\$ac_header_compiler"
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 } # ac_fn_c_check_header_mongrel
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1670 if ac_fn_c_try_compile "$LINENO"; then :
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 } # ac_fn_c_check_header_compile
1684 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1685 # -------------------------------------------
1686 # Tests whether TYPE exists after having included INCLUDES, setting cache
1687 # variable VAR accordingly.
1688 ac_fn_c_check_type ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1709 if ac_fn_c_try_compile "$LINENO"; then :
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1722 if ac_fn_c_try_compile "$LINENO"; then :
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 } # ac_fn_c_check_type
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1761 # include <limits.h>
1763 # include <assert.h>
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1790 if ac_fn_c_try_link "$LINENO"; then :
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 } # ac_fn_c_check_func
1804 cat >config.log <<_ACEOF
1805 This file contains any messages produced by compilers while
1806 running configure, to aid debugging if configure makes a mistake.
1808 It was created by less $as_me 1, which was
1809 generated by GNU Autoconf 2.69. Invocation command line was
1821 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1822 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1823 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1824 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1825 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1827 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1828 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1830 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1831 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1832 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1833 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1834 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1835 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1836 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 $as_echo "PATH: $as_dir"
1861 # Keep a trace of the command line.
1862 # Strip out --no-create and --no-recursion so they do not pile up.
1863 # Strip out --silent because we don't want to record it for future runs.
1864 # Also quote any args containing shell meta-characters.
1865 # Make two passes to allow for proper duplicate-argument suppression.
1869 ac_must_keep_next=false
1875 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1877 | -silent | --silent | --silen | --sile | --sil)
1880 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1885 as_fn_append ac_configure_args1 " '$ac_arg'"
1886 if test $ac_must_keep_next = true; then
1887 ac_must_keep_next=false # Got value, back to normal.
1890 *=* | --config-cache | -C | -disable-* | --disable-* \
1891 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1892 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1893 | -with-* | --with-* | -without-* | --without-* | --x)
1894 case "$ac_configure_args0 " in
1895 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1898 -* ) ac_must_keep_next=true ;;
1901 as_fn_append ac_configure_args " '$ac_arg'"
1906 { ac_configure_args0=; unset ac_configure_args0;}
1907 { ac_configure_args1=; unset ac_configure_args1;}
1909 # When interrupted or exit'd, cleanup temporary files, and complete
1910 # config.log. We remove comments because anyway the quotes in there
1911 # would cause problems or look ugly.
1912 # WARNING: Use '\'' to represent an apostrophe within the trap.
1913 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1914 trap 'exit_status=$?
1915 # Save into config.log some information that might help in debugging.
1919 $as_echo "## ---------------- ##
1920 ## Cache variables. ##
1921 ## ---------------- ##"
1923 # The following way of writing the cache mishandles newlines in values,
1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1926 eval ac_val=\$$ac_var
1930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1934 _ | IFS | as_nl) ;; #(
1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1936 *) { eval $ac_var=; unset $ac_var;} ;;
1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1942 *${as_nl}ac_space=\ *)
1944 "s/'\''/'\''\\\\'\'''\''/g;
1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1955 $as_echo "## ----------------- ##
1956 ## Output variables. ##
1957 ## ----------------- ##"
1959 for ac_var in $ac_subst_vars
1961 eval ac_val=\$$ac_var
1963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965 $as_echo "$ac_var='\''$ac_val'\''"
1969 if test -n "$ac_subst_files"; then
1970 $as_echo "## ------------------- ##
1971 ## File substitutions. ##
1972 ## ------------------- ##"
1974 for ac_var in $ac_subst_files
1976 eval ac_val=\$$ac_var
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 $as_echo "$ac_var='\''$ac_val'\''"
1985 if test -s confdefs.h; then
1986 $as_echo "## ----------- ##
1993 test "$ac_signal" != 0 &&
1994 $as_echo "$as_me: caught signal $ac_signal"
1995 $as_echo "$as_me: exit $exit_status"
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 for ac_signal in 1 2 13 15; do
2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2007 rm -f -r conftest* confdefs.h
2009 $as_echo "/* confdefs.h */" > confdefs.h
2011 # Predefined preprocessor variables.
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_NAME "$PACKAGE_NAME"
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_STRING "$PACKAGE_STRING"
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_URL "$PACKAGE_URL"
2038 # Let the site file select an alternate cache file if it wants to.
2039 # Prefer an explicitly selected file to automatically selected ones.
2042 if test -n "$CONFIG_SITE"; then
2043 # We do not want a PATH search for config.site.
2044 case $CONFIG_SITE in #((
2045 -*) ac_site_file1=./$CONFIG_SITE;;
2046 */*) ac_site_file1=$CONFIG_SITE;;
2047 *) ac_site_file1=./$CONFIG_SITE;;
2049 elif test "x$prefix" != xNONE; then
2050 ac_site_file1=$prefix/share/config.site
2051 ac_site_file2=$prefix/etc/config.site
2053 ac_site_file1=$ac_default_prefix/share/config.site
2054 ac_site_file2=$ac_default_prefix/etc/config.site
2056 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2058 test "x$ac_site_file" = xNONE && continue
2059 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2061 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2062 sed 's/^/| /' "$ac_site_file" >&5
2064 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2066 as_fn_error $? "failed to load site script $ac_site_file
2067 See \`config.log' for more details" "$LINENO" 5; }
2071 if test -r "$cache_file"; then
2072 # Some versions of bash will fail to source /dev/null (special files
2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2076 $as_echo "$as_me: loading cache $cache_file" >&6;}
2078 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2079 *) . "./$cache_file";;
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2084 $as_echo "$as_me: creating cache $cache_file" >&6;}
2088 # Check that the precious variables saved in the cache have kept the same
2090 ac_cache_corrupted=false
2091 for ac_var in $ac_precious_vars; do
2092 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2093 eval ac_new_set=\$ac_env_${ac_var}_set
2094 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2095 eval ac_new_val=\$ac_env_${ac_var}_value
2096 case $ac_old_set,$ac_new_set in
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2099 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2100 ac_cache_corrupted=: ;;
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2103 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2104 ac_cache_corrupted=: ;;
2107 if test "x$ac_old_val" != "x$ac_new_val"; then
2108 # differences in whitespace do not lead to failure.
2109 ac_old_val_w=`echo x $ac_old_val`
2110 ac_new_val_w=`echo x $ac_new_val`
2111 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2113 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2114 ac_cache_corrupted=:
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2117 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2118 eval $ac_var=\$ac_old_val
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2121 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2123 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2126 # Pass precious variables to config.status.
2127 if test "$ac_new_set" = set; then
2129 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2130 *) ac_arg=$ac_var=$ac_new_val ;;
2132 case " $ac_configure_args " in
2133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2134 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2138 if $ac_cache_corrupted; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2142 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2143 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2145 ## -------------------- ##
2146 ## Main body of script. ##
2147 ## -------------------- ##
2150 ac_cpp='$CPP $CPPFLAGS'
2151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157 ac_config_headers="$ac_config_headers defines.h"
2160 # Checks for programs.
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166 if test -n "$ac_tool_prefix"; then
2167 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2168 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2170 $as_echo_n "checking for $ac_word... " >&6; }
2171 if ${ac_cv_prog_CC+:} false; then :
2172 $as_echo_n "(cached) " >&6
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$CC"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2197 $as_echo "$CC" >&6; }
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2200 $as_echo "no" >&6; }
2205 if test -z "$ac_cv_prog_CC"; then
2207 # Extract the first word of "gcc", so it can be a program name with args.
2208 set dummy gcc; ac_word=$2
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2210 $as_echo_n "checking for $ac_word... " >&6; }
2211 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2212 $as_echo_n "(cached) " >&6
2214 if test -n "$ac_ct_CC"; then
2215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224 ac_cv_prog_ac_ct_CC="gcc"
2225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2235 if test -n "$ac_ct_CC"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2237 $as_echo "$ac_ct_CC" >&6; }
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2240 $as_echo "no" >&6; }
2243 if test "x$ac_ct_CC" = x; then
2246 case $cross_compiling:$ac_tool_warned in
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2250 ac_tool_warned=yes ;;
2258 if test -z "$CC"; then
2259 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2261 set dummy ${ac_tool_prefix}cc; ac_word=$2
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2263 $as_echo_n "checking for $ac_word... " >&6; }
2264 if ${ac_cv_prog_CC+:} false; then :
2265 $as_echo_n "(cached) " >&6
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277 ac_cv_prog_CC="${ac_tool_prefix}cc"
2278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 if test -n "$CC"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2290 $as_echo "$CC" >&6; }
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2293 $as_echo "no" >&6; }
2299 if test -z "$CC"; then
2300 # Extract the first word of "cc", so it can be a program name with args.
2301 set dummy cc; ac_word=$2
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2303 $as_echo_n "checking for $ac_word... " >&6; }
2304 if ${ac_cv_prog_CC+:} false; then :
2305 $as_echo_n "(cached) " >&6
2307 if test -n "$CC"; then
2308 ac_cv_prog_CC="$CC" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2319 ac_prog_rejected=yes
2323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 if test $ac_prog_rejected = yes; then
2331 # We found a bogon in the path, so make sure we never use it.
2332 set dummy $ac_cv_prog_CC
2334 if test $# != 0; then
2335 # We chose a different compiler from the bogus one.
2336 # However, it has the same basename, so the bogon will be chosen
2337 # first if we set CC to just the basename; use the full file name.
2339 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2345 if test -n "$CC"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2347 $as_echo "$CC" >&6; }
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2350 $as_echo "no" >&6; }
2355 if test -z "$CC"; then
2356 if test -n "$ac_tool_prefix"; then
2357 for ac_prog in cl.exe
2359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362 $as_echo_n "checking for $ac_word... " >&6; }
2363 if ${ac_cv_prog_CC+:} false; then :
2364 $as_echo_n "(cached) " >&6
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 if test -n "$CC"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2389 $as_echo "$CC" >&6; }
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2392 $as_echo "no" >&6; }
2396 test -n "$CC" && break
2399 if test -z "$CC"; then
2401 for ac_prog in cl.exe
2403 # Extract the first word of "$ac_prog", so it can be a program name with args.
2404 set dummy $ac_prog; ac_word=$2
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406 $as_echo_n "checking for $ac_word... " >&6; }
2407 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2408 $as_echo_n "(cached) " >&6
2410 if test -n "$ac_ct_CC"; then
2411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_ac_ct_CC="$ac_prog"
2421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2433 $as_echo "$ac_ct_CC" >&6; }
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436 $as_echo "no" >&6; }
2440 test -n "$ac_ct_CC" && break
2443 if test "x$ac_ct_CC" = x; then
2446 case $cross_compiling:$ac_tool_warned in
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2450 ac_tool_warned=yes ;;
2459 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461 as_fn_error $? "no acceptable C compiler found in \$PATH
2462 See \`config.log' for more details" "$LINENO" 5; }
2464 # Provide some information about the compiler.
2465 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2468 for ac_option in --version -v -V -qversion; do
2469 { { ac_try="$ac_compiler $ac_option >&5"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2478 if test -s conftest.err; then
2480 ... rest of stderr output deleted ...
2481 10q' conftest.err >conftest.er1
2482 cat conftest.er1 >&5
2484 rm -f conftest.er1 conftest.err
2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2486 test $ac_status = 0; }
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2500 ac_clean_files_save=$ac_clean_files
2501 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2502 # Try to create an executable without -o first, disregard a.out.
2503 # It will help us diagnose broken compilers, and finding out an intuition
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2506 $as_echo_n "checking whether the C compiler works... " >&6; }
2507 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2509 # The possible output files:
2510 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2513 for ac_file in $ac_files
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2522 if { { ac_try="$ac_link_default"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2528 $as_echo "$ac_try_echo"; } >&5
2529 (eval "$ac_link_default") 2>&5
2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532 test $ac_status = 0; }; then :
2533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2536 # so that the user can short-circuit this test for compilers unknown to
2538 for ac_file in $ac_files ''
2540 test -f "$ac_file" || continue
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2545 # We found the default executable, but exeext='' is most
2549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 # We set ac_cv_exeext here because the later test for it is not
2554 # safe: cross compilers may not add the suffix if given an `-o'
2555 # argument, so we may need to know it at that point already.
2556 # Even if this section looks crufty: it has the advantage of
2563 test "$ac_cv_exeext" = no && ac_cv_exeext=
2568 if test -z "$ac_file"; then :
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 $as_echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576 as_fn_error 77 "C compiler cannot create executables
2577 See \`config.log' for more details" "$LINENO" 5; }
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580 $as_echo "yes" >&6; }
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2583 $as_echo_n "checking for C compiler default output file name... " >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2585 $as_echo "$ac_file" >&6; }
2586 ac_exeext=$ac_cv_exeext
2588 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2589 ac_clean_files=$ac_clean_files_save
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2591 $as_echo_n "checking for suffix of executables... " >&6; }
2592 if { { ac_try="$ac_link"
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2598 $as_echo "$ac_try_echo"; } >&5
2599 (eval "$ac_link") 2>&5
2601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2602 test $ac_status = 0; }; then :
2603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2605 # work properly (i.e., refer to `conftest.exe'), while it won't with
2607 for ac_file in conftest.exe conftest conftest.*; do
2608 test -f "$ac_file" || continue
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2620 See \`config.log' for more details" "$LINENO" 5; }
2622 rm -f conftest conftest$ac_cv_exeext
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2624 $as_echo "$ac_cv_exeext" >&6; }
2626 rm -f conftest.$ac_ext
2627 EXEEXT=$ac_cv_exeext
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2635 FILE *f = fopen ("conftest.out", "w");
2636 return ferror (f) || fclose (f) != 0;
2642 ac_clean_files="$ac_clean_files conftest.out"
2643 # Check that the compiler produces executables we can run. If not, either
2644 # the compiler is broken, or we cross compile.
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2646 $as_echo_n "checking whether we are cross compiling... " >&6; }
2647 if test "$cross_compiling" != yes; then
2648 { { ac_try="$ac_link"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2654 $as_echo "$ac_try_echo"; } >&5
2655 (eval "$ac_link") 2>&5
2657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2658 test $ac_status = 0; }
2659 if { ac_try='./conftest$ac_cv_exeext'
2660 { { case "(($ac_try" in
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666 (eval "$ac_try") 2>&5
2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669 test $ac_status = 0; }; }; then
2672 if test "$cross_compiling" = maybe; then
2675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 as_fn_error $? "cannot run C compiled programs.
2678 If you meant to cross compile, use \`--host'.
2679 See \`config.log' for more details" "$LINENO" 5; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2684 $as_echo "$cross_compiling" >&6; }
2686 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2687 ac_clean_files=$ac_clean_files_save
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2689 $as_echo_n "checking for suffix of object files... " >&6; }
2690 if ${ac_cv_objext+:} false; then :
2691 $as_echo_n "(cached) " >&6
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2704 rm -f conftest.o conftest.obj
2705 if { { ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2711 $as_echo "$ac_try_echo"; } >&5
2712 (eval "$ac_compile") 2>&5
2714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2715 test $ac_status = 0; }; then :
2716 for ac_file in conftest.o conftest.obj conftest.*; do
2717 test -f "$ac_file" || continue;
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2725 $as_echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2730 as_fn_error $? "cannot compute suffix of object files: cannot compile
2731 See \`config.log' for more details" "$LINENO" 5; }
2733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2736 $as_echo "$ac_cv_objext" >&6; }
2737 OBJEXT=$ac_cv_objext
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2740 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2741 if ${ac_cv_c_compiler_gnu+:} false; then :
2742 $as_echo_n "(cached) " >&6
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2758 if ac_fn_c_try_compile "$LINENO"; then :
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2768 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2769 if test $ac_compiler_gnu = yes; then
2774 ac_test_CFLAGS=${CFLAGS+set}
2775 ac_save_CFLAGS=$CFLAGS
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2777 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2778 if ${ac_cv_prog_cc_g+:} false; then :
2779 $as_echo_n "(cached) " >&6
2781 ac_save_c_werror_flag=$ac_c_werror_flag
2782 ac_c_werror_flag=yes
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h. */
2796 if ac_fn_c_try_compile "$LINENO"; then :
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2811 if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_c_werror_flag=$ac_save_c_werror_flag
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2827 if ac_fn_c_try_compile "$LINENO"; then :
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835 ac_c_werror_flag=$ac_save_c_werror_flag
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2838 $as_echo "$ac_cv_prog_cc_g" >&6; }
2839 if test "$ac_test_CFLAGS" = set; then
2840 CFLAGS=$ac_save_CFLAGS
2841 elif test $ac_cv_prog_cc_g = yes; then
2842 if test "$GCC" = yes; then
2848 if test "$GCC" = yes; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2855 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2856 if ${ac_cv_prog_cc_c89+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 ac_cv_prog_cc_c89=no
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2866 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2867 struct buf { int x; };
2868 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2869 static char *e (p, i)
2875 static char *f (char * (*g) (char **, int), char **p, ...)
2880 s = g (p, va_arg (v,int));
2885 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2886 function prototypes and stuff, but not '\xHH' hex character constants.
2887 These don't provoke an error unfortunately, instead are silently treated
2888 as 'x'. The following induces an error, until -std is added to get
2889 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2890 array size at least. It's necessary to write '\x00'==0 to get something
2891 that's true only with -std. */
2892 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2894 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2895 inside strings and character constants. */
2897 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2899 int test (int i, double x);
2900 struct s1 {int (*f) (int a);};
2901 struct s2 {int (*f) (double a);};
2902 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2908 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2913 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2914 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2916 CC="$ac_save_CC $ac_arg"
2917 if ac_fn_c_try_compile "$LINENO"; then :
2918 ac_cv_prog_cc_c89=$ac_arg
2920 rm -f core conftest.err conftest.$ac_objext
2921 test "x$ac_cv_prog_cc_c89" != "xno" && break
2923 rm -f conftest.$ac_ext
2928 case "x$ac_cv_prog_cc_c89" in
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2931 $as_echo "none needed" >&6; } ;;
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2934 $as_echo "unsupported" >&6; } ;;
2936 CC="$CC $ac_cv_prog_cc_c89"
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2938 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2940 if test "x$ac_cv_prog_cc_c89" != xno; then :
2945 ac_cpp='$CPP $CPPFLAGS'
2946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
2952 $as_echo_n "checking for library containing strerror... " >&6; }
2953 if ${ac_cv_search_strerror+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 ac_func_search_save_LIBS=$LIBS
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2960 /* Override any GCC internal prototype to avoid an error.
2961 Use char because int might match the return type of a GCC
2962 builtin and then its argument prototype would still apply. */
2975 for ac_lib in '' cposix; do
2976 if test -z "$ac_lib"; then
2977 ac_res="none required"
2980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2982 if ac_fn_c_try_link "$LINENO"; then :
2983 ac_cv_search_strerror=$ac_res
2985 rm -f core conftest.err conftest.$ac_objext \
2987 if ${ac_cv_search_strerror+:} false; then :
2991 if ${ac_cv_search_strerror+:} false; then :
2994 ac_cv_search_strerror=no
2997 LIBS=$ac_func_search_save_LIBS
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3000 $as_echo "$ac_cv_search_strerror" >&6; }
3001 ac_res=$ac_cv_search_strerror
3002 if test "$ac_res" != no; then :
3003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3014 # On Suns, sometimes $CPP names a directory.
3015 if test -n "$CPP" && test -d "$CPP"; then
3018 if test -z "$CPP"; then
3019 if ${ac_cv_prog_CPP+:} false; then :
3020 $as_echo_n "(cached) " >&6
3022 # Double quotes because CPP needs to be expanded
3023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3026 for ac_c_preproc_warn_flag in '' yes
3028 # Use a header file that comes with gcc, so configuring glibc
3029 # with a fresh cross-compiler works.
3030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3031 # <limits.h> exists even on freestanding compilers.
3032 # On the NeXT, cc -E runs the code through the compiler's parser,
3033 # not just through cpp. "Syntax error" is here to catch this case.
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3037 # include <limits.h>
3039 # include <assert.h>
3043 if ac_fn_c_try_cpp "$LINENO"; then :
3046 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.i conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether nonexistent headers
3052 # can be detected and how.
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3055 #include <ac_nonexistent.h>
3057 if ac_fn_c_try_cpp "$LINENO"; then :
3058 # Broken: success on invalid input.
3061 # Passes both tests.
3065 rm -f conftest.err conftest.i conftest.$ac_ext
3068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3069 rm -f conftest.i conftest.err conftest.$ac_ext
3070 if $ac_preproc_ok; then :
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3083 $as_echo "$CPP" >&6; }
3085 for ac_c_preproc_warn_flag in '' yes
3087 # Use a header file that comes with gcc, so configuring glibc
3088 # with a fresh cross-compiler works.
3089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3090 # <limits.h> exists even on freestanding compilers.
3091 # On the NeXT, cc -E runs the code through the compiler's parser,
3092 # not just through cpp. "Syntax error" is here to catch this case.
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3096 # include <limits.h>
3098 # include <assert.h>
3102 if ac_fn_c_try_cpp "$LINENO"; then :
3105 # Broken: fails on valid input.
3108 rm -f conftest.err conftest.i conftest.$ac_ext
3110 # OK, works on sane cases. Now check whether nonexistent headers
3111 # can be detected and how.
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114 #include <ac_nonexistent.h>
3116 if ac_fn_c_try_cpp "$LINENO"; then :
3117 # Broken: success on invalid input.
3120 # Passes both tests.
3124 rm -f conftest.err conftest.i conftest.$ac_ext
3127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3128 rm -f conftest.i conftest.err conftest.$ac_ext
3129 if $ac_preproc_ok; then :
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3135 See \`config.log' for more details" "$LINENO" 5; }
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3146 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3147 if ${ac_cv_path_GREP+:} false; then :
3148 $as_echo_n "(cached) " >&6
3150 if test -z "$GREP"; then
3151 ac_path_GREP_found=false
3152 # Loop through the user's path and test for each of PROGNAME-LIST
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3157 test -z "$as_dir" && as_dir=.
3158 for ac_prog in grep ggrep; do
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3161 as_fn_executable_p "$ac_path_GREP" || continue
3162 # Check for GNU ac_path_GREP and select it if it is found.
3163 # Check for GNU $ac_path_GREP
3164 case `"$ac_path_GREP" --version 2>&1` in
3166 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3169 $as_echo_n 0123456789 >"conftest.in"
3172 cat "conftest.in" "conftest.in" >"conftest.tmp"
3173 mv "conftest.tmp" "conftest.in"
3174 cp "conftest.in" "conftest.nl"
3175 $as_echo 'GREP' >> "conftest.nl"
3176 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3178 as_fn_arith $ac_count + 1 && ac_count=$as_val
3179 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3180 # Best one so far, save it but keep looking for a better one
3181 ac_cv_path_GREP="$ac_path_GREP"
3182 ac_path_GREP_max=$ac_count
3184 # 10*(2^10) chars as input seems more than enough
3185 test $ac_count -gt 10 && break
3187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3190 $ac_path_GREP_found && break 3
3195 if test -z "$ac_cv_path_GREP"; then
3196 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3199 ac_cv_path_GREP=$GREP
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3204 $as_echo "$ac_cv_path_GREP" >&6; }
3205 GREP="$ac_cv_path_GREP"
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3209 $as_echo_n "checking for egrep... " >&6; }
3210 if ${ac_cv_path_EGREP+:} false; then :
3211 $as_echo_n "(cached) " >&6
3213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3214 then ac_cv_path_EGREP="$GREP -E"
3216 if test -z "$EGREP"; then
3217 ac_path_EGREP_found=false
3218 # Loop through the user's path and test for each of PROGNAME-LIST
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3223 test -z "$as_dir" && as_dir=.
3224 for ac_prog in egrep; do
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3227 as_fn_executable_p "$ac_path_EGREP" || continue
3228 # Check for GNU ac_path_EGREP and select it if it is found.
3229 # Check for GNU $ac_path_EGREP
3230 case `"$ac_path_EGREP" --version 2>&1` in
3232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3235 $as_echo_n 0123456789 >"conftest.in"
3238 cat "conftest.in" "conftest.in" >"conftest.tmp"
3239 mv "conftest.tmp" "conftest.in"
3240 cp "conftest.in" "conftest.nl"
3241 $as_echo 'EGREP' >> "conftest.nl"
3242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3244 as_fn_arith $ac_count + 1 && ac_count=$as_val
3245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3246 # Best one so far, save it but keep looking for a better one
3247 ac_cv_path_EGREP="$ac_path_EGREP"
3248 ac_path_EGREP_max=$ac_count
3250 # 10*(2^10) chars as input seems more than enough
3251 test $ac_count -gt 10 && break
3253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3256 $ac_path_EGREP_found && break 3
3261 if test -z "$ac_cv_path_EGREP"; then
3262 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3265 ac_cv_path_EGREP=$EGREP
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3271 $as_echo "$ac_cv_path_EGREP" >&6; }
3272 EGREP="$ac_cv_path_EGREP"
3275 if test $ac_cv_c_compiler_gnu = yes; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3277 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3278 if ${ac_cv_prog_gcc_traditional+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 ac_pattern="Autoconf.*'x'"
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3288 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3289 ac_cv_prog_gcc_traditional=yes
3291 ac_cv_prog_gcc_traditional=no
3296 if test $ac_cv_prog_gcc_traditional = no; then
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3304 ac_cv_prog_gcc_traditional=yes
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3311 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3312 if test $ac_cv_prog_gcc_traditional = yes; then
3313 CC="$CC -traditional"
3318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3319 if test -f "$ac_dir/install-sh"; then
3321 ac_install_sh="$ac_aux_dir/install-sh -c"
3323 elif test -f "$ac_dir/install.sh"; then
3325 ac_install_sh="$ac_aux_dir/install.sh -c"
3327 elif test -f "$ac_dir/shtool"; then
3329 ac_install_sh="$ac_aux_dir/shtool install -c"
3333 if test -z "$ac_aux_dir"; then
3334 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3337 # These three variables are undocumented and unsupported,
3338 # and are intended to be withdrawn in a future Autoconf release.
3339 # They can cause serious problems if a builder's source tree is in a directory
3340 # whose full name contains unusual characters.
3341 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3342 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3343 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3346 # Find a good install program. We prefer a C program (faster),
3347 # so one script is as good as another. But avoid the broken or
3348 # incompatible versions:
3349 # SysV /etc/install, /usr/sbin/install
3350 # SunOS /usr/etc/install
3351 # IRIX /sbin/install
3353 # AmigaOS /C/install, which installs bootblocks on floppy discs
3354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3357 # OS/2's system install, which has a completely different semantic
3358 # ./install, which can be erroneously created by make from ./install.sh.
3359 # Reject install programs that cannot install multiple files.
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3362 if test -z "$INSTALL"; then
3363 if ${ac_cv_path_install+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir=.
3371 # Account for people who put trailing slashes in PATH elements.
3372 case $as_dir/ in #((
3373 ./ | .// | /[cC]/* | \
3374 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3375 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3378 # OSF1 and SCO ODT 3.0 have their own names for install.
3379 # Don't use installbsd from OSF since it installs stuff as root
3381 for ac_prog in ginstall scoinst install; do
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3384 if test $ac_prog = install &&
3385 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3386 # AIX install. It has an incompatible calling convention.
3388 elif test $ac_prog = install &&
3389 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3390 # program-specific install script used by HP pwplus--don't use.
3393 rm -rf conftest.one conftest.two conftest.dir
3394 echo one > conftest.one
3395 echo two > conftest.two
3397 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3398 test -s conftest.one && test -s conftest.two &&
3399 test -s conftest.dir/conftest.one &&
3400 test -s conftest.dir/conftest.two
3402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3415 rm -rf conftest.one conftest.two conftest.dir
3418 if test "${ac_cv_path_install+set}" = set; then
3419 INSTALL=$ac_cv_path_install
3421 # As a last resort, use the slow shell script. Don't cache a
3422 # value for INSTALL within a source directory, because that will
3423 # break other packages using the cache if that directory is
3424 # removed, or if the value is a relative name.
3425 INSTALL=$ac_install_sh
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3429 $as_echo "$INSTALL" >&6; }
3431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3432 # It thinks the first close brace ends the variable substitution.
3433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3440 # Checks for compilation model.
3441 # Check whether --enable-largefile was given.
3442 if test "${enable_largefile+set}" = set; then :
3443 enableval=$enable_largefile;
3446 if test "$enable_largefile" != no; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3449 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3450 if ${ac_cv_sys_largefile_CC+:} false; then :
3451 $as_echo_n "(cached) " >&6
3453 ac_cv_sys_largefile_CC=no
3454 if test "$GCC" != yes; then
3457 # IRIX 6.2 and later do not support large files by default,
3458 # so use the C compiler's -n32 option if that helps.
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #include <sys/types.h>
3462 /* Check that off_t can represent 2**63 - 1 correctly.
3463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3464 since some C++ compilers masquerading as C compilers
3465 incorrectly reject 9223372036854775807. */
3466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3468 && LARGE_OFF_T % 2147483647 == 1)
3478 if ac_fn_c_try_compile "$LINENO"; then :
3481 rm -f core conftest.err conftest.$ac_objext
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_cv_sys_largefile_CC=' -n32'; break
3486 rm -f core conftest.err conftest.$ac_objext
3490 rm -f conftest.$ac_ext
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3494 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3495 if test "$ac_cv_sys_largefile_CC" != no; then
3496 CC=$CC$ac_cv_sys_largefile_CC
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3500 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3501 if ${ac_cv_sys_file_offset_bits+:} false; then :
3502 $as_echo_n "(cached) " >&6
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #include <sys/types.h>
3508 /* Check that off_t can represent 2**63 - 1 correctly.
3509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3510 since some C++ compilers masquerading as C compilers
3511 incorrectly reject 9223372036854775807. */
3512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3514 && LARGE_OFF_T % 2147483647 == 1)
3524 if ac_fn_c_try_compile "$LINENO"; then :
3525 ac_cv_sys_file_offset_bits=no; break
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 #define _FILE_OFFSET_BITS 64
3531 #include <sys/types.h>
3532 /* Check that off_t can represent 2**63 - 1 correctly.
3533 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3534 since some C++ compilers masquerading as C compilers
3535 incorrectly reject 9223372036854775807. */
3536 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3538 && LARGE_OFF_T % 2147483647 == 1)
3548 if ac_fn_c_try_compile "$LINENO"; then :
3549 ac_cv_sys_file_offset_bits=64; break
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_cv_sys_file_offset_bits=unknown
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3557 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3558 case $ac_cv_sys_file_offset_bits in #(
3561 cat >>confdefs.h <<_ACEOF
3562 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3567 if test $ac_cv_sys_file_offset_bits = unknown; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3569 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3570 if ${ac_cv_sys_large_files+:} false; then :
3571 $as_echo_n "(cached) " >&6
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #include <sys/types.h>
3577 /* Check that off_t can represent 2**63 - 1 correctly.
3578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3579 since some C++ compilers masquerading as C compilers
3580 incorrectly reject 9223372036854775807. */
3581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3583 && LARGE_OFF_T % 2147483647 == 1)
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_sys_large_files=no; break
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599 #define _LARGE_FILES 1
3600 #include <sys/types.h>
3601 /* Check that off_t can represent 2**63 - 1 correctly.
3602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3603 since some C++ compilers masquerading as C compilers
3604 incorrectly reject 9223372036854775807. */
3605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3607 && LARGE_OFF_T % 2147483647 == 1)
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_cv_sys_large_files=1; break
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 ac_cv_sys_large_files=unknown
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3626 $as_echo "$ac_cv_sys_large_files" >&6; }
3627 case $ac_cv_sys_large_files in #(
3630 cat >>confdefs.h <<_ACEOF
3631 #define _LARGE_FILES $ac_cv_sys_large_files
3642 # Checks for general libraries.
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfo" >&5
3644 $as_echo_n "checking for tgoto in -ltinfo... " >&6; }
3645 if ${ac_cv_lib_tinfo_tgoto+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 ac_check_lib_save_LIBS=$LIBS
3649 LIBS="-ltinfo $LIBS"
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3653 /* Override any GCC internal prototype to avoid an error.
3654 Use char because int might match the return type of a GCC
3655 builtin and then its argument prototype would still apply. */
3668 if ac_fn_c_try_link "$LINENO"; then :
3669 ac_cv_lib_tinfo_tgoto=yes
3671 ac_cv_lib_tinfo_tgoto=no
3673 rm -f core conftest.err conftest.$ac_objext \
3674 conftest$ac_exeext conftest.$ac_ext
3675 LIBS=$ac_check_lib_save_LIBS
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgoto" >&5
3678 $as_echo "$ac_cv_lib_tinfo_tgoto" >&6; }
3679 if test "x$ac_cv_lib_tinfo_tgoto" = xyes; then :
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lxcurses" >&5
3686 $as_echo_n "checking for initscr in -lxcurses... " >&6; }
3687 if ${ac_cv_lib_xcurses_initscr+:} false; then :
3688 $as_echo_n "(cached) " >&6
3690 ac_check_lib_save_LIBS=$LIBS
3691 LIBS="-lxcurses $LIBS"
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3695 /* Override any GCC internal prototype to avoid an error.
3696 Use char because int might match the return type of a GCC
3697 builtin and then its argument prototype would still apply. */
3710 if ac_fn_c_try_link "$LINENO"; then :
3711 ac_cv_lib_xcurses_initscr=yes
3713 ac_cv_lib_xcurses_initscr=no
3715 rm -f core conftest.err conftest.$ac_objext \
3716 conftest$ac_exeext conftest.$ac_ext
3717 LIBS=$ac_check_lib_save_LIBS
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcurses_initscr" >&5
3720 $as_echo "$ac_cv_lib_xcurses_initscr" >&6; }
3721 if test "x$ac_cv_lib_xcurses_initscr" = xyes; then :
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
3728 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
3729 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
3730 $as_echo_n "(cached) " >&6
3732 ac_check_lib_save_LIBS=$LIBS
3733 LIBS="-lncursesw $LIBS"
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3737 /* Override any GCC internal prototype to avoid an error.
3738 Use char because int might match the return type of a GCC
3739 builtin and then its argument prototype would still apply. */
3752 if ac_fn_c_try_link "$LINENO"; then :
3753 ac_cv_lib_ncursesw_initscr=yes
3755 ac_cv_lib_ncursesw_initscr=no
3757 rm -f core conftest.err conftest.$ac_objext \
3758 conftest$ac_exeext conftest.$ac_ext
3759 LIBS=$ac_check_lib_save_LIBS
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
3762 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
3763 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
3770 $as_echo_n "checking for initscr in -lncurses... " >&6; }
3771 if ${ac_cv_lib_ncurses_initscr+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 ac_check_lib_save_LIBS=$LIBS
3775 LIBS="-lncurses $LIBS"
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3779 /* Override any GCC internal prototype to avoid an error.
3780 Use char because int might match the return type of a GCC
3781 builtin and then its argument prototype would still apply. */
3794 if ac_fn_c_try_link "$LINENO"; then :
3795 ac_cv_lib_ncurses_initscr=yes
3797 ac_cv_lib_ncurses_initscr=no
3799 rm -f core conftest.err conftest.$ac_objext \
3800 conftest$ac_exeext conftest.$ac_ext
3801 LIBS=$ac_check_lib_save_LIBS
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
3804 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
3805 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
3812 $as_echo_n "checking for initscr in -lcurses... " >&6; }
3813 if ${ac_cv_lib_curses_initscr+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 ac_check_lib_save_LIBS=$LIBS
3817 LIBS="-lcurses $LIBS"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3821 /* Override any GCC internal prototype to avoid an error.
3822 Use char because int might match the return type of a GCC
3823 builtin and then its argument prototype would still apply. */
3836 if ac_fn_c_try_link "$LINENO"; then :
3837 ac_cv_lib_curses_initscr=yes
3839 ac_cv_lib_curses_initscr=no
3841 rm -f core conftest.err conftest.$ac_objext \
3842 conftest$ac_exeext conftest.$ac_ext
3843 LIBS=$ac_check_lib_save_LIBS
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
3846 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
3847 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
3854 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
3855 if ${ac_cv_lib_termcap_tgetent+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 ac_check_lib_save_LIBS=$LIBS
3859 LIBS="-ltermcap $LIBS"
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3863 /* Override any GCC internal prototype to avoid an error.
3864 Use char because int might match the return type of a GCC
3865 builtin and then its argument prototype would still apply. */
3878 if ac_fn_c_try_link "$LINENO"; then :
3879 ac_cv_lib_termcap_tgetent=yes
3881 ac_cv_lib_termcap_tgetent=no
3883 rm -f core conftest.err conftest.$ac_objext \
3884 conftest$ac_exeext conftest.$ac_ext
3885 LIBS=$ac_check_lib_save_LIBS
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
3888 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
3889 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
3896 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
3897 if ${ac_cv_lib_termlib_tgetent+:} false; then :
3898 $as_echo_n "(cached) " >&6
3900 ac_check_lib_save_LIBS=$LIBS
3901 LIBS="-ltermlib $LIBS"
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3905 /* Override any GCC internal prototype to avoid an error.
3906 Use char because int might match the return type of a GCC
3907 builtin and then its argument prototype would still apply. */
3920 if ac_fn_c_try_link "$LINENO"; then :
3921 ac_cv_lib_termlib_tgetent=yes
3923 ac_cv_lib_termlib_tgetent=no
3925 rm -f core conftest.err conftest.$ac_objext \
3926 conftest$ac_exeext conftest.$ac_ext
3927 LIBS=$ac_check_lib_save_LIBS
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
3930 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
3931 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
3937 # Regular expressions (regcmp) are in -lgen on Solaris 2, (but in libc
3938 # at least on Solaris 10 (2.10)) and in -lintl on SCO Unix.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcmp" >&5
3940 $as_echo_n "checking for library containing regcmp... " >&6; }
3941 if ${ac_cv_search_regcmp+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 ac_func_search_save_LIBS=$LIBS
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3948 /* Override any GCC internal prototype to avoid an error.
3949 Use char because int might match the return type of a GCC
3950 builtin and then its argument prototype would still apply. */
3963 for ac_lib in '' gen intl PW; do
3964 if test -z "$ac_lib"; then
3965 ac_res="none required"
3968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3970 if ac_fn_c_try_link "$LINENO"; then :
3971 ac_cv_search_regcmp=$ac_res
3973 rm -f core conftest.err conftest.$ac_objext \
3975 if ${ac_cv_search_regcmp+:} false; then :
3979 if ${ac_cv_search_regcmp+:} false; then :
3982 ac_cv_search_regcmp=no
3985 LIBS=$ac_func_search_save_LIBS
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcmp" >&5
3988 $as_echo "$ac_cv_search_regcmp" >&6; }
3989 ac_res=$ac_cv_search_regcmp
3990 if test "$ac_res" != no; then :
3991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3996 # Checks for terminal libraries
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working terminal libraries" >&5
3998 $as_echo_n "checking for working terminal libraries... " >&6; }
4001 # Check for systems where curses is broken.
4003 if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
4004 if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
4007 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
4012 if test $curses_broken = 0; then
4015 if test "x$TERMLIBS" = x; then
4016 if test $have_tinfo = yes; then
4019 LIBS="$LIBS $TERMLIBS"
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4026 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4031 if ac_fn_c_try_link "$LINENO"; then :
4036 rm -f core conftest.err conftest.$ac_objext \
4037 conftest$ac_exeext conftest.$ac_ext
4039 if test $termok = no; then TERMLIBS=""; fi
4044 if test "x$TERMLIBS" = x; then
4045 if test $have_xcurses = yes; then
4046 TERMLIBS="-lxcurses"
4048 LIBS="$LIBS $TERMLIBS"
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4055 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4060 if ac_fn_c_try_link "$LINENO"; then :
4065 rm -f core conftest.err conftest.$ac_objext \
4066 conftest$ac_exeext conftest.$ac_ext
4068 if test $termok = no; then TERMLIBS=""; fi
4073 if test "x$TERMLIBS" = x; then
4074 if test $have_ncursesw = yes; then
4075 TERMLIBS="-lncursesw"
4077 LIBS="$LIBS $TERMLIBS"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4084 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4089 if ac_fn_c_try_link "$LINENO"; then :
4094 rm -f core conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
4097 if test $termok = no; then TERMLIBS=""; fi
4102 if test "x$TERMLIBS" = x; then
4103 if test $have_ncurses = yes; then
4104 TERMLIBS="-lncurses"
4106 LIBS="$LIBS $TERMLIBS"
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4113 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4118 if ac_fn_c_try_link "$LINENO"; then :
4123 rm -f core conftest.err conftest.$ac_objext \
4124 conftest$ac_exeext conftest.$ac_ext
4126 if test $termok = no; then TERMLIBS=""; fi
4131 if test "x$TERMLIBS" = x; then
4132 if test $have_curses = yes; then
4135 LIBS="$LIBS $TERMLIBS"
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4142 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4147 if ac_fn_c_try_link "$LINENO"; then :
4152 rm -f core conftest.err conftest.$ac_objext \
4153 conftest$ac_exeext conftest.$ac_ext
4155 if test $termok = no; then TERMLIBS=""; fi
4159 # -- Try curses & termcap.
4160 if test "x$TERMLIBS" = x; then
4161 if test $have_curses = yes; then
4162 if test $have_termcap = yes; then
4163 TERMLIBS="-lcurses -ltermcap"
4165 LIBS="$LIBS $TERMLIBS"
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4172 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4177 if ac_fn_c_try_link "$LINENO"; then :
4182 rm -f core conftest.err conftest.$ac_objext \
4183 conftest$ac_exeext conftest.$ac_ext
4185 if test $termok = no; then TERMLIBS=""; fi
4192 if test "x$TERMLIBS" = x; then
4193 if test $have_termcap = yes; then
4194 TERMLIBS="-ltermcap"
4196 LIBS="$LIBS $TERMLIBS"
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4203 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4208 if ac_fn_c_try_link "$LINENO"; then :
4213 rm -f core conftest.err conftest.$ac_objext \
4214 conftest$ac_exeext conftest.$ac_ext
4216 if test $termok = no; then TERMLIBS=""; fi
4221 if test "x$TERMLIBS" = x; then
4222 if test $have_termlib = yes; then
4223 TERMLIBS="-lcurses -ltermlib"
4225 LIBS="$LIBS $TERMLIBS"
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4232 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4237 if ac_fn_c_try_link "$LINENO"; then :
4242 rm -f core conftest.err conftest.$ac_objext \
4243 conftest$ac_exeext conftest.$ac_ext
4245 if test $termok = no; then TERMLIBS=""; fi
4249 if test "x$TERMLIBS" = x; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find terminal libraries - configure failed" >&5
4251 $as_echo "Cannot find terminal libraries - configure failed" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $TERMLIBS" >&5
4255 $as_echo "using $TERMLIBS" >&6; }
4256 LIBS="$LIBS $TERMLIBS"
4258 # Checks for header files.
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4260 $as_echo_n "checking for ANSI C header files... " >&6; }
4261 if ${ac_cv_header_stdc+:} false; then :
4262 $as_echo_n "(cached) " >&6
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4279 if ac_fn_c_try_compile "$LINENO"; then :
4280 ac_cv_header_stdc=yes
4282 ac_cv_header_stdc=no
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 if test $ac_cv_header_stdc = yes; then
4287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4294 $EGREP "memchr" >/dev/null 2>&1; then :
4297 ac_cv_header_stdc=no
4303 if test $ac_cv_header_stdc = yes; then
4304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311 $EGREP "free" >/dev/null 2>&1; then :
4314 ac_cv_header_stdc=no
4320 if test $ac_cv_header_stdc = yes; then
4321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4322 if test "$cross_compiling" = yes; then :
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4329 #if ((' ' & 0x0FF) == 0x020)
4330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4333 # define ISLOWER(c) \
4334 (('a' <= (c) && (c) <= 'i') \
4335 || ('j' <= (c) && (c) <= 'r') \
4336 || ('s' <= (c) && (c) <= 'z'))
4337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4345 for (i = 0; i < 256; i++)
4346 if (XOR (islower (i), ISLOWER (i))
4347 || toupper (i) != TOUPPER (i))
4352 if ac_fn_c_try_run "$LINENO"; then :
4355 ac_cv_header_stdc=no
4357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4358 conftest.$ac_objext conftest.beam conftest.$ac_ext
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4364 $as_echo "$ac_cv_header_stdc" >&6; }
4365 if test $ac_cv_header_stdc = yes; then
4367 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4372 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4373 inttypes.h stdint.h unistd.h
4375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4376 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4378 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4379 cat >>confdefs.h <<_ACEOF
4380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4388 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
4390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4391 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4393 cat >>confdefs.h <<_ACEOF
4394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4402 # Checks for typedefs, structures, and compiler characteristics.
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4404 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4405 if ${ac_cv_header_stat_broken+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #include <sys/types.h>
4411 #include <sys/stat.h>
4413 #if defined S_ISBLK && defined S_IFDIR
4414 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4417 #if defined S_ISBLK && defined S_IFCHR
4418 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4421 #if defined S_ISLNK && defined S_IFREG
4422 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4425 #if defined S_ISSOCK && defined S_IFREG
4426 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4430 if ac_fn_c_try_compile "$LINENO"; then :
4431 ac_cv_header_stat_broken=no
4433 ac_cv_header_stat_broken=yes
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4438 $as_echo "$ac_cv_header_stat_broken" >&6; }
4439 if test $ac_cv_header_stat_broken = yes; then
4441 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4446 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4447 if ${ac_cv_c_const+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4458 /* Ultrix mips cc rejects this sort of thing. */
4459 typedef int charset[2];
4460 const charset cs = { 0, 0 };
4461 /* SunOS 4.1.1 cc rejects this. */
4462 char const *const *pcpcc;
4464 /* NEC SVR4.0.2 mips cc rejects this. */
4465 struct point {int x, y;};
4466 static struct point const zero = {0,0};
4467 /* AIX XL C 1.02.0.0 rejects this.
4468 It does not let you subtract one const X* pointer from another in
4469 an arm of an if-expression whose if-part is not a constant
4471 const char *g = "string";
4472 pcpcc = &g + (g ? g-g : 0);
4473 /* HPUX 7.0 cc rejects these. */
4475 ppc = (char**) pcpcc;
4476 pcpcc = (char const *const *) ppc;
4477 { /* SCO 3.2v4 cc rejects this sort of thing. */
4480 char const *s = 0 ? (char *) 0 : (char const *) 0;
4485 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4487 const int *foo = &x[0];
4490 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4491 typedef const int *iptr;
4495 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4496 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4497 struct s { int j; const int *ap[3]; } bx;
4498 struct s *b = &bx; b->j = 5;
4500 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4504 return !cs[0] && !zero.x;
4511 if ac_fn_c_try_compile "$LINENO"; then :
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4519 $as_echo "$ac_cv_c_const" >&6; }
4520 if test $ac_cv_c_const = no; then
4522 $as_echo "#define const /**/" >>confdefs.h
4526 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4527 if test "x$ac_cv_type_off_t" = xyes; then :
4531 cat >>confdefs.h <<_ACEOF
4532 #define off_t long int
4537 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4538 if test "x$ac_cv_type_size_t" = xyes; then :
4542 cat >>confdefs.h <<_ACEOF
4543 #define size_t unsigned int
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4549 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4550 if ${ac_cv_header_time+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <sys/types.h>
4556 #include <sys/time.h>
4562 if ((struct tm *) 0)
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_header_time=yes
4571 ac_cv_header_time=no
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4576 $as_echo "$ac_cv_header_time" >&6; }
4577 if test $ac_cv_header_time = yes; then
4579 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4584 # Autoheader templates for symbols defined later by AC_DEFINE.
4614 # Checks for identifiers.
4615 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4616 if test "x$ac_cv_type_off_t" = xyes; then :
4620 cat >>confdefs.h <<_ACEOF
4621 #define off_t long int
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void" >&5
4627 $as_echo_n "checking for void... " >&6; }
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4641 $as_echo "yes" >&6; }; $as_echo "#define HAVE_VOID 1" >>confdefs.h
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const" >&5
4649 $as_echo_n "checking for const... " >&6; }
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4661 if ac_fn_c_try_compile "$LINENO"; then :
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4663 $as_echo "yes" >&6; }; $as_echo "#define HAVE_CONST 1" >>confdefs.h
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
4671 $as_echo_n "checking for time_t... " >&6; }
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685 $as_echo "yes" >&6; }; $as_echo "#define HAVE_TIME_T 1" >>confdefs.h
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5
4693 $as_echo_n "checking for st_ino in struct stat... " >&6; }
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 #include <sys/types.h>
4697 #include <sys/stat.h>
4701 struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STAT_INO 1" >>confdefs.h
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 # Checks for library functions.
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4718 $as_echo_n "checking return type of signal handlers... " >&6; }
4719 if ${ac_cv_type_signal+:} false; then :
4720 $as_echo_n "(cached) " >&6
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 #include <sys/types.h>
4730 return *(signal (0, 0)) (0) == 1;
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736 ac_cv_type_signal=int
4738 ac_cv_type_signal=void
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4743 $as_echo "$ac_cv_type_signal" >&6; }
4745 cat >>confdefs.h <<_ACEOF
4746 #define RETSIGTYPE $ac_cv_type_signal
4750 for ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod
4752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4754 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4755 cat >>confdefs.h <<_ACEOF
4756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4763 # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
4765 $as_echo_n "checking for memcpy... " >&6; }
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4780 if ac_fn_c_try_link "$LINENO"; then :
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782 $as_echo "yes" >&6; }; $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4788 rm -f core conftest.err conftest.$ac_objext \
4789 conftest$ac_exeext conftest.$ac_ext
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5
4792 $as_echo_n "checking for strchr... " >&6; }
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4807 if ac_fn_c_try_link "$LINENO"; then :
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRCHR 1" >>confdefs.h
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4815 rm -f core conftest.err conftest.$ac_objext \
4816 conftest$ac_exeext conftest.$ac_ext
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5
4819 $as_echo_n "checking for strstr... " >&6; }
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4834 if ac_fn_c_try_link "$LINENO"; then :
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4842 rm -f core conftest.err conftest.$ac_objext \
4843 conftest$ac_exeext conftest.$ac_ext
4845 # Some systems have termios.h but not the corresponding functions.
4846 ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
4847 if test "x$ac_cv_func_tcgetattr" = xyes; then :
4848 $as_echo "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5
4854 $as_echo_n "checking for fileno... " >&6; }
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4864 static int x; x = fileno(stdin);
4869 if ac_fn_c_try_link "$LINENO"; then :
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FILENO 1" >>confdefs.h
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4877 rm -f core conftest.err conftest.$ac_objext \
4878 conftest$ac_exeext conftest.$ac_ext
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5
4881 $as_echo_n "checking for strerror... " >&6; }
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4897 static char *x; x = strerror(0);
4902 if ac_fn_c_try_link "$LINENO"; then :
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4904 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4910 rm -f core conftest.err conftest.$ac_objext \
4911 conftest$ac_exeext conftest.$ac_ext
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
4914 $as_echo_n "checking for sys_errlist... " >&6; }
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4921 extern char *sys_errlist[]; static char **x; x = sys_errlist;
4926 if ac_fn_c_try_link "$LINENO"; then :
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4934 rm -f core conftest.err conftest.$ac_objext \
4935 conftest$ac_exeext conftest.$ac_ext
4937 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
4939 if test "x$ac_cv_type_sigset_t" = xyes; then :
4941 cat >>confdefs.h <<_ACEOF
4942 #define HAVE_SIGSET_T 1
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5
4950 $as_echo_n "checking for sigemptyset... " >&6; }
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4959 sigset_t s; sigemptyset(&s);
4964 if ac_fn_c_try_link "$LINENO"; then :
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4972 rm -f core conftest.err conftest.$ac_objext \
4973 conftest$ac_exeext conftest.$ac_ext
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4977 $as_echo_n "checking for errno... " >&6; }
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4987 static int x; x = errno;
4992 if ac_fn_c_try_link "$LINENO"; then :
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
4994 $as_echo "yes - in errno.h" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4997 rm -f core conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
4999 if test $have_errno = no; then
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5009 extern int errno; static int x; x = errno;
5014 if ac_fn_c_try_link "$LINENO"; then :
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5016 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5017 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5023 rm -f core conftest.err conftest.$ac_objext \
5024 conftest$ac_exeext conftest.$ac_ext
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
5028 $as_echo_n "checking for locale... " >&6; }
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5033 #include <langinfo.h>
5037 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
5042 if ac_fn_c_try_link "$LINENO"; then :
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5044 $as_echo "yes" >&6; }; $as_echo "#define HAVE_LOCALE 1" >>confdefs.h
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5050 rm -f core conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5
5054 $as_echo_n "checking for ctype functions... " >&6; }
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5064 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
5069 if ac_fn_c_try_link "$LINENO"; then :
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }; $as_echo "#define HAVE_UPPER_LOWER 1" >>confdefs.h
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5077 rm -f core conftest.err conftest.$ac_objext \
5078 conftest$ac_exeext conftest.$ac_ext
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5
5081 $as_echo_n "checking for wctype functions... " >&6; }
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5088 iswlower(0); iswupper(0); towlower(0); towupper(0);
5093 if ac_fn_c_try_link "$LINENO"; then :
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095 $as_echo "yes" >&6; }; $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5101 rm -f core conftest.err conftest.$ac_objext \
5102 conftest$ac_exeext conftest.$ac_ext
5104 # Checks for external variable ospeed in the termcap library.
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5
5107 $as_echo_n "checking termcap for ospeed... " >&6; }
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5111 #include <sys/types.h>
5113 #include <termios.h>
5116 #include <termcap.h>
5126 if ac_fn_c_try_link "$LINENO"; then :
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5
5128 $as_echo "yes - in termcap.h" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5131 rm -f core conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5133 if test $have_ospeed = no; then
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5140 extern short ospeed; ospeed = 0;
5145 if ac_fn_c_try_link "$LINENO"; then :
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5147 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5148 $as_echo "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5154 rm -f core conftest.err conftest.$ac_objext \
5155 conftest$ac_exeext conftest.$ac_ext
5158 # Compile in secure mode?
5160 # Check whether --with-secure was given.
5161 if test "${with_secure+set}" = set; then :
5162 withval=$with_secure; $as_echo "#define SECURE_COMPILE 1" >>confdefs.h
5165 $as_echo "#define SECURE_COMPILE 0" >>confdefs.h
5170 # Should we use floating point?
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floating point" >&5
5172 $as_echo_n "checking for floating point... " >&6; }
5174 # Check whether --with-no-float was given.
5175 if test "${with_no_float+set}" = set; then :
5176 withval=$with_no_float; WANT_NO_FLOAT=1
5181 if test $WANT_NO_FLOAT = 0; then
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5188 double f1 = 12.5; double f2 = f1*f1/2.5;
5193 if ac_fn_c_try_link "$LINENO"; then :
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5195 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT 1" >>confdefs.h
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5201 rm -f core conftest.err conftest.$ac_objext \
5202 conftest$ac_exeext conftest.$ac_ext
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by user" >&5
5205 $as_echo "disabled by user" >&6; }
5208 # Checks for regular expression functions.
5210 have_posix_regex=unknown
5213 # Select a regular expression library.
5216 # Check whether --with-regex was given.
5217 if test "${with_regex+set}" = set; then :
5218 withval=$with_regex; WANT_REGEX="$withval"
5222 if test $have_regex = no; then
5223 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
5224 # Some versions of Solaris have a regcomp() function, but it doesn't work!
5225 # So we run a test program. If we're cross-compiling, do it the old way.
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX regcomp" >&5
5227 $as_echo_n "checking for POSIX regcomp... " >&6; }
5228 if test "$cross_compiling" = yes; then :
5229 have_posix_regex=unknown
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5234 #include <sys/types.h>
5236 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5237 if (regcomp(&r, "abc", 0)) exit(1);
5238 if (regexec(&r, text, 1, &rm, 0)) exit(1);
5240 if (rm.rm_so != 1) exit(1); /* check for correct offset */
5242 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5246 if ac_fn_c_try_run "$LINENO"; then :
5247 have_posix_regex=yes
5251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5252 conftest.$ac_objext conftest.beam conftest.$ac_ext
5255 if test $have_posix_regex = yes; 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 supported_regex="$supported_regex posix"
5261 elif test $have_posix_regex = unknown; then
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5265 #include <sys/types.h>
5270 regex_t *r; regfree(r);
5275 if ac_fn_c_try_link "$LINENO"; then :
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277 $as_echo "yes" >&6; }
5278 $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5279 have_regex=yes; supported_regex="$supported_regex posix"
5281 rm -f core conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5290 if test $have_regex = no; then
5291 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
5293 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
5294 if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 ac_check_lib_save_LIBS=$LIBS
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5308 char pcre_compile ();
5312 return pcre_compile ();
5317 if ac_fn_c_try_link "$LINENO"; then :
5318 ac_cv_lib_pcre_pcre_compile=yes
5320 ac_cv_lib_pcre_pcre_compile=no
5322 rm -f core conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
5327 $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
5328 if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
5329 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
5330 LIBS="$LIBS -lpcre" have_regex=yes; supported_regex="$supported_regex pcre"
5336 if test $have_regex = no; then
5337 if test $WANT_REGEX = auto -o $WANT_REGEX = gnu; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re_compile_pattern in -lc" >&5
5339 $as_echo_n "checking for re_compile_pattern in -lc... " >&6; }
5340 if ${ac_cv_lib_c_re_compile_pattern+:} false; then :
5341 $as_echo_n "(cached) " >&6
5343 ac_check_lib_save_LIBS=$LIBS
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5348 /* Override any GCC internal prototype to avoid an error.
5349 Use char because int might match the return type of a GCC
5350 builtin and then its argument prototype would still apply. */
5354 char re_compile_pattern ();
5358 return re_compile_pattern ();
5363 if ac_fn_c_try_link "$LINENO"; then :
5364 ac_cv_lib_c_re_compile_pattern=yes
5366 ac_cv_lib_c_re_compile_pattern=no
5368 rm -f core conftest.err conftest.$ac_objext \
5369 conftest$ac_exeext conftest.$ac_ext
5370 LIBS=$ac_check_lib_save_LIBS
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_re_compile_pattern" >&5
5373 $as_echo "$ac_cv_lib_c_re_compile_pattern" >&6; }
5374 if test "x$ac_cv_lib_c_re_compile_pattern" = xyes; then :
5375 $as_echo "#define HAVE_GNU_REGEX 1" >>confdefs.h
5376 have_regex=yes; supported_regex="$supported_regex gnu"
5382 if test $have_regex = no; then
5383 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
5384 ac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp"
5385 if test "x$ac_cv_func_regcmp" = xyes; then :
5386 $as_echo "#define HAVE_REGCMP 1" >>confdefs.h
5387 have_regex=yes; supported_regex="$supported_regex regcmp"
5393 if test $have_regex = no; then
5394 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V8 regcomp" >&5
5396 $as_echo_n "checking for V8 regcomp... " >&6; }
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5409 if ac_fn_c_try_link "$LINENO"; then :
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5411 $as_echo "yes" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5412 have_regex=yes; supported_regex="$supported_regex regcomp"
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5417 rm -f core conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5422 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
5423 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5
5425 $as_echo "using V8 regcomp -- local source" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5427 supported_regex="$supported_regex regcomp-local"
5428 $as_echo "#define HAVE_REGEXEC2 1" >>confdefs.h
5429 REGEX_O='regexp.$(O)' have_regex=yes
5433 if test $have_regex = no; then
5434 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re_comp" >&5
5436 $as_echo_n "checking for re_comp... " >&6; }
5437 ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
5438 if test "x$ac_cv_func_re_comp" = xyes; then :
5439 $as_echo "#define HAVE_RE_COMP 1" >>confdefs.h
5440 have_regex=yes; supported_regex="$supported_regex re_comp"
5446 if test $have_regex = no; then
5447 if test $WANT_REGEX = auto -o $WANT_REGEX = none; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using no regex" >&5
5449 $as_echo "using no regex" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find regular expression library" >&5
5452 $as_echo "$as_me: WARNING: cannot find regular expression library" >&2;}
5454 $as_echo "#define NO_REGEX 1" >>confdefs.h
5455 supported_regex="$supported_regex none"
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: regular expression library: $supported_regex" >&5
5459 $as_echo "regular expression library: $supported_regex" >&6; }
5462 # Check whether --with-editor was given.
5463 if test "${with_editor+set}" = set; then :
5464 withval=$with_editor; cat >>confdefs.h <<_ACEOF
5465 #define EDIT_PGM "$withval"
5469 $as_echo "#define EDIT_PGM \"vi\"" >>confdefs.h
5476 ac_config_files="$ac_config_files Makefile"
5478 cat >confcache <<\_ACEOF
5479 # This file is a shell script that caches the results of configure
5480 # tests run on this system so they can be shared between configure
5481 # scripts and configure runs, see configure's option --config-cache.
5482 # It is not useful on other systems. If it contains results you don't
5483 # want to keep, you may remove or edit it.
5485 # config.status only pays attention to the cache file if you give it
5486 # the --recheck option to rerun configure.
5488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5494 # The following way of writing the cache mishandles newlines in values,
5495 # but we know of no workaround that is simple, portable, and efficient.
5496 # So, we kill variables containing newlines.
5497 # Ultrix sh set writes to stderr and can't be redirected directly,
5498 # and sets the high bit in the cache file unless we assign to the vars.
5500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5501 eval ac_val=\$$ac_var
5505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5506 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5509 _ | IFS | as_nl) ;; #(
5510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5511 *) { eval $ac_var=; unset $ac_var;} ;;
5517 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5518 *${as_nl}ac_space=\ *)
5519 # `set' does not quote correctly, so add quotes: double-quote
5520 # substitution turns \\\\ into \\, and sed turns \\ into \.
5523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5526 # `set' quotes correctly as required by POSIX, so do not add quotes.
5527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5540 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5541 if test -w "$cache_file"; then
5542 if test "x$cache_file" != "x/dev/null"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5544 $as_echo "$as_me: updating cache $cache_file" >&6;}
5545 if test ! -f "$cache_file" || test -h "$cache_file"; then
5546 cat confcache >"$cache_file"
5548 case $cache_file in #(
5550 mv -f confcache "$cache_file"$$ &&
5551 mv -f "$cache_file"$$ "$cache_file" ;; #(
5553 mv -f confcache "$cache_file" ;;
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5559 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5565 # Let make expand exec_prefix.
5566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5568 DEFS=-DHAVE_CONFIG_H
5573 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5574 # 1. Remove the extension, and $U if already installed.
5575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5576 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5578 # will be set to the directory where LIBOBJS objects are built.
5579 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5580 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5584 LTLIBOBJS=$ac_ltlibobjs
5588 : "${CONFIG_STATUS=./config.status}"
5590 ac_clean_files_save=$ac_clean_files
5591 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5593 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5595 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5597 # Generated by $as_me.
5598 # Run this file to recreate the current configuration.
5599 # Compiler output produced by configure, useful for debugging
5600 # configure, is in config.log if it exists.
5606 SHELL=\${CONFIG_SHELL-$SHELL}
5609 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5610 ## -------------------- ##
5611 ## M4sh Initialization. ##
5612 ## -------------------- ##
5614 # Be more Bourne compatible
5615 DUALCASE=1; export DUALCASE # for MKS sh
5616 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5619 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5620 # is contrary to our usage. Disable this feature.
5621 alias -g '${1+"$@"}'='"$@"'
5622 setopt NO_GLOB_SUBST
5624 case `(set -o) 2>/dev/null` in #(
5636 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5637 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5638 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5640 # Prefer a ksh shell builtin over an external printf program on Solaris,
5641 # but without wasting forks for bash or zsh.
5642 if test -z "$BASH_VERSION$ZSH_VERSION" \
5643 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5644 as_echo='print -r --'
5645 as_echo_n='print -rn --'
5646 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5647 as_echo='printf %s\n'
5648 as_echo_n='printf %s'
5650 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5651 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5652 as_echo_n='/usr/ucb/echo -n'
5654 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5655 as_echo_n_body='eval
5659 expr "X$arg" : "X\\(.*\\)$as_nl";
5660 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5662 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5664 export as_echo_n_body
5665 as_echo_n='sh -c $as_echo_n_body as_echo'
5668 as_echo='sh -c $as_echo_body as_echo'
5671 # The user is always right.
5672 if test "${PATH_SEPARATOR+set}" != set; then
5674 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5675 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5682 # We need space, tab and new line, in precisely that order. Quoting is
5683 # there to prevent editors from complaining about space-tab.
5684 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5685 # splitting by setting IFS to empty value.)
5688 # Find who we are. Look in the path if we contain no directory separator.
5691 *[\\/]* ) as_myself=$0 ;;
5692 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 test -z "$as_dir" && as_dir=.
5697 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5703 # We did not find ourselves, most probably we were run as `sh COMMAND'
5704 # in which case we are not to be found in the path.
5705 if test "x$as_myself" = x; then
5708 if test ! -f "$as_myself"; then
5709 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5713 # Unset variables that we do not need and which cause bugs (e.g. in
5714 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5715 # suppresses any "Segmentation fault" message there. '((' could
5716 # trigger a bug in pdksh 5.2.14.
5717 for as_var in BASH_ENV ENV MAIL MAILPATH
5718 do eval test x\${$as_var+set} = xset \
5719 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5732 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5735 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5736 # ----------------------------------------
5737 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5738 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5739 # script with STATUS, using 1 if that was 0.
5742 as_status=$1; test $as_status -eq 0 && as_status=1
5744 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5745 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5747 $as_echo "$as_me: error: $2" >&2
5748 as_fn_exit $as_status
5752 # as_fn_set_status STATUS
5753 # -----------------------
5754 # Set $? to STATUS, without forking.
5758 } # as_fn_set_status
5762 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5772 # Portably unset VAR.
5775 { eval $1=; unset $1;}
5777 as_unset=as_fn_unset
5778 # as_fn_append VAR VALUE
5779 # ----------------------
5780 # Append the text in VALUE to the end of the definition contained in VAR. Take
5781 # advantage of any shell optimizations that allow amortized linear growth over
5782 # repeated appends, instead of the typical quadratic growth present in naive
5784 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5785 eval 'as_fn_append ()
5796 # as_fn_arith ARG...
5797 # ------------------
5798 # Perform arithmetic evaluation on the ARGs, and store the result in the
5799 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5800 # must be portable across $(()) and expr.
5801 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5802 eval 'as_fn_arith ()
5809 as_val=`expr "$@" || test $? -eq 1`
5814 if expr a : '\(a\)' >/dev/null 2>&1 &&
5815 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5821 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5822 as_basename=basename
5827 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5833 as_me=`$as_basename -- "$0" ||
5834 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5835 X"$0" : 'X\(//\)$' \| \
5836 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5838 sed '/^.*\/\([^/][^/]*\)\/*$/{
5852 # Avoid depending upon Character Ranges.
5853 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5854 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5855 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5856 as_cr_digits='0123456789'
5857 as_cr_alnum=$as_cr_Letters$as_cr_digits
5859 ECHO_C= ECHO_N= ECHO_T=
5860 case `echo -n x` in #(((((
5862 case `echo 'xy\c'` in
5863 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5865 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5872 rm -f conf$$ conf$$.exe conf$$.file
5873 if test -d conf$$.dir; then
5874 rm -f conf$$.dir/conf$$.file
5877 mkdir conf$$.dir 2>/dev/null
5879 if (echo >conf$$.file) 2>/dev/null; then
5880 if ln -s conf$$.file conf$$ 2>/dev/null; then
5882 # ... but there are two gotchas:
5883 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5884 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5885 # In both cases, we have to default to `cp -pR'.
5886 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5888 elif ln conf$$.file conf$$ 2>/dev/null; then
5896 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5897 rmdir conf$$.dir 2>/dev/null
5902 # Create "$as_dir" as a directory, including parents if necessary.
5907 -*) as_dir=./$as_dir;;
5909 test -d "$as_dir" || eval $as_mkdir_p || {
5913 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5914 *) as_qdir=$as_dir;;
5916 as_dirs="'$as_qdir' $as_dirs"
5917 as_dir=`$as_dirname -- "$as_dir" ||
5918 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5919 X"$as_dir" : 'X\(//\)[^/]' \| \
5920 X"$as_dir" : 'X\(//\)$' \| \
5921 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5922 $as_echo X"$as_dir" |
5923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5940 test -d "$as_dir" && break
5942 test -z "$as_dirs" || eval "mkdir $as_dirs"
5943 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5947 if mkdir -p . 2>/dev/null; then
5948 as_mkdir_p='mkdir -p "$as_dir"'
5950 test -d ./-p && rmdir ./-p
5955 # as_fn_executable_p FILE
5956 # -----------------------
5957 # Test if FILE is an executable regular file.
5958 as_fn_executable_p ()
5960 test -f "$1" && test -x "$1"
5961 } # as_fn_executable_p
5963 as_executable_p=as_fn_executable_p
5965 # Sed expression to map a string onto a valid CPP name.
5966 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5968 # Sed expression to map a string onto a valid variable name.
5969 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5973 ## ----------------------------------- ##
5974 ## Main body of $CONFIG_STATUS script. ##
5975 ## ----------------------------------- ##
5977 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5980 # Save the log message, to keep $0 and so on meaningful, and to
5981 # report actual input values of CONFIG_FILES etc. instead of their
5982 # values after options handling.
5984 This file was extended by less $as_me 1, which was
5985 generated by GNU Autoconf 2.69. Invocation command line was
5987 CONFIG_FILES = $CONFIG_FILES
5988 CONFIG_HEADERS = $CONFIG_HEADERS
5989 CONFIG_LINKS = $CONFIG_LINKS
5990 CONFIG_COMMANDS = $CONFIG_COMMANDS
5993 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5998 case $ac_config_files in *"
5999 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6002 case $ac_config_headers in *"
6003 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6008 # Files that config.status was made for.
6009 config_files="$ac_config_files"
6010 config_headers="$ac_config_headers"
6014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6016 \`$as_me' instantiates files and other configuration actions
6017 from templates according to the current configuration. Unless the files
6018 and actions are specified as TAGs, all are instantiated by default.
6020 Usage: $0 [OPTION]... [TAG]...
6022 -h, --help print this help, then exit
6023 -V, --version print version number and configuration settings, then exit
6024 --config print configuration, then exit
6025 -q, --quiet, --silent
6026 do not print progress messages
6027 -d, --debug don't remove temporary files
6028 --recheck update $as_me by reconfiguring in the same conditions
6029 --file=FILE[:TEMPLATE]
6030 instantiate the configuration file FILE
6031 --header=FILE[:TEMPLATE]
6032 instantiate the configuration header FILE
6034 Configuration files:
6037 Configuration headers:
6040 Report bugs to the package provider."
6043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6044 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6046 less config.status 1
6047 configured by $0, generated by GNU Autoconf 2.69,
6048 with options \\"\$ac_cs_config\\"
6050 Copyright (C) 2012 Free Software Foundation, Inc.
6051 This config.status script is free software; the Free Software Foundation
6052 gives unlimited permission to copy, distribute and modify it."
6057 test -n "\$AWK" || AWK=awk
6060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6061 # The default lists apply if the user does not specify any file.
6067 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6068 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6084 # Handling of the options.
6085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6087 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6088 $as_echo "$ac_cs_version"; exit ;;
6089 --config | --confi | --conf | --con | --co | --c )
6090 $as_echo "$ac_cs_config"; exit ;;
6091 --debug | --debu | --deb | --de | --d | -d )
6093 --file | --fil | --fi | --f )
6096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6097 '') as_fn_error $? "missing file argument" ;;
6099 as_fn_append CONFIG_FILES " '$ac_optarg'"
6100 ac_need_defaults=false;;
6101 --header | --heade | --head | --hea )
6104 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6106 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6107 ac_need_defaults=false;;
6109 # Conflict between --help and --header
6110 as_fn_error $? "ambiguous option: \`$1'
6111 Try \`$0 --help' for more information.";;
6112 --help | --hel | -h )
6113 $as_echo "$ac_cs_usage"; exit ;;
6114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6119 -*) as_fn_error $? "unrecognized option: \`$1'
6120 Try \`$0 --help' for more information." ;;
6122 *) as_fn_append ac_config_targets " $1"
6123 ac_need_defaults=false ;;
6129 ac_configure_extra_args=
6131 if $ac_cs_silent; then
6133 ac_configure_extra_args="$ac_configure_extra_args --silent"
6137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6138 if \$ac_cs_recheck; then
6139 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6141 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6142 CONFIG_SHELL='$SHELL'
6148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6153 ## Running $as_me. ##
6159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6164 # Handling of arguments.
6165 for ac_config_target in $ac_config_targets
6167 case $ac_config_target in
6168 "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
6169 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6171 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6176 # If the user did not use the arguments to specify the items to instantiate,
6177 # then the envvar interface is used. Set only those that are not.
6178 # We use the long form for the default assignment because of an extremely
6179 # bizarre bug on SunOS 4.1.3.
6180 if $ac_need_defaults; then
6181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6182 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6185 # Have a temporary directory for convenience. Make it in the build tree
6186 # simply because there is no reason against having it here, and in addition,
6187 # creating and moving files from /tmp can sometimes cause problems.
6188 # Hook for its removal unless debugging.
6189 # Note that there is a small window in which the directory will not be cleaned:
6190 # after its creation but before its name has been assigned to `$tmp'.
6194 trap 'exit_status=$?
6196 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6198 trap 'as_fn_exit 1' 1 2 13 15
6200 # Create a (secure) tmp directory for tmp files.
6203 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6207 tmp=./conf$$-$RANDOM
6208 (umask 077 && mkdir "$tmp")
6209 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6212 # Set up the scripts for CONFIG_FILES section.
6213 # No need to generate them if there are no CONFIG_FILES.
6214 # This happens for instance with `./config.status config.h'.
6215 if test -n "$CONFIG_FILES"; then
6218 ac_cr=`echo X | tr X '\015'`
6219 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6220 # But we know of no other shell where ac_cr would be empty at this
6221 # point, so we can use a bashism as a fallback.
6222 if test "x$ac_cr" = x; then
6223 eval ac_cr=\$\'\\r\'
6225 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6226 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6232 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6237 echo "cat >conf$$subs.awk <<_ACEOF" &&
6238 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6242 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6244 for ac_last_try in false false false false false :; do
6245 . ./conf$$subs.sh ||
6246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6248 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6249 if test $ac_delim_n = $ac_delim_num; then
6251 elif $ac_last_try; then
6252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6260 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6264 s/^/S["/; s/!.*/"]=/
6274 s/\(.\{148\}\)..*/\1/
6276 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6288 s/\(.\{148\}\)..*/\1/
6290 s/["\\]/\\&/g; s/^/"/; s/$/"/
6294 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6299 ' <conf$$subs.awk | sed '
6304 ' >>$CONFIG_STATUS || ac_write_fail=1
6305 rm -f conf$$subs.awk
6306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6308 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6309 for (key in S) S_is_set[key] = 1
6315 nfields = split(line, field, "@")
6317 len = length(field[1])
6318 for (i = 2; i < nfields; i++) {
6320 keylen = length(key)
6321 if (S_is_set[key]) {
6323 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6324 len += length(value) + length(field[++i])
6335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6336 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6337 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6340 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6341 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6344 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6345 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6346 # trailing colons and then remove the whole line if VPATH becomes empty
6347 # (actually we leave an empty line to preserve line numbers).
6348 if test "x$srcdir" = x.; then
6349 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6368 fi # test -n "$CONFIG_FILES"
6370 # Set up the scripts for CONFIG_HEADERS section.
6371 # No need to generate them if there are no CONFIG_HEADERS.
6372 # This happens for instance with `./config.status Makefile'.
6373 if test -n "$CONFIG_HEADERS"; then
6374 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6378 # Transform confdefs.h into an awk script `defines.awk', embedded as
6379 # here-document in config.status, that substitutes the proper values into
6380 # config.h.in to produce config.h.
6382 # Create a delimiter string that does not exist in confdefs.h, to ease
6383 # handling of long lines.
6385 for ac_last_try in false false :; do
6386 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6387 if test -z "$ac_tt"; then
6389 elif $ac_last_try; then
6390 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6396 # For the awk script, D is an array of macro values keyed by name,
6397 # likewise P contains macro parameters if any. Preserve backslash
6398 # newline sequences.
6400 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6402 s/.\{148\}/&'"$ac_delim"'/g
6405 s/^[ ]*#[ ]*define[ ][ ]*/ /
6412 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6414 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6419 D["\1"]=" \3\\\\\\n"\\/p
6421 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6426 s/.\{148\}/&'"$ac_delim"'/g
6431 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6434 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6436 ' <confdefs.h | sed '
6437 s/'"$ac_delim"'/"\\\
6438 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6441 for (key in D) D_is_set[key] = 1
6444 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6446 split(line, arg, " ")
6447 if (arg[1] == "#") {
6451 defundef = substr(arg[1], 2)
6454 split(mac1, mac2, "(") #)
6456 prefix = substr(line, 1, index(line, defundef) - 1)
6457 if (D_is_set[macro]) {
6458 # Preserve the white space surrounding the "#".
6459 print prefix "define", macro P[macro] D[macro]
6462 # Replace #undef with comments. This is necessary, for example,
6463 # in the case of _POSIX_SOURCE, which is predefined and required
6464 # on some systems where configure will not decide to define it.
6465 if (defundef == "undef") {
6466 print "/*", prefix defundef, macro, "*/"
6474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6475 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6476 fi # test -n "$CONFIG_HEADERS"
6479 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6484 :[FHLC]) ac_mode=$ac_tag; continue;;
6486 case $ac_mode$ac_tag in
6488 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6489 :[FH]-) ac_tag=-:-;;
6490 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6507 -) ac_f="$ac_tmp/stdin";;
6508 *) # Look for the file first in the build tree, then in the source tree
6509 # (if the path is not absolute). The absolute path cannot be DOS-style,
6510 # because $ac_f cannot contain `:'.
6514 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6516 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6518 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6519 as_fn_append ac_file_inputs " '$ac_f'"
6522 # Let's still pretend it is `configure' which instantiates (i.e., don't
6523 # use $as_me), people would be surprised to read:
6524 # /* config.h. Generated by config.status. */
6525 configure_input='Generated from '`
6526 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6528 if test x"$ac_file" != x-; then
6529 configure_input="$ac_file. $configure_input"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6531 $as_echo "$as_me: creating $ac_file" >&6;}
6533 # Neutralize special characters interpreted by sed in replacement strings.
6534 case $configure_input in #(
6535 *\&* | *\|* | *\\* )
6536 ac_sed_conf_input=`$as_echo "$configure_input" |
6537 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6538 *) ac_sed_conf_input=$configure_input;;
6542 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6548 ac_dir=`$as_dirname -- "$ac_file" ||
6549 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6550 X"$ac_file" : 'X\(//\)[^/]' \| \
6551 X"$ac_file" : 'X\(//\)$' \| \
6552 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6553 $as_echo X"$ac_file" |
6554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6571 as_dir="$ac_dir"; as_fn_mkdir_p
6575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6578 # A ".." for each directory in $ac_dir_suffix.
6579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6580 case $ac_top_builddir_sub in
6581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6585 ac_abs_top_builddir=$ac_pwd
6586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6587 # for backward compatibility:
6588 ac_top_builddir=$ac_top_build_prefix
6591 .) # We are building in place.
6593 ac_top_srcdir=$ac_top_builddir_sub
6594 ac_abs_top_srcdir=$ac_pwd ;;
6595 [\\/]* | ?:[\\/]* ) # Absolute name.
6596 ac_srcdir=$srcdir$ac_dir_suffix;
6597 ac_top_srcdir=$srcdir
6598 ac_abs_top_srcdir=$srcdir ;;
6600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6601 ac_top_srcdir=$ac_top_build_prefix$srcdir
6602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6615 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6620 # If the template does not know about datarootdir, expand it.
6621 # FIXME: This hack should be removed a few years after 2.60.
6622 ac_datarootdir_hack=; ac_datarootdir_seen=
6633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6634 *datarootdir*) ac_datarootdir_seen=yes;;
6635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6640 ac_datarootdir_hack='
6641 s&@datadir@&$datadir&g
6642 s&@docdir@&$docdir&g
6643 s&@infodir@&$infodir&g
6644 s&@localedir@&$localedir&g
6645 s&@mandir@&$mandir&g
6646 s&\\\${datarootdir}&$datarootdir&g' ;;
6650 # Neutralize VPATH when `$srcdir' = `.'.
6651 # Shell code in configure.ac might set extrasub.
6652 # FIXME: do we really want to maintain this feature?
6653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6654 ac_sed_extra="$ac_vpsub
6657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6660 s|@configure_input@|$ac_sed_conf_input|;t t
6661 s&@top_builddir@&$ac_top_builddir_sub&;t t
6662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6663 s&@srcdir@&$ac_srcdir&;t t
6664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6665 s&@top_srcdir@&$ac_top_srcdir&;t t
6666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6667 s&@builddir@&$ac_builddir&;t t
6668 s&@abs_builddir@&$ac_abs_builddir&;t t
6669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6670 s&@INSTALL@&$ac_INSTALL&;t t
6671 $ac_datarootdir_hack
6673 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6674 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6676 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6677 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6678 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6679 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6681 which seems to be undefined. Please make sure it is defined" >&5
6682 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6683 which seems to be undefined. Please make sure it is defined" >&2;}
6685 rm -f "$ac_tmp/stdin"
6687 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6688 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6696 if test x"$ac_file" != x-; then
6698 $as_echo "/* $configure_input */" \
6699 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6700 } >"$ac_tmp/config.h" \
6701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6702 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6704 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6707 mv "$ac_tmp/config.h" "$ac_file" \
6708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6711 $as_echo "/* $configure_input */" \
6712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6713 || as_fn_error $? "could not create -" "$LINENO" 5
6725 ac_clean_files=$ac_clean_files_save
6727 test $ac_write_fail = 0 ||
6728 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6731 # configure is writing to config.log, and then calls config.status.
6732 # config.status does its own redirection, appending to config.log.
6733 # Unfortunately, on DOS this fails, as config.log is still kept open
6734 # by configure, so config.status won't be able to write to it; its
6735 # output is simply discarded. So we exec the FD to /dev/null,
6736 # effectively closing config.log, so it can be properly (re)opened and
6737 # appended to by config.status. When coming back to configure, we
6738 # need to make the FD available again.
6739 if test "$no_create" != yes; then
6741 ac_config_status_args=
6742 test "$silent" = yes &&
6743 ac_config_status_args="$ac_config_status_args --quiet"
6745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6747 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6748 # would make configure fail if this is the last instruction.
6749 $ac_cs_success || as_fn_exit 1
6751 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6753 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}