2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="server.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
624 ac_subst_vars
='LTLIBOBJS
700 INSTALL_STRIP_PROGRAM
717 MAINTAINER_MODE_FALSE
746 program_transform_name
759 enable_option_checking
760 enable_maintainer_mode
769 with_libxxhash_prefix
781 enable_build_warnings
782 enable_gdb_build_warnings
786 enable_inprocess_agent
788 ac_precious_vars
='build_alias
802 # Initialize some variables set by options.
804 ac_init_version
=false
805 ac_unrecognized_opts
=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name
=s
,x
,x
,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir
='${exec_prefix}/bin'
831 sbindir
='${exec_prefix}/sbin'
832 libexecdir
='${exec_prefix}/libexec'
833 datarootdir
='${prefix}/share'
834 datadir
='${datarootdir}'
835 sysconfdir
='${prefix}/etc'
836 sharedstatedir
='${prefix}/com'
837 localstatedir
='${prefix}/var'
838 includedir
='${prefix}/include'
839 oldincludedir
='/usr/include'
840 docdir
='${datarootdir}/doc/${PACKAGE}'
841 infodir
='${datarootdir}/info'
846 libdir
='${exec_prefix}/lib'
847 localedir
='${datarootdir}/locale'
848 mandir
='${datarootdir}/man'
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\
$ac_option
862 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 # Accept the important Cygnus configure options, so we can diagnose typos.
869 case $ac_dashdash$ac_option in
873 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
875 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
878 -build |
--build |
--buil |
--bui |
--bu)
879 ac_prev
=build_alias
;;
880 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
881 build_alias
=$ac_optarg ;;
883 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
884 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
885 ac_prev
=cache_file
;;
886 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
887 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
888 cache_file
=$ac_optarg ;;
891 cache_file
=config.cache
;;
893 -datadir |
--datadir |
--datadi |
--datad)
895 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
896 datadir
=$ac_optarg ;;
898 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
899 |
--dataroo |
--dataro |
--datar)
900 ac_prev
=datarootdir
;;
901 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
902 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
903 datarootdir
=$ac_optarg ;;
905 -disable-* |
--disable-*)
906 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
909 as_fn_error $?
"invalid feature name: $ac_useropt"
910 ac_useropt_orig
=$ac_useropt
911 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
916 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep
=', ';;
919 eval enable_
$ac_useropt=no
;;
921 -docdir |
--docdir |
--docdi |
--doc |
--do)
923 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
926 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
928 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
931 -enable-* |
--enable-*)
932 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
935 as_fn_error $?
"invalid feature name: $ac_useropt"
936 ac_useropt_orig
=$ac_useropt
937 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
942 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep
=', ';;
945 eval enable_
$ac_useropt=\
$ac_optarg ;;
947 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
948 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
949 |
--exec |
--exe |
--ex)
950 ac_prev
=exec_prefix
;;
951 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
952 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
953 |
--exec=* |
--exe=* |
--ex=*)
954 exec_prefix
=$ac_optarg ;;
956 -gas |
--gas |
--ga |
--g)
957 # Obsolete; use --with-gas.
960 -help |
--help |
--hel |
--he |
-h)
962 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
963 ac_init_help
=recursive
;;
964 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
965 ac_init_help
=short
;;
967 -host |
--host |
--hos |
--ho)
968 ac_prev
=host_alias
;;
969 -host=* |
--host=* |
--hos=* |
--ho=*)
970 host_alias
=$ac_optarg ;;
972 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
974 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
976 htmldir
=$ac_optarg ;;
978 -includedir |
--includedir |
--includedi |
--included |
--include \
979 |
--includ |
--inclu |
--incl |
--inc)
980 ac_prev
=includedir
;;
981 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
982 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
983 includedir
=$ac_optarg ;;
985 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
987 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
988 infodir
=$ac_optarg ;;
990 -libdir |
--libdir |
--libdi |
--libd)
992 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
995 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
996 |
--libexe |
--libex |
--libe)
997 ac_prev
=libexecdir
;;
998 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
999 |
--libexe=* |
--libex=* |
--libe=*)
1000 libexecdir
=$ac_optarg ;;
1002 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1003 ac_prev
=localedir
;;
1004 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1005 localedir
=$ac_optarg ;;
1007 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1008 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1009 ac_prev
=localstatedir
;;
1010 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1011 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1012 localstatedir
=$ac_optarg ;;
1014 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1016 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1017 mandir
=$ac_optarg ;;
1019 -nfp |
--nfp |
--nf)
1020 # Obsolete; use --without-fp.
1023 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1024 |
--no-cr |
--no-c |
-n)
1027 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1028 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1031 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1032 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1033 |
--oldin |
--oldi |
--old |
--ol |
--o)
1034 ac_prev
=oldincludedir
;;
1035 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1036 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1037 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1038 oldincludedir
=$ac_optarg ;;
1040 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1042 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1043 prefix
=$ac_optarg ;;
1045 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1046 |
--program-pre |
--program-pr |
--program-p)
1047 ac_prev
=program_prefix
;;
1048 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1049 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1050 program_prefix
=$ac_optarg ;;
1052 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1053 |
--program-suf |
--program-su |
--program-s)
1054 ac_prev
=program_suffix
;;
1055 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1056 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1057 program_suffix
=$ac_optarg ;;
1059 -program-transform-name |
--program-transform-name \
1060 |
--program-transform-nam |
--program-transform-na \
1061 |
--program-transform-n |
--program-transform- \
1062 |
--program-transform |
--program-transfor \
1063 |
--program-transfo |
--program-transf \
1064 |
--program-trans |
--program-tran \
1065 |
--progr-tra |
--program-tr |
--program-t)
1066 ac_prev
=program_transform_name
;;
1067 -program-transform-name=* |
--program-transform-name=* \
1068 |
--program-transform-nam=* |
--program-transform-na=* \
1069 |
--program-transform-n=* |
--program-transform-=* \
1070 |
--program-transform=* |
--program-transfor=* \
1071 |
--program-transfo=* |
--program-transf=* \
1072 |
--program-trans=* |
--program-tran=* \
1073 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1074 program_transform_name
=$ac_optarg ;;
1076 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1078 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1079 pdfdir
=$ac_optarg ;;
1081 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1083 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1086 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1087 |
-silent |
--silent |
--silen |
--sile |
--sil)
1090 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1092 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1094 sbindir
=$ac_optarg ;;
1096 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1097 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1098 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1100 ac_prev
=sharedstatedir
;;
1101 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1102 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1103 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1105 sharedstatedir
=$ac_optarg ;;
1107 -site |
--site |
--sit)
1109 -site=* |
--site=* |
--sit=*)
1112 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1114 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1115 srcdir
=$ac_optarg ;;
1117 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1118 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1119 ac_prev
=sysconfdir
;;
1120 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1121 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1122 sysconfdir
=$ac_optarg ;;
1124 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1125 ac_prev
=target_alias
;;
1126 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1127 target_alias
=$ac_optarg ;;
1129 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1132 -version |
--version |
--versio |
--versi |
--vers |
-V)
1133 ac_init_version
=: ;;
1136 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1139 as_fn_error $?
"invalid package name: $ac_useropt"
1140 ac_useropt_orig
=$ac_useropt
1141 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1146 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep
=', ';;
1149 eval with_
$ac_useropt=\
$ac_optarg ;;
1151 -without-* |
--without-*)
1152 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1155 as_fn_error $?
"invalid package name: $ac_useropt"
1156 ac_useropt_orig
=$ac_useropt
1157 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1162 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep
=', ';;
1165 eval with_
$ac_useropt=no
;;
1168 # Obsolete; use --with-x.
1171 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1172 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1173 ac_prev
=x_includes
;;
1174 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1175 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1176 x_includes
=$ac_optarg ;;
1178 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1179 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1180 ac_prev
=x_libraries
;;
1181 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1182 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1183 x_libraries
=$ac_optarg ;;
1185 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1190 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1194 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1196 eval $ac_envvar=\
$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 if test -n "$ac_prev"; then
1211 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $?
"missing argument to $ac_option"
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1218 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 # Check all directory arguments for consistency.
1224 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1229 eval ac_val
=\$
$ac_var
1230 # Remove trailing slashes.
1233 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\
$ac_val;;
1236 # Be sure to have absolute directory names.
1238 [\\/$
]* | ?
:[\\/]* ) continue;;
1239 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1241 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1249 target
=$target_alias
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x
; then
1253 if test "x$build_alias" = x
; then
1254 cross_compiling
=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1261 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1263 test "$silent" = yes && exec 6>/dev
/null
1266 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di
=`ls -di .` &&
1268 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $?
"working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $?
"pwd does not report name of working directory"
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted
=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir
=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1306 ac_srcdir_defaulted
=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1310 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1312 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1324 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 for ac_var
in $ac_precious_vars; do
1327 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1329 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1340 \`configure' configures this package to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1403 --build=BUILD configure
for building on BUILD
[guessed
]
1404 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1405 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1409 if test -n "$ac_init_help"; then
1414 --disable-option-checking ignore unrecognized
--enable/--with options
1415 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1416 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1417 --enable-maintainer-mode
1418 enable make rules and dependencies not useful
(and
1419 sometimes confusing
) to the casual installer
1420 --disable-largefile omit support
for large files
1421 --enable-threading include support
for parallel processing of data
1423 --disable-rpath do not hardcode runtime library paths
1424 --enable-unit-tests Enable the inclusion of unit tests when compiling
1426 --disable-nls do not use Native Language Support
1427 --enable-werror treat compile warnings as errors
1428 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1429 --enable-gdb-build-warnings
1430 enable GDB specific build-time compiler warnings
if
1432 --enable-inprocess-agent
1436 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1437 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1438 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1439 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1440 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1441 --without-libipt-prefix don
't search for libipt in includedir and libdir
1442 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1443 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1444 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1445 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1446 --with-libxxhash-type=TYPE
type of library to search
for (auto
/static
/shared
)
1447 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1448 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1449 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1450 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1451 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1452 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1453 --with-ust=PATH Specify prefix directory
for the installed UST package
1454 Equivalent to
--with-ust-include=PATH
/include
1455 plus
--with-ust-lib=PATH
/lib
1456 --with-ust-include=PATH Specify directory
for installed UST include files
1457 --with-ust-lib=PATH Specify the directory
for the installed UST library
1458 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1459 --with-bugurl=URL Direct users to URL to report a bug
1460 --with-libthread-db=PATH
1461 use given libthread_db directly
1463 Some influential environment variables
:
1464 CC C compiler
command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1467 nonstandard directory
<lib dir
>
1468 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1469 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1470 you have headers
in a nonstandard directory
<include dir
>
1471 CXX C
++ compiler
command
1472 CXXFLAGS C
++ compiler flags
1475 Use these variables to override the choices made by
`configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to the package provider.
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1508 .) # We are building in place.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1542 generated by GNU Autoconf 2.69
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1565 *) ac_try_echo
=$ac_try;;
1567 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1571 if test -s conftest.err
; then
1572 grep -v '^ *+' conftest.err
>conftest.er1
1573 cat conftest.er1
>&5
1574 mv -f conftest.er1 conftest.err
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.
$ac_objext; then :
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.
$ac_ext >&5
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status
$ac_retval
1591 } # ac_fn_c_try_compile
1593 # ac_fn_cxx_try_compile LINENO
1594 # ----------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_cxx_try_compile
()
1598 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1599 rm -f conftest.
$ac_objext
1600 if { { ac_try
="$ac_compile"
1602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_cxx_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1629 } # ac_fn_cxx_try_compile
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1640 *) ac_try_echo
=$ac_try;;
1642 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1646 if test -s conftest.err
; then
1647 grep -v '^ *+' conftest.err
>conftest.er1
1648 cat conftest.er1
>&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i
&& {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.
$ac_ext >&5
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status
$ac_retval
1668 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1671 # the include files in INCLUDES and setting the cache variable VAR
1673 ac_fn_c_check_header_mongrel
()
1675 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1676 if eval \
${$3+:} false
; then :
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \
${$3+:} false
; then :
1680 $as_echo_n "(cached) " >&6
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1686 # Is the header compilable?
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1688 $as_echo_n "checking $2 usability... " >&6; }
1689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1694 if ac_fn_c_try_compile
"$LINENO"; then :
1695 ac_header_compiler
=yes
1697 ac_header_compiler
=no
1699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1701 $as_echo "$ac_header_compiler" >&6; }
1703 # Is the header present?
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1705 $as_echo_n "checking $2 presence... " >&6; }
1706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1710 if ac_fn_c_try_cpp
"$LINENO"; then :
1711 ac_header_preproc
=yes
1713 ac_header_preproc
=no
1715 rm -f conftest.err conftest.i conftest.
$ac_ext
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1717 $as_echo "$ac_header_preproc" >&6; }
1719 # So? What about this header?
1720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1723 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1729 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1731 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1733 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1735 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \
${$3+:} false
; then :
1743 $as_echo_n "(cached) " >&6
1745 eval "$3=\$ac_header_compiler"
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 } # ac_fn_c_check_header_mongrel
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758 # that executables *can* be run.
1761 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1762 if { { ac_try
="$ac_link"
1764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1775 *) ac_try_echo
=$ac_try;;
1777 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.
$ac_ext >&5
1789 ac_retval
=$ac_status
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status
$ac_retval
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile
()
1803 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \
${$3+:} false
; then :
1807 $as_echo_n "(cached) " >&6
1809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_c_try_compile
"$LINENO"; then :
1819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_header_compile
1828 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1829 # -------------------------------------------
1830 # Tests whether TYPE exists after having included INCLUDES, setting cache
1831 # variable VAR accordingly.
1832 ac_fn_c_check_type
()
1834 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \
${$3+:} false
; then :
1838 $as_echo_n "(cached) " >&6
1841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1853 if ac_fn_c_try_compile
"$LINENO"; then :
1854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1866 if ac_fn_c_try_compile
"$LINENO"; then :
1871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_type
1882 # ac_fn_c_try_link LINENO
1883 # -----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1888 rm -f conftest.
$ac_objext conftest
$ac_exeext
1889 if { { ac_try
="$ac_link"
1891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>conftest.err
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest$ac_exeext && {
1908 test "$cross_compiling" = yes ||
1909 test -x conftest$ac_exeext
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920 # interfere with the next link command; also delete a directory that is
1921 # left behind by Apple's compiler. We do this before executing the actions.
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_c_try_link
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1951 # include <limits.h>
1953 # include <assert.h>
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1980 if ac_fn_c_try_link "$LINENO"; then :
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 } # ac_fn_c_check_func
1995 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1996 # ---------------------------------------------
1997 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1999 ac_fn_c_check_decl ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2003 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2005 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2015 #ifndef $as_decl_name
2017 (void) $as_decl_use;
2019 (void) $as_decl_name;
2027 if ac_fn_c_try_compile "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 } # ac_fn_c_check_decl
2041 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2042 # ----------------------------------------------------
2043 # Tries to find if the field MEMBER exists in type AGGR, after including
2044 # INCLUDES, setting cache variable VAR accordingly.
2045 ac_fn_c_check_member ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2049 $as_echo_n "checking for $2.$3... " >&6; }
2050 if eval \${$4+:} false; then :
2051 $as_echo_n "(cached) " >&6
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2066 if ac_fn_c_try_compile "$LINENO"; then :
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2076 if (sizeof ac_aggr.$3)
2082 if ac_fn_c_try_compile "$LINENO"; then :
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 } # ac_fn_c_check_member
2098 # ac_fn_cxx_try_link LINENO
2099 # -------------------------
2100 # Try to link conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_cxx_try_link ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 rm -f conftest.$ac_objext conftest$ac_exeext
2105 if { { ac_try="$ac_link"
2107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2108 *) ac_try_echo
=$ac_try;;
2110 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_link") 2>conftest.err
2114 if test -s conftest.err
; then
2115 grep -v '^ *+' conftest.err
>conftest.er1
2116 cat conftest.er1
>&5
2117 mv -f conftest.er1 conftest.err
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && {
2121 test -z "$ac_cxx_werror_flag" ||
2122 test ! -s conftest.err
2123 } && test -s conftest
$ac_exeext && {
2124 test "$cross_compiling" = yes ||
2125 test -x conftest
$ac_exeext
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.
$ac_ext >&5
2134 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2135 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2136 # interfere with the next link command; also delete a directory that is
2137 # left behind by Apple's compiler. We do this before executing the actions.
2138 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 as_fn_set_status
$ac_retval
2142 } # ac_fn_cxx_try_link
2144 # ac_fn_cxx_check_func LINENO FUNC VAR
2145 # ------------------------------------
2146 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2147 ac_fn_cxx_check_func
()
2149 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151 $as_echo_n "checking for $2... " >&6; }
2152 if eval \
${$3+:} false
; then :
2153 $as_echo_n "(cached) " >&6
2155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2159 #define $2 innocuous_$2
2161 /* System header to define __stub macros and hopefully few prototypes,
2162 which can conflict with char $2 (); below.
2163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2164 <limits.h> exists even on freestanding compilers. */
2167 # include <limits.h>
2169 # include <assert.h>
2174 /* Override any GCC internal prototype to avoid an error.
2175 Use char because int might match the return type of a GCC
2176 builtin and then its argument prototype would still apply. */
2181 /* The GNU C library defines this for functions which it implements
2182 to always fail with ENOSYS. Some functions are actually named
2183 something starting with __ and the normal name is an alias. */
2184 #if defined __stub_$2 || defined __stub___$2
2196 if ac_fn_cxx_try_link
"$LINENO"; then :
2201 rm -f core conftest.err conftest.
$ac_objext \
2202 conftest
$ac_exeext conftest.
$ac_ext
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206 $as_echo "$ac_res" >&6; }
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209 } # ac_fn_cxx_check_func
2211 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2212 # --------------------------------------------
2213 # Tries to find the compile-time value of EXPR in a program that includes
2214 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2216 ac_fn_c_compute_int
()
2218 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2219 if test "$cross_compiling" = yes; then
2220 # Depending upon the size, compute the lo and hi bounds.
2221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 static int test_array [1 - 2 * !(($2) >= 0)];
2229 return test_array [0];
2235 if ac_fn_c_try_compile
"$LINENO"; then :
2238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2244 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2246 return test_array [0];
2252 if ac_fn_c_try_compile
"$LINENO"; then :
2253 ac_hi
=$ac_mid; break
2255 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2256 if test $ac_lo -le $ac_mid; then
2260 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2271 static int test_array [1 - 2 * !(($2) < 0)];
2273 return test_array [0];
2279 if ac_fn_c_try_compile
"$LINENO"; then :
2282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2288 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2290 return test_array [0];
2296 if ac_fn_c_try_compile
"$LINENO"; then :
2297 ac_lo
=$ac_mid; break
2299 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2300 if test $ac_mid -le $ac_hi; then
2304 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2314 # Binary search between lo and hi bounds.
2315 while test "x$ac_lo" != "x$ac_hi"; do
2316 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2323 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2325 return test_array [0];
2331 if ac_fn_c_try_compile
"$LINENO"; then :
2334 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2339 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2346 static long int longval () { return $2; }
2347 static unsigned long int ulongval () { return $2; }
2354 FILE *f = fopen ("conftest.val", "w");
2359 long int i = longval ();
2362 fprintf (f, "%ld", i);
2366 unsigned long int i = ulongval ();
2369 fprintf (f, "%lu", i);
2371 /* Do not output a trailing newline, as this causes \r\n confusion
2372 on some platforms. */
2373 return ferror (f) || fclose (f) != 0;
2379 if ac_fn_c_try_run
"$LINENO"; then :
2380 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390 as_fn_set_status
$ac_retval
2392 } # ac_fn_c_compute_int
2393 cat >config.log
<<_ACEOF
2394 This file contains any messages produced by compilers while
2395 running configure, to aid debugging if configure makes a mistake.
2397 It was created by $as_me, which was
2398 generated by GNU Autoconf 2.69. Invocation command line was
2410 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2411 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2412 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2413 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2414 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2416 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2417 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2419 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2420 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2421 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2422 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2423 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2424 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2425 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir
=.
2434 $as_echo "PATH: $as_dir"
2450 # Keep a trace of the command line.
2451 # Strip out --no-create and --no-recursion so they do not pile up.
2452 # Strip out --silent because we don't want to record it for future runs.
2453 # Also quote any args containing shell meta-characters.
2454 # Make two passes to allow for proper duplicate-argument suppression.
2458 ac_must_keep_next
=false
2464 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2465 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2466 |
-silent |
--silent |
--silen |
--sile |
--sil)
2469 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2472 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2474 as_fn_append ac_configure_args1
" '$ac_arg'"
2475 if test $ac_must_keep_next = true
; then
2476 ac_must_keep_next
=false
# Got value, back to normal.
2479 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2480 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2481 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2482 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2483 case "$ac_configure_args0 " in
2484 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2487 -* ) ac_must_keep_next
=true
;;
2490 as_fn_append ac_configure_args
" '$ac_arg'"
2495 { ac_configure_args0
=; unset ac_configure_args0
;}
2496 { ac_configure_args1
=; unset ac_configure_args1
;}
2498 # When interrupted or exit'd, cleanup temporary files, and complete
2499 # config.log. We remove comments because anyway the quotes in there
2500 # would cause problems or look ugly.
2501 # WARNING: Use '\'' to represent an apostrophe within the trap.
2502 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2503 trap 'exit_status=$?
2504 # Save into config.log some information that might help in debugging.
2508 $as_echo "## ---------------- ##
2509 ## Cache variables. ##
2510 ## ---------------- ##"
2512 # The following way of writing the cache mishandles newlines in values,
2514 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2515 eval ac_val=\$$ac_var
2519 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2520 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2523 _ | IFS | as_nl) ;; #(
2524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2525 *) { eval $ac_var=; unset $ac_var;} ;;
2530 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2531 *${as_nl}ac_space=\ *)
2533 "s/'\''/'\''\\\\'\'''\''/g;
2534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2544 $as_echo "## ----------------- ##
2545 ## Output variables. ##
2546 ## ----------------- ##"
2548 for ac_var in $ac_subst_vars
2550 eval ac_val=\$$ac_var
2552 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2554 $as_echo "$ac_var='\''$ac_val'\''"
2558 if test -n "$ac_subst_files"; then
2559 $as_echo "## ------------------- ##
2560 ## File substitutions. ##
2561 ## ------------------- ##"
2563 for ac_var
in $ac_subst_files
2565 eval ac_val
=\$
$ac_var
2567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569 $as_echo "$ac_var='\''$ac_val'\''"
2574 if test -s confdefs.h; then
2575 $as_echo "## ----------- ##
2582 test "$ac_signal" != 0 &&
2583 $as_echo "$as_me: caught signal $ac_signal"
2584 $as_echo "$as_me: exit $exit_status"
2586 rm -f core *.core core.conftest.* &&
2587 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2590 for ac_signal
in 1 2 13 15; do
2591 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2595 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2596 rm -f -r conftest
* confdefs.h
2598 $as_echo "/* confdefs.h */" > confdefs.h
2600 # Predefined preprocessor variables.
2602 cat >>confdefs.h
<<_ACEOF
2603 #define PACKAGE_NAME "$PACKAGE_NAME"
2606 cat >>confdefs.h
<<_ACEOF
2607 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2610 cat >>confdefs.h
<<_ACEOF
2611 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2614 cat >>confdefs.h
<<_ACEOF
2615 #define PACKAGE_STRING "$PACKAGE_STRING"
2618 cat >>confdefs.h
<<_ACEOF
2619 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2622 cat >>confdefs.h
<<_ACEOF
2623 #define PACKAGE_URL "$PACKAGE_URL"
2627 # Let the site file select an alternate cache file if it wants to.
2628 # Prefer an explicitly selected file to automatically selected ones.
2631 if test -n "$CONFIG_SITE"; then
2632 # We do not want a PATH search for config.site.
2633 case $CONFIG_SITE in #((
2634 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2635 */*) ac_site_file1
=$CONFIG_SITE;;
2636 *) ac_site_file1
=.
/$CONFIG_SITE;;
2638 elif test "x$prefix" != xNONE
; then
2639 ac_site_file1
=$prefix/share
/config.site
2640 ac_site_file2
=$prefix/etc
/config.site
2642 ac_site_file1
=$ac_default_prefix/share
/config.site
2643 ac_site_file2
=$ac_default_prefix/etc
/config.site
2645 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2647 test "x$ac_site_file" = xNONE
&& continue
2648 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2650 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2651 sed 's/^/| /' "$ac_site_file" >&5
2653 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 as_fn_error $?
"failed to load site script $ac_site_file
2656 See \`config.log' for more details" "$LINENO" 5; }
2660 if test -r "$cache_file"; then
2661 # Some versions of bash will fail to source /dev/null (special files
2662 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2663 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2665 $as_echo "$as_me: loading cache $cache_file" >&6;}
2667 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2668 *) .
"./$cache_file";;
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2673 $as_echo "$as_me: creating cache $cache_file" >&6;}
2677 as_fn_append ac_header_list
" stdlib.h"
2678 as_fn_append ac_header_list
" unistd.h"
2679 as_fn_append ac_header_list
" sys/param.h"
2680 gt_needs
="$gt_needs "
2681 # Check that the precious variables saved in the cache have kept the same
2683 ac_cache_corrupted
=false
2684 for ac_var
in $ac_precious_vars; do
2685 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2686 eval ac_new_set
=\
$ac_env_${ac_var}_set
2687 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2688 eval ac_new_val
=\
$ac_env_${ac_var}_value
2689 case $ac_old_set,$ac_new_set in
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2692 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2693 ac_cache_corrupted
=: ;;
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2696 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2697 ac_cache_corrupted
=: ;;
2700 if test "x$ac_old_val" != "x$ac_new_val"; then
2701 # differences in whitespace do not lead to failure.
2702 ac_old_val_w
=`echo x $ac_old_val`
2703 ac_new_val_w
=`echo x $ac_new_val`
2704 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2706 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2707 ac_cache_corrupted
=:
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2710 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2711 eval $ac_var=\
$ac_old_val
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2714 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2716 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2719 # Pass precious variables to config.status.
2720 if test "$ac_new_set" = set; then
2722 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2723 *) ac_arg
=$ac_var=$ac_new_val ;;
2725 case " $ac_configure_args " in
2726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2727 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2731 if $ac_cache_corrupted; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2735 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2736 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2738 ## -------------------- ##
2739 ## Main body of script. ##
2740 ## -------------------- ##
2743 ac_cpp
='$CPP $CPPFLAGS'
2744 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2754 ac_config_headers
="$ac_config_headers config.h:config.in"
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2759 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2760 # Check whether --enable-maintainer-mode was given.
2761 if test "${enable_maintainer_mode+set}" = set; then :
2762 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2764 USE_MAINTAINER_MODE
=no
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2768 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2769 if test $USE_MAINTAINER_MODE = yes; then
2770 MAINTAINER_MODE_TRUE
=
2771 MAINTAINER_MODE_FALSE
='#'
2773 MAINTAINER_MODE_TRUE
='#'
2774 MAINTAINER_MODE_FALSE
=
2777 MAINT
=$MAINTAINER_MODE_TRUE
2782 ac_cpp
='$CPP $CPPFLAGS'
2783 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CC+:} false
; then :
2792 $as_echo_n "(cached) " >&6
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC
="$CC" # Let the user override the test.
2797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir
=.
2802 for ac_exec_ext
in '' $ac_executable_extensions; do
2803 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 $as_echo "$CC" >&6; }
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2825 if test -z "$ac_cv_prog_CC"; then
2827 # Extract the first word of "gcc", so it can be a program name with args.
2828 set dummy gcc
; ac_word
=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2832 $as_echo_n "(cached) " >&6
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir
=.
2842 for ac_exec_ext
in '' $ac_executable_extensions; do
2843 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_ac_ct_CC
="gcc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2855 if test -n "$ac_ct_CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2857 $as_echo "$ac_ct_CC" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2863 if test "x$ac_ct_CC" = x
; then
2866 case $cross_compiling:$ac_tool_warned in
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870 ac_tool_warned
=yes ;;
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2881 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false
; then :
2885 $as_echo_n "(cached) " >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC
="$CC" # Let the user override the test.
2890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir
=.
2895 for ac_exec_ext
in '' $ac_executable_extensions; do
2896 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2919 if test -z "$CC"; then
2920 # Extract the first word of "cc", so it can be a program name with args.
2921 set dummy cc
; ac_word
=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false
; then :
2925 $as_echo_n "(cached) " >&6
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC
="$CC" # Let the user override the test.
2931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir
=.
2936 for ac_exec_ext
in '' $ac_executable_extensions; do
2937 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2939 ac_prog_rejected
=yes
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 if test $ac_prog_rejected = yes; then
2951 # We found a bogon in the path, so make sure we never use it.
2952 set dummy
$ac_cv_prog_CC
2954 if test $# != 0; then
2955 # We chose a different compiler from the bogus one.
2956 # However, it has the same basename, so the bogon will be chosen
2957 # first if we set CC to just the basename; use the full file name.
2959 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 for ac_prog
in cl.exe
2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false
; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC
="$CC" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3016 test -n "$CC" && break
3019 if test -z "$CC"; then
3021 for ac_prog
in cl.exe
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy
$ac_prog; ac_word
=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir
=.
3038 for ac_exec_ext
in '' $ac_executable_extensions; do
3039 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC
="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3051 if test -n "$ac_ct_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053 $as_echo "$ac_ct_CC" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$ac_ct_CC" && break
3063 if test "x$ac_ct_CC" = x
; then
3066 case $cross_compiling:$ac_tool_warned in
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned
=yes ;;
3079 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $?
"no acceptable C compiler found in \$PATH
3082 See \`config.log' for more details" "$LINENO" 5; }
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3088 for ac_option
in --version -v -V -qversion; do
3089 { { ac_try
="$ac_compiler $ac_option >&5"
3091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3098 if test -s conftest.err; then
3100 ... rest of stderr output deleted ...
3101 10q' conftest.err >conftest.er1
3102 cat conftest.er1 >&5
3104 rm -f conftest.er1 conftest.err
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 $as_echo_n "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3133 for ac_file in $ac_files
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3142 if { { ac_try="$ac_link_default"
3144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3145 *) ac_try_echo
=$ac_try;;
3147 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3156 # so that the user can short-circuit this test for compilers unknown to
3158 for ac_file
in $ac_files ''
3160 test -f "$ac_file" ||
continue
3162 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3165 # We found the default executable, but exeext='' is most
3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3171 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3173 # We set ac_cv_exeext here because the later test for it is not
3174 # safe: cross compilers may not add the suffix if given an `-o'
3175 # argument, so we may need to know it at that point already.
3176 # Even if this section looks crufty: it has the advantage of
3183 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3188 if test -z "$ac_file"; then :
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.
$ac_ext >&5
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error
77 "C compiler cannot create executables
3197 See \`config.log' for more details" "$LINENO" 5; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 ac_exeext
=$ac_cv_exeext
3208 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3209 ac_clean_files
=$ac_clean_files_save
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try
="$ac_link"
3214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3224 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3227 for ac_file
in conftest.exe conftest conftest.
*; do
3228 test -f "$ac_file" ||
continue
3230 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3231 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 rm -f conftest conftest
$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3246 rm -f conftest.
$ac_ext
3247 EXEEXT
=$ac_cv_exeext
3249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3255 FILE *f = fopen ("conftest.out", "w");
3256 return ferror (f) || fclose (f) != 0;
3262 ac_clean_files
="$ac_clean_files conftest.out"
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 if test "$cross_compiling" != yes; then
3268 { { ac_try
="$ac_link"
3270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_link") 2>&5
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3279 if { ac_try='./conftest$ac_cv_exeext'
3280 { { case "(($ac_try" in
3281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3282 *) ac_try_echo
=$ac_try;;
3284 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_try") 2>&5
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; }; then
3292 if test "$cross_compiling" = maybe
; then
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $?
"cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details" "$LINENO" 5; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 $as_echo "$cross_compiling" >&6; }
3306 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3307 ac_clean_files
=$ac_clean_files_save
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3309 $as_echo_n "checking for suffix of object files... " >&6; }
3310 if ${ac_cv_objext+:} false
; then :
3311 $as_echo_n "(cached) " >&6
3313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3324 rm -f conftest.o conftest.obj
3325 if { { ac_try
="$ac_compile"
3327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_compile") 2>&5
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
3336 for ac_file in conftest.o conftest.obj conftest.*; do
3337 test -f "$ac_file" || continue;
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3345 $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3351 See \
`config.log' for more details" "$LINENO" 5; }
3353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3356 $as_echo "$ac_cv_objext" >&6; }
3357 OBJEXT=$ac_cv_objext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3360 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3361 if ${ac_cv_c_compiler_gnu+:} false; then :
3362 $as_echo_n "(cached) " >&6
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3378 if ac_fn_c_try_compile "$LINENO"; then :
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3388 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3389 if test $ac_compiler_gnu = yes; then
3394 ac_test_CFLAGS=${CFLAGS+set}
3395 ac_save_CFLAGS=$CFLAGS
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3397 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3398 if ${ac_cv_prog_cc_g+:} false; then :
3399 $as_echo_n "(cached) " >&6
3401 ac_save_c_werror_flag=$ac_c_werror_flag
3402 ac_c_werror_flag=yes
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3416 if ac_fn_c_try_compile "$LINENO"; then :
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3431 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3447 if ac_fn_c_try_compile "$LINENO"; then :
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3458 $as_echo "$ac_cv_prog_cc_g" >&6; }
3459 if test "$ac_test_CFLAGS" = set; then
3460 CFLAGS=$ac_save_CFLAGS
3461 elif test $ac_cv_prog_cc_g = yes; then
3462 if test "$GCC" = yes; then
3468 if test "$GCC" = yes; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3475 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3476 if ${ac_cv_prog_cc_c89+:} false; then :
3477 $as_echo_n "(cached) " >&6
3479 ac_cv_prog_cc_c89=no
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3487 struct buf { int x; };
3488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3489 static char *e (p, i)
3495 static char *f (char * (*g) (char **, int), char **p, ...)
3500 s = g (p, va_arg (v,int));
3505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3506 function prototypes and stuff, but not '\xHH' hex character constants.
3507 These don't provoke an error unfortunately, instead are silently treated
3508 as 'x'. The following induces an error, until -std is added to get
3509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3510 array size at least. It's necessary to write '\x00'==0 to get something
3511 that's true only with -std. */
3512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3514 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3515 inside strings and character constants. */
3517 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3519 int test (int i, double x);
3520 struct s1 {int (*f) (int a);};
3521 struct s2 {int (*f) (double a);};
3522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3533 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3534 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3536 CC="$ac_save_CC $ac_arg"
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_cv_prog_cc_c89=$ac_arg
3540 rm -f core conftest.err conftest.$ac_objext
3541 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 rm -f conftest.$ac_ext
3548 case "x$ac_cv_prog_cc_c89" in
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3551 $as_echo "none needed" >&6; } ;;
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3554 $as_echo "unsupported" >&6; } ;;
3556 CC="$CC $ac_cv_prog_cc_c89"
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3558 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3560 if test "x$ac_cv_prog_cc_c89" != xno; then :
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 ac_cpp='$CXXCPP $CPPFLAGS'
3572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3575 if test -z "$CXX"; then
3576 if test -n "$CCC"; then
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_CXX+:} false; then :
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$CXX"; then
3590 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test -n "$CXX"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3612 $as_echo "$CXX" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3619 test -n "$CXX" && break
3622 if test -z "$CXX"; then
3624 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3626 # Extract the first word of "$ac_prog", so it can be a program name with args.
3627 set dummy $ac_prog; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$ac_ct_CXX"; then
3634 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_ac_ct_CXX="$ac_prog"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3654 if test -n "$ac_ct_CXX"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3656 $as_echo "$ac_ct_CXX" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3663 test -n "$ac_ct_CXX" && break
3666 if test "x$ac_ct_CXX" = x; then
3669 case $cross_compiling:$ac_tool_warned in
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673 ac_tool_warned=yes ;;
3681 # Provide some information about the compiler.
3682 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3685 for ac_option in --version -v -V -qversion; do
3686 { { ac_try="$ac_compiler $ac_option >&5"
3688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3689 *) ac_try_echo
=$ac_try;;
3691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3695 if test -s conftest.err
; then
3697 ... rest of stderr output deleted ...
3698 10q' conftest.err
>conftest.er1
3699 cat conftest.er1
>&5
3701 rm -f conftest.er1 conftest.err
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3707 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3708 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3709 $as_echo_n "(cached) " >&6
3711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3725 if ac_fn_cxx_try_compile
"$LINENO"; then :
3730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3731 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3735 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3736 if test $ac_compiler_gnu = yes; then
3741 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3742 ac_save_CXXFLAGS
=$CXXFLAGS
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3744 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3745 if ${ac_cv_prog_cxx_g+:} false
; then :
3746 $as_echo_n "(cached) " >&6
3748 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3749 ac_cxx_werror_flag
=yes
3752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3763 if ac_fn_cxx_try_compile
"$LINENO"; then :
3764 ac_cv_prog_cxx_g
=yes
3767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3778 if ac_fn_cxx_try_compile
"$LINENO"; then :
3781 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3794 if ac_fn_cxx_try_compile
"$LINENO"; then :
3795 ac_cv_prog_cxx_g
=yes
3797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3802 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3805 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3806 if test "$ac_test_CXXFLAGS" = set; then
3807 CXXFLAGS
=$ac_save_CXXFLAGS
3808 elif test $ac_cv_prog_cxx_g = yes; then
3809 if test "$GXX" = yes; then
3815 if test "$GXX" = yes; then
3822 ac_cpp
='$CPP $CPPFLAGS'
3823 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3829 ac_cpp
='$CPP $CPPFLAGS'
3830 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3834 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3835 # On Suns, sometimes $CPP names a directory.
3836 if test -n "$CPP" && test -d "$CPP"; then
3839 if test -z "$CPP"; then
3840 if ${ac_cv_prog_CPP+:} false
; then :
3841 $as_echo_n "(cached) " >&6
3843 # Double quotes because CPP needs to be expanded
3844 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3847 for ac_c_preproc_warn_flag
in '' yes
3849 # Use a header file that comes with gcc, so configuring glibc
3850 # with a fresh cross-compiler works.
3851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852 # <limits.h> exists even on freestanding compilers.
3853 # On the NeXT, cc -E runs the code through the compiler's parser,
3854 # not just through cpp. "Syntax error" is here to catch this case.
3855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3858 # include <limits.h>
3860 # include <assert.h>
3864 if ac_fn_c_try_cpp
"$LINENO"; then :
3867 # Broken: fails on valid input.
3870 rm -f conftest.err conftest.i conftest.
$ac_ext
3872 # OK, works on sane cases. Now check whether nonexistent headers
3873 # can be detected and how.
3874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #include <ac_nonexistent.h>
3878 if ac_fn_c_try_cpp
"$LINENO"; then :
3879 # Broken: success on invalid input.
3882 # Passes both tests.
3886 rm -f conftest.err conftest.i conftest.
$ac_ext
3889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3890 rm -f conftest.i conftest.err conftest.
$ac_ext
3891 if $ac_preproc_ok; then :
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3904 $as_echo "$CPP" >&6; }
3906 for ac_c_preproc_warn_flag
in '' yes
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3917 # include <limits.h>
3919 # include <assert.h>
3923 if ac_fn_c_try_cpp
"$LINENO"; then :
3926 # Broken: fails on valid input.
3929 rm -f conftest.err conftest.i conftest.
$ac_ext
3931 # OK, works on sane cases. Now check whether nonexistent headers
3932 # can be detected and how.
3933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 #include <ac_nonexistent.h>
3937 if ac_fn_c_try_cpp
"$LINENO"; then :
3938 # Broken: success on invalid input.
3941 # Passes both tests.
3945 rm -f conftest.err conftest.i conftest.
$ac_ext
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.i conftest.err conftest.
$ac_ext
3950 if $ac_preproc_ok; then :
3953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3956 See \`config.log' for more details" "$LINENO" 5; }
3960 ac_cpp
='$CPP $CPPFLAGS'
3961 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3967 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3968 if ${ac_cv_path_GREP+:} false
; then :
3969 $as_echo_n "(cached) " >&6
3971 if test -z "$GREP"; then
3972 ac_path_GREP_found
=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3975 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3978 test -z "$as_dir" && as_dir
=.
3979 for ac_prog
in grep ggrep
; do
3980 for ac_exec_ext
in '' $ac_executable_extensions; do
3981 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3982 as_fn_executable_p
"$ac_path_GREP" ||
continue
3983 # Check for GNU ac_path_GREP and select it if it is found.
3984 # Check for GNU $ac_path_GREP
3985 case `"$ac_path_GREP" --version 2>&1` in
3987 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3990 $as_echo_n 0123456789 >"conftest.in"
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 $as_echo 'GREP' >> "conftest.nl"
3997 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3998 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3999 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4000 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_GREP
="$ac_path_GREP"
4003 ac_path_GREP_max
=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4008 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4011 $ac_path_GREP_found && break 3
4016 if test -z "$ac_cv_path_GREP"; then
4017 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4020 ac_cv_path_GREP
=$GREP
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4025 $as_echo "$ac_cv_path_GREP" >&6; }
4026 GREP
="$ac_cv_path_GREP"
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4030 $as_echo_n "checking for egrep... " >&6; }
4031 if ${ac_cv_path_EGREP+:} false
; then :
4032 $as_echo_n "(cached) " >&6
4034 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4035 then ac_cv_path_EGREP
="$GREP -E"
4037 if test -z "$EGREP"; then
4038 ac_path_EGREP_found
=false
4039 # Loop through the user's path and test for each of PROGNAME-LIST
4040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4041 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4044 test -z "$as_dir" && as_dir
=.
4045 for ac_prog
in egrep; do
4046 for ac_exec_ext
in '' $ac_executable_extensions; do
4047 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4048 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4049 # Check for GNU ac_path_EGREP and select it if it is found.
4050 # Check for GNU $ac_path_EGREP
4051 case `"$ac_path_EGREP" --version 2>&1` in
4053 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4056 $as_echo_n 0123456789 >"conftest.in"
4059 cat "conftest.in" "conftest.in" >"conftest.tmp"
4060 mv "conftest.tmp" "conftest.in"
4061 cp "conftest.in" "conftest.nl"
4062 $as_echo 'EGREP' >> "conftest.nl"
4063 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4064 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4065 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4066 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4067 # Best one so far, save it but keep looking for a better one
4068 ac_cv_path_EGREP
="$ac_path_EGREP"
4069 ac_path_EGREP_max
=$ac_count
4071 # 10*(2^10) chars as input seems more than enough
4072 test $ac_count -gt 10 && break
4074 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4077 $ac_path_EGREP_found && break 3
4082 if test -z "$ac_cv_path_EGREP"; then
4083 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4086 ac_cv_path_EGREP
=$EGREP
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4092 $as_echo "$ac_cv_path_EGREP" >&6; }
4093 EGREP
="$ac_cv_path_EGREP"
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4097 $as_echo_n "checking for ANSI C header files... " >&6; }
4098 if ${ac_cv_header_stdc+:} false
; then :
4099 $as_echo_n "(cached) " >&6
4101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4116 if ac_fn_c_try_compile
"$LINENO"; then :
4117 ac_cv_header_stdc
=yes
4119 ac_cv_header_stdc
=no
4121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4123 if test $ac_cv_header_stdc = yes; then
4124 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131 $EGREP "memchr" >/dev
/null
2>&1; then :
4134 ac_cv_header_stdc
=no
4140 if test $ac_cv_header_stdc = yes; then
4141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148 $EGREP "free" >/dev
/null
2>&1; then :
4151 ac_cv_header_stdc
=no
4157 if test $ac_cv_header_stdc = yes; then
4158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4159 if test "$cross_compiling" = yes; then :
4162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4166 #if ((' ' & 0x0FF) == 0x020)
4167 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4168 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4170 # define ISLOWER(c) \
4171 (('a' <= (c) && (c) <= 'i') \
4172 || ('j' <= (c) && (c) <= 'r') \
4173 || ('s' <= (c) && (c) <= 'z'))
4174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4182 for (i = 0; i < 256; i++)
4183 if (XOR (islower (i), ISLOWER (i))
4184 || toupper (i) != TOUPPER (i))
4189 if ac_fn_c_try_run
"$LINENO"; then :
4192 ac_cv_header_stdc
=no
4194 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4195 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4201 $as_echo "$ac_cv_header_stdc" >&6; }
4202 if test $ac_cv_header_stdc = yes; then
4204 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4209 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4210 inttypes.h stdint.h unistd.h
4212 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4213 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4215 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4216 cat >>confdefs.h
<<_ACEOF
4217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4226 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4227 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4234 if test "$MINIX" = yes; then
4236 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4239 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4242 $as_echo "#define _MINIX 1" >>confdefs.h
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4248 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4249 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4250 $as_echo_n "(cached) " >&6
4252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4255 # define __EXTENSIONS__ 1
4256 $ac_includes_default
4265 if ac_fn_c_try_compile
"$LINENO"; then :
4266 ac_cv_safe_to_define___extensions__
=yes
4268 ac_cv_safe_to_define___extensions__
=no
4270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4273 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4274 test $ac_cv_safe_to_define___extensions__ = yes &&
4275 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4277 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4279 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4281 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4283 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4286 # Check whether --enable-largefile was given.
4287 if test "${enable_largefile+set}" = set; then :
4288 enableval
=$enable_largefile;
4291 if test "$enable_largefile" != no
; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4294 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4295 if ${ac_cv_sys_largefile_CC+:} false
; then :
4296 $as_echo_n "(cached) " >&6
4298 ac_cv_sys_largefile_CC
=no
4299 if test "$GCC" != yes; then
4302 # IRIX 6.2 and later do not support large files by default,
4303 # so use the C compiler's -n32 option if that helps.
4304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <sys/types.h>
4307 /* Check that off_t can represent 2**63 - 1 correctly.
4308 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4309 since some C++ compilers masquerading as C compilers
4310 incorrectly reject 9223372036854775807. */
4311 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4312 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4313 && LARGE_OFF_T % 2147483647 == 1)
4323 if ac_fn_c_try_compile
"$LINENO"; then :
4326 rm -f core conftest.err conftest.
$ac_objext
4328 if ac_fn_c_try_compile
"$LINENO"; then :
4329 ac_cv_sys_largefile_CC
=' -n32'; break
4331 rm -f core conftest.err conftest.
$ac_objext
4335 rm -f conftest.
$ac_ext
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4339 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4340 if test "$ac_cv_sys_largefile_CC" != no
; then
4341 CC
=$CC$ac_cv_sys_largefile_CC
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4345 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4346 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4347 $as_echo_n "(cached) " >&6
4350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <sys/types.h>
4353 /* Check that off_t can represent 2**63 - 1 correctly.
4354 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4355 since some C++ compilers masquerading as C compilers
4356 incorrectly reject 9223372036854775807. */
4357 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4358 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4359 && LARGE_OFF_T % 2147483647 == 1)
4369 if ac_fn_c_try_compile
"$LINENO"; then :
4370 ac_cv_sys_file_offset_bits
=no
; break
4372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #define _FILE_OFFSET_BITS 64
4376 #include <sys/types.h>
4377 /* Check that off_t can represent 2**63 - 1 correctly.
4378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4379 since some C++ compilers masquerading as C compilers
4380 incorrectly reject 9223372036854775807. */
4381 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4383 && LARGE_OFF_T % 2147483647 == 1)
4393 if ac_fn_c_try_compile
"$LINENO"; then :
4394 ac_cv_sys_file_offset_bits
=64; break
4396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4397 ac_cv_sys_file_offset_bits
=unknown
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4402 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4403 case $ac_cv_sys_file_offset_bits in #(
4406 cat >>confdefs.h
<<_ACEOF
4407 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4412 if test $ac_cv_sys_file_offset_bits = unknown
; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4414 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4415 if ${ac_cv_sys_large_files+:} false
; then :
4416 $as_echo_n "(cached) " >&6
4419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #include <sys/types.h>
4422 /* Check that off_t can represent 2**63 - 1 correctly.
4423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4424 since some C++ compilers masquerading as C compilers
4425 incorrectly reject 9223372036854775807. */
4426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4428 && LARGE_OFF_T % 2147483647 == 1)
4438 if ac_fn_c_try_compile
"$LINENO"; then :
4439 ac_cv_sys_large_files
=no
; break
4441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 #define _LARGE_FILES 1
4445 #include <sys/types.h>
4446 /* Check that off_t can represent 2**63 - 1 correctly.
4447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4448 since some C++ compilers masquerading as C compilers
4449 incorrectly reject 9223372036854775807. */
4450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4452 && LARGE_OFF_T % 2147483647 == 1)
4462 if ac_fn_c_try_compile
"$LINENO"; then :
4463 ac_cv_sys_large_files
=1; break
4465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4466 ac_cv_sys_large_files
=unknown
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4471 $as_echo "$ac_cv_sys_large_files" >&6; }
4472 case $ac_cv_sys_large_files in #(
4475 cat >>confdefs.h
<<_ACEOF
4476 #define _LARGE_FILES $ac_cv_sys_large_files
4487 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4488 if test -f "$ac_dir/install-sh"; then
4490 ac_install_sh
="$ac_aux_dir/install-sh -c"
4492 elif test -f "$ac_dir/install.sh"; then
4494 ac_install_sh
="$ac_aux_dir/install.sh -c"
4496 elif test -f "$ac_dir/shtool"; then
4498 ac_install_sh
="$ac_aux_dir/shtool install -c"
4502 if test -z "$ac_aux_dir"; then
4503 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4506 # These three variables are undocumented and unsupported,
4507 # and are intended to be withdrawn in a future Autoconf release.
4508 # They can cause serious problems if a builder's source tree is in a directory
4509 # whose full name contains unusual characters.
4510 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4511 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4512 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4515 # Expand $ac_aux_dir to an absolute path.
4516 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4518 if test x
"${install_sh+set}" != xset
; then
4521 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4523 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4527 # Installed binaries are usually stripped using 'strip' when the user
4528 # run "make install-strip". However 'strip' might not be the right
4529 # tool to use in cross-compilation environments, therefore Automake
4530 # will honor the 'STRIP' environment variable to overrule this program.
4531 if test "$cross_compiling" != no
; then
4532 if test -n "$ac_tool_prefix"; then
4533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4534 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_STRIP+:} false
; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -n "$STRIP"; then
4541 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir
=.
4548 for ac_exec_ext
in '' $ac_executable_extensions; do
4549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 STRIP
=$ac_cv_prog_STRIP
4561 if test -n "$STRIP"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4563 $as_echo "$STRIP" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4571 if test -z "$ac_cv_prog_STRIP"; then
4573 # Extract the first word of "strip", so it can be a program name with args.
4574 set dummy strip
; ac_word
=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4578 $as_echo_n "(cached) " >&6
4580 if test -n "$ac_ct_STRIP"; then
4581 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4587 test -z "$as_dir" && as_dir
=.
4588 for ac_exec_ext
in '' $ac_executable_extensions; do
4589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_ac_ct_STRIP
="strip"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4601 if test -n "$ac_ct_STRIP"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4603 $as_echo "$ac_ct_STRIP" >&6; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4609 if test "x$ac_ct_STRIP" = x
; then
4612 case $cross_compiling:$ac_tool_warned in
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned
=yes ;;
4621 STRIP
="$ac_cv_prog_STRIP"
4625 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4628 # Set build, build_cpu, build_vendor and build_os.
4629 # Make sure we can run config.sub.
4630 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4631 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4634 $as_echo_n "checking build system type... " >&6; }
4635 if ${ac_cv_build+:} false
; then :
4636 $as_echo_n "(cached) " >&6
4638 ac_build_alias
=$build_alias
4639 test "x$ac_build_alias" = x
&&
4640 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4641 test "x$ac_build_alias" = x
&&
4642 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4643 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4644 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4648 $as_echo "$ac_cv_build" >&6; }
4649 case $ac_cv_build in
4651 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4654 ac_save_IFS
=$IFS; IFS
='-'
4660 # Remember, the first character of IFS is used to create $*,
4661 # except with old shells:
4664 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4668 # Set host, host_cpu, host_vendor, and host_os.
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4670 $as_echo_n "checking host system type... " >&6; }
4671 if ${ac_cv_host+:} false
; then :
4672 $as_echo_n "(cached) " >&6
4674 if test "x$host_alias" = x
; then
4675 ac_cv_host
=$ac_cv_build
4677 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4678 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4683 $as_echo "$ac_cv_host" >&6; }
4686 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4689 ac_save_IFS
=$IFS; IFS
='-'
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4699 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4703 # Set target, target_cpu, target_vendor, and target_os.
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4705 $as_echo_n "checking target system type... " >&6; }
4706 if ${ac_cv_target+:} false
; then :
4707 $as_echo_n "(cached) " >&6
4709 if test "x$target_alias" = x
; then
4710 ac_cv_target
=$ac_cv_host
4712 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4713 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4718 $as_echo "$ac_cv_target" >&6; }
4719 case $ac_cv_target in
4721 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4723 target
=$ac_cv_target
4724 ac_save_IFS
=$IFS; IFS
='-'
4730 # Remember, the first character of IFS is used to create $*,
4731 # except with old shells:
4734 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4737 # The aliases save the names the user supplied, while $host etc.
4738 # will get canonicalized.
4739 test -n "$target_alias" &&
4740 test "$program_prefix$program_suffix$program_transform_name" = \
4742 program_prefix
=${target_alias}-
4744 # Find a good install program. We prefer a C program (faster),
4745 # so one script is as good as another. But avoid the broken or
4746 # incompatible versions:
4747 # SysV /etc/install, /usr/sbin/install
4748 # SunOS /usr/etc/install
4749 # IRIX /sbin/install
4751 # AmigaOS /C/install, which installs bootblocks on floppy discs
4752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4755 # OS/2's system install, which has a completely different semantic
4756 # ./install, which can be erroneously created by make from ./install.sh.
4757 # Reject install programs that cannot install multiple files.
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4759 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4760 if test -z "$INSTALL"; then
4761 if ${ac_cv_path_install+:} false
; then :
4762 $as_echo_n "(cached) " >&6
4764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir
=.
4769 # Account for people who put trailing slashes in PATH elements.
4770 case $as_dir/ in #((
4771 .
/ | .
// |
/[cC
]/* | \
4772 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4773 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4776 # OSF1 and SCO ODT 3.0 have their own names for install.
4777 # Don't use installbsd from OSF since it installs stuff as root
4779 for ac_prog
in ginstall scoinst
install; do
4780 for ac_exec_ext
in '' $ac_executable_extensions; do
4781 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4782 if test $ac_prog = install &&
4783 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4784 # AIX install. It has an incompatible calling convention.
4786 elif test $ac_prog = install &&
4787 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4788 # program-specific install script used by HP pwplus--don't use.
4791 rm -rf conftest.one conftest.two conftest.dir
4792 echo one
> conftest.one
4793 echo two
> conftest.two
4795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4796 test -s conftest.one
&& test -s conftest.two
&&
4797 test -s conftest.dir
/conftest.one
&&
4798 test -s conftest.dir
/conftest.two
4800 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4813 rm -rf conftest.one conftest.two conftest.dir
4816 if test "${ac_cv_path_install+set}" = set; then
4817 INSTALL
=$ac_cv_path_install
4819 # As a last resort, use the slow shell script. Don't cache a
4820 # value for INSTALL within a source directory, because that will
4821 # break other packages using the cache if that directory is
4822 # removed, or if the value is a relative name.
4823 INSTALL
=$ac_install_sh
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4827 $as_echo "$INSTALL" >&6; }
4829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4830 # It thinks the first close brace ends the variable substitution.
4831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4833 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4835 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4839 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_prog_AR+:} false
; then :
4843 $as_echo_n "(cached) " >&6
4845 if test -n "$AR"; then
4846 ac_cv_prog_AR
="$AR" # Let the user override the test.
4848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir
=.
4853 for ac_exec_ext
in '' $ac_executable_extensions; do
4854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 if test -n "$AR"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4868 $as_echo "$AR" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4876 if test -z "$ac_cv_prog_AR"; then
4878 # Extract the first word of "ar", so it can be a program name with args.
4879 set dummy
ar; ac_word
=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4883 $as_echo_n "(cached) " >&6
4885 if test -n "$ac_ct_AR"; then
4886 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir
=.
4893 for ac_exec_ext
in '' $ac_executable_extensions; do
4894 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_ac_ct_AR
="ar"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4906 if test -n "$ac_ct_AR"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4908 $as_echo "$ac_ct_AR" >&6; }
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4914 if test "x$ac_ct_AR" = x
; then
4917 case $cross_compiling:$ac_tool_warned in
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4921 ac_tool_warned
=yes ;;
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_prog_RANLIB+:} false
; then :
4935 $as_echo_n "(cached) " >&6
4937 if test -n "$RANLIB"; then
4938 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir
=.
4945 for ac_exec_ext
in '' $ac_executable_extensions; do
4946 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 RANLIB
=$ac_cv_prog_RANLIB
4958 if test -n "$RANLIB"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4960 $as_echo "$RANLIB" >&6; }
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4968 if test -z "$ac_cv_prog_RANLIB"; then
4969 ac_ct_RANLIB
=$RANLIB
4970 # Extract the first word of "ranlib", so it can be a program name with args.
4971 set dummy ranlib
; ac_word
=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4975 $as_echo_n "(cached) " >&6
4977 if test -n "$ac_ct_RANLIB"; then
4978 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir
=.
4985 for ac_exec_ext
in '' $ac_executable_extensions; do
4986 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4998 if test -n "$ac_ct_RANLIB"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5000 $as_echo "$ac_ct_RANLIB" >&6; }
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5006 if test "x$ac_ct_RANLIB" = x
; then
5009 case $cross_compiling:$ac_tool_warned in
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013 ac_tool_warned
=yes ;;
5015 RANLIB
=$ac_ct_RANLIB
5018 RANLIB
="$ac_cv_prog_RANLIB"
5022 test "$program_prefix" != NONE
&&
5023 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5024 # Use a double $ so make ignores it.
5025 test "$program_suffix" != NONE
&&
5026 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5027 # Double any \ or $.
5028 # By default was `s,x,x', remove it if useless.
5029 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5030 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5033 # We require a C++17 compiler. Check if one is available, and if
5034 # necessary, set CXX_DIALECT to some -std=xxx switch.
5036 ax_cxx_compile_alternatives
="17 1z" ax_cxx_compile_cxx17_required
=true
5038 ac_cpp
='$CXXCPP $CPPFLAGS'
5039 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
5046 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
5047 if ${ax_cv_cxx_compile_cxx17+:} false
; then :
5048 $as_echo_n "(cached) " >&6
5050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5054 // If the compiler admits that it is not ready for C++11, why torture it?
5055 // Hopefully, this will speed up the test.
5059 #error "This is not a C++ compiler"
5061 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
5062 // only set it correctly if /Zc:__cplusplus is specified as well as a
5063 // /std:c++NN switch:
5064 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
5065 #elif __cplusplus < 201103L && !defined _MSC_VER
5067 #error "This is not a C++11 compiler"
5074 namespace test_static_assert
5077 template <typename T>
5080 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5085 namespace test_final_override
5094 struct Derived : public Base
5096 virtual ~Derived() override {}
5097 virtual void f() override {}
5102 namespace test_double_right_angle_brackets
5105 template < typename T >
5108 typedef check<void> single_type;
5109 typedef check<check<void>> double_type;
5110 typedef check<check<check<void>>> triple_type;
5111 typedef check<check<check<check<void>>>> quadruple_type;
5115 namespace test_decltype
5128 namespace test_type_deduction
5131 template < typename T1, typename T2 >
5134 static const bool value = false;
5137 template < typename T >
5138 struct is_same<T, T>
5140 static const bool value = true;
5143 template < typename T1, typename T2 >
5145 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5151 test(const int c, volatile int v)
5153 static_assert(is_same<int, decltype(0)>::value == true, "");
5154 static_assert(is_same<int, decltype(c)>::value == false, "");
5155 static_assert(is_same<int, decltype(v)>::value == false, "");
5158 auto sumi = ac + av + 'x';
5159 auto sumf = ac + av + 1.0;
5160 static_assert(is_same<int, decltype(ac)>::value == true, "");
5161 static_assert(is_same<int, decltype(av)>::value == true, "");
5162 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5163 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5164 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5165 return (sumf > 0.0) ? sumi : add(c, v);
5170 namespace test_noexcept
5173 int f() { return 0; }
5174 int g() noexcept { return 0; }
5176 static_assert(noexcept(f()) == false, "");
5177 static_assert(noexcept(g()) == true, "");
5181 namespace test_constexpr
5184 template < typename CharT >
5185 unsigned long constexpr
5186 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5188 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5191 template < typename CharT >
5192 unsigned long constexpr
5193 strlen_c(const CharT *const s) noexcept
5195 return strlen_c_r(s, 0UL);
5198 static_assert(strlen_c("") == 0UL, "");
5199 static_assert(strlen_c("1") == 1UL, "");
5200 static_assert(strlen_c("example") == 7UL, "");
5201 static_assert(strlen_c("another\0example") == 7UL, "");
5205 namespace test_rvalue_references
5211 static constexpr int value = N;
5214 answer<1> f(int&) { return answer<1>(); }
5215 answer<2> f(const int&) { return answer<2>(); }
5216 answer<3> f(int&&) { return answer<3>(); }
5223 static_assert(decltype(f(i))::value == 1, "");
5224 static_assert(decltype(f(c))::value == 2, "");
5225 static_assert(decltype(f(0))::value == 3, "");
5230 namespace test_uniform_initialization
5235 static const int zero {};
5236 static const int one {1};
5239 static_assert(test::zero == 0, "");
5240 static_assert(test::one == 1, "");
5244 namespace test_lambdas
5250 auto lambda1 = [](){};
5251 auto lambda2 = lambda1;
5259 auto a = [](int i, int j){ return i + j; }(1, 2);
5260 auto b = []() -> int { return '0'; }();
5261 auto c = [=](){ return a + b; }();
5262 auto d = [&](){ return c; }();
5263 auto e = [a, &b](int x) mutable {
5264 const auto identity = [](int y){ return y; };
5265 for (auto i = 0; i < a; ++i)
5267 return x + identity(a + b);
5269 return a + b + c + d + e;
5275 const auto nullary = [](){ return 0; };
5276 const auto unary = [](int x){ return x; };
5277 using nullary_t = decltype(nullary);
5278 using unary_t = decltype(unary);
5279 const auto higher1st = [](nullary_t f){ return f(); };
5280 const auto higher2nd = [unary](nullary_t f1){
5281 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5283 return higher1st(nullary) + higher2nd(nullary)(unary);
5288 namespace test_variadic_templates
5294 template <int N0, int... N1toN>
5295 struct sum<N0, N1toN...>
5297 static constexpr auto value = N0 + sum<N1toN...>::value;
5303 static constexpr auto value = 0;
5306 static_assert(sum<>::value == 0, "");
5307 static_assert(sum<1>::value == 1, "");
5308 static_assert(sum<23>::value == 23, "");
5309 static_assert(sum<1, 2>::value == 3, "");
5310 static_assert(sum<5, 5, 11>::value == 21, "");
5311 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5315 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5316 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5318 namespace test_template_alias_sfinae
5323 template<typename T>
5324 using member = typename T::member_type;
5326 template<typename T>
5329 template<typename T>
5330 void func(member<T>*) {}
5334 void test() { func<foo>(0); }
5338 } // namespace cxx11
5340 #endif // __cplusplus >= 201103L
5345 // If the compiler admits that it is not ready for C++14, why torture it?
5346 // Hopefully, this will speed up the test.
5350 #error "This is not a C++ compiler"
5352 #elif __cplusplus < 201402L && !defined _MSC_VER
5354 #error "This is not a C++14 compiler"
5361 namespace test_polymorphic_lambdas
5367 const auto lambda = [](auto&&... args){
5368 const auto istiny = [](auto x){
5369 return (sizeof(x) == 1UL) ? 1 : 0;
5371 const int aretiny[] = { istiny(args)... };
5374 return lambda(1, 1L, 1.0f, '1');
5379 namespace test_binary_literals
5382 constexpr auto ivii = 0b0000000000101010;
5383 static_assert(ivii == 42, "wrong value");
5387 namespace test_generalized_constexpr
5390 template < typename CharT >
5391 constexpr unsigned long
5392 strlen_c(const CharT *const s) noexcept
5395 for (auto p = s; *p; ++p)
5400 static_assert(strlen_c("") == 0UL, "");
5401 static_assert(strlen_c("x") == 1UL, "");
5402 static_assert(strlen_c("test") == 4UL, "");
5403 static_assert(strlen_c("another\0test") == 7UL, "");
5407 namespace test_lambda_init_capture
5414 const auto lambda1 = [a = x](int b){ return a + b; };
5415 const auto lambda2 = [a = lambda1(x)](){ return a; };
5421 namespace test_digit_separators
5424 constexpr auto ten_million = 100'000'000;
5425 static_assert(ten_million == 100000000, "");
5429 namespace test_return_type_deduction
5432 auto f(int& x) { return x; }
5433 decltype(auto) g(int& x) { return x; }
5435 template < typename T1, typename T2 >
5438 static constexpr auto value = false;
5441 template < typename T >
5442 struct is_same<T, T>
5444 static constexpr auto value = true;
5451 static_assert(is_same<int, decltype(f(x))>::value, "");
5452 static_assert(is_same<int&, decltype(g(x))>::value, "");
5458 } // namespace cxx14
5460 #endif // __cplusplus >= 201402L
5465 // If the compiler admits that it is not ready for C++17, why torture it?
5466 // Hopefully, this will speed up the test.
5470 #error "This is not a C++ compiler"
5472 #elif __cplusplus < 201703L && !defined _MSC_VER
5474 #error "This is not a C++17 compiler"
5478 #include <initializer_list>
5480 #include <type_traits>
5485 namespace test_constexpr_lambdas
5488 constexpr int foo = [](){return 42;}();
5492 namespace test::nested_namespace::definitions
5497 namespace test_fold_expression
5500 template<typename... Args>
5501 int multiply(Args... args)
5503 return (args * ... * 1);
5506 template<typename... Args>
5507 bool all(Args... args)
5509 return (args && ...);
5514 namespace test_extended_static_assert
5517 static_assert (true);
5521 namespace test_auto_brace_init_list
5527 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
5528 static_assert(std::is_same<int, decltype(bar)>::value);
5531 namespace test_typename_in_template_template_parameter
5534 template<template<typename> typename X> struct D;
5538 namespace test_fallthrough_nodiscard_maybe_unused_attributes
5546 [[nodiscard]] int f2()
5548 [[maybe_unused]] auto unused = f1();
5563 namespace test_extended_aggregate_initialization
5579 struct derived : base1, base2
5584 derived d1 {{1, 2}, {}, 4}; // full initialization
5585 derived d2 {{}, {}, 4}; // value-initialized bases
5589 namespace test_general_range_based_for_loop
5601 const int& operator* () const
5618 bool operator== (const iter& i, const sentinel& s)
5623 bool operator!= (const iter& i, const sentinel& s)
5635 sentinel end() const
5647 [[maybe_unused]] auto v = i;
5653 namespace test_lambda_capture_asterisk_this_by_value
5670 namespace test_enum_class_construction
5673 enum class byte : unsigned char
5680 namespace test_constexpr_if
5683 template <bool cond>
5698 namespace test_selection_statement_with_initializer
5708 if (auto i = f(); i > 0)
5713 switch (auto i = f(); i + 4)
5725 namespace test_template_argument_deduction_for_class_templates
5728 template <typename T1, typename T2>
5742 [[maybe_unused]] auto p = pair{13, 42u};
5747 namespace test_non_type_auto_template_parameters
5759 namespace test_structured_bindings
5762 int arr[2] = { 1, 2 };
5763 std::pair<int, int> pr = { 1, 2 };
5765 auto f1() -> int(&)[2]
5770 auto f2() -> std::pair<int, int>&
5786 auto [ x1, y1 ] = f1();
5787 auto& [ xr1, yr1 ] = f1();
5788 auto [ x2, y2 ] = f2();
5789 auto& [ xr2, yr2 ] = f2();
5790 const auto [ x3, y3 ] = f3();
5794 namespace test_exception_spec_type_system
5803 template<typename T>
5807 template<typename T1, typename T2>
5811 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
5815 namespace test_inline_variables
5818 template<class T> void f(T)
5821 template<class T> inline T g(T)
5826 template<> inline void f<>(int)
5829 template<> int g<>(int)
5836 } // namespace cxx17
5838 #endif // __cplusplus < 201703L && !defined _MSC_VER
5843 if ac_fn_cxx_try_compile
"$LINENO"; then :
5844 ax_cv_cxx_compile_cxx17
=yes
5846 ax_cv_cxx_compile_cxx17
=no
5848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
5851 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
5852 if test x
$ax_cv_cxx_compile_cxx17 = xyes
; then
5856 if test x
$ac_success = xno
; then
5857 for alternative
in ${ax_cxx_compile_alternatives}; do
5858 switch
="-std=gnu++${alternative}"
5859 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
5861 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
5862 if eval \
${$cachevar+:} false
; then :
5863 $as_echo_n "(cached) " >&6
5867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5871 // If the compiler admits that it is not ready for C++11, why torture it?
5872 // Hopefully, this will speed up the test.
5876 #error "This is not a C++ compiler"
5878 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
5879 // only set it correctly if /Zc:__cplusplus is specified as well as a
5880 // /std:c++NN switch:
5881 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
5882 #elif __cplusplus < 201103L && !defined _MSC_VER
5884 #error "This is not a C++11 compiler"
5891 namespace test_static_assert
5894 template <typename T>
5897 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5902 namespace test_final_override
5911 struct Derived : public Base
5913 virtual ~Derived() override {}
5914 virtual void f() override {}
5919 namespace test_double_right_angle_brackets
5922 template < typename T >
5925 typedef check<void> single_type;
5926 typedef check<check<void>> double_type;
5927 typedef check<check<check<void>>> triple_type;
5928 typedef check<check<check<check<void>>>> quadruple_type;
5932 namespace test_decltype
5945 namespace test_type_deduction
5948 template < typename T1, typename T2 >
5951 static const bool value = false;
5954 template < typename T >
5955 struct is_same<T, T>
5957 static const bool value = true;
5960 template < typename T1, typename T2 >
5962 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5968 test(const int c, volatile int v)
5970 static_assert(is_same<int, decltype(0)>::value == true, "");
5971 static_assert(is_same<int, decltype(c)>::value == false, "");
5972 static_assert(is_same<int, decltype(v)>::value == false, "");
5975 auto sumi = ac + av + 'x';
5976 auto sumf = ac + av + 1.0;
5977 static_assert(is_same<int, decltype(ac)>::value == true, "");
5978 static_assert(is_same<int, decltype(av)>::value == true, "");
5979 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5980 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5981 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5982 return (sumf > 0.0) ? sumi : add(c, v);
5987 namespace test_noexcept
5990 int f() { return 0; }
5991 int g() noexcept { return 0; }
5993 static_assert(noexcept(f()) == false, "");
5994 static_assert(noexcept(g()) == true, "");
5998 namespace test_constexpr
6001 template < typename CharT >
6002 unsigned long constexpr
6003 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6005 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6008 template < typename CharT >
6009 unsigned long constexpr
6010 strlen_c(const CharT *const s) noexcept
6012 return strlen_c_r(s, 0UL);
6015 static_assert(strlen_c("") == 0UL, "");
6016 static_assert(strlen_c("1") == 1UL, "");
6017 static_assert(strlen_c("example") == 7UL, "");
6018 static_assert(strlen_c("another\0example") == 7UL, "");
6022 namespace test_rvalue_references
6028 static constexpr int value = N;
6031 answer<1> f(int&) { return answer<1>(); }
6032 answer<2> f(const int&) { return answer<2>(); }
6033 answer<3> f(int&&) { return answer<3>(); }
6040 static_assert(decltype(f(i))::value == 1, "");
6041 static_assert(decltype(f(c))::value == 2, "");
6042 static_assert(decltype(f(0))::value == 3, "");
6047 namespace test_uniform_initialization
6052 static const int zero {};
6053 static const int one {1};
6056 static_assert(test::zero == 0, "");
6057 static_assert(test::one == 1, "");
6061 namespace test_lambdas
6067 auto lambda1 = [](){};
6068 auto lambda2 = lambda1;
6076 auto a = [](int i, int j){ return i + j; }(1, 2);
6077 auto b = []() -> int { return '0'; }();
6078 auto c = [=](){ return a + b; }();
6079 auto d = [&](){ return c; }();
6080 auto e = [a, &b](int x) mutable {
6081 const auto identity = [](int y){ return y; };
6082 for (auto i = 0; i < a; ++i)
6084 return x + identity(a + b);
6086 return a + b + c + d + e;
6092 const auto nullary = [](){ return 0; };
6093 const auto unary = [](int x){ return x; };
6094 using nullary_t = decltype(nullary);
6095 using unary_t = decltype(unary);
6096 const auto higher1st = [](nullary_t f){ return f(); };
6097 const auto higher2nd = [unary](nullary_t f1){
6098 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6100 return higher1st(nullary) + higher2nd(nullary)(unary);
6105 namespace test_variadic_templates
6111 template <int N0, int... N1toN>
6112 struct sum<N0, N1toN...>
6114 static constexpr auto value = N0 + sum<N1toN...>::value;
6120 static constexpr auto value = 0;
6123 static_assert(sum<>::value == 0, "");
6124 static_assert(sum<1>::value == 1, "");
6125 static_assert(sum<23>::value == 23, "");
6126 static_assert(sum<1, 2>::value == 3, "");
6127 static_assert(sum<5, 5, 11>::value == 21, "");
6128 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6132 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6133 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6135 namespace test_template_alias_sfinae
6140 template<typename T>
6141 using member = typename T::member_type;
6143 template<typename T>
6146 template<typename T>
6147 void func(member<T>*) {}
6151 void test() { func<foo>(0); }
6155 } // namespace cxx11
6157 #endif // __cplusplus >= 201103L
6162 // If the compiler admits that it is not ready for C++14, why torture it?
6163 // Hopefully, this will speed up the test.
6167 #error "This is not a C++ compiler"
6169 #elif __cplusplus < 201402L && !defined _MSC_VER
6171 #error "This is not a C++14 compiler"
6178 namespace test_polymorphic_lambdas
6184 const auto lambda = [](auto&&... args){
6185 const auto istiny = [](auto x){
6186 return (sizeof(x) == 1UL) ? 1 : 0;
6188 const int aretiny[] = { istiny(args)... };
6191 return lambda(1, 1L, 1.0f, '1');
6196 namespace test_binary_literals
6199 constexpr auto ivii = 0b0000000000101010;
6200 static_assert(ivii == 42, "wrong value");
6204 namespace test_generalized_constexpr
6207 template < typename CharT >
6208 constexpr unsigned long
6209 strlen_c(const CharT *const s) noexcept
6212 for (auto p = s; *p; ++p)
6217 static_assert(strlen_c("") == 0UL, "");
6218 static_assert(strlen_c("x") == 1UL, "");
6219 static_assert(strlen_c("test") == 4UL, "");
6220 static_assert(strlen_c("another\0test") == 7UL, "");
6224 namespace test_lambda_init_capture
6231 const auto lambda1 = [a = x](int b){ return a + b; };
6232 const auto lambda2 = [a = lambda1(x)](){ return a; };
6238 namespace test_digit_separators
6241 constexpr auto ten_million = 100'000'000;
6242 static_assert(ten_million == 100000000, "");
6246 namespace test_return_type_deduction
6249 auto f(int& x) { return x; }
6250 decltype(auto) g(int& x) { return x; }
6252 template < typename T1, typename T2 >
6255 static constexpr auto value = false;
6258 template < typename T >
6259 struct is_same<T, T>
6261 static constexpr auto value = true;
6268 static_assert(is_same<int, decltype(f(x))>::value, "");
6269 static_assert(is_same<int&, decltype(g(x))>::value, "");
6275 } // namespace cxx14
6277 #endif // __cplusplus >= 201402L
6282 // If the compiler admits that it is not ready for C++17, why torture it?
6283 // Hopefully, this will speed up the test.
6287 #error "This is not a C++ compiler"
6289 #elif __cplusplus < 201703L && !defined _MSC_VER
6291 #error "This is not a C++17 compiler"
6295 #include <initializer_list>
6297 #include <type_traits>
6302 namespace test_constexpr_lambdas
6305 constexpr int foo = [](){return 42;}();
6309 namespace test::nested_namespace::definitions
6314 namespace test_fold_expression
6317 template<typename... Args>
6318 int multiply(Args... args)
6320 return (args * ... * 1);
6323 template<typename... Args>
6324 bool all(Args... args)
6326 return (args && ...);
6331 namespace test_extended_static_assert
6334 static_assert (true);
6338 namespace test_auto_brace_init_list
6344 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
6345 static_assert(std::is_same<int, decltype(bar)>::value);
6348 namespace test_typename_in_template_template_parameter
6351 template<template<typename> typename X> struct D;
6355 namespace test_fallthrough_nodiscard_maybe_unused_attributes
6363 [[nodiscard]] int f2()
6365 [[maybe_unused]] auto unused = f1();
6380 namespace test_extended_aggregate_initialization
6396 struct derived : base1, base2
6401 derived d1 {{1, 2}, {}, 4}; // full initialization
6402 derived d2 {{}, {}, 4}; // value-initialized bases
6406 namespace test_general_range_based_for_loop
6418 const int& operator* () const
6435 bool operator== (const iter& i, const sentinel& s)
6440 bool operator!= (const iter& i, const sentinel& s)
6452 sentinel end() const
6464 [[maybe_unused]] auto v = i;
6470 namespace test_lambda_capture_asterisk_this_by_value
6487 namespace test_enum_class_construction
6490 enum class byte : unsigned char
6497 namespace test_constexpr_if
6500 template <bool cond>
6515 namespace test_selection_statement_with_initializer
6525 if (auto i = f(); i > 0)
6530 switch (auto i = f(); i + 4)
6542 namespace test_template_argument_deduction_for_class_templates
6545 template <typename T1, typename T2>
6559 [[maybe_unused]] auto p = pair{13, 42u};
6564 namespace test_non_type_auto_template_parameters
6576 namespace test_structured_bindings
6579 int arr[2] = { 1, 2 };
6580 std::pair<int, int> pr = { 1, 2 };
6582 auto f1() -> int(&)[2]
6587 auto f2() -> std::pair<int, int>&
6603 auto [ x1, y1 ] = f1();
6604 auto& [ xr1, yr1 ] = f1();
6605 auto [ x2, y2 ] = f2();
6606 auto& [ xr2, yr2 ] = f2();
6607 const auto [ x3, y3 ] = f3();
6611 namespace test_exception_spec_type_system
6620 template<typename T>
6624 template<typename T1, typename T2>
6628 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
6632 namespace test_inline_variables
6635 template<class T> void f(T)
6638 template<class T> inline T g(T)
6643 template<> inline void f<>(int)
6646 template<> int g<>(int)
6653 } // namespace cxx17
6655 #endif // __cplusplus < 201703L && !defined _MSC_VER
6660 if ac_fn_cxx_try_compile
"$LINENO"; then :
6665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6668 eval ac_res
=\$
$cachevar
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6670 $as_echo "$ac_res" >&6; }
6671 if eval test x\$
$cachevar = xyes
; then
6672 CXX_DIALECT
="$switch"
6674 if test -n "$CXXCPP" ; then
6675 CXXCPP
="$CXXCPP $switch"
6683 if test x
$ac_success = xno
; then
6684 for alternative
in ${ax_cxx_compile_alternatives}; do
6685 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
6686 if test x"$switch" = xMSVC; then
6687 switch=-std:c++${alternative}
6688 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
${switch}_MSVC
" | $as_tr_sh`
6690 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
$switch" | $as_tr_sh`
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++17 features with
$switch" >&5
6693 $as_echo_n "checking whether
$CXX supports C
++17 features with
$switch...
" >&6; }
6694 if eval \${$cachevar+:} false; then :
6695 $as_echo_n "(cached
) " >&6
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6703 // If the compiler admits that it is not ready for C++11, why torture it?
6704 // Hopefully, this will speed up the test.
6708 #error "This is not a C
++ compiler
"
6710 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6711 // only set it correctly if /Zc:__cplusplus is specified as well as a
6712 // /std:c++NN switch:
6713 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6714 #elif __cplusplus < 201103L && !defined _MSC_VER
6716 #error "This is not a C
++11 compiler
"
6723 namespace test_static_assert
6726 template <typename T>
6729 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6734 namespace test_final_override
6743 struct Derived : public Base
6745 virtual ~Derived() override {}
6746 virtual void f() override {}
6751 namespace test_double_right_angle_brackets
6754 template < typename T >
6757 typedef check<void> single_type;
6758 typedef check<check<void>> double_type;
6759 typedef check<check<check<void>>> triple_type;
6760 typedef check<check<check<check<void>>>> quadruple_type;
6764 namespace test_decltype
6777 namespace test_type_deduction
6780 template < typename T1, typename T2 >
6783 static const bool value = false;
6786 template < typename T >
6787 struct is_same<T, T>
6789 static const bool value = true;
6792 template < typename T1, typename T2 >
6794 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6800 test(const int c, volatile int v)
6802 static_assert(is_same<int, decltype(0)>::value == true, "");
6803 static_assert(is_same<int, decltype(c)>::value == false, "");
6804 static_assert(is_same<int, decltype(v)>::value == false, "");
6807 auto sumi = ac + av + 'x';
6808 auto sumf = ac + av + 1.0;
6809 static_assert(is_same<int, decltype(ac)>::value == true, "");
6810 static_assert(is_same<int, decltype(av)>::value == true, "");
6811 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6812 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6813 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6814 return (sumf > 0.0) ? sumi : add(c, v);
6819 namespace test_noexcept
6822 int f() { return 0; }
6823 int g() noexcept { return 0; }
6825 static_assert(noexcept(f()) == false, "");
6826 static_assert(noexcept(g()) == true, "");
6830 namespace test_constexpr
6833 template < typename CharT >
6834 unsigned long constexpr
6835 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6837 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6840 template < typename CharT >
6841 unsigned long constexpr
6842 strlen_c(const CharT *const s) noexcept
6844 return strlen_c_r(s, 0UL);
6847 static_assert(strlen_c("") == 0UL, "");
6848 static_assert(strlen_c("1") == 1UL, "");
6849 static_assert(strlen_c("example
") == 7UL, "");
6850 static_assert(strlen_c("another\
0example
") == 7UL, "");
6854 namespace test_rvalue_references
6860 static constexpr int value = N;
6863 answer<1> f(int&) { return answer<1>(); }
6864 answer<2> f(const int&) { return answer<2>(); }
6865 answer<3> f(int&&) { return answer<3>(); }
6872 static_assert(decltype(f(i))::value == 1, "");
6873 static_assert(decltype(f(c))::value == 2, "");
6874 static_assert(decltype(f(0))::value == 3, "");
6879 namespace test_uniform_initialization
6884 static const int zero {};
6885 static const int one {1};
6888 static_assert(test::zero == 0, "");
6889 static_assert(test::one == 1, "");
6893 namespace test_lambdas
6899 auto lambda1 = [](){};
6900 auto lambda2 = lambda1;
6908 auto a = [](int i, int j){ return i + j; }(1, 2);
6909 auto b = []() -> int { return '0'; }();
6910 auto c = [=](){ return a + b; }();
6911 auto d = [&](){ return c; }();
6912 auto e = [a, &b](int x) mutable {
6913 const auto identity = [](int y){ return y; };
6914 for (auto i = 0; i < a; ++i)
6916 return x + identity(a + b);
6918 return a + b + c + d + e;
6924 const auto nullary = [](){ return 0; };
6925 const auto unary = [](int x){ return x; };
6926 using nullary_t = decltype(nullary);
6927 using unary_t = decltype(unary);
6928 const auto higher1st = [](nullary_t f){ return f(); };
6929 const auto higher2nd = [unary](nullary_t f1){
6930 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6932 return higher1st(nullary) + higher2nd(nullary)(unary);
6937 namespace test_variadic_templates
6943 template <int N0, int... N1toN>
6944 struct sum<N0, N1toN...>
6946 static constexpr auto value = N0 + sum<N1toN...>::value;
6952 static constexpr auto value = 0;
6955 static_assert(sum<>::value == 0, "");
6956 static_assert(sum<1>::value == 1, "");
6957 static_assert(sum<23>::value == 23, "");
6958 static_assert(sum<1, 2>::value == 3, "");
6959 static_assert(sum<5, 5, 11>::value == 21, "");
6960 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6964 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6965 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6967 namespace test_template_alias_sfinae
6972 template<typename T>
6973 using member = typename T::member_type;
6975 template<typename T>
6978 template<typename T>
6979 void func(member<T>*) {}
6983 void test() { func<foo>(0); }
6987 } // namespace cxx11
6989 #endif // __cplusplus >= 201103L
6994 // If the compiler admits that it is not ready for C++14, why torture it?
6995 // Hopefully, this will speed up the test.
6999 #error "This is not a C
++ compiler
"
7001 #elif __cplusplus < 201402L && !defined _MSC_VER
7003 #error "This is not a C
++14 compiler
"
7010 namespace test_polymorphic_lambdas
7016 const auto lambda = [](auto&&... args){
7017 const auto istiny = [](auto x){
7018 return (sizeof(x) == 1UL) ? 1 : 0;
7020 const int aretiny[] = { istiny(args)... };
7023 return lambda(1, 1L, 1.0f, '1');
7028 namespace test_binary_literals
7031 constexpr auto ivii = 0b0000000000101010;
7032 static_assert(ivii == 42, "wrong value
");
7036 namespace test_generalized_constexpr
7039 template < typename CharT >
7040 constexpr unsigned long
7041 strlen_c(const CharT *const s) noexcept
7044 for (auto p = s; *p; ++p)
7049 static_assert(strlen_c("") == 0UL, "");
7050 static_assert(strlen_c("x
") == 1UL, "");
7051 static_assert(strlen_c("test") == 4UL, "");
7052 static_assert(strlen_c("another\
0test") == 7UL, "");
7056 namespace test_lambda_init_capture
7063 const auto lambda1 = [a = x](int b){ return a + b; };
7064 const auto lambda2 = [a = lambda1(x)](){ return a; };
7070 namespace test_digit_separators
7073 constexpr auto ten_million = 100'000'000;
7074 static_assert(ten_million == 100000000, "");
7078 namespace test_return_type_deduction
7081 auto f(int& x) { return x; }
7082 decltype(auto) g(int& x) { return x; }
7084 template < typename T1, typename T2 >
7087 static constexpr auto value = false;
7090 template < typename T >
7091 struct is_same<T, T>
7093 static constexpr auto value = true;
7100 static_assert(is_same<int, decltype(f(x))>::value, "");
7101 static_assert(is_same<int&, decltype(g(x))>::value, "");
7107 } // namespace cxx14
7109 #endif // __cplusplus >= 201402L
7114 // If the compiler admits that it is not ready for C++17, why torture it?
7115 // Hopefully, this will speed up the test.
7119 #error "This is not a C
++ compiler
"
7121 #elif __cplusplus < 201703L && !defined _MSC_VER
7123 #error "This is not a C
++17 compiler
"
7127 #include <initializer_list>
7129 #include <type_traits>
7134 namespace test_constexpr_lambdas
7137 constexpr int foo = [](){return 42;}();
7141 namespace test::nested_namespace::definitions
7146 namespace test_fold_expression
7149 template<typename... Args>
7150 int multiply(Args... args)
7152 return (args * ... * 1);
7155 template<typename... Args>
7156 bool all(Args... args)
7158 return (args && ...);
7163 namespace test_extended_static_assert
7166 static_assert (true);
7170 namespace test_auto_brace_init_list
7176 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
7177 static_assert(std::is_same<int, decltype(bar)>::value);
7180 namespace test_typename_in_template_template_parameter
7183 template<template<typename> typename X> struct D;
7187 namespace test_fallthrough_nodiscard_maybe_unused_attributes
7195 [[nodiscard]] int f2()
7197 [[maybe_unused]] auto unused = f1();
7212 namespace test_extended_aggregate_initialization
7228 struct derived : base1, base2
7233 derived d1 {{1, 2}, {}, 4}; // full initialization
7234 derived d2 {{}, {}, 4}; // value-initialized bases
7238 namespace test_general_range_based_for_loop
7250 const int& operator* () const
7267 bool operator== (const iter& i, const sentinel& s)
7272 bool operator!= (const iter& i, const sentinel& s)
7284 sentinel end() const
7296 [[maybe_unused]] auto v = i;
7302 namespace test_lambda_capture_asterisk_this_by_value
7319 namespace test_enum_class_construction
7322 enum class byte : unsigned char
7329 namespace test_constexpr_if
7332 template <bool cond>
7347 namespace test_selection_statement_with_initializer
7357 if (auto i = f(); i > 0)
7362 switch (auto i = f(); i + 4)
7374 namespace test_template_argument_deduction_for_class_templates
7377 template <typename T1, typename T2>
7391 [[maybe_unused]] auto p = pair{13, 42u};
7396 namespace test_non_type_auto_template_parameters
7408 namespace test_structured_bindings
7411 int arr[2] = { 1, 2 };
7412 std::pair<int, int> pr = { 1, 2 };
7414 auto f1() -> int(&)[2]
7419 auto f2() -> std::pair<int, int>&
7435 auto [ x1, y1 ] = f1();
7436 auto& [ xr1, yr1 ] = f1();
7437 auto [ x2, y2 ] = f2();
7438 auto& [ xr2, yr2 ] = f2();
7439 const auto [ x3, y3 ] = f3();
7443 namespace test_exception_spec_type_system
7452 template<typename T>
7456 template<typename T1, typename T2>
7460 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
7464 namespace test_inline_variables
7467 template<class T> void f(T)
7470 template<class T> inline T g(T)
7475 template<> inline void f<>(int)
7478 template<> int g<>(int)
7485 } // namespace cxx17
7487 #endif // __cplusplus < 201703L && !defined _MSC_VER
7492 if ac_fn_cxx_try_compile "$LINENO"; then :
7497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 eval ac_res=\$$cachevar
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7502 $as_echo "$ac_res" >&6; }
7503 if eval test x\$$cachevar = xyes; then
7504 CXX_DIALECT="$switch"
7506 if test -n "$CXXCPP" ; then
7507 CXXCPP="$CXXCPP $switch"
7513 if test x$ac_success = xyes; then
7519 ac_cpp='$CPP $CPPFLAGS'
7520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524 if test x$ax_cxx_compile_cxx17_required = xtrue; then
7525 if test x$ac_success = xno; then
7526 as_fn_error $? "*** A compiler with support
for C
++17 language features is required.
" "$LINENO" 5
7529 if test x$ac_success = xno; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++17 support was found
" >&5
7532 $as_echo "$as_me: No compiler with C
++17 support was found
" >&6;}
7536 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7544 $as_echo_n "checking for ANSI C header files... " >&6; }
7545 if ${ac_cv_header_stdc+:} false
; then :
7546 $as_echo_n "(cached) " >&6
7548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7563 if ac_fn_c_try_compile
"$LINENO"; then :
7564 ac_cv_header_stdc
=yes
7566 ac_cv_header_stdc
=no
7568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7570 if test $ac_cv_header_stdc = yes; then
7571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7578 $EGREP "memchr" >/dev
/null
2>&1; then :
7581 ac_cv_header_stdc
=no
7587 if test $ac_cv_header_stdc = yes; then
7588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7595 $EGREP "free" >/dev
/null
2>&1; then :
7598 ac_cv_header_stdc
=no
7604 if test $ac_cv_header_stdc = yes; then
7605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7606 if test "$cross_compiling" = yes; then :
7609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7613 #if ((' ' & 0x0FF) == 0x020)
7614 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7615 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7617 # define ISLOWER(c) \
7618 (('a' <= (c) && (c) <= 'i') \
7619 || ('j' <= (c) && (c) <= 'r') \
7620 || ('s' <= (c) && (c) <= 'z'))
7621 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7624 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7629 for (i = 0; i < 256; i++)
7630 if (XOR (islower (i), ISLOWER (i))
7631 || toupper (i) != TOUPPER (i))
7636 if ac_fn_c_try_run
"$LINENO"; then :
7639 ac_cv_header_stdc
=no
7641 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7642 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7648 $as_echo "$ac_cv_header_stdc" >&6; }
7649 if test $ac_cv_header_stdc = yes; then
7651 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7656 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7657 if test "x$ac_cv_type_size_t" = xyes
; then :
7661 cat >>confdefs.h
<<_ACEOF
7662 #define size_t unsigned int
7670 for ac_header
in $ac_header_list
7672 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7673 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7675 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7676 cat >>confdefs.h
<<_ACEOF
7677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7691 if test "x$ac_cv_type_pid_t" = xyes
; then :
7695 cat >>confdefs.h
<<_ACEOF
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7702 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7703 if ${ac_cv_path_SED+:} false
; then :
7704 $as_echo_n "(cached) " >&6
7706 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
7707 for ac_i
in 1 2 3 4 5 6 7; do
7708 ac_script
="$ac_script$as_nl$ac_script"
7710 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
7711 { ac_script
=; unset ac_script
;}
7712 if test -z "$SED"; then
7713 ac_path_SED_found
=false
7714 # Loop through the user's path and test for each of PROGNAME-LIST
7715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir
=.
7720 for ac_prog
in sed gsed
; do
7721 for ac_exec_ext
in '' $ac_executable_extensions; do
7722 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
7723 as_fn_executable_p
"$ac_path_SED" ||
continue
7724 # Check for GNU ac_path_SED and select it if it is found.
7725 # Check for GNU $ac_path_SED
7726 case `"$ac_path_SED" --version 2>&1` in
7728 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
7731 $as_echo_n 0123456789 >"conftest.in"
7734 cat "conftest.in" "conftest.in" >"conftest.tmp"
7735 mv "conftest.tmp" "conftest.in"
7736 cp "conftest.in" "conftest.nl"
7737 $as_echo '' >> "conftest.nl"
7738 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7739 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7740 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7741 if test $ac_count -gt ${ac_path_SED_max-0}; then
7742 # Best one so far, save it but keep looking for a better one
7743 ac_cv_path_SED
="$ac_path_SED"
7744 ac_path_SED_max
=$ac_count
7746 # 10*(2^10) chars as input seems more than enough
7747 test $ac_count -gt 10 && break
7749 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7752 $ac_path_SED_found && break 3
7757 if test -z "$ac_cv_path_SED"; then
7758 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7766 $as_echo "$ac_cv_path_SED" >&6; }
7767 SED
="$ac_cv_path_SED"
7771 if test "X$prefix" = "XNONE"; then
7772 acl_final_prefix
="$ac_default_prefix"
7774 acl_final_prefix
="$prefix"
7776 if test "X$exec_prefix" = "XNONE"; then
7777 acl_final_exec_prefix
='${prefix}'
7779 acl_final_exec_prefix
="$exec_prefix"
7781 acl_save_prefix
="$prefix"
7782 prefix
="$acl_final_prefix"
7783 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7784 prefix
="$acl_save_prefix"
7787 # Check whether --with-gnu-ld was given.
7788 if test "${with_gnu_ld+set}" = set; then :
7789 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7794 # Prepare PATH_SEPARATOR.
7795 # The user is always right.
7796 if test "${PATH_SEPARATOR+set}" != set; then
7797 echo "#! /bin/sh" >conf$$.sh
7798 echo "exit 0" >>conf$$.sh
7800 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7808 if test "$GCC" = yes; then
7809 # Check if gcc -print-prog-name=ld gives a path.
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7811 $as_echo_n "checking for ld used by GCC... " >&6; }
7814 # gcc leaves a trailing carriage return which upsets mingw
7815 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7817 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7820 # Accept absolute paths.
7821 [\\/]* |
[A-Za-z
]:[\\/]*)
7822 re_direlt
='/[^/][^/]*/\.\./'
7823 # Canonicalize the path of ld
7824 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7825 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7826 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7828 test -z "$LD" && LD
="$ac_prog"
7831 # If it fails, then pretend we aren't using GCC.
7835 # If it is relative, then search for the first ld in PATH.
7839 elif test "$with_gnu_ld" = yes; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7841 $as_echo_n "checking for GNU ld... " >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7844 $as_echo_n "checking for non-GNU ld... " >&6; }
7846 if ${acl_cv_path_LD+:} false
; then :
7847 $as_echo_n "(cached) " >&6
7849 if test -z "$LD"; then
7850 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7851 for ac_dir
in $PATH; do
7852 test -z "$ac_dir" && ac_dir
=.
7853 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7854 acl_cv_path_LD
="$ac_dir/$ac_prog"
7855 # Check to see if the program is GNU ld. I'd rather use --version,
7856 # but apparently some GNU ld's only accept -v.
7857 # Break only if it was the GNU/non-GNU ld that we prefer.
7858 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
7859 test "$with_gnu_ld" != no
&& break
7861 test "$with_gnu_ld" != yes && break
7867 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7871 LD
="$acl_cv_path_LD"
7872 if test -n "$LD"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7874 $as_echo "$LD" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7879 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7881 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7882 if ${acl_cv_prog_gnu_ld+:} false
; then :
7883 $as_echo_n "(cached) " >&6
7885 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7886 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
7887 acl_cv_prog_gnu_ld
=yes
7889 acl_cv_prog_gnu_ld
=no
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7893 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7894 with_gnu_ld
=$acl_cv_prog_gnu_ld
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7899 $as_echo_n "checking for shared library run path origin... " >&6; }
7900 if ${acl_cv_rpath+:} false
; then :
7901 $as_echo_n "(cached) " >&6
7904 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7905 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7912 $as_echo "$acl_cv_rpath" >&6; }
7914 libext
="$acl_cv_libext"
7915 shlibext
="$acl_cv_shlibext"
7916 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7917 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7918 hardcode_direct
="$acl_cv_hardcode_direct"
7919 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7920 # Check whether --enable-rpath was given.
7921 if test "${enable_rpath+set}" = set; then :
7922 enableval
=$enable_rpath; :
7929 # Set the 'development' global.
7930 .
$srcdir/..
/bfd
/development.sh
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7933 $as_echo_n "checking for ANSI C header files... " >&6; }
7934 if ${ac_cv_header_stdc+:} false
; then :
7935 $as_echo_n "(cached) " >&6
7937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7952 if ac_fn_c_try_compile
"$LINENO"; then :
7953 ac_cv_header_stdc
=yes
7955 ac_cv_header_stdc
=no
7957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 if test $ac_cv_header_stdc = yes; then
7960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7967 $EGREP "memchr" >/dev
/null
2>&1; then :
7970 ac_cv_header_stdc
=no
7976 if test $ac_cv_header_stdc = yes; then
7977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7984 $EGREP "free" >/dev
/null
2>&1; then :
7987 ac_cv_header_stdc
=no
7993 if test $ac_cv_header_stdc = yes; then
7994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7995 if test "$cross_compiling" = yes; then :
7998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8002 #if ((' ' & 0x0FF) == 0x020)
8003 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8004 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8006 # define ISLOWER(c) \
8007 (('a' <= (c) && (c) <= 'i') \
8008 || ('j' <= (c) && (c) <= 'r') \
8009 || ('s' <= (c) && (c) <= 'z'))
8010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8018 for (i = 0; i < 256; i++)
8019 if (XOR (islower (i), ISLOWER (i))
8020 || toupper (i) != TOUPPER (i))
8025 if ac_fn_c_try_run
"$LINENO"; then :
8028 ac_cv_header_stdc
=no
8030 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8031 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8037 $as_echo "$ac_cv_header_stdc" >&6; }
8038 if test $ac_cv_header_stdc = yes; then
8040 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8044 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8045 # for constant arguments. Useless!
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8047 $as_echo_n "checking for working alloca.h... " >&6; }
8048 if ${ac_cv_working_alloca_h+:} false
; then :
8049 $as_echo_n "(cached) " >&6
8051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8057 char *p = (char *) alloca (2 * sizeof (int));
8063 if ac_fn_c_try_link
"$LINENO"; then :
8064 ac_cv_working_alloca_h
=yes
8066 ac_cv_working_alloca_h
=no
8068 rm -f core conftest.err conftest.
$ac_objext \
8069 conftest
$ac_exeext conftest.
$ac_ext
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8072 $as_echo "$ac_cv_working_alloca_h" >&6; }
8073 if test $ac_cv_working_alloca_h = yes; then
8075 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8080 $as_echo_n "checking for alloca... " >&6; }
8081 if ${ac_cv_func_alloca_works+:} false
; then :
8082 $as_echo_n "(cached) " >&6
8084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8087 # define alloca __builtin_alloca
8090 # include <malloc.h>
8091 # define alloca _alloca
8093 # ifdef HAVE_ALLOCA_H
8094 # include <alloca.h>
8099 # ifndef alloca /* predefined by HP cc +Olibcalls */
8100 void *alloca (size_t);
8110 char *p = (char *) alloca (1);
8116 if ac_fn_c_try_link
"$LINENO"; then :
8117 ac_cv_func_alloca_works
=yes
8119 ac_cv_func_alloca_works
=no
8121 rm -f core conftest.err conftest.
$ac_objext \
8122 conftest
$ac_exeext conftest.
$ac_ext
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8125 $as_echo "$ac_cv_func_alloca_works" >&6; }
8127 if test $ac_cv_func_alloca_works = yes; then
8129 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8132 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8133 # that cause trouble. Some versions do not even contain alloca or
8134 # contain a buggy version. If you still want to use their alloca,
8135 # use ar to extract alloca.o from them instead of compiling alloca.c.
8137 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8139 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8143 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8144 if ${ac_cv_os_cray+:} false
; then :
8145 $as_echo_n "(cached) " >&6
8147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #if defined CRAY && ! defined CRAY2
8156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8157 $EGREP "webecray" >/dev
/null
2>&1; then :
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8166 $as_echo "$ac_cv_os_cray" >&6; }
8167 if test $ac_cv_os_cray = yes; then
8168 for ac_func
in _getb67 GETB67 getb67
; do
8169 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8170 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8171 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8173 cat >>confdefs.h
<<_ACEOF
8174 #define CRAY_STACKSEG_END $ac_func
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8184 $as_echo_n "checking stack direction for C alloca... " >&6; }
8185 if ${ac_cv_c_stack_direction+:} false
; then :
8186 $as_echo_n "(cached) " >&6
8188 if test "$cross_compiling" = yes; then :
8189 ac_cv_c_stack_direction
=0
8191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 $ac_includes_default
8195 find_stack_direction (int *addr, int depth)
8200 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8201 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8206 main (int argc, char **argv)
8208 return find_stack_direction (0, argc + !argv + 20) < 0;
8211 if ac_fn_c_try_run
"$LINENO"; then :
8212 ac_cv_c_stack_direction
=1
8214 ac_cv_c_stack_direction
=-1
8216 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8217 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8222 $as_echo "$ac_cv_c_stack_direction" >&6; }
8223 cat >>confdefs.h
<<_ACEOF
8224 #define STACK_DIRECTION $ac_cv_c_stack_direction
8235 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8237 WIN32APILIBS
="-lws2_32"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8243 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8244 if ${am_cv_langinfo_codeset+:} false
; then :
8245 $as_echo_n "(cached) " >&6
8247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 #include <langinfo.h>
8253 char* cs = nl_langinfo(CODESET);
8258 if ac_fn_c_try_link
"$LINENO"; then :
8259 am_cv_langinfo_codeset
=yes
8261 am_cv_langinfo_codeset
=no
8263 rm -f core conftest.err conftest.
$ac_objext \
8264 conftest
$ac_exeext conftest.
$ac_ext
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8268 $as_echo "$am_cv_langinfo_codeset" >&6; }
8269 if test $am_cv_langinfo_codeset = yes; then
8271 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8276 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
8278 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8279 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8280 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8281 cat >>confdefs.h
<<_ACEOF
8282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8291 for ac_func
in getpagesize
8293 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8294 if test "x$ac_cv_func_getpagesize" = xyes
; then :
8295 cat >>confdefs.h
<<_ACEOF
8296 #define HAVE_GETPAGESIZE 1
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8303 $as_echo_n "checking for working mmap... " >&6; }
8304 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
8305 $as_echo_n "(cached) " >&6
8307 if test "$cross_compiling" = yes; then :
8308 ac_cv_func_mmap_fixed_mapped
=no
8310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8312 $ac_includes_default
8313 /* malloc might have been renamed as rpl_malloc. */
8316 /* Thanks to Mike Haertel and Jim Avera for this test.
8317 Here is a matrix of mmap possibilities:
8318 mmap private not fixed
8319 mmap private fixed at somewhere currently unmapped
8320 mmap private fixed at somewhere already mapped
8321 mmap shared not fixed
8322 mmap shared fixed at somewhere currently unmapped
8323 mmap shared fixed at somewhere already mapped
8324 For private mappings, we should verify that changes cannot be read()
8325 back from the file, nor mmap's back from the file at a different
8326 address. (There have been systems where private was not correctly
8327 implemented like the infamous i386 svr4.0, and systems where the
8328 VM page cache was not coherent with the file system buffer cache
8329 like early versions of FreeBSD and possibly contemporary NetBSD.)
8330 For shared mappings, we should conversely verify that changes get
8331 propagated back to all the places they're supposed to be.
8333 Grep wants private fixed already mapped.
8334 The main things grep needs to know about mmap are:
8335 * does it exist and is it safe to write into the mmap'd area
8336 * how to use it (BSD variants) */
8339 #include <sys/mman.h>
8341 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8345 /* This mess was copied from the GNU getpagesize.h. */
8346 #ifndef HAVE_GETPAGESIZE
8347 # ifdef _SC_PAGESIZE
8348 # define getpagesize() sysconf(_SC_PAGESIZE)
8349 # else /* no _SC_PAGESIZE */
8350 # ifdef HAVE_SYS_PARAM_H
8351 # include <sys/param.h>
8352 # ifdef EXEC_PAGESIZE
8353 # define getpagesize() EXEC_PAGESIZE
8354 # else /* no EXEC_PAGESIZE */
8356 # define getpagesize() NBPG * CLSIZE
8359 # endif /* no CLSIZE */
8360 # else /* no NBPG */
8362 # define getpagesize() NBPC
8363 # else /* no NBPC */
8365 # define getpagesize() PAGESIZE
8366 # endif /* PAGESIZE */
8367 # endif /* no NBPC */
8368 # endif /* no NBPG */
8369 # endif /* no EXEC_PAGESIZE */
8370 # else /* no HAVE_SYS_PARAM_H */
8371 # define getpagesize() 8192 /* punt totally */
8372 # endif /* no HAVE_SYS_PARAM_H */
8373 # endif /* no _SC_PAGESIZE */
8375 #endif /* no HAVE_GETPAGESIZE */
8380 char *data, *data2, *data3;
8385 pagesize = getpagesize ();
8387 /* First, make a file with some known garbage in it. */
8388 data = (char *) malloc (pagesize);
8391 for (i = 0; i < pagesize; ++i)
8392 *(data + i) = rand ();
8394 fd = creat ("conftest.mmap", 0600);
8397 if (write (fd, data, pagesize) != pagesize)
8401 /* Next, check that the tail of a page is zero-filled. File must have
8402 non-zero length, otherwise we risk SIGBUS for entire page. */
8403 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8407 if (write (fd2, cdata2, 1) != 1)
8409 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8410 if (data2 == MAP_FAILED)
8412 for (i = 0; i < pagesize; ++i)
8416 if (munmap (data2, pagesize))
8419 /* Next, try to mmap the file at a fixed address which already has
8420 something else allocated at it. If we can, also make sure that
8421 we see the same garbage. */
8422 fd = open ("conftest.mmap", O_RDWR);
8425 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8426 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8428 for (i = 0; i < pagesize; ++i)
8429 if (*(data + i) != *(data2 + i))
8432 /* Finally, make sure that changes to the mapped area do not
8433 percolate back to the file as seen by read(). (This is a bug on
8434 some variants of i386 svr4.0.) */
8435 for (i = 0; i < pagesize; ++i)
8436 *(data2 + i) = *(data2 + i) + 1;
8437 data3 = (char *) malloc (pagesize);
8440 if (read (fd, data3, pagesize) != pagesize)
8442 for (i = 0; i < pagesize; ++i)
8443 if (*(data + i) != *(data3 + i))
8449 if ac_fn_c_try_run
"$LINENO"; then :
8450 ac_cv_func_mmap_fixed_mapped
=yes
8452 ac_cv_func_mmap_fixed_mapped
=no
8454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8460 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8461 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8463 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8466 rm -f conftest.mmap conftest.txt
8468 for ac_header
in vfork.h
8470 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8471 if test "x$ac_cv_header_vfork_h" = xyes
; then :
8472 cat >>confdefs.h
<<_ACEOF
8473 #define HAVE_VFORK_H 1
8480 for ac_func
in fork vfork
8482 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8483 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8484 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8485 cat >>confdefs.h
<<_ACEOF
8486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8492 if test "x$ac_cv_func_fork" = xyes
; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8494 $as_echo_n "checking for working fork... " >&6; }
8495 if ${ac_cv_func_fork_works+:} false
; then :
8496 $as_echo_n "(cached) " >&6
8498 if test "$cross_compiling" = yes; then :
8499 ac_cv_func_fork_works
=cross
8501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8503 $ac_includes_default
8508 /* By Ruediger Kuhlmann. */
8515 if ac_fn_c_try_run
"$LINENO"; then :
8516 ac_cv_func_fork_works
=yes
8518 ac_cv_func_fork_works
=no
8520 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8521 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8526 $as_echo "$ac_cv_func_fork_works" >&6; }
8529 ac_cv_func_fork_works
=$ac_cv_func_fork
8531 if test "x$ac_cv_func_fork_works" = xcross
; then
8533 *-*-amigaos* |
*-*-msdosdjgpp*)
8534 # Override, as these systems have only a dummy fork() stub
8535 ac_cv_func_fork_works
=no
8538 ac_cv_func_fork_works
=yes
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8542 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8544 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8545 if test "x$ac_cv_func_vfork" = xyes
; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8547 $as_echo_n "checking for working vfork... " >&6; }
8548 if ${ac_cv_func_vfork_works+:} false
; then :
8549 $as_echo_n "(cached) " >&6
8551 if test "$cross_compiling" = yes; then :
8552 ac_cv_func_vfork_works
=cross
8554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8556 /* Thanks to Paul Eggert for this test. */
8557 $ac_includes_default
8558 #include <sys/wait.h>
8562 /* On some sparc systems, changes by the child to local and incoming
8563 argument registers are propagated back to the parent. The compiler
8564 is told about this with #include <vfork.h>, but some compilers
8565 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8566 static variable whose address is put into a register that is
8567 clobbered by the vfork. */
8570 sparc_address_test (int arg)
8572 sparc_address_test (arg) int arg;
8593 pid_t parent = getpid ();
8596 sparc_address_test (0);
8601 /* Here is another test for sparc vfork register problems. This
8602 test uses lots of local variables, at least as many local
8603 variables as main has allocated so far including compiler
8604 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8605 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8606 reuse the register of parent for one of the local variables,
8607 since it will think that parent can't possibly be used any more
8608 in this routine. Assigning to the local variable will thus
8609 munge parent in the parent process. */
8611 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8612 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8613 /* Convince the compiler that p..p7 are live; otherwise, it might
8614 use the same hardware register for all 8 local variables. */
8615 if (p != p1 || p != p2 || p != p3 || p != p4
8616 || p != p5 || p != p6 || p != p7)
8619 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8620 from child file descriptors. If the child closes a descriptor
8621 before it execs or exits, this munges the parent's descriptor
8622 as well. Test for this by closing stdout in the child. */
8623 _exit(close(fileno(stdout)) != 0);
8628 while (wait(&status) != child)
8631 /* Was there some problem with vforking? */
8634 /* Did the child fail? (This shouldn't happen.) */
8637 /* Did the vfork/compiler bug occur? */
8638 || parent != getpid()
8640 /* Did the file descriptor bug occur? */
8641 || fstat(fileno(stdout), &st) != 0
8646 if ac_fn_c_try_run
"$LINENO"; then :
8647 ac_cv_func_vfork_works
=yes
8649 ac_cv_func_vfork_works
=no
8651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8657 $as_echo "$ac_cv_func_vfork_works" >&6; }
8660 if test "x$ac_cv_func_fork_works" = xcross
; then
8661 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8663 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8666 if test "x$ac_cv_func_vfork_works" = xyes
; then
8668 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8672 $as_echo "#define vfork fork" >>confdefs.h
8675 if test "x$ac_cv_func_fork_works" = xyes
; then
8677 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8681 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8683 $as_echo_n "checking for library containing socketpair... " >&6; }
8684 if ${ac_cv_search_socketpair+:} false
; then :
8685 $as_echo_n "(cached) " >&6
8687 ac_func_search_save_LIBS
=$LIBS
8688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8691 /* Override any GCC internal prototype to avoid an error.
8692 Use char because int might match the return type of a GCC
8693 builtin and then its argument prototype would still apply. */
8701 return socketpair ();
8706 for ac_lib
in '' socket
; do
8707 if test -z "$ac_lib"; then
8708 ac_res
="none required"
8711 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8713 if ac_fn_c_try_link
"$LINENO"; then :
8714 ac_cv_search_socketpair
=$ac_res
8716 rm -f core conftest.err conftest.
$ac_objext \
8718 if ${ac_cv_search_socketpair+:} false
; then :
8722 if ${ac_cv_search_socketpair+:} false
; then :
8725 ac_cv_search_socketpair
=no
8728 LIBS
=$ac_func_search_save_LIBS
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8731 $as_echo "$ac_cv_search_socketpair" >&6; }
8732 ac_res
=$ac_cv_search_socketpair
8733 if test "$ac_res" != no
; then :
8734 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8738 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
8739 ptrace64 sbrk setns sigaltstack sigprocmask \
8740 setpgid setpgrp getrusage getauxval sigtimedwait
8742 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8743 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8744 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8745 cat >>confdefs.h
<<_ACEOF
8746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8753 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
8754 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
8755 # only in linux/personality.h.
8756 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8758 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8764 cat >>confdefs.h
<<_ACEOF
8765 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8769 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8770 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
8776 cat >>confdefs.h
<<_ACEOF
8777 #define HAVE_DECL_STRSTR $ac_have_decl
8781 # ----------------------- #
8782 # Checks for structures. #
8783 # ----------------------- #
8785 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8786 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8788 cat >>confdefs.h
<<_ACEOF
8789 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8794 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8795 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
8797 cat >>confdefs.h
<<_ACEOF
8798 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8805 # On FreeBSD we need libutil for the kinfo_get* functions. On
8806 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8807 # Figure out which one to use.
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8809 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8810 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8811 $as_echo_n "(cached) " >&6
8813 ac_func_search_save_LIBS
=$LIBS
8814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8817 /* Override any GCC internal prototype to avoid an error.
8818 Use char because int might match the return type of a GCC
8819 builtin and then its argument prototype would still apply. */
8823 char kinfo_getfile ();
8827 return kinfo_getfile ();
8832 for ac_lib
in '' util util-freebsd
; do
8833 if test -z "$ac_lib"; then
8834 ac_res
="none required"
8837 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8839 if ac_fn_c_try_link
"$LINENO"; then :
8840 ac_cv_search_kinfo_getfile
=$ac_res
8842 rm -f core conftest.err conftest.
$ac_objext \
8844 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8848 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8851 ac_cv_search_kinfo_getfile
=no
8854 LIBS
=$ac_func_search_save_LIBS
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8857 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8858 ac_res
=$ac_cv_search_kinfo_getfile
8859 if test "$ac_res" != no
; then :
8860 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8865 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
8866 for ac_func
in kinfo_getfile
8868 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
8869 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
8870 cat >>confdefs.h
<<_ACEOF
8871 #define HAVE_KINFO_GETFILE 1
8878 # ----------------------- #
8879 # Check for threading. #
8880 # ----------------------- #
8882 # Check whether --enable-threading was given.
8883 if test "${enable_threading+set}" = set; then :
8884 enableval
=$enable_threading; case "$enableval" in
8885 yes) want_threading
=yes ;;
8886 no
) want_threading
=no
;;
8887 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
8894 # Check for std::thread. This does not work on some platforms, like
8897 ac_cpp
='$CXXCPP $CPPFLAGS'
8898 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8907 ac_cpp
='$CPP $CPPFLAGS'
8908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8914 # We used to check for pthread.h first, but this fails if pthread.h
8915 # requires special compiler flags (e.g. on Tru64 or Sequent).
8916 # It gets checked for in the link test anyway.
8918 # First of all, check if the user has set any of the PTHREAD_LIBS,
8919 # etcetera environment variables, and if threads linking works using
8921 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8922 ax_pthread_save_CC
="$CC"
8923 ax_pthread_save_CFLAGS
="$CFLAGS"
8924 ax_pthread_save_LIBS
="$LIBS"
8925 if test "x$PTHREAD_CC" != "x"; then :
8928 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8929 LIBS
="$PTHREAD_LIBS $LIBS"
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8931 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8935 /* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
8941 char pthread_join ();
8945 return pthread_join ();
8950 if ac_fn_c_try_link
"$LINENO"; then :
8953 rm -f core conftest.err conftest.
$ac_objext \
8954 conftest
$ac_exeext conftest.
$ac_ext
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8956 $as_echo "$ax_pthread_ok" >&6; }
8957 if test "x$ax_pthread_ok" = "xno"; then
8961 CC
="$ax_pthread_save_CC"
8962 CFLAGS
="$ax_pthread_save_CFLAGS"
8963 LIBS
="$ax_pthread_save_LIBS"
8966 # We must check for the threads library under a number of different
8967 # names; the ordering is very important because some systems
8968 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8969 # libraries is broken (non-POSIX).
8971 # Create a list of thread flags to try. Items starting with a "-" are
8972 # C compiler flags, and other items are library names, except for "none"
8973 # which indicates that we try without any flags at all, and "pthread-config"
8974 # which is a program returning the flags for the Pth emulation library.
8976 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8978 # The ordering *is* (sometimes) important. Some notes on the
8979 # individual items follow:
8981 # pthreads: AIX (must check this before -lpthread)
8982 # none: in case threads are in libc; should be tried before -Kthread and
8983 # other compiler flags to prevent continual compiler warnings
8984 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8985 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8986 # (Note: HP C rejects this with "bad form for `-t' option")
8987 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8988 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8989 # doesn't hurt to check since this sometimes defines pthreads and
8990 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8991 # is present but should not be used directly; and before -mthreads,
8992 # because the compiler interprets this as "-mt" + "-hreads")
8993 # -mthreads: Mingw32/gcc, Lynx/gcc
8994 # pthread: Linux, etcetera
8995 # --thread-safe: KAI C++
8996 # pthread-config: use pthread-config program (for GNU Pth library)
9002 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9003 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9005 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
9010 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9011 # multi-threading and also sets -lpthread."
9013 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
9018 # IBM z/OS requires a feature-test macro to be defined in order to
9019 # enable POSIX threads at all, so give the user a hint if this is
9020 # not set. (We don't define these ourselves, as they can affect
9021 # other portions of the system API in unpredictable ways.)
9023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9026 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9027 AX_PTHREAD_ZOS_MISSING
9031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9032 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9034 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9042 # On Solaris (at least, for some versions), libc contains stubbed
9043 # (non-functional) versions of the pthreads routines, so link-based
9044 # tests will erroneously succeed. (N.B.: The stubs are missing
9045 # pthread_cleanup_push, or rather a function called by this macro,
9046 # so we could check for that, but who knows whether they'll stub
9047 # that too in a future libc.) So we'll check first for the
9048 # standard Solaris way of linking pthreads (-mt -lpthread).
9050 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
9054 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9056 if test "x$GCC" = "xyes"; then :
9057 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
9060 # The presence of a feature test macro requesting re-entrant function
9061 # definitions is, on some systems, a strong hint that pthreads support is
9065 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
9066 ax_pthread_check_macro
="_REENTRANT"
9070 ax_pthread_check_macro
="_THREAD_SAFE"
9074 ax_pthread_check_macro
="--"
9077 if test "x$ax_pthread_check_macro" = "x--"; then :
9078 ax_pthread_check_cond
=0
9080 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
9083 # Are we compiling with Clang?
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9086 $as_echo_n "checking whether $CC is Clang... " >&6; }
9087 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
9088 $as_echo_n "(cached) " >&6
9090 ax_cv_PTHREAD_CLANG
=no
9091 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9092 if test "x$GCC" = "xyes"; then
9093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9096 # if defined(__clang__) && defined(__llvm__)
9097 AX_PTHREAD_CC_IS_CLANG
9101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9102 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
9103 ax_cv_PTHREAD_CLANG
=yes
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9111 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9112 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
9114 ax_pthread_clang_warning
=no
9116 # Clang needs special handling, because older versions handle the -pthread
9117 # option in a rather... idiosyncratic way
9119 if test "x$ax_pthread_clang" = "xyes"; then
9121 # Clang takes -pthread; it has never supported any other flag
9123 # (Note 1: This will need to be revisited if a system that Clang
9124 # supports has POSIX threads in a separate library. This tends not
9125 # to be the way of modern systems, but it's conceivable.)
9127 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9128 # to get POSIX threads support; the API is always present and
9129 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9130 # -pthread does define _REENTRANT, and while the Darwin headers
9131 # ignore this macro, third-party headers might not.)
9133 PTHREAD_CFLAGS
="-pthread"
9138 # However, older versions of Clang make a point of warning the user
9139 # that, in an invocation where only linking and no compilation is
9140 # taking place, the -pthread option has no effect ("argument unused
9141 # during compilation"). They expect -pthread to be passed in only
9142 # when source code is being compiled.
9144 # Problem is, this is at odds with the way Automake and most other
9145 # C build frameworks function, which is that the same flags used in
9146 # compilation (CFLAGS) are also used in linking. Many systems
9147 # supported by AX_PTHREAD require exactly this for POSIX threads
9148 # support, and in fact it is often not straightforward to specify a
9149 # flag that is used only in the compilation phase and not in
9150 # linking. Such a scenario is extremely rare in practice.
9152 # Even though use of the -pthread flag in linking would only print
9153 # a warning, this can be a nuisance for well-run software projects
9154 # that build with -Werror. So if the active version of Clang has
9155 # this misfeature, we search for an option to squash it.
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9158 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9159 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
9160 $as_echo_n "(cached) " >&6
9162 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
9163 # Create an alternate version of $ac_link that compiles and
9164 # links in two steps (.c -> .o, .o -> exe) instead of one
9165 # (.c -> exe), because the warning occurs only in the second
9167 ax_pthread_save_ac_link
="$ac_link"
9168 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9169 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9170 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9171 ax_pthread_save_CFLAGS
="$CFLAGS"
9172 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
9173 if test "x$ax_pthread_try" = "xunknown"; then :
9176 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9177 ac_link
="$ax_pthread_save_ac_link"
9178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 int main(void){return 0;}
9182 if ac_fn_c_try_link
"$LINENO"; then :
9183 ac_link
="$ax_pthread_2step_ac_link"
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 int main(void){return 0;}
9188 if ac_fn_c_try_link
"$LINENO"; then :
9191 rm -f core conftest.err conftest.
$ac_objext \
9192 conftest
$ac_exeext conftest.
$ac_ext
9195 rm -f core conftest.err conftest.
$ac_objext \
9196 conftest
$ac_exeext conftest.
$ac_ext
9198 ac_link
="$ax_pthread_save_ac_link"
9199 CFLAGS
="$ax_pthread_save_CFLAGS"
9200 if test "x$ax_pthread_try" = "x"; then :
9203 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9207 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9209 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9211 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9214 fi # $ax_pthread_clang = yes
9216 if test "x$ax_pthread_ok" = "xno"; then
9217 for ax_pthread_try_flag
in $ax_pthread_flags; do
9219 case $ax_pthread_try_flag in
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9222 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9227 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9228 PTHREAD_CFLAGS
="-mt"
9229 PTHREAD_LIBS
="-lpthread"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9234 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9235 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
9239 # Extract the first word of "pthread-config", so it can be a program name with args.
9240 set dummy pthread-config
; ac_word
=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
9244 $as_echo_n "(cached) " >&6
9246 if test -n "$ax_pthread_config"; then
9247 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
9249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9253 test -z "$as_dir" && as_dir
=.
9254 for ac_exec_ext
in '' $ac_executable_extensions; do
9255 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9256 ac_cv_prog_ax_pthread_config
="yes"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
9267 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
9268 if test -n "$ax_pthread_config"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9270 $as_echo "$ax_pthread_config" >&6; }
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9277 if test "x$ax_pthread_config" = "xno"; then :
9280 PTHREAD_CFLAGS
="`pthread-config --cflags`"
9281 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9286 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9287 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
9291 ax_pthread_save_CFLAGS
="$CFLAGS"
9292 ax_pthread_save_LIBS
="$LIBS"
9293 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9294 LIBS
="$PTHREAD_LIBS $LIBS"
9296 # Check for various functions. We must include pthread.h,
9297 # since some functions may be macros. (On the Sequent, we
9298 # need a special flag -Kthread to make this header compile.)
9299 # We check for pthread_join because it is in -lpthread on IRIX
9300 # while pthread_create is in libc. We check for pthread_attr_init
9301 # due to DEC craziness with -lpthreads. We check for
9302 # pthread_cleanup_push because it is one of the few pthread
9303 # functions on Solaris that doesn't have a non-functional libc stub.
9304 # We try pthread_create on general principles.
9306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 #include <pthread.h>
9309 # if $ax_pthread_check_cond
9310 # error "$ax_pthread_check_macro must be defined"
9312 static void routine(void *a) { a = 0; }
9313 static void *start_routine(void *a) { return a; }
9317 pthread_t th; pthread_attr_t attr;
9318 pthread_create(&th, 0, start_routine, 0);
9319 pthread_join(th, 0);
9320 pthread_attr_init(&attr);
9321 pthread_cleanup_push(routine, 0);
9322 pthread_cleanup_pop(0) /* ; */
9327 if ac_fn_c_try_link
"$LINENO"; then :
9330 rm -f core conftest.err conftest.
$ac_objext \
9331 conftest
$ac_exeext conftest.
$ac_ext
9333 CFLAGS
="$ax_pthread_save_CFLAGS"
9334 LIBS
="$ax_pthread_save_LIBS"
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9337 $as_echo "$ax_pthread_ok" >&6; }
9338 if test "x$ax_pthread_ok" = "xyes"; then :
9347 # Various other checks:
9348 if test "x$ax_pthread_ok" = "xyes"; then
9349 ax_pthread_save_CFLAGS
="$CFLAGS"
9350 ax_pthread_save_LIBS
="$LIBS"
9351 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9352 LIBS
="$PTHREAD_LIBS $LIBS"
9354 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9356 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9357 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
9358 $as_echo_n "(cached) " >&6
9360 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
9361 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
9362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 #include <pthread.h>
9368 int attr = $ax_pthread_attr; return attr /* ; */
9373 if ac_fn_c_try_link
"$LINENO"; then :
9374 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
9376 rm -f core conftest.err conftest.
$ac_objext \
9377 conftest
$ac_exeext conftest.
$ac_ext
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9382 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9383 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9384 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9385 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9387 cat >>confdefs.h
<<_ACEOF
9388 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9391 ax_pthread_joinable_attr_defined
=yes
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9396 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9397 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
9398 $as_echo_n "(cached) " >&6
9400 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
9403 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9409 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9410 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9411 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9412 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9413 ax_pthread_special_flags_added
=yes
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9417 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9418 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
9419 $as_echo_n "(cached) " >&6
9421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 #include <pthread.h>
9427 int i = PTHREAD_PRIO_INHERIT;
9432 if ac_fn_c_try_link
"$LINENO"; then :
9433 ax_cv_PTHREAD_PRIO_INHERIT
=yes
9435 ax_cv_PTHREAD_PRIO_INHERIT
=no
9437 rm -f core conftest.err conftest.
$ac_objext \
9438 conftest
$ac_exeext conftest.
$ac_ext
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9442 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9443 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9444 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9446 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9448 ax_pthread_prio_inherit_defined
=yes
9452 CFLAGS
="$ax_pthread_save_CFLAGS"
9453 LIBS
="$ax_pthread_save_LIBS"
9455 # More AIX lossage: compile with *_r variant
9456 if test "x$GCC" != "xyes"; then
9460 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
9461 #handle absolute path differently from PATH based program lookup
9464 if as_fn_executable_p
${CC}_r
; then :
9465 PTHREAD_CC
="${CC}_r"
9468 for ac_prog
in ${CC}_r
9470 # Extract the first word of "$ac_prog", so it can be a program name with args.
9471 set dummy
$ac_prog; ac_word
=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
9475 $as_echo_n "(cached) " >&6
9477 if test -n "$PTHREAD_CC"; then
9478 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
9480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9484 test -z "$as_dir" && as_dir
=.
9485 for ac_exec_ext
in '' $ac_executable_extensions; do
9486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9487 ac_cv_prog_PTHREAD_CC
="$ac_prog"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9497 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
9498 if test -n "$PTHREAD_CC"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9500 $as_echo "$PTHREAD_CC" >&6; }
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9507 test -n "$PTHREAD_CC" && break
9509 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9520 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9526 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9527 if test "x$ax_pthread_ok" = "xyes"; then
9535 ac_cpp
='$CXXCPP $CPPFLAGS'
9536 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9537 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9538 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9542 LIBS
="$PTHREAD_LIBS $LIBS"
9543 save_CXXFLAGS
="$CXXFLAGS"
9544 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9546 $as_echo_n "checking for std::thread... " >&6; }
9547 if ${gdb_cv_cxx_std_thread+:} false
; then :
9548 $as_echo_n "(cached) " >&6
9550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552 #if defined (__MINGW32__) || defined (__CYGWIN__)
9553 # ifdef _WIN32_WINNT
9554 # if _WIN32_WINNT < 0x0501
9555 # undef _WIN32_WINNT
9556 # define _WIN32_WINNT 0x0501
9559 # define _WIN32_WINNT 0x0501
9561 #endif /* __MINGW32__ || __CYGWIN__ */
9567 std::thread t(callback);
9572 if ac_fn_cxx_try_compile
"$LINENO"; then :
9573 gdb_cv_cxx_std_thread
=yes
9575 gdb_cv_cxx_std_thread
=no
9577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9580 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9582 if test "$threads" = "yes"; then
9583 # This check must be here, while LIBS includes any necessary
9584 # threading library.
9585 for ac_func
in pthread_sigmask pthread_setname_np
9587 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9588 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9589 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9590 cat >>confdefs.h
<<_ACEOF
9591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9599 CXXFLAGS
="$save_CXXFLAGS"
9601 if test "$want_threading" = "yes"; then
9602 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9604 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9609 ac_cpp
='$CPP $CPPFLAGS'
9610 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9611 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9612 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9616 $as_echo_n "checking for sigsetjmp... " >&6; }
9617 if ${gdb_cv_func_sigsetjmp+:} false
; then :
9618 $as_echo_n "(cached) " >&6
9620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9627 while (! sigsetjmp (env, 1))
9628 siglongjmp (env, 1);
9634 if ac_fn_c_try_compile
"$LINENO"; then :
9635 gdb_cv_func_sigsetjmp
=yes
9637 gdb_cv_func_sigsetjmp
=no
9640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9644 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9645 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9647 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9652 # Check whether --with-intel_pt was given.
9653 if test "${with_intel_pt+set}" = set; then :
9654 withval
=$with_intel_pt;
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9660 $as_echo_n "checking whether to use intel pt... " >&6; }
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9662 $as_echo "$with_intel_pt" >&6; }
9664 if test "${with_intel_pt}" = no
; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9666 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9672 #include <linux/perf_event.h>
9673 #ifndef PERF_ATTR_SIZE_VER5
9678 if ac_fn_c_try_cpp
"$LINENO"; then :
9683 rm -f conftest.err conftest.i conftest.
$ac_ext
9684 if test "$perf_event" != yes; then
9685 if test "$with_intel_pt" = yes; then
9686 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9689 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9703 acl_save_prefix
="$prefix"
9704 prefix
="$acl_final_prefix"
9705 acl_save_exec_prefix
="$exec_prefix"
9706 exec_prefix
="$acl_final_exec_prefix"
9708 eval additional_includedir
=\"$includedir\"
9709 eval additional_libdir
=\"$libdir\"
9711 exec_prefix
="$acl_save_exec_prefix"
9712 prefix
="$acl_save_prefix"
9715 # Check whether --with-libipt-prefix was given.
9716 if test "${with_libipt_prefix+set}" = set; then :
9717 withval
=$with_libipt_prefix;
9718 if test "X$withval" = "Xno"; then
9721 if test "X$withval" = "X"; then
9723 acl_save_prefix
="$prefix"
9724 prefix
="$acl_final_prefix"
9725 acl_save_exec_prefix
="$exec_prefix"
9726 exec_prefix
="$acl_final_exec_prefix"
9728 eval additional_includedir
=\"$includedir\"
9729 eval additional_libdir
=\"$libdir\"
9731 exec_prefix
="$acl_save_exec_prefix"
9732 prefix
="$acl_save_prefix"
9735 additional_includedir
="$withval/include"
9736 additional_libdir
="$withval/lib"
9743 # Check whether --with-libipt-type was given.
9744 if test "${with_libipt_type+set}" = set; then :
9745 withval
=$with_libipt_type; with_libipt_type
=$withval
9747 with_libipt_type
=auto
9750 lib_type
=`eval echo \$with_libipt_type`
9757 names_already_handled
=
9758 names_next_round
='ipt '
9759 while test -n "$names_next_round"; do
9760 names_this_round
="$names_next_round"
9762 for name
in $names_this_round; do
9764 for n
in $names_already_handled; do
9765 if test "$n" = "$name"; then
9770 if test -z "$already_handled"; then
9771 names_already_handled
="$names_already_handled $name"
9772 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9773 eval value
=\"\
$HAVE_LIB$uppername\"
9774 if test -n "$value"; then
9775 if test "$value" = yes; then
9776 eval value
=\"\
$LIB$uppername\"
9777 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
9778 eval value
=\"\
$LTLIB$uppername\"
9779 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
9788 if test $use_additional = yes; then
9789 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9790 found_dir
="$additional_libdir"
9791 found_so
="$additional_libdir/lib$name.$shlibext"
9792 if test -f "$additional_libdir/lib$name.la"; then
9793 found_la
="$additional_libdir/lib$name.la"
9795 elif test x
$lib_type != xshared
; then
9796 if test -f "$additional_libdir/lib$name.$libext"; then
9797 found_dir
="$additional_libdir"
9798 found_a
="$additional_libdir/lib$name.$libext"
9799 if test -f "$additional_libdir/lib$name.la"; then
9800 found_la
="$additional_libdir/lib$name.la"
9805 if test "X$found_dir" = "X"; then
9806 for x
in $LDFLAGS $LTLIBIPT; do
9808 acl_save_prefix
="$prefix"
9809 prefix
="$acl_final_prefix"
9810 acl_save_exec_prefix
="$exec_prefix"
9811 exec_prefix
="$acl_final_exec_prefix"
9813 exec_prefix
="$acl_save_exec_prefix"
9814 prefix
="$acl_save_prefix"
9818 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9819 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9821 found_so
="$dir/lib$name.$shlibext"
9822 if test -f "$dir/lib$name.la"; then
9823 found_la
="$dir/lib$name.la"
9825 elif test x
$lib_type != xshared
; then
9826 if test -f "$dir/lib$name.$libext"; then
9828 found_a
="$dir/lib$name.$libext"
9829 if test -f "$dir/lib$name.la"; then
9830 found_la
="$dir/lib$name.la"
9836 if test "X$found_dir" != "X"; then
9841 if test "X$found_dir" != "X"; then
9842 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9843 if test "X$found_so" != "X"; then
9844 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9845 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9848 for x
in $ltrpathdirs; do
9849 if test "X$x" = "X$found_dir"; then
9854 if test -z "$haveit"; then
9855 ltrpathdirs
="$ltrpathdirs $found_dir"
9857 if test "$hardcode_direct" = yes; then
9858 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9860 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9861 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9863 for x
in $rpathdirs; do
9864 if test "X$x" = "X$found_dir"; then
9869 if test -z "$haveit"; then
9870 rpathdirs
="$rpathdirs $found_dir"
9874 for x
in $LDFLAGS $LIBIPT; do
9876 acl_save_prefix
="$prefix"
9877 prefix
="$acl_final_prefix"
9878 acl_save_exec_prefix
="$exec_prefix"
9879 exec_prefix
="$acl_final_exec_prefix"
9881 exec_prefix
="$acl_save_exec_prefix"
9882 prefix
="$acl_save_prefix"
9884 if test "X$x" = "X-L$found_dir"; then
9889 if test -z "$haveit"; then
9890 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9892 if test "$hardcode_minus_L" != no
; then
9893 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9895 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
9901 if test "X$found_a" != "X"; then
9902 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
9904 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9907 additional_includedir
=
9908 case "$found_dir" in
9910 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9911 additional_includedir
="$basedir/include"
9914 if test "X$additional_includedir" != "X"; then
9915 if test "X$additional_includedir" != "X/usr/include"; then
9917 if test "X$additional_includedir" = "X/usr/local/include"; then
9918 if test -n "$GCC"; then
9920 linux
*) haveit
=yes;;
9924 if test -z "$haveit"; then
9925 for x
in $CPPFLAGS $INCIPT; do
9927 acl_save_prefix
="$prefix"
9928 prefix
="$acl_final_prefix"
9929 acl_save_exec_prefix
="$exec_prefix"
9930 exec_prefix
="$acl_final_exec_prefix"
9932 exec_prefix
="$acl_save_exec_prefix"
9933 prefix
="$acl_save_prefix"
9935 if test "X$x" = "X-I$additional_includedir"; then
9940 if test -z "$haveit"; then
9941 if test -d "$additional_includedir"; then
9942 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
9948 if test -n "$found_la"; then
9949 save_libdir
="$libdir"
9951 */* |
*\\*) .
"$found_la" ;;
9952 *) .
"./$found_la" ;;
9954 libdir
="$save_libdir"
9955 for dep
in $dependency_libs; do
9958 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9959 if test "X$additional_libdir" != "X/usr/lib"; then
9961 if test "X$additional_libdir" = "X/usr/local/lib"; then
9962 if test -n "$GCC"; then
9964 linux
*) haveit
=yes;;
9968 if test -z "$haveit"; then
9970 for x
in $LDFLAGS $LIBIPT; do
9972 acl_save_prefix
="$prefix"
9973 prefix
="$acl_final_prefix"
9974 acl_save_exec_prefix
="$exec_prefix"
9975 exec_prefix
="$acl_final_exec_prefix"
9977 exec_prefix
="$acl_save_exec_prefix"
9978 prefix
="$acl_save_prefix"
9980 if test "X$x" = "X-L$additional_libdir"; then
9985 if test -z "$haveit"; then
9986 if test -d "$additional_libdir"; then
9987 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
9991 for x
in $LDFLAGS $LTLIBIPT; do
9993 acl_save_prefix
="$prefix"
9994 prefix
="$acl_final_prefix"
9995 acl_save_exec_prefix
="$exec_prefix"
9996 exec_prefix
="$acl_final_exec_prefix"
9998 exec_prefix
="$acl_save_exec_prefix"
9999 prefix
="$acl_save_prefix"
10001 if test "X$x" = "X-L$additional_libdir"; then
10006 if test -z "$haveit"; then
10007 if test -d "$additional_libdir"; then
10008 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10015 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10016 if test "$enable_rpath" != no
; then
10018 for x
in $rpathdirs; do
10019 if test "X$x" = "X$dir"; then
10024 if test -z "$haveit"; then
10025 rpathdirs
="$rpathdirs $dir"
10028 for x
in $ltrpathdirs; do
10029 if test "X$x" = "X$dir"; then
10034 if test -z "$haveit"; then
10035 ltrpathdirs
="$ltrpathdirs $dir"
10040 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10043 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10046 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10047 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10053 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10054 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10055 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10057 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
10058 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
10065 if test "X$rpathdirs" != "X"; then
10066 if test -n "$hardcode_libdir_separator"; then
10068 for found_dir
in $rpathdirs; do
10069 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10071 acl_save_libdir
="$libdir"
10073 eval flag
=\"$hardcode_libdir_flag_spec\"
10074 libdir
="$acl_save_libdir"
10075 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10077 for found_dir
in $rpathdirs; do
10078 acl_save_libdir
="$libdir"
10079 libdir
="$found_dir"
10080 eval flag
=\"$hardcode_libdir_flag_spec\"
10081 libdir
="$acl_save_libdir"
10082 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10086 if test "X$ltrpathdirs" != "X"; then
10087 for found_dir
in $ltrpathdirs; do
10088 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10093 ac_save_CPPFLAGS
="$CPPFLAGS"
10095 for element
in $INCIPT; do
10097 for x
in $CPPFLAGS; do
10099 acl_save_prefix
="$prefix"
10100 prefix
="$acl_final_prefix"
10101 acl_save_exec_prefix
="$exec_prefix"
10102 exec_prefix
="$acl_final_exec_prefix"
10104 exec_prefix
="$acl_save_exec_prefix"
10105 prefix
="$acl_save_prefix"
10107 if test "X$x" = "X$element"; then
10112 if test -z "$haveit"; then
10113 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10119 $as_echo_n "checking for libipt... " >&6; }
10120 if ${ac_cv_libipt+:} false
; then :
10121 $as_echo_n "(cached) " >&6
10124 ac_save_LIBS
="$LIBS"
10125 LIBS
="$LIBS $LIBIPT"
10126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 #include "intel-pt.h"
10132 pt_insn_alloc_decoder (0);
10137 if ac_fn_c_try_link
"$LINENO"; then :
10142 rm -f core conftest.err conftest.
$ac_objext \
10143 conftest
$ac_exeext conftest.
$ac_ext
10144 LIBS
="$ac_save_LIBS"
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10148 $as_echo "$ac_cv_libipt" >&6; }
10149 if test "$ac_cv_libipt" = yes; then
10152 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10155 $as_echo_n "checking how to link with libipt... " >&6; }
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10157 $as_echo "$LIBIPT" >&6; }
10160 CPPFLAGS
="$ac_save_CPPFLAGS"
10170 if test "$HAVE_LIBIPT" != yes; then
10171 if test "$with_intel_pt" = yes; then
10172 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10175 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10179 LIBS
="$LIBS $LIBIPT"
10180 for ac_func
in pt_insn_event
10182 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10183 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
10184 cat >>confdefs.h
<<_ACEOF
10185 #define HAVE_PT_INSN_EVENT 1
10191 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10193 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
10195 cat >>confdefs.h
<<_ACEOF
10196 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10201 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10203 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
10205 cat >>confdefs.h
<<_ACEOF
10206 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10216 # Check if the compiler and runtime support printing long longs.
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
10219 $as_echo_n "checking for long long support in printf... " >&6; }
10220 if ${gdb_cv_printf_has_long_long+:} false
; then :
10221 $as_echo_n "(cached) " >&6
10223 if test "$cross_compiling" = yes; then :
10224 gdb_cv_printf_has_long_long
=no
10226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 $ac_includes_default
10234 l = (l << 16) + 0x0123;
10235 l = (l << 16) + 0x4567;
10236 l = (l << 16) + 0x89ab;
10237 l = (l << 16) + 0xcdef;
10238 sprintf (buf, "0x%016llx", l);
10239 return (strcmp ("0x0123456789abcdef", buf));
10244 if ac_fn_c_try_run
"$LINENO"; then :
10245 gdb_cv_printf_has_long_long
=yes
10247 gdb_cv_printf_has_long_long
=no
10249 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10250 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
10255 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
10256 if test "$gdb_cv_printf_has_long_long" = yes; then
10258 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
10263 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
10265 for ac_header
in sys
/procfs.h
10267 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
10268 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
10269 cat >>confdefs.h
<<_ACEOF
10270 #define HAVE_SYS_PROCFS_H 1
10277 if test "$ac_cv_header_sys_procfs_h" = yes; then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10280 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10281 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
10282 $as_echo_n "(cached) " >&6
10284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10288 #include <sys/procfs.h>
10297 if ac_fn_c_try_compile
"$LINENO"; then :
10298 bfd_cv_have_sys_procfs_type_gregset_t
=yes
10300 bfd_cv_have_sys_procfs_type_gregset_t
=no
10303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10306 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10308 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10312 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10316 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10317 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
10318 $as_echo_n "(cached) " >&6
10320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10324 #include <sys/procfs.h>
10333 if ac_fn_c_try_compile
"$LINENO"; then :
10334 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
10336 bfd_cv_have_sys_procfs_type_fpregset_t
=no
10339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10342 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10344 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10348 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10352 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10353 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
10354 $as_echo_n "(cached) " >&6
10356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10360 #include <sys/procfs.h>
10369 if ac_fn_c_try_compile
"$LINENO"; then :
10370 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
10372 bfd_cv_have_sys_procfs_type_prgregset_t
=no
10375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10378 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10380 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10384 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10388 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10389 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
10390 $as_echo_n "(cached) " >&6
10392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10396 #include <sys/procfs.h>
10405 if ac_fn_c_try_compile
"$LINENO"; then :
10406 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
10408 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
10411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10414 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10416 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10420 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10424 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10425 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
10426 $as_echo_n "(cached) " >&6
10428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10432 #include <sys/procfs.h>
10441 if ac_fn_c_try_compile
"$LINENO"; then :
10442 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
10444 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
10447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10450 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10452 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10456 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10460 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10461 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
10462 $as_echo_n "(cached) " >&6
10464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10468 #include <sys/procfs.h>
10477 if ac_fn_c_try_compile
"$LINENO"; then :
10478 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
10480 bfd_cv_have_sys_procfs_type_lwpid_t
=no
10483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10486 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10488 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10492 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10496 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10497 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
10498 $as_echo_n "(cached) " >&6
10500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10504 #include <sys/procfs.h>
10513 if ac_fn_c_try_compile
"$LINENO"; then :
10514 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
10516 bfd_cv_have_sys_procfs_type_psaddr_t
=no
10519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10522 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10524 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10528 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10532 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10533 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
10534 $as_echo_n "(cached) " >&6
10536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10540 #include <sys/procfs.h>
10544 elf_fpregset_t avar
10549 if ac_fn_c_try_compile
"$LINENO"; then :
10550 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
10552 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
10555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10558 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10560 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10564 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10570 # Check whether --with-xxhash was given.
10571 if test "${with_xxhash+set}" = set; then :
10572 withval
=$with_xxhash;
10578 if test "x$with_xxhash" != "xno"; then
10589 acl_save_prefix
="$prefix"
10590 prefix
="$acl_final_prefix"
10591 acl_save_exec_prefix
="$exec_prefix"
10592 exec_prefix
="$acl_final_exec_prefix"
10594 eval additional_includedir
=\"$includedir\"
10595 eval additional_libdir
=\"$libdir\"
10597 exec_prefix
="$acl_save_exec_prefix"
10598 prefix
="$acl_save_prefix"
10601 # Check whether --with-libxxhash-prefix was given.
10602 if test "${with_libxxhash_prefix+set}" = set; then :
10603 withval
=$with_libxxhash_prefix;
10604 if test "X$withval" = "Xno"; then
10607 if test "X$withval" = "X"; then
10609 acl_save_prefix
="$prefix"
10610 prefix
="$acl_final_prefix"
10611 acl_save_exec_prefix
="$exec_prefix"
10612 exec_prefix
="$acl_final_exec_prefix"
10614 eval additional_includedir
=\"$includedir\"
10615 eval additional_libdir
=\"$libdir\"
10617 exec_prefix
="$acl_save_exec_prefix"
10618 prefix
="$acl_save_prefix"
10621 additional_includedir
="$withval/include"
10622 additional_libdir
="$withval/lib"
10629 # Check whether --with-libxxhash-type was given.
10630 if test "${with_libxxhash_type+set}" = set; then :
10631 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
10633 with_libxxhash_type
=auto
10636 lib_type
=`eval echo \$with_libxxhash_type`
10643 names_already_handled
=
10644 names_next_round
='xxhash '
10645 while test -n "$names_next_round"; do
10646 names_this_round
="$names_next_round"
10648 for name
in $names_this_round; do
10650 for n
in $names_already_handled; do
10651 if test "$n" = "$name"; then
10652 already_handled
=yes
10656 if test -z "$already_handled"; then
10657 names_already_handled
="$names_already_handled $name"
10658 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10659 eval value
=\"\
$HAVE_LIB$uppername\"
10660 if test -n "$value"; then
10661 if test "$value" = yes; then
10662 eval value
=\"\
$LIB$uppername\"
10663 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
10664 eval value
=\"\
$LTLIB$uppername\"
10665 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
10674 if test $use_additional = yes; then
10675 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10676 found_dir
="$additional_libdir"
10677 found_so
="$additional_libdir/lib$name.$shlibext"
10678 if test -f "$additional_libdir/lib$name.la"; then
10679 found_la
="$additional_libdir/lib$name.la"
10681 elif test x
$lib_type != xshared
; then
10682 if test -f "$additional_libdir/lib$name.$libext"; then
10683 found_dir
="$additional_libdir"
10684 found_a
="$additional_libdir/lib$name.$libext"
10685 if test -f "$additional_libdir/lib$name.la"; then
10686 found_la
="$additional_libdir/lib$name.la"
10691 if test "X$found_dir" = "X"; then
10692 for x
in $LDFLAGS $LTLIBXXHASH; do
10694 acl_save_prefix
="$prefix"
10695 prefix
="$acl_final_prefix"
10696 acl_save_exec_prefix
="$exec_prefix"
10697 exec_prefix
="$acl_final_exec_prefix"
10699 exec_prefix
="$acl_save_exec_prefix"
10700 prefix
="$acl_save_prefix"
10704 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10705 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10707 found_so
="$dir/lib$name.$shlibext"
10708 if test -f "$dir/lib$name.la"; then
10709 found_la
="$dir/lib$name.la"
10711 elif test x
$lib_type != xshared
; then
10712 if test -f "$dir/lib$name.$libext"; then
10714 found_a
="$dir/lib$name.$libext"
10715 if test -f "$dir/lib$name.la"; then
10716 found_la
="$dir/lib$name.la"
10722 if test "X$found_dir" != "X"; then
10727 if test "X$found_dir" != "X"; then
10728 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
10729 if test "X$found_so" != "X"; then
10730 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10731 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
10734 for x
in $ltrpathdirs; do
10735 if test "X$x" = "X$found_dir"; then
10740 if test -z "$haveit"; then
10741 ltrpathdirs
="$ltrpathdirs $found_dir"
10743 if test "$hardcode_direct" = yes; then
10744 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
10746 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10747 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
10749 for x
in $rpathdirs; do
10750 if test "X$x" = "X$found_dir"; then
10755 if test -z "$haveit"; then
10756 rpathdirs
="$rpathdirs $found_dir"
10760 for x
in $LDFLAGS $LIBXXHASH; do
10762 acl_save_prefix
="$prefix"
10763 prefix
="$acl_final_prefix"
10764 acl_save_exec_prefix
="$exec_prefix"
10765 exec_prefix
="$acl_final_exec_prefix"
10767 exec_prefix
="$acl_save_exec_prefix"
10768 prefix
="$acl_save_prefix"
10770 if test "X$x" = "X-L$found_dir"; then
10775 if test -z "$haveit"; then
10776 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
10778 if test "$hardcode_minus_L" != no
; then
10779 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
10781 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
10787 if test "X$found_a" != "X"; then
10788 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
10790 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
10793 additional_includedir
=
10794 case "$found_dir" in
10796 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10797 additional_includedir
="$basedir/include"
10800 if test "X$additional_includedir" != "X"; then
10801 if test "X$additional_includedir" != "X/usr/include"; then
10803 if test "X$additional_includedir" = "X/usr/local/include"; then
10804 if test -n "$GCC"; then
10806 linux
*) haveit
=yes;;
10810 if test -z "$haveit"; then
10811 for x
in $CPPFLAGS $INCXXHASH; do
10813 acl_save_prefix
="$prefix"
10814 prefix
="$acl_final_prefix"
10815 acl_save_exec_prefix
="$exec_prefix"
10816 exec_prefix
="$acl_final_exec_prefix"
10818 exec_prefix
="$acl_save_exec_prefix"
10819 prefix
="$acl_save_prefix"
10821 if test "X$x" = "X-I$additional_includedir"; then
10826 if test -z "$haveit"; then
10827 if test -d "$additional_includedir"; then
10828 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
10834 if test -n "$found_la"; then
10835 save_libdir
="$libdir"
10836 case "$found_la" in
10837 */* |
*\\*) .
"$found_la" ;;
10838 *) .
"./$found_la" ;;
10840 libdir
="$save_libdir"
10841 for dep
in $dependency_libs; do
10844 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10845 if test "X$additional_libdir" != "X/usr/lib"; then
10847 if test "X$additional_libdir" = "X/usr/local/lib"; then
10848 if test -n "$GCC"; then
10850 linux
*) haveit
=yes;;
10854 if test -z "$haveit"; then
10856 for x
in $LDFLAGS $LIBXXHASH; do
10858 acl_save_prefix
="$prefix"
10859 prefix
="$acl_final_prefix"
10860 acl_save_exec_prefix
="$exec_prefix"
10861 exec_prefix
="$acl_final_exec_prefix"
10863 exec_prefix
="$acl_save_exec_prefix"
10864 prefix
="$acl_save_prefix"
10866 if test "X$x" = "X-L$additional_libdir"; then
10871 if test -z "$haveit"; then
10872 if test -d "$additional_libdir"; then
10873 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
10877 for x
in $LDFLAGS $LTLIBXXHASH; do
10879 acl_save_prefix
="$prefix"
10880 prefix
="$acl_final_prefix"
10881 acl_save_exec_prefix
="$exec_prefix"
10882 exec_prefix
="$acl_final_exec_prefix"
10884 exec_prefix
="$acl_save_exec_prefix"
10885 prefix
="$acl_save_prefix"
10887 if test "X$x" = "X-L$additional_libdir"; then
10892 if test -z "$haveit"; then
10893 if test -d "$additional_libdir"; then
10894 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
10901 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10902 if test "$enable_rpath" != no
; then
10904 for x
in $rpathdirs; do
10905 if test "X$x" = "X$dir"; then
10910 if test -z "$haveit"; then
10911 rpathdirs
="$rpathdirs $dir"
10914 for x
in $ltrpathdirs; do
10915 if test "X$x" = "X$dir"; then
10920 if test -z "$haveit"; then
10921 ltrpathdirs
="$ltrpathdirs $dir"
10926 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10929 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10932 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
10933 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
10939 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10940 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
10941 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
10943 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
10944 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
10951 if test "X$rpathdirs" != "X"; then
10952 if test -n "$hardcode_libdir_separator"; then
10954 for found_dir
in $rpathdirs; do
10955 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10957 acl_save_libdir
="$libdir"
10959 eval flag
=\"$hardcode_libdir_flag_spec\"
10960 libdir
="$acl_save_libdir"
10961 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
10963 for found_dir
in $rpathdirs; do
10964 acl_save_libdir
="$libdir"
10965 libdir
="$found_dir"
10966 eval flag
=\"$hardcode_libdir_flag_spec\"
10967 libdir
="$acl_save_libdir"
10968 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
10972 if test "X$ltrpathdirs" != "X"; then
10973 for found_dir
in $ltrpathdirs; do
10974 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
10979 ac_save_CPPFLAGS
="$CPPFLAGS"
10981 for element
in $INCXXHASH; do
10983 for x
in $CPPFLAGS; do
10985 acl_save_prefix
="$prefix"
10986 prefix
="$acl_final_prefix"
10987 acl_save_exec_prefix
="$exec_prefix"
10988 exec_prefix
="$acl_final_exec_prefix"
10990 exec_prefix
="$acl_save_exec_prefix"
10991 prefix
="$acl_save_prefix"
10993 if test "X$x" = "X$element"; then
10998 if test -z "$haveit"; then
10999 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
11005 $as_echo_n "checking for libxxhash... " >&6; }
11006 if ${ac_cv_libxxhash+:} false
; then :
11007 $as_echo_n "(cached) " >&6
11010 ac_save_LIBS
="$LIBS"
11011 LIBS
="$LIBS $LIBXXHASH"
11012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11014 #include <xxhash.h>
11018 XXH32("foo", 3, 0);
11024 if ac_fn_c_try_link
"$LINENO"; then :
11025 ac_cv_libxxhash
=yes
11029 rm -f core conftest.err conftest.
$ac_objext \
11030 conftest
$ac_exeext conftest.
$ac_ext
11031 LIBS
="$ac_save_LIBS"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
11035 $as_echo "$ac_cv_libxxhash" >&6; }
11036 if test "$ac_cv_libxxhash" = yes; then
11039 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
11042 $as_echo_n "checking how to link with libxxhash... " >&6; }
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
11044 $as_echo "$LIBXXHASH" >&6; }
11047 CPPFLAGS
="$ac_save_CPPFLAGS"
11057 if test "$HAVE_LIBXXHASH" != yes; then
11058 if test "$with_xxhash" = yes; then
11059 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
11062 if test "x$with_xxhash" = "xauto"; then
11063 with_xxhash
="$HAVE_LIBXXHASH"
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
11068 $as_echo_n "checking whether to use xxhash... " >&6; }
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
11070 $as_echo "$with_xxhash" >&6; }
11072 # This is set by GDB_AC_COMMON.
11076 # Check whether we will enable the inclusion of unit tests when
11079 # The default value of this option changes depending whether we're on
11080 # development mode (in which case it's "true") or not (in which case
11081 # it's "false"). The $development variable is set by the GDB_AC_COMMON
11082 # macro, which must therefore be used before GDB_AC_SELFTEST.
11084 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
11085 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
11088 # Check whether --enable-unit-tests was given.
11089 if test "${enable_unit_tests+set}" = set; then :
11090 enableval
=$enable_unit_tests; case "${enableval}" in
11091 yes) enable_unittests
=true
;;
11092 no
) enable_unittests
=false
;;
11093 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
11096 enable_unittests
=$development
11100 if $enable_unittests; then
11102 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
11108 case ${build_alias} in
11109 "") build_noncanonical
=${build} ;;
11110 *) build_noncanonical
=${build_alias} ;;
11113 case ${host_alias} in
11114 "") host_noncanonical
=${build_noncanonical} ;;
11115 *) host_noncanonical
=${host_alias} ;;
11118 case ${target_alias} in
11119 "") target_noncanonical
=${host_noncanonical} ;;
11120 *) target_noncanonical
=${target_alias} ;;
11128 # Dependency checking.
11129 rm -rf .tst
2>/dev
/null
11130 mkdir .tst
2>/dev
/null
11131 if test -d .tst
; then
11136 rmdir .tst
2>/dev
/null
11138 DEPDIR
="${am__leading_dot}deps"
11140 ac_config_commands
="$ac_config_commands depdir"
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11145 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11147 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11148 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
11149 $as_echo_n "(cached) " >&6
11151 cat >conftest.
make <<\_ACEOF
11154 @
echo '@@@%%%=$(MAKE)=@@@%%%'
11156 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11158 *@@@
%%%=?
*=@@@
%%%*)
11159 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
11161 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
11163 rm -f conftest.
make
11165 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; }
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11172 SET_MAKE
="MAKE=${MAKE-make}"
11177 if test -n "$ac_aux_dir"; then
11178 case "$ac_aux_dir" in
11179 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
11180 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11183 if test -z "$MKINSTALLDIRS"; then
11184 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11190 $as_echo_n "checking whether NLS is requested... " >&6; }
11191 # Check whether --enable-nls was given.
11192 if test "${enable_nls+set}" = set; then :
11193 enableval
=$enable_nls; USE_NLS
=$enableval
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11199 $as_echo "$USE_NLS" >&6; }
11206 # Prepare PATH_SEPARATOR.
11207 # The user is always right.
11208 if test "${PATH_SEPARATOR+set}" != set; then
11209 echo "#! /bin/sh" >conf$$.sh
11210 echo "exit 0" >>conf$$.sh
11212 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11220 # Find out how to test for executable files. Don't use a zero-byte file,
11221 # as systems may use methods other than mode bits to determine executability.
11222 cat >conf$$.
file <<_ASEOF
11226 chmod +x conf$$.
file
11227 if test -x conf$$.
file >/dev
/null
2>&1; then
11228 ac_executable_p
="test -x"
11230 ac_executable_p
="test -f"
11234 # Extract the first word of "msgfmt", so it can be a program name with args.
11235 set dummy msgfmt
; ac_word
=$2
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237 $as_echo_n "checking for $ac_word... " >&6; }
11238 if ${ac_cv_path_MSGFMT+:} false
; then :
11239 $as_echo_n "(cached) " >&6
11243 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
11246 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
11247 for ac_dir
in $PATH; do
11249 test -z "$ac_dir" && ac_dir
=.
11250 for ac_exec_ext
in '' $ac_executable_extensions; do
11251 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11252 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
11253 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
11254 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
11261 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
11265 MSGFMT
="$ac_cv_path_MSGFMT"
11266 if test "$MSGFMT" != ":"; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11268 $as_echo "$MSGFMT" >&6; }
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11274 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11275 set dummy gmsgfmt
; ac_word
=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277 $as_echo_n "checking for $ac_word... " >&6; }
11278 if ${ac_cv_path_GMSGFMT+:} false
; then :
11279 $as_echo_n "(cached) " >&6
11283 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
11286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11287 for as_dir
in $PATH
11290 test -z "$as_dir" && as_dir
=.
11291 for ac_exec_ext
in '' $ac_executable_extensions; do
11292 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11293 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
11305 GMSGFMT
=$ac_cv_path_GMSGFMT
11306 if test -n "$GMSGFMT"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11308 $as_echo "$GMSGFMT" >&6; }
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11317 # Prepare PATH_SEPARATOR.
11318 # The user is always right.
11319 if test "${PATH_SEPARATOR+set}" != set; then
11320 echo "#! /bin/sh" >conf$$.sh
11321 echo "exit 0" >>conf$$.sh
11323 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11331 # Find out how to test for executable files. Don't use a zero-byte file,
11332 # as systems may use methods other than mode bits to determine executability.
11333 cat >conf$$.
file <<_ASEOF
11337 chmod +x conf$$.
file
11338 if test -x conf$$.
file >/dev
/null
2>&1; then
11339 ac_executable_p
="test -x"
11341 ac_executable_p
="test -f"
11345 # Extract the first word of "xgettext", so it can be a program name with args.
11346 set dummy xgettext
; ac_word
=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348 $as_echo_n "checking for $ac_word... " >&6; }
11349 if ${ac_cv_path_XGETTEXT+:} false
; then :
11350 $as_echo_n "(cached) " >&6
11352 case "$XGETTEXT" in
11354 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
11357 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
11358 for ac_dir
in $PATH; do
11360 test -z "$ac_dir" && ac_dir
=.
11361 for ac_exec_ext
in '' $ac_executable_extensions; do
11362 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11363 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
11364 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
11365 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
11372 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
11376 XGETTEXT
="$ac_cv_path_XGETTEXT"
11377 if test "$XGETTEXT" != ":"; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11379 $as_echo "$XGETTEXT" >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11388 # Prepare PATH_SEPARATOR.
11389 # The user is always right.
11390 if test "${PATH_SEPARATOR+set}" != set; then
11391 echo "#! /bin/sh" >conf$$.sh
11392 echo "exit 0" >>conf$$.sh
11394 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11402 # Find out how to test for executable files. Don't use a zero-byte file,
11403 # as systems may use methods other than mode bits to determine executability.
11404 cat >conf$$.
file <<_ASEOF
11408 chmod +x conf$$.
file
11409 if test -x conf$$.
file >/dev
/null
2>&1; then
11410 ac_executable_p
="test -x"
11412 ac_executable_p
="test -f"
11416 # Extract the first word of "msgmerge", so it can be a program name with args.
11417 set dummy msgmerge
; ac_word
=$2
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if ${ac_cv_path_MSGMERGE+:} false
; then :
11421 $as_echo_n "(cached) " >&6
11423 case "$MSGMERGE" in
11425 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
11428 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
11429 for ac_dir
in $PATH; do
11431 test -z "$ac_dir" && ac_dir
=.
11432 for ac_exec_ext
in '' $ac_executable_extensions; do
11433 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11434 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
11435 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
11442 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
11446 MSGMERGE
="$ac_cv_path_MSGMERGE"
11447 if test "$MSGMERGE" != ":"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11449 $as_echo "$MSGMERGE" >&6; }
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 $as_echo "no" >&6; }
11456 if test "$GMSGFMT" != ":"; then
11457 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
11458 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
11461 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11463 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11468 if test "$XGETTEXT" != ":"; then
11469 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
11470 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11474 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11480 ac_config_commands
="$ac_config_commands default-1"
11491 acl_save_prefix
="$prefix"
11492 prefix
="$acl_final_prefix"
11493 acl_save_exec_prefix
="$exec_prefix"
11494 exec_prefix
="$acl_final_exec_prefix"
11496 eval additional_includedir
=\"$includedir\"
11497 eval additional_libdir
=\"$libdir\"
11499 exec_prefix
="$acl_save_exec_prefix"
11500 prefix
="$acl_save_prefix"
11503 # Check whether --with-libiconv-prefix was given.
11504 if test "${with_libiconv_prefix+set}" = set; then :
11505 withval
=$with_libiconv_prefix;
11506 if test "X$withval" = "Xno"; then
11509 if test "X$withval" = "X"; then
11511 acl_save_prefix
="$prefix"
11512 prefix
="$acl_final_prefix"
11513 acl_save_exec_prefix
="$exec_prefix"
11514 exec_prefix
="$acl_final_exec_prefix"
11516 eval additional_includedir
=\"$includedir\"
11517 eval additional_libdir
=\"$libdir\"
11519 exec_prefix
="$acl_save_exec_prefix"
11520 prefix
="$acl_save_prefix"
11523 additional_includedir
="$withval/include"
11524 additional_libdir
="$withval/lib"
11531 # Check whether --with-libiconv-type was given.
11532 if test "${with_libiconv_type+set}" = set; then :
11533 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11535 with_libiconv_type
=auto
11538 lib_type
=`eval echo \$with_libiconv_type`
11545 names_already_handled
=
11546 names_next_round
='iconv '
11547 while test -n "$names_next_round"; do
11548 names_this_round
="$names_next_round"
11550 for name
in $names_this_round; do
11552 for n
in $names_already_handled; do
11553 if test "$n" = "$name"; then
11554 already_handled
=yes
11558 if test -z "$already_handled"; then
11559 names_already_handled
="$names_already_handled $name"
11560 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11561 eval value
=\"\
$HAVE_LIB$uppername\"
11562 if test -n "$value"; then
11563 if test "$value" = yes; then
11564 eval value
=\"\
$LIB$uppername\"
11565 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11566 eval value
=\"\
$LTLIB$uppername\"
11567 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11576 if test $use_additional = yes; then
11577 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11578 found_dir
="$additional_libdir"
11579 found_so
="$additional_libdir/lib$name.$shlibext"
11580 if test -f "$additional_libdir/lib$name.la"; then
11581 found_la
="$additional_libdir/lib$name.la"
11583 elif test x
$lib_type != xshared
; then
11584 if test -f "$additional_libdir/lib$name.$libext"; then
11585 found_dir
="$additional_libdir"
11586 found_a
="$additional_libdir/lib$name.$libext"
11587 if test -f "$additional_libdir/lib$name.la"; then
11588 found_la
="$additional_libdir/lib$name.la"
11593 if test "X$found_dir" = "X"; then
11594 for x
in $LDFLAGS $LTLIBICONV; do
11596 acl_save_prefix
="$prefix"
11597 prefix
="$acl_final_prefix"
11598 acl_save_exec_prefix
="$exec_prefix"
11599 exec_prefix
="$acl_final_exec_prefix"
11601 exec_prefix
="$acl_save_exec_prefix"
11602 prefix
="$acl_save_prefix"
11606 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11607 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11609 found_so
="$dir/lib$name.$shlibext"
11610 if test -f "$dir/lib$name.la"; then
11611 found_la
="$dir/lib$name.la"
11613 elif test x
$lib_type != xshared
; then
11614 if test -f "$dir/lib$name.$libext"; then
11616 found_a
="$dir/lib$name.$libext"
11617 if test -f "$dir/lib$name.la"; then
11618 found_la
="$dir/lib$name.la"
11624 if test "X$found_dir" != "X"; then
11629 if test "X$found_dir" != "X"; then
11630 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11631 if test "X$found_so" != "X"; then
11632 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11633 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11636 for x
in $ltrpathdirs; do
11637 if test "X$x" = "X$found_dir"; then
11642 if test -z "$haveit"; then
11643 ltrpathdirs
="$ltrpathdirs $found_dir"
11645 if test "$hardcode_direct" = yes; then
11646 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11648 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11649 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11651 for x
in $rpathdirs; do
11652 if test "X$x" = "X$found_dir"; then
11657 if test -z "$haveit"; then
11658 rpathdirs
="$rpathdirs $found_dir"
11662 for x
in $LDFLAGS $LIBICONV; do
11664 acl_save_prefix
="$prefix"
11665 prefix
="$acl_final_prefix"
11666 acl_save_exec_prefix
="$exec_prefix"
11667 exec_prefix
="$acl_final_exec_prefix"
11669 exec_prefix
="$acl_save_exec_prefix"
11670 prefix
="$acl_save_prefix"
11672 if test "X$x" = "X-L$found_dir"; then
11677 if test -z "$haveit"; then
11678 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11680 if test "$hardcode_minus_L" != no
; then
11681 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11683 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11689 if test "X$found_a" != "X"; then
11690 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11692 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11695 additional_includedir
=
11696 case "$found_dir" in
11698 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11699 additional_includedir
="$basedir/include"
11702 if test "X$additional_includedir" != "X"; then
11703 if test "X$additional_includedir" != "X/usr/include"; then
11705 if test "X$additional_includedir" = "X/usr/local/include"; then
11706 if test -n "$GCC"; then
11708 linux
*) haveit
=yes;;
11712 if test -z "$haveit"; then
11713 for x
in $CPPFLAGS $INCICONV; do
11715 acl_save_prefix
="$prefix"
11716 prefix
="$acl_final_prefix"
11717 acl_save_exec_prefix
="$exec_prefix"
11718 exec_prefix
="$acl_final_exec_prefix"
11720 exec_prefix
="$acl_save_exec_prefix"
11721 prefix
="$acl_save_prefix"
11723 if test "X$x" = "X-I$additional_includedir"; then
11728 if test -z "$haveit"; then
11729 if test -d "$additional_includedir"; then
11730 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11736 if test -n "$found_la"; then
11737 save_libdir
="$libdir"
11738 case "$found_la" in
11739 */* |
*\\*) .
"$found_la" ;;
11740 *) .
"./$found_la" ;;
11742 libdir
="$save_libdir"
11743 for dep
in $dependency_libs; do
11746 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11747 if test "X$additional_libdir" != "X/usr/lib"; then
11749 if test "X$additional_libdir" = "X/usr/local/lib"; then
11750 if test -n "$GCC"; then
11752 linux
*) haveit
=yes;;
11756 if test -z "$haveit"; then
11758 for x
in $LDFLAGS $LIBICONV; do
11760 acl_save_prefix
="$prefix"
11761 prefix
="$acl_final_prefix"
11762 acl_save_exec_prefix
="$exec_prefix"
11763 exec_prefix
="$acl_final_exec_prefix"
11765 exec_prefix
="$acl_save_exec_prefix"
11766 prefix
="$acl_save_prefix"
11768 if test "X$x" = "X-L$additional_libdir"; then
11773 if test -z "$haveit"; then
11774 if test -d "$additional_libdir"; then
11775 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11779 for x
in $LDFLAGS $LTLIBICONV; do
11781 acl_save_prefix
="$prefix"
11782 prefix
="$acl_final_prefix"
11783 acl_save_exec_prefix
="$exec_prefix"
11784 exec_prefix
="$acl_final_exec_prefix"
11786 exec_prefix
="$acl_save_exec_prefix"
11787 prefix
="$acl_save_prefix"
11789 if test "X$x" = "X-L$additional_libdir"; then
11794 if test -z "$haveit"; then
11795 if test -d "$additional_libdir"; then
11796 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11803 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11804 if test "$enable_rpath" != no
; then
11806 for x
in $rpathdirs; do
11807 if test "X$x" = "X$dir"; then
11812 if test -z "$haveit"; then
11813 rpathdirs
="$rpathdirs $dir"
11816 for x
in $ltrpathdirs; do
11817 if test "X$x" = "X$dir"; then
11822 if test -z "$haveit"; then
11823 ltrpathdirs
="$ltrpathdirs $dir"
11828 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11831 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11834 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11835 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11841 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11842 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11843 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11845 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11846 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11853 if test "X$rpathdirs" != "X"; then
11854 if test -n "$hardcode_libdir_separator"; then
11856 for found_dir
in $rpathdirs; do
11857 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11859 acl_save_libdir
="$libdir"
11861 eval flag
=\"$hardcode_libdir_flag_spec\"
11862 libdir
="$acl_save_libdir"
11863 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11865 for found_dir
in $rpathdirs; do
11866 acl_save_libdir
="$libdir"
11867 libdir
="$found_dir"
11868 eval flag
=\"$hardcode_libdir_flag_spec\"
11869 libdir
="$acl_save_libdir"
11870 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11874 if test "X$ltrpathdirs" != "X"; then
11875 for found_dir
in $ltrpathdirs; do
11876 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11884 if test -f ..
/gettext
/uninstalled-config.sh
; then
11885 relative_builddir
='$(top_builddir)/../gettext'
11886 . ..
/gettext
/uninstalled-config.sh
11888 # The sister gettext directory doesn't exist and won't collect information on
11889 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11914 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11915 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
11916 $as_echo_n "(cached) " >&6
11918 gt_save_LIBS
="$LIBS"
11919 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
11920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 #include <CoreFoundation/CFPreferences.h>
11926 CFPreferencesCopyAppValue(NULL, NULL)
11931 if ac_fn_c_try_link
"$LINENO"; then :
11932 gt_cv_func_CFPreferencesCopyAppValue
=yes
11934 gt_cv_func_CFPreferencesCopyAppValue
=no
11936 rm -f core conftest.err conftest.
$ac_objext \
11937 conftest
$ac_exeext conftest.
$ac_ext
11938 LIBS
="$gt_save_LIBS"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11941 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11942 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11944 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
11948 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
11949 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
11950 $as_echo_n "(cached) " >&6
11952 gt_save_LIBS
="$LIBS"
11953 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
11954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 #include <CoreFoundation/CFLocale.h>
11960 CFLocaleCopyPreferredLanguages();
11965 if ac_fn_c_try_link
"$LINENO"; then :
11966 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
11968 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
11970 rm -f core conftest.err conftest.
$ac_objext \
11971 conftest
$ac_exeext conftest.
$ac_ext
11972 LIBS
="$gt_save_LIBS"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
11975 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
11976 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
11978 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
11982 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
11983 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
11984 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
11996 case " $gt_needs " in
11997 *" need-formatstring-macros "*) gt_api_version
=3 ;;
11998 *" need-ngettext "*) gt_api_version
=2 ;;
11999 *) gt_api_version
=1 ;;
12001 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
12002 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
12004 if test "$USE_NLS" = "yes"; then
12005 gt_use_preinstalled_gnugettext
=no
12008 if test $gt_api_version -ge 3; then
12009 gt_revision_test_code
='
12010 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12011 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12013 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12016 gt_revision_test_code
=
12018 if test $gt_api_version -ge 2; then
12019 gt_expression_test_code
=' + * ngettext ("", "", 0)'
12021 gt_expression_test_code
=
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12025 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12026 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
12027 $as_echo_n "(cached) " >&6
12029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12032 #include <libintl.h>
12033 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12034 extern int _nl_msg_cat_cntr;
12035 extern int *_nl_domain_bindings;
12036 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12038 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12040 $gt_revision_test_code
12046 bindtextdomain ("", "");
12047 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12053 if ac_fn_c_try_link
"$LINENO"; then :
12054 eval "$gt_func_gnugettext_libc=yes"
12056 eval "$gt_func_gnugettext_libc=no"
12058 rm -f core conftest.err conftest.
$ac_objext \
12059 conftest
$ac_exeext conftest.
$ac_ext
12061 eval ac_res
=\$
$gt_func_gnugettext_libc
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12063 $as_echo "$ac_res" >&6; }
12065 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12071 am_save_CPPFLAGS
="$CPPFLAGS"
12073 for element
in $INCICONV; do
12075 for x
in $CPPFLAGS; do
12077 acl_save_prefix
="$prefix"
12078 prefix
="$acl_final_prefix"
12079 acl_save_exec_prefix
="$exec_prefix"
12080 exec_prefix
="$acl_final_exec_prefix"
12082 exec_prefix
="$acl_save_exec_prefix"
12083 prefix
="$acl_save_prefix"
12085 if test "X$x" = "X$element"; then
12090 if test -z "$haveit"; then
12091 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12097 $as_echo_n "checking for iconv... " >&6; }
12098 if ${am_cv_func_iconv+:} false
; then :
12099 $as_echo_n "(cached) " >&6
12102 am_cv_func_iconv
="no, consider installing GNU libiconv"
12104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12107 #include <stdlib.h>
12113 iconv_t cd = iconv_open("","");
12114 iconv(cd,NULL,NULL,NULL,NULL);
12120 if ac_fn_c_try_link
"$LINENO"; then :
12121 am_cv_func_iconv
=yes
12123 rm -f core conftest.err conftest.
$ac_objext \
12124 conftest
$ac_exeext conftest.
$ac_ext
12125 if test "$am_cv_func_iconv" != yes; then
12126 am_save_LIBS
="$LIBS"
12127 LIBS
="$LIBS $LIBICONV"
12128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12131 #include <stdlib.h>
12137 iconv_t cd = iconv_open("","");
12138 iconv(cd,NULL,NULL,NULL,NULL);
12144 if ac_fn_c_try_link
"$LINENO"; then :
12145 am_cv_lib_iconv
=yes
12146 am_cv_func_iconv
=yes
12148 rm -f core conftest.err conftest.
$ac_objext \
12149 conftest
$ac_exeext conftest.
$ac_ext
12150 LIBS
="$am_save_LIBS"
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12155 $as_echo "$am_cv_func_iconv" >&6; }
12156 if test "$am_cv_func_iconv" = yes; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12158 $as_echo_n "checking for working iconv... " >&6; }
12159 if ${am_cv_func_iconv_works+:} false
; then :
12160 $as_echo_n "(cached) " >&6
12163 am_save_LIBS
="$LIBS"
12164 if test $am_cv_lib_iconv = yes; then
12165 LIBS
="$LIBS $LIBICONV"
12167 am_cv_func_iconv_works
=no
12168 for ac_iconv_const
in '' 'const'; do
12169 if test "$cross_compiling" = yes; then :
12171 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
12172 *) am_cv_func_iconv_works
="guessing yes" ;;
12175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12179 #include <string.h>
12181 #ifndef ICONV_CONST
12182 # define ICONV_CONST $ac_iconv_const
12189 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
12190 successful returns. This is even documented in
12191 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
12193 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12194 if (cd_utf8_to_88591 != (iconv_t)(-1))
12196 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12198 ICONV_CONST char *inptr = input;
12199 size_t inbytesleft = strlen (input);
12200 char *outptr = buf;
12201 size_t outbytesleft = sizeof (buf);
12202 size_t res = iconv (cd_utf8_to_88591,
12203 &inptr, &inbytesleft,
12204 &outptr, &outbytesleft);
12207 iconv_close (cd_utf8_to_88591);
12210 /* Test against Solaris 10 bug: Failures are not distinguishable from
12211 successful returns. */
12213 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12214 if (cd_ascii_to_88591 != (iconv_t)(-1))
12216 static ICONV_CONST char input[] = "\263";
12218 ICONV_CONST char *inptr = input;
12219 size_t inbytesleft = strlen (input);
12220 char *outptr = buf;
12221 size_t outbytesleft = sizeof (buf);
12222 size_t res = iconv (cd_ascii_to_88591,
12223 &inptr, &inbytesleft,
12224 &outptr, &outbytesleft);
12227 iconv_close (cd_ascii_to_88591);
12230 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12232 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12233 if (cd_88591_to_utf8 != (iconv_t)(-1))
12235 static ICONV_CONST char input[] = "\304";
12236 static char buf[2] = { (char)0xDE, (char)0xAD };
12237 ICONV_CONST char *inptr = input;
12238 size_t inbytesleft = 1;
12239 char *outptr = buf;
12240 size_t outbytesleft = 1;
12241 size_t res = iconv (cd_88591_to_utf8,
12242 &inptr, &inbytesleft,
12243 &outptr, &outbytesleft);
12244 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12246 iconv_close (cd_88591_to_utf8);
12249 #if 0 /* This bug could be worked around by the caller. */
12250 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12252 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12253 if (cd_88591_to_utf8 != (iconv_t)(-1))
12255 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12257 ICONV_CONST char *inptr = input;
12258 size_t inbytesleft = strlen (input);
12259 char *outptr = buf;
12260 size_t outbytesleft = sizeof (buf);
12261 size_t res = iconv (cd_88591_to_utf8,
12262 &inptr, &inbytesleft,
12263 &outptr, &outbytesleft);
12266 iconv_close (cd_88591_to_utf8);
12270 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12273 /* Try standardized names. */
12274 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12275 /* Try IRIX, OSF/1 names. */
12276 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12277 /* Try AIX names. */
12278 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12279 /* Try HP-UX names. */
12280 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12281 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12282 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12284 if (cd1 != (iconv_t)(-1))
12286 if (cd2 != (iconv_t)(-1))
12288 if (cd3 != (iconv_t)(-1))
12290 if (cd4 != (iconv_t)(-1))
12299 if ac_fn_c_try_run
"$LINENO"; then :
12300 am_cv_func_iconv_works
=yes
12302 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12303 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12306 test "$am_cv_func_iconv_works" = no ||
break
12308 LIBS
="$am_save_LIBS"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12312 $as_echo "$am_cv_func_iconv_works" >&6; }
12313 case "$am_cv_func_iconv_works" in
12314 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
12315 *) am_func_iconv
=yes ;;
12318 am_func_iconv
=no am_cv_lib_iconv
=no
12320 if test "$am_func_iconv" = yes; then
12322 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12325 if test "$am_cv_lib_iconv" = yes; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12327 $as_echo_n "checking how to link with libiconv... " >&6; }
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12329 $as_echo "$LIBICONV" >&6; }
12331 CPPFLAGS
="$am_save_CPPFLAGS"
12343 acl_save_prefix
="$prefix"
12344 prefix
="$acl_final_prefix"
12345 acl_save_exec_prefix
="$exec_prefix"
12346 exec_prefix
="$acl_final_exec_prefix"
12348 eval additional_includedir
=\"$includedir\"
12349 eval additional_libdir
=\"$libdir\"
12351 exec_prefix
="$acl_save_exec_prefix"
12352 prefix
="$acl_save_prefix"
12355 # Check whether --with-libintl-prefix was given.
12356 if test "${with_libintl_prefix+set}" = set; then :
12357 withval
=$with_libintl_prefix;
12358 if test "X$withval" = "Xno"; then
12361 if test "X$withval" = "X"; then
12363 acl_save_prefix
="$prefix"
12364 prefix
="$acl_final_prefix"
12365 acl_save_exec_prefix
="$exec_prefix"
12366 exec_prefix
="$acl_final_exec_prefix"
12368 eval additional_includedir
=\"$includedir\"
12369 eval additional_libdir
=\"$libdir\"
12371 exec_prefix
="$acl_save_exec_prefix"
12372 prefix
="$acl_save_prefix"
12375 additional_includedir
="$withval/include"
12376 additional_libdir
="$withval/lib"
12383 # Check whether --with-libintl-type was given.
12384 if test "${with_libintl_type+set}" = set; then :
12385 withval
=$with_libintl_type; with_libintl_type
=$withval
12387 with_libintl_type
=auto
12390 lib_type
=`eval echo \$with_libintl_type`
12397 names_already_handled
=
12398 names_next_round
='intl '
12399 while test -n "$names_next_round"; do
12400 names_this_round
="$names_next_round"
12402 for name
in $names_this_round; do
12404 for n
in $names_already_handled; do
12405 if test "$n" = "$name"; then
12406 already_handled
=yes
12410 if test -z "$already_handled"; then
12411 names_already_handled
="$names_already_handled $name"
12412 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12413 eval value
=\"\
$HAVE_LIB$uppername\"
12414 if test -n "$value"; then
12415 if test "$value" = yes; then
12416 eval value
=\"\
$LIB$uppername\"
12417 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
12418 eval value
=\"\
$LTLIB$uppername\"
12419 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
12428 if test $use_additional = yes; then
12429 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
12430 found_dir
="$additional_libdir"
12431 found_so
="$additional_libdir/lib$name.$shlibext"
12432 if test -f "$additional_libdir/lib$name.la"; then
12433 found_la
="$additional_libdir/lib$name.la"
12435 elif test x
$lib_type != xshared
; then
12436 if test -f "$additional_libdir/lib$name.$libext"; then
12437 found_dir
="$additional_libdir"
12438 found_a
="$additional_libdir/lib$name.$libext"
12439 if test -f "$additional_libdir/lib$name.la"; then
12440 found_la
="$additional_libdir/lib$name.la"
12445 if test "X$found_dir" = "X"; then
12446 for x
in $LDFLAGS $LTLIBINTL; do
12448 acl_save_prefix
="$prefix"
12449 prefix
="$acl_final_prefix"
12450 acl_save_exec_prefix
="$exec_prefix"
12451 exec_prefix
="$acl_final_exec_prefix"
12453 exec_prefix
="$acl_save_exec_prefix"
12454 prefix
="$acl_save_prefix"
12458 dir
=`echo "X$x" | sed -e 's/^X-L//'`
12459 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
12461 found_so
="$dir/lib$name.$shlibext"
12462 if test -f "$dir/lib$name.la"; then
12463 found_la
="$dir/lib$name.la"
12465 elif test x
$lib_type != xshared
; then
12466 if test -f "$dir/lib$name.$libext"; then
12468 found_a
="$dir/lib$name.$libext"
12469 if test -f "$dir/lib$name.la"; then
12470 found_la
="$dir/lib$name.la"
12476 if test "X$found_dir" != "X"; then
12481 if test "X$found_dir" != "X"; then
12482 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12483 if test "X$found_so" != "X"; then
12484 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
12485 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12488 for x
in $ltrpathdirs; do
12489 if test "X$x" = "X$found_dir"; then
12494 if test -z "$haveit"; then
12495 ltrpathdirs
="$ltrpathdirs $found_dir"
12497 if test "$hardcode_direct" = yes; then
12498 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12500 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
12501 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12503 for x
in $rpathdirs; do
12504 if test "X$x" = "X$found_dir"; then
12509 if test -z "$haveit"; then
12510 rpathdirs
="$rpathdirs $found_dir"
12514 for x
in $LDFLAGS $LIBINTL; do
12516 acl_save_prefix
="$prefix"
12517 prefix
="$acl_final_prefix"
12518 acl_save_exec_prefix
="$exec_prefix"
12519 exec_prefix
="$acl_final_exec_prefix"
12521 exec_prefix
="$acl_save_exec_prefix"
12522 prefix
="$acl_save_prefix"
12524 if test "X$x" = "X-L$found_dir"; then
12529 if test -z "$haveit"; then
12530 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12532 if test "$hardcode_minus_L" != no
; then
12533 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
12535 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
12541 if test "X$found_a" != "X"; then
12542 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
12544 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12547 additional_includedir
=
12548 case "$found_dir" in
12550 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12551 additional_includedir
="$basedir/include"
12554 if test "X$additional_includedir" != "X"; then
12555 if test "X$additional_includedir" != "X/usr/include"; then
12557 if test "X$additional_includedir" = "X/usr/local/include"; then
12558 if test -n "$GCC"; then
12560 linux
*) haveit
=yes;;
12564 if test -z "$haveit"; then
12565 for x
in $CPPFLAGS $INCINTL; do
12567 acl_save_prefix
="$prefix"
12568 prefix
="$acl_final_prefix"
12569 acl_save_exec_prefix
="$exec_prefix"
12570 exec_prefix
="$acl_final_exec_prefix"
12572 exec_prefix
="$acl_save_exec_prefix"
12573 prefix
="$acl_save_prefix"
12575 if test "X$x" = "X-I$additional_includedir"; then
12580 if test -z "$haveit"; then
12581 if test -d "$additional_includedir"; then
12582 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12588 if test -n "$found_la"; then
12589 save_libdir
="$libdir"
12590 case "$found_la" in
12591 */* |
*\\*) .
"$found_la" ;;
12592 *) .
"./$found_la" ;;
12594 libdir
="$save_libdir"
12595 for dep
in $dependency_libs; do
12598 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
12599 if test "X$additional_libdir" != "X/usr/lib"; then
12601 if test "X$additional_libdir" = "X/usr/local/lib"; then
12602 if test -n "$GCC"; then
12604 linux
*) haveit
=yes;;
12608 if test -z "$haveit"; then
12610 for x
in $LDFLAGS $LIBINTL; do
12612 acl_save_prefix
="$prefix"
12613 prefix
="$acl_final_prefix"
12614 acl_save_exec_prefix
="$exec_prefix"
12615 exec_prefix
="$acl_final_exec_prefix"
12617 exec_prefix
="$acl_save_exec_prefix"
12618 prefix
="$acl_save_prefix"
12620 if test "X$x" = "X-L$additional_libdir"; then
12625 if test -z "$haveit"; then
12626 if test -d "$additional_libdir"; then
12627 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12631 for x
in $LDFLAGS $LTLIBINTL; do
12633 acl_save_prefix
="$prefix"
12634 prefix
="$acl_final_prefix"
12635 acl_save_exec_prefix
="$exec_prefix"
12636 exec_prefix
="$acl_final_exec_prefix"
12638 exec_prefix
="$acl_save_exec_prefix"
12639 prefix
="$acl_save_prefix"
12641 if test "X$x" = "X-L$additional_libdir"; then
12646 if test -z "$haveit"; then
12647 if test -d "$additional_libdir"; then
12648 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12655 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12656 if test "$enable_rpath" != no
; then
12658 for x
in $rpathdirs; do
12659 if test "X$x" = "X$dir"; then
12664 if test -z "$haveit"; then
12665 rpathdirs
="$rpathdirs $dir"
12668 for x
in $ltrpathdirs; do
12669 if test "X$x" = "X$dir"; then
12674 if test -z "$haveit"; then
12675 ltrpathdirs
="$ltrpathdirs $dir"
12680 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12683 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12686 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
12687 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12693 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
12694 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
12695 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12697 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
12698 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
12705 if test "X$rpathdirs" != "X"; then
12706 if test -n "$hardcode_libdir_separator"; then
12708 for found_dir
in $rpathdirs; do
12709 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12711 acl_save_libdir
="$libdir"
12713 eval flag
=\"$hardcode_libdir_flag_spec\"
12714 libdir
="$acl_save_libdir"
12715 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
12717 for found_dir
in $rpathdirs; do
12718 acl_save_libdir
="$libdir"
12719 libdir
="$found_dir"
12720 eval flag
=\"$hardcode_libdir_flag_spec\"
12721 libdir
="$acl_save_libdir"
12722 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
12726 if test "X$ltrpathdirs" != "X"; then
12727 for found_dir
in $ltrpathdirs; do
12728 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12733 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12734 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
12735 $as_echo_n "(cached) " >&6
12737 gt_save_CPPFLAGS
="$CPPFLAGS"
12738 CPPFLAGS
="$CPPFLAGS $INCINTL"
12739 gt_save_LIBS
="$LIBS"
12740 LIBS
="$LIBS $LIBINTL"
12741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12742 /* end confdefs.h. */
12744 #include <libintl.h>
12745 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12746 extern int _nl_msg_cat_cntr;
12751 const char *_nl_expand_alias (const char *);
12752 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
12754 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12756 $gt_revision_test_code
12762 bindtextdomain ("", "");
12763 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12769 if ac_fn_c_try_link
"$LINENO"; then :
12770 eval "$gt_func_gnugettext_libintl=yes"
12772 eval "$gt_func_gnugettext_libintl=no"
12774 rm -f core conftest.err conftest.
$ac_objext \
12775 conftest
$ac_exeext conftest.
$ac_ext
12776 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12777 LIBS
="$LIBS $LIBICONV"
12778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12781 #include <libintl.h>
12782 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12783 extern int _nl_msg_cat_cntr;
12788 const char *_nl_expand_alias (const char *);
12789 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
12791 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12793 $gt_revision_test_code
12799 bindtextdomain ("", "");
12800 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12806 if ac_fn_c_try_link
"$LINENO"; then :
12807 LIBINTL
="$LIBINTL $LIBICONV"
12808 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
12809 eval "$gt_func_gnugettext_libintl=yes"
12812 rm -f core conftest.err conftest.
$ac_objext \
12813 conftest
$ac_exeext conftest.
$ac_ext
12815 CPPFLAGS
="$gt_save_CPPFLAGS"
12816 LIBS
="$gt_save_LIBS"
12818 eval ac_res
=\$
$gt_func_gnugettext_libintl
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12820 $as_echo "$ac_res" >&6; }
12823 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12824 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12825 && test "$PACKAGE" != gettext-runtime \
12826 && test "$PACKAGE" != gettext-tools
; }; then
12827 gt_use_preinstalled_gnugettext
=yes
12836 if test -n "$INTL_MACOSX_LIBS"; then
12837 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12838 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
12839 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
12840 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
12844 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12845 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
12847 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12855 $as_echo_n "checking whether to use NLS... " >&6; }
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12857 $as_echo "$USE_NLS" >&6; }
12858 if test "$USE_NLS" = "yes"; then
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12860 $as_echo_n "checking where the gettext function comes from... " >&6; }
12861 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12862 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12863 gt_source
="external libintl"
12868 gt_source
="included intl directory"
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12871 $as_echo "$gt_source" >&6; }
12874 if test "$USE_NLS" = "yes"; then
12876 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12877 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12879 $as_echo_n "checking how to link with libintl... " >&6; }
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12881 $as_echo "$LIBINTL" >&6; }
12883 for element
in $INCINTL; do
12885 for x
in $CPPFLAGS; do
12887 acl_save_prefix
="$prefix"
12888 prefix
="$acl_final_prefix"
12889 acl_save_exec_prefix
="$exec_prefix"
12890 exec_prefix
="$acl_final_exec_prefix"
12892 exec_prefix
="$acl_save_exec_prefix"
12893 prefix
="$acl_save_prefix"
12895 if test "X$x" = "X$element"; then
12900 if test -z "$haveit"; then
12901 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12908 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12911 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12920 INTLLIBS
="$LIBINTL"
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12940 $as_echo_n "checking whether NLS is requested... " >&6; }
12941 if test x
"$USE_NLS" != xyes
; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946 $as_echo "yes" >&6; }
12948 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12952 $as_echo_n "checking for catalogs to be installed... " >&6; }
12953 # Look for .po and .gmo files in the source directory.
12956 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12957 # If there aren't any .gmo files the shell will give us the
12958 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12960 case "$cat" in *\
**)
12963 # The quadruple backslash is collapsed to a double backslash
12964 # by the backticks, then collapsed again by the double quotes,
12965 # leaving us with one backslash in the sed expression (right
12966 # before the dot that mustn't act as a wildcard).
12967 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12968 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12969 # The user is allowed to set LINGUAS to a list of languages to
12970 # install catalogs for. If it's empty that means "all of them."
12971 if test "x$LINGUAS" = x
; then
12972 CATALOGS
="$CATALOGS $cat"
12973 XLINGUAS
="$XLINGUAS $lang"
12975 case "$LINGUAS" in *$lang*)
12976 CATALOGS
="$CATALOGS $cat"
12977 XLINGUAS
="$XLINGUAS $lang"
12982 LINGUAS
="$XLINGUAS"
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12984 $as_echo "$LINGUAS" >&6; }
12997 # Create sub-directories for objects and dependencies.
12998 CONFIG_SRC_SUBDIR
="arch gdbsupport nat target"
13001 ac_config_commands
="$ac_config_commands gdbdepdir"
13004 depcc
="$CC" am_compiler_list
=
13006 am_depcomp
=$ac_aux_dir/depcomp
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13008 $as_echo_n "checking dependency style of $depcc... " >&6; }
13009 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
13010 $as_echo_n "(cached) " >&6
13012 if test -f "$am_depcomp"; then
13013 # We make a subdir and do the tests there. Otherwise we can end up
13014 # making bogus files that we don't know about and never remove. For
13015 # instance it was reported that on HP-UX the gcc test will end up
13016 # making a dummy file named `D' -- because `-MD' means `put the output
13019 # Copy depcomp to subdir because otherwise we won't find it if we're
13020 # using a relative directory.
13021 cp "$am_depcomp" conftest.dir
13023 # We will build objects and dependencies in a subdirectory because
13024 # it helps to detect inapplicable dependency modes. For instance
13025 # both Tru64's cc and ICC support -MD to output dependencies as a
13026 # side effect of compilation, but ICC will put the dependencies in
13027 # the current directory while Tru64 will put them in the object
13031 am_cv_CC_dependencies_compiler_type
=none
13032 if test "$am_compiler_list" = ""; then
13033 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13035 for depmode
in $am_compiler_list; do
13036 if test $depmode = none
; then break; fi
13038 $as_echo "$as_me:$LINENO: trying $depmode" >&5
13039 # Setup a source with many dependencies, because some compilers
13040 # like to wrap large dependency lists on column 80 (with \), and
13041 # we should not choose a depcomp mode which is confused by this.
13043 # We need to recreate these files for each test, as the compiler may
13044 # overwrite some of them when testing with obscure command lines.
13045 # This happens at least with the AIX C compiler.
13047 for i
in 1 2 3 4 5 6; do
13048 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
13049 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13050 # Solaris 8's {/usr,}/bin/sh.
13051 touch sub
/conftst
$i.h
13053 echo "include sub/conftest.Po" > confmf
13055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13056 # mode. It turns out that the SunPro C++ compiler does not properly
13057 # handle `-M -o', and we need to detect this.
13058 depcmd
="depmode=$depmode \
13059 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13061 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
13062 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
13063 if env
$depcmd > conftest.err
2>&1 &&
13064 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
13065 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
13066 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
13067 # icc doesn't choke on unknown options, it will just issue warnings
13068 # or remarks (even with -Werror). So we grep stderr for any message
13069 # that says an option was ignored or not supported.
13070 # When given -MP, icc 7.0 and 7.1 complain thusly:
13071 # icc: Command line warning: ignoring option '-M'; no argument required
13072 # The diagnosis changed in icc 8.0:
13073 # icc: Command line remark: option '-MP' not supported
13074 if (grep 'ignoring option' conftest.err ||
13075 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
13076 am_cv_CC_dependencies_compiler_type
=$depmode
13077 $as_echo "$as_me:$LINENO: success" >&5
13081 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
13082 sed -e 's/^/| /' < conftest.err
>&5
13086 rm -rf conftest.dir
13088 am_cv_CC_dependencies_compiler_type
=none
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13093 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13094 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
13095 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
13096 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
13101 for ac_header
in termios.h sys
/reg.h string.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 ws2tcpip.h
13103 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13104 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13105 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13106 cat >>confdefs.h
<<_ACEOF
13107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13114 for ac_header
in vfork.h
13116 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13117 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13118 cat >>confdefs.h
<<_ACEOF
13119 #define HAVE_VFORK_H 1
13126 for ac_func
in fork vfork
13128 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13129 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13130 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13131 cat >>confdefs.h
<<_ACEOF
13132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13138 if test "x$ac_cv_func_fork" = xyes
; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13140 $as_echo_n "checking for working fork... " >&6; }
13141 if ${ac_cv_func_fork_works+:} false
; then :
13142 $as_echo_n "(cached) " >&6
13144 if test "$cross_compiling" = yes; then :
13145 ac_cv_func_fork_works
=cross
13147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149 $ac_includes_default
13154 /* By Ruediger Kuhlmann. */
13155 return fork () < 0;
13161 if ac_fn_c_try_run
"$LINENO"; then :
13162 ac_cv_func_fork_works
=yes
13164 ac_cv_func_fork_works
=no
13166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13172 $as_echo "$ac_cv_func_fork_works" >&6; }
13175 ac_cv_func_fork_works
=$ac_cv_func_fork
13177 if test "x$ac_cv_func_fork_works" = xcross
; then
13179 *-*-amigaos* |
*-*-msdosdjgpp*)
13180 # Override, as these systems have only a dummy fork() stub
13181 ac_cv_func_fork_works
=no
13184 ac_cv_func_fork_works
=yes
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13188 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13190 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13191 if test "x$ac_cv_func_vfork" = xyes
; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13193 $as_echo_n "checking for working vfork... " >&6; }
13194 if ${ac_cv_func_vfork_works+:} false
; then :
13195 $as_echo_n "(cached) " >&6
13197 if test "$cross_compiling" = yes; then :
13198 ac_cv_func_vfork_works
=cross
13200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202 /* Thanks to Paul Eggert for this test. */
13203 $ac_includes_default
13204 #include <sys/wait.h>
13205 #ifdef HAVE_VFORK_H
13206 # include <vfork.h>
13208 /* On some sparc systems, changes by the child to local and incoming
13209 argument registers are propagated back to the parent. The compiler
13210 is told about this with #include <vfork.h>, but some compilers
13211 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13212 static variable whose address is put into a register that is
13213 clobbered by the vfork. */
13216 sparc_address_test (int arg)
13218 sparc_address_test (arg) int arg;
13221 static pid_t child;
13239 pid_t parent = getpid ();
13242 sparc_address_test (0);
13247 /* Here is another test for sparc vfork register problems. This
13248 test uses lots of local variables, at least as many local
13249 variables as main has allocated so far including compiler
13250 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13251 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13252 reuse the register of parent for one of the local variables,
13253 since it will think that parent can't possibly be used any more
13254 in this routine. Assigning to the local variable will thus
13255 munge parent in the parent process. */
13257 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13258 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13259 /* Convince the compiler that p..p7 are live; otherwise, it might
13260 use the same hardware register for all 8 local variables. */
13261 if (p != p1 || p != p2 || p != p3 || p != p4
13262 || p != p5 || p != p6 || p != p7)
13265 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13266 from child file descriptors. If the child closes a descriptor
13267 before it execs or exits, this munges the parent's descriptor
13268 as well. Test for this by closing stdout in the child. */
13269 _exit(close(fileno(stdout)) != 0);
13274 while (wait(&status) != child)
13277 /* Was there some problem with vforking? */
13280 /* Did the child fail? (This shouldn't happen.) */
13283 /* Did the vfork/compiler bug occur? */
13284 || parent != getpid()
13286 /* Did the file descriptor bug occur? */
13287 || fstat(fileno(stdout), &st) != 0
13292 if ac_fn_c_try_run
"$LINENO"; then :
13293 ac_cv_func_vfork_works
=yes
13295 ac_cv_func_vfork_works
=no
13297 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13298 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13303 $as_echo "$ac_cv_func_vfork_works" >&6; }
13306 if test "x$ac_cv_func_fork_works" = xcross
; then
13307 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13309 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13312 if test "x$ac_cv_func_vfork_works" = xyes
; then
13314 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13318 $as_echo "#define vfork fork" >>confdefs.h
13321 if test "x$ac_cv_func_fork_works" = xyes
; then
13323 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13327 for ac_func
in pread pwrite pread64
13329 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13330 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13331 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13332 cat >>confdefs.h
<<_ACEOF
13333 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13340 # Check the return and argument types of ptrace.
13343 for ac_header
in sys
/ptrace.h ptrace.h
13345 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13346 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13347 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13348 cat >>confdefs.h
<<_ACEOF
13349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13357 gdb_ptrace_headers
='
13358 #include <sys/types.h>
13359 #if HAVE_SYS_PTRACE_H
13360 # include <sys/ptrace.h>
13363 # include <unistd.h>
13367 # Check return type. Varargs (used on GNU/Linux) conflict with the
13368 # empty argument list, so check for that explicitly.
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13370 $as_echo_n "checking return type of ptrace... " >&6; }
13371 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13372 $as_echo_n "(cached) " >&6
13374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376 Â $gdb_ptrace_headers
13380 extern long ptrace (enum __ptrace_request, ...);
13386 if ac_fn_c_try_compile
"$LINENO"; then :
13387 gdb_cv_func_ptrace_ret
='long'
13389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391 $gdb_ptrace_headers
13395 extern int ptrace ();
13401 if ac_fn_c_try_compile
"$LINENO"; then :
13402 gdb_cv_func_ptrace_ret
='int'
13404 gdb_cv_func_ptrace_ret
='long'
13407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13414 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13417 cat >>confdefs.h
<<_ACEOF
13418 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13422 # Check argument types.
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13424 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13425 if ${gdb_cv_func_ptrace_args+:} false
; then :
13426 $as_echo_n "(cached) " >&6
13428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 $gdb_ptrace_headers
13434 extern long ptrace (enum __ptrace_request, ...);
13440 if ac_fn_c_try_compile
"$LINENO"; then :
13441 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13443 for gdb_arg1
in 'int' 'long'; do
13444 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13445 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13446 for gdb_arg4
in 'int' 'long' 'void *'; do
13447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449 $gdb_ptrace_headers
13453 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13459 if ac_fn_c_try_compile
"$LINENO"; then :
13460 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13466 for gdb_arg5
in 'int *' 'int' 'long'; do
13467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h. */
13469 $gdb_ptrace_headers
13473 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13479 if ac_fn_c_try_compile
"$LINENO"; then :
13480 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13490 # Provide a safe default value.
13491 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13498 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13500 ac_save_IFS
=$IFS; IFS
=','
13501 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13505 cat >>confdefs.h
<<_ACEOF
13506 #define PTRACE_TYPE_ARG1 $1
13510 cat >>confdefs.h
<<_ACEOF
13511 #define PTRACE_TYPE_ARG3 $3
13515 cat >>confdefs.h
<<_ACEOF
13516 #define PTRACE_TYPE_ARG4 $4
13519 if test -n "$5"; then
13521 cat >>confdefs.h
<<_ACEOF
13522 #define PTRACE_TYPE_ARG5 $5
13533 # Check whether --with-ust was given.
13534 if test "${with_ust+set}" = set; then :
13539 # Check whether --with-ust_include was given.
13540 if test "${with_ust_include+set}" = set; then :
13541 withval
=$with_ust_include;
13545 # Check whether --with-ust_lib was given.
13546 if test "${with_ust_lib+set}" = set; then :
13547 withval
=$with_ust_lib;
13561 ustlibs
="-L$with_ust/lib -lust"
13562 ustinc
="-I$with_ust/include "
13565 if test "x$with_ust_include" != x
; then
13566 ustinc
="-I$with_ust_include "
13568 if test "x$with_ust_lib" != x
; then
13569 ustlibs
="-L$with_ust_lib -lust"
13572 if test "x$with_ust" != "xno"; then
13573 saved_CFLAGS
="$CFLAGS"
13574 CFLAGS
="$CFLAGS $ustinc"
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
13576 $as_echo_n "checking for ust... " >&6; }
13577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13580 #define CONFIG_UST_GDB_INTEGRATION
13581 #include <ust/ust.h>
13592 if ac_fn_c_try_compile
"$LINENO"; then :
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13594 $as_echo "yes" >&6; };
13596 $as_echo "#define HAVE_UST 1" >>confdefs.h
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13605 CFLAGS
="$saved_CFLAGS"
13608 # Flags needed for UST
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
13615 $as_echo_n "checking the compiler type... " >&6; }
13616 if ${gdb_cv_compiler_type+:} false
; then :
13617 $as_echo_n "(cached) " >&6
13619 gdb_cv_compiler_type
=unknown
13620 if test "$gdb_cv_compiler_type" = unknown
; then
13621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13628 #if !defined __GNUC__ || defined __clang__
13636 if ac_fn_c_try_compile
"$LINENO"; then :
13637 gdb_cv_compiler_type
=gcc
13639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13642 if test "$gdb_cv_compiler_type" = unknown
; then
13643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13658 if ac_fn_c_try_compile
"$LINENO"; then :
13659 gdb_cv_compiler_type
=clang
13661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
13666 $as_echo "$gdb_cv_compiler_type" >&6; }
13668 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
13671 # Check whether --enable-werror was given.
13672 if test "${enable_werror+set}" = set; then :
13673 enableval
=$enable_werror; case "${enableval}" in
13674 yes | y
) ERROR_ON_WARNING
="yes" ;;
13675 no | n
) ERROR_ON_WARNING
="no" ;;
13676 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13681 # Enable -Werror by default when using gcc. Turn it off for releases.
13682 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
13683 ERROR_ON_WARNING
=yes
13687 if test "${ERROR_ON_WARNING}" = yes ; then
13688 WERROR_CFLAGS
="-Werror"
13691 # The options we'll try to enable.
13692 build_warnings
="-Wall -Wpointer-arith \
13693 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
13694 -Wno-switch -Wno-char-subscripts \
13695 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
13696 -Wno-sign-compare -Wno-error=maybe-uninitialized \
13697 -Wno-mismatched-tags \
13698 -Wno-error=deprecated-register \
13699 -Wsuggest-override \
13700 -Wimplicit-fallthrough=5 \
13701 -Wduplicated-cond \
13703 -Wdeprecated-copy \
13704 -Wdeprecated-copy-dtor \
13706 -Wmissing-declarations \
13707 -Wstrict-null-sentinel \
13710 # The -Wmissing-prototypes flag will be accepted by GCC, but results
13711 # in a warning being printed about the flag not being valid for C++,
13712 # this is something to do with using ccache, and argument ordering.
13713 if test "$GDB_COMPILER_TYPE" != gcc
; then
13714 build_warnings
="$build_warnings -Wmissing-prototypes"
13719 # Enable -Wno-format by default when using gcc on mingw since many
13720 # GCC versions complain about %I64.
13721 build_warnings
="$build_warnings -Wno-format" ;;
13723 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
13724 # doesn't understand.
13725 build_warnings
="$build_warnings -Wno-unknown-pragmas"
13726 # Solaris 11 <unistd.h> marks vfork deprecated.
13727 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
13729 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
13730 # but there's a special case for this below.
13731 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
13734 # Check whether --enable-build-warnings was given.
13735 if test "${enable_build_warnings+set}" = set; then :
13736 enableval
=$enable_build_warnings; case "${enableval}" in
13738 no
) build_warnings
="-w";;
13739 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13740 build_warnings
="${build_warnings} ${t}";;
13741 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13742 build_warnings
="${t} ${build_warnings}";;
13743 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13745 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13746 echo "Setting compiler warning flags = $build_warnings" 6>&1
13749 # Check whether --enable-gdb-build-warnings was given.
13750 if test "${enable_gdb_build_warnings+set}" = set; then :
13751 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13753 no
) build_warnings
="-w";;
13754 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13755 build_warnings
="${build_warnings} ${t}";;
13756 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13757 build_warnings
="${t} ${build_warnings}";;
13758 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13760 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13761 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13765 # The set of warnings supported by a C++ compiler is not the same as
13766 # of the C compiler.
13768 ac_cpp
='$CXXCPP $CPPFLAGS'
13769 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13770 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13771 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13775 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13778 $as_echo_n "checking compiler warning flags... " >&6; }
13779 # Separate out the -Werror flag as some files just cannot be
13780 # compiled with it enabled.
13781 for w
in ${build_warnings}; do
13782 # GCC does not complain about -Wno-unknown-warning. Invert
13783 # and test -Wunknown-warning instead.
13786 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
13787 -Wformat-nonliteral)
13788 # gcc requires -Wformat before -Wformat-nonliteral
13789 # will work, so stick them together.
13798 -Werr*) WERROR_CFLAGS
=-Werror ;;
13800 # Check whether GCC accepts it.
13801 saved_CFLAGS
="$CFLAGS"
13802 CFLAGS
="$CFLAGS -Werror $wtest"
13803 saved_CXXFLAGS
="$CXXFLAGS"
13804 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
13805 if test "x$w" = "x-Wunused-variable"; then
13806 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
13807 # fixed in GCC 4.9. This test is derived from the gdb
13808 # source code that triggered this bug in GCC.
13809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 struct scoped_restore_base {};
13812 struct scoped_restore_tmpl : public scoped_restore_base {
13813 ~scoped_restore_tmpl() {}
13818 const scoped_restore_base &b = scoped_restore_tmpl();
13824 if ac_fn_cxx_try_compile
"$LINENO"; then :
13825 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13840 if ac_fn_cxx_try_compile
"$LINENO"; then :
13841 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13845 CFLAGS
="$saved_CFLAGS"
13846 CXXFLAGS
="$saved_CXXFLAGS"
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13850 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13856 ac_cpp='$CPP $CPPFLAGS'
13857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13865 for ac_func in dladdr
13867 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
13868 if test "x
$ac_cv_func_dladdr" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_DLADDR 1
13878 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
13879 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
13885 cat >>confdefs.h <<_ACEOF
13886 #define HAVE_DECL_FFS $ac_have_decl
13889 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
13890 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
13896 cat >>confdefs.h <<_ACEOF
13897 #define HAVE_DECL_ASPRINTF $ac_have_decl
13900 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
13901 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
13907 cat >>confdefs.h <<_ACEOF
13908 #define HAVE_DECL_VASPRINTF $ac_have_decl
13911 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
13912 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
13918 cat >>confdefs.h <<_ACEOF
13919 #define HAVE_DECL_SNPRINTF $ac_have_decl
13922 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
13923 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
13929 cat >>confdefs.h <<_ACEOF
13930 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13933 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
13934 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
13940 cat >>confdefs.h <<_ACEOF
13941 #define HAVE_DECL_STRTOL $ac_have_decl
13944 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
13945 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
13951 cat >>confdefs.h <<_ACEOF
13952 #define HAVE_DECL_STRTOUL $ac_have_decl
13955 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
13956 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
13962 cat >>confdefs.h <<_ACEOF
13963 #define HAVE_DECL_STRTOLL $ac_have_decl
13966 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
13967 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
13973 cat >>confdefs.h <<_ACEOF
13974 #define HAVE_DECL_STRTOULL $ac_have_decl
13977 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
13978 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
13984 cat >>confdefs.h <<_ACEOF
13985 #define HAVE_DECL_STRVERSCMP $ac_have_decl
13988 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
13989 if test "x
$ac_cv_type_long_long" = xyes; then :
13991 cat >>confdefs.h <<_ACEOF
13992 #define HAVE_LONG_LONG 1
13995 # The cast to long int works around a bug in the HP C Compiler
13996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13998 # This bug is HP SR number 8606223364.
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
14000 $as_echo_n "checking size of long long...
" >&6; }
14001 if ${ac_cv_sizeof_long_long+:} false; then :
14002 $as_echo_n "(cached
) " >&6
14004 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
14007 if test "$ac_cv_type_long_long" = yes; then
14008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
14009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14010 as_fn_error 77 "cannot compute sizeof (long long)
14011 See \`config.log' for more details
" "$LINENO" 5; }
14013 ac_cv_sizeof_long_long=0
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
14019 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14023 cat >>confdefs.h <<_ACEOF
14024 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14031 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
14032 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
14033 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
14039 cat >>confdefs.h <<_ACEOF
14040 #define HAVE_DECL_BASENAME $ac_have_decl
14048 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
14049 if test "x
$ac_cv_have_decl_perror" = xyes; then :
14055 cat >>confdefs.h <<_ACEOF
14056 #define HAVE_DECL_PERROR $ac_have_decl
14058 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
14059 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
14065 cat >>confdefs.h <<_ACEOF
14066 #define HAVE_DECL_VASPRINTF $ac_have_decl
14068 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
14069 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14080 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
14081 #if HAVE_SYS_SOCKET_H
14082 # include <sys/socket.h>
14083 #elif HAVE_WS2TCPIP_H
14084 # include <ws2tcpip.h>
14088 if test "x
$ac_cv_type_socklen_t" = xyes; then :
14090 cat >>confdefs.h <<_ACEOF
14091 #define HAVE_SOCKLEN_T 1
14098 case "${target}" in
14100 # Starting with NDK version 9, <elf.h> actually includes definitions
14101 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
14102 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
14103 # leading to conflicts with the defintions from <linux/elf.h>.
14104 # This makes it impossible for us to include both <elf.h> and
14105 # <linux/elf.h>, which means that, in practice, we do not have
14106 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
14107 # Therefore, do not try to auto-detect availability, as it would
14108 # get it wrong on this platform.
14111 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
14114 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
14116 cat >>confdefs.h <<_ACEOF
14117 #define HAVE_ELF32_AUXV_T 1
14122 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
14125 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_ELF64_AUXV_T 1
14138 # Check whether --with-pkgversion was given.
14139 if test "${with_pkgversion+set}" = set; then :
14140 withval=$with_pkgversion; case "$withval" in
14141 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
14143 *) PKGVERSION="($withval) " ;;
14146 PKGVERSION="(GDB
) "
14154 # Check whether --with-bugurl was given.
14155 if test "${with_bugurl+set}" = set; then :
14156 withval=$with_bugurl; case "$withval" in
14157 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
14160 *) BUGURL="$withval"
14164 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
14174 REPORT_BUGS_TO="<$BUGURL>"
14175 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
14182 cat >>confdefs.h <<_ACEOF
14183 #define PKGVERSION "$PKGVERSION"
14187 cat >>confdefs.h <<_ACEOF
14188 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
14192 # Check for various supplementary target information (beyond the
14193 # triplet) which might affect the choices in configure.srv.
14194 case "${target}" in
14195 i[34567]86-*-linux*)
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
14197 $as_echo_n "checking
if building
for x86-64...
" >&6; }
14198 if ${gdb_cv_i386_is_x86_64+:} false; then :
14199 $as_echo_n "(cached
) " >&6
14201 save_CPPFLAGS="$CPPFLAGS"
14202 CPPFLAGS="$CPPFLAGS $CFLAGS"
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14211 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14212 $EGREP "got it
" >/dev/null 2>&1; then :
14213 gdb_cv_i386_is_x86_64=yes
14215 gdb_cv_i386_is_x86_64=no
14219 CPPFLAGS="$save_CPPFLAGS"
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
14222 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
14227 $as_echo_n "checking
if building
for x32...
" >&6; }
14228 if ${gdb_cv_x86_is_x32+:} false; then :
14229 $as_echo_n "(cached
) " >&6
14231 save_CPPFLAGS="$CPPFLAGS"
14232 CPPFLAGS="$CPPFLAGS $CFLAGS"
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14236 #if __x86_64__ && __ILP32__
14241 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14242 $EGREP "got it
" >/dev/null 2>&1; then :
14243 gdb_cv_x86_is_x32=yes
14245 gdb_cv_x86_is_x32=no
14249 CPPFLAGS="$save_CPPFLAGS"
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
14252 $as_echo "$gdb_cv_x86_is_x32" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
14257 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
14258 if ${gdb_cv_m68k_is_coldfire+:} false; then :
14259 $as_echo_n "(cached
) " >&6
14261 save_CPPFLAGS="$CPPFLAGS"
14262 CPPFLAGS="$CPPFLAGS $CFLAGS"
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14266 #ifdef __mcoldfire__
14271 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14272 $EGREP "got it
" >/dev/null 2>&1; then :
14273 gdb_cv_m68k_is_coldfire=yes
14275 gdb_cv_m68k_is_coldfire=no
14279 CPPFLAGS="$save_CPPFLAGS"
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
14282 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
14286 . ${srcdir}/configure.srv
14288 if test "${srv_mingwce}" = "yes"; then
14290 elif test "${srv_mingw}" = "yes"; then
14291 # WIN32APILIBS is set by GDB_AC_COMMON.
14292 LIBS="$LIBS $WIN32APILIBS"
14295 if test "${srv_linux_usrregs}" = "yes"; then
14297 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
14301 if test "${srv_linux_regsets}" = "yes"; then
14303 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14307 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14308 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
14309 $as_echo_n "(cached) " >&6
14311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 #include <sys/ptrace.h>
14322 if ac_fn_c_try_compile
"$LINENO"; then :
14323 gdbsrv_cv_have_ptrace_getregs
=yes
14325 gdbsrv_cv_have_ptrace_getregs
=no
14328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
14333 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
14334 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
14336 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14341 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14342 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
14343 $as_echo_n "(cached) " >&6
14345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14347 #include <sys/ptrace.h>
14356 if ac_fn_c_try_compile
"$LINENO"; then :
14357 gdbsrv_cv_have_ptrace_getfpxregs
=yes
14359 gdbsrv_cv_have_ptrace_getfpxregs
=no
14362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
14367 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
14368 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
14370 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14375 if test "${srv_linux_btrace}" = "yes"; then
14377 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
14381 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
14383 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
14384 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
14385 $as_echo_n "(cached) " >&6
14387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389 #include <thread_db.h>
14398 if ac_fn_c_try_compile
"$LINENO"; then :
14399 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
14401 gdbserver_cv_have_thread_db_type_lwpid_t
=no
14404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14408 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
14410 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
14414 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
14418 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
14420 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
14421 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
14422 $as_echo_n "(cached) " >&6
14424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 #include <thread_db.h>
14435 if ac_fn_c_try_compile
"$LINENO"; then :
14436 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
14438 gdbserver_cv_have_thread_db_type_psaddr_t
=no
14441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14445 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
14447 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
14451 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14458 if ${ac_cv_lib_dl_dlopen+:} false
; then :
14459 $as_echo_n "(cached) " >&6
14461 ac_check_lib_save_LIBS
=$LIBS
14463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14464 /* end confdefs.h. */
14466 /* Override any GCC internal prototype to avoid an error.
14467 Use char because int might match the return type of a GCC
14468 builtin and then its argument prototype would still apply. */
14481 if ac_fn_c_try_link
"$LINENO"; then :
14482 ac_cv_lib_dl_dlopen
=yes
14484 ac_cv_lib_dl_dlopen
=no
14486 rm -f core conftest.err conftest.
$ac_objext \
14487 conftest
$ac_exeext conftest.
$ac_ext
14488 LIBS
=$ac_check_lib_save_LIBS
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14491 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14492 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
14493 cat >>confdefs.h
<<_ACEOF
14494 #define HAVE_LIBDL 1
14503 srv_thread_depfiles
=
14506 if test "$srv_linux_thread_db" = "yes"; then
14507 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14510 $as_echo_n "checking for the dynamic export flag... " >&6; }
14511 old_LDFLAGS
="$LDFLAGS"
14512 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
14514 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14515 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14527 if ac_fn_c_try_link
"$LINENO"; then :
14528 found
="-Wl,--dynamic-list"
14529 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14531 RDYNAMIC
="-rdynamic"
14532 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
14533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14544 if ac_fn_c_try_link
"$LINENO"; then :
14551 rm -f core conftest.err conftest.
$ac_objext \
14552 conftest
$ac_exeext conftest.
$ac_ext
14555 rm -f core conftest.err conftest.
$ac_objext \
14556 conftest
$ac_exeext conftest.
$ac_ext
14558 LDFLAGS
="$old_LDFLAGS"
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14560 $as_echo "$found" >&6; }
14562 srv_libs
="-lthread_db"
14565 srv_thread_depfiles
="thread-db.o proc-service.o"
14567 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
14570 $as_echo_n "checking for TD_VERSION... " >&6; }
14571 if ${gdbsrv_cv_have_td_version+:} false
; then :
14572 $as_echo_n "(cached) " >&6
14574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14576 #include <thread_db.h>
14585 if ac_fn_c_try_compile
"$LINENO"; then :
14586 gdbsrv_cv_have_td_version
=yes
14588 gdbsrv_cv_have_td_version
=no
14591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
14595 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
14596 if test "$gdbsrv_cv_have_td_version" = yes; then
14598 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
14604 # Check whether --with-libthread-db was given.
14605 if test "${with_libthread_db+set}" = set; then :
14606 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
14607 srv_libs
="$srv_libthread_db_path"
14612 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
14614 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
14618 if test "$srv_xmlfiles" != ""; then
14619 srv_xmlbuiltin
="xml-builtin.o"
14621 $as_echo "#define USE_XML 1" >>confdefs.h
14624 tmp_xmlfiles
=$srv_xmlfiles
14626 for f
in $tmp_xmlfiles; do
14627 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
14631 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
14632 GDBSERVER_LIBS
="$srv_libs"
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
14635 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
14636 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
14637 $as_echo_n "(cached) " >&6
14639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14646 bar = __sync_val_compare_and_swap(&foo, 0, 1);
14652 if ac_fn_c_try_link
"$LINENO"; then :
14653 gdbsrv_cv_have_sync_builtins
=yes
14655 gdbsrv_cv_have_sync_builtins
=no
14658 rm -f core conftest.err conftest.
$ac_objext \
14659 conftest
$ac_exeext conftest.
$ac_ext
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
14663 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
14664 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
14666 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
14670 saved_cflags
="$CFLAGS"
14671 CFLAGS
="$CFLAGS -fvisibility=hidden"
14672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14683 if ac_fn_c_try_compile
"$LINENO"; then :
14684 gdbsrv_cv_have_visibility_hidden
=yes
14686 gdbsrv_cv_have_visibility_hidden
=no
14688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14689 CFLAGS
="$saved_cflags"
14694 # check whether to enable the inprocess agent
14695 if test "$ipa_obj" != "" \
14696 -a "$gdbsrv_cv_have_sync_builtins" = yes \
14697 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
14703 # Check whether --enable-inprocess-agent was given.
14704 if test "${enable_inprocess_agent+set}" = set; then :
14705 enableval
=$enable_inprocess_agent; case "$enableval" in
14706 yes) want_ipa
=true
;;
14707 no
) want_ipa
=false
;;
14708 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
14715 if $want_ipa ; then
14716 if $have_ipa ; then
14717 IPA_DEPFILES
="$ipa_obj"
14718 extra_libraries
="$extra_libraries libinproctrace.so"
14720 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
14731 GNULIB
=..
/gnulib
/import
14734 if test x
"$STDINT_H" != x
; then
14735 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
14739 ac_config_files
="$ac_config_files Makefile"
14742 cat >confcache
<<\_ACEOF
14743 # This file is a shell script that caches the results of configure
14744 # tests run on this system so they can be shared between configure
14745 # scripts and configure runs, see configure's option --config-cache.
14746 # It is not useful on other systems. If it contains results you don't
14747 # want to keep, you may remove or edit it.
14749 # config.status only pays attention to the cache file if you give it
14750 # the --recheck option to rerun configure.
14752 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14753 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14754 # following values.
14758 # The following way of writing the cache mishandles newlines in values,
14759 # but we know of no workaround that is simple, portable, and efficient.
14760 # So, we kill variables containing newlines.
14761 # Ultrix sh set writes to stderr and can't be redirected directly,
14762 # and sets the high bit in the cache file unless we assign to the vars.
14764 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14765 eval ac_val
=\$
$ac_var
14769 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14770 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14773 _ | IFS | as_nl
) ;; #(
14774 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14775 *) { eval $ac_var=; unset $ac_var;} ;;
14781 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14782 *${as_nl}ac_space
=\
*)
14783 # `set' does not quote correctly, so add quotes: double-quote
14784 # substitution turns \\\\ into \\, and sed turns \\ into \.
14787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14790 # `set' quotes correctly as required by POSIX, so do not add quotes.
14791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14800 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14802 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14804 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14805 if test -w "$cache_file"; then
14806 if test "x$cache_file" != "x/dev/null"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14808 $as_echo "$as_me: updating cache $cache_file" >&6;}
14809 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14810 cat confcache
>"$cache_file"
14812 case $cache_file in #(
14814 mv -f confcache
"$cache_file"$$
&&
14815 mv -f "$cache_file"$$
"$cache_file" ;; #(
14817 mv -f confcache
"$cache_file" ;;
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14823 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14828 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14829 # Let make expand exec_prefix.
14830 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14832 DEFS
=-DHAVE_CONFIG_H
14837 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14838 # 1. Remove the extension, and $U if already installed.
14839 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14840 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14842 # will be set to the directory where LIBOBJS objects are built.
14843 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14844 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14846 LIBOBJS
=$ac_libobjs
14848 LTLIBOBJS
=$ac_ltlibobjs
14851 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14852 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
14853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14856 : "${CONFIG_STATUS=./config.status}"
14858 ac_clean_files_save
=$ac_clean_files
14859 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14861 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14863 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14865 # Generated by $as_me.
14866 # Run this file to recreate the current configuration.
14867 # Compiler output produced by configure, useful for debugging
14868 # configure, is in config.log if it exists.
14871 ac_cs_recheck=false
14874 SHELL=\${CONFIG_SHELL-$SHELL}
14877 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14878 ## -------------------- ##
14879 ## M4sh Initialization. ##
14880 ## -------------------- ##
14882 # Be more Bourne compatible
14883 DUALCASE
=1; export DUALCASE
# for MKS sh
14884 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14887 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14888 # is contrary to our usage. Disable this feature.
14889 alias -g '${1+"$@"}'='"$@"'
14890 setopt NO_GLOB_SUBST
14892 case `(set -o) 2>/dev/null` in #(
14904 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14905 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14908 # Prefer a ksh shell builtin over an external printf program on Solaris,
14909 # but without wasting forks for bash or zsh.
14910 if test -z "$BASH_VERSION$ZSH_VERSION" \
14911 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14912 as_echo='print
-r --'
14913 as_echo_n='print
-rn --'
14914 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14915 as_echo='printf %s
\n'
14916 as_echo_n='printf %s
'
14918 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14919 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14920 as_echo_n='/usr
/ucb
/echo -n'
14922 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14923 as_echo_n_body='eval
14927 expr "X$arg" : "X\\(.*\\)$as_nl";
14928 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14930 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14932 export as_echo_n_body
14933 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14935 export as_echo_body
14936 as_echo='sh
-c $as_echo_body as_echo
'
14939 # The user is always right.
14940 if test "${PATH_SEPARATOR+set}" != set; then
14942 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14943 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14950 # We need space, tab and new line, in precisely that order. Quoting is
14951 # there to prevent editors from complaining about space-tab.
14952 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14953 # splitting by setting IFS to empty value.)
14956 # Find who we are. Look in the path if we contain no directory separator.
14959 *[\\/]* ) as_myself=$0 ;;
14960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14961 for as_dir in $PATH
14964 test -z "$as_dir" && as_dir=.
14965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14971 # We did not find ourselves, most probably we were run as `sh COMMAND'
14972 # in which case we are not to be found in the path.
14973 if test "x$as_myself" = x
; then
14976 if test ! -f "$as_myself"; then
14977 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14981 # Unset variables that we do not need and which cause bugs (e.g. in
14982 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14983 # suppresses any "Segmentation fault" message there. '((' could
14984 # trigger a bug in pdksh 5.2.14.
14985 for as_var
in BASH_ENV ENV MAIL MAILPATH
14986 do eval test x\
${$as_var+set} = xset \
14987 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15000 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15003 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15004 # ----------------------------------------
15005 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15006 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15007 # script with STATUS, using 1 if that was 0.
15010 as_status
=$1; test $as_status -eq 0 && as_status
=1
15012 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15013 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15015 $as_echo "$as_me: error: $2" >&2
15016 as_fn_exit
$as_status
15020 # as_fn_set_status STATUS
15021 # -----------------------
15022 # Set $? to STATUS, without forking.
15023 as_fn_set_status
()
15026 } # as_fn_set_status
15028 # as_fn_exit STATUS
15029 # -----------------
15030 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15034 as_fn_set_status
$1
15040 # Portably unset VAR.
15043 { eval $1=; unset $1;}
15045 as_unset
=as_fn_unset
15046 # as_fn_append VAR VALUE
15047 # ----------------------
15048 # Append the text in VALUE to the end of the definition contained in VAR. Take
15049 # advantage of any shell optimizations that allow amortized linear growth over
15050 # repeated appends, instead of the typical quadratic growth present in naive
15052 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15053 eval 'as_fn_append ()
15064 # as_fn_arith ARG...
15065 # ------------------
15066 # Perform arithmetic evaluation on the ARGs, and store the result in the
15067 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15068 # must be portable across $(()) and expr.
15069 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15070 eval 'as_fn_arith ()
15077 as_val
=`expr "$@" || test $? -eq 1`
15082 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15083 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15089 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15090 as_basename
=basename
15095 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15101 as_me
=`$as_basename -- "$0" ||
15102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15103 X"$0" : 'X\(//\)$' \| \
15104 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15106 sed '/^.*\/\([^/][^/]*\)\/*$/{
15120 # Avoid depending upon Character Ranges.
15121 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15122 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15123 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15124 as_cr_digits
='0123456789'
15125 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15127 ECHO_C
= ECHO_N
= ECHO_T
=
15128 case `echo -n x` in #(((((
15130 case `echo 'xy\c'` in
15131 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15133 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15140 rm -f conf$$ conf$$.exe conf$$.
file
15141 if test -d conf$$.dir
; then
15142 rm -f conf$$.dir
/conf$$.
file
15145 mkdir conf$$.dir
2>/dev
/null
15147 if (echo >conf$$.
file) 2>/dev
/null
; then
15148 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15150 # ... but there are two gotchas:
15151 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15152 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15153 # In both cases, we have to default to `cp -pR'.
15154 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15156 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15164 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15165 rmdir conf$$.dir
2>/dev
/null
15170 # Create "$as_dir" as a directory, including parents if necessary.
15175 -*) as_dir
=.
/$as_dir;;
15177 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15181 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15182 *) as_qdir
=$as_dir;;
15184 as_dirs
="'$as_qdir' $as_dirs"
15185 as_dir
=`$as_dirname -- "$as_dir" ||
15186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15187 X"$as_dir" : 'X\(//\)[^/]' \| \
15188 X"$as_dir" : 'X\(//\)$' \| \
15189 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15190 $as_echo X"$as_dir" |
15191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15195 /^X\(\/\/\)[^/].*/{
15208 test -d "$as_dir" && break
15210 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15211 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15215 if mkdir
-p .
2>/dev
/null
; then
15216 as_mkdir_p
='mkdir -p "$as_dir"'
15218 test -d .
/-p && rmdir .
/-p
15223 # as_fn_executable_p FILE
15224 # -----------------------
15225 # Test if FILE is an executable regular file.
15226 as_fn_executable_p
()
15228 test -f "$1" && test -x "$1"
15229 } # as_fn_executable_p
15230 as_test_x
='test -x'
15231 as_executable_p
=as_fn_executable_p
15233 # Sed expression to map a string onto a valid CPP name.
15234 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15236 # Sed expression to map a string onto a valid variable name.
15237 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15241 ## ----------------------------------- ##
15242 ## Main body of $CONFIG_STATUS script. ##
15243 ## ----------------------------------- ##
15245 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15248 # Save the log message, to keep $0 and so on meaningful, and to
15249 # report actual input values of CONFIG_FILES etc. instead of their
15250 # values after options handling.
15252 This file was extended by $as_me, which was
15253 generated by GNU Autoconf 2.69. Invocation command line was
15255 CONFIG_FILES = $CONFIG_FILES
15256 CONFIG_HEADERS = $CONFIG_HEADERS
15257 CONFIG_LINKS = $CONFIG_LINKS
15258 CONFIG_COMMANDS = $CONFIG_COMMANDS
15261 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15266 case $ac_config_files in *"
15267 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15270 case $ac_config_headers in *"
15271 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15276 # Files that config.status was made for.
15277 config_files="$ac_config_files"
15278 config_headers="$ac_config_headers"
15279 config_commands="$ac_config_commands"
15283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15285 \`$as_me' instantiates files and other configuration actions
15286 from templates according to the current configuration. Unless the files
15287 and actions are specified as TAGs, all are instantiated by default.
15289 Usage: $0 [OPTION]... [TAG]...
15291 -h, --help print this help, then exit
15292 -V, --version print version number and configuration settings, then exit
15293 --config print configuration, then exit
15294 -q, --quiet, --silent
15295 do not print progress messages
15296 -d, --debug don't remove temporary files
15297 --recheck update $as_me by reconfiguring in the same conditions
15298 --file=FILE[:TEMPLATE]
15299 instantiate the configuration file FILE
15300 --header=FILE[:TEMPLATE]
15301 instantiate the configuration header FILE
15303 Configuration files:
15306 Configuration headers:
15309 Configuration commands:
15312 Report bugs to the package provider."
15315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15316 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15319 configured by $0, generated by GNU Autoconf 2.69,
15320 with options \\"\$ac_cs_config\\"
15322 Copyright (C) 2012 Free Software Foundation, Inc.
15323 This config.status script is free software; the Free Software Foundation
15324 gives unlimited permission to copy, distribute and modify it."
15329 test -n "\$AWK" || AWK=awk
15332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15333 # The default lists apply if the user does not specify any file.
15339 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15340 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15344 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15356 # Handling of the options.
15357 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15359 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15360 $as_echo "$ac_cs_version"; exit ;;
15361 --config |
--confi |
--conf |
--con |
--co |
--c )
15362 $as_echo "$ac_cs_config"; exit ;;
15363 --debug |
--debu |
--deb |
--de |
--d |
-d )
15365 --file |
--fil |
--fi |
--f )
15368 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15369 '') as_fn_error $?
"missing file argument" ;;
15371 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15372 ac_need_defaults
=false
;;
15373 --header |
--heade |
--head |
--hea )
15376 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15378 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15379 ac_need_defaults
=false
;;
15381 # Conflict between --help and --header
15382 as_fn_error $?
"ambiguous option: \`$1'
15383 Try \`$0 --help' for more information.";;
15384 --help |
--hel |
-h )
15385 $as_echo "$ac_cs_usage"; exit ;;
15386 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15387 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15390 # This is an error.
15391 -*) as_fn_error $?
"unrecognized option: \`$1'
15392 Try \`$0 --help' for more information." ;;
15394 *) as_fn_append ac_config_targets
" $1"
15395 ac_need_defaults
=false
;;
15401 ac_configure_extra_args
=
15403 if $ac_cs_silent; then
15405 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15410 if \$ac_cs_recheck; then
15411 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15413 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15414 CONFIG_SHELL='$SHELL'
15415 export CONFIG_SHELL
15420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15425 ## Running $as_me. ##
15431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15435 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15436 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15437 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15439 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15440 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15441 LINGUAS="${LINGUAS-%UNSET%}"
15443 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
15447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15449 # Handling of arguments.
15450 for ac_config_target
in $ac_config_targets
15452 case $ac_config_target in
15453 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
15454 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
15455 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
15456 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
15457 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15459 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15464 # If the user did not use the arguments to specify the items to instantiate,
15465 # then the envvar interface is used. Set only those that are not.
15466 # We use the long form for the default assignment because of an extremely
15467 # bizarre bug on SunOS 4.1.3.
15468 if $ac_need_defaults; then
15469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15474 # Have a temporary directory for convenience. Make it in the build tree
15475 # simply because there is no reason against having it here, and in addition,
15476 # creating and moving files from /tmp can sometimes cause problems.
15477 # Hook for its removal unless debugging.
15478 # Note that there is a small window in which the directory will not be cleaned:
15479 # after its creation but before its name has been assigned to `$tmp'.
15483 trap 'exit_status=$?
15484 : "${ac_tmp:=$tmp}"
15485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15487 trap 'as_fn_exit 1' 1 2 13 15
15489 # Create a (secure) tmp directory for tmp files.
15492 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15496 tmp
=.
/conf$$
-$RANDOM
15497 (umask 077 && mkdir
"$tmp")
15498 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15501 # Set up the scripts for CONFIG_FILES section.
15502 # No need to generate them if there are no CONFIG_FILES.
15503 # This happens for instance with `./config.status config.h'.
15504 if test -n "$CONFIG_FILES"; then
15507 ac_cr
=`echo X | tr X '\015'`
15508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15509 # But we know of no other shell where ac_cr would be empty at this
15510 # point, so we can use a bashism as a fallback.
15511 if test "x$ac_cr" = x
; then
15512 eval ac_cr
=\$
\'\\r
\'
15514 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15518 ac_cs_awk_cr
=$ac_cr
15521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15526 echo "cat >conf$$subs.awk <<_ACEOF" &&
15527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15529 } >conf$$subs.sh ||
15530 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15533 for ac_last_try in false false false false false :; do
15534 . ./conf$$subs.sh ||
15535 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15537 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15538 if test $ac_delim_n = $ac_delim_num; then
15540 elif $ac_last_try; then
15541 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15543 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15546 rm -f conf$$subs.sh
15548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15549 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15553 s/^/S["/; s
/!.
*/"]=/
15563 s/\(.\{148\}\)..*/\1/
15565 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15570 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15577 s/\(.\{148\}\)..*/\1/
15579 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15583 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15588 ' <conf$$subs.awk | sed '
15593 ' >>$CONFIG_STATUS || ac_write_fail=1
15594 rm -f conf$$subs.awk
15595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15597 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15598 for (key in S) S_is_set[key] = 1
15604 nfields = split(line, field, "@
")
15606 len = length(field[1])
15607 for (i = 2; i < nfields; i++) {
15609 keylen = length(key)
15610 if (S_is_set[key]) {
15612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15613 len += length(value) + length(field[++i])
15624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15625 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15626 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15629 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15630 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15635 # trailing colons and then remove the whole line if VPATH becomes empty
15636 # (actually we leave an empty line to preserve line numbers).
15637 if test "x
$srcdir" = x.; then
15638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15657 fi # test -n "$CONFIG_FILES"
15659 # Set up the scripts for CONFIG_HEADERS section.
15660 # No need to generate them if there are no CONFIG_HEADERS.
15661 # This happens for instance with `./config.status Makefile'.
15662 if test -n "$CONFIG_HEADERS"; then
15663 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15667 # Transform confdefs.h into an awk script `defines.awk', embedded as
15668 # here-document in config.status, that substitutes the proper values into
15669 # config.h.in to produce config.h.
15671 # Create a delimiter string that does not exist in confdefs.h, to ease
15672 # handling of long lines.
15674 for ac_last_try in false false :; do
15675 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15676 if test -z "$ac_tt"; then
15678 elif $ac_last_try; then
15679 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15681 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15685 # For the awk script, D is an array of macro values keyed by name,
15686 # likewise P contains macro parameters if any. Preserve backslash
15687 # newline sequences.
15689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15691 s/.\{148\}/&'"$ac_delim"'/g
15694 s/^[ ]*#[ ]*define[ ][ ]*/ /
15701 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15703 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15708 D["\
1"]=" \
3\\\\\\n
"\\/p
15710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15715 s/.\{148\}/&'"$ac_delim"'/g
15720 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15723 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15725 ' <confdefs.h | sed '
15726 s/'"$ac_delim"'/"\\\
15727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730 for (key in D) D_is_set[key] = 1
15733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15735 split(line, arg, " ")
15736 if (arg[1] == "#") {
15740 defundef
= substr
(arg
[1], 2)
15743 split(mac1
, mac2
, "(") #)
15745 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15746 if (D_is_set
[macro
]) {
15747 # Preserve the white space surrounding the "#".
15748 print prefix
"define", macro P
[macro
] D
[macro
]
15751 # Replace #undef with comments. This is necessary, for example,
15752 # in the case of _POSIX_SOURCE, which is predefined and required
15753 # on some systems where configure will not decide to define it.
15754 if (defundef
== "undef") {
15755 print
"/*", prefix defundef
, macro
, "*/"
15763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15764 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
15765 fi # test -n "$CONFIG_HEADERS"
15768 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15773 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15775 case $ac_mode$ac_tag in
15777 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15778 :[FH
]-) ac_tag
=-:-;;
15779 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15796 -) ac_f
="$ac_tmp/stdin";;
15797 *) # Look for the file first in the build tree, then in the source tree
15798 # (if the path is not absolute). The absolute path cannot be DOS-style,
15799 # because $ac_f cannot contain `:'.
15803 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15805 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15807 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15808 as_fn_append ac_file_inputs
" '$ac_f'"
15811 # Let's still pretend it is `configure' which instantiates (i.e., don't
15812 # use $as_me), people would be surprised to read:
15813 # /* config.h. Generated by config.status. */
15814 configure_input
='Generated from '`
15815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15817 if test x
"$ac_file" != x-
; then
15818 configure_input
="$ac_file. $configure_input"
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15820 $as_echo "$as_me: creating $ac_file" >&6;}
15822 # Neutralize special characters interpreted by sed in replacement strings.
15823 case $configure_input in #(
15824 *\
&* |
*\|
* |
*\\* )
15825 ac_sed_conf_input
=`$as_echo "$configure_input" |
15826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15827 *) ac_sed_conf_input
=$configure_input;;
15831 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15832 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15837 ac_dir
=`$as_dirname -- "$ac_file" ||
15838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15839 X"$ac_file" : 'X\(//\)[^/]' \| \
15840 X"$ac_file" : 'X\(//\)$' \| \
15841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15842 $as_echo X"$ac_file" |
15843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15847 /^X\(\/\/\)[^/].*/{
15860 as_dir
="$ac_dir"; as_fn_mkdir_p
15864 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15866 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15867 # A ".." for each directory in $ac_dir_suffix.
15868 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15869 case $ac_top_builddir_sub in
15870 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15871 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15874 ac_abs_top_builddir
=$ac_pwd
15875 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15876 # for backward compatibility:
15877 ac_top_builddir
=$ac_top_build_prefix
15880 .
) # We are building in place.
15882 ac_top_srcdir
=$ac_top_builddir_sub
15883 ac_abs_top_srcdir
=$ac_pwd ;;
15884 [\\/]* | ?
:[\\/]* ) # Absolute name.
15885 ac_srcdir
=$srcdir$ac_dir_suffix;
15886 ac_top_srcdir
=$srcdir
15887 ac_abs_top_srcdir
=$srcdir ;;
15888 *) # Relative name.
15889 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15890 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15891 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15893 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15903 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15904 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15909 # If the template does not know about datarootdir, expand it.
15910 # FIXME: This hack should be removed a few years after 2.60.
15911 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15922 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15923 *datarootdir
*) ac_datarootdir_seen
=yes;;
15924 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15926 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15929 ac_datarootdir_hack='
15930 s&@datadir@&$datadir&g
15931 s&@docdir@&$docdir&g
15932 s&@infodir@&$infodir&g
15933 s&@localedir@&$localedir&g
15934 s&@mandir@&$mandir&g
15935 s&\\\${datarootdir}&$datarootdir&g' ;;
15939 # Neutralize VPATH when `$srcdir' = `.'.
15940 # Shell code in configure.ac might set extrasub.
15941 # FIXME: do we really want to maintain this feature?
15942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15943 ac_sed_extra="$ac_vpsub
15946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15948 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15949 s|@configure_input@|
$ac_sed_conf_input|
;t t
15950 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15951 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15952 s
&@srcdir@
&$ac_srcdir&;t t
15953 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15954 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15955 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15956 s
&@builddir@
&$ac_builddir&;t t
15957 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15958 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15959 s
&@INSTALL@
&$ac_INSTALL&;t t
15960 $ac_datarootdir_hack
15962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15963 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15966 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15968 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15970 which seems to be undefined. Please make sure it is defined" >&5
15971 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15972 which seems to be undefined. Please make sure it is defined" >&2;}
15974 rm -f "$ac_tmp/stdin"
15976 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15977 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15985 if test x"$ac_file" != x-; then
15987 $as_echo "/* $configure_input */" \
15988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15989 } >"$ac_tmp/config.h" \
15990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15991 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15993 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15996 mv "$ac_tmp/config.h" "$ac_file" \
15997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16000 $as_echo "/* $configure_input */" \
16001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16002 || as_fn_error $? "could not create -" "$LINENO" 5
16006 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16007 $as_echo "$as_me: executing $ac_file commands" >&6;}
16012 case $ac_file$ac_mode in
16013 "config.h":H) echo > stamp-h ;;
16014 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16016 for ac_file in $CONFIG_FILES; do
16017 # Support "outfile[:infile[:infile...]]"
16019 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
16021 # PO directories have a Makefile.in generated from Makefile.in.in.
16022 case "$ac_file" in */Makefile.in)
16023 # Adjust a relative srcdir.
16024 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
16025 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
16026 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
16027 # In autoconf-2.13 it is called $ac_given_srcdir.
16028 # In autoconf-2.50 it is called $srcdir.
16029 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16030 case "$ac_given_srcdir" in
16031 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
16032 /*) top_srcdir="$ac_given_srcdir" ;;
16033 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16035 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16036 rm -f "$ac_dir/POTFILES"
16037 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16038 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16039 POMAKEFILEDEPS="POTFILES.in"
16040 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16041 # on $ac_dir but don't depend on user-specified configuration
16043 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16044 # The LINGUAS file contains the set of available languages.
16045 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16046 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
16048 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16049 # Hide the ALL_LINGUAS assigment from automake.
16050 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16051 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
16053 # The set of available languages was given in configure.ac.
16054 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16056 case "$ac_given_srcdir" in
16058 *) srcdirpre
='$(srcdir)/' ;;
16064 for lang
in $ALL_LINGUAS; do
16065 POFILES
="$POFILES $srcdirpre$lang.po"
16066 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
16067 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
16068 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
16070 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16071 # environment variable.
16073 if test -n "$ALL_LINGUAS"; then
16074 for presentlang
in $ALL_LINGUAS; do
16076 if test "%UNSET%" != "$LINGUAS"; then
16077 desiredlanguages
="$LINGUAS"
16079 desiredlanguages
="$ALL_LINGUAS"
16081 for desiredlang
in $desiredlanguages; do
16082 # Use the presentlang catalog if desiredlang is
16083 # a. equal to presentlang, or
16084 # b. a variant of presentlang (because in this case,
16085 # presentlang can be used as a fallback for messages
16086 # which are not translated in the desiredlang catalog).
16087 case "$desiredlang" in
16088 "$presentlang"*) useit
=yes;;
16091 if test $useit = yes; then
16092 INST_LINGUAS
="$INST_LINGUAS $presentlang"
16097 if test -n "$INST_LINGUAS"; then
16098 for lang
in $INST_LINGUAS; do
16099 CATALOGS
="$CATALOGS $lang.gmo"
16102 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
16103 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16104 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
16105 if test -f "$f"; then
16107 *.orig |
*.bak |
*~
) ;;
16108 *) cat "$f" >> "$ac_dir/Makefile" ;;
16117 for subdir
in ${CONFIG_SRC_SUBDIR}
16119 $SHELL $ac_aux_dir/mkinstalldirs
$subdir/$DEPDIR
16128 ac_clean_files
=$ac_clean_files_save
16130 test $ac_write_fail = 0 ||
16131 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16134 # configure is writing to config.log, and then calls config.status.
16135 # config.status does its own redirection, appending to config.log.
16136 # Unfortunately, on DOS this fails, as config.log is still kept open
16137 # by configure, so config.status won't be able to write to it; its
16138 # output is simply discarded. So we exec the FD to /dev/null,
16139 # effectively closing config.log, so it can be properly (re)opened and
16140 # appended to by config.status. When coming back to configure, we
16141 # need to make the FD available again.
16142 if test "$no_create" != yes; then
16144 ac_config_status_args
=
16145 test "$silent" = yes &&
16146 ac_config_status_args
="$ac_config_status_args --quiet"
16148 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16150 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16151 # would make configure fail if this is the last instruction.
16152 $ac_cs_success || as_fn_exit
1
16154 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16156 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}