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
651 MAINTAINER_MODE_FALSE
680 program_transform_name
693 enable_option_checking
694 enable_maintainer_mode
696 enable_build_with_cxx
702 enable_build_warnings
703 enable_gdb_build_warnings
707 enable_inprocess_agent
709 ac_precious_vars
='build_alias
723 # Initialize some variables set by options.
725 ac_init_version
=false
726 ac_unrecognized_opts
=
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
737 program_transform_name
=s
,x
,x
,
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir
='${exec_prefix}/bin'
752 sbindir
='${exec_prefix}/sbin'
753 libexecdir
='${exec_prefix}/libexec'
754 datarootdir
='${prefix}/share'
755 datadir
='${datarootdir}'
756 sysconfdir
='${prefix}/etc'
757 sharedstatedir
='${prefix}/com'
758 localstatedir
='${prefix}/var'
759 includedir
='${prefix}/include'
760 oldincludedir
='/usr/include'
761 docdir
='${datarootdir}/doc/${PACKAGE}'
762 infodir
='${datarootdir}/info'
767 libdir
='${exec_prefix}/lib'
768 localedir
='${datarootdir}/locale'
769 mandir
='${datarootdir}/man'
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
777 eval $ac_prev=\
$ac_option
783 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
793 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
795 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
798 -build |
--build |
--buil |
--bui |
--bu)
799 ac_prev
=build_alias
;;
800 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
801 build_alias
=$ac_optarg ;;
803 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
804 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
805 ac_prev
=cache_file
;;
806 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
807 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
808 cache_file
=$ac_optarg ;;
811 cache_file
=config.cache
;;
813 -datadir |
--datadir |
--datadi |
--datad)
815 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
816 datadir
=$ac_optarg ;;
818 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
819 |
--dataroo |
--dataro |
--datar)
820 ac_prev
=datarootdir
;;
821 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
822 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
823 datarootdir
=$ac_optarg ;;
825 -disable-* |
--disable-*)
826 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
829 as_fn_error
"invalid feature name: $ac_useropt"
830 ac_useropt_orig
=$ac_useropt
831 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep
=', ';;
839 eval enable_
$ac_useropt=no
;;
841 -docdir |
--docdir |
--docdi |
--doc |
--do)
843 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
846 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
848 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
851 -enable-* |
--enable-*)
852 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
855 as_fn_error
"invalid feature name: $ac_useropt"
856 ac_useropt_orig
=$ac_useropt
857 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep
=', ';;
865 eval enable_
$ac_useropt=\
$ac_optarg ;;
867 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
868 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
869 |
--exec |
--exe |
--ex)
870 ac_prev
=exec_prefix
;;
871 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
872 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
873 |
--exec=* |
--exe=* |
--ex=*)
874 exec_prefix
=$ac_optarg ;;
876 -gas |
--gas |
--ga |
--g)
877 # Obsolete; use --with-gas.
880 -help |
--help |
--hel |
--he |
-h)
882 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
883 ac_init_help
=recursive
;;
884 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
885 ac_init_help
=short
;;
887 -host |
--host |
--hos |
--ho)
888 ac_prev
=host_alias
;;
889 -host=* |
--host=* |
--hos=* |
--ho=*)
890 host_alias
=$ac_optarg ;;
892 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
894 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
896 htmldir
=$ac_optarg ;;
898 -includedir |
--includedir |
--includedi |
--included |
--include \
899 |
--includ |
--inclu |
--incl |
--inc)
900 ac_prev
=includedir
;;
901 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
902 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
903 includedir
=$ac_optarg ;;
905 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
907 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
908 infodir
=$ac_optarg ;;
910 -libdir |
--libdir |
--libdi |
--libd)
912 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
915 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
916 |
--libexe |
--libex |
--libe)
917 ac_prev
=libexecdir
;;
918 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
919 |
--libexe=* |
--libex=* |
--libe=*)
920 libexecdir
=$ac_optarg ;;
922 -localedir |
--localedir |
--localedi |
--localed |
--locale)
924 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
925 localedir
=$ac_optarg ;;
927 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
928 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
929 ac_prev
=localstatedir
;;
930 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
931 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
932 localstatedir
=$ac_optarg ;;
934 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
936 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
940 # Obsolete; use --without-fp.
943 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
944 |
--no-cr |
--no-c |
-n)
947 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
948 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
951 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
952 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
953 |
--oldin |
--oldi |
--old |
--ol |
--o)
954 ac_prev
=oldincludedir
;;
955 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
956 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
957 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
958 oldincludedir
=$ac_optarg ;;
960 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
962 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
965 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
966 |
--program-pre |
--program-pr |
--program-p)
967 ac_prev
=program_prefix
;;
968 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
969 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
970 program_prefix
=$ac_optarg ;;
972 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
973 |
--program-suf |
--program-su |
--program-s)
974 ac_prev
=program_suffix
;;
975 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
976 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
977 program_suffix
=$ac_optarg ;;
979 -program-transform-name |
--program-transform-name \
980 |
--program-transform-nam |
--program-transform-na \
981 |
--program-transform-n |
--program-transform- \
982 |
--program-transform |
--program-transfor \
983 |
--program-transfo |
--program-transf \
984 |
--program-trans |
--program-tran \
985 |
--progr-tra |
--program-tr |
--program-t)
986 ac_prev
=program_transform_name
;;
987 -program-transform-name=* |
--program-transform-name=* \
988 |
--program-transform-nam=* |
--program-transform-na=* \
989 |
--program-transform-n=* |
--program-transform-=* \
990 |
--program-transform=* |
--program-transfor=* \
991 |
--program-transfo=* |
--program-transf=* \
992 |
--program-trans=* |
--program-tran=* \
993 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
994 program_transform_name
=$ac_optarg ;;
996 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
998 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1003 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1006 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1007 |
-silent |
--silent |
--silen |
--sile |
--sil)
1010 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1012 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1014 sbindir
=$ac_optarg ;;
1016 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1017 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1018 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1020 ac_prev
=sharedstatedir
;;
1021 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1022 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1023 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1025 sharedstatedir
=$ac_optarg ;;
1027 -site |
--site |
--sit)
1029 -site=* |
--site=* |
--sit=*)
1032 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1034 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1035 srcdir
=$ac_optarg ;;
1037 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1038 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1039 ac_prev
=sysconfdir
;;
1040 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1041 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1042 sysconfdir
=$ac_optarg ;;
1044 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1045 ac_prev
=target_alias
;;
1046 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1047 target_alias
=$ac_optarg ;;
1049 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1052 -version |
--version |
--versio |
--versi |
--vers |
-V)
1053 ac_init_version
=: ;;
1056 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1059 as_fn_error
"invalid package name: $ac_useropt"
1060 ac_useropt_orig
=$ac_useropt
1061 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1066 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep
=', ';;
1069 eval with_
$ac_useropt=\
$ac_optarg ;;
1071 -without-* |
--without-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error
"invalid package name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval with_
$ac_useropt=no
;;
1088 # Obsolete; use --with-x.
1091 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1092 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1093 ac_prev
=x_includes
;;
1094 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1095 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1096 x_includes
=$ac_optarg ;;
1098 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1099 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1100 ac_prev
=x_libraries
;;
1101 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1102 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1103 x_libraries
=$ac_optarg ;;
1105 -*) as_fn_error
"unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information."
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1114 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1116 eval $ac_envvar=\
$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1130 if test -n "$ac_prev"; then
1131 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error
"missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1138 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 # Check all directory arguments for consistency.
1144 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
1149 eval ac_val
=\$
$ac_var
1150 # Remove trailing slashes.
1153 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\
$ac_val;;
1156 # Be sure to have absolute directory names.
1158 [\\/$
]* | ?
:[\\/]* ) continue;;
1159 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1161 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1169 target
=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x
; then
1173 if test "x$build_alias" = x
; then
1174 cross_compiling
=maybe
1175 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1176 If a cross compiler is detected then cross compile mode will be used." >&2
1177 elif test "x$build_alias" != "x$host_alias"; then
1183 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1185 test "$silent" = yes && exec 6>/dev
/null
1188 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1189 ac_ls_di
=`ls -di .` &&
1190 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1191 as_fn_error
"working directory cannot be determined"
1192 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193 as_fn_error
"pwd does not report name of working directory"
1196 # Find the source files, if location was not specified.
1197 if test -z "$srcdir"; then
1198 ac_srcdir_defaulted
=yes
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir
=`$as_dirname -- "$as_myself" ||
1201 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$as_myself" : 'X\(//\)[^/]' \| \
1203 X"$as_myself" : 'X\(//\)$' \| \
1204 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1205 $as_echo X"$as_myself" |
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1228 ac_srcdir_defaulted
=no
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1232 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1234 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1238 # When building in place, set srcdir=.
1239 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 # Remove unnecessary trailing slashes from srcdir.
1243 # Double slashes in file names in object file debugging info
1244 # mess up M-x gdb in Emacs.
1246 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 for ac_var
in $ac_precious_vars; do
1249 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1250 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1251 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1252 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1256 # Report the --help message.
1258 if test "$ac_init_help" = "long"; then
1259 # Omit some internal or obsolete options to make the list less imposing.
1260 # This message is too long to be a string in the A/UX 3.1 sh.
1262 \`configure' configures this package to adapt to many kinds of systems.
1264 Usage: $0 [OPTION]... [VAR=VALUE]...
1266 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1267 VAR=VALUE. See below for descriptions of some of the useful variables.
1269 Defaults for the options are specified in brackets.
1272 -h, --help display this help and exit
1273 --help=short display options specific to this package
1274 --help=recursive display the short help of all the included packages
1275 -V, --version display version information and exit
1276 -q, --quiet, --silent do not print \`checking...' messages
1277 --cache-file=FILE cache test results in FILE [disabled]
1278 -C, --config-cache alias for \`--cache-file=config.cache'
1279 -n, --no-create do not create output files
1280 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1282 Installation directories:
1283 --prefix=PREFIX install architecture-independent files in PREFIX
1284 [$ac_default_prefix]
1285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288 By default, \`make install' will install all the files in
1289 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1290 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1291 for instance \`--prefix=\$HOME'.
1293 For better control, use the options below.
1295 Fine tuning of the installation directories:
1296 --bindir=DIR user executables [EPREFIX/bin]
1297 --sbindir=DIR system admin executables [EPREFIX/sbin]
1298 --libexecdir=DIR program executables [EPREFIX/libexec]
1299 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1300 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1301 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1302 --libdir=DIR object code libraries [EPREFIX/lib]
1303 --includedir=DIR C header files [PREFIX/include]
1304 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1305 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1306 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1307 --infodir=DIR info documentation [DATAROOTDIR/info]
1308 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1309 --mandir=DIR man documentation [DATAROOTDIR/man]
1310 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1311 --htmldir=DIR html documentation [DOCDIR]
1312 --dvidir=DIR dvi documentation [DOCDIR]
1313 --pdfdir=DIR pdf documentation [DOCDIR]
1314 --psdir=DIR ps documentation [DOCDIR]
1320 --program-prefix=PREFIX prepend PREFIX to installed program names
1321 --program-suffix=SUFFIX append SUFFIX to installed program names
1322 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1325 --build=BUILD configure
for building on BUILD
[guessed
]
1326 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1327 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1331 if test -n "$ac_init_help"; then
1336 --disable-option-checking ignore unrecognized
--enable/--with options
1337 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1338 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1339 --enable-maintainer-mode enable make rules and dependencies not useful
1340 (and sometimes confusing
) to the casual installer
1341 --disable-largefile omit support
for large files
1342 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1343 --enable-libmcheck Try linking with
-lmcheck if available
1344 --enable-werror treat compile warnings as errors
1345 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1346 --enable-gdb-build-warnings
1347 enable GDB specific build-time compiler warnings
if
1349 --enable-inprocess-agent
1353 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1354 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1355 --with-ust=PATH Specify prefix directory
for the installed UST package
1356 Equivalent to
--with-ust-include=PATH
/include
1357 plus
--with-ust-lib=PATH
/lib
1358 --with-ust-include=PATH Specify directory
for installed UST include files
1359 --with-ust-lib=PATH Specify the directory
for the installed UST library
1360 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1361 --with-bugurl=URL Direct users to URL to report a bug
1362 --with-libthread-db=PATH
1363 use given libthread_db directly
1365 Some influential environment variables
:
1366 CC C compiler
command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1369 nonstandard directory
<lib dir
>
1370 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1371 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1372 you have headers
in a nonstandard directory
<include dir
>
1373 CXX C
++ compiler
command
1374 CXXFLAGS C
++ compiler flags
1377 Use these variables to override the choices made by
`configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to the package provider.
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" ||
1389 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1410 .) # We are building in place.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1434 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1444 generated by GNU Autoconf 2.64
1446 Copyright (C) 2009 Free Software Foundation, Inc.
1447 This configure script is free software; the Free Software Foundation
1448 gives unlimited permission to copy, distribute and modify it.
1453 ## ------------------------ ##
1454 ## Autoconf initialization. ##
1455 ## ------------------------ ##
1457 # ac_fn_c_try_compile LINENO
1458 # --------------------------
1459 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1460 ac_fn_c_try_compile ()
1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463 rm -f conftest.$ac_objext
1464 if { { ac_try="$ac_compile"
1466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1467 *) ac_try_echo
=$ac_try;;
1469 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470 $as_echo "$ac_try_echo"; } >&5
1471 (eval "$ac_compile") 2>conftest.err
1473 if test -s conftest.err
; then
1474 grep -v '^ *+' conftest.err
>conftest.er1
1475 cat conftest.er1
>&5
1476 mv -f conftest.er1 conftest.err
1478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479 test $ac_status = 0; } && {
1480 test -z "$ac_c_werror_flag" ||
1481 test ! -s conftest.err
1482 } && test -s conftest.
$ac_objext; then :
1485 $as_echo "$as_me: failed program was:" >&5
1486 sed 's/^/| /' conftest.
$ac_ext >&5
1490 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1493 } # ac_fn_c_try_compile
1495 # ac_fn_cxx_try_compile LINENO
1496 # ----------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_cxx_try_compile
()
1500 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1501 rm -f conftest.
$ac_objext
1502 if { { ac_try
="$ac_compile"
1504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_cxx_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1531 } # ac_fn_cxx_try_compile
1533 # ac_fn_c_try_cpp LINENO
1534 # ----------------------
1535 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 if { { ac_try="$ac_cpp conftest.$ac_ext"
1541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1542 *) ac_try_echo
=$ac_try;;
1544 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1548 if test -s conftest.err
; then
1549 grep -v '^ *+' conftest.err
>conftest.er1
1550 cat conftest.er1
>&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } >/dev
/null
&& {
1555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.
$ac_ext >&5
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1570 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1571 # -------------------------------------------------------
1572 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1573 # the include files in INCLUDES and setting the cache variable VAR
1575 ac_fn_c_check_header_mongrel
()
1577 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1578 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580 $as_echo_n "checking for $2... " >&6; }
1581 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1582 $as_echo_n "(cached) " >&6
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586 $as_echo "$ac_res" >&6; }
1588 # Is the header compilable?
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1590 $as_echo_n "checking $2 usability... " >&6; }
1591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1596 if ac_fn_c_try_compile
"$LINENO"; then :
1597 ac_header_compiler
=yes
1599 ac_header_compiler
=no
1601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1603 $as_echo "$ac_header_compiler" >&6; }
1605 # Is the header present?
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1607 $as_echo_n "checking $2 presence... " >&6; }
1608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1612 if ac_fn_c_try_cpp
"$LINENO"; then :
1613 ac_header_preproc
=yes
1615 ac_header_preproc
=no
1617 rm -f conftest.err conftest.
$ac_ext
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1619 $as_echo "$ac_header_preproc" >&6; }
1621 # So? What about this header?
1622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1625 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1631 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1633 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1635 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1637 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645 $as_echo_n "(cached) " >&6
1647 eval "$3=\$ac_header_compiler"
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1655 } # ac_fn_c_check_header_mongrel
1657 # ac_fn_c_try_run LINENO
1658 # ----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1660 # that executables *can* be run.
1663 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1664 if { { ac_try
="$ac_link"
1666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>&5
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1675 { { case "(($ac_try" in
1676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1677 *) ac_try_echo
=$ac_try;;
1679 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_try") 2>&5
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; }; }; then :
1687 $as_echo "$as_me: program exited with status $ac_status" >&5
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.
$ac_ext >&5
1691 ac_retval
=$ac_status
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile
()
1705 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709 $as_echo_n "(cached) " >&6
1711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1716 if ac_fn_c_try_compile
"$LINENO"; then :
1721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1728 } # ac_fn_c_check_header_compile
1730 # ac_fn_c_try_link LINENO
1731 # -----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded.
1735 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1736 rm -f conftest.
$ac_objext conftest
$ac_exeext
1737 if { { ac_try
="$ac_link"
1739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest$ac_exeext && {
1756 test "$cross_compiling" = yes ||
1757 $as_test_x conftest$ac_exeext
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768 # interfere with the next link command; also delete a directory that is
1769 # left behind by Apple's compiler. We do this before executing the actions.
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 } # ac_fn_c_try_link
1776 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1777 # -------------------------------------------
1778 # Tests whether TYPE exists after having included INCLUDES, setting cache
1779 # variable VAR accordingly.
1780 ac_fn_c_check_type ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 } # ac_fn_c_check_type
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845 #define $2 innocuous_$2
1847 /* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1853 # include <limits.h>
1855 # include <assert.h>
1860 /* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined __stub_$2 || defined __stub___$2
1882 if ac_fn_c_try_link "$LINENO"; then :
1887 rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895 } # ac_fn_c_check_func
1897 # ac_fn_c_check_decl LINENO SYMBOL VAR
1898 # ------------------------------------
1899 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1900 ac_fn_c_check_decl ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1904 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1906 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1907 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1916 #ifndef $as_decl_name
1918 (void) $as_decl_use;
1920 (void) $as_decl_name;
1928 if ac_fn_c_try_compile "$LINENO"; then :
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940 } # ac_fn_c_check_decl
1942 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1943 # --------------------------------------------
1944 # Tries to find the compile-time value of EXPR in a program that includes
1945 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1947 ac_fn_c_compute_int ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if test "$cross_compiling" = yes; then
1951 # Depending upon the size, compute the lo and hi bounds.
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1958 static int test_array [1 - 2 * !(($2) >= 0)];
1965 if ac_fn_c_try_compile "$LINENO"; then :
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1974 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_hi=$ac_mid; break
1984 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1985 if test $ac_lo -le $ac_mid; then
1989 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
2000 static int test_array [1 - 2 * !(($2) < 0)];
2007 if ac_fn_c_try_compile "$LINENO"; then :
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2016 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_lo=$ac_mid; break
2026 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2027 if test $ac_mid -le $ac_hi; then
2031 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 # Binary search between lo and hi bounds.
2042 while test "x$ac_lo" != "x$ac_hi"; do
2043 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2050 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2057 if ac_fn_c_try_compile "$LINENO"; then :
2060 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2072 static long int longval () { return $2; }
2073 static unsigned long int ulongval () { return $2; }
2080 FILE *f = fopen ("conftest.val", "w");
2085 long int i = longval ();
2088 fprintf (f, "%ld", i);
2092 unsigned long int i = ulongval ();
2095 fprintf (f, "%lu", i);
2097 /* Do not output a trailing newline, as this causes \r\n confusion
2098 on some platforms. */
2099 return ferror (f) || fclose (f) != 0;
2105 if ac_fn_c_try_run "$LINENO"; then :
2106 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2111 conftest.$ac_objext conftest.beam conftest.$ac_ext
2115 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118 } # ac_fn_c_compute_int
2120 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2121 # ----------------------------------------------------
2122 # Tries to find if the field MEMBER exists in type AGGR, after including
2123 # INCLUDES, setting cache variable VAR accordingly.
2124 ac_fn_c_check_member ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2128 $as_echo_n "checking for $2.$3... " >&6; }
2129 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2130 $as_echo_n "(cached) " >&6
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2145 if ac_fn_c_try_compile "$LINENO"; then :
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2155 if (sizeof ac_aggr.$3)
2161 if ac_fn_c_try_compile "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 } # ac_fn_c_check_member
2176 cat >config.log <<_ACEOF
2177 This file contains any messages produced by compilers while
2178 running configure, to aid debugging if configure makes a mistake.
2180 It was created by $as_me, which was
2181 generated by GNU Autoconf 2.64. Invocation command line was
2193 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2194 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2195 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2196 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2197 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2199 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2200 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2202 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2203 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2204 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2205 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2206 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2207 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2208 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 $as_echo "PATH: $as_dir"
2233 # Keep a trace of the command line.
2234 # Strip out --no-create and --no-recursion so they do not pile up.
2235 # Strip out --silent because we don't want to record it for future runs.
2236 # Also quote any args containing shell meta-characters.
2237 # Make two passes to allow for proper duplicate-argument suppression.
2241 ac_must_keep_next=false
2247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2249 | -silent | --silent | --silen | --sile | --sil)
2252 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2255 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2257 as_fn_append ac_configure_args1 " '$ac_arg'"
2258 if test $ac_must_keep_next = true; then
2259 ac_must_keep_next=false # Got value, back to normal.
2262 *=* | --config-cache | -C | -disable-* | --disable-* \
2263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2265 | -with-* | --with-* | -without-* | --without-* | --x)
2266 case "$ac_configure_args0 " in
2267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270 -* ) ac_must_keep_next=true ;;
2273 as_fn_append ac_configure_args " '$ac_arg'"
2278 { ac_configure_args0=; unset ac_configure_args0;}
2279 { ac_configure_args1=; unset ac_configure_args1;}
2281 # When interrupted or exit'd, cleanup temporary files, and complete
2282 # config.log. We remove comments because anyway the quotes in there
2283 # would cause problems or look ugly.
2284 # WARNING: Use '\'' to represent an apostrophe within the trap.
2285 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2286 trap 'exit_status=$?
2287 # Save into config.log some information that might help in debugging.
2292 ## ---------------- ##
2293 ## Cache variables. ##
2294 ## ---------------- ##
2297 # The following way of writing the cache mishandles newlines in values,
2299 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2300 eval ac_val=\$$ac_var
2304 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2308 _ | IFS | as_nl) ;; #(
2309 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310 *) { eval $ac_var=; unset $ac_var;} ;;
2315 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2316 *${as_nl}ac_space=\ *)
2318 "s/'\''/'\''\\\\'\'''\''/g;
2319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330 ## ----------------- ##
2331 ## Output variables. ##
2332 ## ----------------- ##
2335 for ac_var in $ac_subst_vars
2337 eval ac_val=\$$ac_var
2339 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 $as_echo "$ac_var='\''$ac_val'\''"
2345 if test -n "$ac_subst_files"; then
2347 ## ------------------- ##
2348 ## File substitutions. ##
2349 ## ------------------- ##
2352 for ac_var in $ac_subst_files
2354 eval ac_val=\$$ac_var
2356 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 $as_echo "$ac_var='\''$ac_val'\''"
2363 if test -s confdefs.h; then
2373 test "$ac_signal" != 0 &&
2374 $as_echo "$as_me: caught signal $ac_signal"
2375 $as_echo "$as_me: exit $exit_status"
2377 rm -f core *.core core.conftest.* &&
2378 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2381 for ac_signal in 1 2 13 15; do
2382 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2386 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2387 rm -f -r conftest* confdefs.h
2389 $as_echo "/* confdefs.h */" > confdefs.h
2391 # Predefined preprocessor variables.
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_NAME "$PACKAGE_NAME"
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_STRING "$PACKAGE_STRING"
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_URL "$PACKAGE_URL"
2418 # Let the site file select an alternate cache file if it wants to.
2419 # Prefer an explicitly selected file to automatically selected ones.
2422 if test -n "$CONFIG_SITE"; then
2423 ac_site_file1=$CONFIG_SITE
2424 elif test "x$prefix" != xNONE; then
2425 ac_site_file1=$prefix/share/config.site
2426 ac_site_file2=$prefix/etc/config.site
2428 ac_site_file1=$ac_default_prefix/share/config.site
2429 ac_site_file2=$ac_default_prefix/etc/config.site
2431 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2433 test "x$ac_site_file" = xNONE && continue
2434 if test -r "$ac_site_file"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437 sed 's/^/| /' "$ac_site_file" >&5
2442 if test -r "$cache_file"; then
2443 # Some versions of bash will fail to source /dev/null (special
2444 # files actually), so we avoid doing that.
2445 if test -f "$cache_file"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447 $as_echo "$as_me: loading cache $cache_file" >&6;}
2449 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450 *) . "./$cache_file";;
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455 $as_echo "$as_me: creating cache $cache_file" >&6;}
2459 # Check that the precious variables saved in the cache have kept the same
2461 ac_cache_corrupted=false
2462 for ac_var in $ac_precious_vars; do
2463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2464 eval ac_new_set=\$ac_env_${ac_var}_set
2465 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2466 eval ac_new_val=\$ac_env_${ac_var}_value
2467 case $ac_old_set,$ac_new_set in
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2470 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2474 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2478 if test "x$ac_old_val" != "x$ac_new_val"; then
2479 # differences in whitespace do not lead to failure.
2480 ac_old_val_w=`echo x
$ac_old_val`
2481 ac_new_val_w=`echo x
$ac_new_val`
2482 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2484 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2485 ac_cache_corrupted=:
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2488 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2489 eval $ac_var=\$ac_old_val
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2492 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2494 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2497 # Pass precious variables to config.status.
2498 if test "$ac_new_set" = set; then
2500 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2501 *) ac_arg=$ac_var=$ac_new_val ;;
2503 case " $ac_configure_args " in
2504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2505 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2509 if $ac_cache_corrupted; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2513 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2514 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2516 ## -------------------- ##
2517 ## Main body of script. ##
2518 ## -------------------- ##
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530 ac_config_headers="$ac_config_headers config.h:config.in"
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2535 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2536 # Check whether --enable-maintainer-mode was given.
2537 if test "${enable_maintainer_mode+set}" = set; then :
2538 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2540 USE_MAINTAINER_MODE=no
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2544 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2545 if test $USE_MAINTAINER_MODE = yes; then
2546 MAINTAINER_MODE_TRUE=
2547 MAINTAINER_MODE_FALSE='#'
2549 MAINTAINER_MODE_TRUE='#'
2550 MAINTAINER_MODE_FALSE=
2553 MAINT=$MAINTAINER_MODE_TRUE
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562 if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2564 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2601 if test -z "$ac_cv_prog_CC"; then
2603 # Extract the first word of "gcc", so it can be a program name with args.
2604 set dummy gcc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_ac_ct_CC="gcc"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2633 $as_echo "$ac_ct_CC" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2639 if test "x$ac_ct_CC" = x; then
2642 case $cross_compiling:$ac_tool_warned in
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2646 ac_tool_warned=yes ;;
2654 if test -z "$CC"; then
2655 if test -n "$ac_tool_prefix"; then
2656 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}cc; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_CC="${ac_tool_prefix}cc"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 if test -n "$CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686 $as_echo "$CC" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2695 if test -z "$CC"; then
2696 # Extract the first word of "cc", so it can be a program name with args.
2697 set dummy cc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_CC+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2715 ac_prog_rejected=yes
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 if test $ac_prog_rejected = yes; then
2727 # We found a bogon in the path, so make sure we never use it.
2728 set dummy $ac_cv_prog_CC
2730 if test $# != 0; then
2731 # We chose a different compiler from the bogus one.
2732 # However, it has the same basename, so the bogon will be chosen
2733 # first if we set CC to just the basename; use the full file name.
2735 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2741 if test -n "$CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2751 if test -z "$CC"; then
2752 if test -n "$ac_tool_prefix"; then
2753 for ac_prog in cl.exe
2755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if test "${ac_cv_prog_CC+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$CC"; then
2763 ac_cv_prog_CC="$CC" # Let the user override the test.
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 if test -n "$CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2785 $as_echo "$CC" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2792 test -n "$CC" && break
2795 if test -z "$CC"; then
2797 for ac_prog in cl.exe
2799 # Extract the first word of "$ac_prog", so it can be a program name with args.
2800 set dummy $ac_prog; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2806 if test -n "$ac_ct_CC"; then
2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_ac_ct_CC="$ac_prog"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2836 test -n "$ac_ct_CC" && break
2839 if test "x$ac_ct_CC" = x; then
2842 case $cross_compiling:$ac_tool_warned in
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846 ac_tool_warned=yes ;;
2855 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 as_fn_error "no acceptable C compiler found
in \
$PATH
2858 See \
`config.log' for more details." "$LINENO" 5; }
2860 # Provide some information about the compiler.
2861 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2864 for ac_option in --version -v -V -qversion; do
2865 { { ac_try="$ac_compiler $ac_option >&5"
2867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2868 *) ac_try_echo
=$ac_try;;
2870 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871 $as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2874 if test -s conftest.err
; then
2876 ... rest of stderr output deleted ...
2877 10q' conftest.err
>conftest.er1
2878 cat conftest.er1
>&5
2879 rm -f conftest.er1 conftest.err
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }
2885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2896 ac_clean_files_save
=$ac_clean_files
2897 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2898 # Try to create an executable without -o first, disregard a.out.
2899 # It will help us diagnose broken compilers, and finding out an intuition
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2902 $as_echo_n "checking for C compiler default output file name... " >&6; }
2903 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2905 # The possible output files:
2906 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2909 for ac_file
in $ac_files
2912 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2913 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2918 if { { ac_try
="$ac_link_default"
2920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_link_default") 2>&5
2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928 test $ac_status = 0; }; then :
2929 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2930 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2931 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2932 # so that the user can short-circuit this test for compilers unknown to
2934 for ac_file in $ac_files ''
2936 test -f "$ac_file" || continue
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2941 # We found the default executable, but exeext='' is most
2945 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2947 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949 # We set ac_cv_exeext here because the later test for it is not
2950 # safe: cross compilers may not add the suffix if given an `-o'
2951 # argument, so we may need to know it at that point already.
2952 # Even if this section looks crufty: it has the advantage of
2959 test "$ac_cv_exeext" = no && ac_cv_exeext=
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2965 $as_echo "$ac_file" >&6; }
2966 if test -z "$ac_file"; then :
2967 $as_echo "$as_me: failed program was:" >&5
2968 sed 's
/^
/|
/' conftest.$ac_ext >&5
2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2972 { as_fn_set_status 77
2973 as_fn_error "C compiler cannot create executables
2974 See \`config.log
' for more details." "$LINENO" 5; }; }
2976 ac_exeext=$ac_cv_exeext
2978 # Check that the compiler produces executables we can run. If not, either
2979 # the compiler is broken, or we cross compile.
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2981 $as_echo_n "checking whether the C compiler works... " >&6; }
2982 # If not cross compiling, check that we can run a simple program.
2983 if test "$cross_compiling" != yes; then
2984 if { ac_try='.
/$ac_file'
2985 { { case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_try") 2>&5
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; }; then
2997 if test "$cross_compiling" = maybe; then
3000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3002 as_fn_error "cannot run C compiled programs.
3003 If you meant to cross compile, use \`--host'.
3004 See \`config.log' for more details.
" "$LINENO" 5; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3009 $as_echo "yes" >&6; }
3011 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3012 ac_clean_files=$ac_clean_files_save
3013 # Check that the compiler produces executables we can run. If not, either
3014 # the compiler is broken, or we cross compile.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3016 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3018 $as_echo "$cross_compiling" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3021 $as_echo_n "checking
for suffix of executables...
" >&6; }
3022 if { { ac_try="$ac_link"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_link") 2>&5
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3032 test $ac_status = 0; }; then :
3033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3034 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3035 # work properly (i.e., refer to `conftest.exe'), while it won't with
3037 for ac_file in conftest.exe conftest conftest.*; do
3038 test -f "$ac_file" || continue
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error "cannot compute suffix of executables: cannot compile and link
3050 See \`config.log' for more details.
" "$LINENO" 5; }
3052 rm -f conftest$ac_cv_exeext
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3054 $as_echo "$ac_cv_exeext" >&6; }
3056 rm -f conftest.$ac_ext
3057 EXEEXT=$ac_cv_exeext
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3060 $as_echo_n "checking
for suffix of object files...
" >&6; }
3061 if test "${ac_cv_objext+set}" = set; then :
3062 $as_echo_n "(cached
) " >&6
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3075 rm -f conftest.o conftest.obj
3076 if { { ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_compile") 2>&5
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 for ac_file in conftest.o conftest.obj conftest.*; do
3088 test -f "$ac_file" || continue;
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3096 $as_echo "$as_me: failed program was
:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 as_fn_error "cannot compute suffix of object files: cannot compile
3102 See \`config.log' for more details.
" "$LINENO" 5; }
3104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3107 $as_echo "$ac_cv_objext" >&6; }
3108 OBJEXT=$ac_cv_objext
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3111 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3112 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3113 $as_echo_n "(cached
) " >&6
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3129 if ac_fn_c_try_compile "$LINENO"; then :
3134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3139 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3140 if test $ac_compiler_gnu = yes; then
3145 ac_test_CFLAGS=${CFLAGS+set}
3146 ac_save_CFLAGS=$CFLAGS
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3148 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3149 if test "${ac_cv_prog_cc_g+set}" = set; then :
3150 $as_echo_n "(cached
) " >&6
3152 ac_save_c_werror_flag=$ac_c_werror_flag
3153 ac_c_werror_flag=yes
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3167 if ac_fn_c_try_compile "$LINENO"; then :
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 if ac_fn_c_try_compile "$LINENO"; then :
3185 ac_c_werror_flag=$ac_save_c_werror_flag
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3198 if ac_fn_c_try_compile "$LINENO"; then :
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3209 $as_echo "$ac_cv_prog_cc_g" >&6; }
3210 if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212 elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3219 if test "$GCC" = yes; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3226 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3227 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3228 $as_echo_n "(cached
) " >&6
3230 ac_cv_prog_cc_c89=no
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3236 #include <sys/types.h>
3237 #include <sys/stat.h>
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3252 s = g (p, va_arg (v,int));
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
3260 as 'x'. The following induces an error, until -std is added to get
3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
3263 that's true only with -std. */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288 CC="$ac_save_CC $ac_arg"
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290 ac_cv_prog_cc_c89=$ac_arg
3292 rm -f core conftest.err conftest.$ac_objext
3293 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3295 rm -f conftest.$ac_ext
3300 case "x
$ac_cv_prog_cc_c89" in
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3303 $as_echo "none needed
" >&6; } ;;
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3306 $as_echo "unsupported
" >&6; } ;;
3308 CC="$CC $ac_cv_prog_cc_c89"
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3312 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 ac_cpp='$CXXCPP $CPPFLAGS'
3324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3327 if test -z "$CXX"; then
3328 if test -n "$CCC"; then
3331 if test -n "$ac_tool_prefix"; then
3332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3337 $as_echo_n "checking
for $ac_word...
" >&6; }
3338 if test "${ac_cv_prog_CXX+set}" = set; then :
3339 $as_echo_n "(cached
) " >&6
3341 if test -n "$CXX"; then
3342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3362 if test -n "$CXX"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3364 $as_echo "$CXX" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3367 $as_echo "no
" >&6; }
3371 test -n "$CXX" && break
3374 if test -z "$CXX"; then
3376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3381 $as_echo_n "checking
for $ac_word...
" >&6; }
3382 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3383 $as_echo_n "(cached
) " >&6
3385 if test -n "$ac_ct_CXX"; then
3386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_ac_ct_CXX="$ac_prog"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3406 if test -n "$ac_ct_CXX"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3408 $as_echo "$ac_ct_CXX" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3411 $as_echo "no
" >&6; }
3415 test -n "$ac_ct_CXX" && break
3418 if test "x
$ac_ct_CXX" = x; then
3421 case $cross_compiling:$ac_tool_warned in
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3424 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3425 ac_tool_warned=yes ;;
3433 # Provide some information about the compiler.
3434 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3437 for ac_option in --version -v -V -qversion; do
3438 { { ac_try="$ac_compiler $ac_option >&5"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3447 if test -s conftest.err; then
3449 ... rest of stderr output deleted ...
3450 10q' conftest.err >conftest.er1
3451 cat conftest.er1 >&5
3452 rm -f conftest.er1 conftest.err
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3455 test $ac_status = 0; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3459 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3460 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3461 $as_echo_n "(cached
) " >&6
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3477 if ac_fn_cxx_try_compile "$LINENO"; then :
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3487 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3493 ac_test_CXXFLAGS=${CXXFLAGS+set}
3494 ac_save_CXXFLAGS=$CXXFLAGS
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3496 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3497 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3498 $as_echo_n "(cached
) " >&6
3500 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3501 ac_cxx_werror_flag=yes
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3515 if ac_fn_cxx_try_compile "$LINENO"; then :
3516 ac_cv_prog_cxx_g=yes
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3530 if ac_fn_cxx_try_compile "$LINENO"; then :
3533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 if ac_fn_cxx_try_compile "$LINENO"; then :
3547 ac_cv_prog_cxx_g=yes
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3557 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3558 if test "$ac_test_CXXFLAGS" = set; then
3559 CXXFLAGS=$ac_save_CXXFLAGS
3560 elif test $ac_cv_prog_cxx_g = yes; then
3561 if test "$GXX" = yes; then
3567 if test "$GXX" = yes; then
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
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3586 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3587 # On Suns, sometimes $CPP names a directory.
3588 if test -n "$CPP" && test -d "$CPP"; then
3591 if test -z "$CPP"; then
3592 if test "${ac_cv_prog_CPP+set}" = set; then :
3593 $as_echo_n "(cached
) " >&6
3595 # Double quotes because CPP needs to be expanded
3596 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3599 for ac_c_preproc_warn_flag in '' yes
3601 # Use a header file that comes with gcc, so configuring glibc
3602 # with a fresh cross-compiler works.
3603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604 # <limits.h> exists even on freestanding compilers.
3605 # On the NeXT, cc -E runs the code through the compiler's parser,
3606 # not just through cpp. "Syntax error
" is here to catch this case.
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3610 # include <limits.h>
3612 # include <assert.h>
3616 if ac_fn_c_try_cpp "$LINENO"; then :
3619 # Broken: fails on valid input.
3622 rm -f conftest.err conftest.$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <ac_nonexistent.h>
3630 if ac_fn_c_try_cpp "$LINENO"; then :
3631 # Broken: success on invalid input.
3634 # Passes both tests.
3638 rm -f conftest.err conftest.$ac_ext
3641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3642 rm -f conftest.err conftest.$ac_ext
3643 if $ac_preproc_ok; then :
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3656 $as_echo "$CPP" >&6; }
3658 for ac_c_preproc_warn_flag in '' yes
3660 # Use a header file that comes with gcc, so configuring glibc
3661 # with a fresh cross-compiler works.
3662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3663 # <limits.h> exists even on freestanding compilers.
3664 # On the NeXT, cc -E runs the code through the compiler's parser,
3665 # not just through cpp. "Syntax error
" is here to catch this case.
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3669 # include <limits.h>
3671 # include <assert.h>
3675 if ac_fn_c_try_cpp "$LINENO"; then :
3678 # Broken: fails on valid input.
3681 rm -f conftest.err conftest.$ac_ext
3683 # OK, works on sane cases. Now check whether nonexistent headers
3684 # can be detected and how.
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687 #include <ac_nonexistent.h>
3689 if ac_fn_c_try_cpp "$LINENO"; then :
3690 # Broken: success on invalid input.
3693 # Passes both tests.
3697 rm -f conftest.err conftest.$ac_ext
3700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3701 rm -f conftest.err conftest.$ac_ext
3702 if $ac_preproc_ok; then :
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3708 See \`config.log' for more details.
" "$LINENO" 5; }
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3719 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3720 if test "${ac_cv_path_GREP+set}" = set; then :
3721 $as_echo_n "(cached
) " >&6
3723 if test -z "$GREP"; then
3724 ac_path_GREP_found=false
3725 # Loop through the user's path and test for each of PROGNAME-LIST
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3730 test -z "$as_dir" && as_dir=.
3731 for ac_prog in grep ggrep; do
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3734 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3735 # Check for GNU ac_path_GREP and select it if it is found.
3736 # Check for GNU $ac_path_GREP
3737 case `"$ac_path_GREP" --version 2>&1` in
3739 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3742 $as_echo_n 0123456789 >"conftest.
in"
3745 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3746 mv "conftest.tmp
" "conftest.
in"
3747 cp "conftest.
in" "conftest.
nl"
3748 $as_echo 'GREP' >> "conftest.
nl"
3749 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3750 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3751 as_fn_arith $ac_count + 1 && ac_count=$as_val
3752 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3753 # Best one so far, save it but keep looking for a better one
3754 ac_cv_path_GREP="$ac_path_GREP"
3755 ac_path_GREP_max=$ac_count
3757 # 10*(2^10) chars as input seems more than enough
3758 test $ac_count -gt 10 && break
3760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3763 $ac_path_GREP_found && break 3
3768 if test -z "$ac_cv_path_GREP"; then
3769 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3772 ac_cv_path_GREP=$GREP
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3777 $as_echo "$ac_cv_path_GREP" >&6; }
3778 GREP="$ac_cv_path_GREP"
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3782 $as_echo_n "checking
for egrep...
" >&6; }
3783 if test "${ac_cv_path_EGREP+set}" = set; then :
3784 $as_echo_n "(cached
) " >&6
3786 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3787 then ac_cv_path_EGREP="$GREP -E"
3789 if test -z "$EGREP"; then
3790 ac_path_EGREP_found=false
3791 # Loop through the user's path and test for each of PROGNAME-LIST
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3796 test -z "$as_dir" && as_dir=.
3797 for ac_prog in egrep; do
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3800 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3801 # Check for GNU ac_path_EGREP and select it if it is found.
3802 # Check for GNU $ac_path_EGREP
3803 case `"$ac_path_EGREP" --version 2>&1` in
3805 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3808 $as_echo_n 0123456789 >"conftest.
in"
3811 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3812 mv "conftest.tmp
" "conftest.
in"
3813 cp "conftest.
in" "conftest.
nl"
3814 $as_echo 'EGREP' >> "conftest.
nl"
3815 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3816 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3817 as_fn_arith $ac_count + 1 && ac_count=$as_val
3818 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3819 # Best one so far, save it but keep looking for a better one
3820 ac_cv_path_EGREP="$ac_path_EGREP"
3821 ac_path_EGREP_max=$ac_count
3823 # 10*(2^10) chars as input seems more than enough
3824 test $ac_count -gt 10 && break
3826 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 $ac_path_EGREP_found && break 3
3834 if test -z "$ac_cv_path_EGREP"; then
3835 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3838 ac_cv_path_EGREP=$EGREP
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3844 $as_echo "$ac_cv_path_EGREP" >&6; }
3845 EGREP="$ac_cv_path_EGREP"
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3849 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3850 if test "${ac_cv_header_stdc+set}" = set; then :
3851 $as_echo_n "(cached
) " >&6
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3868 if ac_fn_c_try_compile "$LINENO"; then :
3869 ac_cv_header_stdc=yes
3871 ac_cv_header_stdc=no
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3882 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3883 $EGREP "memchr
" >/dev/null 2>&1; then :
3886 ac_cv_header_stdc=no
3892 if test $ac_cv_header_stdc = yes; then
3893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3899 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3900 $EGREP "free
" >/dev/null 2>&1; then :
3903 ac_cv_header_stdc=no
3909 if test $ac_cv_header_stdc = yes; then
3910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3911 if test "$cross_compiling" = yes; then :
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3918 #if ((' ' & 0x0FF) == 0x020)
3919 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3920 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3922 # define ISLOWER(c) \
3923 (('a' <= (c) && (c) <= 'i') \
3924 || ('j' <= (c) && (c) <= 'r') \
3925 || ('s' <= (c) && (c) <= 'z'))
3926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3934 for (i = 0; i < 256; i++)
3935 if (XOR (islower (i), ISLOWER (i))
3936 || toupper (i) != TOUPPER (i))
3941 if ac_fn_c_try_run "$LINENO"; then :
3944 ac_cv_header_stdc=no
3946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3947 conftest.$ac_objext conftest.beam conftest.$ac_ext
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3953 $as_echo "$ac_cv_header_stdc" >&6; }
3954 if test $ac_cv_header_stdc = yes; then
3956 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3960 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3961 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3962 inttypes.h stdint.h unistd.h
3964 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3965 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3967 eval as_val
=\$
$as_ac_Header
3968 if test "x$as_val" = x
""yes; then :
3969 cat >>confdefs.h
<<_ACEOF
3970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3980 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3987 if test "$MINIX" = yes; then
3989 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3992 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3995 $as_echo "#define _MINIX 1" >>confdefs.h
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4001 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4002 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4008 # define __EXTENSIONS__ 1
4009 $ac_includes_default
4018 if ac_fn_c_try_compile
"$LINENO"; then :
4019 ac_cv_safe_to_define___extensions__
=yes
4021 ac_cv_safe_to_define___extensions__
=no
4023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4026 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4027 test $ac_cv_safe_to_define___extensions__ = yes &&
4028 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4030 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4032 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4034 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4036 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4040 # Check whether --enable-largefile was given.
4041 if test "${enable_largefile+set}" = set; then :
4042 enableval
=$enable_largefile;
4045 if test "$enable_largefile" != no
; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4048 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4049 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4050 $as_echo_n "(cached) " >&6
4052 ac_cv_sys_largefile_CC
=no
4053 if test "$GCC" != yes; then
4056 # IRIX 6.2 and later do not support large files by default,
4057 # so use the C compiler's -n32 option if that helps.
4058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #include <sys/types.h>
4061 /* Check that off_t can represent 2**63 - 1 correctly.
4062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4063 since some C++ compilers masquerading as C compilers
4064 incorrectly reject 9223372036854775807. */
4065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4067 && LARGE_OFF_T % 2147483647 == 1)
4077 if ac_fn_c_try_compile
"$LINENO"; then :
4080 rm -f core conftest.err conftest.
$ac_objext
4082 if ac_fn_c_try_compile
"$LINENO"; then :
4083 ac_cv_sys_largefile_CC
=' -n32'; break
4085 rm -f core conftest.err conftest.
$ac_objext
4089 rm -f conftest.
$ac_ext
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4093 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4094 if test "$ac_cv_sys_largefile_CC" != no
; then
4095 CC
=$CC$ac_cv_sys_largefile_CC
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4099 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4100 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <sys/types.h>
4107 /* Check that off_t can represent 2**63 - 1 correctly.
4108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4109 since some C++ compilers masquerading as C compilers
4110 incorrectly reject 9223372036854775807. */
4111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4113 && LARGE_OFF_T % 2147483647 == 1)
4123 if ac_fn_c_try_compile
"$LINENO"; then :
4124 ac_cv_sys_file_offset_bits
=no
; break
4126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #define _FILE_OFFSET_BITS 64
4130 #include <sys/types.h>
4131 /* Check that off_t can represent 2**63 - 1 correctly.
4132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4133 since some C++ compilers masquerading as C compilers
4134 incorrectly reject 9223372036854775807. */
4135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4137 && LARGE_OFF_T % 2147483647 == 1)
4147 if ac_fn_c_try_compile
"$LINENO"; then :
4148 ac_cv_sys_file_offset_bits
=64; break
4150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4151 ac_cv_sys_file_offset_bits
=unknown
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4156 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4157 case $ac_cv_sys_file_offset_bits in #(
4160 cat >>confdefs.h
<<_ACEOF
4161 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4166 if test $ac_cv_sys_file_offset_bits = unknown
; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4168 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4169 if test "${ac_cv_sys_large_files+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #include <sys/types.h>
4176 /* Check that off_t can represent 2**63 - 1 correctly.
4177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4178 since some C++ compilers masquerading as C compilers
4179 incorrectly reject 9223372036854775807. */
4180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4182 && LARGE_OFF_T % 2147483647 == 1)
4192 if ac_fn_c_try_compile
"$LINENO"; then :
4193 ac_cv_sys_large_files
=no
; break
4195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #define _LARGE_FILES 1
4199 #include <sys/types.h>
4200 /* Check that off_t can represent 2**63 - 1 correctly.
4201 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4202 since some C++ compilers masquerading as C compilers
4203 incorrectly reject 9223372036854775807. */
4204 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4205 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4206 && LARGE_OFF_T % 2147483647 == 1)
4216 if ac_fn_c_try_compile
"$LINENO"; then :
4217 ac_cv_sys_large_files
=1; break
4219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4220 ac_cv_sys_large_files
=unknown
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4225 $as_echo "$ac_cv_sys_large_files" >&6; }
4226 case $ac_cv_sys_large_files in #(
4229 cat >>confdefs.h
<<_ACEOF
4230 #define _LARGE_FILES $ac_cv_sys_large_files
4240 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4241 for ac_t
in install-sh
install.sh shtool
; do
4242 if test -f "$ac_dir/$ac_t"; then
4244 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4249 if test -z "$ac_aux_dir"; then
4250 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4253 # These three variables are undocumented and unsupported,
4254 # and are intended to be withdrawn in a future Autoconf release.
4255 # They can cause serious problems if a builder's source tree is in a directory
4256 # whose full name contains unusual characters.
4257 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4258 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4259 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4262 # Make sure we can run config.sub.
4263 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4264 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4267 $as_echo_n "checking build system type... " >&6; }
4268 if test "${ac_cv_build+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4271 ac_build_alias
=$build_alias
4272 test "x$ac_build_alias" = x
&&
4273 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4274 test "x$ac_build_alias" = x
&&
4275 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4276 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4277 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4281 $as_echo "$ac_cv_build" >&6; }
4282 case $ac_cv_build in
4284 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4287 ac_save_IFS
=$IFS; IFS
='-'
4293 # Remember, the first character of IFS is used to create $*,
4294 # except with old shells:
4297 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4301 $as_echo_n "checking host system type... " >&6; }
4302 if test "${ac_cv_host+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4305 if test "x$host_alias" = x
; then
4306 ac_cv_host
=$ac_cv_build
4308 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4309 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4314 $as_echo "$ac_cv_host" >&6; }
4317 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4320 ac_save_IFS
=$IFS; IFS
='-'
4326 # Remember, the first character of IFS is used to create $*,
4327 # except with old shells:
4330 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4334 $as_echo_n "checking target system type... " >&6; }
4335 if test "${ac_cv_target+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4338 if test "x$target_alias" = x
; then
4339 ac_cv_target
=$ac_cv_host
4341 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4342 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4347 $as_echo "$ac_cv_target" >&6; }
4348 case $ac_cv_target in
4350 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4352 target
=$ac_cv_target
4353 ac_save_IFS
=$IFS; IFS
='-'
4359 # Remember, the first character of IFS is used to create $*,
4360 # except with old shells:
4363 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4366 # The aliases save the names the user supplied, while $host etc.
4367 # will get canonicalized.
4368 test -n "$target_alias" &&
4369 test "$program_prefix$program_suffix$program_transform_name" = \
4371 program_prefix
=${target_alias}-
4374 # Find a good install program. We prefer a C program (faster),
4375 # so one script is as good as another. But avoid the broken or
4376 # incompatible versions:
4377 # SysV /etc/install, /usr/sbin/install
4378 # SunOS /usr/etc/install
4379 # IRIX /sbin/install
4381 # AmigaOS /C/install, which installs bootblocks on floppy discs
4382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4385 # OS/2's system install, which has a completely different semantic
4386 # ./install, which can be erroneously created by make from ./install.sh.
4387 # Reject install programs that cannot install multiple files.
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4389 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4390 if test -z "$INSTALL"; then
4391 if test "${ac_cv_path_install+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir
=.
4399 # Account for people who put trailing slashes in PATH elements.
4400 case $as_dir/ in #((
4401 .
/ | .
// |
/[cC
]/* | \
4402 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4403 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4406 # OSF1 and SCO ODT 3.0 have their own names for install.
4407 # Don't use installbsd from OSF since it installs stuff as root
4409 for ac_prog
in ginstall scoinst
install; do
4410 for ac_exec_ext
in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4412 if test $ac_prog = install &&
4413 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4414 # AIX install. It has an incompatible calling convention.
4416 elif test $ac_prog = install &&
4417 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4418 # program-specific install script used by HP pwplus--don't use.
4421 rm -rf conftest.one conftest.two conftest.dir
4422 echo one
> conftest.one
4423 echo two
> conftest.two
4425 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4426 test -s conftest.one
&& test -s conftest.two
&&
4427 test -s conftest.dir
/conftest.one
&&
4428 test -s conftest.dir
/conftest.two
4430 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4443 rm -rf conftest.one conftest.two conftest.dir
4446 if test "${ac_cv_path_install+set}" = set; then
4447 INSTALL
=$ac_cv_path_install
4449 # As a last resort, use the slow shell script. Don't cache a
4450 # value for INSTALL within a source directory, because that will
4451 # break other packages using the cache if that directory is
4452 # removed, or if the value is a relative name.
4453 INSTALL
=$ac_install_sh
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4457 $as_echo "$INSTALL" >&6; }
4459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4460 # It thinks the first close brace ends the variable substitution.
4461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4463 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4465 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4467 if test -n "$ac_tool_prefix"; then
4468 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4469 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if test "${ac_cv_prog_AR+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4475 if test -n "$AR"; then
4476 ac_cv_prog_AR
="$AR" # Let the user override the test.
4478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir
=.
4483 for ac_exec_ext
in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test -n "$AR"; then
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4498 $as_echo "$AR" >&6; }
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501 $as_echo "no" >&6; }
4506 if test -z "$ac_cv_prog_AR"; then
4508 # Extract the first word of "ar", so it can be a program name with args.
4509 set dummy
ar; ac_word
=$2
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
4515 if test -n "$ac_ct_AR"; then
4516 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir
=.
4523 for ac_exec_ext
in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_ac_ct_AR
="ar"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4536 if test -n "$ac_ct_AR"; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4538 $as_echo "$ac_ct_AR" >&6; }
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4544 if test "x$ac_ct_AR" = x
; then
4547 case $cross_compiling:$ac_tool_warned in
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4551 ac_tool_warned
=yes ;;
4559 if test -n "$ac_tool_prefix"; then
4560 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4561 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 if test -n "$RANLIB"; then
4568 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir
=.
4575 for ac_exec_ext
in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 RANLIB
=$ac_cv_prog_RANLIB
4588 if test -n "$RANLIB"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4590 $as_echo "$RANLIB" >&6; }
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4598 if test -z "$ac_cv_prog_RANLIB"; then
4599 ac_ct_RANLIB
=$RANLIB
4600 # Extract the first word of "ranlib", so it can be a program name with args.
4601 set dummy ranlib
; ac_word
=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4607 if test -n "$ac_ct_RANLIB"; then
4608 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir
=.
4615 for ac_exec_ext
in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4628 if test -n "$ac_ct_RANLIB"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4630 $as_echo "$ac_ct_RANLIB" >&6; }
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4636 if test "x$ac_ct_RANLIB" = x
; then
4639 case $cross_compiling:$ac_tool_warned in
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned
=yes ;;
4645 RANLIB
=$ac_ct_RANLIB
4648 RANLIB
="$ac_cv_prog_RANLIB"
4652 test "$program_prefix" != NONE
&&
4653 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4654 # Use a double $ so make ignores it.
4655 test "$program_suffix" != NONE
&&
4656 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4657 # Double any \ or $.
4658 # By default was `s,x,x', remove it if useless.
4659 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4660 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4664 $as_echo_n "checking for ANSI C header files... " >&6; }
4665 if test "${ac_cv_header_stdc+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4683 if ac_fn_c_try_compile
"$LINENO"; then :
4684 ac_cv_header_stdc
=yes
4686 ac_cv_header_stdc
=no
4688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4690 if test $ac_cv_header_stdc = yes; then
4691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4698 $EGREP "memchr" >/dev
/null
2>&1; then :
4701 ac_cv_header_stdc
=no
4707 if test $ac_cv_header_stdc = yes; then
4708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4715 $EGREP "free" >/dev
/null
2>&1; then :
4718 ac_cv_header_stdc
=no
4724 if test $ac_cv_header_stdc = yes; then
4725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4726 if test "$cross_compiling" = yes; then :
4729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4733 #if ((' ' & 0x0FF) == 0x020)
4734 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4735 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4737 # define ISLOWER(c) \
4738 (('a' <= (c) && (c) <= 'i') \
4739 || ('j' <= (c) && (c) <= 'r') \
4740 || ('s' <= (c) && (c) <= 'z'))
4741 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4749 for (i = 0; i < 256; i++)
4750 if (XOR (islower (i), ISLOWER (i))
4751 || toupper (i) != TOUPPER (i))
4756 if ac_fn_c_try_run
"$LINENO"; then :
4759 ac_cv_header_stdc
=no
4761 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4762 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4768 $as_echo "$ac_cv_header_stdc" >&6; }
4769 if test $ac_cv_header_stdc = yes; then
4771 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4776 # See if we are building with C++, and substitute COMPILER.
4778 # Check whether --enable-build-with-cxx was given.
4779 if test "${enable_build_with_cxx+set}" = set; then :
4780 enableval
=$enable_build_with_cxx; case $enableval in
4784 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4787 enable_build_with_cxx
=yes
4791 if test "$enable_build_with_cxx" = "yes"; then
4793 COMPILER_CFLAGS
='$(CXXFLAGS)'
4796 COMPILER_CFLAGS
='$(CFLAGS)'
4802 # Set the 'development' global.
4803 .
$srcdir/..
/..
/bfd
/development.sh
4805 # Enable -lmcheck by default (it provides cheap-enough memory
4806 # mangling), but turn it off for releases.
4807 if $development; then
4808 libmcheck_default
=yes
4810 libmcheck_default
=no
4813 # Check whether --enable-libmcheck was given.
4814 if test "${enable_libmcheck+set}" = set; then :
4815 enableval
=$enable_libmcheck; case "${enableval}" in
4816 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
4817 no | n
) ENABLE_LIBMCHECK
="no" ;;
4818 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4823 if test -z "${ENABLE_LIBMCHECK}"; then
4824 ENABLE_LIBMCHECK
=${libmcheck_default}
4827 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4829 $as_echo_n "checking for main in -lmcheck... " >&6; }
4830 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 ac_check_lib_save_LIBS
=$LIBS
4834 LIBS
="-lmcheck $LIBS"
4835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4847 if ac_fn_c_try_link
"$LINENO"; then :
4848 ac_cv_lib_mcheck_main
=yes
4850 ac_cv_lib_mcheck_main
=no
4852 rm -f core conftest.err conftest.
$ac_objext \
4853 conftest
$ac_exeext conftest.
$ac_ext
4854 LIBS
=$ac_check_lib_save_LIBS
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4857 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4858 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
4859 cat >>confdefs.h
<<_ACEOF
4860 #define HAVE_LIBMCHECK 1
4863 LIBS
="-lmcheck $LIBS"
4870 case ${build_alias} in
4871 "") build_noncanonical
=${build} ;;
4872 *) build_noncanonical
=${build_alias} ;;
4875 case ${host_alias} in
4876 "") host_noncanonical
=${build_noncanonical} ;;
4877 *) host_noncanonical
=${host_alias} ;;
4880 case ${target_alias} in
4881 "") target_noncanonical
=${host_noncanonical} ;;
4882 *) target_noncanonical
=${target_alias} ;;
4890 # Dependency checking.
4891 rm -rf .tst
2>/dev
/null
4892 mkdir .tst
2>/dev
/null
4893 if test -d .tst
; then
4898 rmdir .tst
2>/dev
/null
4900 DEPDIR
="${am__leading_dot}deps"
4902 ac_config_commands
="$ac_config_commands depdir"
4905 depcc
="$CC" am_compiler_list
=
4907 am_depcomp
=$ac_aux_dir/depcomp
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4909 $as_echo_n "checking dependency style of $depcc... " >&6; }
4910 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4913 if test -f "$am_depcomp"; then
4914 # We make a subdir and do the tests there. Otherwise we can end up
4915 # making bogus files that we don't know about and never remove. For
4916 # instance it was reported that on HP-UX the gcc test will end up
4917 # making a dummy file named `D' -- because `-MD' means `put the output
4920 # Copy depcomp to subdir because otherwise we won't find it if we're
4921 # using a relative directory.
4922 cp "$am_depcomp" conftest.dir
4924 # We will build objects and dependencies in a subdirectory because
4925 # it helps to detect inapplicable dependency modes. For instance
4926 # both Tru64's cc and ICC support -MD to output dependencies as a
4927 # side effect of compilation, but ICC will put the dependencies in
4928 # the current directory while Tru64 will put them in the object
4932 am_cv_CC_dependencies_compiler_type
=none
4933 if test "$am_compiler_list" = ""; then
4934 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4936 for depmode
in $am_compiler_list; do
4937 if test $depmode = none
; then break; fi
4939 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4940 # Setup a source with many dependencies, because some compilers
4941 # like to wrap large dependency lists on column 80 (with \), and
4942 # we should not choose a depcomp mode which is confused by this.
4944 # We need to recreate these files for each test, as the compiler may
4945 # overwrite some of them when testing with obscure command lines.
4946 # This happens at least with the AIX C compiler.
4948 for i
in 1 2 3 4 5 6; do
4949 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4950 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4951 # Solaris 8's {/usr,}/bin/sh.
4952 touch sub
/conftst
$i.h
4954 echo "include sub/conftest.Po" > confmf
4956 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4957 # mode. It turns out that the SunPro C++ compiler does not properly
4958 # handle `-M -o', and we need to detect this.
4959 depcmd
="depmode=$depmode \
4960 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4961 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4962 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4963 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4964 if env
$depcmd > conftest.err
2>&1 &&
4965 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4966 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4967 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4968 # icc doesn't choke on unknown options, it will just issue warnings
4969 # or remarks (even with -Werror). So we grep stderr for any message
4970 # that says an option was ignored or not supported.
4971 # When given -MP, icc 7.0 and 7.1 complain thusly:
4972 # icc: Command line warning: ignoring option '-M'; no argument required
4973 # The diagnosis changed in icc 8.0:
4974 # icc: Command line remark: option '-MP' not supported
4975 if (grep 'ignoring option' conftest.err ||
4976 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4977 am_cv_CC_dependencies_compiler_type
=$depmode
4978 $as_echo "$as_me:$LINENO: success" >&5
4982 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4983 sed -e 's/^/| /' < conftest.err
>&5
4989 am_cv_CC_dependencies_compiler_type
=none
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4994 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4995 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4996 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4997 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5002 # Check for the 'make' the user wants to use.
5005 # Extract the first word of "$ac_prog", so it can be a program name with args.
5006 set dummy
$ac_prog; ac_word
=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_MAKE+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5012 if test -n "$MAKE"; then
5013 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir
=.
5020 for ac_exec_ext
in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_MAKE
="$ac_prog"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 MAKE
=$ac_cv_prog_MAKE
5033 if test -n "$MAKE"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5035 $as_echo "$MAKE" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 test -n "$MAKE" && break
5046 case "`$MAKE --version 2>&1 | sed 1q`" in
5051 if test "$MAKE_IS_GNU" = yes; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5060 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5062 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5063 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5064 $as_echo_n "(cached) " >&6
5066 cat >conftest.
make <<\_ACEOF
5069 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5072 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5074 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5076 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5080 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5082 $as_echo "yes" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 SET_MAKE
="MAKE=${MAKE-make}"
5091 gnulib_extra_configure_args
=
5092 # If large-file support is disabled, make sure gnulib does the same.
5093 if test "$enable_largefile" = no
; then
5094 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5097 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5098 # to find the the source subdir to be configured directly under
5099 # gdbserver/. We need to build gnulib under some other directory not
5100 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5101 # build it in the same directory, when building in the source dir.
5104 in_build
="build-gnulib-gdbserver"
5105 in_extra_args
="$gnulib_extra_configure_args"
5107 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5108 # so they do not pile up.
5109 ac_sub_configure_args
=
5111 eval "set x $ac_configure_args"
5115 if test -n "$ac_prev"; then
5120 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5121 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5122 ac_prev
=cache_file
;;
5123 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5124 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5127 --config-cache |
-C)
5129 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5131 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5133 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5135 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5137 --disable-option-checking)
5141 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5143 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5147 # Always prepend --prefix to ensure using the same prefix
5148 # in subdir configurations.
5149 ac_arg
="--prefix=$prefix"
5151 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5153 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5156 if test "$silent" = yes; then
5157 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5160 # Always prepend --disable-option-checking to silence warnings, since
5161 # different subdirs can have different --enable and --with options.
5162 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5167 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5169 $as_echo "$ac_msg" >&6
5170 as_dir
="$ac_dir"; as_fn_mkdir_p
5174 ac_srcdir
=$srcdir/$in_src ;;
5176 ac_srcdir
=..
/$srcdir/$in_src ;;
5181 ac_sub_configure
=$ac_srcdir/configure
5183 # Make the cache file name correct relative to the subdirectory.
5185 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5187 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5190 if test -n "$in_extra_args"; then
5191 # Add the extra args at the end.
5192 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5195 { $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
5196 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5197 # The eval makes quoting arguments work.
5198 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5199 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5200 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5206 in_src
="../../libiberty"
5207 in_build
="build-libiberty-gdbserver"
5210 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5211 # so they do not pile up.
5212 ac_sub_configure_args
=
5214 eval "set x $ac_configure_args"
5218 if test -n "$ac_prev"; then
5223 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5224 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5225 ac_prev
=cache_file
;;
5226 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5227 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5230 --config-cache |
-C)
5232 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5234 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5236 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5238 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5240 --disable-option-checking)
5244 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5246 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5250 # Always prepend --prefix to ensure using the same prefix
5251 # in subdir configurations.
5252 ac_arg
="--prefix=$prefix"
5254 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5256 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5259 if test "$silent" = yes; then
5260 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5263 # Always prepend --disable-option-checking to silence warnings, since
5264 # different subdirs can have different --enable and --with options.
5265 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5270 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5272 $as_echo "$ac_msg" >&6
5273 as_dir
="$ac_dir"; as_fn_mkdir_p
5277 ac_srcdir
=$srcdir/$in_src ;;
5279 ac_srcdir
=..
/$srcdir/$in_src ;;
5284 ac_sub_configure
=$ac_srcdir/configure
5286 # Make the cache file name correct relative to the subdirectory.
5288 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5290 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5293 if test -n "$in_extra_args"; then
5294 # Add the extra args at the end.
5295 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5298 { $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
5299 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5300 # The eval makes quoting arguments work.
5301 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5302 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5303 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5308 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
5310 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5312 eval as_val
=\$
$as_ac_Header
5313 if test "x$as_val" = x
""yes; then :
5314 cat >>confdefs.h
<<_ACEOF
5315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5322 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5323 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5327 cat >>confdefs.h
<<_ACEOF
5333 for ac_header
in vfork.h
5335 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5336 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5337 cat >>confdefs.h
<<_ACEOF
5338 #define HAVE_VFORK_H 1
5345 for ac_func
in fork vfork
5347 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5348 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5349 eval as_val
=\$
$as_ac_var
5350 if test "x$as_val" = x
""yes; then :
5351 cat >>confdefs.h
<<_ACEOF
5352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5358 if test "x$ac_cv_func_fork" = xyes
; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5360 $as_echo_n "checking for working fork... " >&6; }
5361 if test "${ac_cv_func_fork_works+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5364 if test "$cross_compiling" = yes; then :
5365 ac_cv_func_fork_works
=cross
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 $ac_includes_default
5374 /* By Ruediger Kuhlmann. */
5381 if ac_fn_c_try_run
"$LINENO"; then :
5382 ac_cv_func_fork_works
=yes
5384 ac_cv_func_fork_works
=no
5386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5392 $as_echo "$ac_cv_func_fork_works" >&6; }
5395 ac_cv_func_fork_works
=$ac_cv_func_fork
5397 if test "x$ac_cv_func_fork_works" = xcross
; then
5399 *-*-amigaos* |
*-*-msdosdjgpp*)
5400 # Override, as these systems have only a dummy fork() stub
5401 ac_cv_func_fork_works
=no
5404 ac_cv_func_fork_works
=yes
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5408 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5410 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5411 if test "x$ac_cv_func_vfork" = xyes
; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5413 $as_echo_n "checking for working vfork... " >&6; }
5414 if test "${ac_cv_func_vfork_works+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5417 if test "$cross_compiling" = yes; then :
5418 ac_cv_func_vfork_works
=cross
5420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 /* Thanks to Paul Eggert for this test. */
5423 $ac_includes_default
5424 #include <sys/wait.h>
5428 /* On some sparc systems, changes by the child to local and incoming
5429 argument registers are propagated back to the parent. The compiler
5430 is told about this with #include <vfork.h>, but some compilers
5431 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5432 static variable whose address is put into a register that is
5433 clobbered by the vfork. */
5436 sparc_address_test (int arg)
5438 sparc_address_test (arg) int arg;
5459 pid_t parent = getpid ();
5462 sparc_address_test (0);
5467 /* Here is another test for sparc vfork register problems. This
5468 test uses lots of local variables, at least as many local
5469 variables as main has allocated so far including compiler
5470 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5471 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5472 reuse the register of parent for one of the local variables,
5473 since it will think that parent can't possibly be used any more
5474 in this routine. Assigning to the local variable will thus
5475 munge parent in the parent process. */
5477 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5478 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5479 /* Convince the compiler that p..p7 are live; otherwise, it might
5480 use the same hardware register for all 8 local variables. */
5481 if (p != p1 || p != p2 || p != p3 || p != p4
5482 || p != p5 || p != p6 || p != p7)
5485 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5486 from child file descriptors. If the child closes a descriptor
5487 before it execs or exits, this munges the parent's descriptor
5488 as well. Test for this by closing stdout in the child. */
5489 _exit(close(fileno(stdout)) != 0);
5494 while (wait(&status) != child)
5497 /* Was there some problem with vforking? */
5500 /* Did the child fail? (This shouldn't happen.) */
5503 /* Did the vfork/compiler bug occur? */
5504 || parent != getpid()
5506 /* Did the file descriptor bug occur? */
5507 || fstat(fileno(stdout), &st) != 0
5512 if ac_fn_c_try_run
"$LINENO"; then :
5513 ac_cv_func_vfork_works
=yes
5515 ac_cv_func_vfork_works
=no
5517 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5518 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5523 $as_echo "$ac_cv_func_vfork_works" >&6; }
5526 if test "x$ac_cv_func_fork_works" = xcross
; then
5527 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5529 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5532 if test "x$ac_cv_func_vfork_works" = xyes
; then
5534 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5538 $as_echo "#define vfork fork" >>confdefs.h
5541 if test "x$ac_cv_func_fork_works" = xyes
; then
5543 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5547 for ac_func
in getauxval pread pwrite pread64 setns
5549 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5550 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5551 eval as_val
=\$
$as_ac_var
5552 if test "x$as_val" = x
""yes; then :
5553 cat >>confdefs.h
<<_ACEOF
5554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5563 $as_echo_n "checking for ANSI C header files... " >&6; }
5564 if test "${ac_cv_header_stdc+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5582 if ac_fn_c_try_compile
"$LINENO"; then :
5583 ac_cv_header_stdc
=yes
5585 ac_cv_header_stdc
=no
5587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5589 if test $ac_cv_header_stdc = yes; then
5590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5597 $EGREP "memchr" >/dev
/null
2>&1; then :
5600 ac_cv_header_stdc
=no
5606 if test $ac_cv_header_stdc = yes; then
5607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5614 $EGREP "free" >/dev
/null
2>&1; then :
5617 ac_cv_header_stdc
=no
5623 if test $ac_cv_header_stdc = yes; then
5624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5625 if test "$cross_compiling" = yes; then :
5628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5632 #if ((' ' & 0x0FF) == 0x020)
5633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5636 # define ISLOWER(c) \
5637 (('a' <= (c) && (c) <= 'i') \
5638 || ('j' <= (c) && (c) <= 'r') \
5639 || ('s' <= (c) && (c) <= 'z'))
5640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5648 for (i = 0; i < 256; i++)
5649 if (XOR (islower (i), ISLOWER (i))
5650 || toupper (i) != TOUPPER (i))
5655 if ac_fn_c_try_run
"$LINENO"; then :
5658 ac_cv_header_stdc
=no
5660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5667 $as_echo "$ac_cv_header_stdc" >&6; }
5668 if test $ac_cv_header_stdc = yes; then
5670 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5674 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5675 # for constant arguments. Useless!
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5677 $as_echo_n "checking for working alloca.h... " >&6; }
5678 if test "${ac_cv_working_alloca_h+set}" = set; then :
5679 $as_echo_n "(cached) " >&6
5681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5687 char *p = (char *) alloca (2 * sizeof (int));
5693 if ac_fn_c_try_link
"$LINENO"; then :
5694 ac_cv_working_alloca_h
=yes
5696 ac_cv_working_alloca_h
=no
5698 rm -f core conftest.err conftest.
$ac_objext \
5699 conftest
$ac_exeext conftest.
$ac_ext
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5702 $as_echo "$ac_cv_working_alloca_h" >&6; }
5703 if test $ac_cv_working_alloca_h = yes; then
5705 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5710 $as_echo_n "checking for alloca... " >&6; }
5711 if test "${ac_cv_func_alloca_works+set}" = set; then :
5712 $as_echo_n "(cached) " >&6
5714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5717 # define alloca __builtin_alloca
5720 # include <malloc.h>
5721 # define alloca _alloca
5723 # ifdef HAVE_ALLOCA_H
5724 # include <alloca.h>
5729 # ifndef alloca /* predefined by HP cc +Olibcalls */
5740 char *p = (char *) alloca (1);
5746 if ac_fn_c_try_link
"$LINENO"; then :
5747 ac_cv_func_alloca_works
=yes
5749 ac_cv_func_alloca_works
=no
5751 rm -f core conftest.err conftest.
$ac_objext \
5752 conftest
$ac_exeext conftest.
$ac_ext
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5755 $as_echo "$ac_cv_func_alloca_works" >&6; }
5757 if test $ac_cv_func_alloca_works = yes; then
5759 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5762 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5763 # that cause trouble. Some versions do not even contain alloca or
5764 # contain a buggy version. If you still want to use their alloca,
5765 # use ar to extract alloca.o from them instead of compiling alloca.c.
5767 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5769 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5773 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5774 if test "${ac_cv_os_cray+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #if defined CRAY && ! defined CRAY2
5786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5787 $EGREP "webecray" >/dev
/null
2>&1; then :
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5796 $as_echo "$ac_cv_os_cray" >&6; }
5797 if test $ac_cv_os_cray = yes; then
5798 for ac_func
in _getb67 GETB67 getb67
; do
5799 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5800 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5801 eval as_val
=\$
$as_ac_var
5802 if test "x$as_val" = x
""yes; then :
5804 cat >>confdefs.h
<<_ACEOF
5805 #define CRAY_STACKSEG_END $ac_func
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5815 $as_echo_n "checking stack direction for C alloca... " >&6; }
5816 if test "${ac_cv_c_stack_direction+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5819 if test "$cross_compiling" = yes; then :
5820 ac_cv_c_stack_direction
=0
5822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 $ac_includes_default
5826 find_stack_direction ()
5828 static char *addr = 0;
5833 return find_stack_direction ();
5836 return (&dummy > addr) ? 1 : -1;
5842 return find_stack_direction () < 0;
5845 if ac_fn_c_try_run
"$LINENO"; then :
5846 ac_cv_c_stack_direction
=1
5848 ac_cv_c_stack_direction
=-1
5850 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5851 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5856 $as_echo "$ac_cv_c_stack_direction" >&6; }
5857 cat >>confdefs.h
<<_ACEOF
5858 #define STACK_DIRECTION $ac_cv_c_stack_direction
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5867 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5868 if test "${am_cv_langinfo_codeset+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873 #include <langinfo.h>
5877 char* cs = nl_langinfo(CODESET);
5882 if ac_fn_c_try_link
"$LINENO"; then :
5883 am_cv_langinfo_codeset
=yes
5885 am_cv_langinfo_codeset
=no
5887 rm -f core conftest.err conftest.
$ac_objext \
5888 conftest
$ac_exeext conftest.
$ac_ext
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5892 $as_echo "$am_cv_langinfo_codeset" >&6; }
5893 if test $am_cv_langinfo_codeset = yes; then
5895 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5900 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
5902 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5903 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5904 eval as_val
=\$
$as_ac_Header
5905 if test "x$as_val" = x
""yes; then :
5906 cat >>confdefs.h
<<_ACEOF
5907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5915 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
5917 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5918 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5919 eval as_val
=\$
$as_ac_var
5920 if test "x$as_val" = x
""yes; then :
5921 cat >>confdefs.h
<<_ACEOF
5922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5929 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5930 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
5936 cat >>confdefs.h
<<_ACEOF
5937 #define HAVE_DECL_STRERROR $ac_have_decl
5939 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5940 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
5946 cat >>confdefs.h
<<_ACEOF
5947 #define HAVE_DECL_STRSTR $ac_have_decl
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5952 $as_echo_n "checking for sigsetjmp... " >&6; }
5953 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5964 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
5969 if ac_fn_c_try_compile
"$LINENO"; then :
5970 gdb_cv_func_sigsetjmp
=yes
5972 gdb_cv_func_sigsetjmp
=no
5974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
5977 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
5978 if test $gdb_cv_func_sigsetjmp = yes; then
5980 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
5985 # Check the return and argument types of ptrace.
5988 for ac_header
in sys
/ptrace.h ptrace.h
5990 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5992 eval as_val
=\$
$as_ac_Header
5993 if test "x$as_val" = x
""yes; then :
5994 cat >>confdefs.h
<<_ACEOF
5995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6003 gdb_ptrace_headers
='
6004 #include <sys/types.h>
6005 #if HAVE_SYS_PTRACE_H
6006 # include <sys/ptrace.h>
6009 # include <unistd.h>
6012 # There is no point in checking if we don't have a prototype.
6013 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6015 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
6021 cat >>confdefs.h
<<_ACEOF
6022 #define HAVE_DECL_PTRACE $ac_have_decl
6024 if test $ac_have_decl = 1; then :
6028 : ${gdb_cv_func_ptrace_ret='int'}
6029 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6033 # Check return type. Varargs (used on GNU/Linux) conflict with the
6034 # empty argument list, so check for that explicitly.
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6036 $as_echo_n "checking return type of ptrace... " >&6; }
6037 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6046 extern long ptrace (enum __ptrace_request, ...);
6051 if ac_fn_c_try_compile
"$LINENO"; then :
6052 gdb_cv_func_ptrace_ret
='long'
6054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6060 extern int ptrace ();
6065 if ac_fn_c_try_compile
"$LINENO"; then :
6066 gdb_cv_func_ptrace_ret
='int'
6068 gdb_cv_func_ptrace_ret
='long'
6070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
6075 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
6077 cat >>confdefs.h
<<_ACEOF
6078 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
6081 # Check argument types.
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
6083 $as_echo_n "checking types of arguments for ptrace... " >&6; }
6084 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6094 extern long ptrace (enum __ptrace_request, ...);
6099 if ac_fn_c_try_compile
"$LINENO"; then :
6100 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
6103 for gdb_arg1
in 'int' 'long'; do
6104 for gdb_arg2
in 'pid_t' 'int' 'long'; do
6105 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
6106 for gdb_arg4
in 'int' 'long' 'void *'; do
6107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6114 extern $gdb_cv_func_ptrace_ret
6115 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
6121 if ac_fn_c_try_compile
"$LINENO"; then :
6122 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
6125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6126 for gdb_arg5
in 'int *' 'int' 'long'; do
6127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6134 extern $gdb_cv_func_ptrace_ret
6135 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
6141 if ac_fn_c_try_compile
"$LINENO"; then :
6143 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
6146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6152 # Provide a safe default value.
6153 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
6159 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
6160 ac_save_IFS
=$IFS; IFS
=','
6161 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
6165 cat >>confdefs.h
<<_ACEOF
6166 #define PTRACE_TYPE_ARG1 $1
6170 cat >>confdefs.h
<<_ACEOF
6171 #define PTRACE_TYPE_ARG3 $3
6175 cat >>confdefs.h
<<_ACEOF
6176 #define PTRACE_TYPE_ARG4 $4
6179 if test -n "$5"; then
6181 cat >>confdefs.h
<<_ACEOF
6182 #define PTRACE_TYPE_ARG5 $5
6193 # Check whether --with-ust was given.
6194 if test "${with_ust+set}" = set; then :
6199 # Check whether --with-ust_include was given.
6200 if test "${with_ust_include+set}" = set; then :
6201 withval
=$with_ust_include;
6205 # Check whether --with-ust_lib was given.
6206 if test "${with_ust_lib+set}" = set; then :
6207 withval
=$with_ust_lib;
6221 ustlibs
="-L$with_ust/lib -lust"
6222 ustinc
="-I$with_ust/include "
6225 if test "x$with_ust_include" != x
; then
6226 ustinc
="-I$with_ust_include "
6228 if test "x$with_ust_lib" != x
; then
6229 ustlibs
="-L$with_ust_lib -lust"
6232 if test "x$with_ust" != "xno"; then
6233 saved_CFLAGS
="$CFLAGS"
6234 CFLAGS
="$CFLAGS $ustinc"
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
6236 $as_echo_n "checking for ust... " >&6; }
6237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6240 #define CONFIG_UST_GDB_INTEGRATION
6241 #include <ust/ust.h>
6251 if ac_fn_c_try_compile
"$LINENO"; then :
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6253 $as_echo "yes" >&6; };
6254 $as_echo "#define HAVE_UST 1" >>confdefs.h
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
6260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 CFLAGS
="$saved_CFLAGS"
6264 # Flags needed for UST
6270 # Check whether --enable-werror was given.
6271 if test "${enable_werror+set}" = set; then :
6272 enableval
=$enable_werror; case "${enableval}" in
6273 yes | y
) ERROR_ON_WARNING
="yes" ;;
6274 no | n
) ERROR_ON_WARNING
="no" ;;
6275 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6280 # Enable -Werror by default when using gcc. Turn it off for releases.
6281 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
6282 ERROR_ON_WARNING
=yes
6286 if test "${ERROR_ON_WARNING}" = yes ; then
6287 WERROR_CFLAGS
="-Werror"
6290 # These options work in either C or C++ modes.
6291 build_warnings
="-Wall -Wpointer-arith \
6292 -Wno-unused -Wunused-value -Wunused-function \
6293 -Wno-switch -Wno-char-subscripts \
6296 # Now add in C and C++ specific options, depending on mode.
6297 if test "$enable_build_with_cxx" = "yes"; then
6298 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
6301 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
6302 -Wdeclaration-after-statement -Wmissing-parameter-type \
6303 -Wold-style-declaration -Wold-style-definition"
6306 # Enable -Wno-format by default when using gcc on mingw since many
6307 # GCC versions complain about %I64.
6309 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
6310 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
6313 # Check whether --enable-build-warnings was given.
6314 if test "${enable_build_warnings+set}" = set; then :
6315 enableval
=$enable_build_warnings; case "${enableval}" in
6317 no
) build_warnings
="-w";;
6318 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6319 build_warnings
="${build_warnings} ${t}";;
6320 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6321 build_warnings
="${t} ${build_warnings}";;
6322 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6324 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6325 echo "Setting compiler warning flags = $build_warnings" 6>&1
6328 # Check whether --enable-gdb-build-warnings was given.
6329 if test "${enable_gdb_build_warnings+set}" = set; then :
6330 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
6332 no
) build_warnings
="-w";;
6333 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6334 build_warnings
="${build_warnings} ${t}";;
6335 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6336 build_warnings
="${t} ${build_warnings}";;
6337 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6339 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6340 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6344 # The set of warnings supported by a C++ compiler is not the same as
6345 # of the C compiler.
6346 if test "$enable_build_with_cxx" = "yes"; then
6348 ac_cpp
='$CXXCPP $CPPFLAGS'
6349 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6356 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
6359 $as_echo_n "checking compiler warning flags... " >&6; }
6360 # Separate out the -Werror flag as some files just cannot be
6361 # compiled with it enabled.
6362 for w
in ${build_warnings}; do
6363 # GCC does not complain about -Wno-unknown-warning. Invert
6364 # and test -Wunknown-warning instead.
6367 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
6373 -Werr*) WERROR_CFLAGS
=-Werror ;;
6375 # Check whether GCC accepts it.
6376 saved_CFLAGS
="$CFLAGS"
6377 CFLAGS
="$CFLAGS $wtest"
6378 saved_CXXFLAGS
="$CXXFLAGS"
6379 CXXFLAGS
="$CXXFLAGS $wtest"
6380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6391 if ac_fn_cxx_try_compile
"$LINENO"; then :
6392 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 CFLAGS
="$saved_CFLAGS"
6396 CXXFLAGS
="$saved_CXXFLAGS"
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
6400 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
6405 if test "$enable_build_with_cxx" = "yes"; then
6407 ac_cpp='$CPP $CPPFLAGS'
6408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6414 case " $WARN_CFLAGS " in
6415 *" -Wmissing-prototypes "*)
6416 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
6422 for ac_func in dladdr
6424 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
6425 if test "x
$ac_cv_func_dladdr" = x""yes; then :
6426 cat >>confdefs.h <<_ACEOF
6427 #define HAVE_DLADDR 1
6436 # Check for presence and size of long long.
6437 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
6438 if test "x
$ac_cv_type_long_long" = x""yes; then :
6440 cat >>confdefs.h <<_ACEOF
6441 #define HAVE_LONG_LONG 1
6444 # The cast to long int works around a bug in the HP C Compiler
6445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6447 # This bug is HP SR number 8606223364.
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
6449 $as_echo_n "checking size of long long...
" >&6; }
6450 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6451 $as_echo_n "(cached
) " >&6
6453 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
6456 if test "$ac_cv_type_long_long" = yes; then
6457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
6458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6459 { as_fn_set_status 77
6460 as_fn_error "cannot compute sizeof (long long)
6461 See \`config.log' for more details.
" "$LINENO" 5; }; }
6463 ac_cv_sizeof_long_long=0
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
6469 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6473 cat >>confdefs.h <<_ACEOF
6474 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6481 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "ac_cv_have_decl_basename_char_p_
" "$ac_includes_default"
6482 if test "x
$ac_cv_have_decl_basename_char_p_" = x""yes; then :
6488 cat >>confdefs.h <<_ACEOF
6489 #define HAVE_DECL_BASENAME $ac_have_decl
6491 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
6492 if test "x
$ac_cv_have_decl_ffs" = x""yes; then :
6498 cat >>confdefs.h <<_ACEOF
6499 #define HAVE_DECL_FFS $ac_have_decl
6501 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
6502 if test "x
$ac_cv_have_decl_asprintf" = x""yes; then :
6508 cat >>confdefs.h <<_ACEOF
6509 #define HAVE_DECL_ASPRINTF $ac_have_decl
6511 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6512 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6518 cat >>confdefs.h <<_ACEOF
6519 #define HAVE_DECL_VASPRINTF $ac_have_decl
6521 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
6522 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then :
6528 cat >>confdefs.h <<_ACEOF
6529 #define HAVE_DECL_SNPRINTF $ac_have_decl
6531 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6532 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6538 cat >>confdefs.h <<_ACEOF
6539 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6542 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
6543 if test "x
$ac_cv_have_decl_strtol" = x""yes; then :
6549 cat >>confdefs.h <<_ACEOF
6550 #define HAVE_DECL_STRTOL $ac_have_decl
6552 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
6553 if test "x
$ac_cv_have_decl_strtoul" = x""yes; then :
6559 cat >>confdefs.h <<_ACEOF
6560 #define HAVE_DECL_STRTOUL $ac_have_decl
6562 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
6563 if test "x
$ac_cv_have_decl_strtoll" = x""yes; then :
6569 cat >>confdefs.h <<_ACEOF
6570 #define HAVE_DECL_STRTOLL $ac_have_decl
6572 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
6573 if test "x
$ac_cv_have_decl_strtoull" = x""yes; then :
6579 cat >>confdefs.h <<_ACEOF
6580 #define HAVE_DECL_STRTOULL $ac_have_decl
6583 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
6584 if test "x
$ac_cv_have_decl_strverscmp" = x""yes; then :
6590 cat >>confdefs.h <<_ACEOF
6591 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6596 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
6597 if test "x
$ac_cv_have_decl_strerror" = x""yes; then :
6603 cat >>confdefs.h <<_ACEOF
6604 #define HAVE_DECL_STRERROR $ac_have_decl
6606 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
6607 if test "x
$ac_cv_have_decl_perror" = x""yes; then :
6613 cat >>confdefs.h <<_ACEOF
6614 #define HAVE_DECL_PERROR $ac_have_decl
6616 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6617 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6623 cat >>confdefs.h <<_ACEOF
6624 #define HAVE_DECL_VASPRINTF $ac_have_decl
6626 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6627 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6633 cat >>confdefs.h <<_ACEOF
6634 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6638 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
6639 if test "x
$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6641 cat >>confdefs.h <<_ACEOF
6642 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6647 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
6648 if test "x
$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6650 cat >>confdefs.h <<_ACEOF
6651 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6658 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
6659 #include <sys/socket.h>
6662 if test "x
$ac_cv_type_socklen_t" = x""yes; then :
6664 cat >>confdefs.h <<_ACEOF
6665 #define HAVE_SOCKLEN_T 1
6674 # Starting with NDK version 9, <elf.h> actually includes definitions
6675 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
6676 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
6677 # leading to conflicts with the defintions from <linux/elf.h>.
6678 # This makes it impossible for us to include both <elf.h> and
6679 # <linux/elf.h>, which means that, in practice, we do not have
6680 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
6681 # Therefore, do not try to auto-detect availability, as it would
6682 # get it wrong on this platform.
6685 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
6688 if test "x
$ac_cv_type_Elf32_auxv_t" = x""yes; then :
6690 cat >>confdefs.h <<_ACEOF
6691 #define HAVE_ELF32_AUXV_T 1
6696 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
6699 if test "x
$ac_cv_type_Elf64_auxv_t" = x""yes; then :
6701 cat >>confdefs.h <<_ACEOF
6702 #define HAVE_ELF64_AUXV_T 1
6712 # Check whether --with-pkgversion was given.
6713 if test "${with_pkgversion+set}" = set; then :
6714 withval=$with_pkgversion; case "$withval" in
6715 yes) as_fn_error "package version not specified
" "$LINENO" 5 ;;
6717 *) PKGVERSION="($withval) " ;;
6728 # Check whether --with-bugurl was given.
6729 if test "${with_bugurl+set}" = set; then :
6730 withval=$with_bugurl; case "$withval" in
6731 yes) as_fn_error "bug URL not specified
" "$LINENO" 5 ;;
6734 *) BUGURL="$withval"
6738 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
6748 REPORT_BUGS_TO="<$BUGURL>"
6749 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6756 cat >>confdefs.h <<_ACEOF
6757 #define PKGVERSION "$PKGVERSION"
6761 cat >>confdefs.h <<_ACEOF
6762 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6766 # Check for various supplementary target information (beyond the
6767 # triplet) which might affect the choices in configure.srv.
6769 i[34567]86-*-linux*)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
6771 $as_echo_n "checking
if building
for x86-64...
" >&6; }
6772 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
6773 $as_echo_n "(cached
) " >&6
6775 save_CPPFLAGS="$CPPFLAGS"
6776 CPPFLAGS="$CPPFLAGS $CFLAGS"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6785 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6786 $EGREP "got it
" >/dev/null 2>&1; then :
6787 gdb_cv_i386_is_x86_64=yes
6789 gdb_cv_i386_is_x86_64=no
6793 CPPFLAGS="$save_CPPFLAGS"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
6796 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
6800 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
6801 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
6802 $as_echo_n "(cached
) " >&6
6804 save_CPPFLAGS="$CPPFLAGS"
6805 CPPFLAGS="$CPPFLAGS $CFLAGS"
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6809 #ifdef __mcoldfire__
6814 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6815 $EGREP "got it
" >/dev/null 2>&1; then :
6816 gdb_cv_m68k_is_coldfire=yes
6818 gdb_cv_m68k_is_coldfire=no
6822 CPPFLAGS="$save_CPPFLAGS"
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
6825 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
6829 . ${srcdir}/configure.srv
6831 # Add in the common host objects.
6832 . ${srcdir}/../common/common.host
6833 srv_host_obs="$common_host_obs"
6835 if test "${srv_mingwce}" = "yes"; then
6837 elif test "${srv_mingw}" = "yes"; then
6838 LIBS="$LIBS -lws2_32"
6839 elif test "${srv_qnx}" = "yes"; then
6840 LIBS="$LIBS -lsocket"
6841 elif test "${srv_lynxos}" = "yes"; then
6842 LIBS="$LIBS -lnetinet"
6845 if test "${srv_mingw}" = "yes"; then
6847 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6851 if test "${srv_linux_usrregs}" = "yes"; then
6853 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
6857 if test "${srv_linux_regsets}" = "yes"; then
6859 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
6863 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
6864 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
6867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 #include <sys/ptrace.h>
6878 if ac_fn_c_try_compile
"$LINENO"; then :
6879 gdbsrv_cv_have_ptrace_getregs
=yes
6881 gdbsrv_cv_have_ptrace_getregs
=no
6883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
6887 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
6888 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
6890 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
6895 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
6896 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901 #include <sys/ptrace.h>
6910 if ac_fn_c_try_compile
"$LINENO"; then :
6911 gdbsrv_cv_have_ptrace_getfpxregs
=yes
6913 gdbsrv_cv_have_ptrace_getfpxregs
=no
6915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
6919 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
6920 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
6922 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
6927 if test "${srv_linux_btrace}" = "yes"; then
6929 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
6933 if test "$ac_cv_header_sys_procfs_h" = yes; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
6935 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
6936 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6943 /* Needed for new procfs interface on sparc-solaris. */
6944 #define _STRUCTURED_PROC 1
6945 #include <sys/procfs.h>
6954 if ac_fn_c_try_compile
"$LINENO"; then :
6955 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
6957 bfd_cv_have_sys_procfs_type_lwpid_t
=no
6960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6963 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
6965 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
6969 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
6972 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
6973 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
6974 $as_echo_n "(cached) " >&6
6976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6980 /* Needed for new procfs interface on sparc-solaris. */
6981 #define _STRUCTURED_PROC 1
6982 #include <sys/procfs.h>
6991 if ac_fn_c_try_compile
"$LINENO"; then :
6992 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
6994 bfd_cv_have_sys_procfs_type_psaddr_t
=no
6997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7000 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7002 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
7006 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
7009 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
7010 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7017 /* Needed for new procfs interface on sparc-solaris. */
7018 #define _STRUCTURED_PROC 1
7019 #include <sys/procfs.h>
7028 if ac_fn_c_try_compile
"$LINENO"; then :
7029 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7031 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7037 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7039 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
7043 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
7046 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
7047 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7054 /* Needed for new procfs interface on sparc-solaris. */
7055 #define _STRUCTURED_PROC 1
7056 #include <sys/procfs.h>
7065 if ac_fn_c_try_compile
"$LINENO"; then :
7066 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7068 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7074 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7076 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
7080 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
7083 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
7084 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7091 /* Needed for new procfs interface on sparc-solaris. */
7092 #define _STRUCTURED_PROC 1
7093 #include <sys/procfs.h>
7102 if ac_fn_c_try_compile
"$LINENO"; then :
7103 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
7105 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
7108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7111 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
7113 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
7117 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
7121 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
7123 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
7124 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
7125 $as_echo_n "(cached) " >&6
7127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7130 #include <thread_db.h>
7139 if ac_fn_c_try_compile
"$LINENO"; then :
7140 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
7142 gdbserver_cv_have_thread_db_type_lwpid_t
=no
7145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7148 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
7150 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
7154 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
7158 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
7160 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
7161 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7167 #include <thread_db.h>
7176 if ac_fn_c_try_compile
"$LINENO"; then :
7177 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
7179 gdbserver_cv_have_thread_db_type_psaddr_t
=no
7182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7185 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
7187 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
7191 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7197 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7198 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7199 $as_echo_n "(cached) " >&6
7201 ac_check_lib_save_LIBS
=$LIBS
7203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7206 /* Override any GCC internal prototype to avoid an error.
7207 Use char because int might match the return type of a GCC
7208 builtin and then its argument prototype would still apply. */
7221 if ac_fn_c_try_link
"$LINENO"; then :
7222 ac_cv_lib_dl_dlopen
=yes
7224 ac_cv_lib_dl_dlopen
=no
7226 rm -f core conftest.err conftest.
$ac_objext \
7227 conftest
$ac_exeext conftest.
$ac_ext
7228 LIBS
=$ac_check_lib_save_LIBS
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7231 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7232 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
7233 cat >>confdefs.h
<<_ACEOF
7234 #define HAVE_LIBDL 1
7243 srv_thread_depfiles
=
7246 if test "$srv_linux_thread_db" = "yes"; then
7247 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
7250 $as_echo_n "checking for the dynamic export flag... " >&6; }
7251 old_LDFLAGS
="$LDFLAGS"
7252 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
7254 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
7255 LDFLAGS
="$LDFLAGS $RDYNAMIC"
7256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7267 if ac_fn_c_try_link
"$LINENO"; then :
7268 found
="-Wl,--dynamic-list"
7269 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
7271 RDYNAMIC
="-rdynamic"
7272 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
7273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7284 if ac_fn_c_try_link
"$LINENO"; then :
7290 rm -f core conftest.err conftest.
$ac_objext \
7291 conftest
$ac_exeext conftest.
$ac_ext
7293 rm -f core conftest.err conftest.
$ac_objext \
7294 conftest
$ac_exeext conftest.
$ac_ext
7296 LDFLAGS
="$old_LDFLAGS"
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
7298 $as_echo "$found" >&6; }
7300 srv_libs
="-lthread_db"
7303 srv_thread_depfiles
="thread-db.o proc-service.o"
7305 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
7308 $as_echo_n "checking for TD_VERSION... " >&6; }
7309 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 #include <thread_db.h>
7323 if ac_fn_c_try_compile
"$LINENO"; then :
7324 gdbsrv_cv_have_td_version
=yes
7326 gdbsrv_cv_have_td_version
=no
7328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
7331 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
7332 if test $gdbsrv_cv_have_td_version = yes; then
7334 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
7340 # Check whether --with-libthread-db was given.
7341 if test "${with_libthread_db+set}" = set; then :
7342 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
7343 srv_libs
="$srv_libthread_db_path"
7348 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
7350 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
7354 if test "$srv_xmlfiles" != ""; then
7355 srv_xmlbuiltin
="xml-builtin.o"
7357 $as_echo "#define USE_XML 1" >>confdefs.h
7360 tmp_xmlfiles
=$srv_xmlfiles
7362 for f
in $tmp_xmlfiles; do
7363 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
7367 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
7368 GDBSERVER_LIBS
="$srv_libs"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
7371 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
7372 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7382 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
7387 if ac_fn_c_try_link
"$LINENO"; then :
7388 gdbsrv_cv_have_sync_builtins
=yes
7390 gdbsrv_cv_have_sync_builtins
=no
7392 rm -f core conftest.err conftest.
$ac_objext \
7393 conftest
$ac_exeext conftest.
$ac_ext
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
7396 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
7397 if test $gdbsrv_cv_have_sync_builtins = yes; then
7399 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
7403 saved_cflags
="$CFLAGS"
7404 CFLAGS
="$CFLAGS -fvisibility=hidden"
7405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7416 if ac_fn_c_try_compile
"$LINENO"; then :
7417 gdbsrv_cv_have_visibility_hidden
=yes
7419 gdbsrv_cv_have_visibility_hidden
=no
7421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7422 CFLAGS
="$saved_cflags"
7424 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7426 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
7432 cat >>confdefs.h
<<_ACEOF
7433 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7437 if test "$cross_compiling" = yes; then :
7438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #include <sys/personality.h>
7445 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7446 # define ADDR_NO_RANDOMIZE 0x0040000
7448 /* Test the flag could be set and stays set. */
7449 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7450 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7456 if ac_fn_c_try_link
"$LINENO"; then :
7457 gdbsrv_cv_have_personality
=true
7459 gdbsrv_cv_have_personality
=false
7461 rm -f core conftest.err conftest.
$ac_objext \
7462 conftest
$ac_exeext conftest.
$ac_ext
7464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 #include <sys/personality.h>
7471 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7472 # define ADDR_NO_RANDOMIZE 0x0040000
7474 /* Test the flag could be set and stays set. */
7475 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7476 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7482 if ac_fn_c_try_run
"$LINENO"; then :
7483 gdbsrv_cv_have_personality
=true
7485 gdbsrv_cv_have_personality
=false
7487 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7488 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7491 if $gdbsrv_cv_have_personality
7494 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7502 # check whether to enable the inprocess agent
7503 if test "$ipa_obj" != "" \
7504 -a "$gdbsrv_cv_have_sync_builtins" = yes \
7505 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
7511 # Check whether --enable-inprocess-agent was given.
7512 if test "${enable_inprocess_agent+set}" = set; then :
7513 enableval
=$enable_inprocess_agent; case "$enableval" in
7514 yes) want_ipa
=true
;;
7515 no
) want_ipa
=false
;;
7516 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
7525 IPA_DEPFILES
="$ipa_obj"
7526 extra_libraries
="$extra_libraries libinproctrace.so"
7528 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
7539 GNULIB
=build-gnulib-gdbserver
/import
7542 if test x
"$STDINT_H" != x
; then
7543 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
7547 ac_config_files
="$ac_config_files Makefile"
7550 cat >confcache
<<\_ACEOF
7551 # This file is a shell script that caches the results of configure
7552 # tests run on this system so they can be shared between configure
7553 # scripts and configure runs, see configure's option --config-cache.
7554 # It is not useful on other systems. If it contains results you don't
7555 # want to keep, you may remove or edit it.
7557 # config.status only pays attention to the cache file if you give it
7558 # the --recheck option to rerun configure.
7560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7566 # The following way of writing the cache mishandles newlines in values,
7567 # but we know of no workaround that is simple, portable, and efficient.
7568 # So, we kill variables containing newlines.
7569 # Ultrix sh set writes to stderr and can't be redirected directly,
7570 # and sets the high bit in the cache file unless we assign to the vars.
7572 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7573 eval ac_val
=\$
$ac_var
7577 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7581 _ | IFS | as_nl
) ;; #(
7582 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7583 *) { eval $ac_var=; unset $ac_var;} ;;
7589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7590 *${as_nl}ac_space
=\
*)
7591 # `set' does not quote correctly, so add quotes: double-quote
7592 # substitution turns \\\\ into \\, and sed turns \\ into \.
7595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7598 # `set' quotes correctly as required by POSIX, so do not add quotes.
7599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7612 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7613 if test -w "$cache_file"; then
7614 test "x$cache_file" != "x/dev/null" &&
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7616 $as_echo "$as_me: updating cache $cache_file" >&6;}
7617 cat confcache
>$cache_file
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7620 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7625 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7626 # Let make expand exec_prefix.
7627 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7629 DEFS
=-DHAVE_CONFIG_H
7633 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7634 # 1. Remove the extension, and $U if already installed.
7635 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7636 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7637 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7638 # will be set to the directory where LIBOBJS objects are built.
7639 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7640 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7644 LTLIBOBJS
=$ac_ltlibobjs
7647 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7648 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
7649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7651 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
7652 as_fn_error
"conditional \"GMAKE\" was never defined.
7653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7656 : ${CONFIG_STATUS=./config.status}
7658 ac_clean_files_save
=$ac_clean_files
7659 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7661 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7663 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7665 # Generated by $as_me.
7666 # Run this file to recreate the current configuration.
7667 # Compiler output produced by configure, useful for debugging
7668 # configure, is in config.log if it exists.
7674 SHELL=\${CONFIG_SHELL-$SHELL}
7677 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7678 ## -------------------- ##
7679 ## M4sh Initialization. ##
7680 ## -------------------- ##
7682 # Be more Bourne compatible
7683 DUALCASE
=1; export DUALCASE
# for MKS sh
7684 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7688 # is contrary to our usage. Disable this feature.
7689 alias -g '${1+"$@"}'='"$@"'
7690 setopt NO_GLOB_SUBST
7692 case `(set -o) 2>/dev/null` in #(
7704 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7705 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7706 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7708 # Prefer a ksh shell builtin over an external printf program on Solaris,
7709 # but without wasting forks for bash or zsh.
7710 if test -z "$BASH_VERSION$ZSH_VERSION" \
7711 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7712 as_echo='print
-r --'
7713 as_echo_n='print
-rn --'
7714 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7715 as_echo='printf %s
\n'
7716 as_echo_n='printf %s
'
7718 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7719 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7720 as_echo_n='/usr
/ucb
/echo -n'
7722 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7723 as_echo_n_body='eval
7727 expr "X$arg" : "X\\(.*\\)$as_nl";
7728 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7730 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7732 export as_echo_n_body
7733 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7736 as_echo='sh
-c $as_echo_body as_echo
'
7739 # The user is always right.
7740 if test "${PATH_SEPARATOR+set}" != set; then
7742 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7743 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7750 # We need space, tab and new line, in precisely that order. Quoting is
7751 # there to prevent editors from complaining about space-tab.
7752 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7753 # splitting by setting IFS to empty value.)
7756 # Find who we are. Look in the path if we contain no directory separator.
7758 *[\\/]* ) as_myself=$0 ;;
7759 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir=.
7764 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7770 # We did not find ourselves, most probably we were run as `sh COMMAND'
7771 # in which case we are not to be found in the path.
7772 if test "x$as_myself" = x
; then
7775 if test ! -f "$as_myself"; then
7776 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7780 # Unset variables that we do not need and which cause bugs (e.g. in
7781 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7782 # suppresses any "Segmentation fault" message there. '((' could
7783 # trigger a bug in pdksh 5.2.14.
7784 for as_var
in BASH_ENV ENV MAIL MAILPATH
7785 do eval test x\
${$as_var+set} = xset \
7786 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7799 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7802 # as_fn_error ERROR [LINENO LOG_FD]
7803 # ---------------------------------
7804 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7805 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7806 # script with status $?, using 1 if that was 0.
7809 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7811 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7812 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7814 $as_echo "$as_me: error: $1" >&2
7815 as_fn_exit
$as_status
7819 # as_fn_set_status STATUS
7820 # -----------------------
7821 # Set $? to STATUS, without forking.
7825 } # as_fn_set_status
7829 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7839 # Portably unset VAR.
7842 { eval $1=; unset $1;}
7844 as_unset
=as_fn_unset
7845 # as_fn_append VAR VALUE
7846 # ----------------------
7847 # Append the text in VALUE to the end of the definition contained in VAR. Take
7848 # advantage of any shell optimizations that allow amortized linear growth over
7849 # repeated appends, instead of the typical quadratic growth present in naive
7851 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7852 eval 'as_fn_append ()
7863 # as_fn_arith ARG...
7864 # ------------------
7865 # Perform arithmetic evaluation on the ARGs, and store the result in the
7866 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7867 # must be portable across $(()) and expr.
7868 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7869 eval 'as_fn_arith ()
7876 as_val
=`expr "$@" || test $? -eq 1`
7881 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7882 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7888 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7889 as_basename
=basename
7894 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7900 as_me
=`$as_basename -- "$0" ||
7901 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7902 X"$0" : 'X\(//\)$' \| \
7903 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7905 sed '/^.*\/\([^/][^/]*\)\/*$/{
7919 # Avoid depending upon Character Ranges.
7920 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7921 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7922 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7923 as_cr_digits
='0123456789'
7924 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7926 ECHO_C
= ECHO_N
= ECHO_T
=
7927 case `echo -n x` in #(((((
7929 case `echo 'xy\c'` in
7930 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7932 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7939 rm -f conf$$ conf$$.exe conf$$.
file
7940 if test -d conf$$.dir
; then
7941 rm -f conf$$.dir
/conf$$.
file
7944 mkdir conf$$.dir
2>/dev
/null
7946 if (echo >conf$$.
file) 2>/dev
/null
; then
7947 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7949 # ... but there are two gotchas:
7950 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7951 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7952 # In both cases, we have to default to `cp -p'.
7953 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7955 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7963 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7964 rmdir conf$$.dir
2>/dev
/null
7969 # Create "$as_dir" as a directory, including parents if necessary.
7974 -*) as_dir
=.
/$as_dir;;
7976 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7980 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7981 *) as_qdir
=$as_dir;;
7983 as_dirs
="'$as_qdir' $as_dirs"
7984 as_dir
=`$as_dirname -- "$as_dir" ||
7985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7986 X"$as_dir" : 'X\(//\)[^/]' \| \
7987 X"$as_dir" : 'X\(//\)$' \| \
7988 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7989 $as_echo X"$as_dir" |
7990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8007 test -d "$as_dir" && break
8009 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8010 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8014 if mkdir
-p .
2>/dev
/null
; then
8015 as_mkdir_p
='mkdir -p "$as_dir"'
8017 test -d .
/-p && rmdir .
/-p
8021 if test -x / >/dev
/null
2>&1; then
8024 if ls -dL / >/dev
/null
2>&1; then
8031 if test -d "$1"; then
8037 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8038 ???[sx]*):;;*)false;;esac;fi
8042 as_executable_p
=$as_test_x
8044 # Sed expression to map a string onto a valid CPP name.
8045 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8047 # Sed expression to map a string onto a valid variable name.
8048 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8052 ## ----------------------------------- ##
8053 ## Main body of $CONFIG_STATUS script. ##
8054 ## ----------------------------------- ##
8056 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8059 # Save the log message, to keep $0 and so on meaningful, and to
8060 # report actual input values of CONFIG_FILES etc. instead of their
8061 # values after options handling.
8063 This file was extended by $as_me, which was
8064 generated by GNU Autoconf 2.64. Invocation command line was
8066 CONFIG_FILES = $CONFIG_FILES
8067 CONFIG_HEADERS = $CONFIG_HEADERS
8068 CONFIG_LINKS = $CONFIG_LINKS
8069 CONFIG_COMMANDS = $CONFIG_COMMANDS
8072 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8077 case $ac_config_files in *"
8078 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8081 case $ac_config_headers in *"
8082 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8087 # Files that config.status was made for.
8088 config_files="$ac_config_files"
8089 config_headers="$ac_config_headers"
8090 config_commands="$ac_config_commands"
8094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8096 \`$as_me' instantiates files and other configuration actions
8097 from templates according to the current configuration. Unless the files
8098 and actions are specified as TAGs, all are instantiated by default.
8100 Usage: $0 [OPTION]... [TAG]...
8102 -h, --help print this help, then exit
8103 -V, --version print version number and configuration settings, then exit
8104 -q, --quiet, --silent
8105 do not print progress messages
8106 -d, --debug don't remove temporary files
8107 --recheck update $as_me by reconfiguring in the same conditions
8108 --file=FILE[:TEMPLATE]
8109 instantiate the configuration file FILE
8110 --header=FILE[:TEMPLATE]
8111 instantiate the configuration header FILE
8113 Configuration files:
8116 Configuration headers:
8119 Configuration commands:
8122 Report bugs to the package provider."
8125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8128 configured by $0, generated by GNU Autoconf 2.64,
8129 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8131 Copyright (C) 2009 Free Software Foundation, Inc.
8132 This config.status script is free software; the Free Software Foundation
8133 gives unlimited permission to copy, distribute and modify it."
8138 test -n "\$AWK" || AWK=awk
8141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8142 # The default lists apply if the user does not specify any file.
8148 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8149 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8160 # Handling of the options.
8161 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8163 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8164 $as_echo "$ac_cs_version"; exit ;;
8165 --debug |
--debu |
--deb |
--de |
--d |
-d )
8167 --file |
--fil |
--fi |
--f )
8170 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8172 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8173 ac_need_defaults
=false
;;
8174 --header |
--heade |
--head |
--hea )
8177 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8179 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8180 ac_need_defaults
=false
;;
8182 # Conflict between --help and --header
8183 as_fn_error
"ambiguous option: \`$1'
8184 Try \`$0 --help' for more information.";;
8185 --help |
--hel |
-h )
8186 $as_echo "$ac_cs_usage"; exit ;;
8187 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8188 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8192 -*) as_fn_error
"unrecognized option: \`$1'
8193 Try \`$0 --help' for more information." ;;
8195 *) as_fn_append ac_config_targets
" $1"
8196 ac_need_defaults
=false
;;
8202 ac_configure_extra_args
=
8204 if $ac_cs_silent; then
8206 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8211 if \$ac_cs_recheck; then
8212 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8214 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8215 CONFIG_SHELL='$SHELL'
8221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8225 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8226 ## Running $as_me. ##
8232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8236 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8242 # Handling of arguments.
8243 for ac_config_target
in $ac_config_targets
8245 case $ac_config_target in
8246 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8247 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8248 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8250 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8255 # If the user did not use the arguments to specify the items to instantiate,
8256 # then the envvar interface is used. Set only those that are not.
8257 # We use the long form for the default assignment because of an extremely
8258 # bizarre bug on SunOS 4.1.3.
8259 if $ac_need_defaults; then
8260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8265 # Have a temporary directory for convenience. Make it in the build tree
8266 # simply because there is no reason against having it here, and in addition,
8267 # creating and moving files from /tmp can sometimes cause problems.
8268 # Hook for its removal unless debugging.
8269 # Note that there is a small window in which the directory will not be cleaned:
8270 # after its creation but before its name has been assigned to `$tmp'.
8274 trap 'exit_status=$?
8275 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8277 trap 'as_fn_exit 1' 1 2 13 15
8279 # Create a (secure) tmp directory for tmp files.
8282 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8283 test -n "$tmp" && test -d "$tmp"
8286 tmp
=.
/conf$$
-$RANDOM
8287 (umask 077 && mkdir
"$tmp")
8288 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8290 # Set up the scripts for CONFIG_FILES section.
8291 # No need to generate them if there are no CONFIG_FILES.
8292 # This happens for instance with `./config.status config.h'.
8293 if test -n "$CONFIG_FILES"; then
8296 ac_cr
=`echo X | tr X '\015'`
8297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8298 # But we know of no other shell where ac_cr would be empty at this
8299 # point, so we can use a bashism as a fallback.
8300 if test "x$ac_cr" = x
; then
8301 eval ac_cr
=\$
\'\\r
\'
8303 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8310 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8315 echo "cat >conf$$subs.awk <<_ACEOF" &&
8316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8319 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8322 for ac_last_try in false false false false false :; do
8323 . ./conf$$subs.sh ||
8324 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8326 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8327 if test $ac_delim_n = $ac_delim_num; then
8329 elif $ac_last_try; then
8330 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8332 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8338 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8342 s/^/S["/; s
/!.
*/"]=/
8352 s/\(.\{148\}\).*/\1/
8354 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8359 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8366 s/\(.\{148\}\).*/\1/
8368 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8372 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8377 ' <conf$$subs.awk | sed '
8382 ' >>$CONFIG_STATUS || ac_write_fail=1
8383 rm -f conf$$subs.awk
8384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8386 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8387 for (key in S) S_is_set[key] = 1
8393 nfields = split(line, field, "@
")
8395 len = length(field[1])
8396 for (i = 2; i < nfields; i++) {
8398 keylen = length(key)
8399 if (S_is_set[key]) {
8401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8402 len += length(value) + length(field[++i])
8413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8414 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8415 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8418 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8419 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8422 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8423 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8424 # trailing colons and then remove the whole line if VPATH becomes empty
8425 # (actually we leave an empty line to preserve line numbers).
8426 if test "x
$srcdir" = x.; then
8427 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8431 s/^\([^=]*=[ ]*\):*/\1/
8437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8438 fi # test -n "$CONFIG_FILES"
8440 # Set up the scripts for CONFIG_HEADERS section.
8441 # No need to generate them if there are no CONFIG_HEADERS.
8442 # This happens for instance with `./config.status Makefile'.
8443 if test -n "$CONFIG_HEADERS"; then
8444 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8448 # Transform confdefs.h into an awk script `defines.awk', embedded as
8449 # here-document in config.status, that substitutes the proper values into
8450 # config.h.in to produce config.h.
8452 # Create a delimiter string that does not exist in confdefs.h, to ease
8453 # handling of long lines.
8455 for ac_last_try in false false :; do
8456 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8457 if test -z "$ac_t"; then
8459 elif $ac_last_try; then
8460 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8462 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8466 # For the awk script, D is an array of macro values keyed by name,
8467 # likewise P contains macro parameters if any. Preserve backslash
8468 # newline sequences.
8470 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8472 s/.\{148\}/&'"$ac_delim"'/g
8475 s/^[ ]*#[ ]*define[ ][ ]*/ /
8482 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8484 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8489 D["\
1"]=" \
3\\\\\\n
"\\/p
8491 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8496 s/.\{148\}/&'"$ac_delim"'/g
8501 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8504 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8506 ' <confdefs.h | sed '
8507 s/'"$ac_delim"'/"\\\
8508 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8511 for (key in D) D_is_set[key] = 1
8514 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8516 split(line, arg, " ")
8517 if (arg[1] == "#") {
8521 defundef
= substr
(arg
[1], 2)
8524 split(mac1
, mac2
, "(") #)
8526 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8527 if (D_is_set
[macro
]) {
8528 # Preserve the white space surrounding the "#".
8529 print prefix
"define", macro P
[macro
] D
[macro
]
8532 # Replace #undef with comments. This is necessary, for example,
8533 # in the case of _POSIX_SOURCE, which is predefined and required
8534 # on some systems where configure will not decide to define it.
8535 if (defundef
== "undef") {
8536 print
"/*", prefix defundef
, macro
, "*/"
8544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8545 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8546 fi # test -n "$CONFIG_HEADERS"
8549 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8554 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8556 case $ac_mode$ac_tag in
8558 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8559 :[FH
]-) ac_tag
=-:-;;
8560 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8577 -) ac_f
="$tmp/stdin";;
8578 *) # Look for the file first in the build tree, then in the source tree
8579 # (if the path is not absolute). The absolute path cannot be DOS-style,
8580 # because $ac_f cannot contain `:'.
8584 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8586 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8588 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8589 as_fn_append ac_file_inputs
" '$ac_f'"
8592 # Let's still pretend it is `configure' which instantiates (i.e., don't
8593 # use $as_me), people would be surprised to read:
8594 # /* config.h. Generated by config.status. */
8595 configure_input
='Generated from '`
8596 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8598 if test x
"$ac_file" != x-
; then
8599 configure_input
="$ac_file. $configure_input"
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8601 $as_echo "$as_me: creating $ac_file" >&6;}
8603 # Neutralize special characters interpreted by sed in replacement strings.
8604 case $configure_input in #(
8605 *\
&* |
*\|
* |
*\\* )
8606 ac_sed_conf_input
=`$as_echo "$configure_input" |
8607 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8608 *) ac_sed_conf_input
=$configure_input;;
8612 *:-:* |
*:-) cat >"$tmp/stdin" \
8613 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8618 ac_dir
=`$as_dirname -- "$ac_file" ||
8619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8620 X"$ac_file" : 'X\(//\)[^/]' \| \
8621 X"$ac_file" : 'X\(//\)$' \| \
8622 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8623 $as_echo X"$ac_file" |
8624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8641 as_dir
="$ac_dir"; as_fn_mkdir_p
8645 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8647 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8648 # A ".." for each directory in $ac_dir_suffix.
8649 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8650 case $ac_top_builddir_sub in
8651 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8652 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8655 ac_abs_top_builddir
=$ac_pwd
8656 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8657 # for backward compatibility:
8658 ac_top_builddir
=$ac_top_build_prefix
8661 .
) # We are building in place.
8663 ac_top_srcdir
=$ac_top_builddir_sub
8664 ac_abs_top_srcdir
=$ac_pwd ;;
8665 [\\/]* | ?
:[\\/]* ) # Absolute name.
8666 ac_srcdir
=$srcdir$ac_dir_suffix;
8667 ac_top_srcdir
=$srcdir
8668 ac_abs_top_srcdir
=$srcdir ;;
8670 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8671 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8672 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8674 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8684 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8685 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8690 # If the template does not know about datarootdir, expand it.
8691 # FIXME: This hack should be removed a few years after 2.60.
8692 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8703 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8704 *datarootdir
*) ac_datarootdir_seen
=yes;;
8705 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8707 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8710 ac_datarootdir_hack='
8711 s&@datadir@&$datadir&g
8712 s&@docdir@&$docdir&g
8713 s&@infodir@&$infodir&g
8714 s&@localedir@&$localedir&g
8715 s&@mandir@&$mandir&g
8716 s&\\\${datarootdir}&$datarootdir&g' ;;
8720 # Neutralize VPATH when `$srcdir' = `.'.
8721 # Shell code in configure.ac might set extrasub.
8722 # FIXME: do we really want to maintain this feature?
8723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8724 ac_sed_extra="$ac_vpsub
8727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8729 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8730 s|@configure_input@|
$ac_sed_conf_input|
;t t
8731 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8732 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8733 s
&@srcdir@
&$ac_srcdir&;t t
8734 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8735 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8736 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8737 s
&@builddir@
&$ac_builddir&;t t
8738 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8739 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8740 s
&@INSTALL@
&$ac_INSTALL&;t t
8741 $ac_datarootdir_hack
8743 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8744 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8746 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8747 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8748 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8750 which seems to be undefined. Please make sure it is defined." >&5
8751 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8752 which seems to be undefined. Please make sure it is defined." >&2;}
8756 -) cat "$tmp/out" && rm -f "$tmp/out";;
8757 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8759 || as_fn_error "could not create $ac_file" "$LINENO" 5
8765 if test x"$ac_file" != x-; then
8767 $as_echo "/* $configure_input */" \
8768 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8769 } >"$tmp/config.h" \
8770 || as_fn_error "could not create $ac_file" "$LINENO" 5
8771 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8773 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8776 mv "$tmp/config.h" "$ac_file" \
8777 || as_fn_error "could not create $ac_file" "$LINENO" 5
8780 $as_echo "/* $configure_input */" \
8781 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8782 || as_fn_error "could not create -" "$LINENO" 5
8786 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8787 $as_echo "$as_me: executing $ac_file commands" >&6;}
8792 case $ac_file$ac_mode in
8793 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8794 "Makefile":F) case x$CONFIG_HEADERS in
8795 xconfig.h:config.in)
8806 ac_clean_files=$ac_clean_files_save
8808 test $ac_write_fail = 0 ||
8809 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8812 # configure is writing to config.log, and then calls config.status.
8813 # config.status does its own redirection, appending to config.log.
8814 # Unfortunately, on DOS this fails, as config.log is still kept open
8815 # by configure, so config.status won't be able to
write to it
; its
8816 # output is simply discarded. So we exec the FD to /dev/null,
8817 # effectively closing config.log, so it can be properly (re)opened and
8818 # appended to by config.status. When coming back to configure, we
8819 # need to make the FD available again.
8820 if test "$no_create" != yes; then
8822 ac_config_status_args
=
8823 test "$silent" = yes &&
8824 ac_config_status_args
="$ac_config_status_args --quiet"
8826 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8828 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8829 # would make configure fail if this is the last instruction.
8830 $ac_cs_success || as_fn_exit $?
8832 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8834 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}