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
647 MAINTAINER_MODE_FALSE
676 program_transform_name
689 enable_option_checking
690 enable_maintainer_mode
697 enable_build_warnings
698 enable_gdb_build_warnings
702 enable_inprocess_agent
704 ac_precious_vars
='build_alias
718 # Initialize some variables set by options.
720 ac_init_version
=false
721 ac_unrecognized_opts
=
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
732 program_transform_name
=s
,x
,x
,
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir
='${exec_prefix}/bin'
747 sbindir
='${exec_prefix}/sbin'
748 libexecdir
='${exec_prefix}/libexec'
749 datarootdir
='${prefix}/share'
750 datadir
='${datarootdir}'
751 sysconfdir
='${prefix}/etc'
752 sharedstatedir
='${prefix}/com'
753 localstatedir
='${prefix}/var'
754 includedir
='${prefix}/include'
755 oldincludedir
='/usr/include'
756 docdir
='${datarootdir}/doc/${PACKAGE}'
757 infodir
='${datarootdir}/info'
762 libdir
='${exec_prefix}/lib'
763 localedir
='${datarootdir}/locale'
764 mandir
='${datarootdir}/man'
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\
$ac_option
778 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
788 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
790 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
793 -build |
--build |
--buil |
--bui |
--bu)
794 ac_prev
=build_alias
;;
795 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
796 build_alias
=$ac_optarg ;;
798 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
799 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
800 ac_prev
=cache_file
;;
801 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
802 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
803 cache_file
=$ac_optarg ;;
806 cache_file
=config.cache
;;
808 -datadir |
--datadir |
--datadi |
--datad)
810 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
811 datadir
=$ac_optarg ;;
813 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
814 |
--dataroo |
--dataro |
--datar)
815 ac_prev
=datarootdir
;;
816 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
817 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
818 datarootdir
=$ac_optarg ;;
820 -disable-* |
--disable-*)
821 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
824 as_fn_error
"invalid feature name: $ac_useropt"
825 ac_useropt_orig
=$ac_useropt
826 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
831 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
832 ac_unrecognized_sep
=', ';;
834 eval enable_
$ac_useropt=no
;;
836 -docdir |
--docdir |
--docdi |
--doc |
--do)
838 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
841 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
843 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
846 -enable-* |
--enable-*)
847 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
850 as_fn_error
"invalid feature name: $ac_useropt"
851 ac_useropt_orig
=$ac_useropt
852 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
857 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
858 ac_unrecognized_sep
=', ';;
860 eval enable_
$ac_useropt=\
$ac_optarg ;;
862 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
863 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
864 |
--exec |
--exe |
--ex)
865 ac_prev
=exec_prefix
;;
866 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
867 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
868 |
--exec=* |
--exe=* |
--ex=*)
869 exec_prefix
=$ac_optarg ;;
871 -gas |
--gas |
--ga |
--g)
872 # Obsolete; use --with-gas.
875 -help |
--help |
--hel |
--he |
-h)
877 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
878 ac_init_help
=recursive
;;
879 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
880 ac_init_help
=short
;;
882 -host |
--host |
--hos |
--ho)
883 ac_prev
=host_alias
;;
884 -host=* |
--host=* |
--hos=* |
--ho=*)
885 host_alias
=$ac_optarg ;;
887 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
889 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
891 htmldir
=$ac_optarg ;;
893 -includedir |
--includedir |
--includedi |
--included |
--include \
894 |
--includ |
--inclu |
--incl |
--inc)
895 ac_prev
=includedir
;;
896 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
897 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
898 includedir
=$ac_optarg ;;
900 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
902 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
903 infodir
=$ac_optarg ;;
905 -libdir |
--libdir |
--libdi |
--libd)
907 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
910 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
911 |
--libexe |
--libex |
--libe)
912 ac_prev
=libexecdir
;;
913 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
914 |
--libexe=* |
--libex=* |
--libe=*)
915 libexecdir
=$ac_optarg ;;
917 -localedir |
--localedir |
--localedi |
--localed |
--locale)
919 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
920 localedir
=$ac_optarg ;;
922 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
923 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
924 ac_prev
=localstatedir
;;
925 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
926 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
927 localstatedir
=$ac_optarg ;;
929 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
931 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
935 # Obsolete; use --without-fp.
938 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
939 |
--no-cr |
--no-c |
-n)
942 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
943 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
946 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
947 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
948 |
--oldin |
--oldi |
--old |
--ol |
--o)
949 ac_prev
=oldincludedir
;;
950 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
951 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
952 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
953 oldincludedir
=$ac_optarg ;;
955 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
957 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
960 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
961 |
--program-pre |
--program-pr |
--program-p)
962 ac_prev
=program_prefix
;;
963 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
964 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
965 program_prefix
=$ac_optarg ;;
967 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
968 |
--program-suf |
--program-su |
--program-s)
969 ac_prev
=program_suffix
;;
970 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
971 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
972 program_suffix
=$ac_optarg ;;
974 -program-transform-name |
--program-transform-name \
975 |
--program-transform-nam |
--program-transform-na \
976 |
--program-transform-n |
--program-transform- \
977 |
--program-transform |
--program-transfor \
978 |
--program-transfo |
--program-transf \
979 |
--program-trans |
--program-tran \
980 |
--progr-tra |
--program-tr |
--program-t)
981 ac_prev
=program_transform_name
;;
982 -program-transform-name=* |
--program-transform-name=* \
983 |
--program-transform-nam=* |
--program-transform-na=* \
984 |
--program-transform-n=* |
--program-transform-=* \
985 |
--program-transform=* |
--program-transfor=* \
986 |
--program-transfo=* |
--program-transf=* \
987 |
--program-trans=* |
--program-tran=* \
988 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
989 program_transform_name
=$ac_optarg ;;
991 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
993 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
996 -psdir |
--psdir |
--psdi |
--psd |
--ps)
998 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1001 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1002 |
-silent |
--silent |
--silen |
--sile |
--sil)
1005 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1007 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1009 sbindir
=$ac_optarg ;;
1011 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1012 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1013 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1015 ac_prev
=sharedstatedir
;;
1016 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1017 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1018 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1020 sharedstatedir
=$ac_optarg ;;
1022 -site |
--site |
--sit)
1024 -site=* |
--site=* |
--sit=*)
1027 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1029 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1030 srcdir
=$ac_optarg ;;
1032 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1033 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1034 ac_prev
=sysconfdir
;;
1035 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1036 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1037 sysconfdir
=$ac_optarg ;;
1039 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1040 ac_prev
=target_alias
;;
1041 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1042 target_alias
=$ac_optarg ;;
1044 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1047 -version |
--version |
--versio |
--versi |
--vers |
-V)
1048 ac_init_version
=: ;;
1051 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1054 as_fn_error
"invalid package name: $ac_useropt"
1055 ac_useropt_orig
=$ac_useropt
1056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1062 ac_unrecognized_sep
=', ';;
1064 eval with_
$ac_useropt=\
$ac_optarg ;;
1066 -without-* |
--without-*)
1067 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1070 as_fn_error
"invalid package name: $ac_useropt"
1071 ac_useropt_orig
=$ac_useropt
1072 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1077 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1078 ac_unrecognized_sep
=', ';;
1080 eval with_
$ac_useropt=no
;;
1083 # Obsolete; use --with-x.
1086 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1087 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1088 ac_prev
=x_includes
;;
1089 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1090 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1091 x_includes
=$ac_optarg ;;
1093 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1094 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1095 ac_prev
=x_libraries
;;
1096 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1097 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1098 x_libraries
=$ac_optarg ;;
1100 -*) as_fn_error
"unrecognized option: \`$ac_option'
1101 Try \`$0 --help' for more information."
1105 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 case $ac_envvar in #(
1108 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1109 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1111 eval $ac_envvar=\
$ac_optarg
1112 export $ac_envvar ;;
1115 # FIXME: should be removed in autoconf 3.0.
1116 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1118 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 if test -n "$ac_prev"; then
1126 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1127 as_fn_error
"missing argument to $ac_option"
1130 if test -n "$ac_unrecognized_opts"; then
1131 case $enable_option_checking in
1133 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1134 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1138 # Check all directory arguments for consistency.
1139 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val
=\$
$ac_var
1145 # Remove trailing slashes.
1148 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1149 eval $ac_var=\
$ac_val;;
1151 # Be sure to have absolute directory names.
1153 [\\/$
]* | ?
:[\\/]* ) continue;;
1154 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1156 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1159 # There might be people who depend on the old broken behavior: `$host'
1160 # used to hold the argument of --host etc.
1161 # FIXME: To remove some day.
1164 target
=$target_alias
1166 # FIXME: To remove some day.
1167 if test "x$host_alias" != x
; then
1168 if test "x$build_alias" = x
; then
1169 cross_compiling
=maybe
1170 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1171 If a cross compiler is detected then cross compile mode will be used." >&2
1172 elif test "x$build_alias" != "x$host_alias"; then
1178 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1180 test "$silent" = yes && exec 6>/dev
/null
1183 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1184 ac_ls_di
=`ls -di .` &&
1185 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1186 as_fn_error
"working directory cannot be determined"
1187 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1188 as_fn_error
"pwd does not report name of working directory"
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted
=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir
=`$as_dirname -- "$as_myself" ||
1196 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$as_myself" : 'X\(//\)[^/]' \| \
1198 X"$as_myself" : 'X\(//\)$' \| \
1199 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1200 $as_echo X"$as_myself" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1223 ac_srcdir_defaulted
=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1227 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1229 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1233 # When building in place, set srcdir=.
1234 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 # Remove unnecessary trailing slashes from srcdir.
1238 # Double slashes in file names in object file debugging info
1239 # mess up M-x gdb in Emacs.
1241 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 for ac_var
in $ac_precious_vars; do
1244 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1246 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1251 # Report the --help message.
1253 if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1257 \`configure' configures this package to adapt to many kinds of systems.
1259 Usage: $0 [OPTION]... [VAR=VALUE]...
1261 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262 VAR=VALUE. See below for descriptions of some of the useful variables.
1264 Defaults for the options are specified in brackets.
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
1271 -q, --quiet, --silent do not print \`checking...' messages
1272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for \`--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1277 Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
1279 [$ac_default_prefix]
1280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 By default, \`make install' will install all the files in
1284 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1285 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286 for instance \`--prefix=\$HOME'.
1288 For better control, use the options below.
1290 Fine tuning of the installation directories:
1291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --libdir=DIR object code libraries [EPREFIX/lib]
1298 --includedir=DIR C header files [PREFIX/include]
1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1302 --infodir=DIR info documentation [DATAROOTDIR/info]
1303 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1304 --mandir=DIR man documentation [DATAROOTDIR/man]
1305 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1306 --htmldir=DIR html documentation [DOCDIR]
1307 --dvidir=DIR dvi documentation [DOCDIR]
1308 --pdfdir=DIR pdf documentation [DOCDIR]
1309 --psdir=DIR ps documentation [DOCDIR]
1315 --program-prefix=PREFIX prepend PREFIX to installed program names
1316 --program-suffix=SUFFIX append SUFFIX to installed program names
1317 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1320 --build=BUILD configure
for building on BUILD
[guessed
]
1321 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1322 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1326 if test -n "$ac_init_help"; then
1331 --disable-option-checking ignore unrecognized
--enable/--with options
1332 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1333 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1334 --enable-maintainer-mode enable make rules and dependencies not useful
1335 (and sometimes confusing
) to the casual installer
1336 --disable-largefile omit support
for large files
1337 --enable-libmcheck Try linking with
-lmcheck if available
1338 --enable-werror treat compile warnings as errors
1339 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1340 --enable-gdb-build-warnings
1341 enable GDB specific build-time compiler warnings
if
1343 --enable-inprocess-agent
1347 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1348 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1349 --with-ust=PATH Specify prefix directory
for the installed UST package
1350 Equivalent to
--with-ust-include=PATH
/include
1351 plus
--with-ust-lib=PATH
/lib
1352 --with-ust-include=PATH Specify directory
for installed UST include files
1353 --with-ust-lib=PATH Specify the directory
for the installed UST library
1354 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1355 --with-bugurl=URL Direct users to URL to report a bug
1356 --with-libthread-db=PATH
1357 use given libthread_db directly
1359 Some influential environment variables
:
1360 CC C compiler
command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1363 nonstandard directory
<lib dir
>
1364 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1365 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1366 you have headers
in a nonstandard directory
<include dir
>
1367 CXX C
++ compiler
command
1368 CXXFLAGS C
++ compiler flags
1371 Use these variables to override the choices made by
`configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to the package provider.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" ||
1383 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1404 .) # We are building in place.
1406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
1409 ac_srcdir=$srcdir$ac_dir_suffix;
1410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419 cd "$ac_dir" || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f "$ac_srcdir/configure.gnu"; then
1423 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1424 elif test -f "$ac_srcdir/configure"; then
1426 $SHELL "$ac_srcdir/configure" --help=recursive
1428 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 cd "$ac_pwd" || { ac_status=$?; break; }
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1438 generated by GNU Autoconf 2.64
1440 Copyright (C) 2009 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1447 ## ------------------------ ##
1448 ## Autoconf initialization. ##
1449 ## ------------------------ ##
1451 # ac_fn_c_try_compile LINENO
1452 # --------------------------
1453 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1454 ac_fn_c_try_compile ()
1456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1457 rm -f conftest.$ac_objext
1458 if { { ac_try="$ac_compile"
1460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1461 *) ac_try_echo
=$ac_try;;
1463 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464 $as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_compile") 2>conftest.err
1467 if test -s conftest.err
; then
1468 grep -v '^ *+' conftest.err
>conftest.er1
1469 cat conftest.er1
>&5
1470 mv -f conftest.er1 conftest.err
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } && {
1474 test -z "$ac_c_werror_flag" ||
1475 test ! -s conftest.err
1476 } && test -s conftest.
$ac_objext; then :
1479 $as_echo "$as_me: failed program was:" >&5
1480 sed 's/^/| /' conftest.
$ac_ext >&5
1484 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1487 } # ac_fn_c_try_compile
1489 # ac_fn_cxx_try_compile LINENO
1490 # ----------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_cxx_try_compile
()
1494 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1495 rm -f conftest.
$ac_objext
1496 if { { ac_try
="$ac_compile"
1498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_cxx_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1525 } # ac_fn_cxx_try_compile
1527 # ac_fn_c_try_cpp LINENO
1528 # ----------------------
1529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_cpp conftest.$ac_ext"
1535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1536 *) ac_try_echo
=$ac_try;;
1538 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1542 if test -s conftest.err
; then
1543 grep -v '^ *+' conftest.err
>conftest.er1
1544 cat conftest.er1
>&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } >/dev
/null
&& {
1549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.
$ac_ext >&5
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1564 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1567 # the include files in INCLUDES and setting the cache variable VAR
1569 ac_fn_c_check_header_mongrel
()
1571 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1572 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574 $as_echo_n "checking for $2... " >&6; }
1575 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576 $as_echo_n "(cached) " >&6
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580 $as_echo "$ac_res" >&6; }
1582 # Is the header compilable?
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1584 $as_echo_n "checking $2 usability... " >&6; }
1585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h. */
1590 if ac_fn_c_try_compile
"$LINENO"; then :
1591 ac_header_compiler
=yes
1593 ac_header_compiler
=no
1595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1597 $as_echo "$ac_header_compiler" >&6; }
1599 # Is the header present?
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1601 $as_echo_n "checking $2 presence... " >&6; }
1602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1606 if ac_fn_c_try_cpp
"$LINENO"; then :
1607 ac_header_preproc
=yes
1609 ac_header_preproc
=no
1611 rm -f conftest.err conftest.
$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1613 $as_echo "$ac_header_preproc" >&6; }
1615 # So? What about this header?
1616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1619 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1625 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1627 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1629 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1631 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1639 $as_echo_n "(cached) " >&6
1641 eval "$3=\$ac_header_compiler"
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1649 } # ac_fn_c_check_header_mongrel
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1657 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1658 if { { ac_try
="$ac_link"
1660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1671 *) ac_try_echo
=$ac_try;;
1673 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.
$ac_ext >&5
1685 ac_retval
=$ac_status
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile
()
1699 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703 $as_echo_n "(cached) " >&6
1705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1710 if ac_fn_c_try_compile
"$LINENO"; then :
1715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1722 } # ac_fn_c_check_header_compile
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1730 rm -f conftest.
$ac_objext conftest
$ac_exeext
1731 if { { ac_try
="$ac_link"
1733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 $as_test_x conftest$ac_exeext
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 } # ac_fn_c_try_link
1770 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1771 # -------------------------------------------
1772 # Tests whether TYPE exists after having included INCLUDES, setting cache
1773 # variable VAR accordingly.
1774 ac_fn_c_check_type ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1808 if ac_fn_c_try_compile "$LINENO"; then :
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 } # ac_fn_c_check_type
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839 #define $2 innocuous_$2
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char $2 (); below.
1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844 <limits.h> exists even on freestanding compilers. */
1847 # include <limits.h>
1849 # include <assert.h>
1854 /* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined __stub_$2 || defined __stub___$2
1876 if ac_fn_c_try_link "$LINENO"; then :
1881 rm -f core conftest.err conftest.$ac_objext \
1882 conftest$ac_exeext conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 } # ac_fn_c_check_func
1891 # ac_fn_c_check_decl LINENO SYMBOL VAR
1892 # ------------------------------------
1893 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1894 ac_fn_c_check_decl ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1898 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1900 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902 $as_echo_n "(cached) " >&6
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1910 #ifndef $as_decl_name
1912 (void) $as_decl_use;
1914 (void) $as_decl_name;
1922 if ac_fn_c_try_compile "$LINENO"; then :
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934 } # ac_fn_c_check_decl
1936 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1937 # --------------------------------------------
1938 # Tries to find the compile-time value of EXPR in a program that includes
1939 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1941 ac_fn_c_compute_int ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if test "$cross_compiling" = yes; then
1945 # Depending upon the size, compute the lo and hi bounds.
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1952 static int test_array [1 - 2 * !(($2) >= 0)];
1959 if ac_fn_c_try_compile "$LINENO"; then :
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1968 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_hi=$ac_mid; break
1978 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1979 if test $ac_lo -le $ac_mid; then
1983 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1994 static int test_array [1 - 2 * !(($2) < 0)];
2001 if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2010 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_lo=$ac_mid; break
2020 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2021 if test $ac_mid -le $ac_hi; then
2025 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 # Binary search between lo and hi bounds.
2036 while test "x$ac_lo" != "x$ac_hi"; do
2037 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2044 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2051 if ac_fn_c_try_compile "$LINENO"; then :
2054 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2066 static long int longval () { return $2; }
2067 static unsigned long int ulongval () { return $2; }
2074 FILE *f = fopen ("conftest.val", "w");
2079 long int i = longval ();
2082 fprintf (f, "%ld", i);
2086 unsigned long int i = ulongval ();
2089 fprintf (f, "%lu", i);
2091 /* Do not output a trailing newline, as this causes \r\n confusion
2092 on some platforms. */
2093 return ferror (f) || fclose (f) != 0;
2099 if ac_fn_c_try_run "$LINENO"; then :
2100 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2105 conftest.$ac_objext conftest.beam conftest.$ac_ext
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_c_compute_int
2114 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2115 # ----------------------------------------------------
2116 # Tries to find if the field MEMBER exists in type AGGR, after including
2117 # INCLUDES, setting cache variable VAR accordingly.
2118 ac_fn_c_check_member ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2122 $as_echo_n "checking for $2.$3... " >&6; }
2123 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2124 $as_echo_n "(cached) " >&6
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2139 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2149 if (sizeof ac_aggr.$3)
2155 if ac_fn_c_try_compile "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169 } # ac_fn_c_check_member
2170 cat >config.log <<_ACEOF
2171 This file contains any messages produced by compilers while
2172 running configure, to aid debugging if configure makes a mistake.
2174 It was created by $as_me, which was
2175 generated by GNU Autoconf 2.64. Invocation command line was
2187 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2188 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2189 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2190 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2191 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2193 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2194 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2196 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2197 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2198 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2199 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2200 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2201 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2202 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 $as_echo "PATH: $as_dir"
2227 # Keep a trace of the command line.
2228 # Strip out --no-create and --no-recursion so they do not pile up.
2229 # Strip out --silent because we don't want to record it for future runs.
2230 # Also quote any args containing shell meta-characters.
2231 # Make two passes to allow for proper duplicate-argument suppression.
2235 ac_must_keep_next=false
2241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2243 | -silent | --silent | --silen | --sile | --sil)
2246 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2249 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2251 as_fn_append ac_configure_args1 " '$ac_arg'"
2252 if test $ac_must_keep_next = true; then
2253 ac_must_keep_next=false # Got value, back to normal.
2256 *=* | --config-cache | -C | -disable-* | --disable-* \
2257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2259 | -with-* | --with-* | -without-* | --without-* | --x)
2260 case "$ac_configure_args0 " in
2261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2264 -* ) ac_must_keep_next=true ;;
2267 as_fn_append ac_configure_args " '$ac_arg'"
2272 { ac_configure_args0=; unset ac_configure_args0;}
2273 { ac_configure_args1=; unset ac_configure_args1;}
2275 # When interrupted or exit'd, cleanup temporary files, and complete
2276 # config.log. We remove comments because anyway the quotes in there
2277 # would cause problems or look ugly.
2278 # WARNING: Use '\'' to represent an apostrophe within the trap.
2279 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2280 trap 'exit_status=$?
2281 # Save into config.log some information that might help in debugging.
2286 ## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##
2291 # The following way of writing the cache mishandles newlines in values,
2293 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2294 eval ac_val=\$$ac_var
2298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2299 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 _ | IFS | as_nl) ;; #(
2303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2304 *) { eval $ac_var=; unset $ac_var;} ;;
2309 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2310 *${as_nl}ac_space=\ *)
2312 "s/'\''/'\''\\\\'\'''\''/g;
2313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324 ## ----------------- ##
2325 ## Output variables. ##
2326 ## ----------------- ##
2329 for ac_var in $ac_subst_vars
2331 eval ac_val=\$$ac_var
2333 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 $as_echo "$ac_var='\''$ac_val'\''"
2339 if test -n "$ac_subst_files"; then
2341 ## ------------------- ##
2342 ## File substitutions. ##
2343 ## ------------------- ##
2346 for ac_var in $ac_subst_files
2348 eval ac_val=\$$ac_var
2350 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 $as_echo "$ac_var='\''$ac_val'\''"
2357 if test -s confdefs.h; then
2367 test "$ac_signal" != 0 &&
2368 $as_echo "$as_me: caught signal $ac_signal"
2369 $as_echo "$as_me: exit $exit_status"
2371 rm -f core *.core core.conftest.* &&
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2375 for ac_signal in 1 2 13 15; do
2376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2381 rm -f -r conftest* confdefs.h
2383 $as_echo "/* confdefs.h */" > confdefs.h
2385 # Predefined preprocessor variables.
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_NAME "$PACKAGE_NAME"
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_STRING "$PACKAGE_STRING"
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_URL "$PACKAGE_URL"
2412 # Let the site file select an alternate cache file if it wants to.
2413 # Prefer an explicitly selected file to automatically selected ones.
2416 if test -n "$CONFIG_SITE"; then
2417 ac_site_file1=$CONFIG_SITE
2418 elif test "x$prefix" != xNONE; then
2419 ac_site_file1=$prefix/share/config.site
2420 ac_site_file2=$prefix/etc/config.site
2422 ac_site_file1=$ac_default_prefix/share/config.site
2423 ac_site_file2=$ac_default_prefix/etc/config.site
2425 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427 test "x$ac_site_file" = xNONE && continue
2428 if test -r "$ac_site_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431 sed 's/^/| /' "$ac_site_file" >&5
2436 if test -r "$cache_file"; then
2437 # Some versions of bash will fail to source /dev/null (special
2438 # files actually), so we avoid doing that.
2439 if test -f "$cache_file"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2441 $as_echo "$as_me: loading cache $cache_file" >&6;}
2443 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2444 *) . "./$cache_file";;
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2449 $as_echo "$as_me: creating cache $cache_file" >&6;}
2453 # Check that the precious variables saved in the cache have kept the same
2455 ac_cache_corrupted=false
2456 for ac_var in $ac_precious_vars; do
2457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458 eval ac_new_set=\$ac_env_${ac_var}_set
2459 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460 eval ac_new_val=\$ac_env_${ac_var}_value
2461 case $ac_old_set,$ac_new_set in
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2464 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2468 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2472 if test "x$ac_old_val" != "x$ac_new_val"; then
2473 # differences in whitespace do not lead to failure.
2474 ac_old_val_w=`echo x
$ac_old_val`
2475 ac_new_val_w=`echo x
$ac_new_val`
2476 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2479 ac_cache_corrupted=:
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2482 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483 eval $ac_var=\$ac_old_val
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2486 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2488 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2491 # Pass precious variables to config.status.
2492 if test "$ac_new_set" = set; then
2494 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2495 *) ac_arg=$ac_var=$ac_new_val ;;
2497 case " $ac_configure_args " in
2498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2499 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2503 if $ac_cache_corrupted; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2508 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2510 ## -------------------- ##
2511 ## Main body of script. ##
2512 ## -------------------- ##
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 ac_config_headers="$ac_config_headers config.h:config.in"
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2529 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2530 # Check whether --enable-maintainer-mode was given.
2531 if test "${enable_maintainer_mode+set}" = set; then :
2532 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2534 USE_MAINTAINER_MODE=no
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2538 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2539 if test $USE_MAINTAINER_MODE = yes; then
2540 MAINTAINER_MODE_TRUE=
2541 MAINTAINER_MODE_FALSE='#'
2543 MAINTAINER_MODE_TRUE='#'
2544 MAINTAINER_MODE_FALSE=
2547 MAINT=$MAINTAINER_MODE_TRUE
2552 ac_cpp='$CPP $CPPFLAGS'
2553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 if test -n "$CC"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2587 $as_echo "$CC" >&6; }
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2595 if test -z "$ac_cv_prog_CC"; then
2597 # Extract the first word of "gcc", so it can be a program name with args.
2598 set dummy gcc; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2604 if test -n "$ac_ct_CC"; then
2605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_ac_ct_CC="gcc"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625 if test -n "$ac_ct_CC"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2627 $as_echo "$ac_ct_CC" >&6; }
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2633 if test "x$ac_ct_CC" = x; then
2636 case $cross_compiling:$ac_tool_warned in
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640 ac_tool_warned=yes ;;
2648 if test -z "$CC"; then
2649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}cc; ac_word=$2
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then :
2655 $as_echo_n "(cached) " >&6
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_CC="${ac_tool_prefix}cc"
2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 if test -n "$CC"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2680 $as_echo "$CC" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683 $as_echo "no" >&6; }
2689 if test -z "$CC"; then
2690 # Extract the first word of "cc", so it can be a program name with args.
2691 set dummy cc; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2709 ac_prog_rejected=yes
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 if test $ac_prog_rejected = yes; then
2721 # We found a bogon in the path, so make sure we never use it.
2722 set dummy $ac_cv_prog_CC
2724 if test $# != 0; then
2725 # We chose a different compiler from the bogus one.
2726 # However, it has the same basename, so the bogon will be chosen
2727 # first if we set CC to just the basename; use the full file name.
2729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2745 if test -z "$CC"; then
2746 if test -n "$ac_tool_prefix"; then
2747 for ac_prog in cl.exe
2749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 if test -n "$CC"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779 $as_echo "$CC" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2786 test -n "$CC" && break
2789 if test -z "$CC"; then
2791 for ac_prog in cl.exe
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy $ac_prog; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_ac_ct_CC="$ac_prog"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823 $as_echo "$ac_ct_CC" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2830 test -n "$ac_ct_CC" && break
2833 if test "x$ac_ct_CC" = x; then
2836 case $cross_compiling:$ac_tool_warned in
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2840 ac_tool_warned=yes ;;
2849 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 as_fn_error "no acceptable C compiler found
in \
$PATH
2852 See \
`config.log' for more details." "$LINENO" 5; }
2854 # Provide some information about the compiler.
2855 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2858 for ac_option in --version -v -V -qversion; do
2859 { { ac_try="$ac_compiler $ac_option >&5"
2861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2862 *) ac_try_echo
=$ac_try;;
2864 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2865 $as_echo "$ac_try_echo"; } >&5
2866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2868 if test -s conftest.err
; then
2870 ... rest of stderr output deleted ...
2871 10q' conftest.err
>conftest.er1
2872 cat conftest.er1
>&5
2873 rm -f conftest.er1 conftest.err
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; }
2879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h. */
2890 ac_clean_files_save
=$ac_clean_files
2891 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2892 # Try to create an executable without -o first, disregard a.out.
2893 # It will help us diagnose broken compilers, and finding out an intuition
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2896 $as_echo_n "checking for C compiler default output file name... " >&6; }
2897 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2899 # The possible output files:
2900 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2903 for ac_file
in $ac_files
2906 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2907 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2912 if { { ac_try
="$ac_link_default"
2914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918 $as_echo "$ac_try_echo"; } >&5
2919 (eval "$ac_link_default") 2>&5
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }; then :
2923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2924 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2925 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2926 # so that the user can short-circuit this test for compilers unknown to
2928 for ac_file in $ac_files ''
2930 test -f "$ac_file" || continue
2932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2935 # We found the default executable, but exeext='' is most
2939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 # We set ac_cv_exeext here because the later test for it is not
2944 # safe: cross compilers may not add the suffix if given an `-o'
2945 # argument, so we may need to know it at that point already.
2946 # Even if this section looks crufty: it has the advantage of
2953 test "$ac_cv_exeext" = no && ac_cv_exeext=
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2959 $as_echo "$ac_file" >&6; }
2960 if test -z "$ac_file"; then :
2961 $as_echo "$as_me: failed program was:" >&5
2962 sed 's
/^
/|
/' conftest.$ac_ext >&5
2964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2966 { as_fn_set_status 77
2967 as_fn_error "C compiler cannot create executables
2968 See \`config.log
' for more details." "$LINENO" 5; }; }
2970 ac_exeext=$ac_cv_exeext
2972 # Check that the compiler produces executables we can run. If not, either
2973 # the compiler is broken, or we cross compile.
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2975 $as_echo_n "checking whether the C compiler works... " >&6; }
2976 # If not cross compiling, check that we can run a simple program.
2977 if test "$cross_compiling" != yes; then
2978 if { ac_try='.
/$ac_file'
2979 { { case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_try") 2>&5
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; }; then
2991 if test "$cross_compiling" = maybe; then
2994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2996 as_fn_error "cannot run C compiled programs.
2997 If you meant to cross compile, use \`--host'.
2998 See \`config.log' for more details.
" "$LINENO" 5; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3003 $as_echo "yes" >&6; }
3005 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3006 ac_clean_files=$ac_clean_files_save
3007 # Check that the compiler produces executables we can run. If not, either
3008 # the compiler is broken, or we cross compile.
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3010 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3012 $as_echo "$cross_compiling" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3015 $as_echo_n "checking
for suffix of executables...
" >&6; }
3016 if { { ac_try="$ac_link"
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_link") 2>&5
3025 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3026 test $ac_status = 0; }; then :
3027 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3028 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3029 # work properly (i.e., refer to `conftest.exe'), while it won't with
3031 for ac_file in conftest.exe conftest conftest.*; do
3032 test -f "$ac_file" || continue
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error "cannot compute suffix of executables: cannot compile and link
3044 See \`config.log' for more details.
" "$LINENO" 5; }
3046 rm -f conftest$ac_cv_exeext
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3048 $as_echo "$ac_cv_exeext" >&6; }
3050 rm -f conftest.$ac_ext
3051 EXEEXT=$ac_cv_exeext
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3054 $as_echo_n "checking
for suffix of object files...
" >&6; }
3055 if test "${ac_cv_objext+set}" = set; then :
3056 $as_echo_n "(cached
) " >&6
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3069 rm -f conftest.o conftest.obj
3070 if { { ac_try="$ac_compile"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_compile") 2>&5
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 for ac_file in conftest.o conftest.obj conftest.*; do
3082 test -f "$ac_file" || continue;
3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3085 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3090 $as_echo "$as_me: failed program was
:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error "cannot compute suffix of object files: cannot compile
3096 See \`config.log' for more details.
" "$LINENO" 5; }
3098 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3101 $as_echo "$ac_cv_objext" >&6; }
3102 OBJEXT=$ac_cv_objext
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3105 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3106 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3107 $as_echo_n "(cached
) " >&6
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3123 if ac_fn_c_try_compile "$LINENO"; then :
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3133 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3134 if test $ac_compiler_gnu = yes; then
3139 ac_test_CFLAGS=${CFLAGS+set}
3140 ac_save_CFLAGS=$CFLAGS
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3142 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3143 if test "${ac_cv_prog_cc_g+set}" = set; then :
3144 $as_echo_n "(cached
) " >&6
3146 ac_save_c_werror_flag=$ac_c_werror_flag
3147 ac_c_werror_flag=yes
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3161 if ac_fn_c_try_compile "$LINENO"; then :
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3176 if ac_fn_c_try_compile "$LINENO"; then :
3179 ac_c_werror_flag=$ac_save_c_werror_flag
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3192 if ac_fn_c_try_compile "$LINENO"; then :
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_c_werror_flag=$ac_save_c_werror_flag
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3203 $as_echo "$ac_cv_prog_cc_g" >&6; }
3204 if test "$ac_test_CFLAGS" = set; then
3205 CFLAGS=$ac_save_CFLAGS
3206 elif test $ac_cv_prog_cc_g = yes; then
3207 if test "$GCC" = yes; then
3213 if test "$GCC" = yes; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3220 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3221 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3222 $as_echo_n "(cached
) " >&6
3224 ac_cv_prog_cc_c89=no
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3230 #include <sys/types.h>
3231 #include <sys/stat.h>
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3246 s = g (p, va_arg (v,int));
3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265 int test (int i, double x);
3266 struct s1 {int (*f) (int a);};
3267 struct s2 {int (*f) (double a);};
3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282 CC="$ac_save_CC $ac_arg"
3283 if ac_fn_c_try_compile "$LINENO"; then :
3284 ac_cv_prog_cc_c89=$ac_arg
3286 rm -f core conftest.err conftest.$ac_objext
3287 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3289 rm -f conftest.$ac_ext
3294 case "x
$ac_cv_prog_cc_c89" in
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3297 $as_echo "none needed
" >&6; } ;;
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3300 $as_echo "unsupported
" >&6; } ;;
3302 CC="$CC $ac_cv_prog_cc_c89"
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3304 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3306 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3311 ac_cpp='$CPP $CPPFLAGS'
3312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317 ac_cpp='$CXXCPP $CPPFLAGS'
3318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3321 if test -z "$CXX"; then
3322 if test -n "$CCC"; then
3325 if test -n "$ac_tool_prefix"; then
3326 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3331 $as_echo_n "checking
for $ac_word...
" >&6; }
3332 if test "${ac_cv_prog_CXX+set}" = set; then :
3333 $as_echo_n "(cached
) " >&6
3335 if test -n "$CXX"; then
3336 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3356 if test -n "$CXX"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3358 $as_echo "$CXX" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3361 $as_echo "no
" >&6; }
3365 test -n "$CXX" && break
3368 if test -z "$CXX"; then
3370 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3372 # Extract the first word of "$ac_prog", so it can be a program name with args.
3373 set dummy $ac_prog; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3375 $as_echo_n "checking
for $ac_word...
" >&6; }
3376 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3377 $as_echo_n "(cached
) " >&6
3379 if test -n "$ac_ct_CXX"; then
3380 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389 ac_cv_prog_ac_ct_CXX="$ac_prog"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3399 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3400 if test -n "$ac_ct_CXX"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3402 $as_echo "$ac_ct_CXX" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3405 $as_echo "no
" >&6; }
3409 test -n "$ac_ct_CXX" && break
3412 if test "x
$ac_ct_CXX" = x; then
3415 case $cross_compiling:$ac_tool_warned in
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3418 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3419 ac_tool_warned=yes ;;
3427 # Provide some information about the compiler.
3428 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3431 for ac_option in --version -v -V -qversion; do
3432 { { ac_try="$ac_compiler $ac_option >&5"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3441 if test -s conftest.err; then
3443 ... rest of stderr output deleted ...
3444 10q' conftest.err >conftest.er1
3445 cat conftest.er1 >&5
3446 rm -f conftest.er1 conftest.err
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3449 test $ac_status = 0; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3453 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3454 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3455 $as_echo_n "(cached
) " >&6
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3471 if ac_fn_cxx_try_compile "$LINENO"; then :
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3481 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3482 if test $ac_compiler_gnu = yes; then
3487 ac_test_CXXFLAGS=${CXXFLAGS+set}
3488 ac_save_CXXFLAGS=$CXXFLAGS
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3490 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3491 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3492 $as_echo_n "(cached
) " >&6
3494 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3495 ac_cxx_werror_flag=yes
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3509 if ac_fn_cxx_try_compile "$LINENO"; then :
3510 ac_cv_prog_cxx_g=yes
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3524 if ac_fn_cxx_try_compile "$LINENO"; then :
3527 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3540 if ac_fn_cxx_try_compile "$LINENO"; then :
3541 ac_cv_prog_cxx_g=yes
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3551 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3552 if test "$ac_test_CXXFLAGS" = set; then
3553 CXXFLAGS=$ac_save_CXXFLAGS
3554 elif test $ac_cv_prog_cxx_g = yes; then
3555 if test "$GXX" = yes; then
3561 if test "$GXX" = yes; then
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3580 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3581 # On Suns, sometimes $CPP names a directory.
3582 if test -n "$CPP" && test -d "$CPP"; then
3585 if test -z "$CPP"; then
3586 if test "${ac_cv_prog_CPP+set}" = set; then :
3587 $as_echo_n "(cached
) " >&6
3589 # Double quotes because CPP needs to be expanded
3590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3593 for ac_c_preproc_warn_flag in '' yes
3595 # Use a header file that comes with gcc, so configuring glibc
3596 # with a fresh cross-compiler works.
3597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3598 # <limits.h> exists even on freestanding compilers.
3599 # On the NeXT, cc -E runs the code through the compiler's parser,
3600 # not just through cpp. "Syntax error
" is here to catch this case.
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3604 # include <limits.h>
3606 # include <assert.h>
3610 if ac_fn_c_try_cpp "$LINENO"; then :
3613 # Broken: fails on valid input.
3616 rm -f conftest.err conftest.$ac_ext
3618 # OK, works on sane cases. Now check whether nonexistent headers
3619 # can be detected and how.
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.h>
3624 if ac_fn_c_try_cpp "$LINENO"; then :
3625 # Broken: success on invalid input.
3628 # Passes both tests.
3632 rm -f conftest.err conftest.$ac_ext
3635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636 rm -f conftest.err conftest.$ac_ext
3637 if $ac_preproc_ok; then :
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3650 $as_echo "$CPP" >&6; }
3652 for ac_c_preproc_warn_flag in '' yes
3654 # Use a header file that comes with gcc, so configuring glibc
3655 # with a fresh cross-compiler works.
3656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3657 # <limits.h> exists even on freestanding compilers.
3658 # On the NeXT, cc -E runs the code through the compiler's parser,
3659 # not just through cpp. "Syntax error
" is here to catch this case.
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3663 # include <limits.h>
3665 # include <assert.h>
3669 if ac_fn_c_try_cpp "$LINENO"; then :
3672 # Broken: fails on valid input.
3675 rm -f conftest.err conftest.$ac_ext
3677 # OK, works on sane cases. Now check whether nonexistent headers
3678 # can be detected and how.
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681 #include <ac_nonexistent.h>
3683 if ac_fn_c_try_cpp "$LINENO"; then :
3684 # Broken: success on invalid input.
3687 # Passes both tests.
3691 rm -f conftest.err conftest.$ac_ext
3694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3695 rm -f conftest.err conftest.$ac_ext
3696 if $ac_preproc_ok; then :
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3702 See \`config.log' for more details.
" "$LINENO" 5; }
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3713 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3714 if test "${ac_cv_path_GREP+set}" = set; then :
3715 $as_echo_n "(cached
) " >&6
3717 if test -z "$GREP"; then
3718 ac_path_GREP_found=false
3719 # Loop through the user's path and test for each of PROGNAME-LIST
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3724 test -z "$as_dir" && as_dir=.
3725 for ac_prog in grep ggrep; do
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3728 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3729 # Check for GNU ac_path_GREP and select it if it is found.
3730 # Check for GNU $ac_path_GREP
3731 case `"$ac_path_GREP" --version 2>&1` in
3733 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3736 $as_echo_n 0123456789 >"conftest.
in"
3739 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3740 mv "conftest.tmp
" "conftest.
in"
3741 cp "conftest.
in" "conftest.
nl"
3742 $as_echo 'GREP' >> "conftest.
nl"
3743 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3744 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3745 as_fn_arith $ac_count + 1 && ac_count=$as_val
3746 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3747 # Best one so far, save it but keep looking for a better one
3748 ac_cv_path_GREP="$ac_path_GREP"
3749 ac_path_GREP_max=$ac_count
3751 # 10*(2^10) chars as input seems more than enough
3752 test $ac_count -gt 10 && break
3754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3757 $ac_path_GREP_found && break 3
3762 if test -z "$ac_cv_path_GREP"; then
3763 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3766 ac_cv_path_GREP=$GREP
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3771 $as_echo "$ac_cv_path_GREP" >&6; }
3772 GREP="$ac_cv_path_GREP"
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3776 $as_echo_n "checking
for egrep...
" >&6; }
3777 if test "${ac_cv_path_EGREP+set}" = set; then :
3778 $as_echo_n "(cached
) " >&6
3780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3781 then ac_cv_path_EGREP="$GREP -E"
3783 if test -z "$EGREP"; then
3784 ac_path_EGREP_found=false
3785 # Loop through the user's path and test for each of PROGNAME-LIST
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790 test -z "$as_dir" && as_dir=.
3791 for ac_prog in egrep; do
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3794 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3795 # Check for GNU ac_path_EGREP and select it if it is found.
3796 # Check for GNU $ac_path_EGREP
3797 case `"$ac_path_EGREP" --version 2>&1` in
3799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3802 $as_echo_n 0123456789 >"conftest.
in"
3805 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3806 mv "conftest.tmp
" "conftest.
in"
3807 cp "conftest.
in" "conftest.
nl"
3808 $as_echo 'EGREP' >> "conftest.
nl"
3809 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3810 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3811 as_fn_arith $ac_count + 1 && ac_count=$as_val
3812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3813 # Best one so far, save it but keep looking for a better one
3814 ac_cv_path_EGREP="$ac_path_EGREP"
3815 ac_path_EGREP_max=$ac_count
3817 # 10*(2^10) chars as input seems more than enough
3818 test $ac_count -gt 10 && break
3820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823 $ac_path_EGREP_found && break 3
3828 if test -z "$ac_cv_path_EGREP"; then
3829 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3832 ac_cv_path_EGREP=$EGREP
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3838 $as_echo "$ac_cv_path_EGREP" >&6; }
3839 EGREP="$ac_cv_path_EGREP"
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3843 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3844 if test "${ac_cv_header_stdc+set}" = set; then :
3845 $as_echo_n "(cached
) " >&6
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_header_stdc=yes
3865 ac_cv_header_stdc=no
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 if test $ac_cv_header_stdc = yes; then
3870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3876 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3877 $EGREP "memchr
" >/dev/null 2>&1; then :
3880 ac_cv_header_stdc=no
3886 if test $ac_cv_header_stdc = yes; then
3887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3893 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3894 $EGREP "free
" >/dev/null 2>&1; then :
3897 ac_cv_header_stdc=no
3903 if test $ac_cv_header_stdc = yes; then
3904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3905 if test "$cross_compiling" = yes; then :
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3912 #if ((' ' & 0x0FF) == 0x020)
3913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3916 # define ISLOWER(c) \
3917 (('a' <= (c) && (c) <= 'i') \
3918 || ('j' <= (c) && (c) <= 'r') \
3919 || ('s' <= (c) && (c) <= 'z'))
3920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3928 for (i = 0; i < 256; i++)
3929 if (XOR (islower (i), ISLOWER (i))
3930 || toupper (i) != TOUPPER (i))
3935 if ac_fn_c_try_run "$LINENO"; then :
3938 ac_cv_header_stdc=no
3940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3941 conftest.$ac_objext conftest.beam conftest.$ac_ext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3947 $as_echo "$ac_cv_header_stdc" >&6; }
3948 if test $ac_cv_header_stdc = yes; then
3950 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3954 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3955 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3956 inttypes.h stdint.h unistd.h
3958 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3959 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3961 eval as_val
=\$
$as_ac_Header
3962 if test "x$as_val" = x
""yes; then :
3963 cat >>confdefs.h
<<_ACEOF
3964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3973 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3974 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3981 if test "$MINIX" = yes; then
3983 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3986 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3989 $as_echo "#define _MINIX 1" >>confdefs.h
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3995 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3996 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4002 # define __EXTENSIONS__ 1
4003 $ac_includes_default
4012 if ac_fn_c_try_compile
"$LINENO"; then :
4013 ac_cv_safe_to_define___extensions__
=yes
4015 ac_cv_safe_to_define___extensions__
=no
4017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4020 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4021 test $ac_cv_safe_to_define___extensions__ = yes &&
4022 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4024 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4026 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4028 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4030 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4034 # Check whether --enable-largefile was given.
4035 if test "${enable_largefile+set}" = set; then :
4036 enableval
=$enable_largefile;
4039 if test "$enable_largefile" != no
; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4042 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4043 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 ac_cv_sys_largefile_CC
=no
4047 if test "$GCC" != yes; then
4050 # IRIX 6.2 and later do not support large files by default,
4051 # so use the C compiler's -n32 option if that helps.
4052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <sys/types.h>
4055 /* Check that off_t can represent 2**63 - 1 correctly.
4056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4057 since some C++ compilers masquerading as C compilers
4058 incorrectly reject 9223372036854775807. */
4059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4061 && LARGE_OFF_T % 2147483647 == 1)
4071 if ac_fn_c_try_compile
"$LINENO"; then :
4074 rm -f core conftest.err conftest.
$ac_objext
4076 if ac_fn_c_try_compile
"$LINENO"; then :
4077 ac_cv_sys_largefile_CC
=' -n32'; break
4079 rm -f core conftest.err conftest.
$ac_objext
4083 rm -f conftest.
$ac_ext
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4087 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4088 if test "$ac_cv_sys_largefile_CC" != no
; then
4089 CC
=$CC$ac_cv_sys_largefile_CC
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4093 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4094 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 #include <sys/types.h>
4101 /* Check that off_t can represent 2**63 - 1 correctly.
4102 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4103 since some C++ compilers masquerading as C compilers
4104 incorrectly reject 9223372036854775807. */
4105 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4106 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4107 && LARGE_OFF_T % 2147483647 == 1)
4117 if ac_fn_c_try_compile
"$LINENO"; then :
4118 ac_cv_sys_file_offset_bits
=no
; break
4120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #define _FILE_OFFSET_BITS 64
4124 #include <sys/types.h>
4125 /* Check that off_t can represent 2**63 - 1 correctly.
4126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4127 since some C++ compilers masquerading as C compilers
4128 incorrectly reject 9223372036854775807. */
4129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4131 && LARGE_OFF_T % 2147483647 == 1)
4141 if ac_fn_c_try_compile
"$LINENO"; then :
4142 ac_cv_sys_file_offset_bits
=64; break
4144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4145 ac_cv_sys_file_offset_bits
=unknown
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4150 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4151 case $ac_cv_sys_file_offset_bits in #(
4154 cat >>confdefs.h
<<_ACEOF
4155 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4160 if test $ac_cv_sys_file_offset_bits = unknown
; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4162 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4163 if test "${ac_cv_sys_large_files+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <sys/types.h>
4170 /* Check that off_t can represent 2**63 - 1 correctly.
4171 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4172 since some C++ compilers masquerading as C compilers
4173 incorrectly reject 9223372036854775807. */
4174 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4175 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4176 && LARGE_OFF_T % 2147483647 == 1)
4186 if ac_fn_c_try_compile
"$LINENO"; then :
4187 ac_cv_sys_large_files
=no
; break
4189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #define _LARGE_FILES 1
4193 #include <sys/types.h>
4194 /* Check that off_t can represent 2**63 - 1 correctly.
4195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4196 since some C++ compilers masquerading as C compilers
4197 incorrectly reject 9223372036854775807. */
4198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4200 && LARGE_OFF_T % 2147483647 == 1)
4210 if ac_fn_c_try_compile
"$LINENO"; then :
4211 ac_cv_sys_large_files
=1; break
4213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4214 ac_cv_sys_large_files
=unknown
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4219 $as_echo "$ac_cv_sys_large_files" >&6; }
4220 case $ac_cv_sys_large_files in #(
4223 cat >>confdefs.h
<<_ACEOF
4224 #define _LARGE_FILES $ac_cv_sys_large_files
4234 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4235 for ac_t
in install-sh
install.sh shtool
; do
4236 if test -f "$ac_dir/$ac_t"; then
4238 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4243 if test -z "$ac_aux_dir"; then
4244 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4247 # These three variables are undocumented and unsupported,
4248 # and are intended to be withdrawn in a future Autoconf release.
4249 # They can cause serious problems if a builder's source tree is in a directory
4250 # whose full name contains unusual characters.
4251 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4252 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4253 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4256 # Make sure we can run config.sub.
4257 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4258 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4261 $as_echo_n "checking build system type... " >&6; }
4262 if test "${ac_cv_build+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4265 ac_build_alias
=$build_alias
4266 test "x$ac_build_alias" = x
&&
4267 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4268 test "x$ac_build_alias" = x
&&
4269 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4270 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4271 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4275 $as_echo "$ac_cv_build" >&6; }
4276 case $ac_cv_build in
4278 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4281 ac_save_IFS
=$IFS; IFS
='-'
4287 # Remember, the first character of IFS is used to create $*,
4288 # except with old shells:
4291 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4295 $as_echo_n "checking host system type... " >&6; }
4296 if test "${ac_cv_host+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4299 if test "x$host_alias" = x
; then
4300 ac_cv_host
=$ac_cv_build
4302 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4303 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4308 $as_echo "$ac_cv_host" >&6; }
4311 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4314 ac_save_IFS
=$IFS; IFS
='-'
4320 # Remember, the first character of IFS is used to create $*,
4321 # except with old shells:
4324 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4328 $as_echo_n "checking target system type... " >&6; }
4329 if test "${ac_cv_target+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4332 if test "x$target_alias" = x
; then
4333 ac_cv_target
=$ac_cv_host
4335 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4336 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4341 $as_echo "$ac_cv_target" >&6; }
4342 case $ac_cv_target in
4344 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4346 target
=$ac_cv_target
4347 ac_save_IFS
=$IFS; IFS
='-'
4353 # Remember, the first character of IFS is used to create $*,
4354 # except with old shells:
4357 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4360 # The aliases save the names the user supplied, while $host etc.
4361 # will get canonicalized.
4362 test -n "$target_alias" &&
4363 test "$program_prefix$program_suffix$program_transform_name" = \
4365 program_prefix
=${target_alias}-
4368 # Find a good install program. We prefer a C program (faster),
4369 # so one script is as good as another. But avoid the broken or
4370 # incompatible versions:
4371 # SysV /etc/install, /usr/sbin/install
4372 # SunOS /usr/etc/install
4373 # IRIX /sbin/install
4375 # AmigaOS /C/install, which installs bootblocks on floppy discs
4376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4379 # OS/2's system install, which has a completely different semantic
4380 # ./install, which can be erroneously created by make from ./install.sh.
4381 # Reject install programs that cannot install multiple files.
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4383 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4384 if test -z "$INSTALL"; then
4385 if test "${ac_cv_path_install+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir
=.
4393 # Account for people who put trailing slashes in PATH elements.
4394 case $as_dir/ in #((
4395 .
/ | .
// |
/[cC
]/* | \
4396 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4397 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4400 # OSF1 and SCO ODT 3.0 have their own names for install.
4401 # Don't use installbsd from OSF since it installs stuff as root
4403 for ac_prog
in ginstall scoinst
install; do
4404 for ac_exec_ext
in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4406 if test $ac_prog = install &&
4407 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4408 # AIX install. It has an incompatible calling convention.
4410 elif test $ac_prog = install &&
4411 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4412 # program-specific install script used by HP pwplus--don't use.
4415 rm -rf conftest.one conftest.two conftest.dir
4416 echo one
> conftest.one
4417 echo two
> conftest.two
4419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4420 test -s conftest.one
&& test -s conftest.two
&&
4421 test -s conftest.dir
/conftest.one
&&
4422 test -s conftest.dir
/conftest.two
4424 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4437 rm -rf conftest.one conftest.two conftest.dir
4440 if test "${ac_cv_path_install+set}" = set; then
4441 INSTALL
=$ac_cv_path_install
4443 # As a last resort, use the slow shell script. Don't cache a
4444 # value for INSTALL within a source directory, because that will
4445 # break other packages using the cache if that directory is
4446 # removed, or if the value is a relative name.
4447 INSTALL
=$ac_install_sh
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4451 $as_echo "$INSTALL" >&6; }
4453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4454 # It thinks the first close brace ends the variable substitution.
4455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4459 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4461 if test -n "$ac_tool_prefix"; then
4462 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4463 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_AR+set}" = set; then :
4467 $as_echo_n "(cached) " >&6
4469 if test -n "$AR"; then
4470 ac_cv_prog_AR
="$AR" # Let the user override the test.
4472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir
=.
4477 for ac_exec_ext
in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test -n "$AR"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4492 $as_echo "$AR" >&6; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4500 if test -z "$ac_cv_prog_AR"; then
4502 # Extract the first word of "ar", so it can be a program name with args.
4503 set dummy
ar; ac_word
=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
4509 if test -n "$ac_ct_AR"; then
4510 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir
=.
4517 for ac_exec_ext
in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_ac_ct_AR
="ar"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4530 if test -n "$ac_ct_AR"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4532 $as_echo "$ac_ct_AR" >&6; }
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4538 if test "x$ac_ct_AR" = x
; then
4541 case $cross_compiling:$ac_tool_warned in
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545 ac_tool_warned
=yes ;;
4553 if test -n "$ac_tool_prefix"; then
4554 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4555 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4561 if test -n "$RANLIB"; then
4562 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir
=.
4569 for ac_exec_ext
in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 RANLIB
=$ac_cv_prog_RANLIB
4582 if test -n "$RANLIB"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4584 $as_echo "$RANLIB" >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593 ac_ct_RANLIB
=$RANLIB
4594 # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib
; ac_word
=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4601 if test -n "$ac_ct_RANLIB"; then
4602 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir
=.
4609 for ac_exec_ext
in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4624 $as_echo "$ac_ct_RANLIB" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4630 if test "x$ac_ct_RANLIB" = x
; then
4633 case $cross_compiling:$ac_tool_warned in
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4637 ac_tool_warned
=yes ;;
4639 RANLIB
=$ac_ct_RANLIB
4642 RANLIB
="$ac_cv_prog_RANLIB"
4646 test "$program_prefix" != NONE
&&
4647 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4648 # Use a double $ so make ignores it.
4649 test "$program_suffix" != NONE
&&
4650 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4651 # Double any \ or $.
4652 # By default was `s,x,x', remove it if useless.
4653 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4654 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4657 # We require a C++11 compiler. Check if one is available, and if
4658 # necessary, set CXX_DIALECT to some -std=xxx switch.
4660 ax_cxx_compile_cxx11_required
=true
4662 ac_cpp
='$CXXCPP $CPPFLAGS'
4663 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4669 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4670 if test "${ax_cv_cxx_compile_cxx11+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4677 // If the compiler admits that it is not ready for C++11, why torture it?
4678 // Hopefully, this will speed up the test.
4682 #error "This is not a C++ compiler"
4684 #elif __cplusplus < 201103L
4686 #error "This is not a C++11 compiler"
4693 namespace test_static_assert
4696 template <typename T>
4699 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4704 namespace test_final_override
4712 struct Derived : public Base
4714 virtual void f() override {}
4719 namespace test_double_right_angle_brackets
4722 template < typename T >
4725 typedef check<void> single_type;
4726 typedef check<check<void>> double_type;
4727 typedef check<check<check<void>>> triple_type;
4728 typedef check<check<check<check<void>>>> quadruple_type;
4732 namespace test_decltype
4745 namespace test_type_deduction
4748 template < typename T1, typename T2 >
4751 static const bool value = false;
4754 template < typename T >
4755 struct is_same<T, T>
4757 static const bool value = true;
4760 template < typename T1, typename T2 >
4762 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4768 test(const int c, volatile int v)
4770 static_assert(is_same<int, decltype(0)>::value == true, "");
4771 static_assert(is_same<int, decltype(c)>::value == false, "");
4772 static_assert(is_same<int, decltype(v)>::value == false, "");
4775 auto sumi = ac + av + 'x';
4776 auto sumf = ac + av + 1.0;
4777 static_assert(is_same<int, decltype(ac)>::value == true, "");
4778 static_assert(is_same<int, decltype(av)>::value == true, "");
4779 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4780 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4781 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4782 return (sumf > 0.0) ? sumi : add(c, v);
4787 namespace test_noexcept
4790 int f() { return 0; }
4791 int g() noexcept { return 0; }
4793 static_assert(noexcept(f()) == false, "");
4794 static_assert(noexcept(g()) == true, "");
4798 namespace test_constexpr
4801 template < typename CharT >
4802 unsigned long constexpr
4803 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4805 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4808 template < typename CharT >
4809 unsigned long constexpr
4810 strlen_c(const CharT *const s) noexcept
4812 return strlen_c_r(s, 0UL);
4815 static_assert(strlen_c("") == 0UL, "");
4816 static_assert(strlen_c("1") == 1UL, "");
4817 static_assert(strlen_c("example") == 7UL, "");
4818 static_assert(strlen_c("another\0example") == 7UL, "");
4822 namespace test_rvalue_references
4828 static constexpr int value = N;
4831 answer<1> f(int&) { return answer<1>(); }
4832 answer<2> f(const int&) { return answer<2>(); }
4833 answer<3> f(int&&) { return answer<3>(); }
4840 static_assert(decltype(f(i))::value == 1, "");
4841 static_assert(decltype(f(c))::value == 2, "");
4842 static_assert(decltype(f(0))::value == 3, "");
4847 namespace test_uniform_initialization
4852 static const int zero {};
4853 static const int one {1};
4856 static_assert(test::zero == 0, "");
4857 static_assert(test::one == 1, "");
4861 namespace test_lambdas
4867 auto lambda1 = [](){};
4868 auto lambda2 = lambda1;
4876 auto a = [](int i, int j){ return i + j; }(1, 2);
4877 auto b = []() -> int { return '0'; }();
4878 auto c = [=](){ return a + b; }();
4879 auto d = [&](){ return c; }();
4880 auto e = [a, &b](int x) mutable {
4881 const auto identity = [](int y){ return y; };
4882 for (auto i = 0; i < a; ++i)
4884 return x + identity(a + b);
4886 return a + b + c + d + e;
4892 const auto nullary = [](){ return 0; };
4893 const auto unary = [](int x){ return x; };
4894 using nullary_t = decltype(nullary);
4895 using unary_t = decltype(unary);
4896 const auto higher1st = [](nullary_t f){ return f(); };
4897 const auto higher2nd = [unary](nullary_t f1){
4898 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4900 return higher1st(nullary) + higher2nd(nullary)(unary);
4905 namespace test_variadic_templates
4911 template <int N0, int... N1toN>
4912 struct sum<N0, N1toN...>
4914 static constexpr auto value = N0 + sum<N1toN...>::value;
4920 static constexpr auto value = 0;
4923 static_assert(sum<>::value == 0, "");
4924 static_assert(sum<1>::value == 1, "");
4925 static_assert(sum<23>::value == 23, "");
4926 static_assert(sum<1, 2>::value == 3, "");
4927 static_assert(sum<5, 5, 11>::value == 21, "");
4928 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
4932 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
4933 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
4935 namespace test_template_alias_sfinae
4940 template<typename T>
4941 using member = typename T::member_type;
4943 template<typename T>
4946 template<typename T>
4947 void func(member<T>*) {}
4951 void test() { func<foo>(0); }
4955 } // namespace cxx11
4957 #endif // __cplusplus >= 201103L
4962 if ac_fn_cxx_try_compile
"$LINENO"; then :
4963 ax_cv_cxx_compile_cxx11
=yes
4965 ax_cv_cxx_compile_cxx11
=no
4967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
4970 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
4971 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
4975 if test x
$ac_success = xno
; then
4976 for switch
in -std=gnu
++11 -std=gnu
++0x
; do
4977 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
4979 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
4980 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
4981 $as_echo_n "(cached) " >&6
4985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4989 // If the compiler admits that it is not ready for C++11, why torture it?
4990 // Hopefully, this will speed up the test.
4994 #error "This is not a C++ compiler"
4996 #elif __cplusplus < 201103L
4998 #error "This is not a C++11 compiler"
5005 namespace test_static_assert
5008 template <typename T>
5011 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5016 namespace test_final_override
5024 struct Derived : public Base
5026 virtual void f() override {}
5031 namespace test_double_right_angle_brackets
5034 template < typename T >
5037 typedef check<void> single_type;
5038 typedef check<check<void>> double_type;
5039 typedef check<check<check<void>>> triple_type;
5040 typedef check<check<check<check<void>>>> quadruple_type;
5044 namespace test_decltype
5057 namespace test_type_deduction
5060 template < typename T1, typename T2 >
5063 static const bool value = false;
5066 template < typename T >
5067 struct is_same<T, T>
5069 static const bool value = true;
5072 template < typename T1, typename T2 >
5074 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5080 test(const int c, volatile int v)
5082 static_assert(is_same<int, decltype(0)>::value == true, "");
5083 static_assert(is_same<int, decltype(c)>::value == false, "");
5084 static_assert(is_same<int, decltype(v)>::value == false, "");
5087 auto sumi = ac + av + 'x';
5088 auto sumf = ac + av + 1.0;
5089 static_assert(is_same<int, decltype(ac)>::value == true, "");
5090 static_assert(is_same<int, decltype(av)>::value == true, "");
5091 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5092 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5093 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5094 return (sumf > 0.0) ? sumi : add(c, v);
5099 namespace test_noexcept
5102 int f() { return 0; }
5103 int g() noexcept { return 0; }
5105 static_assert(noexcept(f()) == false, "");
5106 static_assert(noexcept(g()) == true, "");
5110 namespace test_constexpr
5113 template < typename CharT >
5114 unsigned long constexpr
5115 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5117 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5120 template < typename CharT >
5121 unsigned long constexpr
5122 strlen_c(const CharT *const s) noexcept
5124 return strlen_c_r(s, 0UL);
5127 static_assert(strlen_c("") == 0UL, "");
5128 static_assert(strlen_c("1") == 1UL, "");
5129 static_assert(strlen_c("example") == 7UL, "");
5130 static_assert(strlen_c("another\0example") == 7UL, "");
5134 namespace test_rvalue_references
5140 static constexpr int value = N;
5143 answer<1> f(int&) { return answer<1>(); }
5144 answer<2> f(const int&) { return answer<2>(); }
5145 answer<3> f(int&&) { return answer<3>(); }
5152 static_assert(decltype(f(i))::value == 1, "");
5153 static_assert(decltype(f(c))::value == 2, "");
5154 static_assert(decltype(f(0))::value == 3, "");
5159 namespace test_uniform_initialization
5164 static const int zero {};
5165 static const int one {1};
5168 static_assert(test::zero == 0, "");
5169 static_assert(test::one == 1, "");
5173 namespace test_lambdas
5179 auto lambda1 = [](){};
5180 auto lambda2 = lambda1;
5188 auto a = [](int i, int j){ return i + j; }(1, 2);
5189 auto b = []() -> int { return '0'; }();
5190 auto c = [=](){ return a + b; }();
5191 auto d = [&](){ return c; }();
5192 auto e = [a, &b](int x) mutable {
5193 const auto identity = [](int y){ return y; };
5194 for (auto i = 0; i < a; ++i)
5196 return x + identity(a + b);
5198 return a + b + c + d + e;
5204 const auto nullary = [](){ return 0; };
5205 const auto unary = [](int x){ return x; };
5206 using nullary_t = decltype(nullary);
5207 using unary_t = decltype(unary);
5208 const auto higher1st = [](nullary_t f){ return f(); };
5209 const auto higher2nd = [unary](nullary_t f1){
5210 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5212 return higher1st(nullary) + higher2nd(nullary)(unary);
5217 namespace test_variadic_templates
5223 template <int N0, int... N1toN>
5224 struct sum<N0, N1toN...>
5226 static constexpr auto value = N0 + sum<N1toN...>::value;
5232 static constexpr auto value = 0;
5235 static_assert(sum<>::value == 0, "");
5236 static_assert(sum<1>::value == 1, "");
5237 static_assert(sum<23>::value == 23, "");
5238 static_assert(sum<1, 2>::value == 3, "");
5239 static_assert(sum<5, 5, 11>::value == 21, "");
5240 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5244 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5245 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5247 namespace test_template_alias_sfinae
5252 template<typename T>
5253 using member = typename T::member_type;
5255 template<typename T>
5258 template<typename T>
5259 void func(member<T>*) {}
5263 void test() { func<foo>(0); }
5267 } // namespace cxx11
5269 #endif // __cplusplus >= 201103L
5274 if ac_fn_cxx_try_compile
"$LINENO"; then :
5279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5282 eval ac_res
=\$
$cachevar
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5284 $as_echo "$ac_res" >&6; }
5285 if eval test x\$
$cachevar = xyes
; then
5286 CXX_DIALECT
="$switch"
5293 if test x
$ac_success = xno
; then
5294 for switch
in -std=c
++11 -std=c
++0x
+std
=c
++11 "-h std=c++11"; do
5295 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5297 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5298 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5299 $as_echo_n "(cached) " >&6
5303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5307 // If the compiler admits that it is not ready for C++11, why torture it?
5308 // Hopefully, this will speed up the test.
5312 #error "This is not a C++ compiler"
5314 #elif __cplusplus < 201103L
5316 #error "This is not a C++11 compiler"
5323 namespace test_static_assert
5326 template <typename T>
5329 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5334 namespace test_final_override
5342 struct Derived : public Base
5344 virtual void f() override {}
5349 namespace test_double_right_angle_brackets
5352 template < typename T >
5355 typedef check<void> single_type;
5356 typedef check<check<void>> double_type;
5357 typedef check<check<check<void>>> triple_type;
5358 typedef check<check<check<check<void>>>> quadruple_type;
5362 namespace test_decltype
5375 namespace test_type_deduction
5378 template < typename T1, typename T2 >
5381 static const bool value = false;
5384 template < typename T >
5385 struct is_same<T, T>
5387 static const bool value = true;
5390 template < typename T1, typename T2 >
5392 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5398 test(const int c, volatile int v)
5400 static_assert(is_same<int, decltype(0)>::value == true, "");
5401 static_assert(is_same<int, decltype(c)>::value == false, "");
5402 static_assert(is_same<int, decltype(v)>::value == false, "");
5405 auto sumi = ac + av + 'x';
5406 auto sumf = ac + av + 1.0;
5407 static_assert(is_same<int, decltype(ac)>::value == true, "");
5408 static_assert(is_same<int, decltype(av)>::value == true, "");
5409 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5410 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5411 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5412 return (sumf > 0.0) ? sumi : add(c, v);
5417 namespace test_noexcept
5420 int f() { return 0; }
5421 int g() noexcept { return 0; }
5423 static_assert(noexcept(f()) == false, "");
5424 static_assert(noexcept(g()) == true, "");
5428 namespace test_constexpr
5431 template < typename CharT >
5432 unsigned long constexpr
5433 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5435 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5438 template < typename CharT >
5439 unsigned long constexpr
5440 strlen_c(const CharT *const s) noexcept
5442 return strlen_c_r(s, 0UL);
5445 static_assert(strlen_c("") == 0UL, "");
5446 static_assert(strlen_c("1") == 1UL, "");
5447 static_assert(strlen_c("example") == 7UL, "");
5448 static_assert(strlen_c("another\0example") == 7UL, "");
5452 namespace test_rvalue_references
5458 static constexpr int value = N;
5461 answer<1> f(int&) { return answer<1>(); }
5462 answer<2> f(const int&) { return answer<2>(); }
5463 answer<3> f(int&&) { return answer<3>(); }
5470 static_assert(decltype(f(i))::value == 1, "");
5471 static_assert(decltype(f(c))::value == 2, "");
5472 static_assert(decltype(f(0))::value == 3, "");
5477 namespace test_uniform_initialization
5482 static const int zero {};
5483 static const int one {1};
5486 static_assert(test::zero == 0, "");
5487 static_assert(test::one == 1, "");
5491 namespace test_lambdas
5497 auto lambda1 = [](){};
5498 auto lambda2 = lambda1;
5506 auto a = [](int i, int j){ return i + j; }(1, 2);
5507 auto b = []() -> int { return '0'; }();
5508 auto c = [=](){ return a + b; }();
5509 auto d = [&](){ return c; }();
5510 auto e = [a, &b](int x) mutable {
5511 const auto identity = [](int y){ return y; };
5512 for (auto i = 0; i < a; ++i)
5514 return x + identity(a + b);
5516 return a + b + c + d + e;
5522 const auto nullary = [](){ return 0; };
5523 const auto unary = [](int x){ return x; };
5524 using nullary_t = decltype(nullary);
5525 using unary_t = decltype(unary);
5526 const auto higher1st = [](nullary_t f){ return f(); };
5527 const auto higher2nd = [unary](nullary_t f1){
5528 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5530 return higher1st(nullary) + higher2nd(nullary)(unary);
5535 namespace test_variadic_templates
5541 template <int N0, int... N1toN>
5542 struct sum<N0, N1toN...>
5544 static constexpr auto value = N0 + sum<N1toN...>::value;
5550 static constexpr auto value = 0;
5553 static_assert(sum<>::value == 0, "");
5554 static_assert(sum<1>::value == 1, "");
5555 static_assert(sum<23>::value == 23, "");
5556 static_assert(sum<1, 2>::value == 3, "");
5557 static_assert(sum<5, 5, 11>::value == 21, "");
5558 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5562 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5563 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5565 namespace test_template_alias_sfinae
5570 template<typename T>
5571 using member = typename T::member_type;
5573 template<typename T>
5576 template<typename T>
5577 void func(member<T>*) {}
5581 void test() { func<foo>(0); }
5585 } // namespace cxx11
5587 #endif // __cplusplus >= 201103L
5592 if ac_fn_cxx_try_compile
"$LINENO"; then :
5597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5600 eval ac_res
=\$
$cachevar
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5602 $as_echo "$ac_res" >&6; }
5603 if eval test x\$
$cachevar = xyes
; then
5604 CXX_DIALECT
="$switch"
5611 ac_cpp
='$CPP $CPPFLAGS'
5612 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5616 if test x
$ax_cxx_compile_cxx11_required = xtrue
; then
5617 if test x
$ac_success = xno
; then
5618 as_fn_error
"*** A compiler with support for C++11 language features is required." "$LINENO" 5
5621 if test x
$ac_success = xno
; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5624 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5628 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5636 $as_echo_n "checking for ANSI C header files... " >&6; }
5637 if test "${ac_cv_header_stdc+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5655 if ac_fn_c_try_compile
"$LINENO"; then :
5656 ac_cv_header_stdc
=yes
5658 ac_cv_header_stdc
=no
5660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5662 if test $ac_cv_header_stdc = yes; then
5663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5670 $EGREP "memchr" >/dev
/null
2>&1; then :
5673 ac_cv_header_stdc
=no
5679 if test $ac_cv_header_stdc = yes; then
5680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5687 $EGREP "free" >/dev
/null
2>&1; then :
5690 ac_cv_header_stdc
=no
5696 if test $ac_cv_header_stdc = yes; then
5697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5698 if test "$cross_compiling" = yes; then :
5701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5705 #if ((' ' & 0x0FF) == 0x020)
5706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5709 # define ISLOWER(c) \
5710 (('a' <= (c) && (c) <= 'i') \
5711 || ('j' <= (c) && (c) <= 'r') \
5712 || ('s' <= (c) && (c) <= 'z'))
5713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5721 for (i = 0; i < 256; i++)
5722 if (XOR (islower (i), ISLOWER (i))
5723 || toupper (i) != TOUPPER (i))
5728 if ac_fn_c_try_run
"$LINENO"; then :
5731 ac_cv_header_stdc
=no
5733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5734 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5740 $as_echo "$ac_cv_header_stdc" >&6; }
5741 if test $ac_cv_header_stdc = yes; then
5743 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5748 # Set the 'development' global.
5749 .
$srcdir/..
/..
/bfd
/development.sh
5751 # Enable -lmcheck by default (it provides cheap-enough memory
5752 # mangling), but turn it off for releases.
5753 if $development; then
5754 libmcheck_default
=yes
5756 libmcheck_default
=no
5759 # Check whether --enable-libmcheck was given.
5760 if test "${enable_libmcheck+set}" = set; then :
5761 enableval
=$enable_libmcheck; case "${enableval}" in
5762 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
5763 no | n
) ENABLE_LIBMCHECK
="no" ;;
5764 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
5769 if test -z "${ENABLE_LIBMCHECK}"; then
5770 ENABLE_LIBMCHECK
=${libmcheck_default}
5773 if test "$ENABLE_LIBMCHECK" = "yes" ; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
5775 $as_echo_n "checking for main in -lmcheck... " >&6; }
5776 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5779 ac_check_lib_save_LIBS
=$LIBS
5780 LIBS
="-lmcheck $LIBS"
5781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5793 if ac_fn_c_try_link
"$LINENO"; then :
5794 ac_cv_lib_mcheck_main
=yes
5796 ac_cv_lib_mcheck_main
=no
5798 rm -f core conftest.err conftest.
$ac_objext \
5799 conftest
$ac_exeext conftest.
$ac_ext
5800 LIBS
=$ac_check_lib_save_LIBS
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
5803 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
5804 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
5805 cat >>confdefs.h
<<_ACEOF
5806 #define HAVE_LIBMCHECK 1
5809 LIBS
="-lmcheck $LIBS"
5816 if $development; then
5818 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5822 case ${build_alias} in
5823 "") build_noncanonical
=${build} ;;
5824 *) build_noncanonical
=${build_alias} ;;
5827 case ${host_alias} in
5828 "") host_noncanonical
=${build_noncanonical} ;;
5829 *) host_noncanonical
=${host_alias} ;;
5832 case ${target_alias} in
5833 "") target_noncanonical
=${host_noncanonical} ;;
5834 *) target_noncanonical
=${target_alias} ;;
5842 # Dependency checking.
5843 rm -rf .tst
2>/dev
/null
5844 mkdir .tst
2>/dev
/null
5845 if test -d .tst
; then
5850 rmdir .tst
2>/dev
/null
5852 DEPDIR
="${am__leading_dot}deps"
5854 ac_config_commands
="$ac_config_commands depdir"
5857 depcc
="$CC" am_compiler_list
=
5859 am_depcomp
=$ac_aux_dir/depcomp
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5861 $as_echo_n "checking dependency style of $depcc... " >&6; }
5862 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5865 if test -f "$am_depcomp"; then
5866 # We make a subdir and do the tests there. Otherwise we can end up
5867 # making bogus files that we don't know about and never remove. For
5868 # instance it was reported that on HP-UX the gcc test will end up
5869 # making a dummy file named `D' -- because `-MD' means `put the output
5872 # Copy depcomp to subdir because otherwise we won't find it if we're
5873 # using a relative directory.
5874 cp "$am_depcomp" conftest.dir
5876 # We will build objects and dependencies in a subdirectory because
5877 # it helps to detect inapplicable dependency modes. For instance
5878 # both Tru64's cc and ICC support -MD to output dependencies as a
5879 # side effect of compilation, but ICC will put the dependencies in
5880 # the current directory while Tru64 will put them in the object
5884 am_cv_CC_dependencies_compiler_type
=none
5885 if test "$am_compiler_list" = ""; then
5886 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5888 for depmode
in $am_compiler_list; do
5889 if test $depmode = none
; then break; fi
5891 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5892 # Setup a source with many dependencies, because some compilers
5893 # like to wrap large dependency lists on column 80 (with \), and
5894 # we should not choose a depcomp mode which is confused by this.
5896 # We need to recreate these files for each test, as the compiler may
5897 # overwrite some of them when testing with obscure command lines.
5898 # This happens at least with the AIX C compiler.
5900 for i
in 1 2 3 4 5 6; do
5901 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5902 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5903 # Solaris 8's {/usr,}/bin/sh.
5904 touch sub
/conftst
$i.h
5906 echo "include sub/conftest.Po" > confmf
5908 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5909 # mode. It turns out that the SunPro C++ compiler does not properly
5910 # handle `-M -o', and we need to detect this.
5911 depcmd
="depmode=$depmode \
5912 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5914 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5915 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5916 if env
$depcmd > conftest.err
2>&1 &&
5917 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5918 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5919 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5920 # icc doesn't choke on unknown options, it will just issue warnings
5921 # or remarks (even with -Werror). So we grep stderr for any message
5922 # that says an option was ignored or not supported.
5923 # When given -MP, icc 7.0 and 7.1 complain thusly:
5924 # icc: Command line warning: ignoring option '-M'; no argument required
5925 # The diagnosis changed in icc 8.0:
5926 # icc: Command line remark: option '-MP' not supported
5927 if (grep 'ignoring option' conftest.err ||
5928 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5929 am_cv_CC_dependencies_compiler_type
=$depmode
5930 $as_echo "$as_me:$LINENO: success" >&5
5934 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5935 sed -e 's/^/| /' < conftest.err
>&5
5941 am_cv_CC_dependencies_compiler_type
=none
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5946 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5947 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5948 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5949 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5954 gnulib_extra_configure_args
=
5955 # If large-file support is disabled, make sure gnulib does the same.
5956 if test "$enable_largefile" = no
; then
5957 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5960 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5961 # to find the the source subdir to be configured directly under
5962 # gdbserver/. We need to build gnulib under some other directory not
5963 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5964 # build it in the same directory, when building in the source dir.
5967 in_build
="build-gnulib-gdbserver"
5968 in_extra_args
="$gnulib_extra_configure_args"
5970 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5971 # so they do not pile up.
5972 ac_sub_configure_args
=
5974 eval "set x $ac_configure_args"
5978 if test -n "$ac_prev"; then
5983 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5984 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5985 ac_prev
=cache_file
;;
5986 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5987 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5990 --config-cache |
-C)
5992 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5994 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5996 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5998 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6000 --disable-option-checking)
6004 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6006 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6010 # Always prepend --prefix to ensure using the same prefix
6011 # in subdir configurations.
6012 ac_arg
="--prefix=$prefix"
6014 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6016 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6019 if test "$silent" = yes; then
6020 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6023 # Always prepend --disable-option-checking to silence warnings, since
6024 # different subdirs can have different --enable and --with options.
6025 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6030 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6032 $as_echo "$ac_msg" >&6
6033 as_dir
="$ac_dir"; as_fn_mkdir_p
6037 ac_srcdir
=$srcdir/$in_src ;;
6039 ac_srcdir
=..
/$srcdir/$in_src ;;
6044 ac_sub_configure
=$ac_srcdir/configure
6046 # Make the cache file name correct relative to the subdirectory.
6048 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6050 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6053 if test -n "$in_extra_args"; then
6054 # Add the extra args at the end.
6055 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6058 { $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
6059 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6060 # The eval makes quoting arguments work.
6061 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6062 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6063 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6069 in_src
="../../libiberty"
6070 in_build
="build-libiberty-gdbserver"
6073 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6074 # so they do not pile up.
6075 ac_sub_configure_args
=
6077 eval "set x $ac_configure_args"
6081 if test -n "$ac_prev"; then
6086 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6087 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6088 ac_prev
=cache_file
;;
6089 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6090 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6093 --config-cache |
-C)
6095 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6097 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6099 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6101 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6103 --disable-option-checking)
6107 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6109 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6113 # Always prepend --prefix to ensure using the same prefix
6114 # in subdir configurations.
6115 ac_arg
="--prefix=$prefix"
6117 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6119 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6122 if test "$silent" = yes; then
6123 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6126 # Always prepend --disable-option-checking to silence warnings, since
6127 # different subdirs can have different --enable and --with options.
6128 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6133 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6135 $as_echo "$ac_msg" >&6
6136 as_dir
="$ac_dir"; as_fn_mkdir_p
6140 ac_srcdir
=$srcdir/$in_src ;;
6142 ac_srcdir
=..
/$srcdir/$in_src ;;
6147 ac_sub_configure
=$ac_srcdir/configure
6149 # Make the cache file name correct relative to the subdirectory.
6151 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6153 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6156 if test -n "$in_extra_args"; then
6157 # Add the extra args at the end.
6158 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6161 { $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
6162 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6163 # The eval makes quoting arguments work.
6164 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6165 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6166 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6171 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
6173 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6175 eval as_val
=\$
$as_ac_Header
6176 if test "x$as_val" = x
""yes; then :
6177 cat >>confdefs.h
<<_ACEOF
6178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6185 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6186 if test "x$ac_cv_type_pid_t" = x
""yes; then :
6190 cat >>confdefs.h
<<_ACEOF
6196 for ac_header
in vfork.h
6198 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6199 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
6200 cat >>confdefs.h
<<_ACEOF
6201 #define HAVE_VFORK_H 1
6208 for ac_func
in fork vfork
6210 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6211 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6212 eval as_val
=\$
$as_ac_var
6213 if test "x$as_val" = x
""yes; then :
6214 cat >>confdefs.h
<<_ACEOF
6215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6221 if test "x$ac_cv_func_fork" = xyes
; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6223 $as_echo_n "checking for working fork... " >&6; }
6224 if test "${ac_cv_func_fork_works+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6227 if test "$cross_compiling" = yes; then :
6228 ac_cv_func_fork_works
=cross
6230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 $ac_includes_default
6237 /* By Ruediger Kuhlmann. */
6244 if ac_fn_c_try_run
"$LINENO"; then :
6245 ac_cv_func_fork_works
=yes
6247 ac_cv_func_fork_works
=no
6249 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6250 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6255 $as_echo "$ac_cv_func_fork_works" >&6; }
6258 ac_cv_func_fork_works
=$ac_cv_func_fork
6260 if test "x$ac_cv_func_fork_works" = xcross
; then
6262 *-*-amigaos* |
*-*-msdosdjgpp*)
6263 # Override, as these systems have only a dummy fork() stub
6264 ac_cv_func_fork_works
=no
6267 ac_cv_func_fork_works
=yes
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6271 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6273 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6274 if test "x$ac_cv_func_vfork" = xyes
; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6276 $as_echo_n "checking for working vfork... " >&6; }
6277 if test "${ac_cv_func_vfork_works+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6280 if test "$cross_compiling" = yes; then :
6281 ac_cv_func_vfork_works
=cross
6283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 /* Thanks to Paul Eggert for this test. */
6286 $ac_includes_default
6287 #include <sys/wait.h>
6291 /* On some sparc systems, changes by the child to local and incoming
6292 argument registers are propagated back to the parent. The compiler
6293 is told about this with #include <vfork.h>, but some compilers
6294 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6295 static variable whose address is put into a register that is
6296 clobbered by the vfork. */
6299 sparc_address_test (int arg)
6301 sparc_address_test (arg) int arg;
6322 pid_t parent = getpid ();
6325 sparc_address_test (0);
6330 /* Here is another test for sparc vfork register problems. This
6331 test uses lots of local variables, at least as many local
6332 variables as main has allocated so far including compiler
6333 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6334 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6335 reuse the register of parent for one of the local variables,
6336 since it will think that parent can't possibly be used any more
6337 in this routine. Assigning to the local variable will thus
6338 munge parent in the parent process. */
6340 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6341 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6342 /* Convince the compiler that p..p7 are live; otherwise, it might
6343 use the same hardware register for all 8 local variables. */
6344 if (p != p1 || p != p2 || p != p3 || p != p4
6345 || p != p5 || p != p6 || p != p7)
6348 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6349 from child file descriptors. If the child closes a descriptor
6350 before it execs or exits, this munges the parent's descriptor
6351 as well. Test for this by closing stdout in the child. */
6352 _exit(close(fileno(stdout)) != 0);
6357 while (wait(&status) != child)
6360 /* Was there some problem with vforking? */
6363 /* Did the child fail? (This shouldn't happen.) */
6366 /* Did the vfork/compiler bug occur? */
6367 || parent != getpid()
6369 /* Did the file descriptor bug occur? */
6370 || fstat(fileno(stdout), &st) != 0
6375 if ac_fn_c_try_run
"$LINENO"; then :
6376 ac_cv_func_vfork_works
=yes
6378 ac_cv_func_vfork_works
=no
6380 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6381 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6386 $as_echo "$ac_cv_func_vfork_works" >&6; }
6389 if test "x$ac_cv_func_fork_works" = xcross
; then
6390 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6392 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6395 if test "x$ac_cv_func_vfork_works" = xyes
; then
6397 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6401 $as_echo "#define vfork fork" >>confdefs.h
6404 if test "x$ac_cv_func_fork_works" = xyes
; then
6406 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6410 for ac_func
in getauxval pread pwrite pread64 setns
6412 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6413 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6414 eval as_val
=\$
$as_ac_var
6415 if test "x$as_val" = x
""yes; then :
6416 cat >>confdefs.h
<<_ACEOF
6417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6426 $as_echo_n "checking for ANSI C header files... " >&6; }
6427 if test "${ac_cv_header_stdc+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6445 if ac_fn_c_try_compile
"$LINENO"; then :
6446 ac_cv_header_stdc
=yes
6448 ac_cv_header_stdc
=no
6450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6452 if test $ac_cv_header_stdc = yes; then
6453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6460 $EGREP "memchr" >/dev
/null
2>&1; then :
6463 ac_cv_header_stdc
=no
6469 if test $ac_cv_header_stdc = yes; then
6470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6477 $EGREP "free" >/dev
/null
2>&1; then :
6480 ac_cv_header_stdc
=no
6486 if test $ac_cv_header_stdc = yes; then
6487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6488 if test "$cross_compiling" = yes; then :
6491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6495 #if ((' ' & 0x0FF) == 0x020)
6496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6499 # define ISLOWER(c) \
6500 (('a' <= (c) && (c) <= 'i') \
6501 || ('j' <= (c) && (c) <= 'r') \
6502 || ('s' <= (c) && (c) <= 'z'))
6503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6511 for (i = 0; i < 256; i++)
6512 if (XOR (islower (i), ISLOWER (i))
6513 || toupper (i) != TOUPPER (i))
6518 if ac_fn_c_try_run
"$LINENO"; then :
6521 ac_cv_header_stdc
=no
6523 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6524 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6530 $as_echo "$ac_cv_header_stdc" >&6; }
6531 if test $ac_cv_header_stdc = yes; then
6533 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6537 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6538 # for constant arguments. Useless!
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6540 $as_echo_n "checking for working alloca.h... " >&6; }
6541 if test "${ac_cv_working_alloca_h+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6550 char *p = (char *) alloca (2 * sizeof (int));
6556 if ac_fn_c_try_link
"$LINENO"; then :
6557 ac_cv_working_alloca_h
=yes
6559 ac_cv_working_alloca_h
=no
6561 rm -f core conftest.err conftest.
$ac_objext \
6562 conftest
$ac_exeext conftest.
$ac_ext
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6565 $as_echo "$ac_cv_working_alloca_h" >&6; }
6566 if test $ac_cv_working_alloca_h = yes; then
6568 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6573 $as_echo_n "checking for alloca... " >&6; }
6574 if test "${ac_cv_func_alloca_works+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6580 # define alloca __builtin_alloca
6583 # include <malloc.h>
6584 # define alloca _alloca
6586 # ifdef HAVE_ALLOCA_H
6587 # include <alloca.h>
6592 # ifndef alloca /* predefined by HP cc +Olibcalls */
6603 char *p = (char *) alloca (1);
6609 if ac_fn_c_try_link
"$LINENO"; then :
6610 ac_cv_func_alloca_works
=yes
6612 ac_cv_func_alloca_works
=no
6614 rm -f core conftest.err conftest.
$ac_objext \
6615 conftest
$ac_exeext conftest.
$ac_ext
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6618 $as_echo "$ac_cv_func_alloca_works" >&6; }
6620 if test $ac_cv_func_alloca_works = yes; then
6622 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6625 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6626 # that cause trouble. Some versions do not even contain alloca or
6627 # contain a buggy version. If you still want to use their alloca,
6628 # use ar to extract alloca.o from them instead of compiling alloca.c.
6630 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6632 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6636 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6637 if test "${ac_cv_os_cray+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 #if defined CRAY && ! defined CRAY2
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "webecray" >/dev
/null
2>&1; then :
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6659 $as_echo "$ac_cv_os_cray" >&6; }
6660 if test $ac_cv_os_cray = yes; then
6661 for ac_func
in _getb67 GETB67 getb67
; do
6662 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6663 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6664 eval as_val
=\$
$as_ac_var
6665 if test "x$as_val" = x
""yes; then :
6667 cat >>confdefs.h
<<_ACEOF
6668 #define CRAY_STACKSEG_END $ac_func
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6678 $as_echo_n "checking stack direction for C alloca... " >&6; }
6679 if test "${ac_cv_c_stack_direction+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6682 if test "$cross_compiling" = yes; then :
6683 ac_cv_c_stack_direction
=0
6685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6687 $ac_includes_default
6689 find_stack_direction ()
6691 static char *addr = 0;
6696 return find_stack_direction ();
6699 return (&dummy > addr) ? 1 : -1;
6705 return find_stack_direction () < 0;
6708 if ac_fn_c_try_run
"$LINENO"; then :
6709 ac_cv_c_stack_direction
=1
6711 ac_cv_c_stack_direction
=-1
6713 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6714 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6719 $as_echo "$ac_cv_c_stack_direction" >&6; }
6720 cat >>confdefs.h
<<_ACEOF
6721 #define STACK_DIRECTION $ac_cv_c_stack_direction
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6730 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6731 if test "${am_cv_langinfo_codeset+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <langinfo.h>
6740 char* cs = nl_langinfo(CODESET);
6745 if ac_fn_c_try_link
"$LINENO"; then :
6746 am_cv_langinfo_codeset
=yes
6748 am_cv_langinfo_codeset
=no
6750 rm -f core conftest.err conftest.
$ac_objext \
6751 conftest
$ac_exeext conftest.
$ac_ext
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6755 $as_echo "$am_cv_langinfo_codeset" >&6; }
6756 if test $am_cv_langinfo_codeset = yes; then
6758 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6763 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 termios.h termio.h sgtty.h
6765 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6766 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6767 eval as_val
=\$
$as_ac_Header
6768 if test "x$as_val" = x
""yes; then :
6769 cat >>confdefs.h
<<_ACEOF
6770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6778 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
6780 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6781 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6782 eval as_val
=\$
$as_ac_var
6783 if test "x$as_val" = x
""yes; then :
6784 cat >>confdefs.h
<<_ACEOF
6785 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6792 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6793 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
6799 cat >>confdefs.h
<<_ACEOF
6800 #define HAVE_DECL_STRERROR $ac_have_decl
6802 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
6803 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
6809 cat >>confdefs.h
<<_ACEOF
6810 #define HAVE_DECL_STRSTR $ac_have_decl
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
6815 $as_echo_n "checking for sigsetjmp... " >&6; }
6816 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
6817 $as_echo_n "(cached) " >&6
6819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6827 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6832 if ac_fn_c_try_compile
"$LINENO"; then :
6833 gdb_cv_func_sigsetjmp
=yes
6835 gdb_cv_func_sigsetjmp
=no
6837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6840 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6841 if test $gdb_cv_func_sigsetjmp = yes; then
6843 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6848 # Check the return and argument types of ptrace.
6851 for ac_header
in sys
/ptrace.h ptrace.h
6853 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6854 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6855 eval as_val
=\$
$as_ac_Header
6856 if test "x$as_val" = x
""yes; then :
6857 cat >>confdefs.h
<<_ACEOF
6858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 gdb_ptrace_headers
='
6867 #include <sys/types.h>
6868 #if HAVE_SYS_PTRACE_H
6869 # include <sys/ptrace.h>
6872 # include <unistd.h>
6875 # There is no point in checking if we don't have a prototype.
6876 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6878 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
6884 cat >>confdefs.h
<<_ACEOF
6885 #define HAVE_DECL_PTRACE $ac_have_decl
6887 if test $ac_have_decl = 1; then :
6891 : ${gdb_cv_func_ptrace_ret='int'}
6892 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6896 # Check return type. Varargs (used on GNU/Linux) conflict with the
6897 # empty argument list, so check for that explicitly.
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6899 $as_echo_n "checking return type of ptrace... " >&6; }
6900 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6909 extern long ptrace (enum __ptrace_request, ...);
6914 if ac_fn_c_try_compile
"$LINENO"; then :
6915 gdb_cv_func_ptrace_ret
='long'
6917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6923 extern int ptrace ();
6928 if ac_fn_c_try_compile
"$LINENO"; then :
6929 gdb_cv_func_ptrace_ret
='int'
6931 gdb_cv_func_ptrace_ret
='long'
6933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
6938 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
6940 cat >>confdefs.h
<<_ACEOF
6941 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
6944 # Check argument types.
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
6946 $as_echo_n "checking types of arguments for ptrace... " >&6; }
6947 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
6948 $as_echo_n "(cached) " >&6
6951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6957 extern long ptrace (enum __ptrace_request, ...);
6962 if ac_fn_c_try_compile
"$LINENO"; then :
6963 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
6966 for gdb_arg1
in 'int' 'long'; do
6967 for gdb_arg2
in 'pid_t' 'int' 'long'; do
6968 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
6969 for gdb_arg4
in 'int' 'long' 'void *'; do
6970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6977 extern $gdb_cv_func_ptrace_ret
6978 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
6984 if ac_fn_c_try_compile
"$LINENO"; then :
6985 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
6988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6989 for gdb_arg5
in 'int *' 'int' 'long'; do
6990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6997 extern $gdb_cv_func_ptrace_ret
6998 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7004 if ac_fn_c_try_compile
"$LINENO"; then :
7006 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7015 # Provide a safe default value.
7016 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7022 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7023 ac_save_IFS
=$IFS; IFS
=','
7024 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7028 cat >>confdefs.h
<<_ACEOF
7029 #define PTRACE_TYPE_ARG1 $1
7033 cat >>confdefs.h
<<_ACEOF
7034 #define PTRACE_TYPE_ARG3 $3
7038 cat >>confdefs.h
<<_ACEOF
7039 #define PTRACE_TYPE_ARG4 $4
7042 if test -n "$5"; then
7044 cat >>confdefs.h
<<_ACEOF
7045 #define PTRACE_TYPE_ARG5 $5
7056 # Check whether --with-ust was given.
7057 if test "${with_ust+set}" = set; then :
7062 # Check whether --with-ust_include was given.
7063 if test "${with_ust_include+set}" = set; then :
7064 withval
=$with_ust_include;
7068 # Check whether --with-ust_lib was given.
7069 if test "${with_ust_lib+set}" = set; then :
7070 withval
=$with_ust_lib;
7084 ustlibs
="-L$with_ust/lib -lust"
7085 ustinc
="-I$with_ust/include "
7088 if test "x$with_ust_include" != x
; then
7089 ustinc
="-I$with_ust_include "
7091 if test "x$with_ust_lib" != x
; then
7092 ustlibs
="-L$with_ust_lib -lust"
7095 if test "x$with_ust" != "xno"; then
7096 saved_CFLAGS
="$CFLAGS"
7097 CFLAGS
="$CFLAGS $ustinc"
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
7099 $as_echo_n "checking for ust... " >&6; }
7100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7103 #define CONFIG_UST_GDB_INTEGRATION
7104 #include <ust/ust.h>
7114 if ac_fn_c_try_compile
"$LINENO"; then :
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7116 $as_echo "yes" >&6; };
7117 $as_echo "#define HAVE_UST 1" >>confdefs.h
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
7123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7124 CFLAGS
="$saved_CFLAGS"
7127 # Flags needed for UST
7132 # Check whether --enable-werror was given.
7133 if test "${enable_werror+set}" = set; then :
7134 enableval
=$enable_werror; case "${enableval}" in
7135 yes | y
) ERROR_ON_WARNING
="yes" ;;
7136 no | n
) ERROR_ON_WARNING
="no" ;;
7137 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7142 # Enable -Werror by default when using gcc. Turn it off for releases.
7143 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
7144 ERROR_ON_WARNING
=yes
7148 if test "${ERROR_ON_WARNING}" = yes ; then
7149 WERROR_CFLAGS
="-Werror"
7152 # The options we'll try to enable.
7153 build_warnings
="-Wall -Wpointer-arith \
7154 -Wno-unused -Wunused-value -Wunused-function \
7155 -Wno-switch -Wno-char-subscripts \
7156 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
7157 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
7158 -Wno-mismatched-tags"
7160 # Enable -Wno-format by default when using gcc on mingw since many
7161 # GCC versions complain about %I64.
7163 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
7164 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
7167 # Check whether --enable-build-warnings was given.
7168 if test "${enable_build_warnings+set}" = set; then :
7169 enableval
=$enable_build_warnings; case "${enableval}" in
7171 no
) build_warnings
="-w";;
7172 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7173 build_warnings
="${build_warnings} ${t}";;
7174 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7175 build_warnings
="${t} ${build_warnings}";;
7176 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7178 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7179 echo "Setting compiler warning flags = $build_warnings" 6>&1
7182 # Check whether --enable-gdb-build-warnings was given.
7183 if test "${enable_gdb_build_warnings+set}" = set; then :
7184 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
7186 no
) build_warnings
="-w";;
7187 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7188 build_warnings
="${build_warnings} ${t}";;
7189 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7190 build_warnings
="${t} ${build_warnings}";;
7191 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7193 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7194 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7198 # The set of warnings supported by a C++ compiler is not the same as
7199 # of the C compiler.
7201 ac_cpp
='$CXXCPP $CPPFLAGS'
7202 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7208 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
7211 $as_echo_n "checking compiler warning flags... " >&6; }
7212 # Separate out the -Werror flag as some files just cannot be
7213 # compiled with it enabled.
7214 for w
in ${build_warnings}; do
7215 # GCC does not complain about -Wno-unknown-warning. Invert
7216 # and test -Wunknown-warning instead.
7219 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
7225 -Werr*) WERROR_CFLAGS
=-Werror ;;
7227 # Check whether GCC accepts it.
7228 saved_CFLAGS
="$CFLAGS"
7229 CFLAGS
="$CFLAGS -Werror $wtest"
7230 saved_CXXFLAGS
="$CXXFLAGS"
7231 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
7232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7243 if ac_fn_cxx_try_compile
"$LINENO"; then :
7244 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7247 CFLAGS
="$saved_CFLAGS"
7248 CXXFLAGS
="$saved_CXXFLAGS"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
7252 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
7258 ac_cpp='$CPP $CPPFLAGS'
7259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264 case " $WARN_CFLAGS " in
7265 *" -Wmissing-prototypes "*)
7266 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
7272 for ac_func in dladdr
7274 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
7275 if test "x
$ac_cv_func_dladdr" = x""yes; then :
7276 cat >>confdefs.h <<_ACEOF
7277 #define HAVE_DLADDR 1
7286 # Check for presence and size of long long.
7287 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
7288 if test "x
$ac_cv_type_long_long" = x""yes; then :
7290 cat >>confdefs.h <<_ACEOF
7291 #define HAVE_LONG_LONG 1
7294 # The cast to long int works around a bug in the HP C Compiler
7295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7297 # This bug is HP SR number 8606223364.
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
7299 $as_echo_n "checking size of long long...
" >&6; }
7300 if test "${ac_cv_sizeof_long_long+set}" = set; then :
7301 $as_echo_n "(cached
) " >&6
7303 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
7306 if test "$ac_cv_type_long_long" = yes; then
7307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7309 { as_fn_set_status 77
7310 as_fn_error "cannot compute sizeof (long long)
7311 See \`config.log' for more details.
" "$LINENO" 5; }; }
7313 ac_cv_sizeof_long_long=0
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
7319 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7323 cat >>confdefs.h <<_ACEOF
7324 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7331 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "ac_cv_have_decl_basename_char_p_
" "$ac_includes_default"
7332 if test "x
$ac_cv_have_decl_basename_char_p_" = x""yes; then :
7338 cat >>confdefs.h <<_ACEOF
7339 #define HAVE_DECL_BASENAME $ac_have_decl
7341 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
7342 if test "x
$ac_cv_have_decl_ffs" = x""yes; then :
7348 cat >>confdefs.h <<_ACEOF
7349 #define HAVE_DECL_FFS $ac_have_decl
7351 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
7352 if test "x
$ac_cv_have_decl_asprintf" = x""yes; then :
7358 cat >>confdefs.h <<_ACEOF
7359 #define HAVE_DECL_ASPRINTF $ac_have_decl
7361 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7362 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
7368 cat >>confdefs.h <<_ACEOF
7369 #define HAVE_DECL_VASPRINTF $ac_have_decl
7371 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
7372 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then :
7378 cat >>confdefs.h <<_ACEOF
7379 #define HAVE_DECL_SNPRINTF $ac_have_decl
7381 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7382 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
7388 cat >>confdefs.h <<_ACEOF
7389 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7392 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
7393 if test "x
$ac_cv_have_decl_strtol" = x""yes; then :
7399 cat >>confdefs.h <<_ACEOF
7400 #define HAVE_DECL_STRTOL $ac_have_decl
7402 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
7403 if test "x
$ac_cv_have_decl_strtoul" = x""yes; then :
7409 cat >>confdefs.h <<_ACEOF
7410 #define HAVE_DECL_STRTOUL $ac_have_decl
7412 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
7413 if test "x
$ac_cv_have_decl_strtoll" = x""yes; then :
7419 cat >>confdefs.h <<_ACEOF
7420 #define HAVE_DECL_STRTOLL $ac_have_decl
7422 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
7423 if test "x
$ac_cv_have_decl_strtoull" = x""yes; then :
7429 cat >>confdefs.h <<_ACEOF
7430 #define HAVE_DECL_STRTOULL $ac_have_decl
7433 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
7434 if test "x
$ac_cv_have_decl_strverscmp" = x""yes; then :
7440 cat >>confdefs.h <<_ACEOF
7441 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7446 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
7447 if test "x
$ac_cv_have_decl_strerror" = x""yes; then :
7453 cat >>confdefs.h <<_ACEOF
7454 #define HAVE_DECL_STRERROR $ac_have_decl
7456 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
7457 if test "x
$ac_cv_have_decl_perror" = x""yes; then :
7463 cat >>confdefs.h <<_ACEOF
7464 #define HAVE_DECL_PERROR $ac_have_decl
7466 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7467 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
7473 cat >>confdefs.h <<_ACEOF
7474 #define HAVE_DECL_VASPRINTF $ac_have_decl
7476 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7477 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
7483 cat >>confdefs.h <<_ACEOF
7484 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7488 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
7489 if test "x
$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
7491 cat >>confdefs.h <<_ACEOF
7492 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7497 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
7498 if test "x
$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
7500 cat >>confdefs.h <<_ACEOF
7501 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7508 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
7509 # Older amd64 Linux's don't have the fs_base and gs_base members of
7510 # `struct user_regs_struct'.
7511 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "fs_base
" "ac_cv_member_struct_user_regs_struct_fs_base
" "#include <sys/user.h>
7513 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
7515 cat >>confdefs.h <<_ACEOF
7516 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
7521 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "gs_base
" "ac_cv_member_struct_user_regs_struct_gs_base
" "#include <sys/user.h>
7523 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
7525 cat >>confdefs.h <<_ACEOF
7526 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
7534 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
7535 #include <sys/socket.h>
7538 if test "x
$ac_cv_type_socklen_t" = x""yes; then :
7540 cat >>confdefs.h <<_ACEOF
7541 #define HAVE_SOCKLEN_T 1
7550 # Starting with NDK version 9, <elf.h> actually includes definitions
7551 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
7552 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
7553 # leading to conflicts with the defintions from <linux/elf.h>.
7554 # This makes it impossible for us to include both <elf.h> and
7555 # <linux/elf.h>, which means that, in practice, we do not have
7556 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
7557 # Therefore, do not try to auto-detect availability, as it would
7558 # get it wrong on this platform.
7561 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
7564 if test "x
$ac_cv_type_Elf32_auxv_t" = x""yes; then :
7566 cat >>confdefs.h <<_ACEOF
7567 #define HAVE_ELF32_AUXV_T 1
7572 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
7575 if test "x
$ac_cv_type_Elf64_auxv_t" = x""yes; then :
7577 cat >>confdefs.h <<_ACEOF
7578 #define HAVE_ELF64_AUXV_T 1
7588 # Check whether --with-pkgversion was given.
7589 if test "${with_pkgversion+set}" = set; then :
7590 withval=$with_pkgversion; case "$withval" in
7591 yes) as_fn_error "package version not specified
" "$LINENO" 5 ;;
7593 *) PKGVERSION="($withval) " ;;
7604 # Check whether --with-bugurl was given.
7605 if test "${with_bugurl+set}" = set; then :
7606 withval=$with_bugurl; case "$withval" in
7607 yes) as_fn_error "bug URL not specified
" "$LINENO" 5 ;;
7610 *) BUGURL="$withval"
7614 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
7624 REPORT_BUGS_TO="<$BUGURL>"
7625 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7632 cat >>confdefs.h <<_ACEOF
7633 #define PKGVERSION "$PKGVERSION"
7637 cat >>confdefs.h <<_ACEOF
7638 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7642 # Check for various supplementary target information (beyond the
7643 # triplet) which might affect the choices in configure.srv.
7645 i[34567]86-*-linux*)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
7647 $as_echo_n "checking
if building
for x86-64...
" >&6; }
7648 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
7649 $as_echo_n "(cached
) " >&6
7651 save_CPPFLAGS="$CPPFLAGS"
7652 CPPFLAGS="$CPPFLAGS $CFLAGS"
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7661 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7662 $EGREP "got it
" >/dev/null 2>&1; then :
7663 gdb_cv_i386_is_x86_64=yes
7665 gdb_cv_i386_is_x86_64=no
7669 CPPFLAGS="$save_CPPFLAGS"
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
7672 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
7677 $as_echo_n "checking
if building
for x32...
" >&6; }
7678 if test "${gdb_cv_x86_is_x32+set}" = set; then :
7679 $as_echo_n "(cached
) " >&6
7681 save_CPPFLAGS="$CPPFLAGS"
7682 CPPFLAGS="$CPPFLAGS $CFLAGS"
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7686 #if __x86_64__ && __ILP32__
7691 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7692 $EGREP "got it
" >/dev/null 2>&1; then :
7693 gdb_cv_x86_is_x32=yes
7695 gdb_cv_x86_is_x32=no
7699 CPPFLAGS="$save_CPPFLAGS"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
7702 $as_echo "$gdb_cv_x86_is_x32" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
7707 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
7708 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
7709 $as_echo_n "(cached
) " >&6
7711 save_CPPFLAGS="$CPPFLAGS"
7712 CPPFLAGS="$CPPFLAGS $CFLAGS"
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7716 #ifdef __mcoldfire__
7721 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7722 $EGREP "got it
" >/dev/null 2>&1; then :
7723 gdb_cv_m68k_is_coldfire=yes
7725 gdb_cv_m68k_is_coldfire=no
7729 CPPFLAGS="$save_CPPFLAGS"
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
7732 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
7736 . ${srcdir}/configure.srv
7738 # Add in the common host objects.
7739 . ${srcdir}/../common/common.host
7740 srv_host_obs="$common_host_obs"
7742 if test "${srv_mingwce}" = "yes"; then
7744 elif test "${srv_mingw}" = "yes"; then
7745 LIBS="$LIBS -lws2_32"
7746 elif test "${srv_qnx}" = "yes"; then
7747 LIBS="$LIBS -lsocket"
7748 elif test "${srv_lynxos}" = "yes"; then
7749 LIBS="$LIBS -lnetinet"
7752 if test "${srv_mingw}" = "yes"; then
7754 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7758 if test "${srv_linux_usrregs}" = "yes"; then
7760 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
7764 if test "${srv_linux_regsets}" = "yes"; then
7766 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7770 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7771 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #include <sys/ptrace.h>
7785 if ac_fn_c_try_compile
"$LINENO"; then :
7786 gdbsrv_cv_have_ptrace_getregs
=yes
7788 gdbsrv_cv_have_ptrace_getregs
=no
7790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
7794 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
7795 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
7797 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
7802 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
7803 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <sys/ptrace.h>
7817 if ac_fn_c_try_compile
"$LINENO"; then :
7818 gdbsrv_cv_have_ptrace_getfpxregs
=yes
7820 gdbsrv_cv_have_ptrace_getfpxregs
=no
7822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
7826 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
7827 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
7829 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
7834 if test "${srv_linux_btrace}" = "yes"; then
7836 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
7840 if test "$ac_cv_header_sys_procfs_h" = yes; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7842 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7843 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7850 /* Needed for new procfs interface on sparc-solaris. */
7851 #define _STRUCTURED_PROC 1
7852 #include <sys/procfs.h>
7861 if ac_fn_c_try_compile
"$LINENO"; then :
7862 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7864 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7870 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7872 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
7876 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
7879 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
7880 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7887 /* Needed for new procfs interface on sparc-solaris. */
7888 #define _STRUCTURED_PROC 1
7889 #include <sys/procfs.h>
7898 if ac_fn_c_try_compile
"$LINENO"; then :
7899 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7901 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7907 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7909 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
7913 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
7916 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
7917 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7924 /* Needed for new procfs interface on sparc-solaris. */
7925 #define _STRUCTURED_PROC 1
7926 #include <sys/procfs.h>
7935 if ac_fn_c_try_compile
"$LINENO"; then :
7936 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7938 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7944 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7946 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
7950 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
7953 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
7954 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
7957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7961 /* Needed for new procfs interface on sparc-solaris. */
7962 #define _STRUCTURED_PROC 1
7963 #include <sys/procfs.h>
7972 if ac_fn_c_try_compile
"$LINENO"; then :
7973 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7975 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7983 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
7987 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
7990 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
7991 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7998 /* Needed for new procfs interface on sparc-solaris. */
7999 #define _STRUCTURED_PROC 1
8000 #include <sys/procfs.h>
8009 if ac_fn_c_try_compile
"$LINENO"; then :
8010 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8012 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8018 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8020 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8024 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8028 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8030 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8031 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8037 #include <thread_db.h>
8046 if ac_fn_c_try_compile
"$LINENO"; then :
8047 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
8049 gdbserver_cv_have_thread_db_type_lwpid_t
=no
8052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8055 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
8057 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
8061 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
8065 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
8067 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
8068 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8074 #include <thread_db.h>
8083 if ac_fn_c_try_compile
"$LINENO"; then :
8084 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
8086 gdbserver_cv_have_thread_db_type_psaddr_t
=no
8089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8092 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
8094 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
8098 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8104 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8105 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8108 ac_check_lib_save_LIBS
=$LIBS
8110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8113 /* Override any GCC internal prototype to avoid an error.
8114 Use char because int might match the return type of a GCC
8115 builtin and then its argument prototype would still apply. */
8128 if ac_fn_c_try_link
"$LINENO"; then :
8129 ac_cv_lib_dl_dlopen
=yes
8131 ac_cv_lib_dl_dlopen
=no
8133 rm -f core conftest.err conftest.
$ac_objext \
8134 conftest
$ac_exeext conftest.
$ac_ext
8135 LIBS
=$ac_check_lib_save_LIBS
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8138 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8139 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
8140 cat >>confdefs.h
<<_ACEOF
8141 #define HAVE_LIBDL 1
8150 srv_thread_depfiles
=
8153 if test "$srv_linux_thread_db" = "yes"; then
8154 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
8157 $as_echo_n "checking for the dynamic export flag... " >&6; }
8158 old_LDFLAGS
="$LDFLAGS"
8159 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
8161 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
8162 LDFLAGS
="$LDFLAGS $RDYNAMIC"
8163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8174 if ac_fn_c_try_link
"$LINENO"; then :
8175 found
="-Wl,--dynamic-list"
8176 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
8178 RDYNAMIC
="-rdynamic"
8179 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
8180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8191 if ac_fn_c_try_link
"$LINENO"; then :
8197 rm -f core conftest.err conftest.
$ac_objext \
8198 conftest
$ac_exeext conftest.
$ac_ext
8200 rm -f core conftest.err conftest.
$ac_objext \
8201 conftest
$ac_exeext conftest.
$ac_ext
8203 LDFLAGS
="$old_LDFLAGS"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8205 $as_echo "$found" >&6; }
8207 srv_libs
="-lthread_db"
8210 srv_thread_depfiles
="thread-db.o proc-service.o"
8212 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
8215 $as_echo_n "checking for TD_VERSION... " >&6; }
8216 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #include <thread_db.h>
8230 if ac_fn_c_try_compile
"$LINENO"; then :
8231 gdbsrv_cv_have_td_version
=yes
8233 gdbsrv_cv_have_td_version
=no
8235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
8238 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
8239 if test $gdbsrv_cv_have_td_version = yes; then
8241 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
8247 # Check whether --with-libthread-db was given.
8248 if test "${with_libthread_db+set}" = set; then :
8249 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
8250 srv_libs
="$srv_libthread_db_path"
8255 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
8257 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
8261 if test "$srv_xmlfiles" != ""; then
8262 srv_xmlbuiltin
="xml-builtin.o"
8264 $as_echo "#define USE_XML 1" >>confdefs.h
8267 tmp_xmlfiles
=$srv_xmlfiles
8269 for f
in $tmp_xmlfiles; do
8270 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
8274 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
8275 GDBSERVER_LIBS
="$srv_libs"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
8278 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
8279 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8289 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
8294 if ac_fn_c_try_link
"$LINENO"; then :
8295 gdbsrv_cv_have_sync_builtins
=yes
8297 gdbsrv_cv_have_sync_builtins
=no
8299 rm -f core conftest.err conftest.
$ac_objext \
8300 conftest
$ac_exeext conftest.
$ac_ext
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
8303 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
8304 if test $gdbsrv_cv_have_sync_builtins = yes; then
8306 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
8310 saved_cflags
="$CFLAGS"
8311 CFLAGS
="$CFLAGS -fvisibility=hidden"
8312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8323 if ac_fn_c_try_compile
"$LINENO"; then :
8324 gdbsrv_cv_have_visibility_hidden
=yes
8326 gdbsrv_cv_have_visibility_hidden
=no
8328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8329 CFLAGS
="$saved_cflags"
8331 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8333 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
8339 cat >>confdefs.h
<<_ACEOF
8340 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8344 if test "$cross_compiling" = yes; then :
8345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 #include <sys/personality.h>
8352 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8353 # define ADDR_NO_RANDOMIZE 0x0040000
8355 /* Test the flag could be set and stays set. */
8356 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8357 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8363 if ac_fn_c_try_link
"$LINENO"; then :
8364 gdbsrv_cv_have_personality
=true
8366 gdbsrv_cv_have_personality
=false
8368 rm -f core conftest.err conftest.
$ac_objext \
8369 conftest
$ac_exeext conftest.
$ac_ext
8371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 #include <sys/personality.h>
8378 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8379 # define ADDR_NO_RANDOMIZE 0x0040000
8381 /* Test the flag could be set and stays set. */
8382 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8383 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8389 if ac_fn_c_try_run
"$LINENO"; then :
8390 gdbsrv_cv_have_personality
=true
8392 gdbsrv_cv_have_personality
=false
8394 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8395 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8398 if $gdbsrv_cv_have_personality
8401 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8409 # check whether to enable the inprocess agent
8410 if test "$ipa_obj" != "" \
8411 -a "$gdbsrv_cv_have_sync_builtins" = yes \
8412 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
8418 # Check whether --enable-inprocess-agent was given.
8419 if test "${enable_inprocess_agent+set}" = set; then :
8420 enableval
=$enable_inprocess_agent; case "$enableval" in
8421 yes) want_ipa
=true
;;
8422 no
) want_ipa
=false
;;
8423 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
8432 IPA_DEPFILES
="$ipa_obj"
8433 extra_libraries
="$extra_libraries libinproctrace.so"
8435 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
8446 GNULIB
=build-gnulib-gdbserver
/import
8449 if test x
"$STDINT_H" != x
; then
8450 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
8454 ac_config_files
="$ac_config_files Makefile"
8457 cat >confcache
<<\_ACEOF
8458 # This file is a shell script that caches the results of configure
8459 # tests run on this system so they can be shared between configure
8460 # scripts and configure runs, see configure's option --config-cache.
8461 # It is not useful on other systems. If it contains results you don't
8462 # want to keep, you may remove or edit it.
8464 # config.status only pays attention to the cache file if you give it
8465 # the --recheck option to rerun configure.
8467 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8468 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8473 # The following way of writing the cache mishandles newlines in values,
8474 # but we know of no workaround that is simple, portable, and efficient.
8475 # So, we kill variables containing newlines.
8476 # Ultrix sh set writes to stderr and can't be redirected directly,
8477 # and sets the high bit in the cache file unless we assign to the vars.
8479 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8480 eval ac_val
=\$
$ac_var
8484 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8488 _ | IFS | as_nl
) ;; #(
8489 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8490 *) { eval $ac_var=; unset $ac_var;} ;;
8496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8497 *${as_nl}ac_space
=\
*)
8498 # `set' does not quote correctly, so add quotes: double-quote
8499 # substitution turns \\\\ into \\, and sed turns \\ into \.
8502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8505 # `set' quotes correctly as required by POSIX, so do not add quotes.
8506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8519 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8520 if test -w "$cache_file"; then
8521 test "x$cache_file" != "x/dev/null" &&
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8523 $as_echo "$as_me: updating cache $cache_file" >&6;}
8524 cat confcache
>$cache_file
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8527 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8532 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8533 # Let make expand exec_prefix.
8534 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8536 DEFS
=-DHAVE_CONFIG_H
8540 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8541 # 1. Remove the extension, and $U if already installed.
8542 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8543 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8545 # will be set to the directory where LIBOBJS objects are built.
8546 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8547 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8551 LTLIBOBJS
=$ac_ltlibobjs
8554 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8555 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
8556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8559 : ${CONFIG_STATUS=./config.status}
8561 ac_clean_files_save
=$ac_clean_files
8562 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8564 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8566 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8568 # Generated by $as_me.
8569 # Run this file to recreate the current configuration.
8570 # Compiler output produced by configure, useful for debugging
8571 # configure, is in config.log if it exists.
8577 SHELL=\${CONFIG_SHELL-$SHELL}
8580 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8581 ## -------------------- ##
8582 ## M4sh Initialization. ##
8583 ## -------------------- ##
8585 # Be more Bourne compatible
8586 DUALCASE
=1; export DUALCASE
# for MKS sh
8587 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8590 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8591 # is contrary to our usage. Disable this feature.
8592 alias -g '${1+"$@"}'='"$@"'
8593 setopt NO_GLOB_SUBST
8595 case `(set -o) 2>/dev/null` in #(
8607 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8608 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8610 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8611 # Prefer a ksh shell builtin over an external printf program on Solaris,
8612 # but without wasting forks for bash or zsh.
8613 if test -z "$BASH_VERSION$ZSH_VERSION" \
8614 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8615 as_echo='print
-r --'
8616 as_echo_n='print
-rn --'
8617 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8618 as_echo='printf %s
\n'
8619 as_echo_n='printf %s
'
8621 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8622 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8623 as_echo_n='/usr
/ucb
/echo -n'
8625 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8626 as_echo_n_body='eval
8630 expr "X$arg" : "X\\(.*\\)$as_nl";
8631 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8633 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8635 export as_echo_n_body
8636 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8639 as_echo='sh
-c $as_echo_body as_echo
'
8642 # The user is always right.
8643 if test "${PATH_SEPARATOR+set}" != set; then
8645 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8646 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8653 # We need space, tab and new line, in precisely that order. Quoting is
8654 # there to prevent editors from complaining about space-tab.
8655 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8656 # splitting by setting IFS to empty value.)
8659 # Find who we are. Look in the path if we contain no directory separator.
8661 *[\\/]* ) as_myself=$0 ;;
8662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 test -z "$as_dir" && as_dir=.
8667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8673 # We did not find ourselves, most probably we were run as `sh COMMAND'
8674 # in which case we are not to be found in the path.
8675 if test "x$as_myself" = x
; then
8678 if test ! -f "$as_myself"; then
8679 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8683 # Unset variables that we do not need and which cause bugs (e.g. in
8684 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8685 # suppresses any "Segmentation fault" message there. '((' could
8686 # trigger a bug in pdksh 5.2.14.
8687 for as_var
in BASH_ENV ENV MAIL MAILPATH
8688 do eval test x\
${$as_var+set} = xset \
8689 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8702 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8705 # as_fn_error ERROR [LINENO LOG_FD]
8706 # ---------------------------------
8707 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8708 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8709 # script with status $?, using 1 if that was 0.
8712 as_status
=$?
; test $as_status -eq 0 && as_status
=1
8714 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8715 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8717 $as_echo "$as_me: error: $1" >&2
8718 as_fn_exit
$as_status
8722 # as_fn_set_status STATUS
8723 # -----------------------
8724 # Set $? to STATUS, without forking.
8728 } # as_fn_set_status
8732 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8742 # Portably unset VAR.
8745 { eval $1=; unset $1;}
8747 as_unset
=as_fn_unset
8748 # as_fn_append VAR VALUE
8749 # ----------------------
8750 # Append the text in VALUE to the end of the definition contained in VAR. Take
8751 # advantage of any shell optimizations that allow amortized linear growth over
8752 # repeated appends, instead of the typical quadratic growth present in naive
8754 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8755 eval 'as_fn_append ()
8766 # as_fn_arith ARG...
8767 # ------------------
8768 # Perform arithmetic evaluation on the ARGs, and store the result in the
8769 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8770 # must be portable across $(()) and expr.
8771 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8772 eval 'as_fn_arith ()
8779 as_val
=`expr "$@" || test $? -eq 1`
8784 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8785 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8791 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8792 as_basename
=basename
8797 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8803 as_me
=`$as_basename -- "$0" ||
8804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8805 X"$0" : 'X\(//\)$' \| \
8806 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8808 sed '/^.*\/\([^/][^/]*\)\/*$/{
8822 # Avoid depending upon Character Ranges.
8823 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8824 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8825 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8826 as_cr_digits
='0123456789'
8827 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8829 ECHO_C
= ECHO_N
= ECHO_T
=
8830 case `echo -n x` in #(((((
8832 case `echo 'xy\c'` in
8833 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8835 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8842 rm -f conf$$ conf$$.exe conf$$.
file
8843 if test -d conf$$.dir
; then
8844 rm -f conf$$.dir
/conf$$.
file
8847 mkdir conf$$.dir
2>/dev
/null
8849 if (echo >conf$$.
file) 2>/dev
/null
; then
8850 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8852 # ... but there are two gotchas:
8853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8855 # In both cases, we have to default to `cp -p'.
8856 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8858 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8866 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8867 rmdir conf$$.dir
2>/dev
/null
8872 # Create "$as_dir" as a directory, including parents if necessary.
8877 -*) as_dir
=.
/$as_dir;;
8879 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8883 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8884 *) as_qdir
=$as_dir;;
8886 as_dirs
="'$as_qdir' $as_dirs"
8887 as_dir
=`$as_dirname -- "$as_dir" ||
8888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8889 X"$as_dir" : 'X\(//\)[^/]' \| \
8890 X"$as_dir" : 'X\(//\)$' \| \
8891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8892 $as_echo X"$as_dir" |
8893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8910 test -d "$as_dir" && break
8912 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8913 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8917 if mkdir
-p .
2>/dev
/null
; then
8918 as_mkdir_p
='mkdir -p "$as_dir"'
8920 test -d .
/-p && rmdir .
/-p
8924 if test -x / >/dev
/null
2>&1; then
8927 if ls -dL / >/dev
/null
2>&1; then
8934 if test -d "$1"; then
8940 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8941 ???[sx]*):;;*)false;;esac;fi
8945 as_executable_p
=$as_test_x
8947 # Sed expression to map a string onto a valid CPP name.
8948 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8950 # Sed expression to map a string onto a valid variable name.
8951 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8955 ## ----------------------------------- ##
8956 ## Main body of $CONFIG_STATUS script. ##
8957 ## ----------------------------------- ##
8959 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8962 # Save the log message, to keep $0 and so on meaningful, and to
8963 # report actual input values of CONFIG_FILES etc. instead of their
8964 # values after options handling.
8966 This file was extended by $as_me, which was
8967 generated by GNU Autoconf 2.64. Invocation command line was
8969 CONFIG_FILES = $CONFIG_FILES
8970 CONFIG_HEADERS = $CONFIG_HEADERS
8971 CONFIG_LINKS = $CONFIG_LINKS
8972 CONFIG_COMMANDS = $CONFIG_COMMANDS
8975 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8980 case $ac_config_files in *"
8981 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8984 case $ac_config_headers in *"
8985 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8990 # Files that config.status was made for.
8991 config_files="$ac_config_files"
8992 config_headers="$ac_config_headers"
8993 config_commands="$ac_config_commands"
8997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8999 \`$as_me' instantiates files and other configuration actions
9000 from templates according to the current configuration. Unless the files
9001 and actions are specified as TAGs, all are instantiated by default.
9003 Usage: $0 [OPTION]... [TAG]...
9005 -h, --help print this help, then exit
9006 -V, --version print version number and configuration settings, then exit
9007 -q, --quiet, --silent
9008 do not print progress messages
9009 -d, --debug don't remove temporary files
9010 --recheck update $as_me by reconfiguring in the same conditions
9011 --file=FILE[:TEMPLATE]
9012 instantiate the configuration file FILE
9013 --header=FILE[:TEMPLATE]
9014 instantiate the configuration header FILE
9016 Configuration files:
9019 Configuration headers:
9022 Configuration commands:
9025 Report bugs to the package provider."
9028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9031 configured by $0, generated by GNU Autoconf 2.64,
9032 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9034 Copyright (C) 2009 Free Software Foundation, Inc.
9035 This config.status script is free software; the Free Software Foundation
9036 gives unlimited permission to copy, distribute and modify it."
9041 test -n "\$AWK" || AWK=awk
9044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9045 # The default lists apply if the user does not specify any file.
9051 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9052 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9063 # Handling of the options.
9064 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9066 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9067 $as_echo "$ac_cs_version"; exit ;;
9068 --debug |
--debu |
--deb |
--de |
--d |
-d )
9070 --file |
--fil |
--fi |
--f )
9073 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9075 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9076 ac_need_defaults
=false
;;
9077 --header |
--heade |
--head |
--hea )
9080 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9082 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9083 ac_need_defaults
=false
;;
9085 # Conflict between --help and --header
9086 as_fn_error
"ambiguous option: \`$1'
9087 Try \`$0 --help' for more information.";;
9088 --help |
--hel |
-h )
9089 $as_echo "$ac_cs_usage"; exit ;;
9090 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9091 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9095 -*) as_fn_error
"unrecognized option: \`$1'
9096 Try \`$0 --help' for more information." ;;
9098 *) as_fn_append ac_config_targets
" $1"
9099 ac_need_defaults
=false
;;
9105 ac_configure_extra_args
=
9107 if $ac_cs_silent; then
9109 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9114 if \$ac_cs_recheck; then
9115 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9118 CONFIG_SHELL='$SHELL'
9124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9129 ## Running $as_me. ##
9135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9139 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
9143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9145 # Handling of arguments.
9146 for ac_config_target
in $ac_config_targets
9148 case $ac_config_target in
9149 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9150 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
9151 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9153 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9158 # If the user did not use the arguments to specify the items to instantiate,
9159 # then the envvar interface is used. Set only those that are not.
9160 # We use the long form for the default assignment because of an extremely
9161 # bizarre bug on SunOS 4.1.3.
9162 if $ac_need_defaults; then
9163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9168 # Have a temporary directory for convenience. Make it in the build tree
9169 # simply because there is no reason against having it here, and in addition,
9170 # creating and moving files from /tmp can sometimes cause problems.
9171 # Hook for its removal unless debugging.
9172 # Note that there is a small window in which the directory will not be cleaned:
9173 # after its creation but before its name has been assigned to `$tmp'.
9177 trap 'exit_status=$?
9178 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9180 trap 'as_fn_exit 1' 1 2 13 15
9182 # Create a (secure) tmp directory for tmp files.
9185 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9186 test -n "$tmp" && test -d "$tmp"
9189 tmp
=.
/conf$$
-$RANDOM
9190 (umask 077 && mkdir
"$tmp")
9191 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
9193 # Set up the scripts for CONFIG_FILES section.
9194 # No need to generate them if there are no CONFIG_FILES.
9195 # This happens for instance with `./config.status config.h'.
9196 if test -n "$CONFIG_FILES"; then
9199 ac_cr
=`echo X | tr X '\015'`
9200 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9201 # But we know of no other shell where ac_cr would be empty at this
9202 # point, so we can use a bashism as a fallback.
9203 if test "x$ac_cr" = x
; then
9204 eval ac_cr
=\$
\'\\r
\'
9206 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9207 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9213 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9218 echo "cat >conf$$subs.awk <<_ACEOF" &&
9219 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9222 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
9223 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9225 for ac_last_try in false false false false false :; do
9226 . ./conf$$subs.sh ||
9227 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
9229 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9230 if test $ac_delim_n = $ac_delim_num; then
9232 elif $ac_last_try; then
9233 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
9235 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9241 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
9245 s/^/S["/; s
/!.
*/"]=/
9255 s/\(.\{148\}\).*/\1/
9257 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9262 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9269 s/\(.\{148\}\).*/\1/
9271 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9275 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9280 ' <conf$$subs.awk | sed '
9285 ' >>$CONFIG_STATUS || ac_write_fail=1
9286 rm -f conf$$subs.awk
9287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9289 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
9290 for (key in S) S_is_set[key] = 1
9296 nfields = split(line, field, "@
")
9298 len = length(field[1])
9299 for (i = 2; i < nfields; i++) {
9301 keylen = length(key)
9302 if (S_is_set[key]) {
9304 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9305 len += length(value) + length(field[++i])
9316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9317 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9318 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9321 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
9322 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
9325 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9326 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
9327 # trailing colons and then remove the whole line if VPATH becomes empty
9328 # (actually we leave an empty line to preserve line numbers).
9329 if test "x
$srcdir" = x.; then
9330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9334 s/^\([^=]*=[ ]*\):*/\1/
9340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9341 fi # test -n "$CONFIG_FILES"
9343 # Set up the scripts for CONFIG_HEADERS section.
9344 # No need to generate them if there are no CONFIG_HEADERS.
9345 # This happens for instance with `./config.status Makefile'.
9346 if test -n "$CONFIG_HEADERS"; then
9347 cat >"$tmp/defines.
awk" <<\_ACAWK ||
9351 # Transform confdefs.h into an awk script `defines.awk', embedded as
9352 # here-document in config.status, that substitutes the proper values into
9353 # config.h.in to produce config.h.
9355 # Create a delimiter string that does not exist in confdefs.h, to ease
9356 # handling of long lines.
9358 for ac_last_try in false false :; do
9359 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
9360 if test -z "$ac_t"; then
9362 elif $ac_last_try; then
9363 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
9365 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9369 # For the awk script, D is an array of macro values keyed by name,
9370 # likewise P contains macro parameters if any. Preserve backslash
9371 # newline sequences.
9373 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9375 s/.\{148\}/&'"$ac_delim"'/g
9378 s/^[ ]*#[ ]*define[ ][ ]*/ /
9385 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9387 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9392 D["\
1"]=" \
3\\\\\\n
"\\/p
9394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9399 s/.\{148\}/&'"$ac_delim"'/g
9404 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9407 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9409 ' <confdefs.h | sed '
9410 s/'"$ac_delim"'/"\\\
9411 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9414 for (key in D) D_is_set[key] = 1
9417 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9419 split(line, arg, " ")
9420 if (arg[1] == "#") {
9424 defundef
= substr
(arg
[1], 2)
9427 split(mac1
, mac2
, "(") #)
9429 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9430 if (D_is_set
[macro
]) {
9431 # Preserve the white space surrounding the "#".
9432 print prefix
"define", macro P
[macro
] D
[macro
]
9435 # Replace #undef with comments. This is necessary, for example,
9436 # in the case of _POSIX_SOURCE, which is predefined and required
9437 # on some systems where configure will not decide to define it.
9438 if (defundef
== "undef") {
9439 print
"/*", prefix defundef
, macro
, "*/"
9447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9448 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
9449 fi # test -n "$CONFIG_HEADERS"
9452 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9457 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9459 case $ac_mode$ac_tag in
9461 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9462 :[FH
]-) ac_tag
=-:-;;
9463 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9480 -) ac_f
="$tmp/stdin";;
9481 *) # Look for the file first in the build tree, then in the source tree
9482 # (if the path is not absolute). The absolute path cannot be DOS-style,
9483 # because $ac_f cannot contain `:'.
9487 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9489 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
9491 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9492 as_fn_append ac_file_inputs
" '$ac_f'"
9495 # Let's still pretend it is `configure' which instantiates (i.e., don't
9496 # use $as_me), people would be surprised to read:
9497 # /* config.h. Generated by config.status. */
9498 configure_input
='Generated from '`
9499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9501 if test x
"$ac_file" != x-
; then
9502 configure_input
="$ac_file. $configure_input"
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9504 $as_echo "$as_me: creating $ac_file" >&6;}
9506 # Neutralize special characters interpreted by sed in replacement strings.
9507 case $configure_input in #(
9508 *\
&* |
*\|
* |
*\\* )
9509 ac_sed_conf_input
=`$as_echo "$configure_input" |
9510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9511 *) ac_sed_conf_input
=$configure_input;;
9515 *:-:* |
*:-) cat >"$tmp/stdin" \
9516 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
9521 ac_dir
=`$as_dirname -- "$ac_file" ||
9522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9523 X"$ac_file" : 'X\(//\)[^/]' \| \
9524 X"$ac_file" : 'X\(//\)$' \| \
9525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9526 $as_echo X"$ac_file" |
9527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9544 as_dir
="$ac_dir"; as_fn_mkdir_p
9548 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9550 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9551 # A ".." for each directory in $ac_dir_suffix.
9552 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9553 case $ac_top_builddir_sub in
9554 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9555 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9558 ac_abs_top_builddir
=$ac_pwd
9559 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9560 # for backward compatibility:
9561 ac_top_builddir
=$ac_top_build_prefix
9564 .
) # We are building in place.
9566 ac_top_srcdir
=$ac_top_builddir_sub
9567 ac_abs_top_srcdir
=$ac_pwd ;;
9568 [\\/]* | ?
:[\\/]* ) # Absolute name.
9569 ac_srcdir
=$srcdir$ac_dir_suffix;
9570 ac_top_srcdir
=$srcdir
9571 ac_abs_top_srcdir
=$srcdir ;;
9573 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9574 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9575 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9577 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9587 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9588 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9593 # If the template does not know about datarootdir, expand it.
9594 # FIXME: This hack should be removed a few years after 2.60.
9595 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9606 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9607 *datarootdir
*) ac_datarootdir_seen
=yes;;
9608 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9610 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9613 ac_datarootdir_hack='
9614 s&@datadir@&$datadir&g
9615 s&@docdir@&$docdir&g
9616 s&@infodir@&$infodir&g
9617 s&@localedir@&$localedir&g
9618 s&@mandir@&$mandir&g
9619 s&\\\${datarootdir}&$datarootdir&g' ;;
9623 # Neutralize VPATH when `$srcdir' = `.'.
9624 # Shell code in configure.ac might set extrasub.
9625 # FIXME: do we really want to maintain this feature?
9626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9627 ac_sed_extra="$ac_vpsub
9630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9632 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9633 s|@configure_input@|
$ac_sed_conf_input|
;t t
9634 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9635 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9636 s
&@srcdir@
&$ac_srcdir&;t t
9637 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9638 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9639 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9640 s
&@builddir@
&$ac_builddir&;t t
9641 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9642 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9643 s
&@INSTALL@
&$ac_INSTALL&;t t
9644 $ac_datarootdir_hack
9646 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
9647 || as_fn_error "could not create
$ac_file" "$LINENO" 5
9649 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9650 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9651 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9653 which seems to be undefined. Please make sure it is defined." >&5
9654 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9655 which seems to be undefined. Please make sure it is defined." >&2;}
9659 -) cat "$tmp/out" && rm -f "$tmp/out";;
9660 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9662 || as_fn_error "could not create $ac_file" "$LINENO" 5
9668 if test x"$ac_file" != x-; then
9670 $as_echo "/* $configure_input */" \
9671 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9672 } >"$tmp/config.h" \
9673 || as_fn_error "could not create $ac_file" "$LINENO" 5
9674 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9676 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9679 mv "$tmp/config.h" "$ac_file" \
9680 || as_fn_error "could not create $ac_file" "$LINENO" 5
9683 $as_echo "/* $configure_input */" \
9684 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9685 || as_fn_error "could not create -" "$LINENO" 5
9689 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9690 $as_echo "$as_me: executing $ac_file commands" >&6;}
9695 case $ac_file$ac_mode in
9696 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9697 "Makefile":F) case x$CONFIG_HEADERS in
9698 xconfig.h:config.in)
9709 ac_clean_files=$ac_clean_files_save
9711 test $ac_write_fail = 0 ||
9712 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9715 # configure is writing to config.log, and then calls config.status.
9716 # config.status does its own redirection, appending to config.log.
9717 # Unfortunately, on DOS this fails, as config.log is still kept open
9718 # by configure, so config.status won't be able to
write to it
; its
9719 # output is simply discarded. So we exec the FD to /dev/null,
9720 # effectively closing config.log, so it can be properly (re)opened and
9721 # appended to by config.status. When coming back to configure, we
9722 # need to make the FD available again.
9723 if test "$no_create" != yes; then
9725 ac_config_status_args
=
9726 test "$silent" = yes &&
9727 ac_config_status_args
="$ac_config_status_args --quiet"
9729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9732 # would make configure fail if this is the last instruction.
9733 $ac_cs_success || as_fn_exit $?
9735 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9737 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}