2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="rlfe.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
634 program_transform_name
647 enable_option_checking
651 ac_precious_vars
='build_alias
662 # Initialize some variables set by options.
664 ac_init_version
=false
665 ac_unrecognized_opts
=
667 # The variables have the same names as the options, with
668 # dashes changed to underlines.
676 program_transform_name
=s
,x
,x
,
684 # Installation directory options.
685 # These are left unexpanded so users can "make install exec_prefix=/foo"
686 # and all the variables that are supposed to be based on exec_prefix
687 # by default will actually change.
688 # Use braces instead of parens because sh, perl, etc. also accept them.
689 # (The list follows the same order as the GNU Coding Standards.)
690 bindir
='${exec_prefix}/bin'
691 sbindir
='${exec_prefix}/sbin'
692 libexecdir
='${exec_prefix}/libexec'
693 datarootdir
='${prefix}/share'
694 datadir
='${datarootdir}'
695 sysconfdir
='${prefix}/etc'
696 sharedstatedir
='${prefix}/com'
697 localstatedir
='${prefix}/var'
698 includedir
='${prefix}/include'
699 oldincludedir
='/usr/include'
700 docdir
='${datarootdir}/doc/${PACKAGE}'
701 infodir
='${datarootdir}/info'
706 libdir
='${exec_prefix}/lib'
707 localedir
='${datarootdir}/locale'
708 mandir
='${datarootdir}/man'
714 # If the previous option needs an argument, assign it.
715 if test -n "$ac_prev"; then
716 eval $ac_prev=\
$ac_option
722 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
726 # Accept the important Cygnus configure options, so we can diagnose typos.
728 case $ac_dashdash$ac_option in
732 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
734 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
737 -build |
--build |
--buil |
--bui |
--bu)
738 ac_prev
=build_alias
;;
739 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
740 build_alias
=$ac_optarg ;;
742 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
743 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
744 ac_prev
=cache_file
;;
745 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
746 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
747 cache_file
=$ac_optarg ;;
750 cache_file
=config.cache
;;
752 -datadir |
--datadir |
--datadi |
--datad)
754 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
755 datadir
=$ac_optarg ;;
757 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
758 |
--dataroo |
--dataro |
--datar)
759 ac_prev
=datarootdir
;;
760 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
761 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
762 datarootdir
=$ac_optarg ;;
764 -disable-* |
--disable-*)
765 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
768 as_fn_error
"invalid feature name: $ac_useropt"
769 ac_useropt_orig
=$ac_useropt
770 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
771 case $ac_user_opts in
775 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
776 ac_unrecognized_sep
=', ';;
778 eval enable_
$ac_useropt=no
;;
780 -docdir |
--docdir |
--docdi |
--doc |
--do)
782 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
785 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
787 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
790 -enable-* |
--enable-*)
791 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
794 as_fn_error
"invalid feature name: $ac_useropt"
795 ac_useropt_orig
=$ac_useropt
796 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
797 case $ac_user_opts in
801 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
802 ac_unrecognized_sep
=', ';;
804 eval enable_
$ac_useropt=\
$ac_optarg ;;
806 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
807 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
808 |
--exec |
--exe |
--ex)
809 ac_prev
=exec_prefix
;;
810 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
811 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
812 |
--exec=* |
--exe=* |
--ex=*)
813 exec_prefix
=$ac_optarg ;;
815 -gas |
--gas |
--ga |
--g)
816 # Obsolete; use --with-gas.
819 -help |
--help |
--hel |
--he |
-h)
821 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
822 ac_init_help
=recursive
;;
823 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
824 ac_init_help
=short
;;
826 -host |
--host |
--hos |
--ho)
827 ac_prev
=host_alias
;;
828 -host=* |
--host=* |
--hos=* |
--ho=*)
829 host_alias
=$ac_optarg ;;
831 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
833 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
835 htmldir
=$ac_optarg ;;
837 -includedir |
--includedir |
--includedi |
--included |
--include \
838 |
--includ |
--inclu |
--incl |
--inc)
839 ac_prev
=includedir
;;
840 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
841 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
842 includedir
=$ac_optarg ;;
844 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
846 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
847 infodir
=$ac_optarg ;;
849 -libdir |
--libdir |
--libdi |
--libd)
851 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
854 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
855 |
--libexe |
--libex |
--libe)
856 ac_prev
=libexecdir
;;
857 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
858 |
--libexe=* |
--libex=* |
--libe=*)
859 libexecdir
=$ac_optarg ;;
861 -localedir |
--localedir |
--localedi |
--localed |
--locale)
863 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
864 localedir
=$ac_optarg ;;
866 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
867 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
868 ac_prev
=localstatedir
;;
869 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
870 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
871 localstatedir
=$ac_optarg ;;
873 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
875 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
879 # Obsolete; use --without-fp.
882 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
883 |
--no-cr |
--no-c |
-n)
886 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
887 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
890 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
891 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
892 |
--oldin |
--oldi |
--old |
--ol |
--o)
893 ac_prev
=oldincludedir
;;
894 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
895 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
896 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
897 oldincludedir
=$ac_optarg ;;
899 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
901 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
904 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
905 |
--program-pre |
--program-pr |
--program-p)
906 ac_prev
=program_prefix
;;
907 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
908 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
909 program_prefix
=$ac_optarg ;;
911 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
912 |
--program-suf |
--program-su |
--program-s)
913 ac_prev
=program_suffix
;;
914 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
915 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
916 program_suffix
=$ac_optarg ;;
918 -program-transform-name |
--program-transform-name \
919 |
--program-transform-nam |
--program-transform-na \
920 |
--program-transform-n |
--program-transform- \
921 |
--program-transform |
--program-transfor \
922 |
--program-transfo |
--program-transf \
923 |
--program-trans |
--program-tran \
924 |
--progr-tra |
--program-tr |
--program-t)
925 ac_prev
=program_transform_name
;;
926 -program-transform-name=* |
--program-transform-name=* \
927 |
--program-transform-nam=* |
--program-transform-na=* \
928 |
--program-transform-n=* |
--program-transform-=* \
929 |
--program-transform=* |
--program-transfor=* \
930 |
--program-transfo=* |
--program-transf=* \
931 |
--program-trans=* |
--program-tran=* \
932 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
933 program_transform_name
=$ac_optarg ;;
935 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
937 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
940 -psdir |
--psdir |
--psdi |
--psd |
--ps)
942 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
945 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
946 |
-silent |
--silent |
--silen |
--sile |
--sil)
949 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
951 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
953 sbindir
=$ac_optarg ;;
955 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
956 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
957 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
959 ac_prev
=sharedstatedir
;;
960 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
961 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
962 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
964 sharedstatedir
=$ac_optarg ;;
966 -site |
--site |
--sit)
968 -site=* |
--site=* |
--sit=*)
971 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
973 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
976 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
977 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
978 ac_prev
=sysconfdir
;;
979 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
980 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
981 sysconfdir
=$ac_optarg ;;
983 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
984 ac_prev
=target_alias
;;
985 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
986 target_alias
=$ac_optarg ;;
988 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
991 -version |
--version |
--versio |
--versi |
--vers |
-V)
995 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
998 as_fn_error
"invalid package name: $ac_useropt"
999 ac_useropt_orig
=$ac_useropt
1000 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1005 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1006 ac_unrecognized_sep
=', ';;
1008 eval with_
$ac_useropt=\
$ac_optarg ;;
1010 -without-* |
--without-*)
1011 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1014 as_fn_error
"invalid package name: $ac_useropt"
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval with_
$ac_useropt=no
;;
1027 # Obsolete; use --with-x.
1030 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1031 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1032 ac_prev
=x_includes
;;
1033 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1034 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1035 x_includes
=$ac_optarg ;;
1037 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1038 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1039 ac_prev
=x_libraries
;;
1040 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1041 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1042 x_libraries
=$ac_optarg ;;
1044 -*) as_fn_error
"unrecognized option: \`$ac_option'
1045 Try \`$0 --help' for more information."
1049 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1050 # Reject names that are not valid shell variable names.
1051 case $ac_envvar in #(
1052 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1053 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1055 eval $ac_envvar=\
$ac_optarg
1056 export $ac_envvar ;;
1059 # FIXME: should be removed in autoconf 3.0.
1060 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1061 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1062 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1063 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1069 if test -n "$ac_prev"; then
1070 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1071 as_fn_error
"missing argument to $ac_option"
1074 if test -n "$ac_unrecognized_opts"; then
1075 case $enable_option_checking in
1077 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1078 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1082 # Check all directory arguments for consistency.
1083 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1084 datadir sysconfdir sharedstatedir localstatedir includedir \
1085 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1086 libdir localedir mandir
1088 eval ac_val
=\$
$ac_var
1089 # Remove trailing slashes.
1092 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1093 eval $ac_var=\
$ac_val;;
1095 # Be sure to have absolute directory names.
1097 [\\/$
]* | ?
:[\\/]* ) continue;;
1098 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1100 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1103 # There might be people who depend on the old broken behavior: `$host'
1104 # used to hold the argument of --host etc.
1105 # FIXME: To remove some day.
1108 target
=$target_alias
1110 # FIXME: To remove some day.
1111 if test "x$host_alias" != x
; then
1112 if test "x$build_alias" = x
; then
1113 cross_compiling
=maybe
1114 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1115 If a cross compiler is detected then cross compile mode will be used." >&2
1116 elif test "x$build_alias" != "x$host_alias"; then
1122 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1124 test "$silent" = yes && exec 6>/dev
/null
1127 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1128 ac_ls_di
=`ls -di .` &&
1129 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1130 as_fn_error
"working directory cannot be determined"
1131 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1132 as_fn_error
"pwd does not report name of working directory"
1135 # Find the source files, if location was not specified.
1136 if test -z "$srcdir"; then
1137 ac_srcdir_defaulted
=yes
1138 # Try the directory containing this script, then the parent directory.
1139 ac_confdir
=`$as_dirname -- "$as_myself" ||
1140 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1141 X"$as_myself" : 'X\(//\)[^/]' \| \
1142 X"$as_myself" : 'X\(//\)$' \| \
1143 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1144 $as_echo X"$as_myself" |
1145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163 if test ! -r "$srcdir/$ac_unique_file"; then
1167 ac_srcdir_defaulted
=no
1169 if test ! -r "$srcdir/$ac_unique_file"; then
1170 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1171 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1173 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1175 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1177 # When building in place, set srcdir=.
1178 if test "$ac_abs_confdir" = "$ac_pwd"; then
1181 # Remove unnecessary trailing slashes from srcdir.
1182 # Double slashes in file names in object file debugging info
1183 # mess up M-x gdb in Emacs.
1185 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187 for ac_var
in $ac_precious_vars; do
1188 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1190 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1195 # Report the --help message.
1197 if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1201 \`configure' configures this package to adapt to many kinds of systems.
1203 Usage: $0 [OPTION]... [VAR=VALUE]...
1205 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206 VAR=VALUE. See below for descriptions of some of the useful variables.
1208 Defaults for the options are specified in brackets.
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1221 Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
1223 [$ac_default_prefix]
1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1227 By default, \`make install' will install all the files in
1228 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230 for instance \`--prefix=\$HOME'.
1232 For better control, use the options below.
1234 Fine tuning of the installation directories:
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
1260 if test -n "$ac_init_help"; then
1265 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1266 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1267 --with-pty-mode=mode default mode
for ptys
1268 --with-pty-group=group default group
for ptys
1270 Some influential environment variables
:
1271 CC C compiler
command
1272 CFLAGS C compiler flags
1273 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1274 nonstandard directory
<lib dir
>
1275 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1276 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1277 you have headers
in a nonstandard directory
<include dir
>
1280 Use these variables to override the choices made by
`configure' or to help
1281 it to find libraries and programs with nonstandard names/locations.
1283 Report bugs to the package provider.
1288 if test "$ac_init_help" = "recursive"; then
1289 # If there are subdirs, report their specific --help.
1290 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1291 test -d "$ac_dir" ||
1292 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1299 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1300 # A ".." for each directory in $ac_dir_suffix.
1301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1302 case $ac_top_builddir_sub in
1303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1307 ac_abs_top_builddir=$ac_pwd
1308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1309 # for backward compatibility:
1310 ac_top_builddir=$ac_top_build_prefix
1313 .) # We are building in place.
1315 ac_top_srcdir=$ac_top_builddir_sub
1316 ac_abs_top_srcdir=$ac_pwd ;;
1317 [\\/]* | ?:[\\/]* ) # Absolute name.
1318 ac_srcdir=$srcdir$ac_dir_suffix;
1319 ac_top_srcdir=$srcdir
1320 ac_abs_top_srcdir=$srcdir ;;
1322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1323 ac_top_srcdir=$ac_top_build_prefix$srcdir
1324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1328 cd "$ac_dir" || { ac_status=$?; continue; }
1329 # Check for guested configure.
1330 if test -f "$ac_srcdir/configure.gnu"; then
1332 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1333 elif test -f "$ac_srcdir/configure"; then
1335 $SHELL "$ac_srcdir/configure" --help=recursive
1337 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1339 cd "$ac_pwd" || { ac_status=$?; break; }
1343 test -n "$ac_init_help" && exit $ac_status
1344 if $ac_init_version; then
1347 generated by GNU Autoconf 2.64
1349 Copyright (C) 2009 Free Software Foundation, Inc.
1350 This configure script is free software; the Free Software Foundation
1351 gives unlimited permission to copy, distribute and modify it.
1356 ## ------------------------ ##
1357 ## Autoconf initialization. ##
1358 ## ------------------------ ##
1360 # ac_fn_c_try_compile LINENO
1361 # --------------------------
1362 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1363 ac_fn_c_try_compile ()
1365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1366 rm -f conftest.$ac_objext
1367 if { { ac_try="$ac_compile"
1369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1370 *) ac_try_echo
=$ac_try;;
1372 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1373 $as_echo "$ac_try_echo"; } >&5
1374 (eval "$ac_compile") 2>conftest.err
1376 if test -s conftest.err
; then
1377 grep -v '^ *+' conftest.err
>conftest.er1
1378 cat conftest.er1
>&5
1379 mv -f conftest.er1 conftest.err
1381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1382 test $ac_status = 0; } && {
1383 test -z "$ac_c_werror_flag" ||
1384 test ! -s conftest.err
1385 } && test -s conftest.
$ac_objext; then :
1388 $as_echo "$as_me: failed program was:" >&5
1389 sed 's/^/| /' conftest.
$ac_ext >&5
1393 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1396 } # ac_fn_c_try_compile
1398 # ac_fn_c_try_cpp LINENO
1399 # ----------------------
1400 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1403 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1404 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1407 *) ac_try_echo=$ac_try;;
1409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1410 $as_echo "$ac_try_echo"; } >&5
1411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1413 if test -s conftest.err; then
1414 grep -v '^ *+' conftest.err >conftest.er1
1415 cat conftest.er1 >&5
1416 mv -f conftest.er1 conftest.err
1418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1419 test $ac_status = 0; } >/dev/null && {
1420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1421 test ! -s conftest.err
1425 $as_echo "$as_me: failed program was:" >&5
1426 sed 's/^/| /' conftest.$ac_ext >&5
1430 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1435 # ac_fn_c_try_link LINENO
1436 # -----------------------
1437 # Try to link conftest.$ac_ext, and return whether this succeeded.
1440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1441 rm -f conftest.$ac_objext conftest$ac_exeext
1442 if { { ac_try="$ac_link"
1444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1445 *) ac_try_echo
=$ac_try;;
1447 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1448 $as_echo "$ac_try_echo"; } >&5
1449 (eval "$ac_link") 2>conftest.err
1451 if test -s conftest.err
; then
1452 grep -v '^ *+' conftest.err
>conftest.er1
1453 cat conftest.er1
>&5
1454 mv -f conftest.er1 conftest.err
1456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1457 test $ac_status = 0; } && {
1458 test -z "$ac_c_werror_flag" ||
1459 test ! -s conftest.err
1460 } && test -s conftest
$ac_exeext && {
1461 test "$cross_compiling" = yes ||
1462 $as_test_x conftest
$ac_exeext
1466 $as_echo "$as_me: failed program was:" >&5
1467 sed 's/^/| /' conftest.
$ac_ext >&5
1471 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1472 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1473 # interfere with the next link command; also delete a directory that is
1474 # left behind by Apple's compiler. We do this before executing the actions.
1475 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1476 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1479 } # ac_fn_c_try_link
1481 # ac_fn_c_try_run LINENO
1482 # ----------------------
1483 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1484 # that executables *can* be run.
1487 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1488 if { { ac_try
="$ac_link"
1490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_link") 2>&5
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1499 { { case "(($ac_try" in
1500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1501 *) ac_try_echo
=$ac_try;;
1503 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 $as_echo "$ac_try_echo"; } >&5
1505 (eval "$ac_try") 2>&5
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; }; }; then :
1511 $as_echo "$as_me: program exited with status $ac_status" >&5
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.
$ac_ext >&5
1515 ac_retval
=$ac_status
1517 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1518 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1523 # ac_fn_c_check_func LINENO FUNC VAR
1524 # ----------------------------------
1525 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1526 ac_fn_c_check_func
()
1528 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1530 $as_echo_n "checking for $2... " >&6; }
1531 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1532 $as_echo_n "(cached) " >&6
1534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1535 /* end confdefs.h. */
1536 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1538 #define $2 innocuous_$2
1540 /* System header to define __stub macros and hopefully few prototypes,
1541 which can conflict with char $2 (); below.
1542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1543 <limits.h> exists even on freestanding compilers. */
1546 # include <limits.h>
1548 # include <assert.h>
1553 /* Override any GCC internal prototype to avoid an error.
1554 Use char because int might match the return type of a GCC
1555 builtin and then its argument prototype would still apply. */
1560 /* The GNU C library defines this for functions which it implements
1561 to always fail with ENOSYS. Some functions are actually named
1562 something starting with __ and the normal name is an alias. */
1563 #if defined __stub_$2 || defined __stub___$2
1575 if ac_fn_c_try_link
"$LINENO"; then :
1580 rm -f core conftest.err conftest.
$ac_objext \
1581 conftest
$ac_exeext conftest.
$ac_ext
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585 $as_echo "$ac_res" >&6; }
1586 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1588 } # ac_fn_c_check_func
1590 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1591 # -------------------------------------------------------
1592 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1593 # the include files in INCLUDES and setting the cache variable VAR
1595 ac_fn_c_check_header_mongrel
()
1597 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1598 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600 $as_echo_n "checking for $2... " >&6; }
1601 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1602 $as_echo_n "(cached) " >&6
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606 $as_echo "$ac_res" >&6; }
1608 # Is the header compilable?
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1610 $as_echo_n "checking $2 usability... " >&6; }
1611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1616 if ac_fn_c_try_compile
"$LINENO"; then :
1617 ac_header_compiler
=yes
1619 ac_header_compiler
=no
1621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1623 $as_echo "$ac_header_compiler" >&6; }
1625 # Is the header present?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1627 $as_echo_n "checking $2 presence... " >&6; }
1628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1632 if ac_fn_c_try_cpp
"$LINENO"; then :
1633 ac_header_preproc
=yes
1635 ac_header_preproc
=no
1637 rm -f conftest.err conftest.
$ac_ext
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1639 $as_echo "$ac_header_preproc" >&6; }
1641 # So? What about this header?
1642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1645 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1651 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1653 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1655 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1657 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 $as_echo_n "(cached) " >&6
1667 eval "$3=\$ac_header_compiler"
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1675 } # ac_fn_c_check_header_mongrel
1677 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists and can be compiled using the include files in
1680 # INCLUDES, setting the cache variable VAR accordingly.
1681 ac_fn_c_check_header_compile
()
1683 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1694 if ac_fn_c_try_compile
"$LINENO"; then :
1699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1706 } # ac_fn_c_check_header_compile
1707 cat >config.log
<<_ACEOF
1708 This file contains any messages produced by compilers while
1709 running configure, to aid debugging if configure makes a mistake.
1711 It was created by $as_me, which was
1712 generated by GNU Autoconf 2.64. Invocation command line was
1724 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1725 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1726 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1727 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1728 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1730 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1731 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1733 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1734 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1735 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1736 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1737 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1738 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1739 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir
=.
1748 $as_echo "PATH: $as_dir"
1764 # Keep a trace of the command line.
1765 # Strip out --no-create and --no-recursion so they do not pile up.
1766 # Strip out --silent because we don't want to record it for future runs.
1767 # Also quote any args containing shell meta-characters.
1768 # Make two passes to allow for proper duplicate-argument suppression.
1772 ac_must_keep_next
=false
1778 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1779 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1780 |
-silent |
--silent |
--silen |
--sile |
--sil)
1783 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1786 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1788 as_fn_append ac_configure_args1
" '$ac_arg'"
1789 if test $ac_must_keep_next = true
; then
1790 ac_must_keep_next
=false
# Got value, back to normal.
1793 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1794 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1795 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1796 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1797 case "$ac_configure_args0 " in
1798 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1801 -* ) ac_must_keep_next
=true
;;
1804 as_fn_append ac_configure_args
" '$ac_arg'"
1809 { ac_configure_args0
=; unset ac_configure_args0
;}
1810 { ac_configure_args1
=; unset ac_configure_args1
;}
1812 # When interrupted or exit'd, cleanup temporary files, and complete
1813 # config.log. We remove comments because anyway the quotes in there
1814 # would cause problems or look ugly.
1815 # WARNING: Use '\'' to represent an apostrophe within the trap.
1816 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1817 trap 'exit_status=$?
1818 # Save into config.log some information that might help in debugging.
1823 ## ---------------- ##
1824 ## Cache variables. ##
1825 ## ---------------- ##
1828 # The following way of writing the cache mishandles newlines in values,
1830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1831 eval ac_val=\$$ac_var
1835 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1836 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1839 _ | IFS | as_nl) ;; #(
1840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1841 *) { eval $ac_var=; unset $ac_var;} ;;
1846 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1847 *${as_nl}ac_space=\ *)
1849 "s/'\''/'\''\\\\'\'''\''/g;
1850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861 ## ----------------- ##
1862 ## Output variables. ##
1863 ## ----------------- ##
1866 for ac_var in $ac_subst_vars
1868 eval ac_val=\$$ac_var
1870 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 $as_echo "$ac_var='\''$ac_val'\''"
1876 if test -n "$ac_subst_files"; then
1878 ## ------------------- ##
1879 ## File substitutions. ##
1880 ## ------------------- ##
1883 for ac_var
in $ac_subst_files
1885 eval ac_val
=\$
$ac_var
1887 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889 $as_echo "$ac_var='\''$ac_val'\''"
1894 if test -s confdefs.h; then
1904 test "$ac_signal" != 0 &&
1905 $as_echo "$as_me: caught signal $ac_signal"
1906 $as_echo "$as_me: exit $exit_status"
1908 rm -f core *.core core.conftest.* &&
1909 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1912 for ac_signal
in 1 2 13 15; do
1913 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1917 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1918 rm -f -r conftest
* confdefs.h
1920 $as_echo "/* confdefs.h */" > confdefs.h
1922 # Predefined preprocessor variables.
1924 cat >>confdefs.h
<<_ACEOF
1925 #define PACKAGE_NAME "$PACKAGE_NAME"
1928 cat >>confdefs.h
<<_ACEOF
1929 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1932 cat >>confdefs.h
<<_ACEOF
1933 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1936 cat >>confdefs.h
<<_ACEOF
1937 #define PACKAGE_STRING "$PACKAGE_STRING"
1940 cat >>confdefs.h
<<_ACEOF
1941 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1944 cat >>confdefs.h
<<_ACEOF
1945 #define PACKAGE_URL "$PACKAGE_URL"
1949 # Let the site file select an alternate cache file if it wants to.
1950 # Prefer an explicitly selected file to automatically selected ones.
1953 if test -n "$CONFIG_SITE"; then
1954 ac_site_file1
=$CONFIG_SITE
1955 elif test "x$prefix" != xNONE
; then
1956 ac_site_file1
=$prefix/share
/config.site
1957 ac_site_file2
=$prefix/etc
/config.site
1959 ac_site_file1
=$ac_default_prefix/share
/config.site
1960 ac_site_file2
=$ac_default_prefix/etc
/config.site
1962 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1964 test "x$ac_site_file" = xNONE
&& continue
1965 if test -r "$ac_site_file"; then
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1967 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1968 sed 's/^/| /' "$ac_site_file" >&5
1973 if test -r "$cache_file"; then
1974 # Some versions of bash will fail to source /dev/null (special
1975 # files actually), so we avoid doing that.
1976 if test -f "$cache_file"; then
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1978 $as_echo "$as_me: loading cache $cache_file" >&6;}
1980 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1981 *) .
"./$cache_file";;
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1986 $as_echo "$as_me: creating cache $cache_file" >&6;}
1990 # Check that the precious variables saved in the cache have kept the same
1992 ac_cache_corrupted
=false
1993 for ac_var
in $ac_precious_vars; do
1994 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1995 eval ac_new_set
=\
$ac_env_${ac_var}_set
1996 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1997 eval ac_new_val
=\
$ac_env_${ac_var}_value
1998 case $ac_old_set,$ac_new_set in
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002 ac_cache_corrupted
=: ;;
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006 ac_cache_corrupted
=: ;;
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
2010 # differences in whitespace do not lead to failure.
2011 ac_old_val_w
=`echo x $ac_old_val`
2012 ac_new_val_w
=`echo x $ac_new_val`
2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016 ac_cache_corrupted
=:
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020 eval $ac_var=\
$ac_old_val
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2023 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2025 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2031 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 *) ac_arg
=$ac_var=$ac_new_val ;;
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2040 if $ac_cache_corrupted; then
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2044 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2045 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2047 ## -------------------- ##
2048 ## Main body of script. ##
2049 ## -------------------- ##
2052 ac_cpp
='$CPP $CPPFLAGS'
2053 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2058 ac_config_headers
="$ac_config_headers config.h"
2064 old_CFLAGS
="$CFLAGS"
2066 ac_cpp
='$CPP $CPPFLAGS'
2067 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2070 if test -n "$ac_tool_prefix"; then
2071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2072 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2074 $as_echo_n "checking for $ac_word... " >&6; }
2075 if test "${ac_cv_prog_CC+set}" = set; then :
2076 $as_echo_n "(cached) " >&6
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC
="$CC" # Let the user override the test.
2081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir
=.
2086 for ac_exec_ext
in '' $ac_executable_extensions; do
2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2088 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 if test -n "$CC"; then
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2101 $as_echo "$CC" >&6; }
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2104 $as_echo "no" >&6; }
2109 if test -z "$ac_cv_prog_CC"; then
2111 # Extract the first word of "gcc", so it can be a program name with args.
2112 set dummy gcc
; ac_word
=$2
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2114 $as_echo_n "checking for $ac_word... " >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2116 $as_echo_n "(cached) " >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir
=.
2126 for ac_exec_ext
in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC
="gcc"
2129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2141 $as_echo "$ac_ct_CC" >&6; }
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2144 $as_echo "no" >&6; }
2147 if test "x$ac_ct_CC" = x
; then
2150 case $cross_compiling:$ac_tool_warned in
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2154 ac_tool_warned
=yes ;;
2162 if test -z "$CC"; then
2163 if test -n "$ac_tool_prefix"; then
2164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2165 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2167 $as_echo_n "checking for $ac_word... " >&6; }
2168 if test "${ac_cv_prog_CC+set}" = set; then :
2169 $as_echo_n "(cached) " >&6
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC
="$CC" # Let the user override the test.
2174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir
=.
2179 for ac_exec_ext
in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 if test -n "$CC"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2194 $as_echo "$CC" >&6; }
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2197 $as_echo "no" >&6; }
2203 if test -z "$CC"; then
2204 # Extract the first word of "cc", so it can be a program name with args.
2205 set dummy cc
; ac_word
=$2
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2207 $as_echo_n "checking for $ac_word... " >&6; }
2208 if test "${ac_cv_prog_CC+set}" = set; then :
2209 $as_echo_n "(cached) " >&6
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC
="$CC" # Let the user override the test.
2215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir
=.
2220 for ac_exec_ext
in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2223 ac_prog_rejected
=yes
2227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 if test $ac_prog_rejected = yes; then
2235 # We found a bogon in the path, so make sure we never use it.
2236 set dummy
$ac_cv_prog_CC
2238 if test $# != 0; then
2239 # We chose a different compiler from the bogus one.
2240 # However, it has the same basename, so the bogon will be chosen
2241 # first if we set CC to just the basename; use the full file name.
2243 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2249 if test -n "$CC"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2251 $as_echo "$CC" >&6; }
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2254 $as_echo "no" >&6; }
2259 if test -z "$CC"; then
2260 if test -n "$ac_tool_prefix"; then
2261 for ac_prog
in cl.exe
2263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2264 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2266 $as_echo_n "checking for $ac_word... " >&6; }
2267 if test "${ac_cv_prog_CC+set}" = set; then :
2268 $as_echo_n "(cached) " >&6
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC
="$CC" # Let the user override the test.
2273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir
=.
2278 for ac_exec_ext
in '' $ac_executable_extensions; do
2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 if test -n "$CC"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2293 $as_echo "$CC" >&6; }
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2296 $as_echo "no" >&6; }
2300 test -n "$CC" && break
2303 if test -z "$CC"; then
2305 for ac_prog
in cl.exe
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy
$ac_prog; ac_word
=$2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2312 $as_echo_n "(cached) " >&6
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir
=.
2322 for ac_exec_ext
in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_ac_ct_CC
="$ac_prog"
2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2337 $as_echo "$ac_ct_CC" >&6; }
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2344 test -n "$ac_ct_CC" && break
2347 if test "x$ac_ct_CC" = x
; then
2350 case $cross_compiling:$ac_tool_warned in
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2354 ac_tool_warned
=yes ;;
2363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365 as_fn_error
"no acceptable C compiler found in \$PATH
2366 See \`config.log' for more details." "$LINENO" 5; }
2368 # Provide some information about the compiler.
2369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2372 for ac_option
in --version -v -V -qversion; do
2373 { { ac_try
="$ac_compiler $ac_option >&5"
2375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2382 if test -s conftest.err; then
2384 ... rest of stderr output deleted ...
2385 10q' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 rm -f conftest.er1 conftest.err
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; }
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2399 FILE *f = fopen ("conftest.out", "w");
2400 return ferror (f) || fclose (f) != 0;
2406 ac_clean_files_save=$ac_clean_files
2407 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2408 # Try to create an executable without -o first, disregard a.out.
2409 # It will help us diagnose broken compilers, and finding out an intuition
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2412 $as_echo_n "checking for C compiler default output file name... " >&6; }
2413 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2415 # The possible output files:
2416 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2419 for ac_file in $ac_files
2422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2423 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2428 if { { ac_try="$ac_link_default"
2430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2431 *) ac_try_echo
=$ac_try;;
2433 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2434 $as_echo "$ac_try_echo"; } >&5
2435 (eval "$ac_link_default") 2>&5
2437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2438 test $ac_status = 0; }; then :
2439 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2440 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2441 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2442 # so that the user can short-circuit this test for compilers unknown to
2444 for ac_file
in $ac_files ''
2446 test -f "$ac_file" ||
continue
2448 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2451 # We found the default executable, but exeext='' is most
2455 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2457 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459 # We set ac_cv_exeext here because the later test for it is not
2460 # safe: cross compilers may not add the suffix if given an `-o'
2461 # argument, so we may need to know it at that point already.
2462 # Even if this section looks crufty: it has the advantage of
2469 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2475 $as_echo "$ac_file" >&6; }
2476 if test -z "$ac_file"; then :
2477 $as_echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.
$ac_ext >&5
2480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 { as_fn_set_status
77
2483 as_fn_error
"C compiler cannot create executables
2484 See \`config.log' for more details." "$LINENO" 5; }; }
2486 ac_exeext
=$ac_cv_exeext
2488 # Check that the compiler produces executables we can run. If not, either
2489 # the compiler is broken, or we cross compile.
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2491 $as_echo_n "checking whether the C compiler works... " >&6; }
2492 # If not cross compiling, check that we can run a simple program.
2493 if test "$cross_compiling" != yes; then
2494 if { ac_try
='./$ac_file'
2495 { { case "(($ac_try" in
2496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2500 $as_echo "$ac_try_echo"; } >&5
2501 (eval "$ac_try") 2>&5
2503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504 test $ac_status = 0; }; }; then
2507 if test "$cross_compiling" = maybe; then
2510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 as_fn_error "cannot run C compiled programs.
2513 If you meant to cross compile
, use \
`--host'.
2514 See \`config.log
' for more details." "$LINENO" 5; }
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2519 $as_echo "yes" >&6; }
2521 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2522 ac_clean_files=$ac_clean_files_save
2523 # Check that the compiler produces executables we can run. If not, either
2524 # the compiler is broken, or we cross compile.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2526 $as_echo_n "checking whether we are cross compiling... " >&6; }
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2528 $as_echo "$cross_compiling" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2531 $as_echo_n "checking for suffix of executables... " >&6; }
2532 if { { ac_try="$ac_link"
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2538 $as_echo "$ac_try_echo"; } >&5
2539 (eval "$ac_link") 2>&5
2541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2542 test $ac_status = 0; }; then :
2543 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2544 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2545 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2547 for ac_file
in conftest.exe conftest conftest.
*; do
2548 test -f "$ac_file" ||
continue
2550 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2551 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2560 See \`config.log' for more details." "$LINENO" 5; }
2562 rm -f conftest
$ac_cv_exeext
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2564 $as_echo "$ac_cv_exeext" >&6; }
2566 rm -f conftest.
$ac_ext
2567 EXEEXT
=$ac_cv_exeext
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2570 $as_echo_n "checking for suffix of object files... " >&6; }
2571 if test "${ac_cv_objext+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2585 rm -f conftest.o conftest.obj
2586 if { { ac_try
="$ac_compile"
2588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2592 $as_echo "$ac_try_echo"; } >&5
2593 (eval "$ac_compile") 2>&5
2595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596 test $ac_status = 0; }; then :
2597 for ac_file in conftest.o conftest.obj conftest.*; do
2598 test -f "$ac_file" || continue;
2600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2606 $as_echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611 as_fn_error "cannot compute suffix of object files
: cannot compile
2612 See \
`config.log' for more details." "$LINENO" 5; }
2614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2617 $as_echo "$ac_cv_objext" >&6; }
2618 OBJEXT=$ac_cv_objext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2621 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2622 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2639 if ac_fn_c_try_compile "$LINENO"; then :
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2649 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2650 if test $ac_compiler_gnu = yes; then
2655 ac_test_CFLAGS=${CFLAGS+set}
2656 ac_save_CFLAGS=$CFLAGS
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2658 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2659 if test "${ac_cv_prog_cc_g+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
2662 ac_save_c_werror_flag=$ac_c_werror_flag
2663 ac_c_werror_flag=yes
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2677 if ac_fn_c_try_compile "$LINENO"; then :
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2692 if ac_fn_c_try_compile "$LINENO"; then :
2695 ac_c_werror_flag=$ac_save_c_werror_flag
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h. */
2708 if ac_fn_c_try_compile "$LINENO"; then :
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 ac_c_werror_flag=$ac_save_c_werror_flag
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2719 $as_echo "$ac_cv_prog_cc_g" >&6; }
2720 if test "$ac_test_CFLAGS" = set; then
2721 CFLAGS=$ac_save_CFLAGS
2722 elif test $ac_cv_prog_cc_g = yes; then
2723 if test "$GCC" = yes; then
2729 if test "$GCC" = yes; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2736 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2737 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2738 $as_echo_n "(cached) " >&6
2740 ac_cv_prog_cc_c89=no
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2746 #include <sys/types.h>
2747 #include <sys/stat.h>
2748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2749 struct buf { int x; };
2750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751 static char *e (p, i)
2757 static char *f (char * (*g) (char **, int), char **p, ...)
2762 s = g (p, va_arg (v,int));
2767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2768 function prototypes and stuff, but not '\xHH' hex character constants.
2769 These don't provoke an error unfortunately, instead are silently treated
2770 as 'x'. The following induces an error, until -std is added to get
2771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2772 array size at least. It's necessary to write '\x00'==0 to get something
2773 that's true only with -std. */
2774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2776 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2777 inside strings and character constants. */
2779 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2781 int test (int i, double x);
2782 struct s1 {int (*f) (int a);};
2783 struct s2 {int (*f) (double a);};
2784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2795 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2798 CC="$ac_save_CC $ac_arg"
2799 if ac_fn_c_try_compile "$LINENO"; then :
2800 ac_cv_prog_cc_c89=$ac_arg
2802 rm -f core conftest.err conftest.$ac_objext
2803 test "x$ac_cv_prog_cc_c89" != "xno" && break
2805 rm -f conftest.$ac_ext
2810 case "x$ac_cv_prog_cc_c89" in
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2813 $as_echo "none needed" >&6; } ;;
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2816 $as_echo "unsupported" >&6; } ;;
2818 CC="$CC $ac_cv_prog_cc_c89"
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2820 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2822 if test "x$ac_cv_prog_cc_c89" != xno; then :
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2838 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2839 # On Suns, sometimes $CPP names a directory.
2840 if test -n "$CPP" && test -d "$CPP"; then
2843 if test -z "$CPP"; then
2844 if test "${ac_cv_prog_CPP+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2847 # Double quotes because CPP needs to be expanded
2848 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2851 for ac_c_preproc_warn_flag in '' yes
2853 # Use a header file that comes with gcc, so configuring glibc
2854 # with a fresh cross-compiler works.
2855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2856 # <limits.h> exists even on freestanding compilers.
2857 # On the NeXT, cc -E runs the code through the compiler's parser,
2858 # not just through cpp. "Syntax error" is here to catch this case.
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2862 # include <limits.h>
2864 # include <assert.h>
2868 if ac_fn_c_try_cpp "$LINENO"; then :
2871 # Broken: fails on valid input.
2874 rm -f conftest.err conftest.$ac_ext
2876 # OK, works on sane cases. Now check whether nonexistent headers
2877 # can be detected and how.
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2880 #include <ac_nonexistent.h>
2882 if ac_fn_c_try_cpp "$LINENO"; then :
2883 # Broken: success on invalid input.
2886 # Passes both tests.
2890 rm -f conftest.err conftest.$ac_ext
2893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2894 rm -f conftest.err conftest.
$ac_ext
2895 if $ac_preproc_ok; then :
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2908 $as_echo "$CPP" >&6; }
2910 for ac_c_preproc_warn_flag
in '' yes
2912 # Use a header file that comes with gcc, so configuring glibc
2913 # with a fresh cross-compiler works.
2914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2915 # <limits.h> exists even on freestanding compilers.
2916 # On the NeXT, cc -E runs the code through the compiler's parser,
2917 # not just through cpp. "Syntax error" is here to catch this case.
2918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h. */
2921 # include <limits.h>
2923 # include <assert.h>
2927 if ac_fn_c_try_cpp
"$LINENO"; then :
2930 # Broken: fails on valid input.
2933 rm -f conftest.err conftest.
$ac_ext
2935 # OK, works on sane cases. Now check whether nonexistent headers
2936 # can be detected and how.
2937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2939 #include <ac_nonexistent.h>
2941 if ac_fn_c_try_cpp
"$LINENO"; then :
2942 # Broken: success on invalid input.
2945 # Passes both tests.
2949 rm -f conftest.err conftest.
$ac_ext
2952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2953 rm -f conftest.err conftest.
$ac_ext
2954 if $ac_preproc_ok; then :
2957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
2960 See \`config.log' for more details." "$LINENO" 5; }
2964 ac_cpp
='$CPP $CPPFLAGS'
2965 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2972 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2973 if test "${ac_cv_path_GREP+set}" = set; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -z "$GREP"; then
2977 ac_path_GREP_found
=false
2978 # Loop through the user's path and test for each of PROGNAME-LIST
2979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2980 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
2983 test -z "$as_dir" && as_dir
=.
2984 for ac_prog
in grep ggrep
; do
2985 for ac_exec_ext
in '' $ac_executable_extensions; do
2986 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
2987 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
2988 # Check for GNU ac_path_GREP and select it if it is found.
2989 # Check for GNU $ac_path_GREP
2990 case `"$ac_path_GREP" --version 2>&1` in
2992 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
2995 $as_echo_n 0123456789 >"conftest.in"
2998 cat "conftest.in" "conftest.in" >"conftest.tmp"
2999 mv "conftest.tmp" "conftest.in"
3000 cp "conftest.in" "conftest.nl"
3001 $as_echo 'GREP' >> "conftest.nl"
3002 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3003 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3004 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3005 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3006 # Best one so far, save it but keep looking for a better one
3007 ac_cv_path_GREP
="$ac_path_GREP"
3008 ac_path_GREP_max
=$ac_count
3010 # 10*(2^10) chars as input seems more than enough
3011 test $ac_count -gt 10 && break
3013 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3016 $ac_path_GREP_found && break 3
3021 if test -z "$ac_cv_path_GREP"; then
3022 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3025 ac_cv_path_GREP
=$GREP
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3030 $as_echo "$ac_cv_path_GREP" >&6; }
3031 GREP
="$ac_cv_path_GREP"
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3035 $as_echo_n "checking for egrep... " >&6; }
3036 if test "${ac_cv_path_EGREP+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3039 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3040 then ac_cv_path_EGREP
="$GREP -E"
3042 if test -z "$EGREP"; then
3043 ac_path_EGREP_found
=false
3044 # Loop through the user's path and test for each of PROGNAME-LIST
3045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3046 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3049 test -z "$as_dir" && as_dir
=.
3050 for ac_prog
in egrep; do
3051 for ac_exec_ext
in '' $ac_executable_extensions; do
3052 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3053 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3054 # Check for GNU ac_path_EGREP and select it if it is found.
3055 # Check for GNU $ac_path_EGREP
3056 case `"$ac_path_EGREP" --version 2>&1` in
3058 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3061 $as_echo_n 0123456789 >"conftest.in"
3064 cat "conftest.in" "conftest.in" >"conftest.tmp"
3065 mv "conftest.tmp" "conftest.in"
3066 cp "conftest.in" "conftest.nl"
3067 $as_echo 'EGREP' >> "conftest.nl"
3068 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3069 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3070 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3071 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3072 # Best one so far, save it but keep looking for a better one
3073 ac_cv_path_EGREP
="$ac_path_EGREP"
3074 ac_path_EGREP_max
=$ac_count
3076 # 10*(2^10) chars as input seems more than enough
3077 test $ac_count -gt 10 && break
3079 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3082 $ac_path_EGREP_found && break 3
3087 if test -z "$ac_cv_path_EGREP"; then
3088 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3091 ac_cv_path_EGREP
=$EGREP
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3097 $as_echo "$ac_cv_path_EGREP" >&6; }
3098 EGREP
="$ac_cv_path_EGREP"
3101 if test $ac_cv_c_compiler_gnu = yes; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3103 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3104 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3107 ac_pattern
="Autoconf.*'x'"
3108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3114 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3115 ac_cv_prog_gcc_traditional
=yes
3117 ac_cv_prog_gcc_traditional
=no
3122 if test $ac_cv_prog_gcc_traditional = no
; then
3123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3129 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
3130 ac_cv_prog_gcc_traditional
=yes
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3137 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3138 if test $ac_cv_prog_gcc_traditional = yes; then
3139 CC
="$CC -traditional"
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3144 $as_echo_n "checking for library containing strerror... " >&6; }
3145 if test "${ac_cv_search_strerror+set}" = set; then :
3146 $as_echo_n "(cached) " >&6
3148 ac_func_search_save_LIBS
=$LIBS
3149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3152 /* Override any GCC internal prototype to avoid an error.
3153 Use char because int might match the return type of a GCC
3154 builtin and then its argument prototype would still apply. */
3167 for ac_lib
in '' cposix
; do
3168 if test -z "$ac_lib"; then
3169 ac_res
="none required"
3172 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3174 if ac_fn_c_try_link
"$LINENO"; then :
3175 ac_cv_search_strerror
=$ac_res
3177 rm -f core conftest.err conftest.
$ac_objext \
3179 if test "${ac_cv_search_strerror+set}" = set; then :
3183 if test "${ac_cv_search_strerror+set}" = set; then :
3186 ac_cv_search_strerror
=no
3189 LIBS
=$ac_func_search_save_LIBS
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3192 $as_echo "$ac_cv_search_strerror" >&6; }
3193 ac_res
=$ac_cv_search_strerror
3194 if test "$ac_res" != no
; then :
3195 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
3200 if test "$cross_compiling" = yes; then :
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error
"cannot run test program while cross compiling
3204 See \`config.log' for more details." "$LINENO" 5; }
3206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3210 if ac_fn_c_try_run
"$LINENO"; then :
3214 if test $CC != cc
; then
3215 echo "Your $CC failed - restarting with CC=cc" 1>&6
3221 exec $0 $configure_args
3225 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3226 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3230 if test "$cross_compiling" = yes; then :
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error
"cannot run test program while cross compiling
3234 See \`config.log' for more details." "$LINENO" 5; }
3236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3240 if ac_fn_c_try_run
"$LINENO"; then :
3245 echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
3247 echo "$ac_compile" 1>&6
3249 as_fn_error
"Can't run the compiler - sorry" "$LINENO" 5
3251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3256 if test "$cross_compiling" = yes; then :
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error
"cannot run test program while cross compiling
3260 See \`config.log' for more details." "$LINENO" 5; }
3262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3267 int __something_strange_();
3268 __something_strange_(0);
3272 if ac_fn_c_try_run
"$LINENO"; then :
3273 as_fn_error
"Your compiler does not set the exit status - sorry" "$LINENO" 5
3275 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3276 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3280 for ac_prog
in gawk mawk nawk
awk
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy
$ac_prog; ac_word
=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if test "${ac_cv_prog_AWK+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3289 if test -n "$AWK"; then
3290 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir
=.
3297 for ac_exec_ext
in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_prog_AWK
="$ac_prog"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 if test -n "$AWK"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3312 $as_echo "$AWK" >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3319 test -n "$AWK" && break
3323 if test -f etc
/toolcheck
; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
3325 $as_echo "$as_me: checking for buggy tools..." >&6;}
3326 sh etc
/toolcheck
1>&6
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for System V..." >&5
3331 $as_echo "$as_me: checking for System V..." >&6;}
3332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334 #include <sys/types.h>
3340 int x = SIGCHLD | FNDELAY;
3345 if ac_fn_c_try_compile
"$LINENO"; then :
3348 $as_echo "#define SYSV 1" >>confdefs.h
3351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 2.x..." >&5
3354 $as_echo "$as_me: checking for Solaris 2.x..." >&6;}
3355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357 #if defined(SVR4) && defined(sun)
3362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3363 $EGREP "yes" >/dev
/null
2>&1; then :
3364 LIBS
="$LIBS -lsocket -lnsl -lkstat"
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking select..." >&5
3371 $as_echo "$as_me: checking select..." >&6;}
3372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3378 select(0, 0, 0, 0, 0);
3383 if ac_fn_c_try_link
"$LINENO"; then :
3386 LIBS
="$LIBS -lnet -lnsl"
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking select with $LIBS..." >&5
3388 $as_echo "$as_me: checking select with $LIBS..." >&6;}
3389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3395 select(0, 0, 0, 0, 0);
3400 if ac_fn_c_try_link
"$LINENO"; then :
3403 as_fn_error
"!!! no select - no screen" "$LINENO" 5
3405 rm -f core conftest.err conftest.
$ac_objext \
3406 conftest
$ac_exeext conftest.
$ac_ext
3409 rm -f core conftest.err conftest.
$ac_objext \
3410 conftest
$ac_exeext conftest.
$ac_ext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking select return value..." >&5
3413 $as_echo "$as_me: checking select return value..." >&6;}
3414 if test "$cross_compiling" = yes; then :
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error
"cannot run test program while cross compiling
3418 See \`config.log' for more details." "$LINENO" 5; }
3420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3423 #include <sys/types.h>
3424 #include <sys/stat.h>
3427 char *nam = "/tmp/conftest$$";
3432 #define O_NONBLOCK O_NDELAY
3435 #define S_IFIFO 0010000
3448 /* From Andrew A. Chernov (ache@astral.msk.su):
3449 * opening RDWR fifo fails in BSD 4.4, but select return values are
3456 if (mkfifo(nam, 0777))
3458 if (mknod(nam, S_IFIFO|0777, 0))
3462 if (open(nam, O_RDWR | O_NONBLOCK))
3464 if (write(0, "TEST", 4) == -1)
3469 #include <sys/types.h>
3470 #include <sys/socket.h>
3476 struct sockaddr_un a;
3484 if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3486 a.sun_family = AF_UNIX;
3487 strcpy(a.sun_path, nam);
3489 if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
3495 if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3497 (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
3498 if (write(s2, "HELLO", 5) == -1)
3504 if (accept(s1, (struct sockaddr *)&a, &l))
3514 if (select(1, &f, 0, 0, 0) == -1)
3516 if (select(1, &f, &f, 0, 0) != 2)
3522 if ac_fn_c_try_run
"$LINENO"; then :
3523 echo "- select is ok" 1>&6
3526 echo "- select can't count" 1>&6
3527 $as_echo "#define SELECT_BROKEN 1" >>confdefs.h
3530 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3531 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent..." >&5
3536 $as_echo "$as_me: checking for tgetent..." >&6;}
3537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3543 tgetent((char *)0, (char *)0);
3548 if ac_fn_c_try_link
"$LINENO"; then :
3552 LIBS
="-lcurses $olibs"
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libcurses..." >&5
3554 $as_echo "$as_me: checking libcurses..." >&6;}
3555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3563 __sorry_hpux_libcurses_is_totally_broken_in_10_10();
3565 tgetent((char *)0, (char *)0);
3572 if ac_fn_c_try_link
"$LINENO"; then :
3575 LIBS
="-ltermcap $olibs"
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermcap..." >&5
3577 $as_echo "$as_me: checking libtermcap..." >&6;}
3578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3584 tgetent((char *)0, (char *)0);
3589 if ac_fn_c_try_link
"$LINENO"; then :
3592 LIBS
="-ltermlib $olibs"
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermlib..." >&5
3594 $as_echo "$as_me: checking libtermlib..." >&6;}
3595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3601 tgetent((char *)0, (char *)0);
3606 if ac_fn_c_try_link
"$LINENO"; then :
3609 LIBS
="-lncurses $olibs"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libncurses..." >&5
3611 $as_echo "$as_me: checking libncurses..." >&6;}
3612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3618 tgetent((char *)0, (char *)0);
3623 if ac_fn_c_try_link
"$LINENO"; then :
3626 as_fn_error
"!!! no tgetent - no screen" "$LINENO" 5
3628 rm -f core conftest.err conftest.
$ac_objext \
3629 conftest
$ac_exeext conftest.
$ac_ext
3631 rm -f core conftest.err conftest.
$ac_objext \
3632 conftest
$ac_exeext conftest.
$ac_ext
3634 rm -f core conftest.err conftest.
$ac_objext \
3635 conftest
$ac_exeext conftest.
$ac_ext
3637 rm -f core conftest.err conftest.
$ac_objext \
3638 conftest
$ac_exeext conftest.
$ac_ext
3640 rm -f core conftest.err conftest.
$ac_objext \
3641 conftest
$ac_exeext conftest.
$ac_ext
3643 if test "$cross_compiling" = yes; then :
3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error
"cannot run test program while cross compiling
3647 See \`config.log' for more details." "$LINENO" 5; }
3649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3652 extern char *tgoto();
3655 exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
3658 if ac_fn_c_try_run
"$LINENO"; then :
3659 echo "- you use the termcap database" 1>&6
3662 echo "- you use the terminfo database" 1>&6
3663 $as_echo "#define TERMINFO 1" >>confdefs.h
3666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3667 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ospeed..." >&5
3671 $as_echo "$as_me: checking ospeed..." >&6;}
3672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674 extern short ospeed;
3683 if ac_fn_c_try_link
"$LINENO"; then :
3686 $as_echo "#define NEED_OSPEED 1" >>confdefs.h
3689 rm -f core conftest.err conftest.
$ac_objext \
3690 conftest
$ac_exeext conftest.
$ac_ext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc..." >&5
3693 $as_echo "$as_me: checking for /dev/ptc..." >&6;}
3694 if test -r /dev
/ptc
; then
3695 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys..." >&5
3700 $as_echo "$as_me: checking for SVR4 ptys..." >&6;}
3702 if test -c /dev
/ptmx
; then
3703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3709 ptsname(0);grantpt(0);unlockpt(0);
3714 if ac_fn_c_try_link
"$LINENO"; then :
3715 $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
3719 rm -f core conftest.err conftest.
$ac_objext \
3720 conftest
$ac_exeext conftest.
$ac_ext
3723 for ac_func
in getpt
3725 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
3726 if test "x$ac_cv_func_getpt" = x
""yes; then :
3727 cat >>confdefs.h
<<_ACEOF
3728 #define HAVE_GETPT 1
3735 if test -z "$sysvr4ptys"; then
3736 for ac_func
in openpty
3738 ac_fn_c_check_func
"$LINENO" "openpty" "ac_cv_func_openpty"
3739 if test "x$ac_cv_func_openpty" = x
""yes; then :
3740 cat >>confdefs.h
<<_ACEOF
3741 #define HAVE_OPENPTY 1
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
3746 $as_echo_n "checking for openpty in -lutil... " >&6; }
3747 if test "${ac_cv_lib_util_openpty+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 ac_check_lib_save_LIBS
=$LIBS
3752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3755 /* Override any GCC internal prototype to avoid an error.
3756 Use char because int might match the return type of a GCC
3757 builtin and then its argument prototype would still apply. */
3770 if ac_fn_c_try_link
"$LINENO"; then :
3771 ac_cv_lib_util_openpty
=yes
3773 ac_cv_lib_util_openpty
=no
3775 rm -f core conftest.err conftest.
$ac_objext \
3776 conftest
$ac_exeext conftest.
$ac_ext
3777 LIBS
=$ac_check_lib_save_LIBS
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
3780 $as_echo "$ac_cv_lib_util_openpty" >&6; }
3781 if test "x$ac_cv_lib_util_openpty" = x
""yes; then :
3782 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges..." >&5
3792 $as_echo "$as_me: checking for ptyranges..." >&6;}
3793 if test -d /dev
/ptym
; then
3798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3806 $EGREP "yes" >/dev
/null
2>&1; then :
3807 ptys
=`echo /dev/ptyp??`
3809 ptys
=`echo $pdir/pty??`
3813 if test "$ptys" != "$pdir/pty??" ; then
3814 p0
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
3815 p1
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
3816 cat >>confdefs.h
<<_ACEOF
3817 #define PTYRANGE0 "$p0"
3820 cat >>confdefs.h
<<_ACEOF
3821 #define PTYRANGE1 "$p1"
3827 # Check whether --with-pty-mode was given.
3828 if test "${with_pty_mode+set}" = set; then :
3829 withval
=$with_pty_mode; ptymode
="${withval}"
3833 # Check whether --with-pty-group was given.
3834 if test "${with_pty_group+set}" = set; then :
3835 withval
=$with_pty_group; ptygrp
="${withval}"
3838 test -n "$ptymode" || ptymode
=0620
3839 if test -n "$ptygrp" ; then
3840 cat >>confdefs.h
<<_ACEOF
3841 #define PTYMODE $ptymode
3844 cat >>confdefs.h
<<_ACEOF
3845 #define PTYGROUP $ptygrp
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group..." >&5
3851 $as_echo "$as_me: checking default tty permissions/group..." >&6;}
3853 if test "$cross_compiling" = yes; then :
3854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error
"cannot run test program while cross compiling
3857 See \`config.log' for more details." "$LINENO" 5; }
3859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3862 #include <sys/types.h>
3863 #include <sys/stat.h>
3872 if (!(x = ttyname(0))) exit(1);
3873 if (stat(x, &sb)) exit(1);
3875 if (om & 002) exit(0);
3876 m = system("mesg y");
3877 if (m == -1 || m == 127) exit(1);
3878 if (stat(x, &sb)) exit(1);
3880 if (chmod(x, om)) exit(1);
3881 if (m & 002) exit(0);
3882 if (sb.st_gid == getgid()) exit(1);
3883 if (!(fp=fopen("conftest_grp", "w")))
3885 fprintf(fp, "%d\n", sb.st_gid);
3891 if ac_fn_c_try_run
"$LINENO"; then :
3893 if test -f conftest_grp
; then
3894 ptygrp
=`cat conftest_grp`
3895 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
3897 cat >>confdefs.h
<<_ACEOF
3898 #define PTYMODE $ptymode
3901 cat >>confdefs.h
<<_ACEOF
3902 #define PTYGROUP $ptygrp
3906 echo "- ptys are world accessable" 1>&6
3914 # Extract the first word of "write", so it can be a program name with args.
3915 set dummy
write; ac_word
=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if test "${ac_cv_path_WRITEPATH+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
3923 ac_cv_path_WRITEPATH
="$WRITEPATH" # Let the user override the test with a path.
3926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir
=.
3931 for ac_exec_ext
in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933 ac_cv_path_WRITEPATH
="$as_dir/$ac_word$ac_exec_ext"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 WRITEPATH
=$ac_cv_path_WRITEPATH
3945 if test -n "$WRITEPATH"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WRITEPATH" >&5
3947 $as_echo "$WRITEPATH" >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3954 # Extract the first word of "xterm", so it can be a program name with args.
3955 set dummy xterm
; ac_word
=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_path_XTERMPATH+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3963 ac_cv_path_XTERMPATH
="$XTERMPATH" # Let the user override the test with a path.
3966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3970 test -z "$as_dir" && as_dir
=.
3971 for ac_exec_ext
in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973 ac_cv_path_XTERMPATH
="$as_dir/$ac_word$ac_exec_ext"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 XTERMPATH
=$ac_cv_path_XTERMPATH
3985 if test -n "$XTERMPATH"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XTERMPATH" >&5
3987 $as_echo "$XTERMPATH" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3995 if test -n "$WRITEPATH$XTERMPATH"; then
3998 found
=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
3999 if test -n "$found"; then
4003 if test -n "$XTERMPATH"; then
4004 ptygrpn
=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
4005 if test tty
!= "$ptygrpn"; then
4010 if test -n "$WRITEPATH$XTERMPATH"; then
4011 found
=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
4012 if test -n "$found"; then
4013 ptygrp
=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
4014 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4016 cat >>confdefs.h
<<_ACEOF
4017 #define PTYMODE $ptymode
4020 cat >>confdefs.h
<<_ACEOF
4021 #define PTYGROUP $ptygrp
4025 echo "- ptys are world accessable" 1>&6
4029 echo "- can't determine - assume ptys are world accessable" 1>&6
4035 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4036 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4042 if test -n "$posix" ; then
4044 echo "assuming posix signal definition" 1>&6
4046 $as_echo "#define SIGVOID 1" >>confdefs.h
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers..." >&5
4052 $as_echo "$as_me: checking return type of signal handlers..." >&6;}
4053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 #include <sys/types.h>
4060 extern void (*signal ()) ();
4069 if ac_fn_c_try_compile
"$LINENO"; then :
4070 $as_echo "#define SIGVOID 1" >>confdefs.h
4073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sigset..." >&5
4075 $as_echo "$as_me: checking sigset..." >&6;}
4076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4079 #include <sys/types.h>
4087 sigset(0, (void (*)())0);
4089 sigset(0, (int (*)())0);
4096 if ac_fn_c_try_link
"$LINENO"; then :
4097 $as_echo "#define USESIGSET 1" >>confdefs.h
4100 rm -f core conftest.err conftest.
$ac_objext \
4101 conftest
$ac_exeext conftest.
$ac_ext
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking signal implementation..." >&5
4103 $as_echo "$as_me: checking signal implementation..." >&6;}
4104 if test "$cross_compiling" = yes; then :
4105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error
"cannot run test program while cross compiling
4108 See \`config.log' for more details." "$LINENO" 5; }
4110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4113 #include <sys/types.h>
4117 #define SIGCLD SIGCHLD
4120 #define signal sigset
4135 /* on hpux we use sigvec to get bsd signals */
4137 (void)signal(SIGCLD, hand);
4138 kill(getpid(), SIGCLD);
4139 kill(getpid(), SIGCLD);
4147 if ac_fn_c_try_run
"$LINENO"; then :
4150 $as_echo "#define SYSVSIGS 1" >>confdefs.h
4153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4154 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4161 $as_echo_n "checking for ANSI C header files... " >&6; }
4162 if test "${ac_cv_header_stdc+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4180 if ac_fn_c_try_compile
"$LINENO"; then :
4181 ac_cv_header_stdc
=yes
4183 ac_cv_header_stdc
=no
4185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4187 if test $ac_cv_header_stdc = yes; then
4188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195 $EGREP "memchr" >/dev
/null
2>&1; then :
4198 ac_cv_header_stdc
=no
4204 if test $ac_cv_header_stdc = yes; then
4205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "free" >/dev
/null
2>&1; then :
4215 ac_cv_header_stdc
=no
4221 if test $ac_cv_header_stdc = yes; then
4222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4223 if test "$cross_compiling" = yes; then :
4226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4230 #if ((' ' & 0x0FF) == 0x020)
4231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4234 # define ISLOWER(c) \
4235 (('a' <= (c) && (c) <= 'i') \
4236 || ('j' <= (c) && (c) <= 'r') \
4237 || ('s' <= (c) && (c) <= 'z'))
4238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4246 for (i = 0; i < 256; i++)
4247 if (XOR (islower (i), ISLOWER (i))
4248 || toupper (i) != TOUPPER (i))
4253 if ac_fn_c_try_run
"$LINENO"; then :
4256 ac_cv_header_stdc
=no
4258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4265 $as_echo "$ac_cv_header_stdc" >&6; }
4266 if test $ac_cv_header_stdc = yes; then
4268 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4273 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4274 inttypes.h stdint.h unistd.h
4276 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4279 eval as_val
=\$
$as_ac_Header
4280 if test "x$as_val" = x
""yes; then :
4281 cat >>confdefs.h
<<_ACEOF
4282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4290 for ac_header
in sys
/stropts.h sys
/wait.h sgtty.h sys
/select.h
4292 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4293 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4294 eval as_val
=\$
$as_ac_Header
4295 if test "x$as_val" = x
""yes; then :
4296 cat >>confdefs.h
<<_ACEOF
4297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 for ac_header
in term.h
4306 ac_fn_c_check_header_mongrel
"$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
4307 if test "x$ac_cv_header_term_h" = x
""yes; then :
4308 cat >>confdefs.h
<<_ACEOF
4309 #define HAVE_TERM_H 1
4317 ac_config_files
="$ac_config_files Makefile"
4319 cat >confcache
<<\_ACEOF
4320 # This file is a shell script that caches the results of configure
4321 # tests run on this system so they can be shared between configure
4322 # scripts and configure runs, see configure's option --config-cache.
4323 # It is not useful on other systems. If it contains results you don't
4324 # want to keep, you may remove or edit it.
4326 # config.status only pays attention to the cache file if you give it
4327 # the --recheck option to rerun configure.
4329 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4330 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4335 # The following way of writing the cache mishandles newlines in values,
4336 # but we know of no workaround that is simple, portable, and efficient.
4337 # So, we kill variables containing newlines.
4338 # Ultrix sh set writes to stderr and can't be redirected directly,
4339 # and sets the high bit in the cache file unless we assign to the vars.
4341 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4342 eval ac_val
=\$
$ac_var
4346 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4350 _ | IFS | as_nl
) ;; #(
4351 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4352 *) { eval $ac_var=; unset $ac_var;} ;;
4358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4359 *${as_nl}ac_space
=\
*)
4360 # `set' does not quote correctly, so add quotes: double-quote
4361 # substitution turns \\\\ into \\, and sed turns \\ into \.
4364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4367 # `set' quotes correctly as required by POSIX, so do not add quotes.
4368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4381 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4382 if test -w "$cache_file"; then
4383 test "x$cache_file" != "x/dev/null" &&
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4385 $as_echo "$as_me: updating cache $cache_file" >&6;}
4386 cat confcache
>$cache_file
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4389 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4394 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4395 # Let make expand exec_prefix.
4396 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4398 DEFS
=-DHAVE_CONFIG_H
4402 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4403 # 1. Remove the extension, and $U if already installed.
4404 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4405 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4407 # will be set to the directory where LIBOBJS objects are built.
4408 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4409 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4413 LTLIBOBJS
=$ac_ltlibobjs
4417 : ${CONFIG_STATUS=./config.status}
4419 ac_clean_files_save
=$ac_clean_files
4420 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4422 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4424 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4426 # Generated by $as_me.
4427 # Run this file to recreate the current configuration.
4428 # Compiler output produced by configure, useful for debugging
4429 # configure, is in config.log if it exists.
4435 SHELL=\${CONFIG_SHELL-$SHELL}
4438 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4439 ## -------------------- ##
4440 ## M4sh Initialization. ##
4441 ## -------------------- ##
4443 # Be more Bourne compatible
4444 DUALCASE
=1; export DUALCASE
# for MKS sh
4445 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4449 # is contrary to our usage. Disable this feature.
4450 alias -g '${1+"$@"}'='"$@"'
4451 setopt NO_GLOB_SUBST
4453 case `(set -o) 2>/dev/null` in #(
4465 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4466 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4467 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4468 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4469 # Prefer a ksh shell builtin over an external printf program on Solaris,
4470 # but without wasting forks for bash or zsh.
4471 if test -z "$BASH_VERSION$ZSH_VERSION" \
4472 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4473 as_echo='print
-r --'
4474 as_echo_n='print
-rn --'
4475 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4476 as_echo='printf %s
\n'
4477 as_echo_n='printf %s
'
4479 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4480 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4481 as_echo_n='/usr
/ucb
/echo -n'
4483 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4484 as_echo_n_body='eval
4488 expr "X$arg" : "X\\(.*\\)$as_nl";
4489 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4491 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4493 export as_echo_n_body
4494 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4497 as_echo='sh
-c $as_echo_body as_echo
'
4500 # The user is always right.
4501 if test "${PATH_SEPARATOR+set}" != set; then
4503 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4504 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4511 # We need space, tab and new line, in precisely that order. Quoting is
4512 # there to prevent editors from complaining about space-tab.
4513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4514 # splitting by setting IFS to empty value.)
4517 # Find who we are. Look in the path if we contain no directory separator.
4519 *[\\/]* ) as_myself=$0 ;;
4520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4531 # We did not find ourselves, most probably we were run as `sh COMMAND'
4532 # in which case we are not to be found in the path.
4533 if test "x$as_myself" = x
; then
4536 if test ! -f "$as_myself"; then
4537 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4541 # Unset variables that we do not need and which cause bugs (e.g. in
4542 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4543 # suppresses any "Segmentation fault" message there. '((' could
4544 # trigger a bug in pdksh 5.2.14.
4545 for as_var
in BASH_ENV ENV MAIL MAILPATH
4546 do eval test x\
${$as_var+set} = xset \
4547 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4560 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4563 # as_fn_error ERROR [LINENO LOG_FD]
4564 # ---------------------------------
4565 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4566 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4567 # script with status $?, using 1 if that was 0.
4570 as_status
=$?
; test $as_status -eq 0 && as_status
=1
4572 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4573 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4575 $as_echo "$as_me: error: $1" >&2
4576 as_fn_exit
$as_status
4580 # as_fn_set_status STATUS
4581 # -----------------------
4582 # Set $? to STATUS, without forking.
4586 } # as_fn_set_status
4590 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4600 # Portably unset VAR.
4603 { eval $1=; unset $1;}
4605 as_unset
=as_fn_unset
4606 # as_fn_append VAR VALUE
4607 # ----------------------
4608 # Append the text in VALUE to the end of the definition contained in VAR. Take
4609 # advantage of any shell optimizations that allow amortized linear growth over
4610 # repeated appends, instead of the typical quadratic growth present in naive
4612 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4613 eval 'as_fn_append ()
4624 # as_fn_arith ARG...
4625 # ------------------
4626 # Perform arithmetic evaluation on the ARGs, and store the result in the
4627 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4628 # must be portable across $(()) and expr.
4629 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4630 eval 'as_fn_arith ()
4637 as_val
=`expr "$@" || test $? -eq 1`
4642 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4643 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4649 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4650 as_basename
=basename
4655 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4661 as_me
=`$as_basename -- "$0" ||
4662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4663 X"$0" : 'X\(//\)$' \| \
4664 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4666 sed '/^.*\/\([^/][^/]*\)\/*$/{
4680 # Avoid depending upon Character Ranges.
4681 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4682 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4683 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4684 as_cr_digits
='0123456789'
4685 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4687 ECHO_C
= ECHO_N
= ECHO_T
=
4688 case `echo -n x` in #(((((
4690 case `echo 'xy\c'` in
4691 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4693 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4700 rm -f conf$$ conf$$.exe conf$$.
file
4701 if test -d conf$$.dir
; then
4702 rm -f conf$$.dir
/conf$$.
file
4705 mkdir conf$$.dir
2>/dev
/null
4707 if (echo >conf$$.
file) 2>/dev
/null
; then
4708 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4710 # ... but there are two gotchas:
4711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4713 # In both cases, we have to default to `cp -p'.
4714 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4716 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4724 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4725 rmdir conf$$.dir
2>/dev
/null
4730 # Create "$as_dir" as a directory, including parents if necessary.
4735 -*) as_dir
=.
/$as_dir;;
4737 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4741 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4742 *) as_qdir
=$as_dir;;
4744 as_dirs
="'$as_qdir' $as_dirs"
4745 as_dir
=`$as_dirname -- "$as_dir" ||
4746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4747 X"$as_dir" : 'X\(//\)[^/]' \| \
4748 X"$as_dir" : 'X\(//\)$' \| \
4749 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4750 $as_echo X"$as_dir" |
4751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4768 test -d "$as_dir" && break
4770 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4771 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
4775 if mkdir
-p .
2>/dev
/null
; then
4776 as_mkdir_p
='mkdir -p "$as_dir"'
4778 test -d .
/-p && rmdir .
/-p
4782 if test -x / >/dev
/null
2>&1; then
4785 if ls -dL / >/dev
/null
2>&1; then
4792 if test -d "$1"; then
4798 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4799 ???[sx]*):;;*)false;;esac;fi
4803 as_executable_p
=$as_test_x
4805 # Sed expression to map a string onto a valid CPP name.
4806 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4808 # Sed expression to map a string onto a valid variable name.
4809 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4813 ## ----------------------------------- ##
4814 ## Main body of $CONFIG_STATUS script. ##
4815 ## ----------------------------------- ##
4817 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4820 # Save the log message, to keep $0 and so on meaningful, and to
4821 # report actual input values of CONFIG_FILES etc. instead of their
4822 # values after options handling.
4824 This file was extended by $as_me, which was
4825 generated by GNU Autoconf 2.64. Invocation command line was
4827 CONFIG_FILES = $CONFIG_FILES
4828 CONFIG_HEADERS = $CONFIG_HEADERS
4829 CONFIG_LINKS = $CONFIG_LINKS
4830 CONFIG_COMMANDS = $CONFIG_COMMANDS
4833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4838 case $ac_config_files in *"
4839 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4842 case $ac_config_headers in *"
4843 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4848 # Files that config.status was made for.
4849 config_files="$ac_config_files"
4850 config_headers="$ac_config_headers"
4854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4856 \`$as_me' instantiates files and other configuration actions
4857 from templates according to the current configuration. Unless the files
4858 and actions are specified as TAGs, all are instantiated by default.
4860 Usage: $0 [OPTION]... [TAG]...
4862 -h, --help print this help, then exit
4863 -V, --version print version number and configuration settings, then exit
4864 -q, --quiet, --silent
4865 do not print progress messages
4866 -d, --debug don't remove temporary files
4867 --recheck update $as_me by reconfiguring in the same conditions
4868 --file=FILE[:TEMPLATE]
4869 instantiate the configuration file FILE
4870 --header=FILE[:TEMPLATE]
4871 instantiate the configuration header FILE
4873 Configuration files:
4876 Configuration headers:
4879 Report bugs to the package provider."
4882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4885 configured by $0, generated by GNU Autoconf 2.64,
4886 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4888 Copyright (C) 2009 Free Software Foundation, Inc.
4889 This config.status script is free software; the Free Software Foundation
4890 gives unlimited permission to copy, distribute and modify it."
4895 test -n "\$AWK" || AWK=awk
4898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4899 # The default lists apply if the user does not specify any file.
4905 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4906 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4917 # Handling of the options.
4918 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4920 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4921 $as_echo "$ac_cs_version"; exit ;;
4922 --debug |
--debu |
--deb |
--de |
--d |
-d )
4924 --file |
--fil |
--fi |
--f )
4927 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4929 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4930 ac_need_defaults
=false
;;
4931 --header |
--heade |
--head |
--hea )
4934 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4936 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4937 ac_need_defaults
=false
;;
4939 # Conflict between --help and --header
4940 as_fn_error
"ambiguous option: \`$1'
4941 Try \`$0 --help' for more information.";;
4942 --help |
--hel |
-h )
4943 $as_echo "$ac_cs_usage"; exit ;;
4944 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4945 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4949 -*) as_fn_error
"unrecognized option: \`$1'
4950 Try \`$0 --help' for more information." ;;
4952 *) as_fn_append ac_config_targets
" $1"
4953 ac_need_defaults
=false
;;
4959 ac_configure_extra_args
=
4961 if $ac_cs_silent; then
4963 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4968 if \$ac_cs_recheck; then
4969 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4971 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4972 CONFIG_SHELL='$SHELL'
4978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4983 ## Running $as_me. ##
4989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4994 # Handling of arguments.
4995 for ac_config_target
in $ac_config_targets
4997 case $ac_config_target in
4998 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
4999 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5001 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5006 # If the user did not use the arguments to specify the items to instantiate,
5007 # then the envvar interface is used. Set only those that are not.
5008 # We use the long form for the default assignment because of an extremely
5009 # bizarre bug on SunOS 4.1.3.
5010 if $ac_need_defaults; then
5011 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5012 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5015 # Have a temporary directory for convenience. Make it in the build tree
5016 # simply because there is no reason against having it here, and in addition,
5017 # creating and moving files from /tmp can sometimes cause problems.
5018 # Hook for its removal unless debugging.
5019 # Note that there is a small window in which the directory will not be cleaned:
5020 # after its creation but before its name has been assigned to `$tmp'.
5024 trap 'exit_status=$?
5025 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5027 trap 'as_fn_exit 1' 1 2 13 15
5029 # Create a (secure) tmp directory for tmp files.
5032 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5033 test -n "$tmp" && test -d "$tmp"
5036 tmp
=.
/conf$$
-$RANDOM
5037 (umask 077 && mkdir
"$tmp")
5038 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
5040 # Set up the scripts for CONFIG_FILES section.
5041 # No need to generate them if there are no CONFIG_FILES.
5042 # This happens for instance with `./config.status config.h'.
5043 if test -n "$CONFIG_FILES"; then
5046 ac_cr
=`echo X | tr X '\015'`
5047 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5048 # But we know of no other shell where ac_cr would be empty at this
5049 # point, so we can use a bashism as a fallback.
5050 if test "x$ac_cr" = x
; then
5051 eval ac_cr
=\$
\'\\r
\'
5053 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5054 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5060 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5065 echo "cat >conf$$subs.awk <<_ACEOF" &&
5066 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5069 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5070 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5072 for ac_last_try in false false false false false :; do
5073 . ./conf$$subs.sh ||
5074 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5076 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5077 if test $ac_delim_n = $ac_delim_num; then
5079 elif $ac_last_try; then
5080 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5082 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5088 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
5092 s/^/S["/; s
/!.
*/"]=/
5102 s/\(.\{148\}\).*/\1/
5104 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5109 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5116 s/\(.\{148\}\).*/\1/
5118 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5122 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5127 ' <conf$$subs.awk | sed '
5132 ' >>$CONFIG_STATUS || ac_write_fail=1
5133 rm -f conf$$subs.awk
5134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5136 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
5137 for (key in S) S_is_set[key] = 1
5143 nfields = split(line, field, "@
")
5145 len = length(field[1])
5146 for (i = 2; i < nfields; i++) {
5148 keylen = length(key)
5149 if (S_is_set[key]) {
5151 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5152 len += length(value) + length(field[++i])
5163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5164 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5165 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5168 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
5169 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
5172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
5174 # trailing colons and then remove the whole line if VPATH becomes empty
5175 # (actually we leave an empty line to preserve line numbers).
5176 if test "x
$srcdir" = x.; then
5177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5181 s/^\([^=]*=[ ]*\):*/\1/
5187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5188 fi # test -n "$CONFIG_FILES"
5190 # Set up the scripts for CONFIG_HEADERS section.
5191 # No need to generate them if there are no CONFIG_HEADERS.
5192 # This happens for instance with `./config.status Makefile'.
5193 if test -n "$CONFIG_HEADERS"; then
5194 cat >"$tmp/defines.
awk" <<\_ACAWK ||
5198 # Transform confdefs.h into an awk script `defines.awk', embedded as
5199 # here-document in config.status, that substitutes the proper values into
5200 # config.h.in to produce config.h.
5202 # Create a delimiter string that does not exist in confdefs.h, to ease
5203 # handling of long lines.
5205 for ac_last_try in false false :; do
5206 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
5207 if test -z "$ac_t"; then
5209 elif $ac_last_try; then
5210 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
5212 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5216 # For the awk script, D is an array of macro values keyed by name,
5217 # likewise P contains macro parameters if any. Preserve backslash
5218 # newline sequences.
5220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5222 s/.\{148\}/&'"$ac_delim"'/g
5225 s/^[ ]*#[ ]*define[ ][ ]*/ /
5232 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5234 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5239 D["\
1"]=" \
3\\\\\\n
"\\/p
5241 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5246 s/.\{148\}/&'"$ac_delim"'/g
5251 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5254 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5256 ' <confdefs.h | sed '
5257 s/'"$ac_delim"'/"\\\
5258 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5261 for (key in D) D_is_set[key] = 1
5264 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5266 split(line, arg, " ")
5267 if (arg[1] == "#") {
5271 defundef
= substr
(arg
[1], 2)
5274 split(mac1
, mac2
, "(") #)
5276 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5277 if (D_is_set
[macro
]) {
5278 # Preserve the white space surrounding the "#".
5279 print prefix
"define", macro P
[macro
] D
[macro
]
5282 # Replace #undef with comments. This is necessary, for example,
5283 # in the case of _POSIX_SOURCE, which is predefined and required
5284 # on some systems where configure will not decide to define it.
5285 if (defundef
== "undef") {
5286 print
"/*", prefix defundef
, macro
, "*/"
5294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5295 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
5296 fi # test -n "$CONFIG_HEADERS"
5299 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5304 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5306 case $ac_mode$ac_tag in
5308 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5309 :[FH
]-) ac_tag
=-:-;;
5310 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5327 -) ac_f
="$tmp/stdin";;
5328 *) # Look for the file first in the build tree, then in the source tree
5329 # (if the path is not absolute). The absolute path cannot be DOS-style,
5330 # because $ac_f cannot contain `:'.
5334 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5336 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
5338 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5339 as_fn_append ac_file_inputs
" '$ac_f'"
5342 # Let's still pretend it is `configure' which instantiates (i.e., don't
5343 # use $as_me), people would be surprised to read:
5344 # /* config.h. Generated by config.status. */
5345 configure_input
='Generated from '`
5346 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5348 if test x
"$ac_file" != x-
; then
5349 configure_input
="$ac_file. $configure_input"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5351 $as_echo "$as_me: creating $ac_file" >&6;}
5353 # Neutralize special characters interpreted by sed in replacement strings.
5354 case $configure_input in #(
5355 *\
&* |
*\|
* |
*\\* )
5356 ac_sed_conf_input
=`$as_echo "$configure_input" |
5357 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5358 *) ac_sed_conf_input
=$configure_input;;
5362 *:-:* |
*:-) cat >"$tmp/stdin" \
5363 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
5368 ac_dir
=`$as_dirname -- "$ac_file" ||
5369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5370 X"$ac_file" : 'X\(//\)[^/]' \| \
5371 X"$ac_file" : 'X\(//\)$' \| \
5372 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5373 $as_echo X"$ac_file" |
5374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5391 as_dir
="$ac_dir"; as_fn_mkdir_p
5395 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5397 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5398 # A ".." for each directory in $ac_dir_suffix.
5399 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5400 case $ac_top_builddir_sub in
5401 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5402 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5405 ac_abs_top_builddir
=$ac_pwd
5406 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5407 # for backward compatibility:
5408 ac_top_builddir
=$ac_top_build_prefix
5411 .
) # We are building in place.
5413 ac_top_srcdir
=$ac_top_builddir_sub
5414 ac_abs_top_srcdir
=$ac_pwd ;;
5415 [\\/]* | ?
:[\\/]* ) # Absolute name.
5416 ac_srcdir
=$srcdir$ac_dir_suffix;
5417 ac_top_srcdir
=$srcdir
5418 ac_abs_top_srcdir
=$srcdir ;;
5420 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5421 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5422 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5424 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5436 # If the template does not know about datarootdir, expand it.
5437 # FIXME: This hack should be removed a few years after 2.60.
5438 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5449 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5450 *datarootdir
*) ac_datarootdir_seen
=yes;;
5451 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5453 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5456 ac_datarootdir_hack='
5457 s&@datadir@&$datadir&g
5458 s&@docdir@&$docdir&g
5459 s&@infodir@&$infodir&g
5460 s&@localedir@&$localedir&g
5461 s&@mandir@&$mandir&g
5462 s&\\\${datarootdir}&$datarootdir&g' ;;
5466 # Neutralize VPATH when `$srcdir' = `.'.
5467 # Shell code in configure.ac might set extrasub.
5468 # FIXME: do we really want to maintain this feature?
5469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5470 ac_sed_extra="$ac_vpsub
5473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5475 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5476 s|@configure_input@|
$ac_sed_conf_input|
;t t
5477 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5478 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5479 s
&@srcdir@
&$ac_srcdir&;t t
5480 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5481 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5482 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5483 s
&@builddir@
&$ac_builddir&;t t
5484 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5485 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5486 $ac_datarootdir_hack
5488 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
5489 || as_fn_error "could not create
$ac_file" "$LINENO" 5
5491 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
5493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5495 which seems to be undefined. Please make sure it is defined." >&5
5496 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5497 which seems to be undefined. Please make sure it is defined." >&2;}
5501 -) cat "$tmp/out" && rm -f "$tmp/out";;
5502 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5504 || as_fn_error "could not create $ac_file" "$LINENO" 5
5510 if test x"$ac_file" != x-; then
5512 $as_echo "/* $configure_input */" \
5513 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5514 } >"$tmp/config.h" \
5515 || as_fn_error "could not create $ac_file" "$LINENO" 5
5516 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5518 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5521 mv "$tmp/config.h" "$ac_file" \
5522 || as_fn_error "could not create $ac_file" "$LINENO" 5
5525 $as_echo "/* $configure_input */" \
5526 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5527 || as_fn_error "could not create -" "$LINENO" 5
5539 ac_clean_files=$ac_clean_files_save
5541 test $ac_write_fail = 0 ||
5542 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5545 # configure is writing to config.log, and then calls config.status.
5546 # config.status does its own redirection, appending to config.log.
5547 # Unfortunately, on DOS this fails, as config.log is still kept open
5548 # by configure, so config.status won't be able to
write to it
; its
5549 # output is simply discarded. So we exec the FD to /dev/null,
5550 # effectively closing config.log, so it can be properly (re)opened and
5551 # appended to by config.status. When coming back to configure, we
5552 # need to make the FD available again.
5553 if test "$no_create" != yes; then
5555 ac_config_status_args
=
5556 test "$silent" = yes &&
5557 ac_config_status_args
="$ac_config_status_args --quiet"
5559 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5561 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5562 # would make configure fail if this is the last instruction.
5563 $ac_cs_success || as_fn_exit $?
5565 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5567 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}