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
="server.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
650 MAINTAINER_MODE_FALSE
679 program_transform_name
692 enable_option_checking
693 enable_maintainer_mode
695 enable_build_with_cxx
704 enable_inprocess_agent
706 ac_precious_vars
='build_alias
720 # Initialize some variables set by options.
722 ac_init_version
=false
723 ac_unrecognized_opts
=
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
734 program_transform_name
=s
,x
,x
,
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir
='${exec_prefix}/bin'
749 sbindir
='${exec_prefix}/sbin'
750 libexecdir
='${exec_prefix}/libexec'
751 datarootdir
='${prefix}/share'
752 datadir
='${datarootdir}'
753 sysconfdir
='${prefix}/etc'
754 sharedstatedir
='${prefix}/com'
755 localstatedir
='${prefix}/var'
756 includedir
='${prefix}/include'
757 oldincludedir
='/usr/include'
758 docdir
='${datarootdir}/doc/${PACKAGE}'
759 infodir
='${datarootdir}/info'
764 libdir
='${exec_prefix}/lib'
765 localedir
='${datarootdir}/locale'
766 mandir
='${datarootdir}/man'
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\
$ac_option
780 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 # Accept the important Cygnus configure options, so we can diagnose typos.
786 case $ac_dashdash$ac_option in
790 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
792 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
795 -build |
--build |
--buil |
--bui |
--bu)
796 ac_prev
=build_alias
;;
797 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
798 build_alias
=$ac_optarg ;;
800 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
801 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
802 ac_prev
=cache_file
;;
803 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
804 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
805 cache_file
=$ac_optarg ;;
808 cache_file
=config.cache
;;
810 -datadir |
--datadir |
--datadi |
--datad)
812 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
813 datadir
=$ac_optarg ;;
815 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
816 |
--dataroo |
--dataro |
--datar)
817 ac_prev
=datarootdir
;;
818 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
819 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
820 datarootdir
=$ac_optarg ;;
822 -disable-* |
--disable-*)
823 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
826 as_fn_error
"invalid feature name: $ac_useropt"
827 ac_useropt_orig
=$ac_useropt
828 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
833 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep
=', ';;
836 eval enable_
$ac_useropt=no
;;
838 -docdir |
--docdir |
--docdi |
--doc |
--do)
840 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
843 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
845 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
848 -enable-* |
--enable-*)
849 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
852 as_fn_error
"invalid feature name: $ac_useropt"
853 ac_useropt_orig
=$ac_useropt
854 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
859 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep
=', ';;
862 eval enable_
$ac_useropt=\
$ac_optarg ;;
864 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
865 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
866 |
--exec |
--exe |
--ex)
867 ac_prev
=exec_prefix
;;
868 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
869 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
870 |
--exec=* |
--exe=* |
--ex=*)
871 exec_prefix
=$ac_optarg ;;
873 -gas |
--gas |
--ga |
--g)
874 # Obsolete; use --with-gas.
877 -help |
--help |
--hel |
--he |
-h)
879 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
880 ac_init_help
=recursive
;;
881 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
882 ac_init_help
=short
;;
884 -host |
--host |
--hos |
--ho)
885 ac_prev
=host_alias
;;
886 -host=* |
--host=* |
--hos=* |
--ho=*)
887 host_alias
=$ac_optarg ;;
889 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
891 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
893 htmldir
=$ac_optarg ;;
895 -includedir |
--includedir |
--includedi |
--included |
--include \
896 |
--includ |
--inclu |
--incl |
--inc)
897 ac_prev
=includedir
;;
898 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
899 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
900 includedir
=$ac_optarg ;;
902 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
904 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
905 infodir
=$ac_optarg ;;
907 -libdir |
--libdir |
--libdi |
--libd)
909 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
912 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
913 |
--libexe |
--libex |
--libe)
914 ac_prev
=libexecdir
;;
915 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
916 |
--libexe=* |
--libex=* |
--libe=*)
917 libexecdir
=$ac_optarg ;;
919 -localedir |
--localedir |
--localedi |
--localed |
--locale)
921 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
922 localedir
=$ac_optarg ;;
924 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
925 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
926 ac_prev
=localstatedir
;;
927 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
928 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
929 localstatedir
=$ac_optarg ;;
931 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
933 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
937 # Obsolete; use --without-fp.
940 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
941 |
--no-cr |
--no-c |
-n)
944 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
945 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
948 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
949 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
950 |
--oldin |
--oldi |
--old |
--ol |
--o)
951 ac_prev
=oldincludedir
;;
952 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
953 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
954 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
955 oldincludedir
=$ac_optarg ;;
957 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
959 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
962 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
963 |
--program-pre |
--program-pr |
--program-p)
964 ac_prev
=program_prefix
;;
965 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
966 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
967 program_prefix
=$ac_optarg ;;
969 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
970 |
--program-suf |
--program-su |
--program-s)
971 ac_prev
=program_suffix
;;
972 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
973 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
974 program_suffix
=$ac_optarg ;;
976 -program-transform-name |
--program-transform-name \
977 |
--program-transform-nam |
--program-transform-na \
978 |
--program-transform-n |
--program-transform- \
979 |
--program-transform |
--program-transfor \
980 |
--program-transfo |
--program-transf \
981 |
--program-trans |
--program-tran \
982 |
--progr-tra |
--program-tr |
--program-t)
983 ac_prev
=program_transform_name
;;
984 -program-transform-name=* |
--program-transform-name=* \
985 |
--program-transform-nam=* |
--program-transform-na=* \
986 |
--program-transform-n=* |
--program-transform-=* \
987 |
--program-transform=* |
--program-transfor=* \
988 |
--program-transfo=* |
--program-transf=* \
989 |
--program-trans=* |
--program-tran=* \
990 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
991 program_transform_name
=$ac_optarg ;;
993 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
995 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
998 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1000 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1003 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1004 |
-silent |
--silent |
--silen |
--sile |
--sil)
1007 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1009 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1011 sbindir
=$ac_optarg ;;
1013 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1014 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1015 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1017 ac_prev
=sharedstatedir
;;
1018 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1019 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1020 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1022 sharedstatedir
=$ac_optarg ;;
1024 -site |
--site |
--sit)
1026 -site=* |
--site=* |
--sit=*)
1029 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1031 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1032 srcdir
=$ac_optarg ;;
1034 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1035 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1036 ac_prev
=sysconfdir
;;
1037 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1038 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1039 sysconfdir
=$ac_optarg ;;
1041 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1042 ac_prev
=target_alias
;;
1043 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1044 target_alias
=$ac_optarg ;;
1046 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1049 -version |
--version |
--versio |
--versi |
--vers |
-V)
1050 ac_init_version
=: ;;
1053 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1056 as_fn_error
"invalid package name: $ac_useropt"
1057 ac_useropt_orig
=$ac_useropt
1058 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1063 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep
=', ';;
1066 eval with_
$ac_useropt=\
$ac_optarg ;;
1068 -without-* |
--without-*)
1069 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error
"invalid package name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval with_
$ac_useropt=no
;;
1085 # Obsolete; use --with-x.
1088 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1089 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1090 ac_prev
=x_includes
;;
1091 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1092 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1093 x_includes
=$ac_optarg ;;
1095 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1096 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1097 ac_prev
=x_libraries
;;
1098 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1099 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1100 x_libraries
=$ac_optarg ;;
1102 -*) as_fn_error
"unrecognized option: \`$ac_option'
1103 Try \`$0 --help' for more information."
1107 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 case $ac_envvar in #(
1110 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1111 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1113 eval $ac_envvar=\
$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1120 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 if test -n "$ac_prev"; then
1128 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1129 as_fn_error
"missing argument to $ac_option"
1132 if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1135 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1136 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1140 # Check all directory arguments for consistency.
1141 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1146 eval ac_val
=\$
$ac_var
1147 # Remove trailing slashes.
1150 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\
$ac_val;;
1153 # Be sure to have absolute directory names.
1155 [\\/$
]* | ?
:[\\/]* ) continue;;
1156 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1158 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1166 target
=$target_alias
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x
; then
1170 if test "x$build_alias" = x
; then
1171 cross_compiling
=maybe
1172 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173 If a cross compiler is detected then cross compile mode will be used." >&2
1174 elif test "x$build_alias" != "x$host_alias"; then
1180 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1182 test "$silent" = yes && exec 6>/dev
/null
1185 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di
=`ls -di .` &&
1187 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1188 as_fn_error
"working directory cannot be determined"
1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190 as_fn_error
"pwd does not report name of working directory"
1193 # Find the source files, if location was not specified.
1194 if test -z "$srcdir"; then
1195 ac_srcdir_defaulted
=yes
1196 # Try the directory containing this script, then the parent directory.
1197 ac_confdir
=`$as_dirname -- "$as_myself" ||
1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202 $as_echo X"$as_myself" |
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1225 ac_srcdir_defaulted
=no
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1229 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1231 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1243 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 for ac_var
in $ac_precious_vars; do
1246 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1248 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1259 \`configure' configures this package to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1322 --build=BUILD configure
for building on BUILD
[guessed
]
1323 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1324 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1328 if test -n "$ac_init_help"; then
1333 --disable-option-checking ignore unrecognized
--enable/--with options
1334 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1335 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1336 --enable-maintainer-mode enable make rules and dependencies not useful
1337 (and sometimes confusing
) to the casual installer
1338 --disable-largefile omit support
for large files
1339 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1340 --enable-libmcheck Try linking with
-lmcheck if available
1341 --enable-werror treat compile warnings as errors
1342 --enable-inprocess-agent
1346 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1347 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1348 --with-ust=PATH Specify prefix directory
for the installed UST package
1349 Equivalent to
--with-ust-include=PATH
/include
1350 plus
--with-ust-lib=PATH
/lib
1351 --with-ust-include=PATH Specify directory
for installed UST include files
1352 --with-ust-lib=PATH Specify the directory
for the installed UST library
1353 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1354 --with-bugurl=URL Direct users to URL to report a bug
1355 --with-libthread-db=PATH
1356 use given libthread_db directly
1358 Some influential environment variables
:
1359 CC C compiler
command
1360 CFLAGS C compiler flags
1361 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1362 nonstandard directory
<lib dir
>
1363 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1364 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1365 you have headers
in a nonstandard directory
<include dir
>
1366 CXX C
++ compiler
command
1367 CXXFLAGS C
++ compiler flags
1370 Use these variables to override the choices made by
`configure' or to help
1371 it to find libraries and programs with nonstandard names/locations.
1373 Report bugs to the package provider.
1378 if test "$ac_init_help" = "recursive"; then
1379 # If there are subdirs, report their specific --help.
1380 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1381 test -d "$ac_dir" ||
1382 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1403 .) # We are building in place.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1427 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1437 generated by GNU Autoconf 2.64
1439 Copyright (C) 2009 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1446 ## ------------------------ ##
1447 ## Autoconf initialization. ##
1448 ## ------------------------ ##
1450 # ac_fn_c_try_compile LINENO
1451 # --------------------------
1452 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1453 ac_fn_c_try_compile ()
1455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1456 rm -f conftest.$ac_objext
1457 if { { ac_try="$ac_compile"
1459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1460 *) ac_try_echo
=$ac_try;;
1462 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463 $as_echo "$ac_try_echo"; } >&5
1464 (eval "$ac_compile") 2>conftest.err
1466 if test -s conftest.err
; then
1467 grep -v '^ *+' conftest.err
>conftest.er1
1468 cat conftest.er1
>&5
1469 mv -f conftest.er1 conftest.err
1471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472 test $ac_status = 0; } && {
1473 test -z "$ac_c_werror_flag" ||
1474 test ! -s conftest.err
1475 } && test -s conftest.
$ac_objext; then :
1478 $as_echo "$as_me: failed program was:" >&5
1479 sed 's/^/| /' conftest.
$ac_ext >&5
1483 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1486 } # ac_fn_c_try_compile
1488 # ac_fn_cxx_try_compile LINENO
1489 # ----------------------------
1490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_cxx_try_compile
()
1493 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1494 rm -f conftest.
$ac_objext
1495 if { { ac_try
="$ac_compile"
1497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_compile") 2>conftest.err
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } && {
1511 test -z "$ac_cxx_werror_flag" ||
1512 test ! -s conftest.err
1513 } && test -s conftest.$ac_objext; then :
1516 $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1521 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1524 } # ac_fn_cxx_try_compile
1526 # ac_fn_c_try_cpp LINENO
1527 # ----------------------
1528 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 if { { ac_try="$ac_cpp conftest.$ac_ext"
1534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1535 *) ac_try_echo
=$ac_try;;
1537 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541 if test -s conftest.err
; then
1542 grep -v '^ *+' conftest.err
>conftest.er1
1543 cat conftest.er1
>&5
1544 mv -f conftest.er1 conftest.err
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } >/dev
/null
&& {
1548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.
$ac_ext >&5
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1563 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1566 # the include files in INCLUDES and setting the cache variable VAR
1568 ac_fn_c_check_header_mongrel
()
1570 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1571 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573 $as_echo_n "checking for $2... " >&6; }
1574 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1575 $as_echo_n "(cached) " >&6
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579 $as_echo "$ac_res" >&6; }
1581 # Is the header compilable?
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1583 $as_echo_n "checking $2 usability... " >&6; }
1584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1585 /* end confdefs.h. */
1589 if ac_fn_c_try_compile
"$LINENO"; then :
1590 ac_header_compiler
=yes
1592 ac_header_compiler
=no
1594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1596 $as_echo "$ac_header_compiler" >&6; }
1598 # Is the header present?
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1600 $as_echo_n "checking $2 presence... " >&6; }
1601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1605 if ac_fn_c_try_cpp
"$LINENO"; then :
1606 ac_header_preproc
=yes
1608 ac_header_preproc
=no
1610 rm -f conftest.err conftest.
$ac_ext
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1612 $as_echo "$ac_header_preproc" >&6; }
1614 # So? What about this header?
1615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1618 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1620 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1624 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1626 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1628 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1630 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1638 $as_echo_n "(cached) " >&6
1640 eval "$3=\$ac_header_compiler"
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1648 } # ac_fn_c_check_header_mongrel
1650 # ac_fn_c_try_run LINENO
1651 # ----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1653 # that executables *can* be run.
1656 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1657 if { { ac_try
="$ac_link"
1659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>&5
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668 { { case "(($ac_try" in
1669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1670 *) ac_try_echo
=$ac_try;;
1672 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_try") 2>&5
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; }; }; then :
1680 $as_echo "$as_me: program exited with status $ac_status" >&5
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.
$ac_ext >&5
1684 ac_retval
=$ac_status
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1692 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1693 # -------------------------------------------------------
1694 # Tests whether HEADER exists and can be compiled using the include files in
1695 # INCLUDES, setting the cache variable VAR accordingly.
1696 ac_fn_c_check_header_compile
()
1698 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1702 $as_echo_n "(cached) " >&6
1704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1709 if ac_fn_c_try_compile
"$LINENO"; then :
1714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1721 } # ac_fn_c_check_header_compile
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1728 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1729 rm -f conftest.
$ac_objext conftest
$ac_exeext
1730 if { { ac_try
="$ac_link"
1732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 $as_test_x conftest$ac_exeext
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 } # ac_fn_c_try_link
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1792 # include <limits.h>
1794 # include <assert.h>
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1821 if ac_fn_c_try_link "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_check_func
1836 # ac_fn_c_check_decl LINENO SYMBOL VAR
1837 # ------------------------------------
1838 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1839 ac_fn_c_check_decl ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1843 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1845 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847 $as_echo_n "(cached) " >&6
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1855 #ifndef $as_decl_name
1857 (void) $as_decl_use;
1859 (void) $as_decl_name;
1867 if ac_fn_c_try_compile "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_check_decl
1881 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1882 # -------------------------------------------
1883 # Tests whether TYPE exists after having included INCLUDES, setting cache
1884 # variable VAR accordingly.
1885 ac_fn_c_check_type ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1919 if ac_fn_c_try_compile "$LINENO"; then :
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 } # ac_fn_c_check_type
1935 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1936 # --------------------------------------------
1937 # Tries to find the compile-time value of EXPR in a program that includes
1938 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1940 ac_fn_c_compute_int ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if test "$cross_compiling" = yes; then
1944 # Depending upon the size, compute the lo and hi bounds.
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1951 static int test_array [1 - 2 * !(($2) >= 0)];
1958 if ac_fn_c_try_compile "$LINENO"; then :
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1967 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 ac_hi=$ac_mid; break
1977 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1978 if test $ac_lo -le $ac_mid; then
1982 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1993 static int test_array [1 - 2 * !(($2) < 0)];
2000 if ac_fn_c_try_compile "$LINENO"; then :
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2009 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 ac_lo=$ac_mid; break
2019 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2020 if test $ac_mid -le $ac_hi; then
2024 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 # Binary search between lo and hi bounds.
2035 while test "x$ac_lo" != "x$ac_hi"; do
2036 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2043 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2050 if ac_fn_c_try_compile "$LINENO"; then :
2053 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2065 static long int longval () { return $2; }
2066 static unsigned long int ulongval () { return $2; }
2073 FILE *f = fopen ("conftest.val", "w");
2078 long int i = longval ();
2081 fprintf (f, "%ld", i);
2085 unsigned long int i = ulongval ();
2088 fprintf (f, "%lu", i);
2090 /* Do not output a trailing newline, as this causes \r\n confusion
2091 on some platforms. */
2092 return ferror (f) || fclose (f) != 0;
2098 if ac_fn_c_try_run "$LINENO"; then :
2099 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2104 conftest.$ac_objext conftest.beam conftest.$ac_ext
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 } # ac_fn_c_compute_int
2113 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2114 # ----------------------------------------------------
2115 # Tries to find if the field MEMBER exists in type AGGR, after including
2116 # INCLUDES, setting cache variable VAR accordingly.
2117 ac_fn_c_check_member ()
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2121 $as_echo_n "checking for $2.$3... " >&6; }
2122 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 $as_echo_n "(cached) " >&6
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2138 if ac_fn_c_try_compile "$LINENO"; then :
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2148 if (sizeof ac_aggr.$3)
2154 if ac_fn_c_try_compile "$LINENO"; then :
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168 } # ac_fn_c_check_member
2169 cat >config.log <<_ACEOF
2170 This file contains any messages produced by compilers while
2171 running configure, to aid debugging if configure makes a mistake.
2173 It was created by $as_me, which was
2174 generated by GNU Autoconf 2.64. Invocation command line was
2186 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2187 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2188 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2189 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2190 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2192 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2193 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2195 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2196 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2197 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2198 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2199 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2200 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2201 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 $as_echo "PATH: $as_dir"
2226 # Keep a trace of the command line.
2227 # Strip out --no-create and --no-recursion so they do not pile up.
2228 # Strip out --silent because we don't want to record it for future runs.
2229 # Also quote any args containing shell meta-characters.
2230 # Make two passes to allow for proper duplicate-argument suppression.
2234 ac_must_keep_next=false
2240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2242 | -silent | --silent | --silen | --sile | --sil)
2245 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2248 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2250 as_fn_append ac_configure_args1 " '$ac_arg'"
2251 if test $ac_must_keep_next = true; then
2252 ac_must_keep_next=false # Got value, back to normal.
2255 *=* | --config-cache | -C | -disable-* | --disable-* \
2256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2258 | -with-* | --with-* | -without-* | --without-* | --x)
2259 case "$ac_configure_args0 " in
2260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 -* ) ac_must_keep_next=true ;;
2266 as_fn_append ac_configure_args " '$ac_arg'"
2271 { ac_configure_args0=; unset ac_configure_args0;}
2272 { ac_configure_args1=; unset ac_configure_args1;}
2274 # When interrupted or exit'd, cleanup temporary files, and complete
2275 # config.log. We remove comments because anyway the quotes in there
2276 # would cause problems or look ugly.
2277 # WARNING: Use '\'' to represent an apostrophe within the trap.
2278 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2279 trap 'exit_status=$?
2280 # Save into config.log some information that might help in debugging.
2285 ## ---------------- ##
2286 ## Cache variables. ##
2287 ## ---------------- ##
2290 # The following way of writing the cache mishandles newlines in values,
2292 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2293 eval ac_val=\$$ac_var
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2308 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2323 ## ----------------- ##
2324 ## Output variables. ##
2325 ## ----------------- ##
2328 for ac_var in $ac_subst_vars
2330 eval ac_val=\$$ac_var
2332 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 $as_echo "$ac_var='\''$ac_val'\''"
2338 if test -n "$ac_subst_files"; then
2340 ## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##
2345 for ac_var in $ac_subst_files
2347 eval ac_val=\$$ac_var
2349 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351 $as_echo "$ac_var='\''$ac_val'\''"
2356 if test -s confdefs.h; then
2366 test "$ac_signal" != 0 &&
2367 $as_echo "$as_me: caught signal $ac_signal"
2368 $as_echo "$as_me: exit $exit_status"
2370 rm -f core *.core core.conftest.* &&
2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2374 for ac_signal in 1 2 13 15; do
2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2380 rm -f -r conftest* confdefs.h
2382 $as_echo "/* confdefs.h */" > confdefs.h
2384 # Predefined preprocessor variables.
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_NAME "$PACKAGE_NAME"
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_STRING "$PACKAGE_STRING"
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_URL "$PACKAGE_URL"
2411 # Let the site file select an alternate cache file if it wants to.
2412 # Prefer an explicitly selected file to automatically selected ones.
2415 if test -n "$CONFIG_SITE"; then
2416 ac_site_file1=$CONFIG_SITE
2417 elif test "x$prefix" != xNONE; then
2418 ac_site_file1=$prefix/share/config.site
2419 ac_site_file2=$prefix/etc/config.site
2421 ac_site_file1=$ac_default_prefix/share/config.site
2422 ac_site_file2=$ac_default_prefix/etc/config.site
2424 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426 test "x$ac_site_file" = xNONE && continue
2427 if test -r "$ac_site_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2429 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2430 sed 's/^/| /' "$ac_site_file" >&5
2435 if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special
2437 # files actually), so we avoid doing that.
2438 if test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440 $as_echo "$as_me: loading cache $cache_file" >&6;}
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448 $as_echo "$as_me: creating cache $cache_file" >&6;}
2452 # Check that the precious variables saved in the cache have kept the same
2454 ac_cache_corrupted=false
2455 for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2463 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2467 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x
$ac_old_val`
2474 ac_new_val_w=`echo x
$ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2478 ac_cache_corrupted=:
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2481 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2507 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2509 ## -------------------- ##
2510 ## Main body of script. ##
2511 ## -------------------- ##
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 ac_config_headers="$ac_config_headers config.h:config.in"
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2528 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2529 # Check whether --enable-maintainer-mode was given.
2530 if test "${enable_maintainer_mode+set}" = set; then :
2531 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2533 USE_MAINTAINER_MODE=no
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2537 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2538 if test $USE_MAINTAINER_MODE = yes; then
2539 MAINTAINER_MODE_TRUE=
2540 MAINTAINER_MODE_FALSE='#'
2542 MAINTAINER_MODE_TRUE='#'
2543 MAINTAINER_MODE_FALSE=
2546 MAINT=$MAINTAINER_MODE_TRUE
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555 if test -n "$ac_tool_prefix"; then
2556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_CC+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 if test -n "$CC"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2586 $as_echo "$CC" >&6; }
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2594 if test -z "$ac_cv_prog_CC"; then
2596 # Extract the first word of "gcc", so it can be a program name with args.
2597 set dummy gcc; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2601 $as_echo_n "(cached) " >&6
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_ac_ct_CC="gcc"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2626 $as_echo "$ac_ct_CC" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2632 if test "x$ac_ct_CC" = x; then
2635 case $cross_compiling:$ac_tool_warned in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2639 ac_tool_warned=yes ;;
2647 if test -z "$CC"; then
2648 if test -n "$ac_tool_prefix"; then
2649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2650 set dummy ${ac_tool_prefix}cc; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_CC="${ac_tool_prefix}cc"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 if test -n "$CC"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2679 $as_echo "$CC" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2688 if test -z "$CC"; then
2689 # Extract the first word of "cc", so it can be a program name with args.
2690 set dummy cc; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if test "${ac_cv_prog_CC+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2708 ac_prog_rejected=yes
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 if test $ac_prog_rejected = yes; then
2720 # We found a bogon in the path, so make sure we never use it.
2721 set dummy $ac_cv_prog_CC
2723 if test $# != 0; then
2724 # We chose a different compiler from the bogus one.
2725 # However, it has the same basename, so the bogon will be chosen
2726 # first if we set CC to just the basename; use the full file name.
2728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2734 if test -n "$CC"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2736 $as_echo "$CC" >&6; }
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2744 if test -z "$CC"; then
2745 if test -n "$ac_tool_prefix"; then
2746 for ac_prog in cl.exe
2748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if test "${ac_cv_prog_CC+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 if test -n "$CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778 $as_echo "$CC" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2785 test -n "$CC" && break
2788 if test -z "$CC"; then
2790 for ac_prog in cl.exe
2792 # Extract the first word of "$ac_prog", so it can be a program name with args.
2793 set dummy $ac_prog; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2797 $as_echo_n "(cached) " >&6
2799 if test -n "$ac_ct_CC"; then
2800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_ac_ct_CC="$ac_prog"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820 if test -n "$ac_ct_CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2822 $as_echo "$ac_ct_CC" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2829 test -n "$ac_ct_CC" && break
2832 if test "x$ac_ct_CC" = x; then
2835 case $cross_compiling:$ac_tool_warned in
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839 ac_tool_warned=yes ;;
2848 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850 as_fn_error "no acceptable C compiler found
in \
$PATH
2851 See \
`config.log' for more details." "$LINENO" 5; }
2853 # Provide some information about the compiler.
2854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2857 for ac_option in --version -v -V -qversion; do
2858 { { ac_try="$ac_compiler $ac_option >&5"
2860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2861 *) ac_try_echo
=$ac_try;;
2863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864 $as_echo "$ac_try_echo"; } >&5
2865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2867 if test -s conftest.err
; then
2869 ... rest of stderr output deleted ...
2870 10q' conftest.err
>conftest.er1
2871 cat conftest.er1
>&5
2872 rm -f conftest.er1 conftest.err
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; }
2878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2889 ac_clean_files_save
=$ac_clean_files
2890 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2891 # Try to create an executable without -o first, disregard a.out.
2892 # It will help us diagnose broken compilers, and finding out an intuition
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2895 $as_echo_n "checking for C compiler default output file name... " >&6; }
2896 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2898 # The possible output files:
2899 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2902 for ac_file
in $ac_files
2905 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2906 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2911 if { { ac_try
="$ac_link_default"
2913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917 $as_echo "$ac_try_echo"; } >&5
2918 (eval "$ac_link_default") 2>&5
2920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921 test $ac_status = 0; }; then :
2922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2923 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2924 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2925 # so that the user can short-circuit this test for compilers unknown to
2927 for ac_file in $ac_files ''
2929 test -f "$ac_file" || continue
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2934 # We found the default executable, but exeext='' is most
2938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 # We set ac_cv_exeext here because the later test for it is not
2943 # safe: cross compilers may not add the suffix if given an `-o'
2944 # argument, so we may need to know it at that point already.
2945 # Even if this section looks crufty: it has the advantage of
2952 test "$ac_cv_exeext" = no && ac_cv_exeext=
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2958 $as_echo "$ac_file" >&6; }
2959 if test -z "$ac_file"; then :
2960 $as_echo "$as_me: failed program was:" >&5
2961 sed 's
/^
/|
/' conftest.$ac_ext >&5
2963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2965 { as_fn_set_status 77
2966 as_fn_error "C compiler cannot create executables
2967 See \`config.log
' for more details." "$LINENO" 5; }; }
2969 ac_exeext=$ac_cv_exeext
2971 # Check that the compiler produces executables we can run. If not, either
2972 # the compiler is broken, or we cross compile.
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2974 $as_echo_n "checking whether the C compiler works... " >&6; }
2975 # If not cross compiling, check that we can run a simple program.
2976 if test "$cross_compiling" != yes; then
2977 if { ac_try='.
/$ac_file'
2978 { { case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_try") 2>&5
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; }; then
2990 if test "$cross_compiling" = maybe; then
2993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2995 as_fn_error "cannot run C compiled programs.
2996 If you meant to cross compile, use \`--host'.
2997 See \`config.log' for more details.
" "$LINENO" 5; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3002 $as_echo "yes" >&6; }
3004 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3005 ac_clean_files=$ac_clean_files_save
3006 # Check that the compiler produces executables we can run. If not, either
3007 # the compiler is broken, or we cross compile.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3009 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3011 $as_echo "$cross_compiling" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3014 $as_echo_n "checking
for suffix of executables...
" >&6; }
3015 if { { ac_try="$ac_link"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021 $as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_link") 2>&5
3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3025 test $ac_status = 0; }; then :
3026 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3027 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3028 # work properly (i.e., refer to `conftest.exe'), while it won't with
3030 for ac_file in conftest.exe conftest conftest.*; do
3031 test -f "$ac_file" || continue
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3034 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error "cannot compute suffix of executables: cannot compile and link
3043 See \`config.log' for more details.
" "$LINENO" 5; }
3045 rm -f conftest$ac_cv_exeext
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3047 $as_echo "$ac_cv_exeext" >&6; }
3049 rm -f conftest.$ac_ext
3050 EXEEXT=$ac_cv_exeext
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3053 $as_echo_n "checking
for suffix of object files...
" >&6; }
3054 if test "${ac_cv_objext+set}" = set; then :
3055 $as_echo_n "(cached
) " >&6
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3068 rm -f conftest.o conftest.obj
3069 if { { ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_compile") 2>&5
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 for ac_file in conftest.o conftest.obj conftest.*; do
3081 test -f "$ac_file" || continue;
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089 $as_echo "$as_me: failed program was
:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error "cannot compute suffix of object files: cannot compile
3095 See \`config.log' for more details.
" "$LINENO" 5; }
3097 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3100 $as_echo "$ac_cv_objext" >&6; }
3101 OBJEXT=$ac_cv_objext
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3104 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3105 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3106 $as_echo_n "(cached
) " >&6
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3122 if ac_fn_c_try_compile "$LINENO"; then :
3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3132 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3133 if test $ac_compiler_gnu = yes; then
3138 ac_test_CFLAGS=${CFLAGS+set}
3139 ac_save_CFLAGS=$CFLAGS
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3141 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3142 if test "${ac_cv_prog_cc_g+set}" = set; then :
3143 $as_echo_n "(cached
) " >&6
3145 ac_save_c_werror_flag=$ac_c_werror_flag
3146 ac_c_werror_flag=yes
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3160 if ac_fn_c_try_compile "$LINENO"; then :
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3175 if ac_fn_c_try_compile "$LINENO"; then :
3178 ac_c_werror_flag=$ac_save_c_werror_flag
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3191 if ac_fn_c_try_compile "$LINENO"; then :
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3202 $as_echo "$ac_cv_prog_cc_g" >&6; }
3203 if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3212 if test "$GCC" = yes; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3219 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3220 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3221 $as_echo_n "(cached
) " >&6
3223 ac_cv_prog_cc_c89=no
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3229 #include <sys/types.h>
3230 #include <sys/stat.h>
3231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232 struct buf { int x; };
3233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234 static char *e (p, i)
3240 static char *f (char * (*g) (char **, int), char **p, ...)
3245 s = g (p, va_arg (v,int));
3250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
3253 as 'x'. The following induces an error, until -std is added to get
3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
3256 that's true only with -std. */
3257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264 int test (int i, double x);
3265 struct s1 {int (*f) (int a);};
3266 struct s2 {int (*f) (double a);};
3267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 CC="$ac_save_CC $ac_arg"
3282 if ac_fn_c_try_compile "$LINENO"; then :
3283 ac_cv_prog_cc_c89=$ac_arg
3285 rm -f core conftest.err conftest.$ac_objext
3286 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3288 rm -f conftest.$ac_ext
3293 case "x
$ac_cv_prog_cc_c89" in
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3296 $as_echo "none needed
" >&6; } ;;
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3299 $as_echo "unsupported
" >&6; } ;;
3301 CC="$CC $ac_cv_prog_cc_c89"
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3303 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3305 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316 ac_cpp='$CXXCPP $CPPFLAGS'
3317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3320 if test -z "$CXX"; then
3321 if test -n "$CCC"; then
3324 if test -n "$ac_tool_prefix"; then
3325 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3330 $as_echo_n "checking
for $ac_word...
" >&6; }
3331 if test "${ac_cv_prog_CXX+set}" = set; then :
3332 $as_echo_n "(cached
) " >&6
3334 if test -n "$CXX"; then
3335 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3355 if test -n "$CXX"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3357 $as_echo "$CXX" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3360 $as_echo "no
" >&6; }
3364 test -n "$CXX" && break
3367 if test -z "$CXX"; then
3369 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3371 # Extract the first word of "$ac_prog", so it can be a program name with args.
3372 set dummy $ac_prog; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3374 $as_echo_n "checking
for $ac_word...
" >&6; }
3375 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3376 $as_echo_n "(cached
) " >&6
3378 if test -n "$ac_ct_CXX"; then
3379 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_ac_ct_CXX="$ac_prog"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3398 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3399 if test -n "$ac_ct_CXX"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3401 $as_echo "$ac_ct_CXX" >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3404 $as_echo "no
" >&6; }
3408 test -n "$ac_ct_CXX" && break
3411 if test "x
$ac_ct_CXX" = x; then
3414 case $cross_compiling:$ac_tool_warned in
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3417 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3418 ac_tool_warned=yes ;;
3426 # Provide some information about the compiler.
3427 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3430 for ac_option in --version -v -V -qversion; do
3431 { { ac_try="$ac_compiler $ac_option >&5"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3440 if test -s conftest.err; then
3442 ... rest of stderr output deleted ...
3443 10q' conftest.err >conftest.er1
3444 cat conftest.er1 >&5
3445 rm -f conftest.er1 conftest.err
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3448 test $ac_status = 0; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3452 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3453 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3454 $as_echo_n "(cached
) " >&6
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3470 if ac_fn_cxx_try_compile "$LINENO"; then :
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3480 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3481 if test $ac_compiler_gnu = yes; then
3486 ac_test_CXXFLAGS=${CXXFLAGS+set}
3487 ac_save_CXXFLAGS=$CXXFLAGS
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3489 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3490 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3491 $as_echo_n "(cached
) " >&6
3493 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3494 ac_cxx_werror_flag=yes
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3508 if ac_fn_cxx_try_compile "$LINENO"; then :
3509 ac_cv_prog_cxx_g=yes
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3523 if ac_fn_cxx_try_compile "$LINENO"; then :
3526 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3539 if ac_fn_cxx_try_compile "$LINENO"; then :
3540 ac_cv_prog_cxx_g=yes
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3550 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3551 if test "$ac_test_CXXFLAGS" = set; then
3552 CXXFLAGS=$ac_save_CXXFLAGS
3553 elif test $ac_cv_prog_cxx_g = yes; then
3554 if test "$GXX" = yes; then
3560 if test "$GXX" = yes; then
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3579 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3580 # On Suns, sometimes $CPP names a directory.
3581 if test -n "$CPP" && test -d "$CPP"; then
3584 if test -z "$CPP"; then
3585 if test "${ac_cv_prog_CPP+set}" = set; then :
3586 $as_echo_n "(cached
) " >&6
3588 # Double quotes because CPP needs to be expanded
3589 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3592 for ac_c_preproc_warn_flag in '' yes
3594 # Use a header file that comes with gcc, so configuring glibc
3595 # with a fresh cross-compiler works.
3596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597 # <limits.h> exists even on freestanding compilers.
3598 # On the NeXT, cc -E runs the code through the compiler's parser,
3599 # not just through cpp. "Syntax error
" is here to catch this case.
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3603 # include <limits.h>
3605 # include <assert.h>
3609 if ac_fn_c_try_cpp "$LINENO"; then :
3612 # Broken: fails on valid input.
3615 rm -f conftest.err conftest.$ac_ext
3617 # OK, works on sane cases. Now check whether nonexistent headers
3618 # can be detected and how.
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621 #include <ac_nonexistent.h>
3623 if ac_fn_c_try_cpp "$LINENO"; then :
3624 # Broken: success on invalid input.
3627 # Passes both tests.
3631 rm -f conftest.err conftest.$ac_ext
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then :
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3649 $as_echo "$CPP" >&6; }
3651 for ac_c_preproc_warn_flag in '' yes
3653 # Use a header file that comes with gcc, so configuring glibc
3654 # with a fresh cross-compiler works.
3655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3656 # <limits.h> exists even on freestanding compilers.
3657 # On the NeXT, cc -E runs the code through the compiler's parser,
3658 # not just through cpp. "Syntax error
" is here to catch this case.
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3662 # include <limits.h>
3664 # include <assert.h>
3668 if ac_fn_c_try_cpp "$LINENO"; then :
3671 # Broken: fails on valid input.
3674 rm -f conftest.err conftest.$ac_ext
3676 # OK, works on sane cases. Now check whether nonexistent headers
3677 # can be detected and how.
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680 #include <ac_nonexistent.h>
3682 if ac_fn_c_try_cpp "$LINENO"; then :
3683 # Broken: success on invalid input.
3686 # Passes both tests.
3690 rm -f conftest.err conftest.$ac_ext
3693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3694 rm -f conftest.err conftest.$ac_ext
3695 if $ac_preproc_ok; then :
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3701 See \`config.log' for more details.
" "$LINENO" 5; }
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3712 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3713 if test "${ac_cv_path_GREP+set}" = set; then :
3714 $as_echo_n "(cached
) " >&6
3716 if test -z "$GREP"; then
3717 ac_path_GREP_found=false
3718 # Loop through the user's path and test for each of PROGNAME-LIST
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3723 test -z "$as_dir" && as_dir=.
3724 for ac_prog in grep ggrep; do
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3727 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3728 # Check for GNU ac_path_GREP and select it if it is found.
3729 # Check for GNU $ac_path_GREP
3730 case `"$ac_path_GREP" --version 2>&1` in
3732 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3735 $as_echo_n 0123456789 >"conftest.
in"
3738 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3739 mv "conftest.tmp
" "conftest.
in"
3740 cp "conftest.
in" "conftest.
nl"
3741 $as_echo 'GREP' >> "conftest.
nl"
3742 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3743 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3744 as_fn_arith $ac_count + 1 && ac_count=$as_val
3745 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3746 # Best one so far, save it but keep looking for a better one
3747 ac_cv_path_GREP="$ac_path_GREP"
3748 ac_path_GREP_max=$ac_count
3750 # 10*(2^10) chars as input seems more than enough
3751 test $ac_count -gt 10 && break
3753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3756 $ac_path_GREP_found && break 3
3761 if test -z "$ac_cv_path_GREP"; then
3762 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3765 ac_cv_path_GREP=$GREP
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3770 $as_echo "$ac_cv_path_GREP" >&6; }
3771 GREP="$ac_cv_path_GREP"
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3775 $as_echo_n "checking
for egrep...
" >&6; }
3776 if test "${ac_cv_path_EGREP+set}" = set; then :
3777 $as_echo_n "(cached
) " >&6
3779 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3780 then ac_cv_path_EGREP="$GREP -E"
3782 if test -z "$EGREP"; then
3783 ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3801 $as_echo_n 0123456789 >"conftest.
in"
3804 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3805 mv "conftest.tmp
" "conftest.
in"
3806 cp "conftest.
in" "conftest.
nl"
3807 $as_echo 'EGREP' >> "conftest.
nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3809 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3810 as_fn_arith $ac_count + 1 && ac_count=$as_val
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822 $ac_path_EGREP_found && break 3
3827 if test -z "$ac_cv_path_EGREP"; then
3828 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3831 ac_cv_path_EGREP=$EGREP
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3837 $as_echo "$ac_cv_path_EGREP" >&6; }
3838 EGREP="$ac_cv_path_EGREP"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3842 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3843 if test "${ac_cv_header_stdc+set}" = set; then :
3844 $as_echo_n "(cached
) " >&6
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv_header_stdc=yes
3864 ac_cv_header_stdc=no
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 if test $ac_cv_header_stdc = yes; then
3869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3875 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3876 $EGREP "memchr
" >/dev/null 2>&1; then :
3879 ac_cv_header_stdc=no
3885 if test $ac_cv_header_stdc = yes; then
3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3892 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3893 $EGREP "free
" >/dev/null 2>&1; then :
3896 ac_cv_header_stdc=no
3902 if test $ac_cv_header_stdc = yes; then
3903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904 if test "$cross_compiling" = yes; then :
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3911 #if ((' ' & 0x0FF) == 0x020)
3912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3915 # define ISLOWER(c) \
3916 (('a' <= (c) && (c) <= 'i') \
3917 || ('j' <= (c) && (c) <= 'r') \
3918 || ('s' <= (c) && (c) <= 'z'))
3919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3927 for (i = 0; i < 256; i++)
3928 if (XOR (islower (i), ISLOWER (i))
3929 || toupper (i) != TOUPPER (i))
3934 if ac_fn_c_try_run "$LINENO"; then :
3937 ac_cv_header_stdc=no
3939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3940 conftest.$ac_objext conftest.beam conftest.$ac_ext
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3946 $as_echo "$ac_cv_header_stdc" >&6; }
3947 if test $ac_cv_header_stdc = yes; then
3949 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3953 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3954 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3955 inttypes.h stdint.h unistd.h
3957 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3958 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3960 eval as_val
=\$
$as_ac_Header
3961 if test "x$as_val" = x
""yes; then :
3962 cat >>confdefs.h
<<_ACEOF
3963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3972 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3973 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3980 if test "$MINIX" = yes; then
3982 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3985 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3988 $as_echo "#define _MINIX 1" >>confdefs.h
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3994 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3995 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4001 # define __EXTENSIONS__ 1
4002 $ac_includes_default
4011 if ac_fn_c_try_compile
"$LINENO"; then :
4012 ac_cv_safe_to_define___extensions__
=yes
4014 ac_cv_safe_to_define___extensions__
=no
4016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4019 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4020 test $ac_cv_safe_to_define___extensions__ = yes &&
4021 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4023 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4025 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4027 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4029 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4033 # Check whether --enable-largefile was given.
4034 if test "${enable_largefile+set}" = set; then :
4035 enableval
=$enable_largefile;
4038 if test "$enable_largefile" != no
; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4041 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4042 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4045 ac_cv_sys_largefile_CC
=no
4046 if test "$GCC" != yes; then
4049 # IRIX 6.2 and later do not support large files by default,
4050 # so use the C compiler's -n32 option if that helps.
4051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053 #include <sys/types.h>
4054 /* Check that off_t can represent 2**63 - 1 correctly.
4055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4056 since some C++ compilers masquerading as C compilers
4057 incorrectly reject 9223372036854775807. */
4058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4060 && LARGE_OFF_T % 2147483647 == 1)
4070 if ac_fn_c_try_compile
"$LINENO"; then :
4073 rm -f core conftest.err conftest.
$ac_objext
4075 if ac_fn_c_try_compile
"$LINENO"; then :
4076 ac_cv_sys_largefile_CC
=' -n32'; break
4078 rm -f core conftest.err conftest.
$ac_objext
4082 rm -f conftest.
$ac_ext
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4086 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4087 if test "$ac_cv_sys_largefile_CC" != no
; then
4088 CC
=$CC$ac_cv_sys_largefile_CC
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4092 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4093 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #include <sys/types.h>
4100 /* Check that off_t can represent 2**63 - 1 correctly.
4101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4102 since some C++ compilers masquerading as C compilers
4103 incorrectly reject 9223372036854775807. */
4104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4106 && LARGE_OFF_T % 2147483647 == 1)
4116 if ac_fn_c_try_compile
"$LINENO"; then :
4117 ac_cv_sys_file_offset_bits
=no
; break
4119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #define _FILE_OFFSET_BITS 64
4123 #include <sys/types.h>
4124 /* Check that off_t can represent 2**63 - 1 correctly.
4125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4126 since some C++ compilers masquerading as C compilers
4127 incorrectly reject 9223372036854775807. */
4128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4130 && LARGE_OFF_T % 2147483647 == 1)
4140 if ac_fn_c_try_compile
"$LINENO"; then :
4141 ac_cv_sys_file_offset_bits
=64; break
4143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4144 ac_cv_sys_file_offset_bits
=unknown
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4149 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4150 case $ac_cv_sys_file_offset_bits in #(
4153 cat >>confdefs.h
<<_ACEOF
4154 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4159 if test $ac_cv_sys_file_offset_bits = unknown
; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4161 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4162 if test "${ac_cv_sys_large_files+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <sys/types.h>
4169 /* Check that off_t can represent 2**63 - 1 correctly.
4170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4171 since some C++ compilers masquerading as C compilers
4172 incorrectly reject 9223372036854775807. */
4173 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4175 && LARGE_OFF_T % 2147483647 == 1)
4185 if ac_fn_c_try_compile
"$LINENO"; then :
4186 ac_cv_sys_large_files
=no
; break
4188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #define _LARGE_FILES 1
4192 #include <sys/types.h>
4193 /* Check that off_t can represent 2**63 - 1 correctly.
4194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4195 since some C++ compilers masquerading as C compilers
4196 incorrectly reject 9223372036854775807. */
4197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4199 && LARGE_OFF_T % 2147483647 == 1)
4209 if ac_fn_c_try_compile
"$LINENO"; then :
4210 ac_cv_sys_large_files
=1; break
4212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4213 ac_cv_sys_large_files
=unknown
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4218 $as_echo "$ac_cv_sys_large_files" >&6; }
4219 case $ac_cv_sys_large_files in #(
4222 cat >>confdefs.h
<<_ACEOF
4223 #define _LARGE_FILES $ac_cv_sys_large_files
4233 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4234 for ac_t
in install-sh
install.sh shtool
; do
4235 if test -f "$ac_dir/$ac_t"; then
4237 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4242 if test -z "$ac_aux_dir"; then
4243 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4246 # These three variables are undocumented and unsupported,
4247 # and are intended to be withdrawn in a future Autoconf release.
4248 # They can cause serious problems if a builder's source tree is in a directory
4249 # whose full name contains unusual characters.
4250 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4251 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4252 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4255 # Make sure we can run config.sub.
4256 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4257 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4260 $as_echo_n "checking build system type... " >&6; }
4261 if test "${ac_cv_build+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4264 ac_build_alias
=$build_alias
4265 test "x$ac_build_alias" = x
&&
4266 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4267 test "x$ac_build_alias" = x
&&
4268 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4269 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4270 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4274 $as_echo "$ac_cv_build" >&6; }
4275 case $ac_cv_build in
4277 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4280 ac_save_IFS
=$IFS; IFS
='-'
4286 # Remember, the first character of IFS is used to create $*,
4287 # except with old shells:
4290 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4294 $as_echo_n "checking host system type... " >&6; }
4295 if test "${ac_cv_host+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 if test "x$host_alias" = x
; then
4299 ac_cv_host
=$ac_cv_build
4301 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4302 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4307 $as_echo "$ac_cv_host" >&6; }
4310 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4313 ac_save_IFS
=$IFS; IFS
='-'
4319 # Remember, the first character of IFS is used to create $*,
4320 # except with old shells:
4323 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4327 $as_echo_n "checking target system type... " >&6; }
4328 if test "${ac_cv_target+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4331 if test "x$target_alias" = x
; then
4332 ac_cv_target
=$ac_cv_host
4334 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4335 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4340 $as_echo "$ac_cv_target" >&6; }
4341 case $ac_cv_target in
4343 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4345 target
=$ac_cv_target
4346 ac_save_IFS
=$IFS; IFS
='-'
4352 # Remember, the first character of IFS is used to create $*,
4353 # except with old shells:
4356 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4359 # The aliases save the names the user supplied, while $host etc.
4360 # will get canonicalized.
4361 test -n "$target_alias" &&
4362 test "$program_prefix$program_suffix$program_transform_name" = \
4364 program_prefix
=${target_alias}-
4367 # Find a good install program. We prefer a C program (faster),
4368 # so one script is as good as another. But avoid the broken or
4369 # incompatible versions:
4370 # SysV /etc/install, /usr/sbin/install
4371 # SunOS /usr/etc/install
4372 # IRIX /sbin/install
4374 # AmigaOS /C/install, which installs bootblocks on floppy discs
4375 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4376 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4377 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4378 # OS/2's system install, which has a completely different semantic
4379 # ./install, which can be erroneously created by make from ./install.sh.
4380 # Reject install programs that cannot install multiple files.
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4382 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4383 if test -z "$INSTALL"; then
4384 if test "${ac_cv_path_install+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir
=.
4392 # Account for people who put trailing slashes in PATH elements.
4393 case $as_dir/ in #((
4394 .
/ | .
// |
/[cC
]/* | \
4395 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4396 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4399 # OSF1 and SCO ODT 3.0 have their own names for install.
4400 # Don't use installbsd from OSF since it installs stuff as root
4402 for ac_prog
in ginstall scoinst
install; do
4403 for ac_exec_ext
in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4405 if test $ac_prog = install &&
4406 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4407 # AIX install. It has an incompatible calling convention.
4409 elif test $ac_prog = install &&
4410 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4411 # program-specific install script used by HP pwplus--don't use.
4414 rm -rf conftest.one conftest.two conftest.dir
4415 echo one
> conftest.one
4416 echo two
> conftest.two
4418 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4419 test -s conftest.one
&& test -s conftest.two
&&
4420 test -s conftest.dir
/conftest.one
&&
4421 test -s conftest.dir
/conftest.two
4423 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4436 rm -rf conftest.one conftest.two conftest.dir
4439 if test "${ac_cv_path_install+set}" = set; then
4440 INSTALL
=$ac_cv_path_install
4442 # As a last resort, use the slow shell script. Don't cache a
4443 # value for INSTALL within a source directory, because that will
4444 # break other packages using the cache if that directory is
4445 # removed, or if the value is a relative name.
4446 INSTALL
=$ac_install_sh
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4450 $as_echo "$INSTALL" >&6; }
4452 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4453 # It thinks the first close brace ends the variable substitution.
4454 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4456 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4458 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4460 if test -n "$ac_tool_prefix"; then
4461 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4462 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if test "${ac_cv_prog_AR+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4468 if test -n "$AR"; then
4469 ac_cv_prog_AR
="$AR" # Let the user override the test.
4471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir
=.
4476 for ac_exec_ext
in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 if test -n "$AR"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4491 $as_echo "$AR" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4499 if test -z "$ac_cv_prog_AR"; then
4501 # Extract the first word of "ar", so it can be a program name with args.
4502 set dummy
ar; ac_word
=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4508 if test -n "$ac_ct_AR"; then
4509 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir
=.
4516 for ac_exec_ext
in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_prog_ac_ct_AR
="ar"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4529 if test -n "$ac_ct_AR"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4531 $as_echo "$ac_ct_AR" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4537 if test "x$ac_ct_AR" = x
; then
4540 case $cross_compiling:$ac_tool_warned in
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544 ac_tool_warned
=yes ;;
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4554 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 if test -n "$RANLIB"; then
4561 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir
=.
4568 for ac_exec_ext
in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 RANLIB
=$ac_cv_prog_RANLIB
4581 if test -n "$RANLIB"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4583 $as_echo "$RANLIB" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$ac_cv_prog_RANLIB"; then
4592 ac_ct_RANLIB
=$RANLIB
4593 # Extract the first word of "ranlib", so it can be a program name with args.
4594 set dummy ranlib
; ac_word
=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$ac_ct_RANLIB"; then
4601 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir
=.
4608 for ac_exec_ext
in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4621 if test -n "$ac_ct_RANLIB"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4623 $as_echo "$ac_ct_RANLIB" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4629 if test "x$ac_ct_RANLIB" = x
; then
4632 case $cross_compiling:$ac_tool_warned in
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned
=yes ;;
4638 RANLIB
=$ac_ct_RANLIB
4641 RANLIB
="$ac_cv_prog_RANLIB"
4645 test "$program_prefix" != NONE
&&
4646 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4647 # Use a double $ so make ignores it.
4648 test "$program_suffix" != NONE
&&
4649 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4650 # Double any \ or $.
4651 # By default was `s,x,x', remove it if useless.
4652 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4653 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4657 $as_echo_n "checking for ANSI C header files... " >&6; }
4658 if test "${ac_cv_header_stdc+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4676 if ac_fn_c_try_compile
"$LINENO"; then :
4677 ac_cv_header_stdc
=yes
4679 ac_cv_header_stdc
=no
4681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4683 if test $ac_cv_header_stdc = yes; then
4684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4691 $EGREP "memchr" >/dev
/null
2>&1; then :
4694 ac_cv_header_stdc
=no
4700 if test $ac_cv_header_stdc = yes; then
4701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708 $EGREP "free" >/dev
/null
2>&1; then :
4711 ac_cv_header_stdc
=no
4717 if test $ac_cv_header_stdc = yes; then
4718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4719 if test "$cross_compiling" = yes; then :
4722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4726 #if ((' ' & 0x0FF) == 0x020)
4727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4730 # define ISLOWER(c) \
4731 (('a' <= (c) && (c) <= 'i') \
4732 || ('j' <= (c) && (c) <= 'r') \
4733 || ('s' <= (c) && (c) <= 'z'))
4734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4742 for (i = 0; i < 256; i++)
4743 if (XOR (islower (i), ISLOWER (i))
4744 || toupper (i) != TOUPPER (i))
4749 if ac_fn_c_try_run
"$LINENO"; then :
4752 ac_cv_header_stdc
=no
4754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4761 $as_echo "$ac_cv_header_stdc" >&6; }
4762 if test $ac_cv_header_stdc = yes; then
4764 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4769 # See if we are building with C++, and substitute COMPILER.
4771 # Check whether --enable-build-with-cxx was given.
4772 if test "${enable_build_with_cxx+set}" = set; then :
4773 enableval
=$enable_build_with_cxx; case $enableval in
4777 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4780 enable_build_with_cxx
=no
4784 if test "$enable_build_with_cxx" = "yes"; then
4785 # We're using -fpermissive as shortcut for now.
4786 COMPILER
='$(CXX) -fpermissive'
4793 # Set the 'development' global.
4794 .
$srcdir/..
/..
/bfd
/development.sh
4796 # Enable -lmcheck by default (it provides cheap-enough memory
4797 # mangling), but turn it off for releases.
4798 if $development; then
4799 libmcheck_default
=yes
4801 libmcheck_default
=no
4804 # Check whether --enable-libmcheck was given.
4805 if test "${enable_libmcheck+set}" = set; then :
4806 enableval
=$enable_libmcheck; case "${enableval}" in
4807 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
4808 no | n
) ENABLE_LIBMCHECK
="no" ;;
4809 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4814 if test -z "${ENABLE_LIBMCHECK}"; then
4815 ENABLE_LIBMCHECK
=${libmcheck_default}
4818 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4820 $as_echo_n "checking for main in -lmcheck... " >&6; }
4821 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4824 ac_check_lib_save_LIBS
=$LIBS
4825 LIBS
="-lmcheck $LIBS"
4826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4838 if ac_fn_c_try_link
"$LINENO"; then :
4839 ac_cv_lib_mcheck_main
=yes
4841 ac_cv_lib_mcheck_main
=no
4843 rm -f core conftest.err conftest.
$ac_objext \
4844 conftest
$ac_exeext conftest.
$ac_ext
4845 LIBS
=$ac_check_lib_save_LIBS
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4848 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4849 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
4850 cat >>confdefs.h
<<_ACEOF
4851 #define HAVE_LIBMCHECK 1
4854 LIBS
="-lmcheck $LIBS"
4861 case ${build_alias} in
4862 "") build_noncanonical
=${build} ;;
4863 *) build_noncanonical
=${build_alias} ;;
4866 case ${host_alias} in
4867 "") host_noncanonical
=${build_noncanonical} ;;
4868 *) host_noncanonical
=${host_alias} ;;
4871 case ${target_alias} in
4872 "") target_noncanonical
=${host_noncanonical} ;;
4873 *) target_noncanonical
=${target_alias} ;;
4881 # Dependency checking.
4882 rm -rf .tst
2>/dev
/null
4883 mkdir .tst
2>/dev
/null
4884 if test -d .tst
; then
4889 rmdir .tst
2>/dev
/null
4891 DEPDIR
="${am__leading_dot}deps"
4893 ac_config_commands
="$ac_config_commands depdir"
4896 depcc
="$CC" am_compiler_list
=
4898 am_depcomp
=$ac_aux_dir/depcomp
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4900 $as_echo_n "checking dependency style of $depcc... " >&6; }
4901 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4904 if test -f "$am_depcomp"; then
4905 # We make a subdir and do the tests there. Otherwise we can end up
4906 # making bogus files that we don't know about and never remove. For
4907 # instance it was reported that on HP-UX the gcc test will end up
4908 # making a dummy file named `D' -- because `-MD' means `put the output
4911 # Copy depcomp to subdir because otherwise we won't find it if we're
4912 # using a relative directory.
4913 cp "$am_depcomp" conftest.dir
4915 # We will build objects and dependencies in a subdirectory because
4916 # it helps to detect inapplicable dependency modes. For instance
4917 # both Tru64's cc and ICC support -MD to output dependencies as a
4918 # side effect of compilation, but ICC will put the dependencies in
4919 # the current directory while Tru64 will put them in the object
4923 am_cv_CC_dependencies_compiler_type
=none
4924 if test "$am_compiler_list" = ""; then
4925 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4927 for depmode
in $am_compiler_list; do
4928 if test $depmode = none
; then break; fi
4930 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4931 # Setup a source with many dependencies, because some compilers
4932 # like to wrap large dependency lists on column 80 (with \), and
4933 # we should not choose a depcomp mode which is confused by this.
4935 # We need to recreate these files for each test, as the compiler may
4936 # overwrite some of them when testing with obscure command lines.
4937 # This happens at least with the AIX C compiler.
4939 for i
in 1 2 3 4 5 6; do
4940 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4941 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4942 # Solaris 8's {/usr,}/bin/sh.
4943 touch sub
/conftst
$i.h
4945 echo "include sub/conftest.Po" > confmf
4947 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4948 # mode. It turns out that the SunPro C++ compiler does not properly
4949 # handle `-M -o', and we need to detect this.
4950 depcmd
="depmode=$depmode \
4951 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4954 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4955 if env
$depcmd > conftest.err
2>&1 &&
4956 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4957 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4958 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4959 # icc doesn't choke on unknown options, it will just issue warnings
4960 # or remarks (even with -Werror). So we grep stderr for any message
4961 # that says an option was ignored or not supported.
4962 # When given -MP, icc 7.0 and 7.1 complain thusly:
4963 # icc: Command line warning: ignoring option '-M'; no argument required
4964 # The diagnosis changed in icc 8.0:
4965 # icc: Command line remark: option '-MP' not supported
4966 if (grep 'ignoring option' conftest.err ||
4967 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4968 am_cv_CC_dependencies_compiler_type
=$depmode
4969 $as_echo "$as_me:$LINENO: success" >&5
4973 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4974 sed -e 's/^/| /' < conftest.err
>&5
4980 am_cv_CC_dependencies_compiler_type
=none
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4985 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4986 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4987 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4988 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4993 # Check for the 'make' the user wants to use.
4996 # Extract the first word of "$ac_prog", so it can be a program name with args.
4997 set dummy
$ac_prog; ac_word
=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if test "${ac_cv_prog_MAKE+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5003 if test -n "$MAKE"; then
5004 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir
=.
5011 for ac_exec_ext
in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_MAKE
="$ac_prog"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 MAKE
=$ac_cv_prog_MAKE
5024 if test -n "$MAKE"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5026 $as_echo "$MAKE" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5033 test -n "$MAKE" && break
5037 case "`$MAKE --version 2>&1 | sed 1q`" in
5042 if test "$MAKE_IS_GNU" = yes; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5051 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5053 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5054 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5055 $as_echo_n "(cached) " >&6
5057 cat >conftest.
make <<\_ACEOF
5060 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5062 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5063 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5065 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5067 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5071 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5073 $as_echo "yes" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 SET_MAKE
="MAKE=${MAKE-make}"
5082 gnulib_extra_configure_args
=
5083 # If large-file support is disabled, make sure gnulib does the same.
5084 if test "$enable_largefile" = no
; then
5085 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5088 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5089 # to find the the source subdir to be configured directly under
5090 # gdbserver/. We need to build gnulib under some other directory not
5091 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5092 # build it in the same directory, when building in the source dir.
5095 in_build
="build-gnulib-gdbserver"
5096 in_extra_args
="$gnulib_extra_configure_args"
5098 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5099 # so they do not pile up.
5100 ac_sub_configure_args
=
5102 eval "set x $ac_configure_args"
5106 if test -n "$ac_prev"; then
5111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5113 ac_prev
=cache_file
;;
5114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5118 --config-cache |
-C)
5120 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5122 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5124 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5126 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5128 --disable-option-checking)
5132 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5134 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5138 # Always prepend --prefix to ensure using the same prefix
5139 # in subdir configurations.
5140 ac_arg
="--prefix=$prefix"
5142 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5144 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5147 if test "$silent" = yes; then
5148 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5151 # Always prepend --disable-option-checking to silence warnings, since
5152 # different subdirs can have different --enable and --with options.
5153 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5158 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5160 $as_echo "$ac_msg" >&6
5161 as_dir
="$ac_dir"; as_fn_mkdir_p
5165 ac_srcdir
=$srcdir/$in_src ;;
5167 ac_srcdir
=..
/$srcdir/$in_src ;;
5172 ac_sub_configure
=$ac_srcdir/configure
5174 # Make the cache file name correct relative to the subdirectory.
5176 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5178 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5181 if test -n "$in_extra_args"; then
5182 # Add the extra args at the end.
5183 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
5187 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5188 # The eval makes quoting arguments work.
5189 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5190 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5191 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5197 in_src
="../../libiberty"
5198 in_build
="build-libiberty-gdbserver"
5201 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5202 # so they do not pile up.
5203 ac_sub_configure_args
=
5205 eval "set x $ac_configure_args"
5209 if test -n "$ac_prev"; then
5214 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5215 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5216 ac_prev
=cache_file
;;
5217 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5218 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5221 --config-cache |
-C)
5223 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5225 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5227 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5229 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5231 --disable-option-checking)
5235 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5237 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5241 # Always prepend --prefix to ensure using the same prefix
5242 # in subdir configurations.
5243 ac_arg
="--prefix=$prefix"
5245 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5247 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5250 if test "$silent" = yes; then
5251 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5254 # Always prepend --disable-option-checking to silence warnings, since
5255 # different subdirs can have different --enable and --with options.
5256 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5261 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5263 $as_echo "$ac_msg" >&6
5264 as_dir
="$ac_dir"; as_fn_mkdir_p
5268 ac_srcdir
=$srcdir/$in_src ;;
5270 ac_srcdir
=..
/$srcdir/$in_src ;;
5275 ac_sub_configure
=$ac_srcdir/configure
5277 # Make the cache file name correct relative to the subdirectory.
5279 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5281 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5284 if test -n "$in_extra_args"; then
5285 # Add the extra args at the end.
5286 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
5290 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5291 # The eval makes quoting arguments work.
5292 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5293 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5294 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5299 for ac_header
in sgtty.h termio.h termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h linux
/elf.h fcntl.h signal.h sys
/file.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h
5301 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5302 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5303 eval as_val
=\$
$as_ac_Header
5304 if test "x$as_val" = x
""yes; then :
5305 cat >>confdefs.h
<<_ACEOF
5306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5313 for ac_func
in getauxval pread pwrite pread64 setns
5315 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5316 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5317 eval as_val
=\$
$as_ac_var
5318 if test "x$as_val" = x
""yes; then :
5319 cat >>confdefs.h
<<_ACEOF
5320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5329 $as_echo_n "checking for ANSI C header files... " >&6; }
5330 if test "${ac_cv_header_stdc+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5348 if ac_fn_c_try_compile
"$LINENO"; then :
5349 ac_cv_header_stdc
=yes
5351 ac_cv_header_stdc
=no
5353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5355 if test $ac_cv_header_stdc = yes; then
5356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "memchr" >/dev
/null
2>&1; then :
5366 ac_cv_header_stdc
=no
5372 if test $ac_cv_header_stdc = yes; then
5373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380 $EGREP "free" >/dev
/null
2>&1; then :
5383 ac_cv_header_stdc
=no
5389 if test $ac_cv_header_stdc = yes; then
5390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5391 if test "$cross_compiling" = yes; then :
5394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5398 #if ((' ' & 0x0FF) == 0x020)
5399 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5400 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5402 # define ISLOWER(c) \
5403 (('a' <= (c) && (c) <= 'i') \
5404 || ('j' <= (c) && (c) <= 'r') \
5405 || ('s' <= (c) && (c) <= 'z'))
5406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5414 for (i = 0; i < 256; i++)
5415 if (XOR (islower (i), ISLOWER (i))
5416 || toupper (i) != TOUPPER (i))
5421 if ac_fn_c_try_run
"$LINENO"; then :
5424 ac_cv_header_stdc
=no
5426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5433 $as_echo "$ac_cv_header_stdc" >&6; }
5434 if test $ac_cv_header_stdc = yes; then
5436 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5440 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5441 # for constant arguments. Useless!
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5443 $as_echo_n "checking for working alloca.h... " >&6; }
5444 if test "${ac_cv_working_alloca_h+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5453 char *p = (char *) alloca (2 * sizeof (int));
5459 if ac_fn_c_try_link
"$LINENO"; then :
5460 ac_cv_working_alloca_h
=yes
5462 ac_cv_working_alloca_h
=no
5464 rm -f core conftest.err conftest.
$ac_objext \
5465 conftest
$ac_exeext conftest.
$ac_ext
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5468 $as_echo "$ac_cv_working_alloca_h" >&6; }
5469 if test $ac_cv_working_alloca_h = yes; then
5471 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5476 $as_echo_n "checking for alloca... " >&6; }
5477 if test "${ac_cv_func_alloca_works+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5483 # define alloca __builtin_alloca
5486 # include <malloc.h>
5487 # define alloca _alloca
5489 # ifdef HAVE_ALLOCA_H
5490 # include <alloca.h>
5495 # ifndef alloca /* predefined by HP cc +Olibcalls */
5506 char *p = (char *) alloca (1);
5512 if ac_fn_c_try_link
"$LINENO"; then :
5513 ac_cv_func_alloca_works
=yes
5515 ac_cv_func_alloca_works
=no
5517 rm -f core conftest.err conftest.
$ac_objext \
5518 conftest
$ac_exeext conftest.
$ac_ext
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5521 $as_echo "$ac_cv_func_alloca_works" >&6; }
5523 if test $ac_cv_func_alloca_works = yes; then
5525 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5528 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5529 # that cause trouble. Some versions do not even contain alloca or
5530 # contain a buggy version. If you still want to use their alloca,
5531 # use ar to extract alloca.o from them instead of compiling alloca.c.
5533 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5535 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5539 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5540 if test "${ac_cv_os_cray+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #if defined CRAY && ! defined CRAY2
5552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553 $EGREP "webecray" >/dev
/null
2>&1; then :
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5562 $as_echo "$ac_cv_os_cray" >&6; }
5563 if test $ac_cv_os_cray = yes; then
5564 for ac_func
in _getb67 GETB67 getb67
; do
5565 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5566 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5567 eval as_val
=\$
$as_ac_var
5568 if test "x$as_val" = x
""yes; then :
5570 cat >>confdefs.h
<<_ACEOF
5571 #define CRAY_STACKSEG_END $ac_func
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5581 $as_echo_n "checking stack direction for C alloca... " >&6; }
5582 if test "${ac_cv_c_stack_direction+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5585 if test "$cross_compiling" = yes; then :
5586 ac_cv_c_stack_direction
=0
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 $ac_includes_default
5592 find_stack_direction ()
5594 static char *addr = 0;
5599 return find_stack_direction ();
5602 return (&dummy > addr) ? 1 : -1;
5608 return find_stack_direction () < 0;
5611 if ac_fn_c_try_run
"$LINENO"; then :
5612 ac_cv_c_stack_direction
=1
5614 ac_cv_c_stack_direction
=-1
5616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5622 $as_echo "$ac_cv_c_stack_direction" >&6; }
5623 cat >>confdefs.h
<<_ACEOF
5624 #define STACK_DIRECTION $ac_cv_c_stack_direction
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5633 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5634 if test "${am_cv_langinfo_codeset+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #include <langinfo.h>
5643 char* cs = nl_langinfo(CODESET);
5648 if ac_fn_c_try_link
"$LINENO"; then :
5649 am_cv_langinfo_codeset
=yes
5651 am_cv_langinfo_codeset
=no
5653 rm -f core conftest.err conftest.
$ac_objext \
5654 conftest
$ac_exeext conftest.
$ac_ext
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5658 $as_echo "$am_cv_langinfo_codeset" >&6; }
5659 if test $am_cv_langinfo_codeset = yes; then
5661 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5666 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/syscall.h sys
/un.h sys
/wait.h thread_db.h
wait.h
5668 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5669 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5670 eval as_val
=\$
$as_ac_Header
5671 if test "x$as_val" = x
""yes; then :
5672 cat >>confdefs.h
<<_ACEOF
5673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5681 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
5683 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5684 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5685 eval as_val
=\$
$as_ac_var
5686 if test "x$as_val" = x
""yes; then :
5687 cat >>confdefs.h
<<_ACEOF
5688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5695 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5696 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
5702 cat >>confdefs.h
<<_ACEOF
5703 #define HAVE_DECL_STRERROR $ac_have_decl
5705 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5706 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
5712 cat >>confdefs.h
<<_ACEOF
5713 #define HAVE_DECL_STRSTR $ac_have_decl
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5718 $as_echo_n "checking for sigsetjmp... " >&6; }
5719 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5730 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
5735 if ac_fn_c_try_compile
"$LINENO"; then :
5736 gdb_cv_func_sigsetjmp
=yes
5738 gdb_cv_func_sigsetjmp
=no
5740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
5743 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
5744 if test $gdb_cv_func_sigsetjmp = yes; then
5746 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
5756 # Check whether --with-ust was given.
5757 if test "${with_ust+set}" = set; then :
5762 # Check whether --with-ust_include was given.
5763 if test "${with_ust_include+set}" = set; then :
5764 withval
=$with_ust_include;
5768 # Check whether --with-ust_lib was given.
5769 if test "${with_ust_lib+set}" = set; then :
5770 withval
=$with_ust_lib;
5784 ustlibs
="-L$with_ust/lib -lust"
5785 ustinc
="-I$with_ust/include "
5788 if test "x$with_ust_include" != x
; then
5789 ustinc
="-I$with_ust_include "
5791 if test "x$with_ust_lib" != x
; then
5792 ustlibs
="-L$with_ust_lib -lust"
5795 if test "x$with_ust" != "xno"; then
5796 saved_CFLAGS
="$CFLAGS"
5797 CFLAGS
="$CFLAGS $ustinc"
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
5799 $as_echo_n "checking for ust... " >&6; }
5800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5803 #define CONFIG_UST_GDB_INTEGRATION
5804 #include <ust/ust.h>
5814 if ac_fn_c_try_compile
"$LINENO"; then :
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5816 $as_echo "yes" >&6; };
5817 $as_echo "#define HAVE_UST 1" >>confdefs.h
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
5823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5824 CFLAGS
="$saved_CFLAGS"
5827 # Flags needed for UST
5831 # Check whether --enable-werror was given.
5832 if test "${enable_werror+set}" = set; then :
5833 enableval
=$enable_werror; case "${enableval}" in
5834 yes | y
) ERROR_ON_WARNING
="yes" ;;
5835 no | n
) ERROR_ON_WARNING
="no" ;;
5836 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
5841 # Enable -Werror by default when using gcc in C mode. Leave it off
5842 # for C++ until we're warning clean. Turn it off for releases.
5843 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
5844 && test x
"$enable_build_with_cxx" != x
"yes" \
5845 && $development; then
5846 ERROR_ON_WARNING
=yes
5850 if test "${ERROR_ON_WARNING}" = yes ; then
5851 WERROR_CFLAGS
="-Werror"
5854 build_warnings
="-Wall -Wpointer-arith \
5855 -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
5857 # Now add in C and C++ specific options, depending on mode.
5858 if test "$enable_build_with_cxx" = "yes"; then
5859 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
5862 build_warnings
="$build_warnings -Wdeclaration-after-statement"
5865 # The set of warnings supported by a C++ compiler is not the same as
5866 # of the C compiler.
5867 if test "$enable_build_with_cxx" = "yes"; then
5869 ac_cpp
='$CXXCPP $CPPFLAGS'
5870 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5877 if test "x$GCC" = xyes
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5880 $as_echo_n "checking compiler warning flags... " >&6; }
5881 # Separate out the -Werror flag as some files just cannot be
5882 # compiled with it enabled.
5883 for w
in ${build_warnings}; do
5885 -Werr*) WERROR_CFLAGS
=-Werror ;;
5887 # Check whether GCC accepts it.
5888 saved_CFLAGS
="$CFLAGS"
5890 saved_CXXFLAGS
="$CXXFLAGS"
5891 CXXFLAGS
="$CXXFLAGS $w"
5893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5904 if ac_fn_cxx_try_compile
"$LINENO"; then :
5905 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5908 CFLAGS
="$saved_CFLAGS"
5909 CXXFLAGS
="$saved_CXXFLAGS"
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5913 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5918 if test "$enable_build_with_cxx" = "yes"; then
5920 ac_cpp='$CPP $CPPFLAGS'
5921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929 for ac_func in dladdr
5931 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
5932 if test "x
$ac_cv_func_dladdr" = x""yes; then :
5933 cat >>confdefs.h <<_ACEOF
5934 #define HAVE_DLADDR 1
5943 # Check for presence and size of long long.
5944 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
5945 if test "x
$ac_cv_type_long_long" = x""yes; then :
5947 cat >>confdefs.h <<_ACEOF
5948 #define HAVE_LONG_LONG 1
5951 # The cast to long int works around a bug in the HP C Compiler
5952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5954 # This bug is HP SR number 8606223364.
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
5956 $as_echo_n "checking size of long long...
" >&6; }
5957 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5958 $as_echo_n "(cached
) " >&6
5960 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
5963 if test "$ac_cv_type_long_long" = yes; then
5964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
5965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5966 { as_fn_set_status 77
5967 as_fn_error "cannot compute sizeof (long long)
5968 See \`config.log' for more details.
" "$LINENO" 5; }; }
5970 ac_cv_sizeof_long_long=0
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
5976 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5980 cat >>confdefs.h <<_ACEOF
5981 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5988 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "ac_cv_have_decl_basename_char_p_
" "$ac_includes_default"
5989 if test "x
$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5995 cat >>confdefs.h <<_ACEOF
5996 #define HAVE_DECL_BASENAME $ac_have_decl
5998 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
5999 if test "x
$ac_cv_have_decl_ffs" = x""yes; then :
6005 cat >>confdefs.h <<_ACEOF
6006 #define HAVE_DECL_FFS $ac_have_decl
6008 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
6009 if test "x
$ac_cv_have_decl_asprintf" = x""yes; then :
6015 cat >>confdefs.h <<_ACEOF
6016 #define HAVE_DECL_ASPRINTF $ac_have_decl
6018 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6019 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6025 cat >>confdefs.h <<_ACEOF
6026 #define HAVE_DECL_VASPRINTF $ac_have_decl
6028 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
6029 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then :
6035 cat >>confdefs.h <<_ACEOF
6036 #define HAVE_DECL_SNPRINTF $ac_have_decl
6038 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6039 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6045 cat >>confdefs.h <<_ACEOF
6046 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6049 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
6050 if test "x
$ac_cv_have_decl_strtol" = x""yes; then :
6056 cat >>confdefs.h <<_ACEOF
6057 #define HAVE_DECL_STRTOL $ac_have_decl
6059 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
6060 if test "x
$ac_cv_have_decl_strtoul" = x""yes; then :
6066 cat >>confdefs.h <<_ACEOF
6067 #define HAVE_DECL_STRTOUL $ac_have_decl
6069 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
6070 if test "x
$ac_cv_have_decl_strtoll" = x""yes; then :
6076 cat >>confdefs.h <<_ACEOF
6077 #define HAVE_DECL_STRTOLL $ac_have_decl
6079 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
6080 if test "x
$ac_cv_have_decl_strtoull" = x""yes; then :
6086 cat >>confdefs.h <<_ACEOF
6087 #define HAVE_DECL_STRTOULL $ac_have_decl
6090 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
6091 if test "x
$ac_cv_have_decl_strverscmp" = x""yes; then :
6097 cat >>confdefs.h <<_ACEOF
6098 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6103 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
6104 if test "x
$ac_cv_have_decl_strerror" = x""yes; then :
6110 cat >>confdefs.h <<_ACEOF
6111 #define HAVE_DECL_STRERROR $ac_have_decl
6113 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
6114 if test "x
$ac_cv_have_decl_perror" = x""yes; then :
6120 cat >>confdefs.h <<_ACEOF
6121 #define HAVE_DECL_PERROR $ac_have_decl
6123 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6124 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6130 cat >>confdefs.h <<_ACEOF
6131 #define HAVE_DECL_VASPRINTF $ac_have_decl
6133 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6134 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6140 cat >>confdefs.h <<_ACEOF
6141 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6145 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
6146 if test "x
$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6148 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6154 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
6155 if test "x
$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6165 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
6166 #include <sys/socket.h>
6169 if test "x
$ac_cv_type_socklen_t" = x""yes; then :
6171 cat >>confdefs.h <<_ACEOF
6172 #define HAVE_SOCKLEN_T 1
6179 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
6182 if test "x
$ac_cv_type_Elf32_auxv_t" = x""yes; then :
6184 cat >>confdefs.h <<_ACEOF
6185 #define HAVE_ELF32_AUXV_T 1
6190 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
6193 if test "x
$ac_cv_type_Elf64_auxv_t" = x""yes; then :
6195 cat >>confdefs.h <<_ACEOF
6196 #define HAVE_ELF64_AUXV_T 1
6205 # Check whether --with-pkgversion was given.
6206 if test "${with_pkgversion+set}" = set; then :
6207 withval=$with_pkgversion; case "$withval" in
6208 yes) as_fn_error "package version not specified
" "$LINENO" 5 ;;
6210 *) PKGVERSION="($withval) " ;;
6221 # Check whether --with-bugurl was given.
6222 if test "${with_bugurl+set}" = set; then :
6223 withval=$with_bugurl; case "$withval" in
6224 yes) as_fn_error "bug URL not specified
" "$LINENO" 5 ;;
6227 *) BUGURL="$withval"
6231 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
6241 REPORT_BUGS_TO="<$BUGURL>"
6242 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6249 cat >>confdefs.h <<_ACEOF
6250 #define PKGVERSION "$PKGVERSION"
6254 cat >>confdefs.h <<_ACEOF
6255 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6259 # Check for various supplementary target information (beyond the
6260 # triplet) which might affect the choices in configure.srv.
6262 i[34567]86-*-linux*)
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
6264 $as_echo_n "checking
if building
for x86-64...
" >&6; }
6265 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
6266 $as_echo_n "(cached
) " >&6
6268 save_CPPFLAGS="$CPPFLAGS"
6269 CPPFLAGS="$CPPFLAGS $CFLAGS"
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6278 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6279 $EGREP "got it
" >/dev/null 2>&1; then :
6280 gdb_cv_i386_is_x86_64=yes
6282 gdb_cv_i386_is_x86_64=no
6286 CPPFLAGS="$save_CPPFLAGS"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
6289 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
6293 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
6294 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
6295 $as_echo_n "(cached
) " >&6
6297 save_CPPFLAGS="$CPPFLAGS"
6298 CPPFLAGS="$CPPFLAGS $CFLAGS"
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6302 #ifdef __mcoldfire__
6307 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6308 $EGREP "got it
" >/dev/null 2>&1; then :
6309 gdb_cv_m68k_is_coldfire=yes
6311 gdb_cv_m68k_is_coldfire=no
6315 CPPFLAGS="$save_CPPFLAGS"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
6318 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
6322 . ${srcdir}/configure.srv
6324 # Add in the common host objects.
6325 . ${srcdir}/../common/common.host
6326 srv_host_obs="$common_host_obs"
6328 if test "${srv_mingwce}" = "yes"; then
6330 elif test "${srv_mingw}" = "yes"; then
6331 LIBS="$LIBS -lws2_32"
6332 elif test "${srv_qnx}" = "yes"; then
6333 LIBS="$LIBS -lsocket"
6334 elif test "${srv_lynxos}" = "yes"; then
6335 LIBS="$LIBS -lnetinet"
6338 if test "${srv_mingw}" = "yes"; then
6340 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6344 if test "${srv_linux_usrregs}" = "yes"; then
6346 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
6350 if test "${srv_linux_regsets}" = "yes"; then
6352 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
6356 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
6357 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 #include <sys/ptrace.h>
6371 if ac_fn_c_try_compile
"$LINENO"; then :
6372 gdbsrv_cv_have_ptrace_getregs
=yes
6374 gdbsrv_cv_have_ptrace_getregs
=no
6376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
6380 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
6381 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
6383 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
6388 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
6389 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 #include <sys/ptrace.h>
6403 if ac_fn_c_try_compile
"$LINENO"; then :
6404 gdbsrv_cv_have_ptrace_getfpxregs
=yes
6406 gdbsrv_cv_have_ptrace_getfpxregs
=no
6408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
6412 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
6413 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
6415 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
6420 if test "${srv_linux_btrace}" = "yes"; then
6422 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
6426 if test "$ac_cv_header_sys_procfs_h" = yes; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
6428 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
6429 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6436 /* Needed for new procfs interface on sparc-solaris. */
6437 #define _STRUCTURED_PROC 1
6438 #include <sys/procfs.h>
6447 if ac_fn_c_try_compile
"$LINENO"; then :
6448 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
6450 bfd_cv_have_sys_procfs_type_lwpid_t
=no
6453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6456 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
6458 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
6462 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
6465 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
6466 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
6467 $as_echo_n "(cached) " >&6
6469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6473 /* Needed for new procfs interface on sparc-solaris. */
6474 #define _STRUCTURED_PROC 1
6475 #include <sys/procfs.h>
6484 if ac_fn_c_try_compile
"$LINENO"; then :
6485 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
6487 bfd_cv_have_sys_procfs_type_psaddr_t
=no
6490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6493 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
6495 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
6499 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
6502 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
6503 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6510 /* Needed for new procfs interface on sparc-solaris. */
6511 #define _STRUCTURED_PROC 1
6512 #include <sys/procfs.h>
6521 if ac_fn_c_try_compile
"$LINENO"; then :
6522 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
6524 bfd_cv_have_sys_procfs_type_prgregset_t
=no
6527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6530 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
6532 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
6536 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
6539 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
6540 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6547 /* Needed for new procfs interface on sparc-solaris. */
6548 #define _STRUCTURED_PROC 1
6549 #include <sys/procfs.h>
6558 if ac_fn_c_try_compile
"$LINENO"; then :
6559 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
6561 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
6564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6567 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
6569 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
6573 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
6576 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
6577 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6584 /* Needed for new procfs interface on sparc-solaris. */
6585 #define _STRUCTURED_PROC 1
6586 #include <sys/procfs.h>
6595 if ac_fn_c_try_compile
"$LINENO"; then :
6596 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
6598 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
6601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6604 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
6606 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
6610 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
6614 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
6616 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
6617 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6623 #include <thread_db.h>
6632 if ac_fn_c_try_compile
"$LINENO"; then :
6633 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
6635 gdbserver_cv_have_thread_db_type_lwpid_t
=no
6638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6641 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
6643 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
6647 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
6651 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
6653 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
6654 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
6657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6660 #include <thread_db.h>
6669 if ac_fn_c_try_compile
"$LINENO"; then :
6670 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
6672 gdbserver_cv_have_thread_db_type_psaddr_t
=no
6675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6678 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
6680 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
6684 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6690 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6691 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6694 ac_check_lib_save_LIBS
=$LIBS
6696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6699 /* Override any GCC internal prototype to avoid an error.
6700 Use char because int might match the return type of a GCC
6701 builtin and then its argument prototype would still apply. */
6714 if ac_fn_c_try_link
"$LINENO"; then :
6715 ac_cv_lib_dl_dlopen
=yes
6717 ac_cv_lib_dl_dlopen
=no
6719 rm -f core conftest.err conftest.
$ac_objext \
6720 conftest
$ac_exeext conftest.
$ac_ext
6721 LIBS
=$ac_check_lib_save_LIBS
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6724 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6725 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
6726 cat >>confdefs.h
<<_ACEOF
6727 #define HAVE_LIBDL 1
6736 srv_thread_depfiles
=
6739 if test "$srv_linux_thread_db" = "yes"; then
6740 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
6743 $as_echo_n "checking for the dynamic export flag... " >&6; }
6744 old_LDFLAGS
="$LDFLAGS"
6745 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
6747 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
6748 LDFLAGS
="$LDFLAGS $RDYNAMIC"
6749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6760 if ac_fn_c_try_link
"$LINENO"; then :
6761 found
="-Wl,--dynamic-list"
6762 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
6764 RDYNAMIC
="-rdynamic"
6765 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
6766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6777 if ac_fn_c_try_link
"$LINENO"; then :
6783 rm -f core conftest.err conftest.
$ac_objext \
6784 conftest
$ac_exeext conftest.
$ac_ext
6786 rm -f core conftest.err conftest.
$ac_objext \
6787 conftest
$ac_exeext conftest.
$ac_ext
6789 LDFLAGS
="$old_LDFLAGS"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
6791 $as_echo "$found" >&6; }
6793 srv_libs
="-lthread_db"
6796 srv_thread_depfiles
="thread-db.o proc-service.o"
6798 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
6801 $as_echo_n "checking for TD_VERSION... " >&6; }
6802 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 #include <thread_db.h>
6816 if ac_fn_c_try_compile
"$LINENO"; then :
6817 gdbsrv_cv_have_td_version
=yes
6819 gdbsrv_cv_have_td_version
=no
6821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
6824 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
6825 if test $gdbsrv_cv_have_td_version = yes; then
6827 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
6833 # Check whether --with-libthread-db was given.
6834 if test "${with_libthread_db+set}" = set; then :
6835 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
6836 srv_libs
="$srv_libthread_db_path"
6841 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
6843 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
6847 if test "$srv_xmlfiles" != ""; then
6848 srv_xmlbuiltin
="xml-builtin.o"
6850 $as_echo "#define USE_XML 1" >>confdefs.h
6853 tmp_xmlfiles
=$srv_xmlfiles
6855 for f
in $tmp_xmlfiles; do
6856 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
6860 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
6861 GDBSERVER_LIBS
="$srv_libs"
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
6864 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
6865 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6875 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
6880 if ac_fn_c_try_link
"$LINENO"; then :
6881 gdbsrv_cv_have_sync_builtins
=yes
6883 gdbsrv_cv_have_sync_builtins
=no
6885 rm -f core conftest.err conftest.
$ac_objext \
6886 conftest
$ac_exeext conftest.
$ac_ext
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
6889 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
6890 if test $gdbsrv_cv_have_sync_builtins = yes; then
6892 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
6896 saved_cflags
="$CFLAGS"
6897 CFLAGS
="$CFLAGS -fvisibility=hidden"
6898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6909 if ac_fn_c_try_compile
"$LINENO"; then :
6910 gdbsrv_cv_have_visibility_hidden
=yes
6912 gdbsrv_cv_have_visibility_hidden
=no
6914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6915 CFLAGS
="$saved_cflags"
6917 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
6919 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
6925 cat >>confdefs.h
<<_ACEOF
6926 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
6930 if test "$cross_compiling" = yes; then :
6931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 #include <sys/personality.h>
6938 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
6939 # define ADDR_NO_RANDOMIZE 0x0040000
6941 /* Test the flag could be set and stays set. */
6942 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
6943 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
6949 if ac_fn_c_try_link
"$LINENO"; then :
6950 gdbsrv_cv_have_personality
=true
6952 gdbsrv_cv_have_personality
=false
6954 rm -f core conftest.err conftest.
$ac_objext \
6955 conftest
$ac_exeext conftest.
$ac_ext
6957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6959 #include <sys/personality.h>
6964 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
6965 # define ADDR_NO_RANDOMIZE 0x0040000
6967 /* Test the flag could be set and stays set. */
6968 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
6969 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
6975 if ac_fn_c_try_run
"$LINENO"; then :
6976 gdbsrv_cv_have_personality
=true
6978 gdbsrv_cv_have_personality
=false
6980 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6981 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6984 if $gdbsrv_cv_have_personality
6987 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
6995 # check whether to enable the inprocess agent
6996 if test "$ipa_obj" != "" \
6997 -a "$gdbsrv_cv_have_sync_builtins" = yes \
6998 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
7004 # Check whether --enable-inprocess-agent was given.
7005 if test "${enable_inprocess_agent+set}" = set; then :
7006 enableval
=$enable_inprocess_agent; case "$enableval" in
7007 yes) want_ipa
=true
;;
7008 no
) want_ipa
=false
;;
7009 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
7018 IPA_DEPFILES
="$ipa_obj"
7019 extra_libraries
="$extra_libraries libinproctrace.so"
7021 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
7032 GNULIB
=build-gnulib-gdbserver
/import
7035 if test x
"$STDINT_H" != x
; then
7036 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
7040 ac_config_files
="$ac_config_files Makefile"
7042 ac_config_commands
="$ac_config_commands default"
7044 cat >confcache
<<\_ACEOF
7045 # This file is a shell script that caches the results of configure
7046 # tests run on this system so they can be shared between configure
7047 # scripts and configure runs, see configure's option --config-cache.
7048 # It is not useful on other systems. If it contains results you don't
7049 # want to keep, you may remove or edit it.
7051 # config.status only pays attention to the cache file if you give it
7052 # the --recheck option to rerun configure.
7054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7060 # The following way of writing the cache mishandles newlines in values,
7061 # but we know of no workaround that is simple, portable, and efficient.
7062 # So, we kill variables containing newlines.
7063 # Ultrix sh set writes to stderr and can't be redirected directly,
7064 # and sets the high bit in the cache file unless we assign to the vars.
7066 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7067 eval ac_val
=\$
$ac_var
7071 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7072 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7075 _ | IFS | as_nl
) ;; #(
7076 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7077 *) { eval $ac_var=; unset $ac_var;} ;;
7083 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7084 *${as_nl}ac_space
=\
*)
7085 # `set' does not quote correctly, so add quotes: double-quote
7086 # substitution turns \\\\ into \\, and sed turns \\ into \.
7089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7092 # `set' quotes correctly as required by POSIX, so do not add quotes.
7093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7104 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7106 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7107 if test -w "$cache_file"; then
7108 test "x$cache_file" != "x/dev/null" &&
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7110 $as_echo "$as_me: updating cache $cache_file" >&6;}
7111 cat confcache
>$cache_file
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7114 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7119 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7120 # Let make expand exec_prefix.
7121 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7123 DEFS
=-DHAVE_CONFIG_H
7127 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7128 # 1. Remove the extension, and $U if already installed.
7129 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7130 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7132 # will be set to the directory where LIBOBJS objects are built.
7133 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7134 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7138 LTLIBOBJS
=$ac_ltlibobjs
7141 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7142 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
7143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7145 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
7146 as_fn_error
"conditional \"GMAKE\" was never defined.
7147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7150 : ${CONFIG_STATUS=./config.status}
7152 ac_clean_files_save
=$ac_clean_files
7153 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7155 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7157 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7159 # Generated by $as_me.
7160 # Run this file to recreate the current configuration.
7161 # Compiler output produced by configure, useful for debugging
7162 # configure, is in config.log if it exists.
7168 SHELL=\${CONFIG_SHELL-$SHELL}
7171 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7172 ## -------------------- ##
7173 ## M4sh Initialization. ##
7174 ## -------------------- ##
7176 # Be more Bourne compatible
7177 DUALCASE
=1; export DUALCASE
# for MKS sh
7178 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7181 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7182 # is contrary to our usage. Disable this feature.
7183 alias -g '${1+"$@"}'='"$@"'
7184 setopt NO_GLOB_SUBST
7186 case `(set -o) 2>/dev/null` in #(
7198 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7199 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7202 # Prefer a ksh shell builtin over an external printf program on Solaris,
7203 # but without wasting forks for bash or zsh.
7204 if test -z "$BASH_VERSION$ZSH_VERSION" \
7205 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7206 as_echo='print
-r --'
7207 as_echo_n='print
-rn --'
7208 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7209 as_echo='printf %s
\n'
7210 as_echo_n='printf %s
'
7212 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7213 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7214 as_echo_n='/usr
/ucb
/echo -n'
7216 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7217 as_echo_n_body='eval
7221 expr "X$arg" : "X\\(.*\\)$as_nl";
7222 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7224 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7226 export as_echo_n_body
7227 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7230 as_echo='sh
-c $as_echo_body as_echo
'
7233 # The user is always right.
7234 if test "${PATH_SEPARATOR+set}" != set; then
7236 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7237 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7244 # We need space, tab and new line, in precisely that order. Quoting is
7245 # there to prevent editors from complaining about space-tab.
7246 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7247 # splitting by setting IFS to empty value.)
7250 # Find who we are. Look in the path if we contain no directory separator.
7252 *[\\/]* ) as_myself=$0 ;;
7253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7264 # We did not find ourselves, most probably we were run as `sh COMMAND'
7265 # in which case we are not to be found in the path.
7266 if test "x$as_myself" = x
; then
7269 if test ! -f "$as_myself"; then
7270 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7274 # Unset variables that we do not need and which cause bugs (e.g. in
7275 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7276 # suppresses any "Segmentation fault" message there. '((' could
7277 # trigger a bug in pdksh 5.2.14.
7278 for as_var
in BASH_ENV ENV MAIL MAILPATH
7279 do eval test x\
${$as_var+set} = xset \
7280 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7293 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7296 # as_fn_error ERROR [LINENO LOG_FD]
7297 # ---------------------------------
7298 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7299 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7300 # script with status $?, using 1 if that was 0.
7303 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7305 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7306 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7308 $as_echo "$as_me: error: $1" >&2
7309 as_fn_exit
$as_status
7313 # as_fn_set_status STATUS
7314 # -----------------------
7315 # Set $? to STATUS, without forking.
7319 } # as_fn_set_status
7323 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7333 # Portably unset VAR.
7336 { eval $1=; unset $1;}
7338 as_unset
=as_fn_unset
7339 # as_fn_append VAR VALUE
7340 # ----------------------
7341 # Append the text in VALUE to the end of the definition contained in VAR. Take
7342 # advantage of any shell optimizations that allow amortized linear growth over
7343 # repeated appends, instead of the typical quadratic growth present in naive
7345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7346 eval 'as_fn_append ()
7357 # as_fn_arith ARG...
7358 # ------------------
7359 # Perform arithmetic evaluation on the ARGs, and store the result in the
7360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7361 # must be portable across $(()) and expr.
7362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7363 eval 'as_fn_arith ()
7370 as_val
=`expr "$@" || test $? -eq 1`
7375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7383 as_basename
=basename
7388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7394 as_me
=`$as_basename -- "$0" ||
7395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7396 X"$0" : 'X\(//\)$' \| \
7397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7399 sed '/^.*\/\([^/][^/]*\)\/*$/{
7413 # Avoid depending upon Character Ranges.
7414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7417 as_cr_digits
='0123456789'
7418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7420 ECHO_C
= ECHO_N
= ECHO_T
=
7421 case `echo -n x` in #(((((
7423 case `echo 'xy\c'` in
7424 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7426 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7433 rm -f conf$$ conf$$.exe conf$$.
file
7434 if test -d conf$$.dir
; then
7435 rm -f conf$$.dir
/conf$$.
file
7438 mkdir conf$$.dir
2>/dev
/null
7440 if (echo >conf$$.
file) 2>/dev
/null
; then
7441 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7443 # ... but there are two gotchas:
7444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7446 # In both cases, we have to default to `cp -p'.
7447 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7449 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7457 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7458 rmdir conf$$.dir
2>/dev
/null
7463 # Create "$as_dir" as a directory, including parents if necessary.
7468 -*) as_dir
=.
/$as_dir;;
7470 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7474 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7475 *) as_qdir
=$as_dir;;
7477 as_dirs
="'$as_qdir' $as_dirs"
7478 as_dir
=`$as_dirname -- "$as_dir" ||
7479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7480 X"$as_dir" : 'X\(//\)[^/]' \| \
7481 X"$as_dir" : 'X\(//\)$' \| \
7482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7483 $as_echo X"$as_dir" |
7484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7501 test -d "$as_dir" && break
7503 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7504 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
7508 if mkdir
-p .
2>/dev
/null
; then
7509 as_mkdir_p
='mkdir -p "$as_dir"'
7511 test -d .
/-p && rmdir .
/-p
7515 if test -x / >/dev
/null
2>&1; then
7518 if ls -dL / >/dev
/null
2>&1; then
7525 if test -d "$1"; then
7531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7532 ???[sx]*):;;*)false;;esac;fi
7536 as_executable_p
=$as_test_x
7538 # Sed expression to map a string onto a valid CPP name.
7539 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7541 # Sed expression to map a string onto a valid variable name.
7542 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7546 ## ----------------------------------- ##
7547 ## Main body of $CONFIG_STATUS script. ##
7548 ## ----------------------------------- ##
7550 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7553 # Save the log message, to keep $0 and so on meaningful, and to
7554 # report actual input values of CONFIG_FILES etc. instead of their
7555 # values after options handling.
7557 This file was extended by $as_me, which was
7558 generated by GNU Autoconf 2.64. Invocation command line was
7560 CONFIG_FILES = $CONFIG_FILES
7561 CONFIG_HEADERS = $CONFIG_HEADERS
7562 CONFIG_LINKS = $CONFIG_LINKS
7563 CONFIG_COMMANDS = $CONFIG_COMMANDS
7566 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7571 case $ac_config_files in *"
7572 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7575 case $ac_config_headers in *"
7576 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7581 # Files that config.status was made for.
7582 config_files="$ac_config_files"
7583 config_headers="$ac_config_headers"
7584 config_commands="$ac_config_commands"
7588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7590 \`$as_me' instantiates files and other configuration actions
7591 from templates according to the current configuration. Unless the files
7592 and actions are specified as TAGs, all are instantiated by default.
7594 Usage: $0 [OPTION]... [TAG]...
7596 -h, --help print this help, then exit
7597 -V, --version print version number and configuration settings, then exit
7598 -q, --quiet, --silent
7599 do not print progress messages
7600 -d, --debug don't remove temporary files
7601 --recheck update $as_me by reconfiguring in the same conditions
7602 --file=FILE[:TEMPLATE]
7603 instantiate the configuration file FILE
7604 --header=FILE[:TEMPLATE]
7605 instantiate the configuration header FILE
7607 Configuration files:
7610 Configuration headers:
7613 Configuration commands:
7616 Report bugs to the package provider."
7619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7622 configured by $0, generated by GNU Autoconf 2.64,
7623 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7625 Copyright (C) 2009 Free Software Foundation, Inc.
7626 This config.status script is free software; the Free Software Foundation
7627 gives unlimited permission to copy, distribute and modify it."
7632 test -n "\$AWK" || AWK=awk
7635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7636 # The default lists apply if the user does not specify any file.
7642 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7643 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7654 # Handling of the options.
7655 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7657 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7658 $as_echo "$ac_cs_version"; exit ;;
7659 --debug |
--debu |
--deb |
--de |
--d |
-d )
7661 --file |
--fil |
--fi |
--f )
7664 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7666 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7667 ac_need_defaults
=false
;;
7668 --header |
--heade |
--head |
--hea )
7671 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7673 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7674 ac_need_defaults
=false
;;
7676 # Conflict between --help and --header
7677 as_fn_error
"ambiguous option: \`$1'
7678 Try \`$0 --help' for more information.";;
7679 --help |
--hel |
-h )
7680 $as_echo "$ac_cs_usage"; exit ;;
7681 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7682 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7686 -*) as_fn_error
"unrecognized option: \`$1'
7687 Try \`$0 --help' for more information." ;;
7689 *) as_fn_append ac_config_targets
" $1"
7690 ac_need_defaults
=false
;;
7696 ac_configure_extra_args
=
7698 if $ac_cs_silent; then
7700 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7705 if \$ac_cs_recheck; then
7706 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7708 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7709 CONFIG_SHELL='$SHELL'
7715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7720 ## Running $as_me. ##
7726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7730 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7736 # Handling of arguments.
7737 for ac_config_target
in $ac_config_targets
7739 case $ac_config_target in
7740 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
7741 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
7742 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7743 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7745 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7750 # If the user did not use the arguments to specify the items to instantiate,
7751 # then the envvar interface is used. Set only those that are not.
7752 # We use the long form for the default assignment because of an extremely
7753 # bizarre bug on SunOS 4.1.3.
7754 if $ac_need_defaults; then
7755 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7756 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7757 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7760 # Have a temporary directory for convenience. Make it in the build tree
7761 # simply because there is no reason against having it here, and in addition,
7762 # creating and moving files from /tmp can sometimes cause problems.
7763 # Hook for its removal unless debugging.
7764 # Note that there is a small window in which the directory will not be cleaned:
7765 # after its creation but before its name has been assigned to `$tmp'.
7769 trap 'exit_status=$?
7770 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7772 trap 'as_fn_exit 1' 1 2 13 15
7774 # Create a (secure) tmp directory for tmp files.
7777 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7778 test -n "$tmp" && test -d "$tmp"
7781 tmp
=.
/conf$$
-$RANDOM
7782 (umask 077 && mkdir
"$tmp")
7783 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
7785 # Set up the scripts for CONFIG_FILES section.
7786 # No need to generate them if there are no CONFIG_FILES.
7787 # This happens for instance with `./config.status config.h'.
7788 if test -n "$CONFIG_FILES"; then
7791 ac_cr
=`echo X | tr X '\015'`
7792 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7793 # But we know of no other shell where ac_cr would be empty at this
7794 # point, so we can use a bashism as a fallback.
7795 if test "x$ac_cr" = x
; then
7796 eval ac_cr
=\$
\'\\r
\'
7798 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7799 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7805 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7810 echo "cat >conf$$subs.awk <<_ACEOF" &&
7811 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7814 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7815 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7817 for ac_last_try in false false false false false :; do
7818 . ./conf$$subs.sh ||
7819 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7821 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7822 if test $ac_delim_n = $ac_delim_num; then
7824 elif $ac_last_try; then
7825 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7827 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7833 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
7837 s/^/S["/; s
/!.
*/"]=/
7847 s/\(.\{148\}\).*/\1/
7849 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7854 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7861 s/\(.\{148\}\).*/\1/
7863 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7867 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7872 ' <conf$$subs.awk | sed '
7877 ' >>$CONFIG_STATUS || ac_write_fail=1
7878 rm -f conf$$subs.awk
7879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7881 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
7882 for (key in S) S_is_set[key] = 1
7888 nfields = split(line, field, "@
")
7890 len = length(field[1])
7891 for (i = 2; i < nfields; i++) {
7893 keylen = length(key)
7894 if (S_is_set[key]) {
7896 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7897 len += length(value) + length(field[++i])
7908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7909 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7910 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7913 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
7914 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
7917 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7918 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
7919 # trailing colons and then remove the whole line if VPATH becomes empty
7920 # (actually we leave an empty line to preserve line numbers).
7921 if test "x
$srcdir" = x.; then
7922 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7926 s/^\([^=]*=[ ]*\):*/\1/
7932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7933 fi # test -n "$CONFIG_FILES"
7935 # Set up the scripts for CONFIG_HEADERS section.
7936 # No need to generate them if there are no CONFIG_HEADERS.
7937 # This happens for instance with `./config.status Makefile'.
7938 if test -n "$CONFIG_HEADERS"; then
7939 cat >"$tmp/defines.
awk" <<\_ACAWK ||
7943 # Transform confdefs.h into an awk script `defines.awk', embedded as
7944 # here-document in config.status, that substitutes the proper values into
7945 # config.h.in to produce config.h.
7947 # Create a delimiter string that does not exist in confdefs.h, to ease
7948 # handling of long lines.
7950 for ac_last_try in false false :; do
7951 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
7952 if test -z "$ac_t"; then
7954 elif $ac_last_try; then
7955 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
7957 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7961 # For the awk script, D is an array of macro values keyed by name,
7962 # likewise P contains macro parameters if any. Preserve backslash
7963 # newline sequences.
7965 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7967 s/.\{148\}/&'"$ac_delim"'/g
7970 s/^[ ]*#[ ]*define[ ][ ]*/ /
7977 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7979 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7984 D["\
1"]=" \
3\\\\\\n
"\\/p
7986 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7991 s/.\{148\}/&'"$ac_delim"'/g
7996 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7999 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8001 ' <confdefs.h | sed '
8002 s/'"$ac_delim"'/"\\\
8003 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8006 for (key in D) D_is_set[key] = 1
8009 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8011 split(line, arg, " ")
8012 if (arg[1] == "#") {
8016 defundef
= substr
(arg
[1], 2)
8019 split(mac1
, mac2
, "(") #)
8021 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8022 if (D_is_set
[macro
]) {
8023 # Preserve the white space surrounding the "#".
8024 print prefix
"define", macro P
[macro
] D
[macro
]
8027 # Replace #undef with comments. This is necessary, for example,
8028 # in the case of _POSIX_SOURCE, which is predefined and required
8029 # on some systems where configure will not decide to define it.
8030 if (defundef
== "undef") {
8031 print
"/*", prefix defundef
, macro
, "*/"
8039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8040 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8041 fi # test -n "$CONFIG_HEADERS"
8044 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8049 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8051 case $ac_mode$ac_tag in
8053 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8054 :[FH
]-) ac_tag
=-:-;;
8055 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8072 -) ac_f
="$tmp/stdin";;
8073 *) # Look for the file first in the build tree, then in the source tree
8074 # (if the path is not absolute). The absolute path cannot be DOS-style,
8075 # because $ac_f cannot contain `:'.
8079 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8081 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8083 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8084 as_fn_append ac_file_inputs
" '$ac_f'"
8087 # Let's still pretend it is `configure' which instantiates (i.e., don't
8088 # use $as_me), people would be surprised to read:
8089 # /* config.h. Generated by config.status. */
8090 configure_input
='Generated from '`
8091 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8093 if test x
"$ac_file" != x-
; then
8094 configure_input
="$ac_file. $configure_input"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8096 $as_echo "$as_me: creating $ac_file" >&6;}
8098 # Neutralize special characters interpreted by sed in replacement strings.
8099 case $configure_input in #(
8100 *\
&* |
*\|
* |
*\\* )
8101 ac_sed_conf_input
=`$as_echo "$configure_input" |
8102 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8103 *) ac_sed_conf_input
=$configure_input;;
8107 *:-:* |
*:-) cat >"$tmp/stdin" \
8108 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8113 ac_dir
=`$as_dirname -- "$ac_file" ||
8114 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8115 X"$ac_file" : 'X\(//\)[^/]' \| \
8116 X"$ac_file" : 'X\(//\)$' \| \
8117 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8118 $as_echo X"$ac_file" |
8119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8136 as_dir
="$ac_dir"; as_fn_mkdir_p
8140 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8142 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8143 # A ".." for each directory in $ac_dir_suffix.
8144 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8145 case $ac_top_builddir_sub in
8146 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8147 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8150 ac_abs_top_builddir
=$ac_pwd
8151 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8152 # for backward compatibility:
8153 ac_top_builddir
=$ac_top_build_prefix
8156 .
) # We are building in place.
8158 ac_top_srcdir
=$ac_top_builddir_sub
8159 ac_abs_top_srcdir
=$ac_pwd ;;
8160 [\\/]* | ?
:[\\/]* ) # Absolute name.
8161 ac_srcdir
=$srcdir$ac_dir_suffix;
8162 ac_top_srcdir
=$srcdir
8163 ac_abs_top_srcdir
=$srcdir ;;
8165 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8166 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8167 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8169 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8179 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8180 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8185 # If the template does not know about datarootdir, expand it.
8186 # FIXME: This hack should be removed a few years after 2.60.
8187 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8198 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8199 *datarootdir
*) ac_datarootdir_seen
=yes;;
8200 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8202 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8205 ac_datarootdir_hack='
8206 s&@datadir@&$datadir&g
8207 s&@docdir@&$docdir&g
8208 s&@infodir@&$infodir&g
8209 s&@localedir@&$localedir&g
8210 s&@mandir@&$mandir&g
8211 s&\\\${datarootdir}&$datarootdir&g' ;;
8215 # Neutralize VPATH when `$srcdir' = `.'.
8216 # Shell code in configure.ac might set extrasub.
8217 # FIXME: do we really want to maintain this feature?
8218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8219 ac_sed_extra="$ac_vpsub
8222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8224 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8225 s|@configure_input@|
$ac_sed_conf_input|
;t t
8226 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8227 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8228 s
&@srcdir@
&$ac_srcdir&;t t
8229 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8230 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8231 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8232 s
&@builddir@
&$ac_builddir&;t t
8233 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8234 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8235 s
&@INSTALL@
&$ac_INSTALL&;t t
8236 $ac_datarootdir_hack
8238 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8239 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8241 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8242 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8243 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8245 which seems to be undefined. Please make sure it is defined." >&5
8246 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8247 which seems to be undefined. Please make sure it is defined." >&2;}
8251 -) cat "$tmp/out" && rm -f "$tmp/out";;
8252 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8254 || as_fn_error "could not create $ac_file" "$LINENO" 5
8260 if test x"$ac_file" != x-; then
8262 $as_echo "/* $configure_input */" \
8263 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8264 } >"$tmp/config.h" \
8265 || as_fn_error "could not create $ac_file" "$LINENO" 5
8266 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8268 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8271 mv "$tmp/config.h" "$ac_file" \
8272 || as_fn_error "could not create $ac_file" "$LINENO" 5
8275 $as_echo "/* $configure_input */" \
8276 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8277 || as_fn_error "could not create -" "$LINENO" 5
8281 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8282 $as_echo "$as_me: executing $ac_file commands" >&6;}
8287 case $ac_file$ac_mode in
8288 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8289 "default":C) case x$CONFIG_HEADERS in
8290 xconfig.h:config.in)
8301 ac_clean_files=$ac_clean_files_save
8303 test $ac_write_fail = 0 ||
8304 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8307 # configure is writing to config.log, and then calls config.status.
8308 # config.status does its own redirection, appending to config.log.
8309 # Unfortunately, on DOS this fails, as config.log is still kept open
8310 # by configure, so config.status won't be able to
write to it
; its
8311 # output is simply discarded. So we exec the FD to /dev/null,
8312 # effectively closing config.log, so it can be properly (re)opened and
8313 # appended to by config.status. When coming back to configure, we
8314 # need to make the FD available again.
8315 if test "$no_create" != yes; then
8317 ac_config_status_args
=
8318 test "$silent" = yes &&
8319 ac_config_status_args
="$ac_config_status_args --quiet"
8321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8324 # would make configure fail if this is the last instruction.
8325 $ac_cs_success || as_fn_exit $?
8327 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8329 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}